@knowledge-stack/ksapi 1.23.5 → 1.24.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 +122 -4
- package/.openapi-generator/VERSION +1 -1
- package/README.md +274 -28
- package/dist/apis/AuthApi.d.ts +117 -0
- package/dist/apis/AuthApi.js +137 -47
- package/dist/apis/ChunkLineagesApi.d.ts +38 -0
- package/dist/apis/ChunkLineagesApi.js +42 -15
- package/dist/apis/ChunksApi.d.ts +78 -4
- package/dist/apis/ChunksApi.js +85 -31
- package/dist/apis/DefaultApi.d.ts +20 -0
- package/dist/apis/DefaultApi.js +28 -10
- package/dist/apis/DocumentVersionsApi.d.ts +99 -9
- package/dist/apis/DocumentVersionsApi.js +100 -37
- package/dist/apis/DocumentsApi.d.ts +80 -0
- package/dist/apis/DocumentsApi.js +84 -30
- package/dist/apis/FoldersApi.d.ts +92 -9
- package/dist/apis/FoldersApi.js +86 -32
- package/dist/apis/InvitesApi.d.ts +51 -0
- package/dist/apis/InvitesApi.js +56 -20
- package/dist/apis/PathPartsApi.d.ts +54 -0
- package/dist/apis/PathPartsApi.js +56 -20
- package/dist/apis/SectionsApi.d.ts +49 -0
- package/dist/apis/SectionsApi.js +56 -20
- package/dist/apis/TagsApi.d.ts +62 -0
- package/dist/apis/TagsApi.js +70 -25
- package/dist/apis/TenantsApi.d.ts +103 -0
- package/dist/apis/TenantsApi.js +112 -40
- package/dist/apis/ThreadMessagesApi.d.ts +41 -0
- package/dist/apis/ThreadMessagesApi.js +42 -15
- package/dist/apis/ThreadsApi.d.ts +77 -0
- package/dist/apis/ThreadsApi.js +84 -30
- package/dist/apis/UserPermissionsApi.d.ts +54 -0
- package/dist/apis/UserPermissionsApi.js +56 -20
- package/dist/apis/UsersApi.d.ts +23 -0
- package/dist/apis/UsersApi.js +28 -10
- package/dist/apis/WorkflowsApi.d.ts +38 -0
- package/dist/apis/WorkflowsApi.js +42 -15
- package/dist/esm/apis/AuthApi.d.ts +117 -0
- package/dist/esm/apis/AuthApi.js +137 -47
- package/dist/esm/apis/ChunkLineagesApi.d.ts +38 -0
- package/dist/esm/apis/ChunkLineagesApi.js +42 -15
- package/dist/esm/apis/ChunksApi.d.ts +78 -4
- package/dist/esm/apis/ChunksApi.js +85 -31
- package/dist/esm/apis/DefaultApi.d.ts +20 -0
- package/dist/esm/apis/DefaultApi.js +28 -10
- package/dist/esm/apis/DocumentVersionsApi.d.ts +99 -9
- package/dist/esm/apis/DocumentVersionsApi.js +101 -38
- package/dist/esm/apis/DocumentsApi.d.ts +80 -0
- package/dist/esm/apis/DocumentsApi.js +84 -30
- package/dist/esm/apis/FoldersApi.d.ts +92 -9
- package/dist/esm/apis/FoldersApi.js +87 -33
- package/dist/esm/apis/InvitesApi.d.ts +51 -0
- package/dist/esm/apis/InvitesApi.js +56 -20
- package/dist/esm/apis/PathPartsApi.d.ts +54 -0
- package/dist/esm/apis/PathPartsApi.js +56 -20
- package/dist/esm/apis/SectionsApi.d.ts +49 -0
- package/dist/esm/apis/SectionsApi.js +56 -20
- package/dist/esm/apis/TagsApi.d.ts +62 -0
- package/dist/esm/apis/TagsApi.js +70 -25
- package/dist/esm/apis/TenantsApi.d.ts +103 -0
- package/dist/esm/apis/TenantsApi.js +112 -40
- package/dist/esm/apis/ThreadMessagesApi.d.ts +41 -0
- package/dist/esm/apis/ThreadMessagesApi.js +42 -15
- package/dist/esm/apis/ThreadsApi.d.ts +77 -0
- package/dist/esm/apis/ThreadsApi.js +84 -30
- package/dist/esm/apis/UserPermissionsApi.d.ts +54 -0
- package/dist/esm/apis/UserPermissionsApi.js +56 -20
- package/dist/esm/apis/UsersApi.d.ts +23 -0
- package/dist/esm/apis/UsersApi.js +28 -10
- package/dist/esm/apis/WorkflowsApi.d.ts +38 -0
- package/dist/esm/apis/WorkflowsApi.js +42 -15
- package/dist/esm/models/{DocumentContentPathPart.d.ts → ChunkContentItem.d.ts} +37 -40
- package/dist/esm/models/{DocumentContentPathPart.js → ChunkContentItem.js} +17 -16
- package/dist/esm/models/DocumentResponse.d.ts +13 -0
- package/dist/esm/models/DocumentResponse.js +8 -0
- package/dist/esm/models/FolderResponse.d.ts +13 -0
- package/dist/esm/models/FolderResponse.js +8 -0
- package/dist/esm/models/FolderResponseOrDocumentResponse.d.ts +27 -0
- package/dist/esm/models/FolderResponseOrDocumentResponse.js +47 -0
- package/dist/esm/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.d.ts +66 -0
- package/dist/esm/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.js +70 -0
- package/dist/esm/models/PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator.d.ts +66 -0
- package/dist/esm/models/PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator.js +70 -0
- package/dist/esm/models/SectionContentItem.d.ts +114 -0
- package/dist/esm/models/SectionContentItem.js +86 -0
- package/dist/esm/models/SectionContentItemOrChunkContentItem.d.ts +27 -0
- package/dist/esm/models/SectionContentItemOrChunkContentItem.js +47 -0
- package/dist/esm/models/index.d.ts +6 -4
- package/dist/esm/models/index.js +6 -4
- package/dist/models/{DocumentContentPathPart.d.ts → ChunkContentItem.d.ts} +37 -40
- package/dist/models/{DocumentContentPathPart.js → ChunkContentItem.js} +23 -22
- package/dist/models/DocumentResponse.d.ts +13 -0
- package/dist/models/DocumentResponse.js +9 -1
- package/dist/models/FolderResponse.d.ts +13 -0
- package/dist/models/FolderResponse.js +9 -1
- package/dist/models/FolderResponseOrDocumentResponse.d.ts +27 -0
- package/dist/models/FolderResponseOrDocumentResponse.js +53 -0
- package/dist/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.d.ts +66 -0
- package/dist/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.js +78 -0
- package/dist/models/PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator.d.ts +66 -0
- package/dist/models/PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator.js +78 -0
- package/dist/models/SectionContentItem.d.ts +114 -0
- package/dist/models/SectionContentItem.js +94 -0
- package/dist/models/SectionContentItemOrChunkContentItem.d.ts +27 -0
- package/dist/models/SectionContentItemOrChunkContentItem.js +53 -0
- package/dist/models/index.d.ts +6 -4
- package/dist/models/index.js +6 -4
- package/docs/AuthApi.md +707 -0
- package/docs/BulkTagRequest.md +35 -0
- package/docs/ChunkContentItem.md +59 -0
- package/docs/ChunkLineageResponse.md +41 -0
- package/docs/ChunkLineagesApi.md +230 -0
- package/docs/ChunkMetadataInput.md +37 -0
- package/docs/ChunkMetadataOutput.md +37 -0
- package/docs/ChunkResponse.md +63 -0
- package/docs/ChunkSearchRequest.md +47 -0
- package/docs/ChunkType.md +33 -0
- package/docs/ChunksApi.md +446 -0
- package/docs/ClearVersionContentsResponse.md +35 -0
- package/docs/CreateChunkLineageRequest.md +37 -0
- package/docs/CreateChunkRequest.md +43 -0
- package/docs/CreateDocumentRequest.md +41 -0
- package/docs/CreateFolderRequest.md +37 -0
- package/docs/CreatePasswordUserRequest.md +36 -0
- package/docs/CreatePermissionRequest.md +40 -0
- package/docs/CreateSectionRequest.md +41 -0
- package/docs/CreateTagRequest.md +39 -0
- package/docs/CreateTenantRequest.md +37 -0
- package/docs/CreateThreadMessageRequest.md +37 -0
- package/docs/CreateThreadRequest.md +37 -0
- package/docs/DefaultApi.md +128 -0
- package/docs/DocumentOrigin.md +33 -0
- package/docs/DocumentResponse.md +63 -0
- package/docs/DocumentType.md +33 -0
- package/docs/DocumentVersionMetadata.md +47 -0
- package/docs/DocumentVersionMetadataUpdate.md +47 -0
- package/docs/DocumentVersionResponse.md +57 -0
- package/docs/DocumentVersionsApi.md +530 -0
- package/docs/DocumentsApi.md +464 -0
- package/docs/EmailSentResponse.md +34 -0
- package/docs/EmailVerificationRequest.md +34 -0
- package/docs/EmbeddingModel.md +33 -0
- package/docs/FolderResponse.md +55 -0
- package/docs/FolderResponseOrDocumentResponse.md +62 -0
- package/docs/FoldersApi.md +473 -0
- package/docs/HTTPValidationError.md +34 -0
- package/docs/HealthCheckResponse.md +36 -0
- package/docs/IdpType.md +33 -0
- package/docs/IngestDocumentResponse.md +39 -0
- package/docs/InviteResponse.md +53 -0
- package/docs/InviteStatus.md +32 -0
- package/docs/InviteUserRequest.md +38 -0
- package/docs/InvitesApi.md +305 -0
- package/docs/LineageEdgeResponse.md +37 -0
- package/docs/LineageGraphResponse.md +37 -0
- package/docs/LineageNodeResponse.md +47 -0
- package/docs/LocationInner.md +32 -0
- package/docs/MessageRole.md +33 -0
- package/docs/OAuth2Config.md +41 -0
- package/docs/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.md +40 -0
- package/docs/PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator.md +40 -0
- package/docs/PaginatedResponseDocumentResponse.md +40 -0
- package/docs/PaginatedResponseDocumentVersionResponse.md +40 -0
- package/docs/PaginatedResponseFolderResponse.md +40 -0
- package/docs/PaginatedResponseInviteResponse.md +40 -0
- package/docs/PaginatedResponsePathPartResponse.md +40 -0
- package/docs/PaginatedResponsePermissionResponse.md +40 -0
- package/docs/PaginatedResponseTagResponse.md +40 -0
- package/docs/PaginatedResponseTenantResponse.md +40 -0
- package/docs/PaginatedResponseTenantUserResponse.md +40 -0
- package/docs/PaginatedResponseThreadMessageResponse.md +40 -0
- package/docs/PaginatedResponseThreadResponse.md +40 -0
- package/docs/PaginatedResponseWorkflowSummaryResponse.md +40 -0
- package/docs/PartType.md +33 -0
- package/docs/PasswordResetRequest.md +36 -0
- package/docs/PasswordResetWithTokenRequest.md +36 -0
- package/docs/PathOrder.md +33 -0
- package/docs/PathPartResponse.md +53 -0
- package/docs/PathPartTagsResponse.md +35 -0
- package/docs/PathPartsApi.md +314 -0
- package/docs/PermissionCapability.md +33 -0
- package/docs/PermissionResponse.md +48 -0
- package/docs/PipelineState.md +45 -0
- package/docs/PipelineStatus.md +33 -0
- package/docs/Polygon.md +41 -0
- package/docs/PolygonReference.md +37 -0
- package/docs/RootResponse.md +36 -0
- package/docs/ScoredChunkResponse.md +65 -0
- package/docs/SectionContentItem.md +55 -0
- package/docs/SectionContentItemOrChunkContentItem.md +60 -0
- package/docs/SectionResponse.md +57 -0
- package/docs/SectionsApi.md +299 -0
- package/docs/SignInRequest.md +38 -0
- package/docs/TagResponse.md +47 -0
- package/docs/TagsApi.md +374 -0
- package/docs/TenantResponse.md +39 -0
- package/docs/TenantUserEditRequest.md +35 -0
- package/docs/TenantUserResponse.md +43 -0
- package/docs/TenantUserRole.md +33 -0
- package/docs/TenantsApi.md +605 -0
- package/docs/ThreadMessageResponse.md +53 -0
- package/docs/ThreadMessagesApi.md +239 -0
- package/docs/ThreadResponse.md +49 -0
- package/docs/ThreadsApi.md +455 -0
- package/docs/UpdateChunkContentRequest.md +37 -0
- package/docs/UpdateChunkMetadataRequest.md +35 -0
- package/docs/UpdateDocumentRequest.md +39 -0
- package/docs/UpdateFolderRequest.md +37 -0
- package/docs/UpdatePermissionRequest.md +36 -0
- package/docs/UpdateSectionRequest.md +41 -0
- package/docs/UpdateTagRequest.md +39 -0
- package/docs/UpdateTenantRequest.md +37 -0
- package/docs/UpdateThreadRequest.md +37 -0
- package/docs/UpdateUserRequest.md +34 -0
- package/docs/UserPermissionsApi.md +314 -0
- package/docs/UserResponse.md +44 -0
- package/docs/UsersApi.md +149 -0
- package/docs/ValidationError.md +42 -0
- package/docs/WorkflowAction.md +33 -0
- package/docs/WorkflowActionResponse.md +39 -0
- package/docs/WorkflowDetailResponse.md +63 -0
- package/docs/WorkflowSummaryResponse.md +49 -0
- package/docs/WorkflowsApi.md +230 -0
- package/package.json +1 -1
- package/src/apis/AuthApi.ts +214 -47
- package/src/apis/ChunkLineagesApi.ts +68 -15
- package/src/apis/ChunksApi.ts +137 -33
- package/src/apis/DefaultApi.ts +40 -10
- package/src/apis/DocumentVersionsApi.ts +170 -45
- package/src/apis/DocumentsApi.ts +140 -30
- package/src/apis/FoldersApi.ts +153 -40
- package/src/apis/InvitesApi.ts +91 -20
- package/src/apis/PathPartsApi.ts +94 -20
- package/src/apis/SectionsApi.ts +89 -20
- package/src/apis/TagsApi.ts +112 -25
- package/src/apis/TenantsApi.ts +183 -40
- package/src/apis/ThreadMessagesApi.ts +71 -15
- package/src/apis/ThreadsApi.ts +137 -30
- package/src/apis/UserPermissionsApi.ts +94 -20
- package/src/apis/UsersApi.ts +43 -10
- package/src/apis/WorkflowsApi.ts +68 -15
- package/src/models/{DocumentContentPathPart.ts → ChunkContentItem.ts} +42 -53
- package/src/models/DocumentResponse.ts +16 -0
- package/src/models/FolderResponse.ts +18 -0
- package/src/models/FolderResponseOrDocumentResponse.ts +72 -0
- package/src/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.ts +130 -0
- package/src/models/PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator.ts +130 -0
- package/src/models/SectionContentItem.ts +181 -0
- package/src/models/SectionContentItemOrChunkContentItem.ts +72 -0
- package/src/models/index.ts +6 -4
- package/dist/esm/models/FolderDocumentResponse.d.ts +0 -157
- package/dist/esm/models/FolderDocumentResponse.js +0 -99
- package/dist/esm/models/PaginatedResponseDocumentContentPathPart.d.ts +0 -66
- package/dist/esm/models/PaginatedResponseDocumentContentPathPart.js +0 -70
- package/dist/esm/models/PaginatedResponseFolderDocumentResponse.d.ts +0 -66
- package/dist/esm/models/PaginatedResponseFolderDocumentResponse.js +0 -70
- package/dist/models/FolderDocumentResponse.d.ts +0 -157
- package/dist/models/FolderDocumentResponse.js +0 -107
- package/dist/models/PaginatedResponseDocumentContentPathPart.d.ts +0 -66
- package/dist/models/PaginatedResponseDocumentContentPathPart.js +0 -78
- package/dist/models/PaginatedResponseFolderDocumentResponse.d.ts +0 -66
- package/dist/models/PaginatedResponseFolderDocumentResponse.js +0 -78
- package/src/models/FolderDocumentResponse.ts +0 -267
- package/src/models/PaginatedResponseDocumentContentPathPart.ts +0 -130
- package/src/models/PaginatedResponseFolderDocumentResponse.ts +0 -130
package/src/apis/AuthApi.ts
CHANGED
|
@@ -97,6 +97,14 @@ export interface SendPwResetEmailRequest {
|
|
|
97
97
|
* @interface AuthApiInterface
|
|
98
98
|
*/
|
|
99
99
|
export interface AuthApiInterface {
|
|
100
|
+
/**
|
|
101
|
+
* Creates request options for createPasswordUser without sending the request
|
|
102
|
+
* @param {CreatePasswordUserRequest} createPasswordUserRequest
|
|
103
|
+
* @throws {RequiredError}
|
|
104
|
+
* @memberof AuthApiInterface
|
|
105
|
+
*/
|
|
106
|
+
createPasswordUserRequestOpts(requestParameters: CreatePasswordUserOperationRequest): Promise<runtime.RequestOpts>;
|
|
107
|
+
|
|
100
108
|
/**
|
|
101
109
|
*
|
|
102
110
|
* @summary Create Password User Handler
|
|
@@ -112,6 +120,15 @@ export interface AuthApiInterface {
|
|
|
112
120
|
*/
|
|
113
121
|
createPasswordUser(requestParameters: CreatePasswordUserOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserResponse>;
|
|
114
122
|
|
|
123
|
+
/**
|
|
124
|
+
* Creates request options for initiateSso without sending the request
|
|
125
|
+
* @param {IdpType} provider Provider to initiate SSO with
|
|
126
|
+
* @param {string} [tenantId] Tenant ID to initiate SSO with
|
|
127
|
+
* @throws {RequiredError}
|
|
128
|
+
* @memberof AuthApiInterface
|
|
129
|
+
*/
|
|
130
|
+
initiateSsoRequestOpts(requestParameters: InitiateSsoRequest): Promise<runtime.RequestOpts>;
|
|
131
|
+
|
|
115
132
|
/**
|
|
116
133
|
* Initiate SSO with the given provider and tenant ID.
|
|
117
134
|
* @summary Initiate Sso Handler
|
|
@@ -129,6 +146,19 @@ export interface AuthApiInterface {
|
|
|
129
146
|
*/
|
|
130
147
|
initiateSso(requestParameters: InitiateSsoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<any>;
|
|
131
148
|
|
|
149
|
+
/**
|
|
150
|
+
* Creates request options for oauth2Callback without sending the request
|
|
151
|
+
* @param {IdpType} provider Provider to initiate SSO with
|
|
152
|
+
* @param {string} [code] Authorization code from provider
|
|
153
|
+
* @param {string} [state] State parameter for CSRF protection
|
|
154
|
+
* @param {string} [error] Error code if authorization failed
|
|
155
|
+
* @param {string} [errorDescription] Error description
|
|
156
|
+
* @param {string} [tenantId] Tenant ID to initiate SSO with
|
|
157
|
+
* @throws {RequiredError}
|
|
158
|
+
* @memberof AuthApiInterface
|
|
159
|
+
*/
|
|
160
|
+
oauth2CallbackRequestOpts(requestParameters: Oauth2CallbackRequest): Promise<runtime.RequestOpts>;
|
|
161
|
+
|
|
132
162
|
/**
|
|
133
163
|
* Handle OAuth2 callback from the given OAuth client.
|
|
134
164
|
* @summary Oauth2 Callback Handler
|
|
@@ -150,6 +180,14 @@ export interface AuthApiInterface {
|
|
|
150
180
|
*/
|
|
151
181
|
oauth2Callback(requestParameters: Oauth2CallbackRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserResponse>;
|
|
152
182
|
|
|
183
|
+
/**
|
|
184
|
+
* Creates request options for pwEmailVerification without sending the request
|
|
185
|
+
* @param {EmailVerificationRequest} emailVerificationRequest
|
|
186
|
+
* @throws {RequiredError}
|
|
187
|
+
* @memberof AuthApiInterface
|
|
188
|
+
*/
|
|
189
|
+
pwEmailVerificationRequestOpts(requestParameters: PwEmailVerificationRequest): Promise<runtime.RequestOpts>;
|
|
190
|
+
|
|
153
191
|
/**
|
|
154
192
|
* Send password user email verification email. This endpoint is the first step in the password user creation process. The user receives an email with a link to create their account.
|
|
155
193
|
* @summary Pw Email Verification Handler
|
|
@@ -166,6 +204,14 @@ export interface AuthApiInterface {
|
|
|
166
204
|
*/
|
|
167
205
|
pwEmailVerification(requestParameters: PwEmailVerificationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EmailSentResponse>;
|
|
168
206
|
|
|
207
|
+
/**
|
|
208
|
+
* Creates request options for pwSignin without sending the request
|
|
209
|
+
* @param {SignInRequest} signInRequest
|
|
210
|
+
* @throws {RequiredError}
|
|
211
|
+
* @memberof AuthApiInterface
|
|
212
|
+
*/
|
|
213
|
+
pwSigninRequestOpts(requestParameters: PwSigninRequest): Promise<runtime.RequestOpts>;
|
|
214
|
+
|
|
169
215
|
/**
|
|
170
216
|
* Validate password credentials and redirect to callback. This endpoint validates the user\'s credentials and stores the user ID in the session, then redirects to /auth/callback?method=pw to maintain consistency with OAuth flows.
|
|
171
217
|
* @summary Signin Handler
|
|
@@ -182,6 +228,15 @@ export interface AuthApiInterface {
|
|
|
182
228
|
*/
|
|
183
229
|
pwSignin(requestParameters: PwSigninRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserResponse>;
|
|
184
230
|
|
|
231
|
+
/**
|
|
232
|
+
* Creates request options for refreshUat without sending the request
|
|
233
|
+
* @param {string} [tenantId] Target tenant ID to switch to. None=refresh current tenant
|
|
234
|
+
* @param {string} [ksUat]
|
|
235
|
+
* @throws {RequiredError}
|
|
236
|
+
* @memberof AuthApiInterface
|
|
237
|
+
*/
|
|
238
|
+
refreshUatRequestOpts(requestParameters: RefreshUatRequest): Promise<runtime.RequestOpts>;
|
|
239
|
+
|
|
185
240
|
/**
|
|
186
241
|
* Refresh or switch the user\'s active tenant token.
|
|
187
242
|
* @summary Refresh Uat Handler
|
|
@@ -199,6 +254,15 @@ export interface AuthApiInterface {
|
|
|
199
254
|
*/
|
|
200
255
|
refreshUat(requestParameters: RefreshUatRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserResponse>;
|
|
201
256
|
|
|
257
|
+
/**
|
|
258
|
+
* Creates request options for resetPassword without sending the request
|
|
259
|
+
* @param {PasswordResetRequest} passwordResetRequest
|
|
260
|
+
* @param {string} [ksUat]
|
|
261
|
+
* @throws {RequiredError}
|
|
262
|
+
* @memberof AuthApiInterface
|
|
263
|
+
*/
|
|
264
|
+
resetPasswordRequestOpts(requestParameters: ResetPasswordRequest): Promise<runtime.RequestOpts>;
|
|
265
|
+
|
|
202
266
|
/**
|
|
203
267
|
* Reset password for the authenticated user
|
|
204
268
|
* @summary Reset Password Handler
|
|
@@ -216,6 +280,14 @@ export interface AuthApiInterface {
|
|
|
216
280
|
*/
|
|
217
281
|
resetPassword(requestParameters: ResetPasswordRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserResponse>;
|
|
218
282
|
|
|
283
|
+
/**
|
|
284
|
+
* Creates request options for resetPasswordWithToken without sending the request
|
|
285
|
+
* @param {PasswordResetWithTokenRequest} passwordResetWithTokenRequest
|
|
286
|
+
* @throws {RequiredError}
|
|
287
|
+
* @memberof AuthApiInterface
|
|
288
|
+
*/
|
|
289
|
+
resetPasswordWithTokenRequestOpts(requestParameters: ResetPasswordWithTokenRequest): Promise<runtime.RequestOpts>;
|
|
290
|
+
|
|
219
291
|
/**
|
|
220
292
|
* Reset password with email verification token
|
|
221
293
|
* @summary Reset Password With Token Handler
|
|
@@ -232,6 +304,14 @@ export interface AuthApiInterface {
|
|
|
232
304
|
*/
|
|
233
305
|
resetPasswordWithToken(requestParameters: ResetPasswordWithTokenRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserResponse>;
|
|
234
306
|
|
|
307
|
+
/**
|
|
308
|
+
* Creates request options for sendPwResetEmail without sending the request
|
|
309
|
+
* @param {EmailVerificationRequest} emailVerificationRequest
|
|
310
|
+
* @throws {RequiredError}
|
|
311
|
+
* @memberof AuthApiInterface
|
|
312
|
+
*/
|
|
313
|
+
sendPwResetEmailRequestOpts(requestParameters: SendPwResetEmailRequest): Promise<runtime.RequestOpts>;
|
|
314
|
+
|
|
235
315
|
/**
|
|
236
316
|
*
|
|
237
317
|
* @summary Send Pw Reset Email Handler
|
|
@@ -247,6 +327,13 @@ export interface AuthApiInterface {
|
|
|
247
327
|
*/
|
|
248
328
|
sendPwResetEmail(requestParameters: SendPwResetEmailRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EmailSentResponse>;
|
|
249
329
|
|
|
330
|
+
/**
|
|
331
|
+
* Creates request options for signout without sending the request
|
|
332
|
+
* @throws {RequiredError}
|
|
333
|
+
* @memberof AuthApiInterface
|
|
334
|
+
*/
|
|
335
|
+
signoutRequestOpts(): Promise<runtime.RequestOpts>;
|
|
336
|
+
|
|
250
337
|
/**
|
|
251
338
|
*
|
|
252
339
|
* @summary Signout Handler
|
|
@@ -269,9 +356,9 @@ export interface AuthApiInterface {
|
|
|
269
356
|
export class AuthApi extends runtime.BaseAPI implements AuthApiInterface {
|
|
270
357
|
|
|
271
358
|
/**
|
|
272
|
-
*
|
|
359
|
+
* Creates request options for createPasswordUser without sending the request
|
|
273
360
|
*/
|
|
274
|
-
async
|
|
361
|
+
async createPasswordUserRequestOpts(requestParameters: CreatePasswordUserOperationRequest): Promise<runtime.RequestOpts> {
|
|
275
362
|
if (requestParameters['createPasswordUserRequest'] == null) {
|
|
276
363
|
throw new runtime.RequiredError(
|
|
277
364
|
'createPasswordUserRequest',
|
|
@@ -288,13 +375,21 @@ export class AuthApi extends runtime.BaseAPI implements AuthApiInterface {
|
|
|
288
375
|
|
|
289
376
|
let urlPath = `/v1/auth/pw/user`;
|
|
290
377
|
|
|
291
|
-
|
|
378
|
+
return {
|
|
292
379
|
path: urlPath,
|
|
293
380
|
method: 'POST',
|
|
294
381
|
headers: headerParameters,
|
|
295
382
|
query: queryParameters,
|
|
296
383
|
body: CreatePasswordUserRequestToJSON(requestParameters['createPasswordUserRequest']),
|
|
297
|
-
}
|
|
384
|
+
};
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
/**
|
|
388
|
+
* Create Password User Handler
|
|
389
|
+
*/
|
|
390
|
+
async createPasswordUserRaw(requestParameters: CreatePasswordUserOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserResponse>> {
|
|
391
|
+
const requestOptions = await this.createPasswordUserRequestOpts(requestParameters);
|
|
392
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
298
393
|
|
|
299
394
|
return new runtime.JSONApiResponse(response, (jsonValue) => UserResponseFromJSON(jsonValue));
|
|
300
395
|
}
|
|
@@ -308,10 +403,9 @@ export class AuthApi extends runtime.BaseAPI implements AuthApiInterface {
|
|
|
308
403
|
}
|
|
309
404
|
|
|
310
405
|
/**
|
|
311
|
-
*
|
|
312
|
-
* Initiate Sso Handler
|
|
406
|
+
* Creates request options for initiateSso without sending the request
|
|
313
407
|
*/
|
|
314
|
-
async
|
|
408
|
+
async initiateSsoRequestOpts(requestParameters: InitiateSsoRequest): Promise<runtime.RequestOpts> {
|
|
315
409
|
if (requestParameters['provider'] == null) {
|
|
316
410
|
throw new runtime.RequiredError(
|
|
317
411
|
'provider',
|
|
@@ -334,12 +428,21 @@ export class AuthApi extends runtime.BaseAPI implements AuthApiInterface {
|
|
|
334
428
|
|
|
335
429
|
let urlPath = `/v1/auth/sso/initiate`;
|
|
336
430
|
|
|
337
|
-
|
|
431
|
+
return {
|
|
338
432
|
path: urlPath,
|
|
339
433
|
method: 'POST',
|
|
340
434
|
headers: headerParameters,
|
|
341
435
|
query: queryParameters,
|
|
342
|
-
}
|
|
436
|
+
};
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
/**
|
|
440
|
+
* Initiate SSO with the given provider and tenant ID.
|
|
441
|
+
* Initiate Sso Handler
|
|
442
|
+
*/
|
|
443
|
+
async initiateSsoRaw(requestParameters: InitiateSsoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<any>> {
|
|
444
|
+
const requestOptions = await this.initiateSsoRequestOpts(requestParameters);
|
|
445
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
343
446
|
|
|
344
447
|
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
345
448
|
return new runtime.JSONApiResponse<any>(response);
|
|
@@ -358,10 +461,9 @@ export class AuthApi extends runtime.BaseAPI implements AuthApiInterface {
|
|
|
358
461
|
}
|
|
359
462
|
|
|
360
463
|
/**
|
|
361
|
-
*
|
|
362
|
-
* Oauth2 Callback Handler
|
|
464
|
+
* Creates request options for oauth2Callback without sending the request
|
|
363
465
|
*/
|
|
364
|
-
async
|
|
466
|
+
async oauth2CallbackRequestOpts(requestParameters: Oauth2CallbackRequest): Promise<runtime.RequestOpts> {
|
|
365
467
|
if (requestParameters['provider'] == null) {
|
|
366
468
|
throw new runtime.RequiredError(
|
|
367
469
|
'provider',
|
|
@@ -400,12 +502,21 @@ export class AuthApi extends runtime.BaseAPI implements AuthApiInterface {
|
|
|
400
502
|
|
|
401
503
|
let urlPath = `/v1/auth/sso/oauth2/callback`;
|
|
402
504
|
|
|
403
|
-
|
|
505
|
+
return {
|
|
404
506
|
path: urlPath,
|
|
405
507
|
method: 'GET',
|
|
406
508
|
headers: headerParameters,
|
|
407
509
|
query: queryParameters,
|
|
408
|
-
}
|
|
510
|
+
};
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
/**
|
|
514
|
+
* Handle OAuth2 callback from the given OAuth client.
|
|
515
|
+
* Oauth2 Callback Handler
|
|
516
|
+
*/
|
|
517
|
+
async oauth2CallbackRaw(requestParameters: Oauth2CallbackRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserResponse>> {
|
|
518
|
+
const requestOptions = await this.oauth2CallbackRequestOpts(requestParameters);
|
|
519
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
409
520
|
|
|
410
521
|
return new runtime.JSONApiResponse(response, (jsonValue) => UserResponseFromJSON(jsonValue));
|
|
411
522
|
}
|
|
@@ -420,10 +531,9 @@ export class AuthApi extends runtime.BaseAPI implements AuthApiInterface {
|
|
|
420
531
|
}
|
|
421
532
|
|
|
422
533
|
/**
|
|
423
|
-
*
|
|
424
|
-
* Pw Email Verification Handler
|
|
534
|
+
* Creates request options for pwEmailVerification without sending the request
|
|
425
535
|
*/
|
|
426
|
-
async
|
|
536
|
+
async pwEmailVerificationRequestOpts(requestParameters: PwEmailVerificationRequest): Promise<runtime.RequestOpts> {
|
|
427
537
|
if (requestParameters['emailVerificationRequest'] == null) {
|
|
428
538
|
throw new runtime.RequiredError(
|
|
429
539
|
'emailVerificationRequest',
|
|
@@ -440,13 +550,22 @@ export class AuthApi extends runtime.BaseAPI implements AuthApiInterface {
|
|
|
440
550
|
|
|
441
551
|
let urlPath = `/v1/auth/pw/email_verification`;
|
|
442
552
|
|
|
443
|
-
|
|
553
|
+
return {
|
|
444
554
|
path: urlPath,
|
|
445
555
|
method: 'POST',
|
|
446
556
|
headers: headerParameters,
|
|
447
557
|
query: queryParameters,
|
|
448
558
|
body: EmailVerificationRequestToJSON(requestParameters['emailVerificationRequest']),
|
|
449
|
-
}
|
|
559
|
+
};
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
/**
|
|
563
|
+
* Send password user email verification email. This endpoint is the first step in the password user creation process. The user receives an email with a link to create their account.
|
|
564
|
+
* Pw Email Verification Handler
|
|
565
|
+
*/
|
|
566
|
+
async pwEmailVerificationRaw(requestParameters: PwEmailVerificationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<EmailSentResponse>> {
|
|
567
|
+
const requestOptions = await this.pwEmailVerificationRequestOpts(requestParameters);
|
|
568
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
450
569
|
|
|
451
570
|
return new runtime.JSONApiResponse(response, (jsonValue) => EmailSentResponseFromJSON(jsonValue));
|
|
452
571
|
}
|
|
@@ -461,10 +580,9 @@ export class AuthApi extends runtime.BaseAPI implements AuthApiInterface {
|
|
|
461
580
|
}
|
|
462
581
|
|
|
463
582
|
/**
|
|
464
|
-
*
|
|
465
|
-
* Signin Handler
|
|
583
|
+
* Creates request options for pwSignin without sending the request
|
|
466
584
|
*/
|
|
467
|
-
async
|
|
585
|
+
async pwSigninRequestOpts(requestParameters: PwSigninRequest): Promise<runtime.RequestOpts> {
|
|
468
586
|
if (requestParameters['signInRequest'] == null) {
|
|
469
587
|
throw new runtime.RequiredError(
|
|
470
588
|
'signInRequest',
|
|
@@ -481,13 +599,22 @@ export class AuthApi extends runtime.BaseAPI implements AuthApiInterface {
|
|
|
481
599
|
|
|
482
600
|
let urlPath = `/v1/auth/pw/signin`;
|
|
483
601
|
|
|
484
|
-
|
|
602
|
+
return {
|
|
485
603
|
path: urlPath,
|
|
486
604
|
method: 'POST',
|
|
487
605
|
headers: headerParameters,
|
|
488
606
|
query: queryParameters,
|
|
489
607
|
body: SignInRequestToJSON(requestParameters['signInRequest']),
|
|
490
|
-
}
|
|
608
|
+
};
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
/**
|
|
612
|
+
* Validate password credentials and redirect to callback. This endpoint validates the user\'s credentials and stores the user ID in the session, then redirects to /auth/callback?method=pw to maintain consistency with OAuth flows.
|
|
613
|
+
* Signin Handler
|
|
614
|
+
*/
|
|
615
|
+
async pwSigninRaw(requestParameters: PwSigninRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserResponse>> {
|
|
616
|
+
const requestOptions = await this.pwSigninRequestOpts(requestParameters);
|
|
617
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
491
618
|
|
|
492
619
|
return new runtime.JSONApiResponse(response, (jsonValue) => UserResponseFromJSON(jsonValue));
|
|
493
620
|
}
|
|
@@ -502,10 +629,9 @@ export class AuthApi extends runtime.BaseAPI implements AuthApiInterface {
|
|
|
502
629
|
}
|
|
503
630
|
|
|
504
631
|
/**
|
|
505
|
-
*
|
|
506
|
-
* Refresh Uat Handler
|
|
632
|
+
* Creates request options for refreshUat without sending the request
|
|
507
633
|
*/
|
|
508
|
-
async
|
|
634
|
+
async refreshUatRequestOpts(requestParameters: RefreshUatRequest): Promise<runtime.RequestOpts> {
|
|
509
635
|
const queryParameters: any = {};
|
|
510
636
|
|
|
511
637
|
if (requestParameters['tenantId'] != null) {
|
|
@@ -517,12 +643,21 @@ export class AuthApi extends runtime.BaseAPI implements AuthApiInterface {
|
|
|
517
643
|
|
|
518
644
|
let urlPath = `/v1/auth/uat`;
|
|
519
645
|
|
|
520
|
-
|
|
646
|
+
return {
|
|
521
647
|
path: urlPath,
|
|
522
648
|
method: 'POST',
|
|
523
649
|
headers: headerParameters,
|
|
524
650
|
query: queryParameters,
|
|
525
|
-
}
|
|
651
|
+
};
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
/**
|
|
655
|
+
* Refresh or switch the user\'s active tenant token.
|
|
656
|
+
* Refresh Uat Handler
|
|
657
|
+
*/
|
|
658
|
+
async refreshUatRaw(requestParameters: RefreshUatRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserResponse>> {
|
|
659
|
+
const requestOptions = await this.refreshUatRequestOpts(requestParameters);
|
|
660
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
526
661
|
|
|
527
662
|
return new runtime.JSONApiResponse(response, (jsonValue) => UserResponseFromJSON(jsonValue));
|
|
528
663
|
}
|
|
@@ -537,10 +672,9 @@ export class AuthApi extends runtime.BaseAPI implements AuthApiInterface {
|
|
|
537
672
|
}
|
|
538
673
|
|
|
539
674
|
/**
|
|
540
|
-
*
|
|
541
|
-
* Reset Password Handler
|
|
675
|
+
* Creates request options for resetPassword without sending the request
|
|
542
676
|
*/
|
|
543
|
-
async
|
|
677
|
+
async resetPasswordRequestOpts(requestParameters: ResetPasswordRequest): Promise<runtime.RequestOpts> {
|
|
544
678
|
if (requestParameters['passwordResetRequest'] == null) {
|
|
545
679
|
throw new runtime.RequiredError(
|
|
546
680
|
'passwordResetRequest',
|
|
@@ -557,13 +691,22 @@ export class AuthApi extends runtime.BaseAPI implements AuthApiInterface {
|
|
|
557
691
|
|
|
558
692
|
let urlPath = `/v1/auth/pw/reset`;
|
|
559
693
|
|
|
560
|
-
|
|
694
|
+
return {
|
|
561
695
|
path: urlPath,
|
|
562
696
|
method: 'POST',
|
|
563
697
|
headers: headerParameters,
|
|
564
698
|
query: queryParameters,
|
|
565
699
|
body: PasswordResetRequestToJSON(requestParameters['passwordResetRequest']),
|
|
566
|
-
}
|
|
700
|
+
};
|
|
701
|
+
}
|
|
702
|
+
|
|
703
|
+
/**
|
|
704
|
+
* Reset password for the authenticated user
|
|
705
|
+
* Reset Password Handler
|
|
706
|
+
*/
|
|
707
|
+
async resetPasswordRaw(requestParameters: ResetPasswordRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserResponse>> {
|
|
708
|
+
const requestOptions = await this.resetPasswordRequestOpts(requestParameters);
|
|
709
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
567
710
|
|
|
568
711
|
return new runtime.JSONApiResponse(response, (jsonValue) => UserResponseFromJSON(jsonValue));
|
|
569
712
|
}
|
|
@@ -578,10 +721,9 @@ export class AuthApi extends runtime.BaseAPI implements AuthApiInterface {
|
|
|
578
721
|
}
|
|
579
722
|
|
|
580
723
|
/**
|
|
581
|
-
*
|
|
582
|
-
* Reset Password With Token Handler
|
|
724
|
+
* Creates request options for resetPasswordWithToken without sending the request
|
|
583
725
|
*/
|
|
584
|
-
async
|
|
726
|
+
async resetPasswordWithTokenRequestOpts(requestParameters: ResetPasswordWithTokenRequest): Promise<runtime.RequestOpts> {
|
|
585
727
|
if (requestParameters['passwordResetWithTokenRequest'] == null) {
|
|
586
728
|
throw new runtime.RequiredError(
|
|
587
729
|
'passwordResetWithTokenRequest',
|
|
@@ -598,13 +740,22 @@ export class AuthApi extends runtime.BaseAPI implements AuthApiInterface {
|
|
|
598
740
|
|
|
599
741
|
let urlPath = `/v1/auth/pw/reset_with_token`;
|
|
600
742
|
|
|
601
|
-
|
|
743
|
+
return {
|
|
602
744
|
path: urlPath,
|
|
603
745
|
method: 'POST',
|
|
604
746
|
headers: headerParameters,
|
|
605
747
|
query: queryParameters,
|
|
606
748
|
body: PasswordResetWithTokenRequestToJSON(requestParameters['passwordResetWithTokenRequest']),
|
|
607
|
-
}
|
|
749
|
+
};
|
|
750
|
+
}
|
|
751
|
+
|
|
752
|
+
/**
|
|
753
|
+
* Reset password with email verification token
|
|
754
|
+
* Reset Password With Token Handler
|
|
755
|
+
*/
|
|
756
|
+
async resetPasswordWithTokenRaw(requestParameters: ResetPasswordWithTokenRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserResponse>> {
|
|
757
|
+
const requestOptions = await this.resetPasswordWithTokenRequestOpts(requestParameters);
|
|
758
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
608
759
|
|
|
609
760
|
return new runtime.JSONApiResponse(response, (jsonValue) => UserResponseFromJSON(jsonValue));
|
|
610
761
|
}
|
|
@@ -619,9 +770,9 @@ export class AuthApi extends runtime.BaseAPI implements AuthApiInterface {
|
|
|
619
770
|
}
|
|
620
771
|
|
|
621
772
|
/**
|
|
622
|
-
*
|
|
773
|
+
* Creates request options for sendPwResetEmail without sending the request
|
|
623
774
|
*/
|
|
624
|
-
async
|
|
775
|
+
async sendPwResetEmailRequestOpts(requestParameters: SendPwResetEmailRequest): Promise<runtime.RequestOpts> {
|
|
625
776
|
if (requestParameters['emailVerificationRequest'] == null) {
|
|
626
777
|
throw new runtime.RequiredError(
|
|
627
778
|
'emailVerificationRequest',
|
|
@@ -638,13 +789,21 @@ export class AuthApi extends runtime.BaseAPI implements AuthApiInterface {
|
|
|
638
789
|
|
|
639
790
|
let urlPath = `/v1/auth/pw/send_reset_email`;
|
|
640
791
|
|
|
641
|
-
|
|
792
|
+
return {
|
|
642
793
|
path: urlPath,
|
|
643
794
|
method: 'POST',
|
|
644
795
|
headers: headerParameters,
|
|
645
796
|
query: queryParameters,
|
|
646
797
|
body: EmailVerificationRequestToJSON(requestParameters['emailVerificationRequest']),
|
|
647
|
-
}
|
|
798
|
+
};
|
|
799
|
+
}
|
|
800
|
+
|
|
801
|
+
/**
|
|
802
|
+
* Send Pw Reset Email Handler
|
|
803
|
+
*/
|
|
804
|
+
async sendPwResetEmailRaw(requestParameters: SendPwResetEmailRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<EmailSentResponse>> {
|
|
805
|
+
const requestOptions = await this.sendPwResetEmailRequestOpts(requestParameters);
|
|
806
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
648
807
|
|
|
649
808
|
return new runtime.JSONApiResponse(response, (jsonValue) => EmailSentResponseFromJSON(jsonValue));
|
|
650
809
|
}
|
|
@@ -658,9 +817,9 @@ export class AuthApi extends runtime.BaseAPI implements AuthApiInterface {
|
|
|
658
817
|
}
|
|
659
818
|
|
|
660
819
|
/**
|
|
661
|
-
*
|
|
820
|
+
* Creates request options for signout without sending the request
|
|
662
821
|
*/
|
|
663
|
-
async
|
|
822
|
+
async signoutRequestOpts(): Promise<runtime.RequestOpts> {
|
|
664
823
|
const queryParameters: any = {};
|
|
665
824
|
|
|
666
825
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -668,12 +827,20 @@ export class AuthApi extends runtime.BaseAPI implements AuthApiInterface {
|
|
|
668
827
|
|
|
669
828
|
let urlPath = `/v1/auth/signout`;
|
|
670
829
|
|
|
671
|
-
|
|
830
|
+
return {
|
|
672
831
|
path: urlPath,
|
|
673
832
|
method: 'POST',
|
|
674
833
|
headers: headerParameters,
|
|
675
834
|
query: queryParameters,
|
|
676
|
-
}
|
|
835
|
+
};
|
|
836
|
+
}
|
|
837
|
+
|
|
838
|
+
/**
|
|
839
|
+
* Signout Handler
|
|
840
|
+
*/
|
|
841
|
+
async signoutRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<any>> {
|
|
842
|
+
const requestOptions = await this.signoutRequestOpts();
|
|
843
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
677
844
|
|
|
678
845
|
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
679
846
|
return new runtime.JSONApiResponse<any>(response);
|