@knowledge-stack/ksapi 1.23.5 → 1.25.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 +130 -4
- package/.openapi-generator/VERSION +1 -1
- package/README.md +282 -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 +161 -5
- package/dist/apis/ChunksApi.js +168 -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 +140 -1
- package/dist/apis/PathPartsApi.js +141 -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 +161 -5
- package/dist/esm/apis/ChunksApi.js +169 -32
- 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 +140 -1
- package/dist/esm/apis/PathPartsApi.js +142 -21
- 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/ChunkBulkResponse.d.ts +139 -0
- package/dist/esm/models/ChunkBulkResponse.js +100 -0
- package/dist/esm/models/{DocumentContentPathPart.d.ts → ChunkContentItem.d.ts} +37 -40
- package/dist/esm/models/{DocumentContentPathPart.js → ChunkContentItem.js} +19 -16
- package/dist/esm/models/ChunkSearchRequest.d.ts +14 -2
- package/dist/esm/models/ChunkSearchRequest.js +6 -2
- package/dist/esm/models/DocumentResponse.d.ts +13 -0
- package/dist/esm/models/DocumentResponse.js +10 -0
- package/dist/esm/models/FolderResponse.d.ts +13 -0
- package/dist/esm/models/FolderResponse.js +10 -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 +88 -0
- package/dist/esm/models/SectionContentItemOrChunkContentItem.d.ts +27 -0
- package/dist/esm/models/SectionContentItemOrChunkContentItem.js +47 -0
- package/dist/esm/models/SubtreeChunkGroup.d.ts +62 -0
- package/dist/esm/models/SubtreeChunkGroup.js +52 -0
- package/dist/esm/models/SubtreeChunksResponse.d.ts +48 -0
- package/dist/esm/models/SubtreeChunksResponse.js +45 -0
- package/dist/esm/models/VersionChunkIdsResponse.d.ts +47 -0
- package/dist/esm/models/VersionChunkIdsResponse.js +44 -0
- package/dist/esm/models/index.d.ts +10 -4
- package/dist/esm/models/index.js +10 -4
- package/dist/models/ChunkBulkResponse.d.ts +139 -0
- package/dist/models/ChunkBulkResponse.js +108 -0
- package/dist/models/{DocumentContentPathPart.d.ts → ChunkContentItem.d.ts} +37 -40
- package/dist/models/{DocumentContentPathPart.js → ChunkContentItem.js} +25 -22
- package/dist/models/ChunkSearchRequest.d.ts +14 -2
- package/dist/models/ChunkSearchRequest.js +6 -2
- package/dist/models/DocumentResponse.d.ts +13 -0
- package/dist/models/DocumentResponse.js +11 -1
- package/dist/models/FolderResponse.d.ts +13 -0
- package/dist/models/FolderResponse.js +11 -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 +96 -0
- package/dist/models/SectionContentItemOrChunkContentItem.d.ts +27 -0
- package/dist/models/SectionContentItemOrChunkContentItem.js +53 -0
- package/dist/models/SubtreeChunkGroup.d.ts +62 -0
- package/dist/models/SubtreeChunkGroup.js +60 -0
- package/dist/models/SubtreeChunksResponse.d.ts +48 -0
- package/dist/models/SubtreeChunksResponse.js +53 -0
- package/dist/models/VersionChunkIdsResponse.d.ts +47 -0
- package/dist/models/VersionChunkIdsResponse.js +52 -0
- package/dist/models/index.d.ts +10 -4
- package/dist/models/index.js +10 -4
- package/docs/AuthApi.md +707 -0
- package/docs/BulkTagRequest.md +35 -0
- package/docs/ChunkBulkResponse.md +65 -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 +51 -0
- package/docs/ChunkType.md +33 -0
- package/docs/ChunksApi.md +590 -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 +461 -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/SubtreeChunkGroup.md +39 -0
- package/docs/SubtreeChunksResponse.md +35 -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/VersionChunkIdsResponse.md +35 -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 +298 -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 +260 -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/ChunkBulkResponse.ts +232 -0
- package/src/models/{DocumentContentPathPart.ts → ChunkContentItem.ts} +43 -53
- package/src/models/ChunkSearchRequest.ts +20 -4
- package/src/models/DocumentResponse.ts +17 -0
- package/src/models/FolderResponse.ts +19 -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 +182 -0
- package/src/models/SectionContentItemOrChunkContentItem.ts +72 -0
- package/src/models/SubtreeChunkGroup.ts +104 -0
- package/src/models/SubtreeChunksResponse.ts +91 -0
- package/src/models/VersionChunkIdsResponse.ts +83 -0
- package/src/models/index.ts +10 -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
|
@@ -53,6 +53,13 @@ export interface SendPwResetEmailRequest {
|
|
|
53
53
|
* @interface AuthApiInterface
|
|
54
54
|
*/
|
|
55
55
|
export interface AuthApiInterface {
|
|
56
|
+
/**
|
|
57
|
+
* Creates request options for createPasswordUser without sending the request
|
|
58
|
+
* @param {CreatePasswordUserRequest} createPasswordUserRequest
|
|
59
|
+
* @throws {RequiredError}
|
|
60
|
+
* @memberof AuthApiInterface
|
|
61
|
+
*/
|
|
62
|
+
createPasswordUserRequestOpts(requestParameters: CreatePasswordUserOperationRequest): Promise<runtime.RequestOpts>;
|
|
56
63
|
/**
|
|
57
64
|
*
|
|
58
65
|
* @summary Create Password User Handler
|
|
@@ -66,6 +73,14 @@ export interface AuthApiInterface {
|
|
|
66
73
|
* Create Password User Handler
|
|
67
74
|
*/
|
|
68
75
|
createPasswordUser(requestParameters: CreatePasswordUserOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserResponse>;
|
|
76
|
+
/**
|
|
77
|
+
* Creates request options for initiateSso without sending the request
|
|
78
|
+
* @param {IdpType} provider Provider to initiate SSO with
|
|
79
|
+
* @param {string} [tenantId] Tenant ID to initiate SSO with
|
|
80
|
+
* @throws {RequiredError}
|
|
81
|
+
* @memberof AuthApiInterface
|
|
82
|
+
*/
|
|
83
|
+
initiateSsoRequestOpts(requestParameters: InitiateSsoRequest): Promise<runtime.RequestOpts>;
|
|
69
84
|
/**
|
|
70
85
|
* Initiate SSO with the given provider and tenant ID.
|
|
71
86
|
* @summary Initiate Sso Handler
|
|
@@ -81,6 +96,18 @@ export interface AuthApiInterface {
|
|
|
81
96
|
* Initiate Sso Handler
|
|
82
97
|
*/
|
|
83
98
|
initiateSso(requestParameters: InitiateSsoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<any>;
|
|
99
|
+
/**
|
|
100
|
+
* Creates request options for oauth2Callback without sending the request
|
|
101
|
+
* @param {IdpType} provider Provider to initiate SSO with
|
|
102
|
+
* @param {string} [code] Authorization code from provider
|
|
103
|
+
* @param {string} [state] State parameter for CSRF protection
|
|
104
|
+
* @param {string} [error] Error code if authorization failed
|
|
105
|
+
* @param {string} [errorDescription] Error description
|
|
106
|
+
* @param {string} [tenantId] Tenant ID to initiate SSO with
|
|
107
|
+
* @throws {RequiredError}
|
|
108
|
+
* @memberof AuthApiInterface
|
|
109
|
+
*/
|
|
110
|
+
oauth2CallbackRequestOpts(requestParameters: Oauth2CallbackRequest): Promise<runtime.RequestOpts>;
|
|
84
111
|
/**
|
|
85
112
|
* Handle OAuth2 callback from the given OAuth client.
|
|
86
113
|
* @summary Oauth2 Callback Handler
|
|
@@ -100,6 +127,13 @@ export interface AuthApiInterface {
|
|
|
100
127
|
* Oauth2 Callback Handler
|
|
101
128
|
*/
|
|
102
129
|
oauth2Callback(requestParameters: Oauth2CallbackRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserResponse>;
|
|
130
|
+
/**
|
|
131
|
+
* Creates request options for pwEmailVerification without sending the request
|
|
132
|
+
* @param {EmailVerificationRequest} emailVerificationRequest
|
|
133
|
+
* @throws {RequiredError}
|
|
134
|
+
* @memberof AuthApiInterface
|
|
135
|
+
*/
|
|
136
|
+
pwEmailVerificationRequestOpts(requestParameters: PwEmailVerificationRequest): Promise<runtime.RequestOpts>;
|
|
103
137
|
/**
|
|
104
138
|
* 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.
|
|
105
139
|
* @summary Pw Email Verification Handler
|
|
@@ -114,6 +148,13 @@ export interface AuthApiInterface {
|
|
|
114
148
|
* Pw Email Verification Handler
|
|
115
149
|
*/
|
|
116
150
|
pwEmailVerification(requestParameters: PwEmailVerificationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EmailSentResponse>;
|
|
151
|
+
/**
|
|
152
|
+
* Creates request options for pwSignin without sending the request
|
|
153
|
+
* @param {SignInRequest} signInRequest
|
|
154
|
+
* @throws {RequiredError}
|
|
155
|
+
* @memberof AuthApiInterface
|
|
156
|
+
*/
|
|
157
|
+
pwSigninRequestOpts(requestParameters: PwSigninRequest): Promise<runtime.RequestOpts>;
|
|
117
158
|
/**
|
|
118
159
|
* 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.
|
|
119
160
|
* @summary Signin Handler
|
|
@@ -128,6 +169,14 @@ export interface AuthApiInterface {
|
|
|
128
169
|
* Signin Handler
|
|
129
170
|
*/
|
|
130
171
|
pwSignin(requestParameters: PwSigninRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserResponse>;
|
|
172
|
+
/**
|
|
173
|
+
* Creates request options for refreshUat without sending the request
|
|
174
|
+
* @param {string} [tenantId] Target tenant ID to switch to. None=refresh current tenant
|
|
175
|
+
* @param {string} [ksUat]
|
|
176
|
+
* @throws {RequiredError}
|
|
177
|
+
* @memberof AuthApiInterface
|
|
178
|
+
*/
|
|
179
|
+
refreshUatRequestOpts(requestParameters: RefreshUatRequest): Promise<runtime.RequestOpts>;
|
|
131
180
|
/**
|
|
132
181
|
* Refresh or switch the user\'s active tenant token.
|
|
133
182
|
* @summary Refresh Uat Handler
|
|
@@ -143,6 +192,14 @@ export interface AuthApiInterface {
|
|
|
143
192
|
* Refresh Uat Handler
|
|
144
193
|
*/
|
|
145
194
|
refreshUat(requestParameters: RefreshUatRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserResponse>;
|
|
195
|
+
/**
|
|
196
|
+
* Creates request options for resetPassword without sending the request
|
|
197
|
+
* @param {PasswordResetRequest} passwordResetRequest
|
|
198
|
+
* @param {string} [ksUat]
|
|
199
|
+
* @throws {RequiredError}
|
|
200
|
+
* @memberof AuthApiInterface
|
|
201
|
+
*/
|
|
202
|
+
resetPasswordRequestOpts(requestParameters: ResetPasswordRequest): Promise<runtime.RequestOpts>;
|
|
146
203
|
/**
|
|
147
204
|
* Reset password for the authenticated user
|
|
148
205
|
* @summary Reset Password Handler
|
|
@@ -158,6 +215,13 @@ export interface AuthApiInterface {
|
|
|
158
215
|
* Reset Password Handler
|
|
159
216
|
*/
|
|
160
217
|
resetPassword(requestParameters: ResetPasswordRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserResponse>;
|
|
218
|
+
/**
|
|
219
|
+
* Creates request options for resetPasswordWithToken without sending the request
|
|
220
|
+
* @param {PasswordResetWithTokenRequest} passwordResetWithTokenRequest
|
|
221
|
+
* @throws {RequiredError}
|
|
222
|
+
* @memberof AuthApiInterface
|
|
223
|
+
*/
|
|
224
|
+
resetPasswordWithTokenRequestOpts(requestParameters: ResetPasswordWithTokenRequest): Promise<runtime.RequestOpts>;
|
|
161
225
|
/**
|
|
162
226
|
* Reset password with email verification token
|
|
163
227
|
* @summary Reset Password With Token Handler
|
|
@@ -172,6 +236,13 @@ export interface AuthApiInterface {
|
|
|
172
236
|
* Reset Password With Token Handler
|
|
173
237
|
*/
|
|
174
238
|
resetPasswordWithToken(requestParameters: ResetPasswordWithTokenRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserResponse>;
|
|
239
|
+
/**
|
|
240
|
+
* Creates request options for sendPwResetEmail without sending the request
|
|
241
|
+
* @param {EmailVerificationRequest} emailVerificationRequest
|
|
242
|
+
* @throws {RequiredError}
|
|
243
|
+
* @memberof AuthApiInterface
|
|
244
|
+
*/
|
|
245
|
+
sendPwResetEmailRequestOpts(requestParameters: SendPwResetEmailRequest): Promise<runtime.RequestOpts>;
|
|
175
246
|
/**
|
|
176
247
|
*
|
|
177
248
|
* @summary Send Pw Reset Email Handler
|
|
@@ -185,6 +256,12 @@ export interface AuthApiInterface {
|
|
|
185
256
|
* Send Pw Reset Email Handler
|
|
186
257
|
*/
|
|
187
258
|
sendPwResetEmail(requestParameters: SendPwResetEmailRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EmailSentResponse>;
|
|
259
|
+
/**
|
|
260
|
+
* Creates request options for signout without sending the request
|
|
261
|
+
* @throws {RequiredError}
|
|
262
|
+
* @memberof AuthApiInterface
|
|
263
|
+
*/
|
|
264
|
+
signoutRequestOpts(): Promise<runtime.RequestOpts>;
|
|
188
265
|
/**
|
|
189
266
|
*
|
|
190
267
|
* @summary Signout Handler
|
|
@@ -202,6 +279,10 @@ export interface AuthApiInterface {
|
|
|
202
279
|
*
|
|
203
280
|
*/
|
|
204
281
|
export declare class AuthApi extends runtime.BaseAPI implements AuthApiInterface {
|
|
282
|
+
/**
|
|
283
|
+
* Creates request options for createPasswordUser without sending the request
|
|
284
|
+
*/
|
|
285
|
+
createPasswordUserRequestOpts(requestParameters: CreatePasswordUserOperationRequest): Promise<runtime.RequestOpts>;
|
|
205
286
|
/**
|
|
206
287
|
* Create Password User Handler
|
|
207
288
|
*/
|
|
@@ -210,6 +291,10 @@ export declare class AuthApi extends runtime.BaseAPI implements AuthApiInterface
|
|
|
210
291
|
* Create Password User Handler
|
|
211
292
|
*/
|
|
212
293
|
createPasswordUser(requestParameters: CreatePasswordUserOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserResponse>;
|
|
294
|
+
/**
|
|
295
|
+
* Creates request options for initiateSso without sending the request
|
|
296
|
+
*/
|
|
297
|
+
initiateSsoRequestOpts(requestParameters: InitiateSsoRequest): Promise<runtime.RequestOpts>;
|
|
213
298
|
/**
|
|
214
299
|
* Initiate SSO with the given provider and tenant ID.
|
|
215
300
|
* Initiate Sso Handler
|
|
@@ -220,6 +305,10 @@ export declare class AuthApi extends runtime.BaseAPI implements AuthApiInterface
|
|
|
220
305
|
* Initiate Sso Handler
|
|
221
306
|
*/
|
|
222
307
|
initiateSso(requestParameters: InitiateSsoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<any>;
|
|
308
|
+
/**
|
|
309
|
+
* Creates request options for oauth2Callback without sending the request
|
|
310
|
+
*/
|
|
311
|
+
oauth2CallbackRequestOpts(requestParameters: Oauth2CallbackRequest): Promise<runtime.RequestOpts>;
|
|
223
312
|
/**
|
|
224
313
|
* Handle OAuth2 callback from the given OAuth client.
|
|
225
314
|
* Oauth2 Callback Handler
|
|
@@ -230,6 +319,10 @@ export declare class AuthApi extends runtime.BaseAPI implements AuthApiInterface
|
|
|
230
319
|
* Oauth2 Callback Handler
|
|
231
320
|
*/
|
|
232
321
|
oauth2Callback(requestParameters: Oauth2CallbackRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserResponse>;
|
|
322
|
+
/**
|
|
323
|
+
* Creates request options for pwEmailVerification without sending the request
|
|
324
|
+
*/
|
|
325
|
+
pwEmailVerificationRequestOpts(requestParameters: PwEmailVerificationRequest): Promise<runtime.RequestOpts>;
|
|
233
326
|
/**
|
|
234
327
|
* 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.
|
|
235
328
|
* Pw Email Verification Handler
|
|
@@ -240,6 +333,10 @@ export declare class AuthApi extends runtime.BaseAPI implements AuthApiInterface
|
|
|
240
333
|
* Pw Email Verification Handler
|
|
241
334
|
*/
|
|
242
335
|
pwEmailVerification(requestParameters: PwEmailVerificationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EmailSentResponse>;
|
|
336
|
+
/**
|
|
337
|
+
* Creates request options for pwSignin without sending the request
|
|
338
|
+
*/
|
|
339
|
+
pwSigninRequestOpts(requestParameters: PwSigninRequest): Promise<runtime.RequestOpts>;
|
|
243
340
|
/**
|
|
244
341
|
* 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.
|
|
245
342
|
* Signin Handler
|
|
@@ -250,6 +347,10 @@ export declare class AuthApi extends runtime.BaseAPI implements AuthApiInterface
|
|
|
250
347
|
* Signin Handler
|
|
251
348
|
*/
|
|
252
349
|
pwSignin(requestParameters: PwSigninRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserResponse>;
|
|
350
|
+
/**
|
|
351
|
+
* Creates request options for refreshUat without sending the request
|
|
352
|
+
*/
|
|
353
|
+
refreshUatRequestOpts(requestParameters: RefreshUatRequest): Promise<runtime.RequestOpts>;
|
|
253
354
|
/**
|
|
254
355
|
* Refresh or switch the user\'s active tenant token.
|
|
255
356
|
* Refresh Uat Handler
|
|
@@ -260,6 +361,10 @@ export declare class AuthApi extends runtime.BaseAPI implements AuthApiInterface
|
|
|
260
361
|
* Refresh Uat Handler
|
|
261
362
|
*/
|
|
262
363
|
refreshUat(requestParameters?: RefreshUatRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserResponse>;
|
|
364
|
+
/**
|
|
365
|
+
* Creates request options for resetPassword without sending the request
|
|
366
|
+
*/
|
|
367
|
+
resetPasswordRequestOpts(requestParameters: ResetPasswordRequest): Promise<runtime.RequestOpts>;
|
|
263
368
|
/**
|
|
264
369
|
* Reset password for the authenticated user
|
|
265
370
|
* Reset Password Handler
|
|
@@ -270,6 +375,10 @@ export declare class AuthApi extends runtime.BaseAPI implements AuthApiInterface
|
|
|
270
375
|
* Reset Password Handler
|
|
271
376
|
*/
|
|
272
377
|
resetPassword(requestParameters: ResetPasswordRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserResponse>;
|
|
378
|
+
/**
|
|
379
|
+
* Creates request options for resetPasswordWithToken without sending the request
|
|
380
|
+
*/
|
|
381
|
+
resetPasswordWithTokenRequestOpts(requestParameters: ResetPasswordWithTokenRequest): Promise<runtime.RequestOpts>;
|
|
273
382
|
/**
|
|
274
383
|
* Reset password with email verification token
|
|
275
384
|
* Reset Password With Token Handler
|
|
@@ -280,6 +389,10 @@ export declare class AuthApi extends runtime.BaseAPI implements AuthApiInterface
|
|
|
280
389
|
* Reset Password With Token Handler
|
|
281
390
|
*/
|
|
282
391
|
resetPasswordWithToken(requestParameters: ResetPasswordWithTokenRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserResponse>;
|
|
392
|
+
/**
|
|
393
|
+
* Creates request options for sendPwResetEmail without sending the request
|
|
394
|
+
*/
|
|
395
|
+
sendPwResetEmailRequestOpts(requestParameters: SendPwResetEmailRequest): Promise<runtime.RequestOpts>;
|
|
283
396
|
/**
|
|
284
397
|
* Send Pw Reset Email Handler
|
|
285
398
|
*/
|
|
@@ -288,6 +401,10 @@ export declare class AuthApi extends runtime.BaseAPI implements AuthApiInterface
|
|
|
288
401
|
* Send Pw Reset Email Handler
|
|
289
402
|
*/
|
|
290
403
|
sendPwResetEmail(requestParameters: SendPwResetEmailRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EmailSentResponse>;
|
|
404
|
+
/**
|
|
405
|
+
* Creates request options for signout without sending the request
|
|
406
|
+
*/
|
|
407
|
+
signoutRequestOpts(): Promise<runtime.RequestOpts>;
|
|
291
408
|
/**
|
|
292
409
|
* Signout Handler
|
|
293
410
|
*/
|
package/dist/esm/apis/AuthApi.js
CHANGED
|
@@ -27,9 +27,9 @@ import { CreatePasswordUserRequestToJSON, EmailSentResponseFromJSON, EmailVerifi
|
|
|
27
27
|
*/
|
|
28
28
|
export class AuthApi extends runtime.BaseAPI {
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
30
|
+
* Creates request options for createPasswordUser without sending the request
|
|
31
31
|
*/
|
|
32
|
-
|
|
32
|
+
createPasswordUserRequestOpts(requestParameters) {
|
|
33
33
|
return __awaiter(this, void 0, void 0, function* () {
|
|
34
34
|
if (requestParameters['createPasswordUserRequest'] == null) {
|
|
35
35
|
throw new runtime.RequiredError('createPasswordUserRequest', 'Required parameter "createPasswordUserRequest" was null or undefined when calling createPasswordUser().');
|
|
@@ -38,13 +38,22 @@ export class AuthApi extends runtime.BaseAPI {
|
|
|
38
38
|
const headerParameters = {};
|
|
39
39
|
headerParameters['Content-Type'] = 'application/json';
|
|
40
40
|
let urlPath = `/v1/auth/pw/user`;
|
|
41
|
-
|
|
41
|
+
return {
|
|
42
42
|
path: urlPath,
|
|
43
43
|
method: 'POST',
|
|
44
44
|
headers: headerParameters,
|
|
45
45
|
query: queryParameters,
|
|
46
46
|
body: CreatePasswordUserRequestToJSON(requestParameters['createPasswordUserRequest']),
|
|
47
|
-
}
|
|
47
|
+
};
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Create Password User Handler
|
|
52
|
+
*/
|
|
53
|
+
createPasswordUserRaw(requestParameters, initOverrides) {
|
|
54
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
55
|
+
const requestOptions = yield this.createPasswordUserRequestOpts(requestParameters);
|
|
56
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
48
57
|
return new runtime.JSONApiResponse(response, (jsonValue) => UserResponseFromJSON(jsonValue));
|
|
49
58
|
});
|
|
50
59
|
}
|
|
@@ -58,10 +67,9 @@ export class AuthApi extends runtime.BaseAPI {
|
|
|
58
67
|
});
|
|
59
68
|
}
|
|
60
69
|
/**
|
|
61
|
-
*
|
|
62
|
-
* Initiate Sso Handler
|
|
70
|
+
* Creates request options for initiateSso without sending the request
|
|
63
71
|
*/
|
|
64
|
-
|
|
72
|
+
initiateSsoRequestOpts(requestParameters) {
|
|
65
73
|
return __awaiter(this, void 0, void 0, function* () {
|
|
66
74
|
if (requestParameters['provider'] == null) {
|
|
67
75
|
throw new runtime.RequiredError('provider', 'Required parameter "provider" was null or undefined when calling initiateSso().');
|
|
@@ -75,12 +83,22 @@ export class AuthApi extends runtime.BaseAPI {
|
|
|
75
83
|
}
|
|
76
84
|
const headerParameters = {};
|
|
77
85
|
let urlPath = `/v1/auth/sso/initiate`;
|
|
78
|
-
|
|
86
|
+
return {
|
|
79
87
|
path: urlPath,
|
|
80
88
|
method: 'POST',
|
|
81
89
|
headers: headerParameters,
|
|
82
90
|
query: queryParameters,
|
|
83
|
-
}
|
|
91
|
+
};
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Initiate SSO with the given provider and tenant ID.
|
|
96
|
+
* Initiate Sso Handler
|
|
97
|
+
*/
|
|
98
|
+
initiateSsoRaw(requestParameters, initOverrides) {
|
|
99
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
100
|
+
const requestOptions = yield this.initiateSsoRequestOpts(requestParameters);
|
|
101
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
84
102
|
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
85
103
|
return new runtime.JSONApiResponse(response);
|
|
86
104
|
}
|
|
@@ -100,10 +118,9 @@ export class AuthApi extends runtime.BaseAPI {
|
|
|
100
118
|
});
|
|
101
119
|
}
|
|
102
120
|
/**
|
|
103
|
-
*
|
|
104
|
-
* Oauth2 Callback Handler
|
|
121
|
+
* Creates request options for oauth2Callback without sending the request
|
|
105
122
|
*/
|
|
106
|
-
|
|
123
|
+
oauth2CallbackRequestOpts(requestParameters) {
|
|
107
124
|
return __awaiter(this, void 0, void 0, function* () {
|
|
108
125
|
if (requestParameters['provider'] == null) {
|
|
109
126
|
throw new runtime.RequiredError('provider', 'Required parameter "provider" was null or undefined when calling oauth2Callback().');
|
|
@@ -129,12 +146,22 @@ export class AuthApi extends runtime.BaseAPI {
|
|
|
129
146
|
}
|
|
130
147
|
const headerParameters = {};
|
|
131
148
|
let urlPath = `/v1/auth/sso/oauth2/callback`;
|
|
132
|
-
|
|
149
|
+
return {
|
|
133
150
|
path: urlPath,
|
|
134
151
|
method: 'GET',
|
|
135
152
|
headers: headerParameters,
|
|
136
153
|
query: queryParameters,
|
|
137
|
-
}
|
|
154
|
+
};
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* Handle OAuth2 callback from the given OAuth client.
|
|
159
|
+
* Oauth2 Callback Handler
|
|
160
|
+
*/
|
|
161
|
+
oauth2CallbackRaw(requestParameters, initOverrides) {
|
|
162
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
163
|
+
const requestOptions = yield this.oauth2CallbackRequestOpts(requestParameters);
|
|
164
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
138
165
|
return new runtime.JSONApiResponse(response, (jsonValue) => UserResponseFromJSON(jsonValue));
|
|
139
166
|
});
|
|
140
167
|
}
|
|
@@ -149,10 +176,9 @@ export class AuthApi extends runtime.BaseAPI {
|
|
|
149
176
|
});
|
|
150
177
|
}
|
|
151
178
|
/**
|
|
152
|
-
*
|
|
153
|
-
* Pw Email Verification Handler
|
|
179
|
+
* Creates request options for pwEmailVerification without sending the request
|
|
154
180
|
*/
|
|
155
|
-
|
|
181
|
+
pwEmailVerificationRequestOpts(requestParameters) {
|
|
156
182
|
return __awaiter(this, void 0, void 0, function* () {
|
|
157
183
|
if (requestParameters['emailVerificationRequest'] == null) {
|
|
158
184
|
throw new runtime.RequiredError('emailVerificationRequest', 'Required parameter "emailVerificationRequest" was null or undefined when calling pwEmailVerification().');
|
|
@@ -161,13 +187,23 @@ export class AuthApi extends runtime.BaseAPI {
|
|
|
161
187
|
const headerParameters = {};
|
|
162
188
|
headerParameters['Content-Type'] = 'application/json';
|
|
163
189
|
let urlPath = `/v1/auth/pw/email_verification`;
|
|
164
|
-
|
|
190
|
+
return {
|
|
165
191
|
path: urlPath,
|
|
166
192
|
method: 'POST',
|
|
167
193
|
headers: headerParameters,
|
|
168
194
|
query: queryParameters,
|
|
169
195
|
body: EmailVerificationRequestToJSON(requestParameters['emailVerificationRequest']),
|
|
170
|
-
}
|
|
196
|
+
};
|
|
197
|
+
});
|
|
198
|
+
}
|
|
199
|
+
/**
|
|
200
|
+
* 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.
|
|
201
|
+
* Pw Email Verification Handler
|
|
202
|
+
*/
|
|
203
|
+
pwEmailVerificationRaw(requestParameters, initOverrides) {
|
|
204
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
205
|
+
const requestOptions = yield this.pwEmailVerificationRequestOpts(requestParameters);
|
|
206
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
171
207
|
return new runtime.JSONApiResponse(response, (jsonValue) => EmailSentResponseFromJSON(jsonValue));
|
|
172
208
|
});
|
|
173
209
|
}
|
|
@@ -182,10 +218,9 @@ export class AuthApi extends runtime.BaseAPI {
|
|
|
182
218
|
});
|
|
183
219
|
}
|
|
184
220
|
/**
|
|
185
|
-
*
|
|
186
|
-
* Signin Handler
|
|
221
|
+
* Creates request options for pwSignin without sending the request
|
|
187
222
|
*/
|
|
188
|
-
|
|
223
|
+
pwSigninRequestOpts(requestParameters) {
|
|
189
224
|
return __awaiter(this, void 0, void 0, function* () {
|
|
190
225
|
if (requestParameters['signInRequest'] == null) {
|
|
191
226
|
throw new runtime.RequiredError('signInRequest', 'Required parameter "signInRequest" was null or undefined when calling pwSignin().');
|
|
@@ -194,13 +229,23 @@ export class AuthApi extends runtime.BaseAPI {
|
|
|
194
229
|
const headerParameters = {};
|
|
195
230
|
headerParameters['Content-Type'] = 'application/json';
|
|
196
231
|
let urlPath = `/v1/auth/pw/signin`;
|
|
197
|
-
|
|
232
|
+
return {
|
|
198
233
|
path: urlPath,
|
|
199
234
|
method: 'POST',
|
|
200
235
|
headers: headerParameters,
|
|
201
236
|
query: queryParameters,
|
|
202
237
|
body: SignInRequestToJSON(requestParameters['signInRequest']),
|
|
203
|
-
}
|
|
238
|
+
};
|
|
239
|
+
});
|
|
240
|
+
}
|
|
241
|
+
/**
|
|
242
|
+
* 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.
|
|
243
|
+
* Signin Handler
|
|
244
|
+
*/
|
|
245
|
+
pwSigninRaw(requestParameters, initOverrides) {
|
|
246
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
247
|
+
const requestOptions = yield this.pwSigninRequestOpts(requestParameters);
|
|
248
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
204
249
|
return new runtime.JSONApiResponse(response, (jsonValue) => UserResponseFromJSON(jsonValue));
|
|
205
250
|
});
|
|
206
251
|
}
|
|
@@ -215,10 +260,9 @@ export class AuthApi extends runtime.BaseAPI {
|
|
|
215
260
|
});
|
|
216
261
|
}
|
|
217
262
|
/**
|
|
218
|
-
*
|
|
219
|
-
* Refresh Uat Handler
|
|
263
|
+
* Creates request options for refreshUat without sending the request
|
|
220
264
|
*/
|
|
221
|
-
|
|
265
|
+
refreshUatRequestOpts(requestParameters) {
|
|
222
266
|
return __awaiter(this, void 0, void 0, function* () {
|
|
223
267
|
const queryParameters = {};
|
|
224
268
|
if (requestParameters['tenantId'] != null) {
|
|
@@ -226,12 +270,22 @@ export class AuthApi extends runtime.BaseAPI {
|
|
|
226
270
|
}
|
|
227
271
|
const headerParameters = {};
|
|
228
272
|
let urlPath = `/v1/auth/uat`;
|
|
229
|
-
|
|
273
|
+
return {
|
|
230
274
|
path: urlPath,
|
|
231
275
|
method: 'POST',
|
|
232
276
|
headers: headerParameters,
|
|
233
277
|
query: queryParameters,
|
|
234
|
-
}
|
|
278
|
+
};
|
|
279
|
+
});
|
|
280
|
+
}
|
|
281
|
+
/**
|
|
282
|
+
* Refresh or switch the user\'s active tenant token.
|
|
283
|
+
* Refresh Uat Handler
|
|
284
|
+
*/
|
|
285
|
+
refreshUatRaw(requestParameters, initOverrides) {
|
|
286
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
287
|
+
const requestOptions = yield this.refreshUatRequestOpts(requestParameters);
|
|
288
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
235
289
|
return new runtime.JSONApiResponse(response, (jsonValue) => UserResponseFromJSON(jsonValue));
|
|
236
290
|
});
|
|
237
291
|
}
|
|
@@ -246,10 +300,9 @@ export class AuthApi extends runtime.BaseAPI {
|
|
|
246
300
|
});
|
|
247
301
|
}
|
|
248
302
|
/**
|
|
249
|
-
*
|
|
250
|
-
* Reset Password Handler
|
|
303
|
+
* Creates request options for resetPassword without sending the request
|
|
251
304
|
*/
|
|
252
|
-
|
|
305
|
+
resetPasswordRequestOpts(requestParameters) {
|
|
253
306
|
return __awaiter(this, void 0, void 0, function* () {
|
|
254
307
|
if (requestParameters['passwordResetRequest'] == null) {
|
|
255
308
|
throw new runtime.RequiredError('passwordResetRequest', 'Required parameter "passwordResetRequest" was null or undefined when calling resetPassword().');
|
|
@@ -258,13 +311,23 @@ export class AuthApi extends runtime.BaseAPI {
|
|
|
258
311
|
const headerParameters = {};
|
|
259
312
|
headerParameters['Content-Type'] = 'application/json';
|
|
260
313
|
let urlPath = `/v1/auth/pw/reset`;
|
|
261
|
-
|
|
314
|
+
return {
|
|
262
315
|
path: urlPath,
|
|
263
316
|
method: 'POST',
|
|
264
317
|
headers: headerParameters,
|
|
265
318
|
query: queryParameters,
|
|
266
319
|
body: PasswordResetRequestToJSON(requestParameters['passwordResetRequest']),
|
|
267
|
-
}
|
|
320
|
+
};
|
|
321
|
+
});
|
|
322
|
+
}
|
|
323
|
+
/**
|
|
324
|
+
* Reset password for the authenticated user
|
|
325
|
+
* Reset Password Handler
|
|
326
|
+
*/
|
|
327
|
+
resetPasswordRaw(requestParameters, initOverrides) {
|
|
328
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
329
|
+
const requestOptions = yield this.resetPasswordRequestOpts(requestParameters);
|
|
330
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
268
331
|
return new runtime.JSONApiResponse(response, (jsonValue) => UserResponseFromJSON(jsonValue));
|
|
269
332
|
});
|
|
270
333
|
}
|
|
@@ -279,10 +342,9 @@ export class AuthApi extends runtime.BaseAPI {
|
|
|
279
342
|
});
|
|
280
343
|
}
|
|
281
344
|
/**
|
|
282
|
-
*
|
|
283
|
-
* Reset Password With Token Handler
|
|
345
|
+
* Creates request options for resetPasswordWithToken without sending the request
|
|
284
346
|
*/
|
|
285
|
-
|
|
347
|
+
resetPasswordWithTokenRequestOpts(requestParameters) {
|
|
286
348
|
return __awaiter(this, void 0, void 0, function* () {
|
|
287
349
|
if (requestParameters['passwordResetWithTokenRequest'] == null) {
|
|
288
350
|
throw new runtime.RequiredError('passwordResetWithTokenRequest', 'Required parameter "passwordResetWithTokenRequest" was null or undefined when calling resetPasswordWithToken().');
|
|
@@ -291,13 +353,23 @@ export class AuthApi extends runtime.BaseAPI {
|
|
|
291
353
|
const headerParameters = {};
|
|
292
354
|
headerParameters['Content-Type'] = 'application/json';
|
|
293
355
|
let urlPath = `/v1/auth/pw/reset_with_token`;
|
|
294
|
-
|
|
356
|
+
return {
|
|
295
357
|
path: urlPath,
|
|
296
358
|
method: 'POST',
|
|
297
359
|
headers: headerParameters,
|
|
298
360
|
query: queryParameters,
|
|
299
361
|
body: PasswordResetWithTokenRequestToJSON(requestParameters['passwordResetWithTokenRequest']),
|
|
300
|
-
}
|
|
362
|
+
};
|
|
363
|
+
});
|
|
364
|
+
}
|
|
365
|
+
/**
|
|
366
|
+
* Reset password with email verification token
|
|
367
|
+
* Reset Password With Token Handler
|
|
368
|
+
*/
|
|
369
|
+
resetPasswordWithTokenRaw(requestParameters, initOverrides) {
|
|
370
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
371
|
+
const requestOptions = yield this.resetPasswordWithTokenRequestOpts(requestParameters);
|
|
372
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
301
373
|
return new runtime.JSONApiResponse(response, (jsonValue) => UserResponseFromJSON(jsonValue));
|
|
302
374
|
});
|
|
303
375
|
}
|
|
@@ -312,9 +384,9 @@ export class AuthApi extends runtime.BaseAPI {
|
|
|
312
384
|
});
|
|
313
385
|
}
|
|
314
386
|
/**
|
|
315
|
-
*
|
|
387
|
+
* Creates request options for sendPwResetEmail without sending the request
|
|
316
388
|
*/
|
|
317
|
-
|
|
389
|
+
sendPwResetEmailRequestOpts(requestParameters) {
|
|
318
390
|
return __awaiter(this, void 0, void 0, function* () {
|
|
319
391
|
if (requestParameters['emailVerificationRequest'] == null) {
|
|
320
392
|
throw new runtime.RequiredError('emailVerificationRequest', 'Required parameter "emailVerificationRequest" was null or undefined when calling sendPwResetEmail().');
|
|
@@ -323,13 +395,22 @@ export class AuthApi extends runtime.BaseAPI {
|
|
|
323
395
|
const headerParameters = {};
|
|
324
396
|
headerParameters['Content-Type'] = 'application/json';
|
|
325
397
|
let urlPath = `/v1/auth/pw/send_reset_email`;
|
|
326
|
-
|
|
398
|
+
return {
|
|
327
399
|
path: urlPath,
|
|
328
400
|
method: 'POST',
|
|
329
401
|
headers: headerParameters,
|
|
330
402
|
query: queryParameters,
|
|
331
403
|
body: EmailVerificationRequestToJSON(requestParameters['emailVerificationRequest']),
|
|
332
|
-
}
|
|
404
|
+
};
|
|
405
|
+
});
|
|
406
|
+
}
|
|
407
|
+
/**
|
|
408
|
+
* Send Pw Reset Email Handler
|
|
409
|
+
*/
|
|
410
|
+
sendPwResetEmailRaw(requestParameters, initOverrides) {
|
|
411
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
412
|
+
const requestOptions = yield this.sendPwResetEmailRequestOpts(requestParameters);
|
|
413
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
333
414
|
return new runtime.JSONApiResponse(response, (jsonValue) => EmailSentResponseFromJSON(jsonValue));
|
|
334
415
|
});
|
|
335
416
|
}
|
|
@@ -343,19 +424,28 @@ export class AuthApi extends runtime.BaseAPI {
|
|
|
343
424
|
});
|
|
344
425
|
}
|
|
345
426
|
/**
|
|
346
|
-
*
|
|
427
|
+
* Creates request options for signout without sending the request
|
|
347
428
|
*/
|
|
348
|
-
|
|
429
|
+
signoutRequestOpts() {
|
|
349
430
|
return __awaiter(this, void 0, void 0, function* () {
|
|
350
431
|
const queryParameters = {};
|
|
351
432
|
const headerParameters = {};
|
|
352
433
|
let urlPath = `/v1/auth/signout`;
|
|
353
|
-
|
|
434
|
+
return {
|
|
354
435
|
path: urlPath,
|
|
355
436
|
method: 'POST',
|
|
356
437
|
headers: headerParameters,
|
|
357
438
|
query: queryParameters,
|
|
358
|
-
}
|
|
439
|
+
};
|
|
440
|
+
});
|
|
441
|
+
}
|
|
442
|
+
/**
|
|
443
|
+
* Signout Handler
|
|
444
|
+
*/
|
|
445
|
+
signoutRaw(initOverrides) {
|
|
446
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
447
|
+
const requestOptions = yield this.signoutRequestOpts();
|
|
448
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
359
449
|
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
360
450
|
return new runtime.JSONApiResponse(response);
|
|
361
451
|
}
|