@insurance-broker/api-client 4.20.0 → 4.21.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.
Files changed (2) hide show
  1. package/dist/schema.d.ts +59 -0
  2. package/package.json +1 -1
package/dist/schema.d.ts CHANGED
@@ -8630,6 +8630,32 @@ export interface components {
8630
8630
  /** Format: uuid */
8631
8631
  formSubmissionId: null | string;
8632
8632
  };
8633
+ /** @description RFC 9457 problem answered when a request to render, produce or export was refused because a rate limit's budget is spent (ADR-0050). Nothing was done. Branch on type, not on title or detail, which are human-readable and not fixed. */
8634
+ RateLimitedProblem: {
8635
+ /**
8636
+ * @description Identifies the problem kind. A stable URN; it is not promised to resolve.
8637
+ * @constant
8638
+ */
8639
+ type: "urn:brokerplatform:problem:rate-limited";
8640
+ title: string;
8641
+ /**
8642
+ * Format: int32
8643
+ * @enum {integer}
8644
+ */
8645
+ status: 429;
8646
+ detail?: string;
8647
+ instance?: null | string;
8648
+ /**
8649
+ * Format: int32
8650
+ * @description The same whole number of seconds as the Retry-After header, for a client that cannot read response headers. At least 1.
8651
+ */
8652
+ retryAfterSeconds: number;
8653
+ /**
8654
+ * @description Whose allowance is spent: user means this caller's own, tenant means the one their organisation's people share.
8655
+ * @enum {string}
8656
+ */
8657
+ budget: "user" | "tenant";
8658
+ };
8633
8659
  RebrandTenantRequest: {
8634
8660
  logoUrl: null | string;
8635
8661
  primaryColour: null | string;
@@ -10546,6 +10572,17 @@ export interface operations {
10546
10572
  "application/problem+json": components["schemas"]["HttpValidationProblemDetails"];
10547
10573
  };
10548
10574
  };
10575
+ /** @description Too Many Requests (ADR-0050). This operation renders, produces or exports, and the caller's own budget for such work, or their organisation's, is spent. Nothing was done: no document, statement, export or receipt exists for this request. Wait the number of seconds in Retry-After (also in retryAfterSeconds) before trying again. */
10576
+ 429: {
10577
+ headers: {
10578
+ /** @description Whole seconds to wait before retrying; at least 1. */
10579
+ "Retry-After": number;
10580
+ [name: string]: unknown;
10581
+ };
10582
+ content: {
10583
+ "application/problem+json": components["schemas"]["RateLimitedProblem"];
10584
+ };
10585
+ };
10549
10586
  };
10550
10587
  };
10551
10588
  GetStatement: {
@@ -10775,6 +10812,17 @@ export interface operations {
10775
10812
  "application/problem+json": components["schemas"]["ProblemDetails"];
10776
10813
  };
10777
10814
  };
10815
+ /** @description Too Many Requests (ADR-0050). This operation renders, produces or exports, and the caller's own budget for such work, or their organisation's, is spent. Nothing was done: no document, statement, export or receipt exists for this request. Wait the number of seconds in Retry-After (also in retryAfterSeconds) before trying again. */
10816
+ 429: {
10817
+ headers: {
10818
+ /** @description Whole seconds to wait before retrying; at least 1. */
10819
+ "Retry-After": number;
10820
+ [name: string]: unknown;
10821
+ };
10822
+ content: {
10823
+ "application/problem+json": components["schemas"]["RateLimitedProblem"];
10824
+ };
10825
+ };
10778
10826
  };
10779
10827
  };
10780
10828
  ListExportReceipts: {
@@ -20027,6 +20075,17 @@ export interface operations {
20027
20075
  "application/problem+json": components["schemas"]["UnrenderableTemplateProblem"] | components["schemas"]["UnpublishableTemplateBodyProblem"];
20028
20076
  };
20029
20077
  };
20078
+ /** @description Too Many Requests (ADR-0050). This operation renders, produces or exports, and the caller's own budget for such work, or their organisation's, is spent. Nothing was done: no document, statement, export or receipt exists for this request. Wait the number of seconds in Retry-After (also in retryAfterSeconds) before trying again. */
20079
+ 429: {
20080
+ headers: {
20081
+ /** @description Whole seconds to wait before retrying; at least 1. */
20082
+ "Retry-After": number;
20083
+ [name: string]: unknown;
20084
+ };
20085
+ content: {
20086
+ "application/problem+json": components["schemas"]["RateLimitedProblem"];
20087
+ };
20088
+ };
20030
20089
  };
20031
20090
  };
20032
20091
  ReadRenewalLeadTimes: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@insurance-broker/api-client",
3
- "version": "4.20.0",
3
+ "version": "4.21.0",
4
4
  "description": "Generated TypeScript client for the Insurance Broker Platform API. Do not edit by hand: regenerate with scripts/update-api-contract.",
5
5
  "license": "UNLICENSED",
6
6
  "private": false,