@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.
Files changed (294) hide show
  1. package/.openapi-generator/FILES +130 -4
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +282 -28
  4. package/dist/apis/AuthApi.d.ts +117 -0
  5. package/dist/apis/AuthApi.js +137 -47
  6. package/dist/apis/ChunkLineagesApi.d.ts +38 -0
  7. package/dist/apis/ChunkLineagesApi.js +42 -15
  8. package/dist/apis/ChunksApi.d.ts +161 -5
  9. package/dist/apis/ChunksApi.js +168 -31
  10. package/dist/apis/DefaultApi.d.ts +20 -0
  11. package/dist/apis/DefaultApi.js +28 -10
  12. package/dist/apis/DocumentVersionsApi.d.ts +99 -9
  13. package/dist/apis/DocumentVersionsApi.js +100 -37
  14. package/dist/apis/DocumentsApi.d.ts +80 -0
  15. package/dist/apis/DocumentsApi.js +84 -30
  16. package/dist/apis/FoldersApi.d.ts +92 -9
  17. package/dist/apis/FoldersApi.js +86 -32
  18. package/dist/apis/InvitesApi.d.ts +51 -0
  19. package/dist/apis/InvitesApi.js +56 -20
  20. package/dist/apis/PathPartsApi.d.ts +140 -1
  21. package/dist/apis/PathPartsApi.js +141 -20
  22. package/dist/apis/SectionsApi.d.ts +49 -0
  23. package/dist/apis/SectionsApi.js +56 -20
  24. package/dist/apis/TagsApi.d.ts +62 -0
  25. package/dist/apis/TagsApi.js +70 -25
  26. package/dist/apis/TenantsApi.d.ts +103 -0
  27. package/dist/apis/TenantsApi.js +112 -40
  28. package/dist/apis/ThreadMessagesApi.d.ts +41 -0
  29. package/dist/apis/ThreadMessagesApi.js +42 -15
  30. package/dist/apis/ThreadsApi.d.ts +77 -0
  31. package/dist/apis/ThreadsApi.js +84 -30
  32. package/dist/apis/UserPermissionsApi.d.ts +54 -0
  33. package/dist/apis/UserPermissionsApi.js +56 -20
  34. package/dist/apis/UsersApi.d.ts +23 -0
  35. package/dist/apis/UsersApi.js +28 -10
  36. package/dist/apis/WorkflowsApi.d.ts +38 -0
  37. package/dist/apis/WorkflowsApi.js +42 -15
  38. package/dist/esm/apis/AuthApi.d.ts +117 -0
  39. package/dist/esm/apis/AuthApi.js +137 -47
  40. package/dist/esm/apis/ChunkLineagesApi.d.ts +38 -0
  41. package/dist/esm/apis/ChunkLineagesApi.js +42 -15
  42. package/dist/esm/apis/ChunksApi.d.ts +161 -5
  43. package/dist/esm/apis/ChunksApi.js +169 -32
  44. package/dist/esm/apis/DefaultApi.d.ts +20 -0
  45. package/dist/esm/apis/DefaultApi.js +28 -10
  46. package/dist/esm/apis/DocumentVersionsApi.d.ts +99 -9
  47. package/dist/esm/apis/DocumentVersionsApi.js +101 -38
  48. package/dist/esm/apis/DocumentsApi.d.ts +80 -0
  49. package/dist/esm/apis/DocumentsApi.js +84 -30
  50. package/dist/esm/apis/FoldersApi.d.ts +92 -9
  51. package/dist/esm/apis/FoldersApi.js +87 -33
  52. package/dist/esm/apis/InvitesApi.d.ts +51 -0
  53. package/dist/esm/apis/InvitesApi.js +56 -20
  54. package/dist/esm/apis/PathPartsApi.d.ts +140 -1
  55. package/dist/esm/apis/PathPartsApi.js +142 -21
  56. package/dist/esm/apis/SectionsApi.d.ts +49 -0
  57. package/dist/esm/apis/SectionsApi.js +56 -20
  58. package/dist/esm/apis/TagsApi.d.ts +62 -0
  59. package/dist/esm/apis/TagsApi.js +70 -25
  60. package/dist/esm/apis/TenantsApi.d.ts +103 -0
  61. package/dist/esm/apis/TenantsApi.js +112 -40
  62. package/dist/esm/apis/ThreadMessagesApi.d.ts +41 -0
  63. package/dist/esm/apis/ThreadMessagesApi.js +42 -15
  64. package/dist/esm/apis/ThreadsApi.d.ts +77 -0
  65. package/dist/esm/apis/ThreadsApi.js +84 -30
  66. package/dist/esm/apis/UserPermissionsApi.d.ts +54 -0
  67. package/dist/esm/apis/UserPermissionsApi.js +56 -20
  68. package/dist/esm/apis/UsersApi.d.ts +23 -0
  69. package/dist/esm/apis/UsersApi.js +28 -10
  70. package/dist/esm/apis/WorkflowsApi.d.ts +38 -0
  71. package/dist/esm/apis/WorkflowsApi.js +42 -15
  72. package/dist/esm/models/ChunkBulkResponse.d.ts +139 -0
  73. package/dist/esm/models/ChunkBulkResponse.js +100 -0
  74. package/dist/esm/models/{DocumentContentPathPart.d.ts → ChunkContentItem.d.ts} +37 -40
  75. package/dist/esm/models/{DocumentContentPathPart.js → ChunkContentItem.js} +19 -16
  76. package/dist/esm/models/ChunkSearchRequest.d.ts +14 -2
  77. package/dist/esm/models/ChunkSearchRequest.js +6 -2
  78. package/dist/esm/models/DocumentResponse.d.ts +13 -0
  79. package/dist/esm/models/DocumentResponse.js +10 -0
  80. package/dist/esm/models/FolderResponse.d.ts +13 -0
  81. package/dist/esm/models/FolderResponse.js +10 -0
  82. package/dist/esm/models/FolderResponseOrDocumentResponse.d.ts +27 -0
  83. package/dist/esm/models/FolderResponseOrDocumentResponse.js +47 -0
  84. package/dist/esm/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.d.ts +66 -0
  85. package/dist/esm/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.js +70 -0
  86. package/dist/esm/models/PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator.d.ts +66 -0
  87. package/dist/esm/models/PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator.js +70 -0
  88. package/dist/esm/models/SectionContentItem.d.ts +114 -0
  89. package/dist/esm/models/SectionContentItem.js +88 -0
  90. package/dist/esm/models/SectionContentItemOrChunkContentItem.d.ts +27 -0
  91. package/dist/esm/models/SectionContentItemOrChunkContentItem.js +47 -0
  92. package/dist/esm/models/SubtreeChunkGroup.d.ts +62 -0
  93. package/dist/esm/models/SubtreeChunkGroup.js +52 -0
  94. package/dist/esm/models/SubtreeChunksResponse.d.ts +48 -0
  95. package/dist/esm/models/SubtreeChunksResponse.js +45 -0
  96. package/dist/esm/models/VersionChunkIdsResponse.d.ts +47 -0
  97. package/dist/esm/models/VersionChunkIdsResponse.js +44 -0
  98. package/dist/esm/models/index.d.ts +10 -4
  99. package/dist/esm/models/index.js +10 -4
  100. package/dist/models/ChunkBulkResponse.d.ts +139 -0
  101. package/dist/models/ChunkBulkResponse.js +108 -0
  102. package/dist/models/{DocumentContentPathPart.d.ts → ChunkContentItem.d.ts} +37 -40
  103. package/dist/models/{DocumentContentPathPart.js → ChunkContentItem.js} +25 -22
  104. package/dist/models/ChunkSearchRequest.d.ts +14 -2
  105. package/dist/models/ChunkSearchRequest.js +6 -2
  106. package/dist/models/DocumentResponse.d.ts +13 -0
  107. package/dist/models/DocumentResponse.js +11 -1
  108. package/dist/models/FolderResponse.d.ts +13 -0
  109. package/dist/models/FolderResponse.js +11 -1
  110. package/dist/models/FolderResponseOrDocumentResponse.d.ts +27 -0
  111. package/dist/models/FolderResponseOrDocumentResponse.js +53 -0
  112. package/dist/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.d.ts +66 -0
  113. package/dist/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.js +78 -0
  114. package/dist/models/PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator.d.ts +66 -0
  115. package/dist/models/PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator.js +78 -0
  116. package/dist/models/SectionContentItem.d.ts +114 -0
  117. package/dist/models/SectionContentItem.js +96 -0
  118. package/dist/models/SectionContentItemOrChunkContentItem.d.ts +27 -0
  119. package/dist/models/SectionContentItemOrChunkContentItem.js +53 -0
  120. package/dist/models/SubtreeChunkGroup.d.ts +62 -0
  121. package/dist/models/SubtreeChunkGroup.js +60 -0
  122. package/dist/models/SubtreeChunksResponse.d.ts +48 -0
  123. package/dist/models/SubtreeChunksResponse.js +53 -0
  124. package/dist/models/VersionChunkIdsResponse.d.ts +47 -0
  125. package/dist/models/VersionChunkIdsResponse.js +52 -0
  126. package/dist/models/index.d.ts +10 -4
  127. package/dist/models/index.js +10 -4
  128. package/docs/AuthApi.md +707 -0
  129. package/docs/BulkTagRequest.md +35 -0
  130. package/docs/ChunkBulkResponse.md +65 -0
  131. package/docs/ChunkContentItem.md +59 -0
  132. package/docs/ChunkLineageResponse.md +41 -0
  133. package/docs/ChunkLineagesApi.md +230 -0
  134. package/docs/ChunkMetadataInput.md +37 -0
  135. package/docs/ChunkMetadataOutput.md +37 -0
  136. package/docs/ChunkResponse.md +63 -0
  137. package/docs/ChunkSearchRequest.md +51 -0
  138. package/docs/ChunkType.md +33 -0
  139. package/docs/ChunksApi.md +590 -0
  140. package/docs/ClearVersionContentsResponse.md +35 -0
  141. package/docs/CreateChunkLineageRequest.md +37 -0
  142. package/docs/CreateChunkRequest.md +43 -0
  143. package/docs/CreateDocumentRequest.md +41 -0
  144. package/docs/CreateFolderRequest.md +37 -0
  145. package/docs/CreatePasswordUserRequest.md +36 -0
  146. package/docs/CreatePermissionRequest.md +40 -0
  147. package/docs/CreateSectionRequest.md +41 -0
  148. package/docs/CreateTagRequest.md +39 -0
  149. package/docs/CreateTenantRequest.md +37 -0
  150. package/docs/CreateThreadMessageRequest.md +37 -0
  151. package/docs/CreateThreadRequest.md +37 -0
  152. package/docs/DefaultApi.md +128 -0
  153. package/docs/DocumentOrigin.md +33 -0
  154. package/docs/DocumentResponse.md +63 -0
  155. package/docs/DocumentType.md +33 -0
  156. package/docs/DocumentVersionMetadata.md +47 -0
  157. package/docs/DocumentVersionMetadataUpdate.md +47 -0
  158. package/docs/DocumentVersionResponse.md +57 -0
  159. package/docs/DocumentVersionsApi.md +530 -0
  160. package/docs/DocumentsApi.md +464 -0
  161. package/docs/EmailSentResponse.md +34 -0
  162. package/docs/EmailVerificationRequest.md +34 -0
  163. package/docs/EmbeddingModel.md +33 -0
  164. package/docs/FolderResponse.md +55 -0
  165. package/docs/FolderResponseOrDocumentResponse.md +62 -0
  166. package/docs/FoldersApi.md +473 -0
  167. package/docs/HTTPValidationError.md +34 -0
  168. package/docs/HealthCheckResponse.md +36 -0
  169. package/docs/IdpType.md +33 -0
  170. package/docs/IngestDocumentResponse.md +39 -0
  171. package/docs/InviteResponse.md +53 -0
  172. package/docs/InviteStatus.md +32 -0
  173. package/docs/InviteUserRequest.md +38 -0
  174. package/docs/InvitesApi.md +305 -0
  175. package/docs/LineageEdgeResponse.md +37 -0
  176. package/docs/LineageGraphResponse.md +37 -0
  177. package/docs/LineageNodeResponse.md +47 -0
  178. package/docs/LocationInner.md +32 -0
  179. package/docs/MessageRole.md +33 -0
  180. package/docs/OAuth2Config.md +41 -0
  181. package/docs/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.md +40 -0
  182. package/docs/PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator.md +40 -0
  183. package/docs/PaginatedResponseDocumentResponse.md +40 -0
  184. package/docs/PaginatedResponseDocumentVersionResponse.md +40 -0
  185. package/docs/PaginatedResponseFolderResponse.md +40 -0
  186. package/docs/PaginatedResponseInviteResponse.md +40 -0
  187. package/docs/PaginatedResponsePathPartResponse.md +40 -0
  188. package/docs/PaginatedResponsePermissionResponse.md +40 -0
  189. package/docs/PaginatedResponseTagResponse.md +40 -0
  190. package/docs/PaginatedResponseTenantResponse.md +40 -0
  191. package/docs/PaginatedResponseTenantUserResponse.md +40 -0
  192. package/docs/PaginatedResponseThreadMessageResponse.md +40 -0
  193. package/docs/PaginatedResponseThreadResponse.md +40 -0
  194. package/docs/PaginatedResponseWorkflowSummaryResponse.md +40 -0
  195. package/docs/PartType.md +33 -0
  196. package/docs/PasswordResetRequest.md +36 -0
  197. package/docs/PasswordResetWithTokenRequest.md +36 -0
  198. package/docs/PathOrder.md +33 -0
  199. package/docs/PathPartResponse.md +53 -0
  200. package/docs/PathPartTagsResponse.md +35 -0
  201. package/docs/PathPartsApi.md +461 -0
  202. package/docs/PermissionCapability.md +33 -0
  203. package/docs/PermissionResponse.md +48 -0
  204. package/docs/PipelineState.md +45 -0
  205. package/docs/PipelineStatus.md +33 -0
  206. package/docs/Polygon.md +41 -0
  207. package/docs/PolygonReference.md +37 -0
  208. package/docs/RootResponse.md +36 -0
  209. package/docs/ScoredChunkResponse.md +65 -0
  210. package/docs/SectionContentItem.md +55 -0
  211. package/docs/SectionContentItemOrChunkContentItem.md +60 -0
  212. package/docs/SectionResponse.md +57 -0
  213. package/docs/SectionsApi.md +299 -0
  214. package/docs/SignInRequest.md +38 -0
  215. package/docs/SubtreeChunkGroup.md +39 -0
  216. package/docs/SubtreeChunksResponse.md +35 -0
  217. package/docs/TagResponse.md +47 -0
  218. package/docs/TagsApi.md +374 -0
  219. package/docs/TenantResponse.md +39 -0
  220. package/docs/TenantUserEditRequest.md +35 -0
  221. package/docs/TenantUserResponse.md +43 -0
  222. package/docs/TenantUserRole.md +33 -0
  223. package/docs/TenantsApi.md +605 -0
  224. package/docs/ThreadMessageResponse.md +53 -0
  225. package/docs/ThreadMessagesApi.md +239 -0
  226. package/docs/ThreadResponse.md +49 -0
  227. package/docs/ThreadsApi.md +455 -0
  228. package/docs/UpdateChunkContentRequest.md +37 -0
  229. package/docs/UpdateChunkMetadataRequest.md +35 -0
  230. package/docs/UpdateDocumentRequest.md +39 -0
  231. package/docs/UpdateFolderRequest.md +37 -0
  232. package/docs/UpdatePermissionRequest.md +36 -0
  233. package/docs/UpdateSectionRequest.md +41 -0
  234. package/docs/UpdateTagRequest.md +39 -0
  235. package/docs/UpdateTenantRequest.md +37 -0
  236. package/docs/UpdateThreadRequest.md +37 -0
  237. package/docs/UpdateUserRequest.md +34 -0
  238. package/docs/UserPermissionsApi.md +314 -0
  239. package/docs/UserResponse.md +44 -0
  240. package/docs/UsersApi.md +149 -0
  241. package/docs/ValidationError.md +42 -0
  242. package/docs/VersionChunkIdsResponse.md +35 -0
  243. package/docs/WorkflowAction.md +33 -0
  244. package/docs/WorkflowActionResponse.md +39 -0
  245. package/docs/WorkflowDetailResponse.md +63 -0
  246. package/docs/WorkflowSummaryResponse.md +49 -0
  247. package/docs/WorkflowsApi.md +230 -0
  248. package/package.json +1 -1
  249. package/src/apis/AuthApi.ts +214 -47
  250. package/src/apis/ChunkLineagesApi.ts +68 -15
  251. package/src/apis/ChunksApi.ts +298 -33
  252. package/src/apis/DefaultApi.ts +40 -10
  253. package/src/apis/DocumentVersionsApi.ts +170 -45
  254. package/src/apis/DocumentsApi.ts +140 -30
  255. package/src/apis/FoldersApi.ts +153 -40
  256. package/src/apis/InvitesApi.ts +91 -20
  257. package/src/apis/PathPartsApi.ts +260 -20
  258. package/src/apis/SectionsApi.ts +89 -20
  259. package/src/apis/TagsApi.ts +112 -25
  260. package/src/apis/TenantsApi.ts +183 -40
  261. package/src/apis/ThreadMessagesApi.ts +71 -15
  262. package/src/apis/ThreadsApi.ts +137 -30
  263. package/src/apis/UserPermissionsApi.ts +94 -20
  264. package/src/apis/UsersApi.ts +43 -10
  265. package/src/apis/WorkflowsApi.ts +68 -15
  266. package/src/models/ChunkBulkResponse.ts +232 -0
  267. package/src/models/{DocumentContentPathPart.ts → ChunkContentItem.ts} +43 -53
  268. package/src/models/ChunkSearchRequest.ts +20 -4
  269. package/src/models/DocumentResponse.ts +17 -0
  270. package/src/models/FolderResponse.ts +19 -0
  271. package/src/models/FolderResponseOrDocumentResponse.ts +72 -0
  272. package/src/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.ts +130 -0
  273. package/src/models/PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator.ts +130 -0
  274. package/src/models/SectionContentItem.ts +182 -0
  275. package/src/models/SectionContentItemOrChunkContentItem.ts +72 -0
  276. package/src/models/SubtreeChunkGroup.ts +104 -0
  277. package/src/models/SubtreeChunksResponse.ts +91 -0
  278. package/src/models/VersionChunkIdsResponse.ts +83 -0
  279. package/src/models/index.ts +10 -4
  280. package/dist/esm/models/FolderDocumentResponse.d.ts +0 -157
  281. package/dist/esm/models/FolderDocumentResponse.js +0 -99
  282. package/dist/esm/models/PaginatedResponseDocumentContentPathPart.d.ts +0 -66
  283. package/dist/esm/models/PaginatedResponseDocumentContentPathPart.js +0 -70
  284. package/dist/esm/models/PaginatedResponseFolderDocumentResponse.d.ts +0 -66
  285. package/dist/esm/models/PaginatedResponseFolderDocumentResponse.js +0 -70
  286. package/dist/models/FolderDocumentResponse.d.ts +0 -157
  287. package/dist/models/FolderDocumentResponse.js +0 -107
  288. package/dist/models/PaginatedResponseDocumentContentPathPart.d.ts +0 -66
  289. package/dist/models/PaginatedResponseDocumentContentPathPart.js +0 -78
  290. package/dist/models/PaginatedResponseFolderDocumentResponse.d.ts +0 -66
  291. package/dist/models/PaginatedResponseFolderDocumentResponse.js +0 -78
  292. package/src/models/FolderDocumentResponse.ts +0 -267
  293. package/src/models/PaginatedResponseDocumentContentPathPart.ts +0 -130
  294. package/src/models/PaginatedResponseFolderDocumentResponse.ts +0 -130
@@ -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&#x3D;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
- * Create Password User Handler
359
+ * Creates request options for createPasswordUser without sending the request
273
360
  */
274
- async createPasswordUserRaw(requestParameters: CreatePasswordUserOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserResponse>> {
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
- const response = await this.request({
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
- }, initOverrides);
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
- * Initiate SSO with the given provider and tenant ID.
312
- * Initiate Sso Handler
406
+ * Creates request options for initiateSso without sending the request
313
407
  */
314
- async initiateSsoRaw(requestParameters: InitiateSsoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<any>> {
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
- const response = await this.request({
431
+ return {
338
432
  path: urlPath,
339
433
  method: 'POST',
340
434
  headers: headerParameters,
341
435
  query: queryParameters,
342
- }, initOverrides);
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
- * Handle OAuth2 callback from the given OAuth client.
362
- * Oauth2 Callback Handler
464
+ * Creates request options for oauth2Callback without sending the request
363
465
  */
364
- async oauth2CallbackRaw(requestParameters: Oauth2CallbackRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserResponse>> {
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
- const response = await this.request({
505
+ return {
404
506
  path: urlPath,
405
507
  method: 'GET',
406
508
  headers: headerParameters,
407
509
  query: queryParameters,
408
- }, initOverrides);
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
- * 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.
424
- * Pw Email Verification Handler
534
+ * Creates request options for pwEmailVerification without sending the request
425
535
  */
426
- async pwEmailVerificationRaw(requestParameters: PwEmailVerificationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<EmailSentResponse>> {
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
- const response = await this.request({
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
- }, initOverrides);
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
- * 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.
465
- * Signin Handler
583
+ * Creates request options for pwSignin without sending the request
466
584
  */
467
- async pwSigninRaw(requestParameters: PwSigninRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserResponse>> {
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
- const response = await this.request({
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
- }, initOverrides);
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
- * Refresh or switch the user\'s active tenant token.
506
- * Refresh Uat Handler
632
+ * Creates request options for refreshUat without sending the request
507
633
  */
508
- async refreshUatRaw(requestParameters: RefreshUatRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserResponse>> {
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
- const response = await this.request({
646
+ return {
521
647
  path: urlPath,
522
648
  method: 'POST',
523
649
  headers: headerParameters,
524
650
  query: queryParameters,
525
- }, initOverrides);
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
- * Reset password for the authenticated user
541
- * Reset Password Handler
675
+ * Creates request options for resetPassword without sending the request
542
676
  */
543
- async resetPasswordRaw(requestParameters: ResetPasswordRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserResponse>> {
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
- const response = await this.request({
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
- }, initOverrides);
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
- * Reset password with email verification token
582
- * Reset Password With Token Handler
724
+ * Creates request options for resetPasswordWithToken without sending the request
583
725
  */
584
- async resetPasswordWithTokenRaw(requestParameters: ResetPasswordWithTokenRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserResponse>> {
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
- const response = await this.request({
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
- }, initOverrides);
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
- * Send Pw Reset Email Handler
773
+ * Creates request options for sendPwResetEmail without sending the request
623
774
  */
624
- async sendPwResetEmailRaw(requestParameters: SendPwResetEmailRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<EmailSentResponse>> {
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
- const response = await this.request({
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
- }, initOverrides);
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
- * Signout Handler
820
+ * Creates request options for signout without sending the request
662
821
  */
663
- async signoutRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<any>> {
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
- const response = await this.request({
830
+ return {
672
831
  path: urlPath,
673
832
  method: 'POST',
674
833
  headers: headerParameters,
675
834
  query: queryParameters,
676
- }, initOverrides);
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);