@insurance-broker/api-client 5.52.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.
- package/dist/schema.d.ts +18 -3
- 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
|
-
/**
|
|
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.
|
|
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;
|
|
@@ -9047,12 +9060,14 @@ export interface components {
|
|
|
9047
9060
|
branchId: null | string;
|
|
9048
9061
|
/** Format: uuid */
|
|
9049
9062
|
teamId: null | string;
|
|
9063
|
+
isCaller: boolean;
|
|
9050
9064
|
};
|
|
9051
9065
|
MemberRoleResponse: {
|
|
9052
9066
|
/** Format: uuid */
|
|
9053
9067
|
roleId: string;
|
|
9054
9068
|
key: string;
|
|
9055
9069
|
name: string;
|
|
9070
|
+
permissionKeys: string[];
|
|
9056
9071
|
};
|
|
9057
9072
|
MissingTemplateValueResponse: {
|
|
9058
9073
|
key: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@insurance-broker/api-client",
|
|
3
|
-
"version": "5.
|
|
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,
|