@opusdns/api 1.63.0 → 1.64.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 CHANGED
@@ -3,7 +3,7 @@
3
3
  "@opusdns/api-spec-ts-generator": "^1.2.0"
4
4
  },
5
5
  "name": "@opusdns/api",
6
- "version": "1.63.0",
6
+ "version": "1.64.0",
7
7
  "description": "TypeScript types for the OpusDNS OpenAPI specification",
8
8
  "main": "./src/index.ts",
9
9
  "module": "./src/index.ts",
@@ -3491,10 +3491,14 @@ export const KEYS_JOB_BATCH_REQUEST = [
3491
3491
  ] as const satisfies (keyof JobBatchRequest)[];
3492
3492
 
3493
3493
  export const KEY_JOB_BATCH_RETRY_BATCH_ID = 'batch_id' satisfies keyof JobBatchRetry;
3494
+ export const KEY_JOB_BATCH_RETRY_BLOCKED_COUNT = 'blocked_count' satisfies keyof JobBatchRetry;
3495
+ export const KEY_JOB_BATCH_RETRY_QUEUED_COUNT = 'queued_count' satisfies keyof JobBatchRetry;
3494
3496
  export const KEY_JOB_BATCH_RETRY_RETRIED_COUNT = 'retried_count' satisfies keyof JobBatchRetry;
3495
3497
 
3496
3498
  export const KEYS_JOB_BATCH_RETRY = [
3497
3499
  KEY_JOB_BATCH_RETRY_BATCH_ID,
3500
+ KEY_JOB_BATCH_RETRY_BLOCKED_COUNT,
3501
+ KEY_JOB_BATCH_RETRY_QUEUED_COUNT,
3498
3502
  KEY_JOB_BATCH_RETRY_RETRIED_COUNT,
3499
3503
  ] as const satisfies (keyof JobBatchRetry)[];
3500
3504
 
package/src/openapi.yaml CHANGED
@@ -8055,8 +8055,19 @@ components:
8055
8055
  title: Batch Id
8056
8056
  type: string
8057
8057
  x-typeid-prefix: batch
8058
+ blocked_count:
8059
+ default: 0
8060
+ description: Number of retried jobs held behind the topic rate limit or
8061
+ backlog (BLOCKED)
8062
+ title: Blocked Count
8063
+ type: integer
8064
+ queued_count:
8065
+ default: 0
8066
+ description: Number of retried jobs dispatched immediately (QUEUED)
8067
+ title: Queued Count
8068
+ type: integer
8058
8069
  retried_count:
8059
- description: Number of FAILED/DEAD_LETTER jobs reset to QUEUED for retry
8070
+ description: Number of FAILED/DEAD_LETTER jobs reset for retry
8060
8071
  title: Retried Count
8061
8072
  type: integer
8062
8073
  required:
@@ -8342,8 +8353,8 @@ components:
8342
8353
  title: Started At
8343
8354
  status:
8344
8355
  $ref: '#/components/schemas/JobStatus'
8345
- description: 'Current job status: queued, running, succeeded, failed, canceled,
8346
- or dead_letter'
8356
+ description: 'Current job status: blocked, queued, paused, running, succeeded,
8357
+ failed, canceled, or dead_letter'
8347
8358
  required:
8348
8359
  - job_id
8349
8360
  - status
@@ -13870,7 +13881,7 @@ info:
13870
13881
  \n\n"
13871
13882
  summary: OpusDNS - your gateway to a seamless domain management experience.
13872
13883
  title: OpusDNS API
13873
- version: 2026-07-17-094205
13884
+ version: 2026-07-17-134537
13874
13885
  x-logo:
13875
13886
  altText: OpusDNS API Reference
13876
13887
  url: https://d24lr4zqs1tgqh.cloudfront.net/c9505a20-5ae1-406c-b060-d392569caebf.jpg
@@ -29773,21 +29784,26 @@ tags:
29773
29784
  \ (single) or is silently skipped (batch)\n- `queued`, `blocked`, `paused`, `running`\
29774
29785
  \ \u2014 still in progress; not touched\n\nCalling batch retry on a mixed-state\
29775
29786
  \ batch returns `retried_count` (the number of `failed` / `dead_letter` jobs that\
29776
- \ were re-queued); everything else is left alone. If the batch has no retryable\
29777
- \ jobs, `retried_count` is `0`.\n\n#### What happens to a retried job\n\nEach\
29778
- \ retried job is reset to a fresh attempt:\n\n- `status` \u2192 `queued`\n- `attempts`\
29779
- \ \u2192 `0`\n- `not_before` \u2192 now\n- `error_class` and `error_message` \u2192\
29780
- \ cleared\n- The job is republished for worker pickup\n\nThe original `payload`,\
29781
- \ `idempotency_key`, `correlation_id` (batch id), `max_attempts`, and backoff\
29782
- \ configuration are preserved. Each retry is processed under the same worker idempotency\
29783
- \ guarantees as the original \u2014 for billing operations specifically, a retried\
29784
- \ job will not double-charge an account that was already debited.\n\n#### Filtering\
29785
- \ by error type\n\nA batch may contain a mix of failures that you do and don't\
29786
- \ want to retry. For example, after adding funds to your account, you may want\
29787
- \ to retry only the jobs that failed with `BillingInsufficientFundsError`, while\
29788
- \ leaving alone jobs that failed for other reasons (e.g. an invalid domain name\
29789
- \ that should not be re-attempted).\n\nPass one or more `error_class` query parameters\
29790
- \ to filter:\n\n```\nPOST /v1/jobs/{batch_id}/retry?error_class=BillingInsufficientFundsError\n\
29787
+ \ were reset for retry); everything else is left alone. If the batch has no retryable\
29788
+ \ jobs, `retried_count` is `0`. The response also splits that total into `queued_count`\
29789
+ \ (jobs dispatched immediately) and `blocked_count` (jobs held behind the topic's\
29790
+ \ rate limit or backlog \u2014 these are released automatically as capacity frees\
29791
+ \ up).\n\n#### What happens to a retried job\n\nEach retried job is reset to a\
29792
+ \ fresh attempt:\n\n- `status` \u2192 `queued`, or `blocked` if the job's topic\
29793
+ \ is rate-limited and has no capacity (or a higher-priority backlog is waiting)\
29794
+ \ \u2014 a blocked job is released to `queued` automatically as capacity frees\
29795
+ \ up\n- `attempts` \u2192 `0`\n- `not_before` \u2192 now\n- `error_class` and\
29796
+ \ `error_message` \u2192 cleared\n- The job is republished for worker pickup once\
29797
+ \ it is `queued`\n\nThe original `payload`, `idempotency_key`, `correlation_id`\
29798
+ \ (batch id), `max_attempts`, and backoff configuration are preserved. Each retry\
29799
+ \ is processed under the same worker idempotency guarantees as the original \u2014\
29800
+ \ for billing operations specifically, a retried job will not double-charge an\
29801
+ \ account that was already debited.\n\n#### Filtering by error type\n\nA batch\
29802
+ \ may contain a mix of failures that you do and don't want to retry. For example,\
29803
+ \ after adding funds to your account, you may want to retry only the jobs that\
29804
+ \ failed with `BillingInsufficientFundsError`, while leaving alone jobs that failed\
29805
+ \ for other reasons (e.g. an invalid domain name that should not be re-attempted).\n\
29806
+ \nPass one or more `error_class` query parameters to filter:\n\n```\nPOST /v1/jobs/{batch_id}/retry?error_class=BillingInsufficientFundsError\n\
29791
29807
  POST /v1/jobs/{batch_id}/retry?error_class=BillingInsufficientFundsError&error_class=DomainRegistryTemporaryError\n\
29792
29808
  ```\n\nMultiple values are OR'd \u2014 a job is retried if its `error_class` matches\
29793
29809
  \ **any** of the supplied values. Omitting the filter retries all `failed` and\
package/src/schema.d.ts CHANGED
@@ -8053,9 +8053,21 @@ export interface components {
8053
8053
  * @example batch_01h45ytscbebyvny4gc8cr8ma2
8054
8054
  */
8055
8055
  batch_id: TypeId<"batch">;
8056
+ /**
8057
+ * Blocked Count
8058
+ * @description Number of retried jobs held behind the topic rate limit or backlog (BLOCKED)
8059
+ * @default 0
8060
+ */
8061
+ blocked_count: number;
8062
+ /**
8063
+ * Queued Count
8064
+ * @description Number of retried jobs dispatched immediately (QUEUED)
8065
+ * @default 0
8066
+ */
8067
+ queued_count: number;
8056
8068
  /**
8057
8069
  * Retried Count
8058
- * @description Number of FAILED/DEAD_LETTER jobs reset to QUEUED for retry
8070
+ * @description Number of FAILED/DEAD_LETTER jobs reset for retry
8059
8071
  */
8060
8072
  retried_count: number;
8061
8073
  };
@@ -8265,7 +8277,7 @@ export interface components {
8265
8277
  * @description Timestamp when job execution began (UTC)
8266
8278
  */
8267
8279
  started_at?: Date | null;
8268
- /** @description Current job status: queued, running, succeeded, failed, canceled, or dead_letter */
8280
+ /** @description Current job status: blocked, queued, paused, running, succeeded, failed, canceled, or dead_letter */
8269
8281
  status: components["schemas"]["JobStatus"];
8270
8282
  };
8271
8283
  /**