@insurance-broker/api-client 5.16.0 → 5.18.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 +85 -2
  2. package/package.json +1 -1
package/dist/schema.d.ts CHANGED
@@ -769,7 +769,7 @@ export interface paths {
769
769
  *
770
770
  * **Every export is logged before the file is handed over.** A receipt row and an audit entry naming what was exported, by whom, how much and a SHA-256 of the exact bytes are committed in one transaction first; if that commit fails, no data leaves. The receipts are readable at `GET /exports` under a separate key.
771
771
  *
772
- * **Nothing is stored.** The bytes are produced for this response and never written to the object store, so there is no link to fetch later and no file to orphan (ADR-0038 section 7 and section 11). The price is a ceiling: a selection of more than 5000 charges is refused with a `422` naming the count, and the caller narrows by customer, by policy or by view.
772
+ * **Nothing is stored.** The bytes are produced for this response and never written to the object store, so there is no link to fetch later and no file to orphan (ADR-0038 section 7 and section 11). The price is a ceiling: a selection of more than 5000 charges is refused with a `422` naming the count, typed `urn:brokerplatform:problem:export-too-large` (#630), and the caller narrows by customer, by policy or by view.
773
773
  *
774
774
  * **A PDF stops far sooner — 500 charges.** It is laid out one paragraph per charge and rendered under a lock the whole process shares, so a hundred-page one would be paid for by every other tenant's documents. The `422` names the format and its own ceiling; the same selection as a CSV carries the full amount.
775
775
  *
@@ -1656,6 +1656,28 @@ export interface paths {
1656
1656
  patch?: never;
1657
1657
  trace?: never;
1658
1658
  };
1659
+ "/api/v1/customer/form-submissions/{id}/pinned-version": {
1660
+ parameters: {
1661
+ query?: never;
1662
+ header?: never;
1663
+ path?: never;
1664
+ cookie?: never;
1665
+ };
1666
+ get?: never;
1667
+ put?: never;
1668
+ /**
1669
+ * Moves their draft onto the version of its form that is live now.
1670
+ * @description Moves the customer's own draft onto the version of its form that is live now — the answer to a draft read with `pinnedVersionIsLive: false`. Every answer whose question survived is carried, and the ones the new version no longer asks are named in `droppedAnswerKeys`.
1671
+ *
1672
+ * **A `409` here is a settled fact, and `type` says which** (#459, #470). `urn:brokerplatform:problem:product-not-open-to-new-business` means the product is no longer offered, or no longer exists, so the draft stays on the version it has. `urn:brokerplatform:problem:form-has-no-live-version` means the broker took the form's live version down and there is nothing to move onto. `urn:brokerplatform:problem:draft-already-on-live-version` means there is nothing to move: the draft already answers the live version. `urn:brokerplatform:problem:submission-already-submitted` means the form has been submitted and is never moved. `urn:brokerplatform:problem:form-version-unreadable` means the version it is on, or the one it would move onto, is in a schema this engine cannot read. `urn:brokerplatform:problem:recorded-answers-unreadable` means the answers saved so far cannot be read, so nothing could be carried; saving them again replaces them. `urn:brokerplatform:problem:concurrency-conflict` means another of their devices wrote first; read again and retry.
1673
+ */
1674
+ post: operations["RepinCustomerFormSubmission"];
1675
+ delete?: never;
1676
+ options?: never;
1677
+ head?: never;
1678
+ patch?: never;
1679
+ trace?: never;
1680
+ };
1659
1681
  "/api/v1/form-submissions/{id}/attachments/{evidenceKey}": {
1660
1682
  parameters: {
1661
1683
  query?: never;
@@ -5704,7 +5726,12 @@ export interface paths {
5704
5726
  };
5705
5727
  get?: never;
5706
5728
  put?: never;
5707
- /** Takes exactly one option on exactly one presented version. Terminal. */
5729
+ /**
5730
+ * Takes exactly one option on exactly one presented version. Terminal.
5731
+ * @description Accepts one option on the version that is presented now. Accepting is terminal: the quote request is settled and no further decision is recorded on it.
5732
+ *
5733
+ * **An option whose premium is above the approval limit the acting member's role carries is a `409` typed `urn:brokerplatform:problem:acceptance-above-approval-limit`** (#197, #630). The limit is the broker's configuration, not the caller's permission, so retrying never helps: a member whose role carries a higher limit accepts it, or the caller accepts a smaller option. The other `409`s — a second acceptance, an option whose price has lapsed, a superseded version, a lost update — say which in their `detail`.
5734
+ */
5708
5735
  post: operations["AcceptCustomerQuote"];
5709
5736
  delete?: never;
5710
5737
  options?: never;
@@ -5869,6 +5896,8 @@ export interface paths {
5869
5896
  /**
5870
5897
  * Keep a category for a period of this broker's own
5871
5898
  * @description Records a deliberate departure from the platform's default. A category carrying a minimum is configurable upward only: an audit trail a tenant can shorten is a weaker control than one they cannot, and the party most motivated to shorten it is the party under investigation (ADR-0038 section 8).
5899
+ *
5900
+ * **A period beneath the category's minimum is a `422` typed `urn:brokerplatform:problem:retention-below-minimum`** (#630), carrying the category in a `categoryKey` field. It is a refusal of the number supplied: a longer period is accepted, a shorter one never is.
5872
5901
  */
5873
5902
  put: operations["SetRetentionOverride"];
5874
5903
  post?: never;
@@ -5918,6 +5947,8 @@ export interface paths {
5918
5947
  /**
5919
5948
  * End a hold, keeping the record of it
5920
5949
  * @description The hold row is never deleted: why a record was still here in 2031 must be answerable in 2032. A reason is required, because this is the act that exposes a record to destruction.
5950
+ *
5951
+ * **Releasing a hold that is already released is a `409` typed `urn:brokerplatform:problem:legal-hold-already-released`** (#630): retrying cannot change it, so read the hold back. The other `409` is a lost update (ADR-0023): somebody else wrote the hold first, and a retry can succeed.
5921
5952
  */
5922
5953
  post: operations["ReleaseLegalHold"];
5923
5954
  delete?: never;
@@ -7140,6 +7171,11 @@ export interface components {
7140
7171
  /** Format: date-time */
7141
7172
  openedAtUtc: string;
7142
7173
  };
7174
+ CustomerRepinnedSubmissionResponse: {
7175
+ submission: components["schemas"]["CustomerFormSubmissionResponse"];
7176
+ carriedAnswerKeys: string[];
7177
+ droppedAnswerKeys: string[];
7178
+ };
7143
7179
  CustomerResponse: {
7144
7180
  /** Format: uuid */
7145
7181
  id: string;
@@ -13633,6 +13669,53 @@ export interface operations {
13633
13669
  };
13634
13670
  };
13635
13671
  };
13672
+ RepinCustomerFormSubmission: {
13673
+ parameters: {
13674
+ query?: never;
13675
+ header?: {
13676
+ /** @description The organisation to act for: one of the identifiers GET /api/v1/customer/contexts lists. Omit it, or send it empty, to act for your own account; there is no mode in which it becomes mandatory. A value you hold no active membership of, or one that is not an organisation identifier, is refused with 403 naming nothing, and never quietly treated as your own account. */
13677
+ "X-Broker-Acting-For"?: components["parameters"]["ActingFor"];
13678
+ };
13679
+ path: {
13680
+ id: string;
13681
+ };
13682
+ cookie?: never;
13683
+ };
13684
+ requestBody?: never;
13685
+ responses: {
13686
+ /** @description OK */
13687
+ 200: {
13688
+ headers: {
13689
+ /** @description The party this request actually acted for. Present, carrying the organisation identifier, when it acted for an organisation; absent when it acted for your own account. It mirrors the request header, so it can be sent back unchanged. Compare it with what you meant to send: it is the only way to see that a request you meant for an organisation was made personally. */
13690
+ "X-Broker-Acting-For"?: string;
13691
+ [name: string]: unknown;
13692
+ };
13693
+ content: {
13694
+ "application/json": components["schemas"]["CustomerRepinnedSubmissionResponse"];
13695
+ };
13696
+ };
13697
+ /** @description Not Found */
13698
+ 404: {
13699
+ headers: {
13700
+ /** @description The party this request actually acted for. Present, carrying the organisation identifier, when it acted for an organisation; absent when it acted for your own account. It mirrors the request header, so it can be sent back unchanged. Compare it with what you meant to send: it is the only way to see that a request you meant for an organisation was made personally. */
13701
+ "X-Broker-Acting-For"?: string;
13702
+ [name: string]: unknown;
13703
+ };
13704
+ content?: never;
13705
+ };
13706
+ /** @description Conflict. A type of urn:brokerplatform:problem:concurrency-conflict means someone else changed the record first and nothing was written: read it again and decide again. Any other type is a conflict this operation decided itself, and retrying it unchanged will not help. */
13707
+ 409: {
13708
+ headers: {
13709
+ /** @description The party this request actually acted for. Present, carrying the organisation identifier, when it acted for an organisation; absent when it acted for your own account. It mirrors the request header, so it can be sent back unchanged. Compare it with what you meant to send: it is the only way to see that a request you meant for an organisation was made personally. */
13710
+ "X-Broker-Acting-For"?: string;
13711
+ [name: string]: unknown;
13712
+ };
13713
+ content: {
13714
+ "application/problem+json": components["schemas"]["ConcurrencyConflictProblem"] | components["schemas"]["ProblemDetails"];
13715
+ };
13716
+ };
13717
+ };
13718
+ };
13636
13719
  UploadSubmissionAttachment: {
13637
13720
  parameters: {
13638
13721
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@insurance-broker/api-client",
3
- "version": "5.16.0",
3
+ "version": "5.18.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,