@insurance-broker/api-client 2.0.0 → 2.3.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 +22 -0
  2. package/package.json +1 -1
package/dist/schema.d.ts CHANGED
@@ -3336,6 +3336,8 @@ export interface paths {
3336
3336
  * **Nothing here defines a feature.** A key that is not already in the catalogue is refused: which features exist is configuration, and a surface that could mint one would create keys no gate reads.
3337
3337
  *
3338
3338
  * **Every broker on this plan is affected**, including ones nobody named. This is the route on the platform with the widest blast radius per request, which is why it has a permission of its own rather than sharing tenant provisioning's.
3339
+ *
3340
+ * **Two operators granting the same feature at once both get an answer.** The loser of the insert race is put back through the change branch and answered `200`, exactly as if it had arrived a moment later. `409` is reserved for the row still moving after repeated attempts, and says to read the plan again and decide again.
3339
3341
  */
3340
3342
  post: operations["GrantPlanFeature"];
3341
3343
  delete?: never;
@@ -3392,6 +3394,8 @@ export interface paths {
3392
3394
  * **An expiry must be in the future.** An override that had already expired would look like something was granted when nothing was.
3393
3395
  *
3394
3396
  * `201` says the override is new; `200` says an existing one was restated. The whole row is restated rather than patched, because a value, a reason and an expiry only make sense together — a patched value under an old reason describes a decision that has since changed.
3397
+ *
3398
+ * **Two operators overriding the same feature at once both get an answer.** The loser of the insert race is put back through the change branch and answered `200`. `409` is reserved for the row still moving after repeated attempts.
3395
3399
  */
3396
3400
  post: operations["OverrideTenantEntitlement"];
3397
3401
  delete?: never;
@@ -15613,6 +15617,15 @@ export interface operations {
15613
15617
  };
15614
15618
  content?: never;
15615
15619
  };
15620
+ /** @description Conflict */
15621
+ 409: {
15622
+ headers: {
15623
+ [name: string]: unknown;
15624
+ };
15625
+ content: {
15626
+ "application/problem+json": components["schemas"]["ProblemDetails"];
15627
+ };
15628
+ };
15616
15629
  };
15617
15630
  };
15618
15631
  WithdrawPlanFeature: {
@@ -15742,6 +15755,15 @@ export interface operations {
15742
15755
  };
15743
15756
  content?: never;
15744
15757
  };
15758
+ /** @description Conflict */
15759
+ 409: {
15760
+ headers: {
15761
+ [name: string]: unknown;
15762
+ };
15763
+ content: {
15764
+ "application/problem+json": components["schemas"]["ProblemDetails"];
15765
+ };
15766
+ };
15745
15767
  };
15746
15768
  };
15747
15769
  WithdrawTenantEntitlement: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@insurance-broker/api-client",
3
- "version": "2.0.0",
3
+ "version": "2.3.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,