@insurance-broker/api-client 5.21.0 → 5.22.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 +259 -4
- package/package.json +1 -1
package/dist/schema.d.ts
CHANGED
|
@@ -3061,11 +3061,19 @@ export interface paths {
|
|
|
3061
3061
|
};
|
|
3062
3062
|
/**
|
|
3063
3063
|
* The ways this broker's staff may verify a customer before signing them out, in the broker's order.
|
|
3064
|
-
* @description The broker's closed set of verification methods (ADR-0049). A member of staff signing a customer out of every session picks one of these keys and the choice is recorded in the audit entry. The set is configuration, never
|
|
3064
|
+
* @description The broker's closed set of verification methods (ADR-0049). A member of staff signing a customer out of every session picks one of these keys and the choice is recorded in the audit entry. The set is configuration, never without an active method once configured; an empty list means this broker has not configured one yet, and staff-assisted sign-out is refused until it does.
|
|
3065
|
+
*
|
|
3066
|
+
* **Only active methods by default**, because only those can be chosen. `includeRetired=true` adds the retired ones, marked `isActive: false` with `retiredAtUtc`, for somebody managing the set (#648); they cannot be chosen and keep their keys.
|
|
3065
3067
|
*/
|
|
3066
3068
|
get: operations["ListCustomerVerificationMethods"];
|
|
3067
3069
|
put?: never;
|
|
3068
|
-
|
|
3070
|
+
/**
|
|
3071
|
+
* Add a way this broker's staff may verify a customer before signing them out
|
|
3072
|
+
* @description #648. `key` is a stable identifier — lower-case letters, digits and hyphens, at most 64 characters — unique within this broker and never changed or reused, because audit entries for staff sign-outs record it. `name` is what staff read, at most 120 characters; `description`, optional and at most 500, says what staff must actually have checked. Neither may hold control or invisible formatting characters. The method is appended to the end of the set and is active at once. A broker with no set may add its first method here.
|
|
3073
|
+
*
|
|
3074
|
+
* **Refusals.** `400` for a malformed field. `409` `urn:brokerplatform:problem:verification-method-key-taken` when this broker already has a method with that key, active or retired: choose another key, or reactivate the retired one.
|
|
3075
|
+
*/
|
|
3076
|
+
post: operations["AddCustomerVerificationMethod"];
|
|
3069
3077
|
delete?: never;
|
|
3070
3078
|
options?: never;
|
|
3071
3079
|
head?: never;
|
|
@@ -3087,7 +3095,7 @@ export interface paths {
|
|
|
3087
3095
|
*
|
|
3088
3096
|
* **Verify the customer first, then say how.** `verificationMethod` is a key from `GET /api/v1/customer-verification-methods`, this broker's closed set; `reason` is required, at most 500 characters, and is recorded with the method and the member of staff in the audit entry on the customer record (action `crm.customer.sessions-revoked-by-staff`). Tell the customer to change their password and secure their email account: signing out does not stop somebody who knows the password.
|
|
3089
3097
|
*
|
|
3090
|
-
* **Refusals.** `400` when either field is missing or the reason is too long. `404` when the customer is not this broker's. `409` with problem type `urn:brokerplatform:problem:verification-method-not-offered` when the method is not in this broker's set
|
|
3098
|
+
* **Refusals.** `400` when either field is missing or the reason is too long. `404` when the customer is not this broker's. `409` with problem type `urn:brokerplatform:problem:verification-method-not-offered` when the method is not in this broker's set, has been retired, or the broker has configured none — read the set and choose from it. `409` with no type when the customer has never attached a sign-in account, so has no session to end.
|
|
3091
3099
|
*
|
|
3092
3100
|
* **What it does not do yet.** It does not end the sessions at the identity provider or list them; those need the isolated identity-management component ADR-0049 describes.
|
|
3093
3101
|
*/
|
|
@@ -3115,6 +3123,70 @@ export interface paths {
|
|
|
3115
3123
|
patch?: never;
|
|
3116
3124
|
trace?: never;
|
|
3117
3125
|
};
|
|
3126
|
+
"/api/v1/customer-verification-methods/{key}/label": {
|
|
3127
|
+
parameters: {
|
|
3128
|
+
query?: never;
|
|
3129
|
+
header?: never;
|
|
3130
|
+
path?: never;
|
|
3131
|
+
cookie?: never;
|
|
3132
|
+
};
|
|
3133
|
+
get?: never;
|
|
3134
|
+
/**
|
|
3135
|
+
* Correct what staff read for one of this broker's verification methods
|
|
3136
|
+
* @description #648. Replaces the method's `name` and `description` (an absent or blank description removes it). **The key does not change**, so every audit entry naming it keeps its meaning: correct the wording here, and retire the method and add another to change what it is. A retired method can be corrected too.
|
|
3137
|
+
*
|
|
3138
|
+
* **Refusals.** `400` for a malformed field. `404` when this broker has no method with that key. `409` `urn:brokerplatform:problem:concurrency-conflict` with `retryable: true` when another write changed the method after it was read: read it again and retry.
|
|
3139
|
+
*/
|
|
3140
|
+
put: operations["RelabelCustomerVerificationMethod"];
|
|
3141
|
+
post?: never;
|
|
3142
|
+
delete?: never;
|
|
3143
|
+
options?: never;
|
|
3144
|
+
head?: never;
|
|
3145
|
+
patch?: never;
|
|
3146
|
+
trace?: never;
|
|
3147
|
+
};
|
|
3148
|
+
"/api/v1/customer-verification-methods/{key}/retirement": {
|
|
3149
|
+
parameters: {
|
|
3150
|
+
query?: never;
|
|
3151
|
+
header?: never;
|
|
3152
|
+
path?: never;
|
|
3153
|
+
cookie?: never;
|
|
3154
|
+
};
|
|
3155
|
+
get?: never;
|
|
3156
|
+
put?: never;
|
|
3157
|
+
/**
|
|
3158
|
+
* Stop offering one of this broker's verification methods
|
|
3159
|
+
* @description #648. A retired method cannot be chosen for a staff sign-out, drops out of `GET /api/v1/customer-verification-methods` unless `includeRetired=true`, and keeps its key, which is never given to another method. Retiring one already retired changes nothing and answers `200` with it as it stands.
|
|
3160
|
+
*
|
|
3161
|
+
* **A broker always keeps one active method.** Retiring the last is `409` `urn:brokerplatform:problem:last-active-verification-method`, which is not retryable: add or reactivate another method first. `404` when this broker has no method with that key. A `409` can also be `urn:brokerplatform:problem:concurrency-conflict` with `retryable: true` when another write changed the method after it was read.
|
|
3162
|
+
*/
|
|
3163
|
+
post: operations["RetireCustomerVerificationMethod"];
|
|
3164
|
+
delete?: never;
|
|
3165
|
+
options?: never;
|
|
3166
|
+
head?: never;
|
|
3167
|
+
patch?: never;
|
|
3168
|
+
trace?: never;
|
|
3169
|
+
};
|
|
3170
|
+
"/api/v1/customer-verification-methods/{key}/reactivation": {
|
|
3171
|
+
parameters: {
|
|
3172
|
+
query?: never;
|
|
3173
|
+
header?: never;
|
|
3174
|
+
path?: never;
|
|
3175
|
+
cookie?: never;
|
|
3176
|
+
};
|
|
3177
|
+
get?: never;
|
|
3178
|
+
put?: never;
|
|
3179
|
+
/**
|
|
3180
|
+
* Offer a retired verification method again
|
|
3181
|
+
* @description #648. The method comes back under the key it always had, in its old place in the set. Reactivating one already active changes nothing and answers `200` with it as it stands. `404` when this broker has no method with that key. `409` `urn:brokerplatform:problem:concurrency-conflict` with `retryable: true` when another write changed the method after it was read.
|
|
3182
|
+
*/
|
|
3183
|
+
post: operations["ReactivateCustomerVerificationMethod"];
|
|
3184
|
+
delete?: never;
|
|
3185
|
+
options?: never;
|
|
3186
|
+
head?: never;
|
|
3187
|
+
patch?: never;
|
|
3188
|
+
trace?: never;
|
|
3189
|
+
};
|
|
3118
3190
|
"/api/v1/organisations": {
|
|
3119
3191
|
parameters: {
|
|
3120
3192
|
query?: never;
|
|
@@ -6440,6 +6512,11 @@ export interface components {
|
|
|
6440
6512
|
kind: string;
|
|
6441
6513
|
role: null | string;
|
|
6442
6514
|
};
|
|
6515
|
+
AddCustomerVerificationMethodRequest: {
|
|
6516
|
+
key: null | string;
|
|
6517
|
+
name: null | string;
|
|
6518
|
+
description: null | string;
|
|
6519
|
+
};
|
|
6443
6520
|
AddInsurerRequest: {
|
|
6444
6521
|
code: null | string;
|
|
6445
6522
|
name: null | string;
|
|
@@ -7351,6 +7428,9 @@ export interface components {
|
|
|
7351
7428
|
key: string;
|
|
7352
7429
|
name: string;
|
|
7353
7430
|
description: null | string;
|
|
7431
|
+
isActive: boolean;
|
|
7432
|
+
/** Format: date-time */
|
|
7433
|
+
retiredAtUtc: null | string;
|
|
7354
7434
|
};
|
|
7355
7435
|
DataClassificationResponse: {
|
|
7356
7436
|
key: string;
|
|
@@ -9290,6 +9370,10 @@ export interface components {
|
|
|
9290
9370
|
name: null | string;
|
|
9291
9371
|
registrationNumber: null | string;
|
|
9292
9372
|
};
|
|
9373
|
+
RelabelCustomerVerificationMethodRequest: {
|
|
9374
|
+
name: null | string;
|
|
9375
|
+
description: null | string;
|
|
9376
|
+
};
|
|
9293
9377
|
RelabelPaymentMethodRequest: {
|
|
9294
9378
|
label: string;
|
|
9295
9379
|
};
|
|
@@ -16827,7 +16911,9 @@ export interface operations {
|
|
|
16827
16911
|
};
|
|
16828
16912
|
ListCustomerVerificationMethods: {
|
|
16829
16913
|
parameters: {
|
|
16830
|
-
query?:
|
|
16914
|
+
query?: {
|
|
16915
|
+
includeRetired?: boolean;
|
|
16916
|
+
};
|
|
16831
16917
|
header?: never;
|
|
16832
16918
|
path?: never;
|
|
16833
16919
|
cookie?: never;
|
|
@@ -16845,6 +16931,48 @@ export interface operations {
|
|
|
16845
16931
|
};
|
|
16846
16932
|
};
|
|
16847
16933
|
};
|
|
16934
|
+
AddCustomerVerificationMethod: {
|
|
16935
|
+
parameters: {
|
|
16936
|
+
query?: never;
|
|
16937
|
+
header?: never;
|
|
16938
|
+
path?: never;
|
|
16939
|
+
cookie?: never;
|
|
16940
|
+
};
|
|
16941
|
+
requestBody: {
|
|
16942
|
+
content: {
|
|
16943
|
+
"application/json": components["schemas"]["AddCustomerVerificationMethodRequest"];
|
|
16944
|
+
};
|
|
16945
|
+
};
|
|
16946
|
+
responses: {
|
|
16947
|
+
/** @description Created */
|
|
16948
|
+
201: {
|
|
16949
|
+
headers: {
|
|
16950
|
+
[name: string]: unknown;
|
|
16951
|
+
};
|
|
16952
|
+
content: {
|
|
16953
|
+
"application/json": components["schemas"]["CustomerVerificationMethodResponse"];
|
|
16954
|
+
};
|
|
16955
|
+
};
|
|
16956
|
+
/** @description Bad Request */
|
|
16957
|
+
400: {
|
|
16958
|
+
headers: {
|
|
16959
|
+
[name: string]: unknown;
|
|
16960
|
+
};
|
|
16961
|
+
content: {
|
|
16962
|
+
"application/problem+json": components["schemas"]["HttpValidationProblemDetails"];
|
|
16963
|
+
};
|
|
16964
|
+
};
|
|
16965
|
+
/** @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. */
|
|
16966
|
+
409: {
|
|
16967
|
+
headers: {
|
|
16968
|
+
[name: string]: unknown;
|
|
16969
|
+
};
|
|
16970
|
+
content: {
|
|
16971
|
+
"application/problem+json": components["schemas"]["ConcurrencyConflictProblem"] | components["schemas"]["ProblemDetails"];
|
|
16972
|
+
};
|
|
16973
|
+
};
|
|
16974
|
+
};
|
|
16975
|
+
};
|
|
16848
16976
|
RevokeCustomerSessions: {
|
|
16849
16977
|
parameters: {
|
|
16850
16978
|
query?: never;
|
|
@@ -16921,6 +17049,133 @@ export interface operations {
|
|
|
16921
17049
|
};
|
|
16922
17050
|
};
|
|
16923
17051
|
};
|
|
17052
|
+
RelabelCustomerVerificationMethod: {
|
|
17053
|
+
parameters: {
|
|
17054
|
+
query?: never;
|
|
17055
|
+
header?: never;
|
|
17056
|
+
path: {
|
|
17057
|
+
key: string;
|
|
17058
|
+
};
|
|
17059
|
+
cookie?: never;
|
|
17060
|
+
};
|
|
17061
|
+
requestBody: {
|
|
17062
|
+
content: {
|
|
17063
|
+
"application/json": components["schemas"]["RelabelCustomerVerificationMethodRequest"];
|
|
17064
|
+
};
|
|
17065
|
+
};
|
|
17066
|
+
responses: {
|
|
17067
|
+
/** @description OK */
|
|
17068
|
+
200: {
|
|
17069
|
+
headers: {
|
|
17070
|
+
[name: string]: unknown;
|
|
17071
|
+
};
|
|
17072
|
+
content: {
|
|
17073
|
+
"application/json": components["schemas"]["CustomerVerificationMethodResponse"];
|
|
17074
|
+
};
|
|
17075
|
+
};
|
|
17076
|
+
/** @description Bad Request */
|
|
17077
|
+
400: {
|
|
17078
|
+
headers: {
|
|
17079
|
+
[name: string]: unknown;
|
|
17080
|
+
};
|
|
17081
|
+
content: {
|
|
17082
|
+
"application/problem+json": components["schemas"]["HttpValidationProblemDetails"];
|
|
17083
|
+
};
|
|
17084
|
+
};
|
|
17085
|
+
/** @description Not Found */
|
|
17086
|
+
404: {
|
|
17087
|
+
headers: {
|
|
17088
|
+
[name: string]: unknown;
|
|
17089
|
+
};
|
|
17090
|
+
content?: never;
|
|
17091
|
+
};
|
|
17092
|
+
/** @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. */
|
|
17093
|
+
409: {
|
|
17094
|
+
headers: {
|
|
17095
|
+
[name: string]: unknown;
|
|
17096
|
+
};
|
|
17097
|
+
content: {
|
|
17098
|
+
"application/problem+json": components["schemas"]["ConcurrencyConflictProblem"] | components["schemas"]["ProblemDetails"];
|
|
17099
|
+
};
|
|
17100
|
+
};
|
|
17101
|
+
};
|
|
17102
|
+
};
|
|
17103
|
+
RetireCustomerVerificationMethod: {
|
|
17104
|
+
parameters: {
|
|
17105
|
+
query?: never;
|
|
17106
|
+
header?: never;
|
|
17107
|
+
path: {
|
|
17108
|
+
key: string;
|
|
17109
|
+
};
|
|
17110
|
+
cookie?: never;
|
|
17111
|
+
};
|
|
17112
|
+
requestBody?: never;
|
|
17113
|
+
responses: {
|
|
17114
|
+
/** @description OK */
|
|
17115
|
+
200: {
|
|
17116
|
+
headers: {
|
|
17117
|
+
[name: string]: unknown;
|
|
17118
|
+
};
|
|
17119
|
+
content: {
|
|
17120
|
+
"application/json": components["schemas"]["CustomerVerificationMethodResponse"];
|
|
17121
|
+
};
|
|
17122
|
+
};
|
|
17123
|
+
/** @description Not Found */
|
|
17124
|
+
404: {
|
|
17125
|
+
headers: {
|
|
17126
|
+
[name: string]: unknown;
|
|
17127
|
+
};
|
|
17128
|
+
content?: never;
|
|
17129
|
+
};
|
|
17130
|
+
/** @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. */
|
|
17131
|
+
409: {
|
|
17132
|
+
headers: {
|
|
17133
|
+
[name: string]: unknown;
|
|
17134
|
+
};
|
|
17135
|
+
content: {
|
|
17136
|
+
"application/problem+json": components["schemas"]["ConcurrencyConflictProblem"] | components["schemas"]["ProblemDetails"];
|
|
17137
|
+
};
|
|
17138
|
+
};
|
|
17139
|
+
};
|
|
17140
|
+
};
|
|
17141
|
+
ReactivateCustomerVerificationMethod: {
|
|
17142
|
+
parameters: {
|
|
17143
|
+
query?: never;
|
|
17144
|
+
header?: never;
|
|
17145
|
+
path: {
|
|
17146
|
+
key: string;
|
|
17147
|
+
};
|
|
17148
|
+
cookie?: never;
|
|
17149
|
+
};
|
|
17150
|
+
requestBody?: never;
|
|
17151
|
+
responses: {
|
|
17152
|
+
/** @description OK */
|
|
17153
|
+
200: {
|
|
17154
|
+
headers: {
|
|
17155
|
+
[name: string]: unknown;
|
|
17156
|
+
};
|
|
17157
|
+
content: {
|
|
17158
|
+
"application/json": components["schemas"]["CustomerVerificationMethodResponse"];
|
|
17159
|
+
};
|
|
17160
|
+
};
|
|
17161
|
+
/** @description Not Found */
|
|
17162
|
+
404: {
|
|
17163
|
+
headers: {
|
|
17164
|
+
[name: string]: unknown;
|
|
17165
|
+
};
|
|
17166
|
+
content?: never;
|
|
17167
|
+
};
|
|
17168
|
+
/** @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. */
|
|
17169
|
+
409: {
|
|
17170
|
+
headers: {
|
|
17171
|
+
[name: string]: unknown;
|
|
17172
|
+
};
|
|
17173
|
+
content: {
|
|
17174
|
+
"application/problem+json": components["schemas"]["ConcurrencyConflictProblem"] | components["schemas"]["ProblemDetails"];
|
|
17175
|
+
};
|
|
17176
|
+
};
|
|
17177
|
+
};
|
|
17178
|
+
};
|
|
16924
17179
|
ListOrganisations: {
|
|
16925
17180
|
parameters: {
|
|
16926
17181
|
query?: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@insurance-broker/api-client",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.22.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,
|