@knowledge-stack/ksapi 1.87.0 → 1.88.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/.openapi-generator/FILES +18 -0
- package/README.md +16 -2
- package/dist/apis/AuthApi.d.ts +218 -13
- package/dist/apis/AuthApi.js +224 -6
- package/dist/esm/apis/AuthApi.d.ts +218 -13
- package/dist/esm/apis/AuthApi.js +225 -7
- package/dist/esm/models/ChangePhoneNumberRequest.d.ts +53 -0
- package/dist/esm/models/ChangePhoneNumberRequest.js +48 -0
- package/dist/esm/models/CreatePhonePasswordUserRequest.d.ts +71 -0
- package/dist/esm/models/CreatePhonePasswordUserRequest.js +60 -0
- package/dist/esm/models/FeaturesResponse.d.ts +6 -0
- package/dist/esm/models/FeaturesResponse.js +4 -0
- package/dist/esm/models/PasswordResetTokenResponse.d.ts +47 -0
- package/dist/esm/models/PasswordResetTokenResponse.js +44 -0
- package/dist/esm/models/PasswordResetWithTokenRequest.d.ts +2 -2
- package/dist/esm/models/PasswordResetWithTokenRequest.js +3 -3
- package/dist/esm/models/PhoneValidationResponse.d.ts +47 -0
- package/dist/esm/models/PhoneValidationResponse.js +44 -0
- package/dist/esm/models/PhoneVerificationRequest.d.ts +47 -0
- package/dist/esm/models/PhoneVerificationRequest.js +44 -0
- package/dist/esm/models/RequestPhoneChangeRequest.d.ts +47 -0
- package/dist/esm/models/RequestPhoneChangeRequest.js +44 -0
- package/dist/esm/models/ResponseSendPwResetEmail.d.ts +53 -0
- package/dist/esm/models/ResponseSendPwResetEmail.js +48 -0
- package/dist/esm/models/SendPasswordResetRequest.d.ts +67 -0
- package/dist/esm/models/SendPasswordResetRequest.js +53 -0
- package/dist/esm/models/SignInRequest.d.ts +3 -3
- package/dist/esm/models/SignInRequest.js +3 -3
- package/dist/esm/models/UserResponse.d.ts +6 -0
- package/dist/esm/models/UserResponse.js +2 -0
- package/dist/esm/models/ValidateResetCodeRequest.d.ts +53 -0
- package/dist/esm/models/ValidateResetCodeRequest.js +48 -0
- package/dist/esm/models/index.d.ts +9 -0
- package/dist/esm/models/index.js +9 -0
- package/dist/models/ChangePhoneNumberRequest.d.ts +53 -0
- package/dist/models/ChangePhoneNumberRequest.js +56 -0
- package/dist/models/CreatePhonePasswordUserRequest.d.ts +71 -0
- package/dist/models/CreatePhonePasswordUserRequest.js +68 -0
- package/dist/models/FeaturesResponse.d.ts +6 -0
- package/dist/models/FeaturesResponse.js +4 -0
- package/dist/models/PasswordResetTokenResponse.d.ts +47 -0
- package/dist/models/PasswordResetTokenResponse.js +52 -0
- package/dist/models/PasswordResetWithTokenRequest.d.ts +2 -2
- package/dist/models/PasswordResetWithTokenRequest.js +3 -3
- package/dist/models/PhoneValidationResponse.d.ts +47 -0
- package/dist/models/PhoneValidationResponse.js +52 -0
- package/dist/models/PhoneVerificationRequest.d.ts +47 -0
- package/dist/models/PhoneVerificationRequest.js +52 -0
- package/dist/models/RequestPhoneChangeRequest.d.ts +47 -0
- package/dist/models/RequestPhoneChangeRequest.js +52 -0
- package/dist/models/ResponseSendPwResetEmail.d.ts +53 -0
- package/dist/models/ResponseSendPwResetEmail.js +56 -0
- package/dist/models/SendPasswordResetRequest.d.ts +67 -0
- package/dist/models/SendPasswordResetRequest.js +61 -0
- package/dist/models/SignInRequest.d.ts +3 -3
- package/dist/models/SignInRequest.js +3 -3
- package/dist/models/UserResponse.d.ts +6 -0
- package/dist/models/UserResponse.js +2 -0
- package/dist/models/ValidateResetCodeRequest.d.ts +53 -0
- package/dist/models/ValidateResetCodeRequest.js +56 -0
- package/dist/models/index.d.ts +9 -0
- package/dist/models/index.js +9 -0
- package/docs/AuthApi.md +365 -6
- package/docs/ChangePhoneNumberRequest.md +37 -0
- package/docs/CreatePhonePasswordUserRequest.md +43 -0
- package/docs/FeaturesResponse.md +2 -0
- package/docs/PasswordResetTokenResponse.md +34 -0
- package/docs/PasswordResetWithTokenRequest.md +2 -2
- package/docs/PhoneValidationResponse.md +34 -0
- package/docs/PhoneVerificationRequest.md +34 -0
- package/docs/RequestPhoneChangeRequest.md +34 -0
- package/docs/ResponseSendPwResetEmail.md +36 -0
- package/docs/SendPasswordResetRequest.md +38 -0
- package/docs/SignInRequest.md +3 -2
- package/docs/UserResponse.md +2 -0
- package/docs/ValidateResetCodeRequest.md +36 -0
- package/package.json +1 -1
- package/src/apis/AuthApi.ts +452 -17
- package/src/models/ChangePhoneNumberRequest.ts +92 -0
- package/src/models/CreatePhonePasswordUserRequest.ts +120 -0
- package/src/models/FeaturesResponse.ts +9 -0
- package/src/models/PasswordResetTokenResponse.ts +83 -0
- package/src/models/PasswordResetWithTokenRequest.ts +5 -5
- package/src/models/PhoneValidationResponse.ts +83 -0
- package/src/models/PhoneVerificationRequest.ts +83 -0
- package/src/models/RequestPhoneChangeRequest.ts +83 -0
- package/src/models/ResponseSendPwResetEmail.ts +107 -0
- package/src/models/SendPasswordResetRequest.ts +109 -0
- package/src/models/SignInRequest.ts +6 -6
- package/src/models/UserResponse.ts +8 -0
- package/src/models/ValidateResetCodeRequest.ts +92 -0
- package/src/models/index.ts +9 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -17,6 +17,7 @@ docs/AskResponse.md
|
|
|
17
17
|
docs/AuthApi.md
|
|
18
18
|
docs/BrandingLogoType.md
|
|
19
19
|
docs/BulkTagRequest.md
|
|
20
|
+
docs/ChangePhoneNumberRequest.md
|
|
20
21
|
docs/ChangeSubscriptionRequest.md
|
|
21
22
|
docs/CheckpointDetails.md
|
|
22
23
|
docs/ChunkBulkResponse.md
|
|
@@ -43,6 +44,7 @@ docs/CreateGroupPermissionRequest.md
|
|
|
43
44
|
docs/CreateGroupRequest.md
|
|
44
45
|
docs/CreatePasswordUserRequest.md
|
|
45
46
|
docs/CreatePermissionRequest.md
|
|
47
|
+
docs/CreatePhonePasswordUserRequest.md
|
|
46
48
|
docs/CreateSectionRequest.md
|
|
47
49
|
docs/CreateTagRequest.md
|
|
48
50
|
docs/CreateThreadMessageRequest.md
|
|
@@ -139,6 +141,7 @@ docs/PaginatedResponseWorkflowRunResponse.md
|
|
|
139
141
|
docs/PaginatedResponseWorkflowSummaryResponse.md
|
|
140
142
|
docs/PartType.md
|
|
141
143
|
docs/PasswordResetRequest.md
|
|
144
|
+
docs/PasswordResetTokenResponse.md
|
|
142
145
|
docs/PasswordResetWithTokenRequest.md
|
|
143
146
|
docs/PathOrder.md
|
|
144
147
|
docs/PathPartAncestorItem.md
|
|
@@ -149,6 +152,8 @@ docs/PathPartTagsResponse.md
|
|
|
149
152
|
docs/PathPartsApi.md
|
|
150
153
|
docs/PermissionCapability.md
|
|
151
154
|
docs/PermissionResponse.md
|
|
155
|
+
docs/PhoneValidationResponse.md
|
|
156
|
+
docs/PhoneVerificationRequest.md
|
|
152
157
|
docs/PipelineState.md
|
|
153
158
|
docs/PipelineStatus.md
|
|
154
159
|
docs/Polygon.md
|
|
@@ -156,8 +161,10 @@ docs/PolygonReference.md
|
|
|
156
161
|
docs/PublicApi.md
|
|
157
162
|
docs/ReferenceType.md
|
|
158
163
|
docs/RejectFileRequest.md
|
|
164
|
+
docs/RequestPhoneChangeRequest.md
|
|
159
165
|
docs/ResolvedReferenceInput.md
|
|
160
166
|
docs/ResolvedReferenceOutput.md
|
|
167
|
+
docs/ResponseSendPwResetEmail.md
|
|
161
168
|
docs/RootResponse.md
|
|
162
169
|
docs/SSOInitiateResponse.md
|
|
163
170
|
docs/ScoredChunkResponse.md
|
|
@@ -172,6 +179,7 @@ docs/SectionSystemMetadata.md
|
|
|
172
179
|
docs/SectionsApi.md
|
|
173
180
|
docs/SelfHostedRunnerConfig.md
|
|
174
181
|
docs/SelfHostedRunnerConfigResponse.md
|
|
182
|
+
docs/SendPasswordResetRequest.md
|
|
175
183
|
docs/SignInRequest.md
|
|
176
184
|
docs/StepInput.md
|
|
177
185
|
docs/StepKind.md
|
|
@@ -224,6 +232,7 @@ docs/UserMessageResponse.md
|
|
|
224
232
|
docs/UserPermissionsApi.md
|
|
225
233
|
docs/UserResponse.md
|
|
226
234
|
docs/UsersApi.md
|
|
235
|
+
docs/ValidateResetCodeRequest.md
|
|
227
236
|
docs/ValidationError.md
|
|
228
237
|
docs/VersionChunkIdsResponse.md
|
|
229
238
|
docs/WorkflowActionResponse.md
|
|
@@ -284,6 +293,7 @@ src/models/AskRequest.ts
|
|
|
284
293
|
src/models/AskResponse.ts
|
|
285
294
|
src/models/BrandingLogoType.ts
|
|
286
295
|
src/models/BulkTagRequest.ts
|
|
296
|
+
src/models/ChangePhoneNumberRequest.ts
|
|
287
297
|
src/models/ChangeSubscriptionRequest.ts
|
|
288
298
|
src/models/CheckpointDetails.ts
|
|
289
299
|
src/models/ChunkBulkResponse.ts
|
|
@@ -308,6 +318,7 @@ src/models/CreateGroupPermissionRequest.ts
|
|
|
308
318
|
src/models/CreateGroupRequest.ts
|
|
309
319
|
src/models/CreatePasswordUserRequest.ts
|
|
310
320
|
src/models/CreatePermissionRequest.ts
|
|
321
|
+
src/models/CreatePhonePasswordUserRequest.ts
|
|
311
322
|
src/models/CreateSectionRequest.ts
|
|
312
323
|
src/models/CreateTagRequest.ts
|
|
313
324
|
src/models/CreateThreadMessageRequest.ts
|
|
@@ -396,6 +407,7 @@ src/models/PaginatedResponseWorkflowRunResponse.ts
|
|
|
396
407
|
src/models/PaginatedResponseWorkflowSummaryResponse.ts
|
|
397
408
|
src/models/PartType.ts
|
|
398
409
|
src/models/PasswordResetRequest.ts
|
|
410
|
+
src/models/PasswordResetTokenResponse.ts
|
|
399
411
|
src/models/PasswordResetWithTokenRequest.ts
|
|
400
412
|
src/models/PathOrder.ts
|
|
401
413
|
src/models/PathPartAncestorItem.ts
|
|
@@ -405,14 +417,18 @@ src/models/PathPartResponse.ts
|
|
|
405
417
|
src/models/PathPartTagsResponse.ts
|
|
406
418
|
src/models/PermissionCapability.ts
|
|
407
419
|
src/models/PermissionResponse.ts
|
|
420
|
+
src/models/PhoneValidationResponse.ts
|
|
421
|
+
src/models/PhoneVerificationRequest.ts
|
|
408
422
|
src/models/PipelineState.ts
|
|
409
423
|
src/models/PipelineStatus.ts
|
|
410
424
|
src/models/Polygon.ts
|
|
411
425
|
src/models/PolygonReference.ts
|
|
412
426
|
src/models/ReferenceType.ts
|
|
413
427
|
src/models/RejectFileRequest.ts
|
|
428
|
+
src/models/RequestPhoneChangeRequest.ts
|
|
414
429
|
src/models/ResolvedReferenceInput.ts
|
|
415
430
|
src/models/ResolvedReferenceOutput.ts
|
|
431
|
+
src/models/ResponseSendPwResetEmail.ts
|
|
416
432
|
src/models/RootResponse.ts
|
|
417
433
|
src/models/SSOInitiateResponse.ts
|
|
418
434
|
src/models/ScoredChunkResponse.ts
|
|
@@ -426,6 +442,7 @@ src/models/SectionResponse.ts
|
|
|
426
442
|
src/models/SectionSystemMetadata.ts
|
|
427
443
|
src/models/SelfHostedRunnerConfig.ts
|
|
428
444
|
src/models/SelfHostedRunnerConfigResponse.ts
|
|
445
|
+
src/models/SendPasswordResetRequest.ts
|
|
429
446
|
src/models/SignInRequest.ts
|
|
430
447
|
src/models/StepInput.ts
|
|
431
448
|
src/models/StepKind.ts
|
|
@@ -470,6 +487,7 @@ src/models/UsageMetric.ts
|
|
|
470
487
|
src/models/UserMessageRequest.ts
|
|
471
488
|
src/models/UserMessageResponse.ts
|
|
472
489
|
src/models/UserResponse.ts
|
|
490
|
+
src/models/ValidateResetCodeRequest.ts
|
|
473
491
|
src/models/ValidationError.ts
|
|
474
492
|
src/models/VersionChunkIdsResponse.ts
|
|
475
493
|
src/models/WorkflowActionResponse.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @knowledge-stack/ksapi@1.
|
|
1
|
+
# @knowledge-stack/ksapi@1.88.0
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the localhost API.
|
|
4
4
|
|
|
@@ -60,19 +60,24 @@ All URIs are relative to *http://localhost:8000*
|
|
|
60
60
|
*ApiKeysApi* | [**deleteApiKey**](docs/ApiKeysApi.md#deleteapikey) | **DELETE** /v1/api-keys/{api_key_id} | Delete Api Key Handler
|
|
61
61
|
*ApiKeysApi* | [**getApiKey**](docs/ApiKeysApi.md#getapikey) | **GET** /v1/api-keys/{api_key_id} | Get Api Key Handler
|
|
62
62
|
*ApiKeysApi* | [**listApiKeys**](docs/ApiKeysApi.md#listapikeys) | **GET** /v1/api-keys | List Api Keys Handler
|
|
63
|
+
*AuthApi* | [**changePhoneNumber**](docs/AuthApi.md#changephonenumberoperation) | **PUT** /v1/auth/pw/me/phone_number | Change Phone Number Handler
|
|
63
64
|
*AuthApi* | [**createPasswordUser**](docs/AuthApi.md#createpassworduseroperation) | **POST** /v1/auth/pw/user | Create Password User Handler
|
|
65
|
+
*AuthApi* | [**createPhonePasswordUser**](docs/AuthApi.md#createphonepassworduseroperation) | **POST** /v1/auth/pw/phone_user | Create Phone Password User Handler
|
|
64
66
|
*AuthApi* | [**fanweiDirectorySync**](docs/AuthApi.md#fanweidirectorysync) | **POST** /v1/auth/sso/{tenant_id}/directory_sync | Directory Sync Handler
|
|
65
67
|
*AuthApi* | [**fanweiDirectorySync_0**](docs/AuthApi.md#fanweidirectorysync_0) | **POST** /v1/auth/sso/{tenant_id}/directory_sync | Directory Sync Handler
|
|
66
68
|
*AuthApi* | [**initiateSso**](docs/AuthApi.md#initiatesso) | **POST** /v1/auth/sso/initiate | Initiate Sso Handler
|
|
67
69
|
*AuthApi* | [**oauth2Callback**](docs/AuthApi.md#oauth2callback) | **GET** /v1/auth/sso/oauth2/callback | Oauth2 Callback Handler
|
|
68
70
|
*AuthApi* | [**pwEmailVerification**](docs/AuthApi.md#pwemailverification) | **POST** /v1/auth/pw/email_verification | Pw Email Verification Handler
|
|
71
|
+
*AuthApi* | [**pwPhoneVerification**](docs/AuthApi.md#pwphoneverification) | **POST** /v1/auth/pw/phone_verification | Pw Phone Verification Handler
|
|
69
72
|
*AuthApi* | [**pwSignin**](docs/AuthApi.md#pwsignin) | **POST** /v1/auth/pw/signin | Signin Handler
|
|
70
73
|
*AuthApi* | [**refreshUat**](docs/AuthApi.md#refreshuat) | **POST** /v1/auth/uat | Refresh Uat Handler
|
|
74
|
+
*AuthApi* | [**requestPhoneChange**](docs/AuthApi.md#requestphonechangeoperation) | **POST** /v1/auth/pw/me/phone_number/verify | Request Phone Change Handler
|
|
71
75
|
*AuthApi* | [**resetPassword**](docs/AuthApi.md#resetpassword) | **POST** /v1/auth/pw/reset | Reset Password Handler
|
|
72
76
|
*AuthApi* | [**resetPasswordWithToken**](docs/AuthApi.md#resetpasswordwithtoken) | **POST** /v1/auth/pw/reset_with_token | Reset Password With Token Handler
|
|
73
77
|
*AuthApi* | [**sendPwResetEmail**](docs/AuthApi.md#sendpwresetemail) | **POST** /v1/auth/pw/send_reset_email | Send Pw Reset Email Handler
|
|
74
78
|
*AuthApi* | [**signout**](docs/AuthApi.md#signout) | **POST** /v1/auth/signout | Signout Handler
|
|
75
79
|
*AuthApi* | [**ssoSignin**](docs/AuthApi.md#ssosignin) | **GET** /v1/auth/sso/{tenant_id}/signin | Sso Login Handler
|
|
80
|
+
*AuthApi* | [**validatePwResetCode**](docs/AuthApi.md#validatepwresetcode) | **POST** /v1/auth/pw/validate_reset_code | Validate Reset Code Handler
|
|
76
81
|
*ChunkLineagesApi* | [**createChunkLineage**](docs/ChunkLineagesApi.md#createchunklineageoperation) | **POST** /v1/chunk-lineages | Create Chunk Lineage Handler
|
|
77
82
|
*ChunkLineagesApi* | [**deleteChunkLineage**](docs/ChunkLineagesApi.md#deletechunklineage) | **DELETE** /v1/chunk-lineages | Delete Chunk Lineage Handler
|
|
78
83
|
*ChunkLineagesApi* | [**getChunkLineage**](docs/ChunkLineagesApi.md#getchunklineage) | **GET** /v1/chunk-lineages/{chunk_id} | Get Chunk Lineage Handler
|
|
@@ -228,6 +233,7 @@ All URIs are relative to *http://localhost:8000*
|
|
|
228
233
|
- [AskResponse](docs/AskResponse.md)
|
|
229
234
|
- [BrandingLogoType](docs/BrandingLogoType.md)
|
|
230
235
|
- [BulkTagRequest](docs/BulkTagRequest.md)
|
|
236
|
+
- [ChangePhoneNumberRequest](docs/ChangePhoneNumberRequest.md)
|
|
231
237
|
- [ChangeSubscriptionRequest](docs/ChangeSubscriptionRequest.md)
|
|
232
238
|
- [CheckpointDetails](docs/CheckpointDetails.md)
|
|
233
239
|
- [ChunkBulkResponse](docs/ChunkBulkResponse.md)
|
|
@@ -252,6 +258,7 @@ All URIs are relative to *http://localhost:8000*
|
|
|
252
258
|
- [CreateGroupRequest](docs/CreateGroupRequest.md)
|
|
253
259
|
- [CreatePasswordUserRequest](docs/CreatePasswordUserRequest.md)
|
|
254
260
|
- [CreatePermissionRequest](docs/CreatePermissionRequest.md)
|
|
261
|
+
- [CreatePhonePasswordUserRequest](docs/CreatePhonePasswordUserRequest.md)
|
|
255
262
|
- [CreateSectionRequest](docs/CreateSectionRequest.md)
|
|
256
263
|
- [CreateTagRequest](docs/CreateTagRequest.md)
|
|
257
264
|
- [CreateThreadMessageRequest](docs/CreateThreadMessageRequest.md)
|
|
@@ -340,6 +347,7 @@ All URIs are relative to *http://localhost:8000*
|
|
|
340
347
|
- [PaginatedResponseWorkflowSummaryResponse](docs/PaginatedResponseWorkflowSummaryResponse.md)
|
|
341
348
|
- [PartType](docs/PartType.md)
|
|
342
349
|
- [PasswordResetRequest](docs/PasswordResetRequest.md)
|
|
350
|
+
- [PasswordResetTokenResponse](docs/PasswordResetTokenResponse.md)
|
|
343
351
|
- [PasswordResetWithTokenRequest](docs/PasswordResetWithTokenRequest.md)
|
|
344
352
|
- [PathOrder](docs/PathOrder.md)
|
|
345
353
|
- [PathPartAncestorItem](docs/PathPartAncestorItem.md)
|
|
@@ -349,14 +357,18 @@ All URIs are relative to *http://localhost:8000*
|
|
|
349
357
|
- [PathPartTagsResponse](docs/PathPartTagsResponse.md)
|
|
350
358
|
- [PermissionCapability](docs/PermissionCapability.md)
|
|
351
359
|
- [PermissionResponse](docs/PermissionResponse.md)
|
|
360
|
+
- [PhoneValidationResponse](docs/PhoneValidationResponse.md)
|
|
361
|
+
- [PhoneVerificationRequest](docs/PhoneVerificationRequest.md)
|
|
352
362
|
- [PipelineState](docs/PipelineState.md)
|
|
353
363
|
- [PipelineStatus](docs/PipelineStatus.md)
|
|
354
364
|
- [Polygon](docs/Polygon.md)
|
|
355
365
|
- [PolygonReference](docs/PolygonReference.md)
|
|
356
366
|
- [ReferenceType](docs/ReferenceType.md)
|
|
357
367
|
- [RejectFileRequest](docs/RejectFileRequest.md)
|
|
368
|
+
- [RequestPhoneChangeRequest](docs/RequestPhoneChangeRequest.md)
|
|
358
369
|
- [ResolvedReferenceInput](docs/ResolvedReferenceInput.md)
|
|
359
370
|
- [ResolvedReferenceOutput](docs/ResolvedReferenceOutput.md)
|
|
371
|
+
- [ResponseSendPwResetEmail](docs/ResponseSendPwResetEmail.md)
|
|
360
372
|
- [RootResponse](docs/RootResponse.md)
|
|
361
373
|
- [SSOInitiateResponse](docs/SSOInitiateResponse.md)
|
|
362
374
|
- [ScoredChunkResponse](docs/ScoredChunkResponse.md)
|
|
@@ -370,6 +382,7 @@ All URIs are relative to *http://localhost:8000*
|
|
|
370
382
|
- [SectionSystemMetadata](docs/SectionSystemMetadata.md)
|
|
371
383
|
- [SelfHostedRunnerConfig](docs/SelfHostedRunnerConfig.md)
|
|
372
384
|
- [SelfHostedRunnerConfigResponse](docs/SelfHostedRunnerConfigResponse.md)
|
|
385
|
+
- [SendPasswordResetRequest](docs/SendPasswordResetRequest.md)
|
|
373
386
|
- [SignInRequest](docs/SignInRequest.md)
|
|
374
387
|
- [StepInput](docs/StepInput.md)
|
|
375
388
|
- [StepKind](docs/StepKind.md)
|
|
@@ -414,6 +427,7 @@ All URIs are relative to *http://localhost:8000*
|
|
|
414
427
|
- [UserMessageRequest](docs/UserMessageRequest.md)
|
|
415
428
|
- [UserMessageResponse](docs/UserMessageResponse.md)
|
|
416
429
|
- [UserResponse](docs/UserResponse.md)
|
|
430
|
+
- [ValidateResetCodeRequest](docs/ValidateResetCodeRequest.md)
|
|
417
431
|
- [ValidationError](docs/ValidationError.md)
|
|
418
432
|
- [VersionChunkIdsResponse](docs/VersionChunkIdsResponse.md)
|
|
419
433
|
- [WorkflowActionResponse](docs/WorkflowActionResponse.md)
|
|
@@ -440,7 +454,7 @@ and is automatically generated by the
|
|
|
440
454
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
441
455
|
|
|
442
456
|
- API version: `0.1.0`
|
|
443
|
-
- Package version: `1.
|
|
457
|
+
- Package version: `1.88.0`
|
|
444
458
|
- Generator version: `7.21.0`
|
|
445
459
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
446
460
|
|
package/dist/apis/AuthApi.d.ts
CHANGED
|
@@ -10,10 +10,18 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { CreatePasswordUserRequest, DirectorySyncResponse, EmailSentResponse, EmailVerificationRequest, IdpType, PasswordResetRequest, PasswordResetWithTokenRequest, SSOInitiateResponse, SignInRequest, UserResponse } from '../models/index';
|
|
13
|
+
import type { ChangePhoneNumberRequest, CreatePasswordUserRequest, CreatePhonePasswordUserRequest, DirectorySyncResponse, EmailSentResponse, EmailVerificationRequest, IdpType, PasswordResetRequest, PasswordResetTokenResponse, PasswordResetWithTokenRequest, PhoneValidationResponse, PhoneVerificationRequest, RequestPhoneChangeRequest, ResponseSendPwResetEmail, SSOInitiateResponse, SendPasswordResetRequest, SignInRequest, UserResponse, ValidateResetCodeRequest } from '../models/index';
|
|
14
|
+
export interface ChangePhoneNumberOperationRequest {
|
|
15
|
+
changePhoneNumberRequest: ChangePhoneNumberRequest;
|
|
16
|
+
authorization?: string | null;
|
|
17
|
+
ksUat?: string | null;
|
|
18
|
+
}
|
|
14
19
|
export interface CreatePasswordUserOperationRequest {
|
|
15
20
|
createPasswordUserRequest: CreatePasswordUserRequest;
|
|
16
21
|
}
|
|
22
|
+
export interface CreatePhonePasswordUserOperationRequest {
|
|
23
|
+
createPhonePasswordUserRequest: CreatePhonePasswordUserRequest;
|
|
24
|
+
}
|
|
17
25
|
export interface FanweiDirectorySyncRequest {
|
|
18
26
|
tenantId: string;
|
|
19
27
|
authorization?: string | null;
|
|
@@ -39,6 +47,9 @@ export interface Oauth2CallbackRequest {
|
|
|
39
47
|
export interface PwEmailVerificationRequest {
|
|
40
48
|
emailVerificationRequest: EmailVerificationRequest;
|
|
41
49
|
}
|
|
50
|
+
export interface PwPhoneVerificationRequest {
|
|
51
|
+
phoneVerificationRequest: PhoneVerificationRequest;
|
|
52
|
+
}
|
|
42
53
|
export interface PwSigninRequest {
|
|
43
54
|
signInRequest: SignInRequest;
|
|
44
55
|
}
|
|
@@ -47,6 +58,11 @@ export interface RefreshUatRequest {
|
|
|
47
58
|
authorization?: string | null;
|
|
48
59
|
ksUat?: string | null;
|
|
49
60
|
}
|
|
61
|
+
export interface RequestPhoneChangeOperationRequest {
|
|
62
|
+
requestPhoneChangeRequest: RequestPhoneChangeRequest;
|
|
63
|
+
authorization?: string | null;
|
|
64
|
+
ksUat?: string | null;
|
|
65
|
+
}
|
|
50
66
|
export interface ResetPasswordRequest {
|
|
51
67
|
passwordResetRequest: PasswordResetRequest;
|
|
52
68
|
authorization?: string | null;
|
|
@@ -56,12 +72,15 @@ export interface ResetPasswordWithTokenRequest {
|
|
|
56
72
|
passwordResetWithTokenRequest: PasswordResetWithTokenRequest;
|
|
57
73
|
}
|
|
58
74
|
export interface SendPwResetEmailRequest {
|
|
59
|
-
|
|
75
|
+
sendPasswordResetRequest: SendPasswordResetRequest;
|
|
60
76
|
}
|
|
61
77
|
export interface SsoSigninRequest {
|
|
62
78
|
tenantId: string;
|
|
63
79
|
redirect?: string;
|
|
64
80
|
}
|
|
81
|
+
export interface ValidatePwResetCodeRequest {
|
|
82
|
+
validateResetCodeRequest: ValidateResetCodeRequest;
|
|
83
|
+
}
|
|
65
84
|
/**
|
|
66
85
|
* AuthApi - interface
|
|
67
86
|
*
|
|
@@ -69,6 +88,31 @@ export interface SsoSigninRequest {
|
|
|
69
88
|
* @interface AuthApiInterface
|
|
70
89
|
*/
|
|
71
90
|
export interface AuthApiInterface {
|
|
91
|
+
/**
|
|
92
|
+
* Creates request options for changePhoneNumber without sending the request
|
|
93
|
+
* @param {ChangePhoneNumberRequest} changePhoneNumberRequest
|
|
94
|
+
* @param {string} [authorization]
|
|
95
|
+
* @param {string} [ksUat]
|
|
96
|
+
* @throws {RequiredError}
|
|
97
|
+
* @memberof AuthApiInterface
|
|
98
|
+
*/
|
|
99
|
+
changePhoneNumberRequestOpts(requestParameters: ChangePhoneNumberOperationRequest): Promise<runtime.RequestOpts>;
|
|
100
|
+
/**
|
|
101
|
+
* Apply a verified phone-number change to the authenticated user. The new phone is read from the Redis validation record pinned by ``/me/phone_number/verify``.
|
|
102
|
+
* @summary Change Phone Number Handler
|
|
103
|
+
* @param {ChangePhoneNumberRequest} changePhoneNumberRequest
|
|
104
|
+
* @param {string} [authorization]
|
|
105
|
+
* @param {string} [ksUat]
|
|
106
|
+
* @param {*} [options] Override http request option.
|
|
107
|
+
* @throws {RequiredError}
|
|
108
|
+
* @memberof AuthApiInterface
|
|
109
|
+
*/
|
|
110
|
+
changePhoneNumberRaw(requestParameters: ChangePhoneNumberOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserResponse>>;
|
|
111
|
+
/**
|
|
112
|
+
* Apply a verified phone-number change to the authenticated user. The new phone is read from the Redis validation record pinned by ``/me/phone_number/verify``.
|
|
113
|
+
* Change Phone Number Handler
|
|
114
|
+
*/
|
|
115
|
+
changePhoneNumber(requestParameters: ChangePhoneNumberOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserResponse>;
|
|
72
116
|
/**
|
|
73
117
|
* Creates request options for createPasswordUser without sending the request
|
|
74
118
|
* @param {CreatePasswordUserRequest} createPasswordUserRequest
|
|
@@ -89,6 +133,27 @@ export interface AuthApiInterface {
|
|
|
89
133
|
* Create Password User Handler
|
|
90
134
|
*/
|
|
91
135
|
createPasswordUser(requestParameters: CreatePasswordUserOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserResponse>;
|
|
136
|
+
/**
|
|
137
|
+
* Creates request options for createPhonePasswordUser without sending the request
|
|
138
|
+
* @param {CreatePhonePasswordUserRequest} createPhonePasswordUserRequest
|
|
139
|
+
* @throws {RequiredError}
|
|
140
|
+
* @memberof AuthApiInterface
|
|
141
|
+
*/
|
|
142
|
+
createPhonePasswordUserRequestOpts(requestParameters: CreatePhonePasswordUserOperationRequest): Promise<runtime.RequestOpts>;
|
|
143
|
+
/**
|
|
144
|
+
* Complete phone-based signup using a verified validation code. The phone number is read from the Redis validation record — it was pinned there by ``/phone_verification`` — so the client cannot submit a different phone here than the one it just proved ownership of.
|
|
145
|
+
* @summary Create Phone Password User Handler
|
|
146
|
+
* @param {CreatePhonePasswordUserRequest} createPhonePasswordUserRequest
|
|
147
|
+
* @param {*} [options] Override http request option.
|
|
148
|
+
* @throws {RequiredError}
|
|
149
|
+
* @memberof AuthApiInterface
|
|
150
|
+
*/
|
|
151
|
+
createPhonePasswordUserRaw(requestParameters: CreatePhonePasswordUserOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserResponse>>;
|
|
152
|
+
/**
|
|
153
|
+
* Complete phone-based signup using a verified validation code. The phone number is read from the Redis validation record — it was pinned there by ``/phone_verification`` — so the client cannot submit a different phone here than the one it just proved ownership of.
|
|
154
|
+
* Create Phone Password User Handler
|
|
155
|
+
*/
|
|
156
|
+
createPhonePasswordUser(requestParameters: CreatePhonePasswordUserOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserResponse>;
|
|
92
157
|
/**
|
|
93
158
|
* Creates request options for fanweiDirectorySync without sending the request
|
|
94
159
|
* @param {string} tenantId
|
|
@@ -214,6 +279,27 @@ export interface AuthApiInterface {
|
|
|
214
279
|
* Pw Email Verification Handler
|
|
215
280
|
*/
|
|
216
281
|
pwEmailVerification(requestParameters: PwEmailVerificationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EmailSentResponse>;
|
|
282
|
+
/**
|
|
283
|
+
* Creates request options for pwPhoneVerification without sending the request
|
|
284
|
+
* @param {PhoneVerificationRequest} phoneVerificationRequest
|
|
285
|
+
* @throws {RequiredError}
|
|
286
|
+
* @memberof AuthApiInterface
|
|
287
|
+
*/
|
|
288
|
+
pwPhoneVerificationRequestOpts(requestParameters: PwPhoneVerificationRequest): Promise<runtime.RequestOpts>;
|
|
289
|
+
/**
|
|
290
|
+
* Send a 6-digit signup verification code to ``phone_number``. Rejects (409) if a user already exists for this phone — this leaks enumeration but matches the duplicate-signup UX of the email flow.
|
|
291
|
+
* @summary Pw Phone Verification Handler
|
|
292
|
+
* @param {PhoneVerificationRequest} phoneVerificationRequest
|
|
293
|
+
* @param {*} [options] Override http request option.
|
|
294
|
+
* @throws {RequiredError}
|
|
295
|
+
* @memberof AuthApiInterface
|
|
296
|
+
*/
|
|
297
|
+
pwPhoneVerificationRaw(requestParameters: PwPhoneVerificationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PhoneValidationResponse>>;
|
|
298
|
+
/**
|
|
299
|
+
* Send a 6-digit signup verification code to ``phone_number``. Rejects (409) if a user already exists for this phone — this leaks enumeration but matches the duplicate-signup UX of the email flow.
|
|
300
|
+
* Pw Phone Verification Handler
|
|
301
|
+
*/
|
|
302
|
+
pwPhoneVerification(requestParameters: PwPhoneVerificationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PhoneValidationResponse>;
|
|
217
303
|
/**
|
|
218
304
|
* Creates request options for pwSignin without sending the request
|
|
219
305
|
* @param {SignInRequest} signInRequest
|
|
@@ -260,6 +346,31 @@ export interface AuthApiInterface {
|
|
|
260
346
|
* Refresh Uat Handler
|
|
261
347
|
*/
|
|
262
348
|
refreshUat(requestParameters: RefreshUatRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserResponse>;
|
|
349
|
+
/**
|
|
350
|
+
* Creates request options for requestPhoneChange without sending the request
|
|
351
|
+
* @param {RequestPhoneChangeRequest} requestPhoneChangeRequest
|
|
352
|
+
* @param {string} [authorization]
|
|
353
|
+
* @param {string} [ksUat]
|
|
354
|
+
* @throws {RequiredError}
|
|
355
|
+
* @memberof AuthApiInterface
|
|
356
|
+
*/
|
|
357
|
+
requestPhoneChangeRequestOpts(requestParameters: RequestPhoneChangeOperationRequest): Promise<runtime.RequestOpts>;
|
|
358
|
+
/**
|
|
359
|
+
* Dispatch an SMS code to authorize a phone-number change. Confirms the new phone isn\'t already taken by *another* user. The caller is identified by their UAT, so authentication is required.
|
|
360
|
+
* @summary Request Phone Change Handler
|
|
361
|
+
* @param {RequestPhoneChangeRequest} requestPhoneChangeRequest
|
|
362
|
+
* @param {string} [authorization]
|
|
363
|
+
* @param {string} [ksUat]
|
|
364
|
+
* @param {*} [options] Override http request option.
|
|
365
|
+
* @throws {RequiredError}
|
|
366
|
+
* @memberof AuthApiInterface
|
|
367
|
+
*/
|
|
368
|
+
requestPhoneChangeRaw(requestParameters: RequestPhoneChangeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PhoneValidationResponse>>;
|
|
369
|
+
/**
|
|
370
|
+
* Dispatch an SMS code to authorize a phone-number change. Confirms the new phone isn\'t already taken by *another* user. The caller is identified by their UAT, so authentication is required.
|
|
371
|
+
* Request Phone Change Handler
|
|
372
|
+
*/
|
|
373
|
+
requestPhoneChange(requestParameters: RequestPhoneChangeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PhoneValidationResponse>;
|
|
263
374
|
/**
|
|
264
375
|
* Creates request options for resetPassword without sending the request
|
|
265
376
|
* @param {PasswordResetRequest} passwordResetRequest
|
|
@@ -293,7 +404,7 @@ export interface AuthApiInterface {
|
|
|
293
404
|
*/
|
|
294
405
|
resetPasswordWithTokenRequestOpts(requestParameters: ResetPasswordWithTokenRequest): Promise<runtime.RequestOpts>;
|
|
295
406
|
/**
|
|
296
|
-
* Reset password with
|
|
407
|
+
* Reset password with a single-use PasswordResetToken JWT
|
|
297
408
|
* @summary Reset Password With Token Handler
|
|
298
409
|
* @param {PasswordResetWithTokenRequest} passwordResetWithTokenRequest
|
|
299
410
|
* @param {*} [options] Override http request option.
|
|
@@ -302,30 +413,31 @@ export interface AuthApiInterface {
|
|
|
302
413
|
*/
|
|
303
414
|
resetPasswordWithTokenRaw(requestParameters: ResetPasswordWithTokenRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserResponse>>;
|
|
304
415
|
/**
|
|
305
|
-
* Reset password with
|
|
416
|
+
* Reset password with a single-use PasswordResetToken JWT
|
|
306
417
|
* Reset Password With Token Handler
|
|
307
418
|
*/
|
|
308
419
|
resetPasswordWithToken(requestParameters: ResetPasswordWithTokenRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserResponse>;
|
|
309
420
|
/**
|
|
310
421
|
* Creates request options for sendPwResetEmail without sending the request
|
|
311
|
-
* @param {
|
|
422
|
+
* @param {SendPasswordResetRequest} sendPasswordResetRequest
|
|
312
423
|
* @throws {RequiredError}
|
|
313
424
|
* @memberof AuthApiInterface
|
|
314
425
|
*/
|
|
315
426
|
sendPwResetEmailRequestOpts(requestParameters: SendPwResetEmailRequest): Promise<runtime.RequestOpts>;
|
|
316
427
|
/**
|
|
317
|
-
*
|
|
428
|
+
* Initiate a password reset via the requested ``method``. ``method=EMAIL`` (default) mints a ``PasswordResetToken`` and sends the existing reset email. ``method=SMS`` looks up the user by phone, dispatches an SMS verification code, and the caller must follow up with ``/validate_reset_code``.
|
|
318
429
|
* @summary Send Pw Reset Email Handler
|
|
319
|
-
* @param {
|
|
430
|
+
* @param {SendPasswordResetRequest} sendPasswordResetRequest
|
|
320
431
|
* @param {*} [options] Override http request option.
|
|
321
432
|
* @throws {RequiredError}
|
|
322
433
|
* @memberof AuthApiInterface
|
|
323
434
|
*/
|
|
324
|
-
sendPwResetEmailRaw(requestParameters: SendPwResetEmailRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
435
|
+
sendPwResetEmailRaw(requestParameters: SendPwResetEmailRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ResponseSendPwResetEmail>>;
|
|
325
436
|
/**
|
|
437
|
+
* Initiate a password reset via the requested ``method``. ``method=EMAIL`` (default) mints a ``PasswordResetToken`` and sends the existing reset email. ``method=SMS`` looks up the user by phone, dispatches an SMS verification code, and the caller must follow up with ``/validate_reset_code``.
|
|
326
438
|
* Send Pw Reset Email Handler
|
|
327
439
|
*/
|
|
328
|
-
sendPwResetEmail(requestParameters: SendPwResetEmailRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
440
|
+
sendPwResetEmail(requestParameters: SendPwResetEmailRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ResponseSendPwResetEmail>;
|
|
329
441
|
/**
|
|
330
442
|
* Creates request options for signout without sending the request
|
|
331
443
|
* @throws {RequiredError}
|
|
@@ -367,11 +479,46 @@ export interface AuthApiInterface {
|
|
|
367
479
|
* Sso Login Handler
|
|
368
480
|
*/
|
|
369
481
|
ssoSignin(requestParameters: SsoSigninRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
482
|
+
/**
|
|
483
|
+
* Creates request options for validatePwResetCode without sending the request
|
|
484
|
+
* @param {ValidateResetCodeRequest} validateResetCodeRequest
|
|
485
|
+
* @throws {RequiredError}
|
|
486
|
+
* @memberof AuthApiInterface
|
|
487
|
+
*/
|
|
488
|
+
validatePwResetCodeRequestOpts(requestParameters: ValidatePwResetCodeRequest): Promise<runtime.RequestOpts>;
|
|
489
|
+
/**
|
|
490
|
+
* Validate an SMS reset code and return a single-use reset JWT.
|
|
491
|
+
* @summary Validate Reset Code Handler
|
|
492
|
+
* @param {ValidateResetCodeRequest} validateResetCodeRequest
|
|
493
|
+
* @param {*} [options] Override http request option.
|
|
494
|
+
* @throws {RequiredError}
|
|
495
|
+
* @memberof AuthApiInterface
|
|
496
|
+
*/
|
|
497
|
+
validatePwResetCodeRaw(requestParameters: ValidatePwResetCodeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PasswordResetTokenResponse>>;
|
|
498
|
+
/**
|
|
499
|
+
* Validate an SMS reset code and return a single-use reset JWT.
|
|
500
|
+
* Validate Reset Code Handler
|
|
501
|
+
*/
|
|
502
|
+
validatePwResetCode(requestParameters: ValidatePwResetCodeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PasswordResetTokenResponse>;
|
|
370
503
|
}
|
|
371
504
|
/**
|
|
372
505
|
*
|
|
373
506
|
*/
|
|
374
507
|
export declare class AuthApi extends runtime.BaseAPI implements AuthApiInterface {
|
|
508
|
+
/**
|
|
509
|
+
* Creates request options for changePhoneNumber without sending the request
|
|
510
|
+
*/
|
|
511
|
+
changePhoneNumberRequestOpts(requestParameters: ChangePhoneNumberOperationRequest): Promise<runtime.RequestOpts>;
|
|
512
|
+
/**
|
|
513
|
+
* Apply a verified phone-number change to the authenticated user. The new phone is read from the Redis validation record pinned by ``/me/phone_number/verify``.
|
|
514
|
+
* Change Phone Number Handler
|
|
515
|
+
*/
|
|
516
|
+
changePhoneNumberRaw(requestParameters: ChangePhoneNumberOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserResponse>>;
|
|
517
|
+
/**
|
|
518
|
+
* Apply a verified phone-number change to the authenticated user. The new phone is read from the Redis validation record pinned by ``/me/phone_number/verify``.
|
|
519
|
+
* Change Phone Number Handler
|
|
520
|
+
*/
|
|
521
|
+
changePhoneNumber(requestParameters: ChangePhoneNumberOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserResponse>;
|
|
375
522
|
/**
|
|
376
523
|
* Creates request options for createPasswordUser without sending the request
|
|
377
524
|
*/
|
|
@@ -384,6 +531,20 @@ export declare class AuthApi extends runtime.BaseAPI implements AuthApiInterface
|
|
|
384
531
|
* Create Password User Handler
|
|
385
532
|
*/
|
|
386
533
|
createPasswordUser(requestParameters: CreatePasswordUserOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserResponse>;
|
|
534
|
+
/**
|
|
535
|
+
* Creates request options for createPhonePasswordUser without sending the request
|
|
536
|
+
*/
|
|
537
|
+
createPhonePasswordUserRequestOpts(requestParameters: CreatePhonePasswordUserOperationRequest): Promise<runtime.RequestOpts>;
|
|
538
|
+
/**
|
|
539
|
+
* Complete phone-based signup using a verified validation code. The phone number is read from the Redis validation record — it was pinned there by ``/phone_verification`` — so the client cannot submit a different phone here than the one it just proved ownership of.
|
|
540
|
+
* Create Phone Password User Handler
|
|
541
|
+
*/
|
|
542
|
+
createPhonePasswordUserRaw(requestParameters: CreatePhonePasswordUserOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserResponse>>;
|
|
543
|
+
/**
|
|
544
|
+
* Complete phone-based signup using a verified validation code. The phone number is read from the Redis validation record — it was pinned there by ``/phone_verification`` — so the client cannot submit a different phone here than the one it just proved ownership of.
|
|
545
|
+
* Create Phone Password User Handler
|
|
546
|
+
*/
|
|
547
|
+
createPhonePasswordUser(requestParameters: CreatePhonePasswordUserOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserResponse>;
|
|
387
548
|
/**
|
|
388
549
|
* Creates request options for fanweiDirectorySync without sending the request
|
|
389
550
|
*/
|
|
@@ -454,6 +615,20 @@ export declare class AuthApi extends runtime.BaseAPI implements AuthApiInterface
|
|
|
454
615
|
* Pw Email Verification Handler
|
|
455
616
|
*/
|
|
456
617
|
pwEmailVerification(requestParameters: PwEmailVerificationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EmailSentResponse>;
|
|
618
|
+
/**
|
|
619
|
+
* Creates request options for pwPhoneVerification without sending the request
|
|
620
|
+
*/
|
|
621
|
+
pwPhoneVerificationRequestOpts(requestParameters: PwPhoneVerificationRequest): Promise<runtime.RequestOpts>;
|
|
622
|
+
/**
|
|
623
|
+
* Send a 6-digit signup verification code to ``phone_number``. Rejects (409) if a user already exists for this phone — this leaks enumeration but matches the duplicate-signup UX of the email flow.
|
|
624
|
+
* Pw Phone Verification Handler
|
|
625
|
+
*/
|
|
626
|
+
pwPhoneVerificationRaw(requestParameters: PwPhoneVerificationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PhoneValidationResponse>>;
|
|
627
|
+
/**
|
|
628
|
+
* Send a 6-digit signup verification code to ``phone_number``. Rejects (409) if a user already exists for this phone — this leaks enumeration but matches the duplicate-signup UX of the email flow.
|
|
629
|
+
* Pw Phone Verification Handler
|
|
630
|
+
*/
|
|
631
|
+
pwPhoneVerification(requestParameters: PwPhoneVerificationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PhoneValidationResponse>;
|
|
457
632
|
/**
|
|
458
633
|
* Creates request options for pwSignin without sending the request
|
|
459
634
|
*/
|
|
@@ -482,6 +657,20 @@ export declare class AuthApi extends runtime.BaseAPI implements AuthApiInterface
|
|
|
482
657
|
* Refresh Uat Handler
|
|
483
658
|
*/
|
|
484
659
|
refreshUat(requestParameters?: RefreshUatRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserResponse>;
|
|
660
|
+
/**
|
|
661
|
+
* Creates request options for requestPhoneChange without sending the request
|
|
662
|
+
*/
|
|
663
|
+
requestPhoneChangeRequestOpts(requestParameters: RequestPhoneChangeOperationRequest): Promise<runtime.RequestOpts>;
|
|
664
|
+
/**
|
|
665
|
+
* Dispatch an SMS code to authorize a phone-number change. Confirms the new phone isn\'t already taken by *another* user. The caller is identified by their UAT, so authentication is required.
|
|
666
|
+
* Request Phone Change Handler
|
|
667
|
+
*/
|
|
668
|
+
requestPhoneChangeRaw(requestParameters: RequestPhoneChangeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PhoneValidationResponse>>;
|
|
669
|
+
/**
|
|
670
|
+
* Dispatch an SMS code to authorize a phone-number change. Confirms the new phone isn\'t already taken by *another* user. The caller is identified by their UAT, so authentication is required.
|
|
671
|
+
* Request Phone Change Handler
|
|
672
|
+
*/
|
|
673
|
+
requestPhoneChange(requestParameters: RequestPhoneChangeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PhoneValidationResponse>;
|
|
485
674
|
/**
|
|
486
675
|
* Creates request options for resetPassword without sending the request
|
|
487
676
|
*/
|
|
@@ -501,12 +690,12 @@ export declare class AuthApi extends runtime.BaseAPI implements AuthApiInterface
|
|
|
501
690
|
*/
|
|
502
691
|
resetPasswordWithTokenRequestOpts(requestParameters: ResetPasswordWithTokenRequest): Promise<runtime.RequestOpts>;
|
|
503
692
|
/**
|
|
504
|
-
* Reset password with
|
|
693
|
+
* Reset password with a single-use PasswordResetToken JWT
|
|
505
694
|
* Reset Password With Token Handler
|
|
506
695
|
*/
|
|
507
696
|
resetPasswordWithTokenRaw(requestParameters: ResetPasswordWithTokenRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserResponse>>;
|
|
508
697
|
/**
|
|
509
|
-
* Reset password with
|
|
698
|
+
* Reset password with a single-use PasswordResetToken JWT
|
|
510
699
|
* Reset Password With Token Handler
|
|
511
700
|
*/
|
|
512
701
|
resetPasswordWithToken(requestParameters: ResetPasswordWithTokenRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserResponse>;
|
|
@@ -515,13 +704,15 @@ export declare class AuthApi extends runtime.BaseAPI implements AuthApiInterface
|
|
|
515
704
|
*/
|
|
516
705
|
sendPwResetEmailRequestOpts(requestParameters: SendPwResetEmailRequest): Promise<runtime.RequestOpts>;
|
|
517
706
|
/**
|
|
707
|
+
* Initiate a password reset via the requested ``method``. ``method=EMAIL`` (default) mints a ``PasswordResetToken`` and sends the existing reset email. ``method=SMS`` looks up the user by phone, dispatches an SMS verification code, and the caller must follow up with ``/validate_reset_code``.
|
|
518
708
|
* Send Pw Reset Email Handler
|
|
519
709
|
*/
|
|
520
|
-
sendPwResetEmailRaw(requestParameters: SendPwResetEmailRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
710
|
+
sendPwResetEmailRaw(requestParameters: SendPwResetEmailRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ResponseSendPwResetEmail>>;
|
|
521
711
|
/**
|
|
712
|
+
* Initiate a password reset via the requested ``method``. ``method=EMAIL`` (default) mints a ``PasswordResetToken`` and sends the existing reset email. ``method=SMS`` looks up the user by phone, dispatches an SMS verification code, and the caller must follow up with ``/validate_reset_code``.
|
|
522
713
|
* Send Pw Reset Email Handler
|
|
523
714
|
*/
|
|
524
|
-
sendPwResetEmail(requestParameters: SendPwResetEmailRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
715
|
+
sendPwResetEmail(requestParameters: SendPwResetEmailRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ResponseSendPwResetEmail>;
|
|
525
716
|
/**
|
|
526
717
|
* Creates request options for signout without sending the request
|
|
527
718
|
*/
|
|
@@ -548,4 +739,18 @@ export declare class AuthApi extends runtime.BaseAPI implements AuthApiInterface
|
|
|
548
739
|
* Sso Login Handler
|
|
549
740
|
*/
|
|
550
741
|
ssoSignin(requestParameters: SsoSigninRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
742
|
+
/**
|
|
743
|
+
* Creates request options for validatePwResetCode without sending the request
|
|
744
|
+
*/
|
|
745
|
+
validatePwResetCodeRequestOpts(requestParameters: ValidatePwResetCodeRequest): Promise<runtime.RequestOpts>;
|
|
746
|
+
/**
|
|
747
|
+
* Validate an SMS reset code and return a single-use reset JWT.
|
|
748
|
+
* Validate Reset Code Handler
|
|
749
|
+
*/
|
|
750
|
+
validatePwResetCodeRaw(requestParameters: ValidatePwResetCodeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PasswordResetTokenResponse>>;
|
|
751
|
+
/**
|
|
752
|
+
* Validate an SMS reset code and return a single-use reset JWT.
|
|
753
|
+
* Validate Reset Code Handler
|
|
754
|
+
*/
|
|
755
|
+
validatePwResetCode(requestParameters: ValidatePwResetCodeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PasswordResetTokenResponse>;
|
|
551
756
|
}
|