@insurance-broker/api-client 5.51.0 → 5.53.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 +147 -5
  2. package/package.json +1 -1
package/dist/schema.d.ts CHANGED
@@ -3939,7 +3939,12 @@ export interface paths {
3939
3939
  };
3940
3940
  get?: never;
3941
3941
  put?: never;
3942
- /** Records where one of this broker's people works and which desk they sit on. */
3942
+ /**
3943
+ * Records where one of this broker's people works and which desk they sit on.
3944
+ * @description A caller may place only a member every one of whose permission keys the caller holds, and may not place themselves.
3945
+ *
3946
+ * **Refusals.** `400`: no branch or team of this broker has that identifier (`GET /api/v1/branches` and `GET /api/v1/teams` list them). `403` `urn:brokerplatform:problem:permissions-beyond-caller`: the member holds a permission the caller does not; a `403` with no body means the caller does not hold `identity.members.manage`. `404` with no body: no member of this broker has that identifier. `409` `urn:brokerplatform:problem:member-self-administration`: the member is the caller (`isCaller` is true on them in `GET /api/v1/members`), and another administrator must place them. `409` `urn:brokerplatform:problem:member-revoked`: the member's access has been revoked. Problem details are written for the person using the screen and name no route.
3947
+ */
3943
3948
  post: operations["PlaceMember"];
3944
3949
  delete?: never;
3945
3950
  options?: never;
@@ -3956,13 +3961,15 @@ export interface paths {
3956
3961
  };
3957
3962
  /**
3958
3963
  * This broker's memberships, with status, roles and placement, oldest first.
3959
- * @description Paged by an opaque cursor: pass `nextCursor` back as `cursor` until it is null. `limit` is 25 by default and at most 100; zero or less means the default. `status` narrows the list to `Invited`, `Active`, `Suspended` or `Revoked`. A revoked member whose name has been erased comes back as "Former member of staff". Names are personal data.
3964
+ * @description Paged by an opaque cursor: pass `nextCursor` back as `cursor` until it is null. `limit` is 25 by default and at most 100; zero or less means the default. `status` narrows the list to `Invited`, `Active`, `Suspended` or `Revoked`. A revoked member whose name has been erased comes back as "Former member of staff". Names are personal data. Each role carries the permission keys it grants, so a client can tell which roles the caller may give or take, and `isCaller` marks the caller's own live membership, which the caller may not change, place or revoke.
3960
3965
  */
3961
3966
  get: operations["ListMembers"];
3962
3967
  put?: never;
3963
3968
  /**
3964
3969
  * Gives a person with a staff account access to this broker, holding the named roles.
3965
- * @description The subject must name an account that already exists in the staff realm; this platform does not create staff accounts. The membership is active at once, as the platform's own grant is: there is no acceptance step. At least one role is required, and each must hold only permissions the caller holds. A person who already has a live membership of this broker is refused 409.
3970
+ * @description The subject must name an account that already exists in the staff realm; this platform does not create staff accounts. The membership is active at once, as the platform's own grant is: there is no acceptance step. At least one role is required, and each must hold only permissions the caller holds.
3971
+ *
3972
+ * **Refusals.** A role identifier this broker does not have is a `400` validation problem against `roleIds`; `GET /api/v1/roles` lists the roles it has. A role holding a permission the caller does not hold is `403` `urn:brokerplatform:problem:permissions-beyond-caller`; a `403` with no body means the caller does not hold `identity.members.manage`. A person who already has a live membership of this broker is `409` `urn:brokerplatform:problem:already-a-member`: change what they hold with `PUT` or `DELETE /api/v1/members/{membershipId}/roles/{roleId}` instead. Problem details are written for the person using the screen and name no route.
3966
3973
  */
3967
3974
  post: operations["InviteMember"];
3968
3975
  delete?: never;
@@ -3983,6 +3990,8 @@ export interface paths {
3983
3990
  /**
3984
3991
  * Withdraws a member of staff's access to this broker permanently. Terminal.
3985
3992
  * @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.
3993
+ *
3994
+ * **Typed refusals.** `403` `urn:brokerplatform:problem:permissions-beyond-caller`: the member holds a permission the caller does not; a `403` with no body means the caller does not hold `identity.members.manage`. `409` `urn:brokerplatform:problem:member-self-administration`: the member is the caller (`isCaller` is true on them in `GET /api/v1/members`), and another administrator must do it.
3986
3995
  */
3987
3996
  post: operations["RevokeMembership"];
3988
3997
  delete?: never;
@@ -4002,12 +4011,16 @@ export interface paths {
4002
4011
  /**
4003
4012
  * Gives a member of staff one of this broker's roles. Idempotent.
4004
4013
  * @description The member can do what the role grants from their next request onward. The role must hold only permissions the caller holds. A caller may not change their own roles, and a revoked membership's roles are not changed. Assigning a role the member already holds answers the member as they stand and writes nothing.
4014
+ *
4015
+ * **Refusals, each with its own `type`.** `404` `urn:brokerplatform:problem:member-not-found`: no member of this broker has that identifier (`GET /api/v1/members` lists them). `404` `urn:brokerplatform:problem:role-not-found`: no role of this broker has that identifier (`GET /api/v1/roles` lists them). `403` `urn:brokerplatform:problem:permissions-beyond-caller`: the role holds a permission the caller does not; a `403` with no body means the caller does not hold `identity.members.manage`. `409` `urn:brokerplatform:problem:member-self-administration`: the member is the caller (`isCaller` is true on them), and another administrator must make the change. `409` `urn:brokerplatform:problem:member-revoked`: the member's access has been revoked, so their roles are a record. Problem details are written for the person using the screen and name no route.
4005
4016
  */
4006
4017
  put: operations["AssignMemberRole"];
4007
4018
  post?: never;
4008
4019
  /**
4009
4020
  * Takes one of this broker's roles away from a member of staff. Idempotent.
4010
4021
  * @description The member can no longer do what only that role granted from their next request onward. The role must hold only permissions the caller holds: a caller may not take away what they could not have given. A caller may not change their own roles, and a revoked membership's roles are not changed. Removing a role the member does not hold answers the member as they stand and writes nothing.
4022
+ *
4023
+ * **Refusals, each with its own `type`.** `404` `urn:brokerplatform:problem:member-not-found`: no member of this broker has that identifier (`GET /api/v1/members` lists them). `404` `urn:brokerplatform:problem:role-not-found`: no role of this broker has that identifier (`GET /api/v1/roles` lists them). `403` `urn:brokerplatform:problem:permissions-beyond-caller`: the role holds a permission the caller does not; a `403` with no body means the caller does not hold `identity.members.manage`. `409` `urn:brokerplatform:problem:member-self-administration`: the member is the caller (`isCaller` is true on them), and another administrator must make the change. `409` `urn:brokerplatform:problem:member-revoked`: the member's access has been revoked, so their roles are a record. Problem details are written for the person using the screen and name no route.
4011
4024
  */
4012
4025
  delete: operations["RemoveMemberRole"];
4013
4026
  options?: never;
@@ -4591,6 +4604,46 @@ export interface paths {
4591
4604
  patch?: never;
4592
4605
  trace?: never;
4593
4606
  };
4607
+ "/api/v1/service-locations/search": {
4608
+ parameters: {
4609
+ query?: never;
4610
+ header?: never;
4611
+ path?: never;
4612
+ cookie?: never;
4613
+ };
4614
+ /**
4615
+ * This broker's service locations, a page at a time, drafts included.
4616
+ * @description The maintenance view, paged: the same rows, filters and order (name, then identifier) as `GET /service-locations`, answered as `{ items, nextCursor }` so a directory of any size can be listed completely. Pass `nextCursor` back as `cursor`; a null one means this is the last page. A cursor names a position in the list, not the filters that produced it: start a new walk, without a cursor, when a filter changes. A cursor this list did not issue is a 400 on `cursor`. The bare list is unchanged, for the clients that already read it.
4617
+ */
4618
+ get: operations["SearchServiceLocations"];
4619
+ put?: never;
4620
+ post?: never;
4621
+ delete?: never;
4622
+ options?: never;
4623
+ head?: never;
4624
+ patch?: never;
4625
+ trace?: never;
4626
+ };
4627
+ "/api/v1/service-locations/{id}": {
4628
+ parameters: {
4629
+ query?: never;
4630
+ header?: never;
4631
+ path?: never;
4632
+ cookie?: never;
4633
+ };
4634
+ /**
4635
+ * One of this broker's service locations, whatever its state.
4636
+ * @description Another broker's location answers 404, exactly as one that does not exist. There is no delete: a location is taken out of use by withdrawing it (`POST .../withdrawal`), and a wrong draft is corrected rather than removed, because the audit trail and the attestation name the row (ADR-0048, amendment of 2026-10-28).
4637
+ */
4638
+ get: operations["GetServiceLocation"];
4639
+ put?: never;
4640
+ post?: never;
4641
+ delete?: never;
4642
+ options?: never;
4643
+ head?: never;
4644
+ patch?: never;
4645
+ trace?: never;
4646
+ };
4594
4647
  "/api/v1/service-locations/{id}/description": {
4595
4648
  parameters: {
4596
4649
  query?: never;
@@ -9007,12 +9060,14 @@ export interface components {
9007
9060
  branchId: null | string;
9008
9061
  /** Format: uuid */
9009
9062
  teamId: null | string;
9063
+ isCaller: boolean;
9010
9064
  };
9011
9065
  MemberRoleResponse: {
9012
9066
  /** Format: uuid */
9013
9067
  roleId: string;
9014
9068
  key: string;
9015
9069
  name: string;
9070
+ permissionKeys: string[];
9016
9071
  };
9017
9072
  MissingTemplateValueResponse: {
9018
9073
  key: string;
@@ -10471,11 +10526,18 @@ export interface components {
10471
10526
  };
10472
10527
  /** @enum {string} */
10473
10528
  ScanVerdict: "Quarantined" | "Clean" | "Infected" | "Unscannable";
10529
+ /** @enum {string} */
10530
+ ServiceLocationCategory: "BrokerBranch" | "InsurerOffice" | "ApprovedRepairer" | "Hospital" | "Assessor";
10531
+ ServiceLocationPage: {
10532
+ items: components["schemas"]["ServiceLocationResponse"][];
10533
+ nextCursor: null | string;
10534
+ };
10474
10535
  ServiceLocationResponse: {
10475
10536
  /** Format: uuid */
10476
10537
  id: string;
10477
- category: string;
10478
- status: string;
10538
+ category: components["schemas"]["ServiceLocationCategory"];
10539
+ categoryLabel: string;
10540
+ status: components["schemas"]["ServiceLocationStatus"];
10479
10541
  isVisibleToCustomers: boolean;
10480
10542
  name: string;
10481
10543
  description: null | string;
@@ -10499,6 +10561,8 @@ export interface components {
10499
10561
  /** Format: date-time */
10500
10562
  updatedAtUtc: string;
10501
10563
  };
10564
+ /** @enum {string} */
10565
+ ServiceLocationStatus: "Draft" | "Verified" | "Published";
10502
10566
  SetAcceptanceApprovalLimitRequest: {
10503
10567
  /** Format: double */
10504
10568
  maximumAmount: null | number | string;
@@ -22034,6 +22098,84 @@ export interface operations {
22034
22098
  };
22035
22099
  };
22036
22100
  };
22101
+ SearchServiceLocations: {
22102
+ parameters: {
22103
+ query?: {
22104
+ category?: string;
22105
+ status?: string;
22106
+ search?: string;
22107
+ cursor?: string;
22108
+ limit?: number | string;
22109
+ };
22110
+ header?: never;
22111
+ path?: never;
22112
+ cookie?: never;
22113
+ };
22114
+ requestBody?: never;
22115
+ responses: {
22116
+ /** @description OK */
22117
+ 200: {
22118
+ headers: {
22119
+ [name: string]: unknown;
22120
+ };
22121
+ content: {
22122
+ "application/json": components["schemas"]["ServiceLocationPage"];
22123
+ };
22124
+ };
22125
+ /** @description Bad Request */
22126
+ 400: {
22127
+ headers: {
22128
+ [name: string]: unknown;
22129
+ };
22130
+ content: {
22131
+ "application/problem+json": components["schemas"]["ProblemDetails"];
22132
+ };
22133
+ };
22134
+ /** @description Forbidden */
22135
+ 403: {
22136
+ headers: {
22137
+ [name: string]: unknown;
22138
+ };
22139
+ content?: never;
22140
+ };
22141
+ };
22142
+ };
22143
+ GetServiceLocation: {
22144
+ parameters: {
22145
+ query?: never;
22146
+ header?: never;
22147
+ path: {
22148
+ id: string;
22149
+ };
22150
+ cookie?: never;
22151
+ };
22152
+ requestBody?: never;
22153
+ responses: {
22154
+ /** @description OK */
22155
+ 200: {
22156
+ headers: {
22157
+ [name: string]: unknown;
22158
+ };
22159
+ content: {
22160
+ "application/json": components["schemas"]["ServiceLocationResponse"];
22161
+ };
22162
+ };
22163
+ /** @description Forbidden */
22164
+ 403: {
22165
+ headers: {
22166
+ [name: string]: unknown;
22167
+ };
22168
+ content?: never;
22169
+ };
22170
+ /** @description Not Found */
22171
+ 404: {
22172
+ headers: {
22173
+ [name: string]: unknown;
22174
+ };
22175
+ content?: never;
22176
+ };
22177
+ };
22178
+ };
22037
22179
  ReviseServiceLocation: {
22038
22180
  parameters: {
22039
22181
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@insurance-broker/api-client",
3
- "version": "5.51.0",
3
+ "version": "5.53.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,