@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.
Files changed (265) hide show
  1. package/.openapi-generator/FILES +122 -4
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +274 -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 +78 -4
  9. package/dist/apis/ChunksApi.js +85 -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 +54 -0
  21. package/dist/apis/PathPartsApi.js +56 -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 +78 -4
  43. package/dist/esm/apis/ChunksApi.js +85 -31
  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 +54 -0
  55. package/dist/esm/apis/PathPartsApi.js +56 -20
  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/{DocumentContentPathPart.d.ts → ChunkContentItem.d.ts} +37 -40
  73. package/dist/esm/models/{DocumentContentPathPart.js → ChunkContentItem.js} +17 -16
  74. package/dist/esm/models/DocumentResponse.d.ts +13 -0
  75. package/dist/esm/models/DocumentResponse.js +8 -0
  76. package/dist/esm/models/FolderResponse.d.ts +13 -0
  77. package/dist/esm/models/FolderResponse.js +8 -0
  78. package/dist/esm/models/FolderResponseOrDocumentResponse.d.ts +27 -0
  79. package/dist/esm/models/FolderResponseOrDocumentResponse.js +47 -0
  80. package/dist/esm/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.d.ts +66 -0
  81. package/dist/esm/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.js +70 -0
  82. package/dist/esm/models/PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator.d.ts +66 -0
  83. package/dist/esm/models/PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator.js +70 -0
  84. package/dist/esm/models/SectionContentItem.d.ts +114 -0
  85. package/dist/esm/models/SectionContentItem.js +86 -0
  86. package/dist/esm/models/SectionContentItemOrChunkContentItem.d.ts +27 -0
  87. package/dist/esm/models/SectionContentItemOrChunkContentItem.js +47 -0
  88. package/dist/esm/models/index.d.ts +6 -4
  89. package/dist/esm/models/index.js +6 -4
  90. package/dist/models/{DocumentContentPathPart.d.ts → ChunkContentItem.d.ts} +37 -40
  91. package/dist/models/{DocumentContentPathPart.js → ChunkContentItem.js} +23 -22
  92. package/dist/models/DocumentResponse.d.ts +13 -0
  93. package/dist/models/DocumentResponse.js +9 -1
  94. package/dist/models/FolderResponse.d.ts +13 -0
  95. package/dist/models/FolderResponse.js +9 -1
  96. package/dist/models/FolderResponseOrDocumentResponse.d.ts +27 -0
  97. package/dist/models/FolderResponseOrDocumentResponse.js +53 -0
  98. package/dist/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.d.ts +66 -0
  99. package/dist/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.js +78 -0
  100. package/dist/models/PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator.d.ts +66 -0
  101. package/dist/models/PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator.js +78 -0
  102. package/dist/models/SectionContentItem.d.ts +114 -0
  103. package/dist/models/SectionContentItem.js +94 -0
  104. package/dist/models/SectionContentItemOrChunkContentItem.d.ts +27 -0
  105. package/dist/models/SectionContentItemOrChunkContentItem.js +53 -0
  106. package/dist/models/index.d.ts +6 -4
  107. package/dist/models/index.js +6 -4
  108. package/docs/AuthApi.md +707 -0
  109. package/docs/BulkTagRequest.md +35 -0
  110. package/docs/ChunkContentItem.md +59 -0
  111. package/docs/ChunkLineageResponse.md +41 -0
  112. package/docs/ChunkLineagesApi.md +230 -0
  113. package/docs/ChunkMetadataInput.md +37 -0
  114. package/docs/ChunkMetadataOutput.md +37 -0
  115. package/docs/ChunkResponse.md +63 -0
  116. package/docs/ChunkSearchRequest.md +47 -0
  117. package/docs/ChunkType.md +33 -0
  118. package/docs/ChunksApi.md +446 -0
  119. package/docs/ClearVersionContentsResponse.md +35 -0
  120. package/docs/CreateChunkLineageRequest.md +37 -0
  121. package/docs/CreateChunkRequest.md +43 -0
  122. package/docs/CreateDocumentRequest.md +41 -0
  123. package/docs/CreateFolderRequest.md +37 -0
  124. package/docs/CreatePasswordUserRequest.md +36 -0
  125. package/docs/CreatePermissionRequest.md +40 -0
  126. package/docs/CreateSectionRequest.md +41 -0
  127. package/docs/CreateTagRequest.md +39 -0
  128. package/docs/CreateTenantRequest.md +37 -0
  129. package/docs/CreateThreadMessageRequest.md +37 -0
  130. package/docs/CreateThreadRequest.md +37 -0
  131. package/docs/DefaultApi.md +128 -0
  132. package/docs/DocumentOrigin.md +33 -0
  133. package/docs/DocumentResponse.md +63 -0
  134. package/docs/DocumentType.md +33 -0
  135. package/docs/DocumentVersionMetadata.md +47 -0
  136. package/docs/DocumentVersionMetadataUpdate.md +47 -0
  137. package/docs/DocumentVersionResponse.md +57 -0
  138. package/docs/DocumentVersionsApi.md +530 -0
  139. package/docs/DocumentsApi.md +464 -0
  140. package/docs/EmailSentResponse.md +34 -0
  141. package/docs/EmailVerificationRequest.md +34 -0
  142. package/docs/EmbeddingModel.md +33 -0
  143. package/docs/FolderResponse.md +55 -0
  144. package/docs/FolderResponseOrDocumentResponse.md +62 -0
  145. package/docs/FoldersApi.md +473 -0
  146. package/docs/HTTPValidationError.md +34 -0
  147. package/docs/HealthCheckResponse.md +36 -0
  148. package/docs/IdpType.md +33 -0
  149. package/docs/IngestDocumentResponse.md +39 -0
  150. package/docs/InviteResponse.md +53 -0
  151. package/docs/InviteStatus.md +32 -0
  152. package/docs/InviteUserRequest.md +38 -0
  153. package/docs/InvitesApi.md +305 -0
  154. package/docs/LineageEdgeResponse.md +37 -0
  155. package/docs/LineageGraphResponse.md +37 -0
  156. package/docs/LineageNodeResponse.md +47 -0
  157. package/docs/LocationInner.md +32 -0
  158. package/docs/MessageRole.md +33 -0
  159. package/docs/OAuth2Config.md +41 -0
  160. package/docs/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.md +40 -0
  161. package/docs/PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator.md +40 -0
  162. package/docs/PaginatedResponseDocumentResponse.md +40 -0
  163. package/docs/PaginatedResponseDocumentVersionResponse.md +40 -0
  164. package/docs/PaginatedResponseFolderResponse.md +40 -0
  165. package/docs/PaginatedResponseInviteResponse.md +40 -0
  166. package/docs/PaginatedResponsePathPartResponse.md +40 -0
  167. package/docs/PaginatedResponsePermissionResponse.md +40 -0
  168. package/docs/PaginatedResponseTagResponse.md +40 -0
  169. package/docs/PaginatedResponseTenantResponse.md +40 -0
  170. package/docs/PaginatedResponseTenantUserResponse.md +40 -0
  171. package/docs/PaginatedResponseThreadMessageResponse.md +40 -0
  172. package/docs/PaginatedResponseThreadResponse.md +40 -0
  173. package/docs/PaginatedResponseWorkflowSummaryResponse.md +40 -0
  174. package/docs/PartType.md +33 -0
  175. package/docs/PasswordResetRequest.md +36 -0
  176. package/docs/PasswordResetWithTokenRequest.md +36 -0
  177. package/docs/PathOrder.md +33 -0
  178. package/docs/PathPartResponse.md +53 -0
  179. package/docs/PathPartTagsResponse.md +35 -0
  180. package/docs/PathPartsApi.md +314 -0
  181. package/docs/PermissionCapability.md +33 -0
  182. package/docs/PermissionResponse.md +48 -0
  183. package/docs/PipelineState.md +45 -0
  184. package/docs/PipelineStatus.md +33 -0
  185. package/docs/Polygon.md +41 -0
  186. package/docs/PolygonReference.md +37 -0
  187. package/docs/RootResponse.md +36 -0
  188. package/docs/ScoredChunkResponse.md +65 -0
  189. package/docs/SectionContentItem.md +55 -0
  190. package/docs/SectionContentItemOrChunkContentItem.md +60 -0
  191. package/docs/SectionResponse.md +57 -0
  192. package/docs/SectionsApi.md +299 -0
  193. package/docs/SignInRequest.md +38 -0
  194. package/docs/TagResponse.md +47 -0
  195. package/docs/TagsApi.md +374 -0
  196. package/docs/TenantResponse.md +39 -0
  197. package/docs/TenantUserEditRequest.md +35 -0
  198. package/docs/TenantUserResponse.md +43 -0
  199. package/docs/TenantUserRole.md +33 -0
  200. package/docs/TenantsApi.md +605 -0
  201. package/docs/ThreadMessageResponse.md +53 -0
  202. package/docs/ThreadMessagesApi.md +239 -0
  203. package/docs/ThreadResponse.md +49 -0
  204. package/docs/ThreadsApi.md +455 -0
  205. package/docs/UpdateChunkContentRequest.md +37 -0
  206. package/docs/UpdateChunkMetadataRequest.md +35 -0
  207. package/docs/UpdateDocumentRequest.md +39 -0
  208. package/docs/UpdateFolderRequest.md +37 -0
  209. package/docs/UpdatePermissionRequest.md +36 -0
  210. package/docs/UpdateSectionRequest.md +41 -0
  211. package/docs/UpdateTagRequest.md +39 -0
  212. package/docs/UpdateTenantRequest.md +37 -0
  213. package/docs/UpdateThreadRequest.md +37 -0
  214. package/docs/UpdateUserRequest.md +34 -0
  215. package/docs/UserPermissionsApi.md +314 -0
  216. package/docs/UserResponse.md +44 -0
  217. package/docs/UsersApi.md +149 -0
  218. package/docs/ValidationError.md +42 -0
  219. package/docs/WorkflowAction.md +33 -0
  220. package/docs/WorkflowActionResponse.md +39 -0
  221. package/docs/WorkflowDetailResponse.md +63 -0
  222. package/docs/WorkflowSummaryResponse.md +49 -0
  223. package/docs/WorkflowsApi.md +230 -0
  224. package/package.json +1 -1
  225. package/src/apis/AuthApi.ts +214 -47
  226. package/src/apis/ChunkLineagesApi.ts +68 -15
  227. package/src/apis/ChunksApi.ts +137 -33
  228. package/src/apis/DefaultApi.ts +40 -10
  229. package/src/apis/DocumentVersionsApi.ts +170 -45
  230. package/src/apis/DocumentsApi.ts +140 -30
  231. package/src/apis/FoldersApi.ts +153 -40
  232. package/src/apis/InvitesApi.ts +91 -20
  233. package/src/apis/PathPartsApi.ts +94 -20
  234. package/src/apis/SectionsApi.ts +89 -20
  235. package/src/apis/TagsApi.ts +112 -25
  236. package/src/apis/TenantsApi.ts +183 -40
  237. package/src/apis/ThreadMessagesApi.ts +71 -15
  238. package/src/apis/ThreadsApi.ts +137 -30
  239. package/src/apis/UserPermissionsApi.ts +94 -20
  240. package/src/apis/UsersApi.ts +43 -10
  241. package/src/apis/WorkflowsApi.ts +68 -15
  242. package/src/models/{DocumentContentPathPart.ts → ChunkContentItem.ts} +42 -53
  243. package/src/models/DocumentResponse.ts +16 -0
  244. package/src/models/FolderResponse.ts +18 -0
  245. package/src/models/FolderResponseOrDocumentResponse.ts +72 -0
  246. package/src/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.ts +130 -0
  247. package/src/models/PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator.ts +130 -0
  248. package/src/models/SectionContentItem.ts +181 -0
  249. package/src/models/SectionContentItemOrChunkContentItem.ts +72 -0
  250. package/src/models/index.ts +6 -4
  251. package/dist/esm/models/FolderDocumentResponse.d.ts +0 -157
  252. package/dist/esm/models/FolderDocumentResponse.js +0 -99
  253. package/dist/esm/models/PaginatedResponseDocumentContentPathPart.d.ts +0 -66
  254. package/dist/esm/models/PaginatedResponseDocumentContentPathPart.js +0 -70
  255. package/dist/esm/models/PaginatedResponseFolderDocumentResponse.d.ts +0 -66
  256. package/dist/esm/models/PaginatedResponseFolderDocumentResponse.js +0 -70
  257. package/dist/models/FolderDocumentResponse.d.ts +0 -157
  258. package/dist/models/FolderDocumentResponse.js +0 -107
  259. package/dist/models/PaginatedResponseDocumentContentPathPart.d.ts +0 -66
  260. package/dist/models/PaginatedResponseDocumentContentPathPart.js +0 -78
  261. package/dist/models/PaginatedResponseFolderDocumentResponse.d.ts +0 -66
  262. package/dist/models/PaginatedResponseFolderDocumentResponse.js +0 -78
  263. package/src/models/FolderDocumentResponse.ts +0 -267
  264. package/src/models/PaginatedResponseDocumentContentPathPart.ts +0 -130
  265. package/src/models/PaginatedResponseFolderDocumentResponse.ts +0 -130
@@ -30,10 +30,9 @@ const index_1 = require("../models/index");
30
30
  */
31
31
  class ThreadsApi extends runtime.BaseAPI {
32
32
  /**
33
- * Create a new thread. If parent_path_part_id is omitted, the thread is created under the user\'s /users/{user_id}/threads/ folder (auto-provisioned if needed).
34
- * Create Thread Handler
33
+ * Creates request options for createThread without sending the request
35
34
  */
36
- createThreadRaw(requestParameters, initOverrides) {
35
+ createThreadRequestOpts(requestParameters) {
37
36
  return __awaiter(this, void 0, void 0, function* () {
38
37
  if (requestParameters['createThreadRequest'] == null) {
39
38
  throw new runtime.RequiredError('createThreadRequest', 'Required parameter "createThreadRequest" was null or undefined when calling createThread().');
@@ -42,13 +41,23 @@ class ThreadsApi extends runtime.BaseAPI {
42
41
  const headerParameters = {};
43
42
  headerParameters['Content-Type'] = 'application/json';
44
43
  let urlPath = `/v1/threads`;
45
- const response = yield this.request({
44
+ return {
46
45
  path: urlPath,
47
46
  method: 'POST',
48
47
  headers: headerParameters,
49
48
  query: queryParameters,
50
49
  body: (0, index_1.CreateThreadRequestToJSON)(requestParameters['createThreadRequest']),
51
- }, initOverrides);
50
+ };
51
+ });
52
+ }
53
+ /**
54
+ * Create a new thread. If parent_path_part_id is omitted, the thread is created under the user\'s /users/{user_id}/threads/ folder (auto-provisioned if needed).
55
+ * Create Thread Handler
56
+ */
57
+ createThreadRaw(requestParameters, initOverrides) {
58
+ return __awaiter(this, void 0, void 0, function* () {
59
+ const requestOptions = yield this.createThreadRequestOpts(requestParameters);
60
+ const response = yield this.request(requestOptions, initOverrides);
52
61
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ThreadResponseFromJSON)(jsonValue));
53
62
  });
54
63
  }
@@ -63,10 +72,9 @@ class ThreadsApi extends runtime.BaseAPI {
63
72
  });
64
73
  }
65
74
  /**
66
- * Delete a thread. Authorization: only conversation threads belonging to the current user (under /users/{user_id}/threads/) can be deleted. Asset threads (attached to documents/sections) are never deletable via this endpoint.
67
- * Delete Thread Handler
75
+ * Creates request options for deleteThread without sending the request
68
76
  */
69
- deleteThreadRaw(requestParameters, initOverrides) {
77
+ deleteThreadRequestOpts(requestParameters) {
70
78
  return __awaiter(this, void 0, void 0, function* () {
71
79
  if (requestParameters['threadId'] == null) {
72
80
  throw new runtime.RequiredError('threadId', 'Required parameter "threadId" was null or undefined when calling deleteThread().');
@@ -75,12 +83,22 @@ class ThreadsApi extends runtime.BaseAPI {
75
83
  const headerParameters = {};
76
84
  let urlPath = `/v1/threads/{thread_id}`;
77
85
  urlPath = urlPath.replace(`{${"thread_id"}}`, encodeURIComponent(String(requestParameters['threadId'])));
78
- const response = yield this.request({
86
+ return {
79
87
  path: urlPath,
80
88
  method: 'DELETE',
81
89
  headers: headerParameters,
82
90
  query: queryParameters,
83
- }, initOverrides);
91
+ };
92
+ });
93
+ }
94
+ /**
95
+ * Delete a thread. Authorization: only conversation threads belonging to the current user (under /users/{user_id}/threads/) can be deleted. Asset threads (attached to documents/sections) are never deletable via this endpoint.
96
+ * Delete Thread Handler
97
+ */
98
+ deleteThreadRaw(requestParameters, initOverrides) {
99
+ return __awaiter(this, void 0, void 0, function* () {
100
+ const requestOptions = yield this.deleteThreadRequestOpts(requestParameters);
101
+ const response = yield this.request(requestOptions, initOverrides);
84
102
  return new runtime.VoidApiResponse(response);
85
103
  });
86
104
  }
@@ -94,10 +112,9 @@ class ThreadsApi extends runtime.BaseAPI {
94
112
  });
95
113
  }
96
114
  /**
97
- * Get a thread by its thread ID.
98
- * Get Thread Handler
115
+ * Creates request options for getThread without sending the request
99
116
  */
100
- getThreadRaw(requestParameters, initOverrides) {
117
+ getThreadRequestOpts(requestParameters) {
101
118
  return __awaiter(this, void 0, void 0, function* () {
102
119
  if (requestParameters['threadId'] == null) {
103
120
  throw new runtime.RequiredError('threadId', 'Required parameter "threadId" was null or undefined when calling getThread().');
@@ -106,12 +123,22 @@ class ThreadsApi extends runtime.BaseAPI {
106
123
  const headerParameters = {};
107
124
  let urlPath = `/v1/threads/{thread_id}`;
108
125
  urlPath = urlPath.replace(`{${"thread_id"}}`, encodeURIComponent(String(requestParameters['threadId'])));
109
- const response = yield this.request({
126
+ return {
110
127
  path: urlPath,
111
128
  method: 'GET',
112
129
  headers: headerParameters,
113
130
  query: queryParameters,
114
- }, initOverrides);
131
+ };
132
+ });
133
+ }
134
+ /**
135
+ * Get a thread by its thread ID.
136
+ * Get Thread Handler
137
+ */
138
+ getThreadRaw(requestParameters, initOverrides) {
139
+ return __awaiter(this, void 0, void 0, function* () {
140
+ const requestOptions = yield this.getThreadRequestOpts(requestParameters);
141
+ const response = yield this.request(requestOptions, initOverrides);
115
142
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ThreadResponseFromJSON)(jsonValue));
116
143
  });
117
144
  }
@@ -126,10 +153,9 @@ class ThreadsApi extends runtime.BaseAPI {
126
153
  });
127
154
  }
128
155
  /**
129
- * List threads under a parent path_part. When parent_path_part_id is omitted, lists the authenticated user\'s conversation threads from /users/{user_id}/threads/.
130
- * List Threads Handler
156
+ * Creates request options for listThreads without sending the request
131
157
  */
132
- listThreadsRaw(requestParameters, initOverrides) {
158
+ listThreadsRequestOpts(requestParameters) {
133
159
  return __awaiter(this, void 0, void 0, function* () {
134
160
  const queryParameters = {};
135
161
  if (requestParameters['parentPathPartId'] != null) {
@@ -143,12 +169,22 @@ class ThreadsApi extends runtime.BaseAPI {
143
169
  }
144
170
  const headerParameters = {};
145
171
  let urlPath = `/v1/threads`;
146
- const response = yield this.request({
172
+ return {
147
173
  path: urlPath,
148
174
  method: 'GET',
149
175
  headers: headerParameters,
150
176
  query: queryParameters,
151
- }, initOverrides);
177
+ };
178
+ });
179
+ }
180
+ /**
181
+ * List threads under a parent path_part. When parent_path_part_id is omitted, lists the authenticated user\'s conversation threads from /users/{user_id}/threads/.
182
+ * List Threads Handler
183
+ */
184
+ listThreadsRaw(requestParameters, initOverrides) {
185
+ return __awaiter(this, void 0, void 0, function* () {
186
+ const requestOptions = yield this.listThreadsRequestOpts(requestParameters);
187
+ const response = yield this.request(requestOptions, initOverrides);
152
188
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PaginatedResponseThreadResponseFromJSON)(jsonValue));
153
189
  });
154
190
  }
@@ -163,10 +199,9 @@ class ThreadsApi extends runtime.BaseAPI {
163
199
  });
164
200
  }
165
201
  /**
166
- * SSE endpoint for streaming thread messages. Opens a server-sent event stream for the given thread. Optionally replays missed entries if last_message_id and last_entry_id are provided.
167
- * Stream Thread Handler
202
+ * Creates request options for streamThread without sending the request
168
203
  */
169
- streamThreadRaw(requestParameters, initOverrides) {
204
+ streamThreadRequestOpts(requestParameters) {
170
205
  return __awaiter(this, void 0, void 0, function* () {
171
206
  if (requestParameters['threadId'] == null) {
172
207
  throw new runtime.RequiredError('threadId', 'Required parameter "threadId" was null or undefined when calling streamThread().');
@@ -181,12 +216,22 @@ class ThreadsApi extends runtime.BaseAPI {
181
216
  const headerParameters = {};
182
217
  let urlPath = `/v1/threads/{thread_id}/stream`;
183
218
  urlPath = urlPath.replace(`{${"thread_id"}}`, encodeURIComponent(String(requestParameters['threadId'])));
184
- const response = yield this.request({
219
+ return {
185
220
  path: urlPath,
186
221
  method: 'GET',
187
222
  headers: headerParameters,
188
223
  query: queryParameters,
189
- }, initOverrides);
224
+ };
225
+ });
226
+ }
227
+ /**
228
+ * SSE endpoint for streaming thread messages. Opens a server-sent event stream for the given thread. Optionally replays missed entries if last_message_id and last_entry_id are provided.
229
+ * Stream Thread Handler
230
+ */
231
+ streamThreadRaw(requestParameters, initOverrides) {
232
+ return __awaiter(this, void 0, void 0, function* () {
233
+ const requestOptions = yield this.streamThreadRequestOpts(requestParameters);
234
+ const response = yield this.request(requestOptions, initOverrides);
190
235
  return new runtime.VoidApiResponse(response);
191
236
  });
192
237
  }
@@ -200,10 +245,9 @@ class ThreadsApi extends runtime.BaseAPI {
200
245
  });
201
246
  }
202
247
  /**
203
- * Update a thread\'s title and/or parent_thread_id.
204
- * Update Thread Handler
248
+ * Creates request options for updateThread without sending the request
205
249
  */
206
- updateThreadRaw(requestParameters, initOverrides) {
250
+ updateThreadRequestOpts(requestParameters) {
207
251
  return __awaiter(this, void 0, void 0, function* () {
208
252
  if (requestParameters['threadId'] == null) {
209
253
  throw new runtime.RequiredError('threadId', 'Required parameter "threadId" was null or undefined when calling updateThread().');
@@ -216,13 +260,23 @@ class ThreadsApi extends runtime.BaseAPI {
216
260
  headerParameters['Content-Type'] = 'application/json';
217
261
  let urlPath = `/v1/threads/{thread_id}`;
218
262
  urlPath = urlPath.replace(`{${"thread_id"}}`, encodeURIComponent(String(requestParameters['threadId'])));
219
- const response = yield this.request({
263
+ return {
220
264
  path: urlPath,
221
265
  method: 'PATCH',
222
266
  headers: headerParameters,
223
267
  query: queryParameters,
224
268
  body: (0, index_1.UpdateThreadRequestToJSON)(requestParameters['updateThreadRequest']),
225
- }, initOverrides);
269
+ };
270
+ });
271
+ }
272
+ /**
273
+ * Update a thread\'s title and/or parent_thread_id.
274
+ * Update Thread Handler
275
+ */
276
+ updateThreadRaw(requestParameters, initOverrides) {
277
+ return __awaiter(this, void 0, void 0, function* () {
278
+ const requestOptions = yield this.updateThreadRequestOpts(requestParameters);
279
+ const response = yield this.request(requestOptions, initOverrides);
226
280
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ThreadResponseFromJSON)(jsonValue));
227
281
  });
228
282
  }
@@ -40,6 +40,14 @@ export interface UpdateUserPermissionRequest {
40
40
  * @interface UserPermissionsApiInterface
41
41
  */
42
42
  export interface UserPermissionsApiInterface {
43
+ /**
44
+ * Creates request options for createUserPermission without sending the request
45
+ * @param {CreatePermissionRequest} createPermissionRequest
46
+ * @param {string} [ksUat]
47
+ * @throws {RequiredError}
48
+ * @memberof UserPermissionsApiInterface
49
+ */
50
+ createUserPermissionRequestOpts(requestParameters: CreateUserPermissionRequest): Promise<runtime.RequestOpts>;
43
51
  /**
44
52
  * Create a path permission for a user in a tenant (admin/owner only).
45
53
  * @summary Create User Permission Handler
@@ -55,6 +63,15 @@ export interface UserPermissionsApiInterface {
55
63
  * Create User Permission Handler
56
64
  */
57
65
  createUserPermission(requestParameters: CreateUserPermissionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PermissionResponse>;
66
+ /**
67
+ * Creates request options for deleteUserPermission without sending the request
68
+ * @param {string} permissionId
69
+ * @param {string} tenantId Tenant ID the permission belongs to
70
+ * @param {string} [ksUat]
71
+ * @throws {RequiredError}
72
+ * @memberof UserPermissionsApiInterface
73
+ */
74
+ deleteUserPermissionRequestOpts(requestParameters: DeleteUserPermissionRequest): Promise<runtime.RequestOpts>;
58
75
  /**
59
76
  * Delete a path permission (admin/owner only).
60
77
  * @summary Delete User Permission Handler
@@ -71,6 +88,17 @@ export interface UserPermissionsApiInterface {
71
88
  * Delete User Permission Handler
72
89
  */
73
90
  deleteUserPermission(requestParameters: DeleteUserPermissionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
91
+ /**
92
+ * Creates request options for listUserPermissions without sending the request
93
+ * @param {string} tenantId Tenant ID to list permissions for
94
+ * @param {string} userId User ID to list permissions for
95
+ * @param {number} [limit] Number of items per page
96
+ * @param {number} [offset] Number of items to skip
97
+ * @param {string} [ksUat]
98
+ * @throws {RequiredError}
99
+ * @memberof UserPermissionsApiInterface
100
+ */
101
+ listUserPermissionsRequestOpts(requestParameters: ListUserPermissionsRequest): Promise<runtime.RequestOpts>;
74
102
  /**
75
103
  * List path permissions for a user in a tenant (admin/owner only).
76
104
  * @summary List User Permissions Handler
@@ -89,6 +117,16 @@ export interface UserPermissionsApiInterface {
89
117
  * List User Permissions Handler
90
118
  */
91
119
  listUserPermissions(requestParameters: ListUserPermissionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponsePermissionResponse>;
120
+ /**
121
+ * Creates request options for updateUserPermission without sending the request
122
+ * @param {string} permissionId
123
+ * @param {string} tenantId Tenant ID the permission belongs to
124
+ * @param {UpdatePermissionRequest} updatePermissionRequest
125
+ * @param {string} [ksUat]
126
+ * @throws {RequiredError}
127
+ * @memberof UserPermissionsApiInterface
128
+ */
129
+ updateUserPermissionRequestOpts(requestParameters: UpdateUserPermissionRequest): Promise<runtime.RequestOpts>;
92
130
  /**
93
131
  * Update a path permission (admin/owner only).
94
132
  * @summary Update User Permission Handler
@@ -111,6 +149,10 @@ export interface UserPermissionsApiInterface {
111
149
  *
112
150
  */
113
151
  export declare class UserPermissionsApi extends runtime.BaseAPI implements UserPermissionsApiInterface {
152
+ /**
153
+ * Creates request options for createUserPermission without sending the request
154
+ */
155
+ createUserPermissionRequestOpts(requestParameters: CreateUserPermissionRequest): Promise<runtime.RequestOpts>;
114
156
  /**
115
157
  * Create a path permission for a user in a tenant (admin/owner only).
116
158
  * Create User Permission Handler
@@ -121,6 +163,10 @@ export declare class UserPermissionsApi extends runtime.BaseAPI implements UserP
121
163
  * Create User Permission Handler
122
164
  */
123
165
  createUserPermission(requestParameters: CreateUserPermissionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PermissionResponse>;
166
+ /**
167
+ * Creates request options for deleteUserPermission without sending the request
168
+ */
169
+ deleteUserPermissionRequestOpts(requestParameters: DeleteUserPermissionRequest): Promise<runtime.RequestOpts>;
124
170
  /**
125
171
  * Delete a path permission (admin/owner only).
126
172
  * Delete User Permission Handler
@@ -131,6 +177,10 @@ export declare class UserPermissionsApi extends runtime.BaseAPI implements UserP
131
177
  * Delete User Permission Handler
132
178
  */
133
179
  deleteUserPermission(requestParameters: DeleteUserPermissionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
180
+ /**
181
+ * Creates request options for listUserPermissions without sending the request
182
+ */
183
+ listUserPermissionsRequestOpts(requestParameters: ListUserPermissionsRequest): Promise<runtime.RequestOpts>;
134
184
  /**
135
185
  * List path permissions for a user in a tenant (admin/owner only).
136
186
  * List User Permissions Handler
@@ -141,6 +191,10 @@ export declare class UserPermissionsApi extends runtime.BaseAPI implements UserP
141
191
  * List User Permissions Handler
142
192
  */
143
193
  listUserPermissions(requestParameters: ListUserPermissionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponsePermissionResponse>;
194
+ /**
195
+ * Creates request options for updateUserPermission without sending the request
196
+ */
197
+ updateUserPermissionRequestOpts(requestParameters: UpdateUserPermissionRequest): Promise<runtime.RequestOpts>;
144
198
  /**
145
199
  * Update a path permission (admin/owner only).
146
200
  * Update User Permission Handler
@@ -30,10 +30,9 @@ const index_1 = require("../models/index");
30
30
  */
31
31
  class UserPermissionsApi extends runtime.BaseAPI {
32
32
  /**
33
- * Create a path permission for a user in a tenant (admin/owner only).
34
- * Create User Permission Handler
33
+ * Creates request options for createUserPermission without sending the request
35
34
  */
36
- createUserPermissionRaw(requestParameters, initOverrides) {
35
+ createUserPermissionRequestOpts(requestParameters) {
37
36
  return __awaiter(this, void 0, void 0, function* () {
38
37
  if (requestParameters['createPermissionRequest'] == null) {
39
38
  throw new runtime.RequiredError('createPermissionRequest', 'Required parameter "createPermissionRequest" was null or undefined when calling createUserPermission().');
@@ -42,13 +41,23 @@ class UserPermissionsApi extends runtime.BaseAPI {
42
41
  const headerParameters = {};
43
42
  headerParameters['Content-Type'] = 'application/json';
44
43
  let urlPath = `/v1/user-permissions`;
45
- const response = yield this.request({
44
+ return {
46
45
  path: urlPath,
47
46
  method: 'POST',
48
47
  headers: headerParameters,
49
48
  query: queryParameters,
50
49
  body: (0, index_1.CreatePermissionRequestToJSON)(requestParameters['createPermissionRequest']),
51
- }, initOverrides);
50
+ };
51
+ });
52
+ }
53
+ /**
54
+ * Create a path permission for a user in a tenant (admin/owner only).
55
+ * Create User Permission Handler
56
+ */
57
+ createUserPermissionRaw(requestParameters, initOverrides) {
58
+ return __awaiter(this, void 0, void 0, function* () {
59
+ const requestOptions = yield this.createUserPermissionRequestOpts(requestParameters);
60
+ const response = yield this.request(requestOptions, initOverrides);
52
61
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PermissionResponseFromJSON)(jsonValue));
53
62
  });
54
63
  }
@@ -63,10 +72,9 @@ class UserPermissionsApi extends runtime.BaseAPI {
63
72
  });
64
73
  }
65
74
  /**
66
- * Delete a path permission (admin/owner only).
67
- * Delete User Permission Handler
75
+ * Creates request options for deleteUserPermission without sending the request
68
76
  */
69
- deleteUserPermissionRaw(requestParameters, initOverrides) {
77
+ deleteUserPermissionRequestOpts(requestParameters) {
70
78
  return __awaiter(this, void 0, void 0, function* () {
71
79
  if (requestParameters['permissionId'] == null) {
72
80
  throw new runtime.RequiredError('permissionId', 'Required parameter "permissionId" was null or undefined when calling deleteUserPermission().');
@@ -81,12 +89,22 @@ class UserPermissionsApi extends runtime.BaseAPI {
81
89
  const headerParameters = {};
82
90
  let urlPath = `/v1/user-permissions/{permission_id}`;
83
91
  urlPath = urlPath.replace(`{${"permission_id"}}`, encodeURIComponent(String(requestParameters['permissionId'])));
84
- const response = yield this.request({
92
+ return {
85
93
  path: urlPath,
86
94
  method: 'DELETE',
87
95
  headers: headerParameters,
88
96
  query: queryParameters,
89
- }, initOverrides);
97
+ };
98
+ });
99
+ }
100
+ /**
101
+ * Delete a path permission (admin/owner only).
102
+ * Delete User Permission Handler
103
+ */
104
+ deleteUserPermissionRaw(requestParameters, initOverrides) {
105
+ return __awaiter(this, void 0, void 0, function* () {
106
+ const requestOptions = yield this.deleteUserPermissionRequestOpts(requestParameters);
107
+ const response = yield this.request(requestOptions, initOverrides);
90
108
  return new runtime.VoidApiResponse(response);
91
109
  });
92
110
  }
@@ -100,10 +118,9 @@ class UserPermissionsApi extends runtime.BaseAPI {
100
118
  });
101
119
  }
102
120
  /**
103
- * List path permissions for a user in a tenant (admin/owner only).
104
- * List User Permissions Handler
121
+ * Creates request options for listUserPermissions without sending the request
105
122
  */
106
- listUserPermissionsRaw(requestParameters, initOverrides) {
123
+ listUserPermissionsRequestOpts(requestParameters) {
107
124
  return __awaiter(this, void 0, void 0, function* () {
108
125
  if (requestParameters['tenantId'] == null) {
109
126
  throw new runtime.RequiredError('tenantId', 'Required parameter "tenantId" was null or undefined when calling listUserPermissions().');
@@ -126,12 +143,22 @@ class UserPermissionsApi extends runtime.BaseAPI {
126
143
  }
127
144
  const headerParameters = {};
128
145
  let urlPath = `/v1/user-permissions`;
129
- const response = yield this.request({
146
+ return {
130
147
  path: urlPath,
131
148
  method: 'GET',
132
149
  headers: headerParameters,
133
150
  query: queryParameters,
134
- }, initOverrides);
151
+ };
152
+ });
153
+ }
154
+ /**
155
+ * List path permissions for a user in a tenant (admin/owner only).
156
+ * List User Permissions Handler
157
+ */
158
+ listUserPermissionsRaw(requestParameters, initOverrides) {
159
+ return __awaiter(this, void 0, void 0, function* () {
160
+ const requestOptions = yield this.listUserPermissionsRequestOpts(requestParameters);
161
+ const response = yield this.request(requestOptions, initOverrides);
135
162
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PaginatedResponsePermissionResponseFromJSON)(jsonValue));
136
163
  });
137
164
  }
@@ -146,10 +173,9 @@ class UserPermissionsApi extends runtime.BaseAPI {
146
173
  });
147
174
  }
148
175
  /**
149
- * Update a path permission (admin/owner only).
150
- * Update User Permission Handler
176
+ * Creates request options for updateUserPermission without sending the request
151
177
  */
152
- updateUserPermissionRaw(requestParameters, initOverrides) {
178
+ updateUserPermissionRequestOpts(requestParameters) {
153
179
  return __awaiter(this, void 0, void 0, function* () {
154
180
  if (requestParameters['permissionId'] == null) {
155
181
  throw new runtime.RequiredError('permissionId', 'Required parameter "permissionId" was null or undefined when calling updateUserPermission().');
@@ -168,13 +194,23 @@ class UserPermissionsApi extends runtime.BaseAPI {
168
194
  headerParameters['Content-Type'] = 'application/json';
169
195
  let urlPath = `/v1/user-permissions/{permission_id}`;
170
196
  urlPath = urlPath.replace(`{${"permission_id"}}`, encodeURIComponent(String(requestParameters['permissionId'])));
171
- const response = yield this.request({
197
+ return {
172
198
  path: urlPath,
173
199
  method: 'PATCH',
174
200
  headers: headerParameters,
175
201
  query: queryParameters,
176
202
  body: (0, index_1.UpdatePermissionRequestToJSON)(requestParameters['updatePermissionRequest']),
177
- }, initOverrides);
203
+ };
204
+ });
205
+ }
206
+ /**
207
+ * Update a path permission (admin/owner only).
208
+ * Update User Permission Handler
209
+ */
210
+ updateUserPermissionRaw(requestParameters, initOverrides) {
211
+ return __awaiter(this, void 0, void 0, function* () {
212
+ const requestOptions = yield this.updateUserPermissionRequestOpts(requestParameters);
213
+ const response = yield this.request(requestOptions, initOverrides);
178
214
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PermissionResponseFromJSON)(jsonValue));
179
215
  });
180
216
  }
@@ -25,6 +25,13 @@ export interface UpdateMeRequest {
25
25
  * @interface UsersApiInterface
26
26
  */
27
27
  export interface UsersApiInterface {
28
+ /**
29
+ * Creates request options for getMe without sending the request
30
+ * @param {string} [ksUat]
31
+ * @throws {RequiredError}
32
+ * @memberof UsersApiInterface
33
+ */
34
+ getMeRequestOpts(requestParameters: GetMeRequest): Promise<runtime.RequestOpts>;
28
35
  /**
29
36
  * Get current user information including current tenant context. Returns the authenticated user\'s profile along with their current tenant ID (from the UAT token) and default tenant ID (from user record).
30
37
  * @summary Get Me Handler
@@ -39,6 +46,14 @@ export interface UsersApiInterface {
39
46
  * Get Me Handler
40
47
  */
41
48
  getMe(requestParameters: GetMeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserResponse>;
49
+ /**
50
+ * Creates request options for updateMe without sending the request
51
+ * @param {UpdateUserRequest} updateUserRequest
52
+ * @param {string} [ksUat]
53
+ * @throws {RequiredError}
54
+ * @memberof UsersApiInterface
55
+ */
56
+ updateMeRequestOpts(requestParameters: UpdateMeRequest): Promise<runtime.RequestOpts>;
42
57
  /**
43
58
  * Update the user\'s default tenant. The user must belong to the specified tenant.
44
59
  * @summary Update Me Handler
@@ -59,6 +74,10 @@ export interface UsersApiInterface {
59
74
  *
60
75
  */
61
76
  export declare class UsersApi extends runtime.BaseAPI implements UsersApiInterface {
77
+ /**
78
+ * Creates request options for getMe without sending the request
79
+ */
80
+ getMeRequestOpts(requestParameters: GetMeRequest): Promise<runtime.RequestOpts>;
62
81
  /**
63
82
  * Get current user information including current tenant context. Returns the authenticated user\'s profile along with their current tenant ID (from the UAT token) and default tenant ID (from user record).
64
83
  * Get Me Handler
@@ -69,6 +88,10 @@ export declare class UsersApi extends runtime.BaseAPI implements UsersApiInterfa
69
88
  * Get Me Handler
70
89
  */
71
90
  getMe(requestParameters?: GetMeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserResponse>;
91
+ /**
92
+ * Creates request options for updateMe without sending the request
93
+ */
94
+ updateMeRequestOpts(requestParameters: UpdateMeRequest): Promise<runtime.RequestOpts>;
72
95
  /**
73
96
  * Update the user\'s default tenant. The user must belong to the specified tenant.
74
97
  * Update Me Handler
@@ -30,20 +30,29 @@ const index_1 = require("../models/index");
30
30
  */
31
31
  class UsersApi extends runtime.BaseAPI {
32
32
  /**
33
- * Get current user information including current tenant context. Returns the authenticated user\'s profile along with their current tenant ID (from the UAT token) and default tenant ID (from user record).
34
- * Get Me Handler
33
+ * Creates request options for getMe without sending the request
35
34
  */
36
- getMeRaw(requestParameters, initOverrides) {
35
+ getMeRequestOpts(requestParameters) {
37
36
  return __awaiter(this, void 0, void 0, function* () {
38
37
  const queryParameters = {};
39
38
  const headerParameters = {};
40
39
  let urlPath = `/v1/users/me`;
41
- const response = yield this.request({
40
+ return {
42
41
  path: urlPath,
43
42
  method: 'GET',
44
43
  headers: headerParameters,
45
44
  query: queryParameters,
46
- }, initOverrides);
45
+ };
46
+ });
47
+ }
48
+ /**
49
+ * Get current user information including current tenant context. Returns the authenticated user\'s profile along with their current tenant ID (from the UAT token) and default tenant ID (from user record).
50
+ * Get Me Handler
51
+ */
52
+ getMeRaw(requestParameters, initOverrides) {
53
+ return __awaiter(this, void 0, void 0, function* () {
54
+ const requestOptions = yield this.getMeRequestOpts(requestParameters);
55
+ const response = yield this.request(requestOptions, initOverrides);
47
56
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.UserResponseFromJSON)(jsonValue));
48
57
  });
49
58
  }
@@ -58,10 +67,9 @@ class UsersApi extends runtime.BaseAPI {
58
67
  });
59
68
  }
60
69
  /**
61
- * Update the user\'s default tenant. The user must belong to the specified tenant.
62
- * Update Me Handler
70
+ * Creates request options for updateMe without sending the request
63
71
  */
64
- updateMeRaw(requestParameters, initOverrides) {
72
+ updateMeRequestOpts(requestParameters) {
65
73
  return __awaiter(this, void 0, void 0, function* () {
66
74
  if (requestParameters['updateUserRequest'] == null) {
67
75
  throw new runtime.RequiredError('updateUserRequest', 'Required parameter "updateUserRequest" was null or undefined when calling updateMe().');
@@ -70,13 +78,23 @@ class UsersApi extends runtime.BaseAPI {
70
78
  const headerParameters = {};
71
79
  headerParameters['Content-Type'] = 'application/json';
72
80
  let urlPath = `/v1/users`;
73
- const response = yield this.request({
81
+ return {
74
82
  path: urlPath,
75
83
  method: 'PATCH',
76
84
  headers: headerParameters,
77
85
  query: queryParameters,
78
86
  body: (0, index_1.UpdateUserRequestToJSON)(requestParameters['updateUserRequest']),
79
- }, initOverrides);
87
+ };
88
+ });
89
+ }
90
+ /**
91
+ * Update the user\'s default tenant. The user must belong to the specified tenant.
92
+ * Update Me Handler
93
+ */
94
+ updateMeRaw(requestParameters, initOverrides) {
95
+ return __awaiter(this, void 0, void 0, function* () {
96
+ const requestOptions = yield this.updateMeRequestOpts(requestParameters);
97
+ const response = yield this.request(requestOptions, initOverrides);
80
98
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.UserResponseFromJSON)(jsonValue));
81
99
  });
82
100
  }