@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/package.json +1 -1
- package/src/helpers/keys.ts +79 -0
- package/src/helpers/requests.d.ts +96 -0
- package/src/helpers/responses.d.ts +178 -1
- package/src/helpers/schemas.d.ts +16 -0
- package/src/openapi.yaml +338 -67
- package/src/schema.d.ts +166 -0
package/package.json
CHANGED
package/src/helpers/keys.ts
CHANGED
|
@@ -219,6 +219,7 @@ import { IpRestriction } from './schemas';
|
|
|
219
219
|
import { IpRestrictionUpdate } from './schemas';
|
|
220
220
|
import { JobBatchMetadata } from './schemas';
|
|
221
221
|
import { JobBatchRequest } from './schemas';
|
|
222
|
+
import { JobBatchRetry } from './schemas';
|
|
222
223
|
import { JobBatchStatus } from './schemas';
|
|
223
224
|
import { JobCountsByStatus } from './schemas';
|
|
224
225
|
import { Job } from './schemas';
|
|
@@ -26648,6 +26649,84 @@ export const KEYS_JOB_BATCH_REQUEST = [
|
|
|
26648
26649
|
KEY_JOB_BATCH_REQUEST_PAUSED,
|
|
26649
26650
|
] as const satisfies (keyof JobBatchRequest)[];
|
|
26650
26651
|
|
|
26652
|
+
/**
|
|
26653
|
+
* Batch Id
|
|
26654
|
+
*
|
|
26655
|
+
* TypeID identifying this batch
|
|
26656
|
+
*
|
|
26657
|
+
* @type {string}
|
|
26658
|
+
*
|
|
26659
|
+
*
|
|
26660
|
+
* @remarks
|
|
26661
|
+
* This key constant provides type-safe access to the `batch_id` property of JobBatchRetry objects.
|
|
26662
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
26663
|
+
*
|
|
26664
|
+
* @example
|
|
26665
|
+
* ```typescript
|
|
26666
|
+
* // Direct property access
|
|
26667
|
+
* const value = jobbatchretry[KEY_JOB_BATCH_RETRY_BATCH_ID];
|
|
26668
|
+
*
|
|
26669
|
+
* // Dynamic property access
|
|
26670
|
+
* const propertyName = KEY_JOB_BATCH_RETRY_BATCH_ID;
|
|
26671
|
+
* const value = jobbatchretry[propertyName];
|
|
26672
|
+
* ```
|
|
26673
|
+
*
|
|
26674
|
+
* @see {@link JobBatchRetry} - The TypeScript type definition
|
|
26675
|
+
* @see {@link KEYS_JOB_BATCH_RETRY} - Array of all keys for this type
|
|
26676
|
+
*/
|
|
26677
|
+
export const KEY_JOB_BATCH_RETRY_BATCH_ID: keyof JobBatchRetry = 'batch_id';
|
|
26678
|
+
/**
|
|
26679
|
+
* Retried Count
|
|
26680
|
+
*
|
|
26681
|
+
* Number of FAILED/DEAD_LETTER jobs reset to QUEUED for retry
|
|
26682
|
+
*
|
|
26683
|
+
* @type {integer}
|
|
26684
|
+
*
|
|
26685
|
+
*
|
|
26686
|
+
* @remarks
|
|
26687
|
+
* This key constant provides type-safe access to the `retried_count` property of JobBatchRetry objects.
|
|
26688
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
26689
|
+
*
|
|
26690
|
+
* @example
|
|
26691
|
+
* ```typescript
|
|
26692
|
+
* // Direct property access
|
|
26693
|
+
* const value = jobbatchretry[KEY_JOB_BATCH_RETRY_RETRIED_COUNT];
|
|
26694
|
+
*
|
|
26695
|
+
* // Dynamic property access
|
|
26696
|
+
* const propertyName = KEY_JOB_BATCH_RETRY_RETRIED_COUNT;
|
|
26697
|
+
* const value = jobbatchretry[propertyName];
|
|
26698
|
+
* ```
|
|
26699
|
+
*
|
|
26700
|
+
* @see {@link JobBatchRetry} - The TypeScript type definition
|
|
26701
|
+
* @see {@link KEYS_JOB_BATCH_RETRY} - Array of all keys for this type
|
|
26702
|
+
*/
|
|
26703
|
+
export const KEY_JOB_BATCH_RETRY_RETRIED_COUNT: keyof JobBatchRetry = 'retried_count';
|
|
26704
|
+
|
|
26705
|
+
/**
|
|
26706
|
+
* Array of all JobBatchRetry property keys
|
|
26707
|
+
*
|
|
26708
|
+
* @remarks
|
|
26709
|
+
* This constant provides a readonly array containing all valid property keys for JobBatchRetry objects.
|
|
26710
|
+
* Useful for iteration, validation, and generating dynamic UI components.
|
|
26711
|
+
*
|
|
26712
|
+
* @example
|
|
26713
|
+
* ```typescript
|
|
26714
|
+
* // Iterating through all keys
|
|
26715
|
+
* for (const key of KEYS_JOB_BATCH_RETRY) {
|
|
26716
|
+
* console.log(`Property: ${key}, Value: ${jobbatchretry[key]}`);
|
|
26717
|
+
* }
|
|
26718
|
+
*
|
|
26719
|
+
* // Validation
|
|
26720
|
+
* const isValidKey = KEYS_JOB_BATCH_RETRY.includes(someKey);
|
|
26721
|
+
* ```
|
|
26722
|
+
*
|
|
26723
|
+
* @see {@link JobBatchRetry} - The TypeScript type definition
|
|
26724
|
+
*/
|
|
26725
|
+
export const KEYS_JOB_BATCH_RETRY = [
|
|
26726
|
+
KEY_JOB_BATCH_RETRY_BATCH_ID,
|
|
26727
|
+
KEY_JOB_BATCH_RETRY_RETRIED_COUNT,
|
|
26728
|
+
] as const satisfies (keyof JobBatchRetry)[];
|
|
26729
|
+
|
|
26651
26730
|
/**
|
|
26652
26731
|
* Batch Id
|
|
26653
26732
|
*
|
|
@@ -4957,6 +4957,46 @@ export type POST_JobJobIdResume_Request = {
|
|
|
4957
4957
|
*/
|
|
4958
4958
|
export type POST_JobJobIdResume_Request_Path = POST_JobJobIdResume_Request['parameters']['path'];
|
|
4959
4959
|
|
|
4960
|
+
/**
|
|
4961
|
+
* Request type for POST JobJobIdRetry endpoint
|
|
4962
|
+
*
|
|
4963
|
+
* Retry a failed or dead-lettered job
|
|
4964
|
+
*
|
|
4965
|
+
* @remarks
|
|
4966
|
+
* This type defines the complete request structure for the POST JobJobIdRetry endpoint.
|
|
4967
|
+
* It includes all parameters (query, path) and request body types as defined in the OpenAPI specification.
|
|
4968
|
+
* Use this type to ensure type safety when making API requests to this endpoint.
|
|
4969
|
+
*
|
|
4970
|
+
* @example
|
|
4971
|
+
* Use this type to ensure type safety when making API requests to this endpoint.
|
|
4972
|
+
*
|
|
4973
|
+
* @path /v1/job/{job_id}/retry
|
|
4974
|
+
* @param job_id (path) - Job ID
|
|
4975
|
+
*
|
|
4976
|
+
* @see {@link POST_JobJobIdRetry_Request_Query} - Query parameters type
|
|
4977
|
+
* @see {@link POST_JobJobIdRetry_Request_Path} - Path parameters type
|
|
4978
|
+
* @see {@link POST_JobJobIdRetry_Request_Body} - Request body type
|
|
4979
|
+
*/
|
|
4980
|
+
export type POST_JobJobIdRetry_Request = {
|
|
4981
|
+
parameters: {
|
|
4982
|
+
path: operations['retry_job_v1_job__job_id__retry_post']['parameters']['path'];
|
|
4983
|
+
};
|
|
4984
|
+
}
|
|
4985
|
+
/**
|
|
4986
|
+
* Path parameters for POST /v1/job/{job_id}/retry
|
|
4987
|
+
*
|
|
4988
|
+
* @remarks
|
|
4989
|
+
* This type defines the path parameters for the POST /v1/job/{job_id}/retry endpoint.
|
|
4990
|
+
* It provides type safety for all path parameters as defined in the OpenAPI specification.
|
|
4991
|
+
*
|
|
4992
|
+
* @example
|
|
4993
|
+
* Use this type to ensure type safety for path parameters.
|
|
4994
|
+
*
|
|
4995
|
+
* @path /v1/job/{job_id}/retry
|
|
4996
|
+
* @param job_id (path) - Job ID
|
|
4997
|
+
*/
|
|
4998
|
+
export type POST_JobJobIdRetry_Request_Path = POST_JobJobIdRetry_Request['parameters']['path'];
|
|
4999
|
+
|
|
4960
5000
|
/**
|
|
4961
5001
|
* Request type for GET Jobs endpoint
|
|
4962
5002
|
*
|
|
@@ -5257,6 +5297,62 @@ export type POST_JobsBatchIdResume_Request = {
|
|
|
5257
5297
|
*/
|
|
5258
5298
|
export type POST_JobsBatchIdResume_Request_Path = POST_JobsBatchIdResume_Request['parameters']['path'];
|
|
5259
5299
|
|
|
5300
|
+
/**
|
|
5301
|
+
* Request type for POST JobsBatchIdRetry endpoint
|
|
5302
|
+
*
|
|
5303
|
+
* Retry failed and dead-lettered jobs in a batch
|
|
5304
|
+
*
|
|
5305
|
+
* @remarks
|
|
5306
|
+
* This type defines the complete request structure for the POST JobsBatchIdRetry endpoint.
|
|
5307
|
+
* It includes all parameters (query, path) and request body types as defined in the OpenAPI specification.
|
|
5308
|
+
* Use this type to ensure type safety when making API requests to this endpoint.
|
|
5309
|
+
*
|
|
5310
|
+
* @example
|
|
5311
|
+
* Use this type to ensure type safety when making API requests to this endpoint.
|
|
5312
|
+
*
|
|
5313
|
+
* @path /v1/jobs/{batch_id}/retry
|
|
5314
|
+
* @param batch_id (path) - Batch ID
|
|
5315
|
+
* @param error_class (query) - 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.
|
|
5316
|
+
*
|
|
5317
|
+
* @see {@link POST_JobsBatchIdRetry_Request_Query} - Query parameters type
|
|
5318
|
+
* @see {@link POST_JobsBatchIdRetry_Request_Path} - Path parameters type
|
|
5319
|
+
* @see {@link POST_JobsBatchIdRetry_Request_Body} - Request body type
|
|
5320
|
+
*/
|
|
5321
|
+
export type POST_JobsBatchIdRetry_Request = {
|
|
5322
|
+
parameters: {
|
|
5323
|
+
query: operations['retry_batch_v1_jobs__batch_id__retry_post']['parameters']['query'];
|
|
5324
|
+
path: operations['retry_batch_v1_jobs__batch_id__retry_post']['parameters']['path'];
|
|
5325
|
+
};
|
|
5326
|
+
}
|
|
5327
|
+
/**
|
|
5328
|
+
* Query parameters for POST /v1/jobs/{batch_id}/retry
|
|
5329
|
+
*
|
|
5330
|
+
* @remarks
|
|
5331
|
+
* This type defines the query parameters for the POST /v1/jobs/{batch_id}/retry endpoint.
|
|
5332
|
+
* It provides type safety for all query parameters as defined in the OpenAPI specification.
|
|
5333
|
+
*
|
|
5334
|
+
* @example
|
|
5335
|
+
* Use this type to ensure type safety for query parameters.
|
|
5336
|
+
*
|
|
5337
|
+
* @path /v1/jobs/{batch_id}/retry
|
|
5338
|
+
* @param error_class (query) - 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.
|
|
5339
|
+
*/
|
|
5340
|
+
export type POST_JobsBatchIdRetry_Request_Query = POST_JobsBatchIdRetry_Request['parameters']['query'];
|
|
5341
|
+
/**
|
|
5342
|
+
* Path parameters for POST /v1/jobs/{batch_id}/retry
|
|
5343
|
+
*
|
|
5344
|
+
* @remarks
|
|
5345
|
+
* This type defines the path parameters for the POST /v1/jobs/{batch_id}/retry endpoint.
|
|
5346
|
+
* It provides type safety for all path parameters as defined in the OpenAPI specification.
|
|
5347
|
+
*
|
|
5348
|
+
* @example
|
|
5349
|
+
* Use this type to ensure type safety for path parameters.
|
|
5350
|
+
*
|
|
5351
|
+
* @path /v1/jobs/{batch_id}/retry
|
|
5352
|
+
* @param batch_id (path) - Batch ID
|
|
5353
|
+
*/
|
|
5354
|
+
export type POST_JobsBatchIdRetry_Request_Path = POST_JobsBatchIdRetry_Request['parameters']['path'];
|
|
5355
|
+
|
|
5260
5356
|
/**
|
|
5261
5357
|
* Request type for GET Organizations endpoint
|
|
5262
5358
|
*
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
|
|
35
35
|
import { DomainDnssecDataArray, OrganizationAttribute2Array, IpRestrictionArray, TldResponseShortArray } from './schemas-arrays.d';
|
|
36
36
|
|
|
37
|
-
import { Context, Problem, HTTPValidationError, ConversationList, Conversation, ContextList, MessageList, Message, MemoryFactList, MemoryFact, Pagination_EmailForwardLog, Pagination_ObjectLog, Pagination_RequestHistory, DomainAvailabilityList, Pagination_Contact, ContactSchema, Pagination_ContactAttributeSet, ContactAttributeSet, Contact, ContactAttributeLink, ContactVerification, Pagination_DnsZone, DnsZone, DnsChanges, DomainForwardZone, EmailForwardZone, Pagination_DomainForwardZone, Pagination_EmailForwardZone, DnsZoneSummary, Pagination_DomainForward, DomainForward, DomainForwardSet, DomainForwardMetrics, DomainForwardBrowserStats, DomainForwardGeoStats, DomainForwardPlatformStats, DomainForwardReferrerStats, DomainForwardStatusCodeStats, DomainForwardMetricsTimeSeries, DomainForwardUserAgentStats, DomainForwardVisitsByKey, DomainSearch, Pagination_Domain, Domain, DomainRenew, DomainRestore, DomainCheck, ClaimsNotices, DomainSummary, DomainWithdraw, RequestAuthcode, DomainTransit, RequestAuthcode2, Pagination_EmailForward, EmailForward, EmailForwardAlias, EmailForwardMetrics, Pagination_Event, EventResponse, Job, Pagination_JobBatchMetadata, CreateJobBatch, JobBatchStatus, Pagination_Job, Pagination_Organization, Organization, OrganizationWithBillingData, Pagination_Invoice, GetPrices, Pagination_BillingTransaction, BillingTransaction, IpRestriction, Pagination_UserPublic, Pagination_Parking, ParkingMetrics, ParkingTotalMetrics, ParkingSignup, ParkingSignupStatus, PublicReportListRes, PublicReportRes, Pagination_Tag, Tag, ObjectTagChanges2, TldSpecification, UserPublic, UserPublicWithAttributes, PermissionSet, RelationSet, UserWithRelationPermissions } from './schemas.d';
|
|
37
|
+
import { Context, Problem, HTTPValidationError, ConversationList, Conversation, ContextList, MessageList, Message, MemoryFactList, MemoryFact, Pagination_EmailForwardLog, Pagination_ObjectLog, Pagination_RequestHistory, DomainAvailabilityList, Pagination_Contact, ContactSchema, Pagination_ContactAttributeSet, ContactAttributeSet, Contact, ContactAttributeLink, ContactVerification, Pagination_DnsZone, DnsZone, DnsChanges, DomainForwardZone, EmailForwardZone, Pagination_DomainForwardZone, Pagination_EmailForwardZone, DnsZoneSummary, Pagination_DomainForward, DomainForward, DomainForwardSet, DomainForwardMetrics, DomainForwardBrowserStats, DomainForwardGeoStats, DomainForwardPlatformStats, DomainForwardReferrerStats, DomainForwardStatusCodeStats, DomainForwardMetricsTimeSeries, DomainForwardUserAgentStats, DomainForwardVisitsByKey, DomainSearch, Pagination_Domain, Domain, DomainRenew, DomainRestore, DomainCheck, ClaimsNotices, DomainSummary, DomainWithdraw, RequestAuthcode, DomainTransit, RequestAuthcode2, Pagination_EmailForward, EmailForward, EmailForwardAlias, EmailForwardMetrics, Pagination_Event, EventResponse, Job, Pagination_JobBatchMetadata, CreateJobBatch, JobBatchStatus, Pagination_Job, JobBatchRetry, Pagination_Organization, Organization, OrganizationWithBillingData, Pagination_Invoice, GetPrices, Pagination_BillingTransaction, BillingTransaction, IpRestriction, Pagination_UserPublic, Pagination_Parking, ParkingMetrics, ParkingTotalMetrics, ParkingSignup, ParkingSignupStatus, PublicReportListRes, PublicReportRes, Pagination_Tag, Tag, ObjectTagChanges2, TldSpecification, UserPublic, UserPublicWithAttributes, PermissionSet, RelationSet, UserWithRelationPermissions } from './schemas.d';
|
|
38
38
|
|
|
39
39
|
/**
|
|
40
40
|
* Response types for GET AiConciergeContextsByContextId endpoint
|
|
@@ -9846,6 +9846,102 @@ export type POST_JobByJobIdResume_Response_404 = Problem
|
|
|
9846
9846
|
*/
|
|
9847
9847
|
export type POST_JobByJobIdResume_Response_422 = HTTPValidationError
|
|
9848
9848
|
|
|
9849
|
+
/**
|
|
9850
|
+
* Response types for POST JobByJobIdRetry endpoint
|
|
9851
|
+
*
|
|
9852
|
+
* Retry a failed or dead-lettered job
|
|
9853
|
+
*
|
|
9854
|
+
* @remarks
|
|
9855
|
+
* This type defines all possible response structures for the POST JobByJobIdRetry endpoint.
|
|
9856
|
+
* Each response code maps to a specific response type as defined in the OpenAPI specification.
|
|
9857
|
+
* Use this type to ensure type safety when handling API responses from this endpoint.
|
|
9858
|
+
*
|
|
9859
|
+
|
|
9860
|
+
*
|
|
9861
|
+
* @path /v1/job/{job_id}/retry
|
|
9862
|
+
* @param job_id (path) - Job ID
|
|
9863
|
+
*
|
|
9864
|
+
* @see {@link POST_JobByJobIdRetry_Response_200} - 200 response type
|
|
9865
|
+
* @see {@link POST_JobByJobIdRetry_Response_404} - 404 response type
|
|
9866
|
+
* @see {@link POST_JobByJobIdRetry_Response_409} - 409 response type
|
|
9867
|
+
* @see {@link POST_JobByJobIdRetry_Response_422} - 422 response type
|
|
9868
|
+
*
|
|
9869
|
+
|
|
9870
|
+
*/
|
|
9871
|
+
export type POST_JobByJobIdRetry_Response = POST_JobByJobIdRetry_Response_200 | POST_JobByJobIdRetry_Response_404 | POST_JobByJobIdRetry_Response_409 | POST_JobByJobIdRetry_Response_422;
|
|
9872
|
+
|
|
9873
|
+
/**
|
|
9874
|
+
* 200 response for POST JobByJobIdRetry endpoint
|
|
9875
|
+
*
|
|
9876
|
+
* @remarks
|
|
9877
|
+
* This type defines the response structure for the 200 status code
|
|
9878
|
+
* of the POST JobByJobIdRetry endpoint.
|
|
9879
|
+
* It provides type safety for handling this specific response as defined in the OpenAPI specification.
|
|
9880
|
+
*
|
|
9881
|
+
|
|
9882
|
+
*
|
|
9883
|
+
* @path /v1/job/{job_id}/retry
|
|
9884
|
+
* @param job_id (path) - Job ID
|
|
9885
|
+
*
|
|
9886
|
+
* @see {@link POST_JobByJobIdRetry_Response} - The main response type definition
|
|
9887
|
+
* @see {@link Job} - The actual schema type definition
|
|
9888
|
+
*/
|
|
9889
|
+
export type POST_JobByJobIdRetry_Response_200 = Job
|
|
9890
|
+
|
|
9891
|
+
/**
|
|
9892
|
+
* 404 response for POST JobByJobIdRetry endpoint
|
|
9893
|
+
*
|
|
9894
|
+
* @remarks
|
|
9895
|
+
* This type defines the response structure for the 404 status code
|
|
9896
|
+
* of the POST JobByJobIdRetry endpoint.
|
|
9897
|
+
* It provides type safety for handling this specific response as defined in the OpenAPI specification.
|
|
9898
|
+
*
|
|
9899
|
+
|
|
9900
|
+
*
|
|
9901
|
+
* @path /v1/job/{job_id}/retry
|
|
9902
|
+
* @param job_id (path) - Job ID
|
|
9903
|
+
*
|
|
9904
|
+
* @see {@link POST_JobByJobIdRetry_Response} - The main response type definition
|
|
9905
|
+
* @see {@link Problem} - The actual schema type definition
|
|
9906
|
+
*/
|
|
9907
|
+
export type POST_JobByJobIdRetry_Response_404 = Problem
|
|
9908
|
+
|
|
9909
|
+
/**
|
|
9910
|
+
* 409 response for POST JobByJobIdRetry endpoint
|
|
9911
|
+
*
|
|
9912
|
+
* @remarks
|
|
9913
|
+
* This type defines the response structure for the 409 status code
|
|
9914
|
+
* of the POST JobByJobIdRetry endpoint.
|
|
9915
|
+
* It provides type safety for handling this specific response as defined in the OpenAPI specification.
|
|
9916
|
+
*
|
|
9917
|
+
|
|
9918
|
+
*
|
|
9919
|
+
* @path /v1/job/{job_id}/retry
|
|
9920
|
+
* @param job_id (path) - Job ID
|
|
9921
|
+
*
|
|
9922
|
+
* @see {@link POST_JobByJobIdRetry_Response} - The main response type definition
|
|
9923
|
+
* @see {@link Problem} - The actual schema type definition
|
|
9924
|
+
*/
|
|
9925
|
+
export type POST_JobByJobIdRetry_Response_409 = Problem
|
|
9926
|
+
|
|
9927
|
+
/**
|
|
9928
|
+
* 422 response for POST JobByJobIdRetry endpoint
|
|
9929
|
+
*
|
|
9930
|
+
* @remarks
|
|
9931
|
+
* This type defines the response structure for the 422 status code
|
|
9932
|
+
* of the POST JobByJobIdRetry endpoint.
|
|
9933
|
+
* It provides type safety for handling this specific response as defined in the OpenAPI specification.
|
|
9934
|
+
*
|
|
9935
|
+
|
|
9936
|
+
*
|
|
9937
|
+
* @path /v1/job/{job_id}/retry
|
|
9938
|
+
* @param job_id (path) - Job ID
|
|
9939
|
+
*
|
|
9940
|
+
* @see {@link POST_JobByJobIdRetry_Response} - The main response type definition
|
|
9941
|
+
* @see {@link HTTPValidationError} - The actual schema type definition
|
|
9942
|
+
*/
|
|
9943
|
+
export type POST_JobByJobIdRetry_Response_422 = HTTPValidationError
|
|
9944
|
+
|
|
9849
9945
|
/**
|
|
9850
9946
|
* Response types for GET Jobs endpoint
|
|
9851
9947
|
*
|
|
@@ -10382,6 +10478,87 @@ export type POST_JobsByBatchIdResume_Response_404 = Problem
|
|
|
10382
10478
|
*/
|
|
10383
10479
|
export type POST_JobsByBatchIdResume_Response_422 = HTTPValidationError
|
|
10384
10480
|
|
|
10481
|
+
/**
|
|
10482
|
+
* Response types for POST JobsByBatchIdRetry endpoint
|
|
10483
|
+
*
|
|
10484
|
+
* Retry failed and dead-lettered jobs in a batch
|
|
10485
|
+
*
|
|
10486
|
+
* @remarks
|
|
10487
|
+
* This type defines all possible response structures for the POST JobsByBatchIdRetry endpoint.
|
|
10488
|
+
* Each response code maps to a specific response type as defined in the OpenAPI specification.
|
|
10489
|
+
* Use this type to ensure type safety when handling API responses from this endpoint.
|
|
10490
|
+
*
|
|
10491
|
+
|
|
10492
|
+
*
|
|
10493
|
+
* @path /v1/jobs/{batch_id}/retry
|
|
10494
|
+
* @param batch_id (path) - Batch ID
|
|
10495
|
+
* @param error_class (query) - 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.
|
|
10496
|
+
*
|
|
10497
|
+
* @see {@link POST_JobsByBatchIdRetry_Response_200} - 200 response type
|
|
10498
|
+
* @see {@link POST_JobsByBatchIdRetry_Response_404} - 404 response type
|
|
10499
|
+
* @see {@link POST_JobsByBatchIdRetry_Response_422} - 422 response type
|
|
10500
|
+
*
|
|
10501
|
+
|
|
10502
|
+
*/
|
|
10503
|
+
export type POST_JobsByBatchIdRetry_Response = POST_JobsByBatchIdRetry_Response_200 | POST_JobsByBatchIdRetry_Response_404 | POST_JobsByBatchIdRetry_Response_422;
|
|
10504
|
+
|
|
10505
|
+
/**
|
|
10506
|
+
* 200 response for POST JobsByBatchIdRetry endpoint
|
|
10507
|
+
*
|
|
10508
|
+
* @remarks
|
|
10509
|
+
* This type defines the response structure for the 200 status code
|
|
10510
|
+
* of the POST JobsByBatchIdRetry endpoint.
|
|
10511
|
+
* It provides type safety for handling this specific response as defined in the OpenAPI specification.
|
|
10512
|
+
*
|
|
10513
|
+
|
|
10514
|
+
*
|
|
10515
|
+
* @path /v1/jobs/{batch_id}/retry
|
|
10516
|
+
* @param batch_id (path) - Batch ID
|
|
10517
|
+
* @param error_class (query) - 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.
|
|
10518
|
+
*
|
|
10519
|
+
* @see {@link POST_JobsByBatchIdRetry_Response} - The main response type definition
|
|
10520
|
+
* @see {@link JobBatchRetry} - The actual schema type definition
|
|
10521
|
+
*/
|
|
10522
|
+
export type POST_JobsByBatchIdRetry_Response_200 = JobBatchRetry
|
|
10523
|
+
|
|
10524
|
+
/**
|
|
10525
|
+
* 404 response for POST JobsByBatchIdRetry endpoint
|
|
10526
|
+
*
|
|
10527
|
+
* @remarks
|
|
10528
|
+
* This type defines the response structure for the 404 status code
|
|
10529
|
+
* of the POST JobsByBatchIdRetry endpoint.
|
|
10530
|
+
* It provides type safety for handling this specific response as defined in the OpenAPI specification.
|
|
10531
|
+
*
|
|
10532
|
+
|
|
10533
|
+
*
|
|
10534
|
+
* @path /v1/jobs/{batch_id}/retry
|
|
10535
|
+
* @param batch_id (path) - Batch ID
|
|
10536
|
+
* @param error_class (query) - 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.
|
|
10537
|
+
*
|
|
10538
|
+
* @see {@link POST_JobsByBatchIdRetry_Response} - The main response type definition
|
|
10539
|
+
* @see {@link Problem} - The actual schema type definition
|
|
10540
|
+
*/
|
|
10541
|
+
export type POST_JobsByBatchIdRetry_Response_404 = Problem
|
|
10542
|
+
|
|
10543
|
+
/**
|
|
10544
|
+
* 422 response for POST JobsByBatchIdRetry endpoint
|
|
10545
|
+
*
|
|
10546
|
+
* @remarks
|
|
10547
|
+
* This type defines the response structure for the 422 status code
|
|
10548
|
+
* of the POST JobsByBatchIdRetry endpoint.
|
|
10549
|
+
* It provides type safety for handling this specific response as defined in the OpenAPI specification.
|
|
10550
|
+
*
|
|
10551
|
+
|
|
10552
|
+
*
|
|
10553
|
+
* @path /v1/jobs/{batch_id}/retry
|
|
10554
|
+
* @param batch_id (path) - Batch ID
|
|
10555
|
+
* @param error_class (query) - 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.
|
|
10556
|
+
*
|
|
10557
|
+
* @see {@link POST_JobsByBatchIdRetry_Response} - The main response type definition
|
|
10558
|
+
* @see {@link HTTPValidationError} - The actual schema type definition
|
|
10559
|
+
*/
|
|
10560
|
+
export type POST_JobsByBatchIdRetry_Response_422 = HTTPValidationError
|
|
10561
|
+
|
|
10385
10562
|
/**
|
|
10386
10563
|
* Response types for GET Organizations endpoint
|
|
10387
10564
|
*
|
package/src/helpers/schemas.d.ts
CHANGED
|
@@ -3924,6 +3924,22 @@ export type JobBatchMetadata = components['schemas']['JobBatchMetadataResponse']
|
|
|
3924
3924
|
* @see {@link components} - The OpenAPI components schema definition
|
|
3925
3925
|
*/
|
|
3926
3926
|
export type JobBatchRequest = components['schemas']['JobBatchRequest'];
|
|
3927
|
+
/**
|
|
3928
|
+
* JobBatchRetryResponse
|
|
3929
|
+
*
|
|
3930
|
+
* @remarks
|
|
3931
|
+
* Type alias for the `JobBatchRetryResponse` OpenAPI schema.
|
|
3932
|
+
* This type represents jobbatchretryresponse data structures used in API requests and responses.
|
|
3933
|
+
*
|
|
3934
|
+
* @example
|
|
3935
|
+
* ```typescript
|
|
3936
|
+
* const response = await api.getJobBatchRetry();
|
|
3937
|
+
* const item: JobBatchRetry = response.results;
|
|
3938
|
+
* ```
|
|
3939
|
+
*
|
|
3940
|
+
* @see {@link components} - The OpenAPI components schema definition
|
|
3941
|
+
*/
|
|
3942
|
+
export type JobBatchRetry = components['schemas']['JobBatchRetryResponse'];
|
|
3927
3943
|
/**
|
|
3928
3944
|
* JobBatchStatusResponse
|
|
3929
3945
|
*
|