diff --git a/src/libs/Replicate/Generated/JsonSerializerContextTypes.g.cs b/src/libs/Replicate/Generated/JsonSerializerContextTypes.g.cs index 8d16d8a..853ef03 100644 --- a/src/libs/Replicate/Generated/JsonSerializerContextTypes.g.cs +++ b/src/libs/Replicate/Generated/JsonSerializerContextTypes.g.cs @@ -114,35 +114,35 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Replicate.AccountGetResponse? Type22 { get; set; } + public global::System.DateTime? Type22 { get; set; } /// /// /// - public global::Replicate.AccountGetResponseType? Type23 { get; set; } + public global::Replicate.AccountGetResponse? Type23 { get; set; } /// /// /// - public global::Replicate.DeploymentsListResponse? Type24 { get; set; } + public global::Replicate.AccountGetResponseType? Type24 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type25 { get; set; } + public global::Replicate.DeploymentsListResponse? Type25 { get; set; } /// /// /// - public global::Replicate.DeploymentsListResponseResult? Type26 { get; set; } + public global::System.Collections.Generic.IList? Type26 { get; set; } /// /// /// - public global::Replicate.DeploymentsListResponseResultCurrentRelease? Type27 { get; set; } + public global::Replicate.DeploymentsListResponseResult? Type27 { get; set; } /// /// /// - public global::Replicate.DeploymentsListResponseResultCurrentReleaseConfiguration? Type28 { get; set; } + public global::Replicate.DeploymentsListResponseResultCurrentRelease? Type28 { get; set; } /// /// /// - public global::System.DateTime? Type29 { get; set; } + public global::Replicate.DeploymentsListResponseResultCurrentReleaseConfiguration? Type29 { get; set; } /// /// /// diff --git a/src/libs/Replicate/Generated/Replicate.IReplicateApi.PredictionsList.g.cs b/src/libs/Replicate/Generated/Replicate.IReplicateApi.PredictionsList.g.cs index 8ac36a0..a2e2768 100644 --- a/src/libs/Replicate/Generated/Replicate.IReplicateApi.PredictionsList.g.cs +++ b/src/libs/Replicate/Generated/Replicate.IReplicateApi.PredictionsList.g.cs @@ -54,9 +54,13 @@ public partial interface IReplicateApi /// `version` will be the unique ID of model version used to create the prediction.
/// `data_removed` will be `true` if the input and output data has been deleted. /// + /// + /// /// The token to cancel the operation with /// global::System.Threading.Tasks.Task PredictionsListAsync( + global::System.DateTime? createdAfter = default, + global::System.DateTime? createdBefore = default, global::System.Threading.CancellationToken cancellationToken = default); } } \ No newline at end of file diff --git a/src/libs/Replicate/Generated/Replicate.ReplicateApi.PredictionsList.g.cs b/src/libs/Replicate/Generated/Replicate.ReplicateApi.PredictionsList.g.cs index 32960dc..f298ea0 100644 --- a/src/libs/Replicate/Generated/Replicate.ReplicateApi.PredictionsList.g.cs +++ b/src/libs/Replicate/Generated/Replicate.ReplicateApi.PredictionsList.g.cs @@ -6,10 +6,14 @@ namespace Replicate public partial class ReplicateApi { partial void PreparePredictionsListArguments( - global::System.Net.Http.HttpClient httpClient); + global::System.Net.Http.HttpClient httpClient, + ref global::System.DateTime? createdAfter, + ref global::System.DateTime? createdBefore); partial void PreparePredictionsListRequest( global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage); + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + global::System.DateTime? createdAfter, + global::System.DateTime? createdBefore); partial void ProcessPredictionsListResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -64,19 +68,29 @@ partial void ProcessPredictionsListResponse( /// `version` will be the unique ID of model version used to create the prediction.
/// `data_removed` will be `true` if the input and output data has been deleted. /// + /// + /// /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task PredictionsListAsync( + global::System.DateTime? createdAfter = default, + global::System.DateTime? createdBefore = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( client: HttpClient); PreparePredictionsListArguments( - httpClient: HttpClient); + httpClient: HttpClient, + createdAfter: ref createdAfter, + createdBefore: ref createdBefore); var __pathBuilder = new PathBuilder( path: "/predictions", baseUri: HttpClient.BaseAddress); + __pathBuilder + .AddOptionalParameter("created_after", createdAfter?.ToString("yyyy-MM-ddTHH:mm:ssZ")) + .AddOptionalParameter("created_before", createdBefore?.ToString("yyyy-MM-ddTHH:mm:ssZ")) + ; var __path = __pathBuilder.ToString(); using var __httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, @@ -107,7 +121,9 @@ partial void ProcessPredictionsListResponse( request: __httpRequest); PreparePredictionsListRequest( httpClient: HttpClient, - httpRequestMessage: __httpRequest); + httpRequestMessage: __httpRequest, + createdAfter: createdAfter, + createdBefore: createdBefore); using var __response = await HttpClient.SendAsync( request: __httpRequest, diff --git a/src/libs/Replicate/openapi.yaml b/src/libs/Replicate/openapi.yaml index d882730..2c390f6 100644 --- a/src/libs/Replicate/openapi.yaml +++ b/src/libs/Replicate/openapi.yaml @@ -735,6 +735,21 @@ paths: summary: List predictions description: "Get a paginated list of all predictions created by the user or organization associated with the provided API token.\n\nThis will include predictions created from the API and the website. It will return 100 records per page.\n\nExample cURL request:\n\n```console\ncurl -s \\\n -H \"Authorization: Bearer $REPLICATE_API_TOKEN\" \\\n https://api.replicate.com/v1/predictions\n```\n\nThe response will be a paginated JSON array of prediction objects, sorted with the most recent prediction first:\n\n```json\n{\n \"next\": null,\n \"previous\": null,\n \"results\": [\n {\n \"completed_at\": \"2023-09-08T16:19:34.791859Z\",\n \"created_at\": \"2023-09-08T16:19:34.907244Z\",\n \"data_removed\": false,\n \"error\": null,\n \"id\": \"gm3qorzdhgbfurvjtvhg6dckhu\",\n \"input\": {\n \"text\": \"Alice\"\n },\n \"metrics\": {\n \"predict_time\": 0.012683\n },\n \"output\": \"hello Alice\",\n \"started_at\": \"2023-09-08T16:19:34.779176Z\",\n \"source\": \"api\",\n \"status\": \"succeeded\",\n \"urls\": {\n \"get\": \"https://api.replicate.com/v1/predictions/gm3qorzdhgbfurvjtvhg6dckhu\",\n \"cancel\": \"https://api.replicate.com/v1/predictions/gm3qorzdhgbfurvjtvhg6dckhu/cancel\"\n },\n \"model\": \"replicate/hello-world\",\n \"version\": \"5c7d5dc6dd8bf75c1acaa8565735e7986bc5b66206b55cca93cb72c9bf15ccaa\",\n }\n ]\n}\n```\n\n`id` will be the unique ID of the prediction.\n\n`source` will indicate how the prediction was created. Possible values are `web` or `api`.\n\n`status` will be the status of the prediction. Refer to [get a single prediction](#predictions.get) for possible values.\n\n`urls` will be a convenience object that can be used to construct new API requests for the given prediction. If the requested model version supports streaming, this will have a `stream` entry with an HTTPS URL that you can use to construct an [`EventSource`](https://developer.mozilla.org/en-US/docs/Web/API/EventSource).\n\n`model` will be the model identifier string in the format of `{model_owner}/{model_name}`.\n\n`version` will be the unique ID of model version used to create the prediction.\n\n`data_removed` will be `true` if the input and output data has been deleted.\n" operationId: predictions.list + parameters: + - name: created_after + in: query + description: 'Include only predictions created at or after this date-time, in ISO 8601 format.' + schema: + type: string + format: date-time + example: '2025-01-01T00:00:00.0000000+00:00' + - name: created_before + in: query + description: 'Include only predictions created before this date-time, in ISO 8601 format.' + schema: + type: string + format: date-time + example: '2025-02-01T00:00:00.0000000+00:00' responses: '200': description: Success