@insurance-broker/api-client 5.13.0 → 5.14.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/dist/schema.d.ts +59 -0
- package/package.json +1 -1
package/dist/schema.d.ts
CHANGED
|
@@ -4054,6 +4054,34 @@ export interface paths {
|
|
|
4054
4054
|
patch?: never;
|
|
4055
4055
|
trace?: never;
|
|
4056
4056
|
};
|
|
4057
|
+
"/api/v1/me/capabilities": {
|
|
4058
|
+
parameters: {
|
|
4059
|
+
query?: never;
|
|
4060
|
+
header?: never;
|
|
4061
|
+
path?: never;
|
|
4062
|
+
cookie?: never;
|
|
4063
|
+
};
|
|
4064
|
+
/**
|
|
4065
|
+
* What the signed-in caller may do here, and what their broker's plan includes.
|
|
4066
|
+
* @description Clients read this once per session to hide controls the caller lacks. **It grants nothing**: every route still enforces its own permission and entitlement, so a stale answer costs a refusal, never an action.
|
|
4067
|
+
*
|
|
4068
|
+
* `permissions` are the keys the caller holds in the scope they are in, spelled as each route requires them. `features` are the on/off plan features switched on for the caller's broker, spelled as the `feature` extension of a `urn:brokerplatform:problem:feature-not-entitled` refusal names them; numeric allowances are never listed. Both arrays are sorted ordinally.
|
|
4069
|
+
*
|
|
4070
|
+
* Any authenticated caller may read their own: staff, customers and platform administrators. A platform administrator in the platform console receives their platform permissions and no features, because that console belongs to no broker. An authenticated customer not yet attached to a broker receives two empty arrays, and so does any caller who holds no permission where they are: `features` is never answered without at least one permission.
|
|
4071
|
+
*
|
|
4072
|
+
* A customer acting for an organisation (the `X-Broker-Acting-For` header) receives the union of their customer keys and the keys their organisation role grants. The answer describes the acting context of *this* request, so clients re-read it after switching between acting personally and acting for an organisation.
|
|
4073
|
+
*
|
|
4074
|
+
* Answered `Cache-Control: no-store`.
|
|
4075
|
+
*/
|
|
4076
|
+
get: operations["GetMyCapabilities"];
|
|
4077
|
+
put?: never;
|
|
4078
|
+
post?: never;
|
|
4079
|
+
delete?: never;
|
|
4080
|
+
options?: never;
|
|
4081
|
+
head?: never;
|
|
4082
|
+
patch?: never;
|
|
4083
|
+
trace?: never;
|
|
4084
|
+
};
|
|
4057
4085
|
"/api/v1/service-locations": {
|
|
4058
4086
|
parameters: {
|
|
4059
4087
|
query?: never;
|
|
@@ -6372,6 +6400,10 @@ export interface components {
|
|
|
6372
6400
|
/** Format: date-time */
|
|
6373
6401
|
updatedAtUtc: string;
|
|
6374
6402
|
};
|
|
6403
|
+
CallerCapabilitiesResponse: {
|
|
6404
|
+
permissions: string[];
|
|
6405
|
+
features: string[];
|
|
6406
|
+
};
|
|
6375
6407
|
CaptureLeadRequest: {
|
|
6376
6408
|
contactName: null | string;
|
|
6377
6409
|
email: null | string;
|
|
@@ -19445,6 +19477,33 @@ export interface operations {
|
|
|
19445
19477
|
};
|
|
19446
19478
|
};
|
|
19447
19479
|
};
|
|
19480
|
+
GetMyCapabilities: {
|
|
19481
|
+
parameters: {
|
|
19482
|
+
query?: never;
|
|
19483
|
+
header?: never;
|
|
19484
|
+
path?: never;
|
|
19485
|
+
cookie?: never;
|
|
19486
|
+
};
|
|
19487
|
+
requestBody?: never;
|
|
19488
|
+
responses: {
|
|
19489
|
+
/** @description OK */
|
|
19490
|
+
200: {
|
|
19491
|
+
headers: {
|
|
19492
|
+
[name: string]: unknown;
|
|
19493
|
+
};
|
|
19494
|
+
content: {
|
|
19495
|
+
"application/json": components["schemas"]["CallerCapabilitiesResponse"];
|
|
19496
|
+
};
|
|
19497
|
+
};
|
|
19498
|
+
/** @description Unauthorized */
|
|
19499
|
+
401: {
|
|
19500
|
+
headers: {
|
|
19501
|
+
[name: string]: unknown;
|
|
19502
|
+
};
|
|
19503
|
+
content?: never;
|
|
19504
|
+
};
|
|
19505
|
+
};
|
|
19506
|
+
};
|
|
19448
19507
|
ListServiceLocations: {
|
|
19449
19508
|
parameters: {
|
|
19450
19509
|
query?: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@insurance-broker/api-client",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.14.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,
|