Skip to content

Commit 4fbc7d4

Browse files
author
github-actions[bot]
committed
feat: Updated OpenAPI spec
1 parent bd2d199 commit 4fbc7d4

41 files changed

Lines changed: 618 additions & 530 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/libs/Replicate/Generated/Replicate.Exceptions.g.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public ApiException(string message, global::System.Net.HttpStatusCode statusCode
4343
/// <param name="message">The error message that explains the reason for the exception.</param>
4444
/// <param name="innerException">The exception that is the cause of the current exception, or a null reference if no inner exception is specified.</param>
4545
/// <param name="statusCode">The HTTP status code of the response.</param>
46-
public ApiException(string message, global::System.Exception innerException, global::System.Net.HttpStatusCode statusCode) : base(message, innerException)
46+
public ApiException(string message, global::System.Exception? innerException, global::System.Net.HttpStatusCode statusCode) : base(message, innerException)
4747
{
4848
StatusCode = statusCode;
4949
}
@@ -83,7 +83,7 @@ public ApiException(string message, global::System.Net.HttpStatusCode statusCode
8383
/// <param name="message">The error message that explains the reason for the exception.</param>
8484
/// <param name="innerException">The exception that is the cause of the current exception, or a null reference if no inner exception is specified.</param>
8585
/// <param name="statusCode">The HTTP status code of the response.</param>
86-
public ApiException(string message, global::System.Exception innerException, global::System.Net.HttpStatusCode statusCode) : base(message, innerException, statusCode)
86+
public ApiException(string message, global::System.Exception? innerException, global::System.Net.HttpStatusCode statusCode) : base(message, innerException, statusCode)
8787
{
8888
}
8989
}

src/libs/Replicate/Generated/Replicate.IReplicateApi.DeploymentsPredictionsCreate.g.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ public partial interface IReplicateApi
7070
/// This field is no longer needed as the returned prediction will always have a `stream` entry in its `url` property if the model supports streaming.
7171
/// </param>
7272
/// <param name="webhook">
73-
/// An HTTPS URL for receiving a webhook when the prediction has new output. The webhook will be a POST request where the request body is the same as the response body of the [get prediction](#predictions.get) operation. If there are network problems, we will retry the webhook a few times, so make sure it can be safely called more than once. Replicate will not follow redirects when sending webhook requests to your service, so be sure to specify a URL that will resolve without redirecting.
73+
/// An HTTPS URL for receiving a webhook when the prediction has new output. The webhook will be a POST request where the request body is the same as the response body of the [get prediction](#predictions.get) operation. If there are network problems, we will retry the webhook a few times, so make sure it can be safely called more than once. Replicate will not follow redirects when sending webhook requests to your service, so be sure to specify a URL that will resolve without redirecting.<br/>
74+
/// Example: https://example.com/my-webhook-handler
7475
/// </param>
7576
/// <param name="webhookEventsFilter">
7677
/// By default, we will send requests to your webhook URL whenever there are new outputs or the prediction has finished. You can change which events trigger webhook requests by specifying `webhook_events_filter` in the prediction request:<br/>
@@ -88,7 +89,8 @@ public partial interface IReplicateApi
8889
/// "webhook_events_filter": ["start", "completed"]<br/>
8990
/// }<br/>
9091
/// ```<br/>
91-
/// Requests for event types `output` and `logs` will be sent at most once every 500ms. If you request `start` and `completed` webhooks, then they'll always be sent regardless of throttling.
92+
/// Requests for event types `output` and `logs` will be sent at most once every 500ms. If you request `start` and `completed` webhooks, then they'll always be sent regardless of throttling.<br/>
93+
/// Example: [start, completed]
9294
/// </param>
9395
/// <param name="cancellationToken">The token to cancel the operation with</param>
9496
/// <exception cref="global::System.InvalidOperationException"></exception>

src/libs/Replicate/Generated/Replicate.IReplicateApi.ModelsPredictionsCreate.g.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ public partial interface IReplicateApi
7272
/// This field is no longer needed as the returned prediction will always have a `stream` entry in its `url` property if the model supports streaming.
7373
/// </param>
7474
/// <param name="webhook">
75-
/// An HTTPS URL for receiving a webhook when the prediction has new output. The webhook will be a POST request where the request body is the same as the response body of the [get prediction](#predictions.get) operation. If there are network problems, we will retry the webhook a few times, so make sure it can be safely called more than once. Replicate will not follow redirects when sending webhook requests to your service, so be sure to specify a URL that will resolve without redirecting.
75+
/// An HTTPS URL for receiving a webhook when the prediction has new output. The webhook will be a POST request where the request body is the same as the response body of the [get prediction](#predictions.get) operation. If there are network problems, we will retry the webhook a few times, so make sure it can be safely called more than once. Replicate will not follow redirects when sending webhook requests to your service, so be sure to specify a URL that will resolve without redirecting.<br/>
76+
/// Example: https://example.com/my-webhook-handler
7677
/// </param>
7778
/// <param name="webhookEventsFilter">
7879
/// By default, we will send requests to your webhook URL whenever there are new outputs or the prediction has finished. You can change which events trigger webhook requests by specifying `webhook_events_filter` in the prediction request:<br/>
@@ -90,7 +91,8 @@ public partial interface IReplicateApi
9091
/// "webhook_events_filter": ["start", "completed"]<br/>
9192
/// }<br/>
9293
/// ```<br/>
93-
/// Requests for event types `output` and `logs` will be sent at most once every 500ms. If you request `start` and `completed` webhooks, then they'll always be sent regardless of throttling.
94+
/// Requests for event types `output` and `logs` will be sent at most once every 500ms. If you request `start` and `completed` webhooks, then they'll always be sent regardless of throttling.<br/>
95+
/// Example: [start, completed]
9496
/// </param>
9597
/// <param name="cancellationToken">The token to cancel the operation with</param>
9698
/// <exception cref="global::System.InvalidOperationException"></exception>

src/libs/Replicate/Generated/Replicate.IReplicateApi.PredictionsCreate.g.cs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,12 @@ public partial interface IReplicateApi
6868
/// <param name="version">
6969
/// The ID of the model version that you want to run. This can be specified in two formats:<br/>
7070
/// 1. Just the 64-character version ID: `9dcd6d78e7c6560c340d916fe32e9f24aabfa331e5cce95fe31f77fb03121426`<br/>
71-
/// 2. Full model identifier with version ID in the format `{owner}/{model}:{id}`. For example, `replicate/hello-world:9dcd6d78e7c6560c340d916fe32e9f24aabfa331e5cce95fe31f77fb03121426`
71+
/// 2. Full model identifier with version ID in the format `{owner}/{model}:{id}`. For example, `replicate/hello-world:9dcd6d78e7c6560c340d916fe32e9f24aabfa331e5cce95fe31f77fb03121426`<br/>
72+
/// Example: replicate/hello-world:9dcd6d78e7c6560c340d916fe32e9f24aabfa331e5cce95fe31f77fb03121426
7273
/// </param>
7374
/// <param name="webhook">
74-
/// An HTTPS URL for receiving a webhook when the prediction has new output. The webhook will be a POST request where the request body is the same as the response body of the [get prediction](#predictions.get) operation. If there are network problems, we will retry the webhook a few times, so make sure it can be safely called more than once. Replicate will not follow redirects when sending webhook requests to your service, so be sure to specify a URL that will resolve without redirecting.
75+
/// An HTTPS URL for receiving a webhook when the prediction has new output. The webhook will be a POST request where the request body is the same as the response body of the [get prediction](#predictions.get) operation. If there are network problems, we will retry the webhook a few times, so make sure it can be safely called more than once. Replicate will not follow redirects when sending webhook requests to your service, so be sure to specify a URL that will resolve without redirecting.<br/>
76+
/// Example: https://example.com/my-webhook-handler
7577
/// </param>
7678
/// <param name="webhookEventsFilter">
7779
/// By default, we will send requests to your webhook URL whenever there are new outputs or the prediction has finished. You can change which events trigger webhook requests by specifying `webhook_events_filter` in the prediction request:<br/>
@@ -90,7 +92,8 @@ public partial interface IReplicateApi
9092
/// "webhook_events_filter": ["start", "completed"]<br/>
9193
/// }<br/>
9294
/// ```<br/>
93-
/// Requests for event types `output` and `logs` will be sent at most once every 500ms. If you request `start` and `completed` webhooks, then they'll always be sent regardless of throttling.
95+
/// Requests for event types `output` and `logs` will be sent at most once every 500ms. If you request `start` and `completed` webhooks, then they'll always be sent regardless of throttling.<br/>
96+
/// Example: [start, completed]
9497
/// </param>
9598
/// <param name="cancellationToken">The token to cancel the operation with</param>
9699
/// <exception cref="global::System.InvalidOperationException"></exception>

src/libs/Replicate/Generated/Replicate.Models.SchemasPredictionRequest.g.cs

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,10 @@ public sealed partial class SchemasPredictionRequest
3333
public bool? Stream { get; set; }
3434

3535
/// <summary>
36-
/// An HTTPS URL for receiving a webhook when the prediction has new output. The webhook will be a POST request where the request body is the same as the response body of the [get prediction](#predictions.get) operation. If there are network problems, we will retry the webhook a few times, so make sure it can be safely called more than once. Replicate will not follow redirects when sending webhook requests to your service, so be sure to specify a URL that will resolve without redirecting.
36+
/// An HTTPS URL for receiving a webhook when the prediction has new output. The webhook will be a POST request where the request body is the same as the response body of the [get prediction](#predictions.get) operation. If there are network problems, we will retry the webhook a few times, so make sure it can be safely called more than once. Replicate will not follow redirects when sending webhook requests to your service, so be sure to specify a URL that will resolve without redirecting.<br/>
37+
/// Example: https://example.com/my-webhook-handler
3738
/// </summary>
39+
/// <example>https://example.com/my-webhook-handler</example>
3840
[global::System.Text.Json.Serialization.JsonPropertyName("webhook")]
3941
public string? Webhook { get; set; }
4042

@@ -54,8 +56,10 @@ public sealed partial class SchemasPredictionRequest
5456
/// "webhook_events_filter": ["start", "completed"]<br/>
5557
/// }<br/>
5658
/// ```<br/>
57-
/// Requests for event types `output` and `logs` will be sent at most once every 500ms. If you request `start` and `completed` webhooks, then they'll always be sent regardless of throttling.
59+
/// Requests for event types `output` and `logs` will be sent at most once every 500ms. If you request `start` and `completed` webhooks, then they'll always be sent regardless of throttling.<br/>
60+
/// Example: [start, completed]
5861
/// </summary>
62+
/// <example>[start, completed]</example>
5963
[global::System.Text.Json.Serialization.JsonPropertyName("webhook_events_filter")]
6064
public global::System.Collections.Generic.IList<global::Replicate.SchemasPredictionRequestWebhookEventsFilterItem>? WebhookEventsFilter { get; set; }
6165

@@ -86,7 +90,8 @@ public sealed partial class SchemasPredictionRequest
8690
/// This field is no longer needed as the returned prediction will always have a `stream` entry in its `url` property if the model supports streaming.
8791
/// </param>
8892
/// <param name="webhook">
89-
/// An HTTPS URL for receiving a webhook when the prediction has new output. The webhook will be a POST request where the request body is the same as the response body of the [get prediction](#predictions.get) operation. If there are network problems, we will retry the webhook a few times, so make sure it can be safely called more than once. Replicate will not follow redirects when sending webhook requests to your service, so be sure to specify a URL that will resolve without redirecting.
93+
/// An HTTPS URL for receiving a webhook when the prediction has new output. The webhook will be a POST request where the request body is the same as the response body of the [get prediction](#predictions.get) operation. If there are network problems, we will retry the webhook a few times, so make sure it can be safely called more than once. Replicate will not follow redirects when sending webhook requests to your service, so be sure to specify a URL that will resolve without redirecting.<br/>
94+
/// Example: https://example.com/my-webhook-handler
9095
/// </param>
9196
/// <param name="webhookEventsFilter">
9297
/// By default, we will send requests to your webhook URL whenever there are new outputs or the prediction has finished. You can change which events trigger webhook requests by specifying `webhook_events_filter` in the prediction request:<br/>
@@ -104,7 +109,8 @@ public sealed partial class SchemasPredictionRequest
104109
/// "webhook_events_filter": ["start", "completed"]<br/>
105110
/// }<br/>
106111
/// ```<br/>
107-
/// Requests for event types `output` and `logs` will be sent at most once every 500ms. If you request `start` and `completed` webhooks, then they'll always be sent regardless of throttling.
112+
/// Requests for event types `output` and `logs` will be sent at most once every 500ms. If you request `start` and `completed` webhooks, then they'll always be sent regardless of throttling.<br/>
113+
/// Example: [start, completed]
108114
/// </param>
109115
#if NET7_0_OR_GREATER
110116
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]

0 commit comments

Comments
 (0)