@insurance-broker/api-client 5.40.0 → 5.42.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 +183 -2
  2. package/package.json +1 -1
package/dist/schema.d.ts CHANGED
@@ -2962,7 +2962,10 @@ export interface paths {
2962
2962
  /** This customer's invitations and their lifecycle. Never the code or its hash. */
2963
2963
  get: operations["ListCustomerInvitations"];
2964
2964
  put?: never;
2965
- /** Issues a single-use code the customer redeems to attach a sign-in account. The code is shown once. */
2965
+ /**
2966
+ * Issues a single-use code the customer redeems to attach a sign-in account. The code is shown once.
2967
+ * @description The code is returned once and is for the member of staff to hand to the customer. Issuing it also creates the customer's sign-in account, where the deployment has enabled that, and the sign-in service emails the customer a link to verify their address and choose a password. If no such email arrives, the customer may already have an account: they sign in with it, or use "Forgot password" on the sign-in page with the address the invitation was issued to. Whether an account already existed is never reported.
2968
+ */
2966
2969
  post: operations["IssueCustomerInvitation"];
2967
2970
  delete?: never;
2968
2971
  options?: never;
@@ -3843,7 +3846,11 @@ export interface paths {
3843
3846
  */
3844
3847
  get: operations["ListMembers"];
3845
3848
  put?: never;
3846
- post?: never;
3849
+ /**
3850
+ * Gives a person with a staff account access to this broker, holding the named roles.
3851
+ * @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.
3852
+ */
3853
+ post: operations["InviteMember"];
3847
3854
  delete?: never;
3848
3855
  options?: never;
3849
3856
  head?: never;
@@ -3870,6 +3877,30 @@ export interface paths {
3870
3877
  patch?: never;
3871
3878
  trace?: never;
3872
3879
  };
3880
+ "/api/v1/members/{membershipId}/roles/{roleId}": {
3881
+ parameters: {
3882
+ query?: never;
3883
+ header?: never;
3884
+ path?: never;
3885
+ cookie?: never;
3886
+ };
3887
+ get?: never;
3888
+ /**
3889
+ * Gives a member of staff one of this broker's roles. Idempotent.
3890
+ * @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.
3891
+ */
3892
+ put: operations["AssignMemberRole"];
3893
+ post?: never;
3894
+ /**
3895
+ * Takes one of this broker's roles away from a member of staff. Idempotent.
3896
+ * @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.
3897
+ */
3898
+ delete: operations["RemoveMemberRole"];
3899
+ options?: never;
3900
+ head?: never;
3901
+ patch?: never;
3902
+ trace?: never;
3903
+ };
3873
3904
  "/api/v1/staff": {
3874
3905
  parameters: {
3875
3906
  query?: never;
@@ -8474,6 +8505,11 @@ export interface components {
8474
8505
  /** Format: date-time */
8475
8506
  revokedAtUtc: null | string;
8476
8507
  };
8508
+ InviteMemberRequest: {
8509
+ subjectId: null | string;
8510
+ displayName: null | string;
8511
+ roleIds: null | string[];
8512
+ };
8477
8513
  InviteOrganisationMemberRequest: {
8478
8514
  email: null | string;
8479
8515
  role: null | string;
@@ -19698,6 +19734,55 @@ export interface operations {
19698
19734
  };
19699
19735
  };
19700
19736
  };
19737
+ InviteMember: {
19738
+ parameters: {
19739
+ query?: never;
19740
+ header?: never;
19741
+ path?: never;
19742
+ cookie?: never;
19743
+ };
19744
+ requestBody: {
19745
+ content: {
19746
+ "application/json": components["schemas"]["InviteMemberRequest"];
19747
+ };
19748
+ };
19749
+ responses: {
19750
+ /** @description Created */
19751
+ 201: {
19752
+ headers: {
19753
+ [name: string]: unknown;
19754
+ };
19755
+ content: {
19756
+ "application/json": components["schemas"]["MemberResponse"];
19757
+ };
19758
+ };
19759
+ /** @description Bad Request */
19760
+ 400: {
19761
+ headers: {
19762
+ [name: string]: unknown;
19763
+ };
19764
+ content: {
19765
+ "application/problem+json": components["schemas"]["HttpValidationProblemDetails"];
19766
+ };
19767
+ };
19768
+ /** @description Forbidden */
19769
+ 403: {
19770
+ headers: {
19771
+ [name: string]: unknown;
19772
+ };
19773
+ content?: never;
19774
+ };
19775
+ /** @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. */
19776
+ 409: {
19777
+ headers: {
19778
+ [name: string]: unknown;
19779
+ };
19780
+ content: {
19781
+ "application/problem+json": components["schemas"]["ConcurrencyConflictProblem"] | components["schemas"]["ProblemDetails"];
19782
+ };
19783
+ };
19784
+ };
19785
+ };
19701
19786
  RevokeMembership: {
19702
19787
  parameters: {
19703
19788
  query?: never;
@@ -19756,6 +19841,102 @@ export interface operations {
19756
19841
  };
19757
19842
  };
19758
19843
  };
19844
+ AssignMemberRole: {
19845
+ parameters: {
19846
+ query?: never;
19847
+ header?: never;
19848
+ path: {
19849
+ membershipId: string;
19850
+ roleId: string;
19851
+ };
19852
+ cookie?: never;
19853
+ };
19854
+ requestBody?: never;
19855
+ responses: {
19856
+ /** @description OK */
19857
+ 200: {
19858
+ headers: {
19859
+ [name: string]: unknown;
19860
+ };
19861
+ content: {
19862
+ "application/json": components["schemas"]["MemberResponse"];
19863
+ };
19864
+ };
19865
+ /** @description Forbidden */
19866
+ 403: {
19867
+ headers: {
19868
+ [name: string]: unknown;
19869
+ };
19870
+ content?: never;
19871
+ };
19872
+ /** @description Not Found */
19873
+ 404: {
19874
+ headers: {
19875
+ [name: string]: unknown;
19876
+ };
19877
+ content: {
19878
+ "application/problem+json": components["schemas"]["ProblemDetails"];
19879
+ };
19880
+ };
19881
+ /** @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. */
19882
+ 409: {
19883
+ headers: {
19884
+ [name: string]: unknown;
19885
+ };
19886
+ content: {
19887
+ "application/problem+json": components["schemas"]["ConcurrencyConflictProblem"] | components["schemas"]["ProblemDetails"];
19888
+ };
19889
+ };
19890
+ };
19891
+ };
19892
+ RemoveMemberRole: {
19893
+ parameters: {
19894
+ query?: never;
19895
+ header?: never;
19896
+ path: {
19897
+ membershipId: string;
19898
+ roleId: string;
19899
+ };
19900
+ cookie?: never;
19901
+ };
19902
+ requestBody?: never;
19903
+ responses: {
19904
+ /** @description OK */
19905
+ 200: {
19906
+ headers: {
19907
+ [name: string]: unknown;
19908
+ };
19909
+ content: {
19910
+ "application/json": components["schemas"]["MemberResponse"];
19911
+ };
19912
+ };
19913
+ /** @description Forbidden */
19914
+ 403: {
19915
+ headers: {
19916
+ [name: string]: unknown;
19917
+ };
19918
+ content?: never;
19919
+ };
19920
+ /** @description Not Found */
19921
+ 404: {
19922
+ headers: {
19923
+ [name: string]: unknown;
19924
+ };
19925
+ content: {
19926
+ "application/problem+json": components["schemas"]["ProblemDetails"];
19927
+ };
19928
+ };
19929
+ /** @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. */
19930
+ 409: {
19931
+ headers: {
19932
+ [name: string]: unknown;
19933
+ };
19934
+ content: {
19935
+ "application/problem+json": components["schemas"]["ConcurrencyConflictProblem"] | components["schemas"]["ProblemDetails"];
19936
+ };
19937
+ };
19938
+ };
19939
+ };
19759
19940
  ResolveStaffNames: {
19760
19941
  parameters: {
19761
19942
  query?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@insurance-broker/api-client",
3
- "version": "5.40.0",
3
+ "version": "5.42.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,