@opusdns/api 0.298.0 → 0.300.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/schema.d.ts CHANGED
@@ -1580,6 +1580,23 @@ export interface paths {
1580
1580
  patch?: never;
1581
1581
  trace?: never;
1582
1582
  };
1583
+ "/v1/job/{job_id}/retry": {
1584
+ parameters: {
1585
+ query?: never;
1586
+ header?: never;
1587
+ path?: never;
1588
+ cookie?: never;
1589
+ };
1590
+ get?: never;
1591
+ put?: never;
1592
+ /** Retry a failed or dead-lettered job */
1593
+ post: operations["retry_job_v1_job__job_id__retry_post"];
1594
+ delete?: never;
1595
+ options?: never;
1596
+ head?: never;
1597
+ patch?: never;
1598
+ trace?: never;
1599
+ };
1583
1600
  "/v1/jobs": {
1584
1601
  parameters: {
1585
1602
  query?: never;
@@ -1667,6 +1684,23 @@ export interface paths {
1667
1684
  patch?: never;
1668
1685
  trace?: never;
1669
1686
  };
1687
+ "/v1/jobs/{batch_id}/retry": {
1688
+ parameters: {
1689
+ query?: never;
1690
+ header?: never;
1691
+ path?: never;
1692
+ cookie?: never;
1693
+ };
1694
+ get?: never;
1695
+ put?: never;
1696
+ /** Retry failed and dead-lettered jobs in a batch */
1697
+ post: operations["retry_batch_v1_jobs__batch_id__retry_post"];
1698
+ delete?: never;
1699
+ options?: never;
1700
+ head?: never;
1701
+ patch?: never;
1702
+ trace?: never;
1703
+ };
1670
1704
  "/v1/organizations": {
1671
1705
  parameters: {
1672
1706
  query?: never;
@@ -6677,6 +6711,21 @@ export interface components {
6677
6711
  */
6678
6712
  paused: boolean;
6679
6713
  };
6714
+ /** JobBatchRetryResponse */
6715
+ JobBatchRetryResponse: {
6716
+ /**
6717
+ * Batch Id
6718
+ * Format: typeid
6719
+ * @description TypeID identifying this batch
6720
+ * @example batch_01h45ytscbebyvny4gc8cr8ma2
6721
+ */
6722
+ batch_id: TypeId<"batch">;
6723
+ /**
6724
+ * Retried Count
6725
+ * @description Number of FAILED/DEAD_LETTER jobs reset to QUEUED for retry
6726
+ */
6727
+ retried_count: number;
6728
+ };
6680
6729
  /** JobBatchStatusResponse */
6681
6730
  JobBatchStatusResponse: {
6682
6731
  /**
@@ -17183,6 +17232,71 @@ export interface operations {
17183
17232
  };
17184
17233
  };
17185
17234
  };
17235
+ retry_job_v1_job__job_id__retry_post: {
17236
+ parameters: {
17237
+ query?: never;
17238
+ header?: never;
17239
+ path: {
17240
+ /** @description Job ID */
17241
+ job_id: TypeId<"job">;
17242
+ };
17243
+ cookie?: never;
17244
+ };
17245
+ requestBody?: never;
17246
+ responses: {
17247
+ /** @description Successful Response */
17248
+ 200: {
17249
+ headers: {
17250
+ [name: string]: unknown;
17251
+ };
17252
+ content: {
17253
+ "application/json": components["schemas"]["JobResponse"];
17254
+ };
17255
+ };
17256
+ /** @description Not Found */
17257
+ 404: {
17258
+ headers: {
17259
+ [name: string]: unknown;
17260
+ };
17261
+ content: {
17262
+ /** @example {
17263
+ * "code": "ERROR_JOB_NOT_FOUND",
17264
+ * "detail": "No job found with id 'Additional error context.'",
17265
+ * "job_id": "Additional error context.",
17266
+ * "status": 404,
17267
+ * "title": "Batch Operation Error",
17268
+ * "type": "job-not-found"
17269
+ * } */
17270
+ "application/problem+json": components["schemas"]["Problem"];
17271
+ };
17272
+ };
17273
+ /** @description Conflict */
17274
+ 409: {
17275
+ headers: {
17276
+ [name: string]: unknown;
17277
+ };
17278
+ content: {
17279
+ /** @example {
17280
+ * "code": "ERROR_JOB_STATUS_CONFLICT",
17281
+ * "detail": "Additional error context.",
17282
+ * "status": 409,
17283
+ * "title": "Batch Operation Error",
17284
+ * "type": "job-status-conflict"
17285
+ * } */
17286
+ "application/problem+json": components["schemas"]["Problem"];
17287
+ };
17288
+ };
17289
+ /** @description Validation Error */
17290
+ 422: {
17291
+ headers: {
17292
+ [name: string]: unknown;
17293
+ };
17294
+ content: {
17295
+ "application/problem+json": components["schemas"]["HTTPValidationError"];
17296
+ };
17297
+ };
17298
+ };
17299
+ };
17186
17300
  list_batches_v1_jobs_get: {
17187
17301
  parameters: {
17188
17302
  query?: {
@@ -17569,6 +17683,58 @@ export interface operations {
17569
17683
  };
17570
17684
  };
17571
17685
  };
17686
+ retry_batch_v1_jobs__batch_id__retry_post: {
17687
+ parameters: {
17688
+ query?: {
17689
+ /** @description Optional repeatable filter: only retry jobs whose error_class matches one of these values. Example: `?error_class=BillingInsufficientFundsError` to retry only insufficient-funds failures. Omit to retry all failed/dead-lettered jobs in the batch. */
17690
+ error_class?: string[] | null;
17691
+ };
17692
+ header?: never;
17693
+ path: {
17694
+ /** @description Batch ID */
17695
+ batch_id: TypeId<"batch">;
17696
+ };
17697
+ cookie?: never;
17698
+ };
17699
+ requestBody?: never;
17700
+ responses: {
17701
+ /** @description Successful Response */
17702
+ 200: {
17703
+ headers: {
17704
+ [name: string]: unknown;
17705
+ };
17706
+ content: {
17707
+ "application/json": components["schemas"]["JobBatchRetryResponse"];
17708
+ };
17709
+ };
17710
+ /** @description Not Found */
17711
+ 404: {
17712
+ headers: {
17713
+ [name: string]: unknown;
17714
+ };
17715
+ content: {
17716
+ /** @example {
17717
+ * "code": "ERROR_BATCH_NOT_FOUND",
17718
+ * "correlation_id": "Additional error context.",
17719
+ * "detail": "No batch found with correlation_id 'Additional error context.'",
17720
+ * "status": 404,
17721
+ * "title": "Batch Operation Error",
17722
+ * "type": "batch-not-found"
17723
+ * } */
17724
+ "application/problem+json": components["schemas"]["Problem"];
17725
+ };
17726
+ };
17727
+ /** @description Validation Error */
17728
+ 422: {
17729
+ headers: {
17730
+ [name: string]: unknown;
17731
+ };
17732
+ content: {
17733
+ "application/problem+json": components["schemas"]["HTTPValidationError"];
17734
+ };
17735
+ };
17736
+ };
17737
+ };
17572
17738
  list_organizations_v1_organizations_get: {
17573
17739
  parameters: {
17574
17740
  query?: {