@insurance-broker/api-client 5.12.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.
Files changed (2) hide show
  1. package/dist/schema.d.ts +148 -0
  2. package/package.json +1 -1
package/dist/schema.d.ts CHANGED
@@ -3555,6 +3555,26 @@ export interface paths {
3555
3555
  patch?: never;
3556
3556
  trace?: never;
3557
3557
  };
3558
+ "/api/v1/members/{membershipId}/revocation": {
3559
+ parameters: {
3560
+ query?: never;
3561
+ header?: never;
3562
+ path?: never;
3563
+ cookie?: never;
3564
+ };
3565
+ get?: never;
3566
+ put?: never;
3567
+ /**
3568
+ * Withdraws a member of staff's access to this broker permanently. Terminal.
3569
+ * @description Every request from that person to this broker that starts after the revocation commits is refused; one already past authorization completes. Their identity-provider account is not changed. Revoking a membership that is already revoked answers it as it stands and changes nothing. A caller may not revoke their own membership. A revoked membership cannot be restored.
3570
+ */
3571
+ post: operations["RevokeMembership"];
3572
+ delete?: never;
3573
+ options?: never;
3574
+ head?: never;
3575
+ patch?: never;
3576
+ trace?: never;
3577
+ };
3558
3578
  "/api/v1/staff": {
3559
3579
  parameters: {
3560
3580
  query?: never;
@@ -4034,6 +4054,34 @@ export interface paths {
4034
4054
  patch?: never;
4035
4055
  trace?: never;
4036
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
+ };
4037
4085
  "/api/v1/service-locations": {
4038
4086
  parameters: {
4039
4087
  query?: never;
@@ -6352,6 +6400,10 @@ export interface components {
6352
6400
  /** Format: date-time */
6353
6401
  updatedAtUtc: string;
6354
6402
  };
6403
+ CallerCapabilitiesResponse: {
6404
+ permissions: string[];
6405
+ features: string[];
6406
+ };
6355
6407
  CaptureLeadRequest: {
6356
6408
  contactName: null | string;
6357
6409
  email: null | string;
@@ -9288,6 +9340,17 @@ export interface components {
9288
9340
  /** Format: int32 */
9289
9341
  bodySchemaVersion: null | number | string;
9290
9342
  };
9343
+ RevokedMembershipResponse: {
9344
+ /** Format: uuid */
9345
+ membershipId: string;
9346
+ subjectId: string;
9347
+ reason: null | string;
9348
+ /** Format: date-time */
9349
+ revokedAtUtc: null | string;
9350
+ };
9351
+ RevokeMembershipRequest: {
9352
+ reason: null | string;
9353
+ };
9291
9354
  RoleResponse: {
9292
9355
  /** Format: uuid */
9293
9356
  id: string;
@@ -18125,6 +18188,64 @@ export interface operations {
18125
18188
  };
18126
18189
  };
18127
18190
  };
18191
+ RevokeMembership: {
18192
+ parameters: {
18193
+ query?: never;
18194
+ header?: never;
18195
+ path: {
18196
+ membershipId: string;
18197
+ };
18198
+ cookie?: never;
18199
+ };
18200
+ requestBody: {
18201
+ content: {
18202
+ "application/json": components["schemas"]["RevokeMembershipRequest"];
18203
+ };
18204
+ };
18205
+ responses: {
18206
+ /** @description OK */
18207
+ 200: {
18208
+ headers: {
18209
+ [name: string]: unknown;
18210
+ };
18211
+ content: {
18212
+ "application/json": components["schemas"]["RevokedMembershipResponse"];
18213
+ };
18214
+ };
18215
+ /** @description Bad Request */
18216
+ 400: {
18217
+ headers: {
18218
+ [name: string]: unknown;
18219
+ };
18220
+ content: {
18221
+ "application/problem+json": components["schemas"]["ProblemDetails"];
18222
+ };
18223
+ };
18224
+ /** @description Forbidden */
18225
+ 403: {
18226
+ headers: {
18227
+ [name: string]: unknown;
18228
+ };
18229
+ content?: never;
18230
+ };
18231
+ /** @description Not Found */
18232
+ 404: {
18233
+ headers: {
18234
+ [name: string]: unknown;
18235
+ };
18236
+ content?: never;
18237
+ };
18238
+ /** @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. */
18239
+ 409: {
18240
+ headers: {
18241
+ [name: string]: unknown;
18242
+ };
18243
+ content: {
18244
+ "application/problem+json": components["schemas"]["ConcurrencyConflictProblem"] | components["schemas"]["ProblemDetails"];
18245
+ };
18246
+ };
18247
+ };
18248
+ };
18128
18249
  ResolveStaffNames: {
18129
18250
  parameters: {
18130
18251
  query?: {
@@ -19356,6 +19477,33 @@ export interface operations {
19356
19477
  };
19357
19478
  };
19358
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
+ };
19359
19507
  ListServiceLocations: {
19360
19508
  parameters: {
19361
19509
  query?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@insurance-broker/api-client",
3
- "version": "5.12.0",
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,