@insurance-broker/api-client 4.20.0 → 5.0.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 +123 -8
  2. package/package.json +1 -1
package/dist/schema.d.ts CHANGED
@@ -8321,6 +8321,22 @@ export interface components {
8321
8321
  /** @description Why, in a sentence a person can act on. Prose: it will be reworded, so never parse it or key on it. */
8322
8322
  message: string;
8323
8323
  };
8324
+ /** @description RFC 9457 problem answered when a write that requires a precondition arrived without one: no If-Match, or If-Match: * (issue #517). Nothing was read or written. Read the record and send its concurrencyToken as If-Match. Branch on type, not on title or detail, which are human-readable and not fixed. */
8325
+ PreconditionRequiredProblem: {
8326
+ /**
8327
+ * @description Identifies the problem kind. A stable URN; it is not promised to resolve.
8328
+ * @constant
8329
+ */
8330
+ type: "urn:brokerplatform:problem:precondition-required";
8331
+ title: string;
8332
+ /**
8333
+ * Format: int32
8334
+ * @enum {integer}
8335
+ */
8336
+ status: 428;
8337
+ detail?: string;
8338
+ instance?: null | string;
8339
+ };
8324
8340
  PresentationBodyResponse: {
8325
8341
  version: components["schemas"]["PresentationVersionResponse"];
8326
8342
  body: string;
@@ -8630,6 +8646,32 @@ export interface components {
8630
8646
  /** Format: uuid */
8631
8647
  formSubmissionId: null | string;
8632
8648
  };
8649
+ /** @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. */
8650
+ RateLimitedProblem: {
8651
+ /**
8652
+ * @description Identifies the problem kind. A stable URN; it is not promised to resolve.
8653
+ * @constant
8654
+ */
8655
+ type: "urn:brokerplatform:problem:rate-limited";
8656
+ title: string;
8657
+ /**
8658
+ * Format: int32
8659
+ * @enum {integer}
8660
+ */
8661
+ status: 429;
8662
+ detail?: string;
8663
+ instance?: null | string;
8664
+ /**
8665
+ * Format: int32
8666
+ * @description The same whole number of seconds as the Retry-After header, for a client that cannot read response headers. At least 1.
8667
+ */
8668
+ retryAfterSeconds: number;
8669
+ /**
8670
+ * @description Whose allowance is spent: user means this caller's own, tenant means the one their organisation's people share.
8671
+ * @enum {string}
8672
+ */
8673
+ budget: "user" | "tenant";
8674
+ };
8633
8675
  RebrandTenantRequest: {
8634
8676
  logoUrl: null | string;
8635
8677
  primaryColour: null | string;
@@ -10546,6 +10588,17 @@ export interface operations {
10546
10588
  "application/problem+json": components["schemas"]["HttpValidationProblemDetails"];
10547
10589
  };
10548
10590
  };
10591
+ /** @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. */
10592
+ 429: {
10593
+ headers: {
10594
+ /** @description Whole seconds to wait before retrying; at least 1. */
10595
+ "Retry-After": number;
10596
+ [name: string]: unknown;
10597
+ };
10598
+ content: {
10599
+ "application/problem+json": components["schemas"]["RateLimitedProblem"];
10600
+ };
10601
+ };
10549
10602
  };
10550
10603
  };
10551
10604
  GetStatement: {
@@ -10775,6 +10828,17 @@ export interface operations {
10775
10828
  "application/problem+json": components["schemas"]["ProblemDetails"];
10776
10829
  };
10777
10830
  };
10831
+ /** @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. */
10832
+ 429: {
10833
+ headers: {
10834
+ /** @description Whole seconds to wait before retrying; at least 1. */
10835
+ "Retry-After": number;
10836
+ [name: string]: unknown;
10837
+ };
10838
+ content: {
10839
+ "application/problem+json": components["schemas"]["RateLimitedProblem"];
10840
+ };
10841
+ };
10778
10842
  };
10779
10843
  };
10780
10844
  ListExportReceipts: {
@@ -11657,8 +11721,9 @@ export interface operations {
11657
11721
  UpdateProduct: {
11658
11722
  parameters: {
11659
11723
  query?: never;
11660
- header?: {
11661
- "If-Match"?: string;
11724
+ header: {
11725
+ /** @description Required. The concurrencyToken of the record as it was read, sent back unchanged. A write without it, or with *, is refused with 428; a token that is no longer current is refused with 409 (issue #517, client 5.0.0). */
11726
+ "If-Match": string;
11662
11727
  };
11663
11728
  path: {
11664
11729
  id: string;
@@ -11705,13 +11770,23 @@ export interface operations {
11705
11770
  "application/problem+json": components["schemas"]["ConcurrencyConflictProblem"] | components["schemas"]["ProblemDetails"];
11706
11771
  };
11707
11772
  };
11773
+ /** @description Precondition Required (RFC 6585). The request carried no If-Match, or carried If-Match: *, which protects nothing. Nothing was read or written. Read the record, then send its concurrencyToken as If-Match. */
11774
+ 428: {
11775
+ headers: {
11776
+ [name: string]: unknown;
11777
+ };
11778
+ content: {
11779
+ "application/problem+json": components["schemas"]["PreconditionRequiredProblem"];
11780
+ };
11781
+ };
11708
11782
  };
11709
11783
  };
11710
11784
  ReclassifyProduct: {
11711
11785
  parameters: {
11712
11786
  query?: never;
11713
- header?: {
11714
- "If-Match"?: string;
11787
+ header: {
11788
+ /** @description Required. The concurrencyToken of the record as it was read, sent back unchanged. A write without it, or with *, is refused with 428; a token that is no longer current is refused with 409 (issue #517, client 5.0.0). */
11789
+ "If-Match": string;
11715
11790
  };
11716
11791
  path: {
11717
11792
  id: string;
@@ -11758,13 +11833,23 @@ export interface operations {
11758
11833
  "application/problem+json": components["schemas"]["ConcurrencyConflictProblem"] | components["schemas"]["ProblemDetails"];
11759
11834
  };
11760
11835
  };
11836
+ /** @description Precondition Required (RFC 6585). The request carried no If-Match, or carried If-Match: *, which protects nothing. Nothing was read or written. Read the record, then send its concurrencyToken as If-Match. */
11837
+ 428: {
11838
+ headers: {
11839
+ [name: string]: unknown;
11840
+ };
11841
+ content: {
11842
+ "application/problem+json": components["schemas"]["PreconditionRequiredProblem"];
11843
+ };
11844
+ };
11761
11845
  };
11762
11846
  };
11763
11847
  ActivateProduct: {
11764
11848
  parameters: {
11765
11849
  query?: never;
11766
- header?: {
11767
- "If-Match"?: string;
11850
+ header: {
11851
+ /** @description Required. The concurrencyToken of the record as it was read, sent back unchanged. A write without it, or with *, is refused with 428; a token that is no longer current is refused with 409 (issue #517, client 5.0.0). */
11852
+ "If-Match": string;
11768
11853
  };
11769
11854
  path: {
11770
11855
  id: string;
@@ -11798,13 +11883,23 @@ export interface operations {
11798
11883
  "application/problem+json": components["schemas"]["ConcurrencyConflictProblem"] | components["schemas"]["ProblemDetails"];
11799
11884
  };
11800
11885
  };
11886
+ /** @description Precondition Required (RFC 6585). The request carried no If-Match, or carried If-Match: *, which protects nothing. Nothing was read or written. Read the record, then send its concurrencyToken as If-Match. */
11887
+ 428: {
11888
+ headers: {
11889
+ [name: string]: unknown;
11890
+ };
11891
+ content: {
11892
+ "application/problem+json": components["schemas"]["PreconditionRequiredProblem"];
11893
+ };
11894
+ };
11801
11895
  };
11802
11896
  };
11803
11897
  WithdrawProduct: {
11804
11898
  parameters: {
11805
11899
  query?: never;
11806
- header?: {
11807
- "If-Match"?: string;
11900
+ header: {
11901
+ /** @description Required. The concurrencyToken of the record as it was read, sent back unchanged. A write without it, or with *, is refused with 428; a token that is no longer current is refused with 409 (issue #517, client 5.0.0). */
11902
+ "If-Match": string;
11808
11903
  };
11809
11904
  path: {
11810
11905
  id: string;
@@ -11838,6 +11933,15 @@ export interface operations {
11838
11933
  "application/problem+json": components["schemas"]["ConcurrencyConflictProblem"] | components["schemas"]["ProblemDetails"];
11839
11934
  };
11840
11935
  };
11936
+ /** @description Precondition Required (RFC 6585). The request carried no If-Match, or carried If-Match: *, which protects nothing. Nothing was read or written. Read the record, then send its concurrencyToken as If-Match. */
11937
+ 428: {
11938
+ headers: {
11939
+ [name: string]: unknown;
11940
+ };
11941
+ content: {
11942
+ "application/problem+json": components["schemas"]["PreconditionRequiredProblem"];
11943
+ };
11944
+ };
11841
11945
  };
11842
11946
  };
11843
11947
  AttachProductInsurer: {
@@ -20027,6 +20131,17 @@ export interface operations {
20027
20131
  "application/problem+json": components["schemas"]["UnrenderableTemplateProblem"] | components["schemas"]["UnpublishableTemplateBodyProblem"];
20028
20132
  };
20029
20133
  };
20134
+ /** @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. */
20135
+ 429: {
20136
+ headers: {
20137
+ /** @description Whole seconds to wait before retrying; at least 1. */
20138
+ "Retry-After": number;
20139
+ [name: string]: unknown;
20140
+ };
20141
+ content: {
20142
+ "application/problem+json": components["schemas"]["RateLimitedProblem"];
20143
+ };
20144
+ };
20030
20145
  };
20031
20146
  };
20032
20147
  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": "5.0.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,