@stack-spot/portal-network 0.3.0 → 0.3.1

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 (154) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/api/account.d.ts +2368 -0
  3. package/dist/api/account.d.ts.map +1 -0
  4. package/dist/api/account.js +1521 -0
  5. package/dist/api/account.js.map +1 -0
  6. package/dist/api/ai.d.ts +1432 -0
  7. package/dist/api/ai.d.ts.map +1 -0
  8. package/dist/api/ai.js +1342 -0
  9. package/dist/api/ai.js.map +1 -0
  10. package/dist/api/apiRuntime.d.ts +922 -0
  11. package/dist/api/apiRuntime.d.ts.map +1 -0
  12. package/dist/api/apiRuntime.js +599 -0
  13. package/dist/api/apiRuntime.js.map +1 -0
  14. package/dist/api/cloudAccount.d.ts +473 -0
  15. package/dist/api/cloudAccount.d.ts.map +1 -0
  16. package/dist/api/cloudAccount.js +300 -0
  17. package/dist/api/cloudAccount.js.map +1 -0
  18. package/dist/api/cloudServices.d.ts +1233 -0
  19. package/dist/api/cloudServices.d.ts.map +1 -0
  20. package/dist/api/cloudServices.js +715 -0
  21. package/dist/api/cloudServices.js.map +1 -0
  22. package/dist/api/insights.d.ts +123 -0
  23. package/dist/api/insights.d.ts.map +1 -0
  24. package/dist/api/insights.js +112 -0
  25. package/dist/api/insights.js.map +1 -0
  26. package/dist/api/serviceCatalog.d.ts +737 -0
  27. package/dist/api/serviceCatalog.d.ts.map +1 -0
  28. package/dist/api/serviceCatalog.js +611 -0
  29. package/dist/api/serviceCatalog.js.map +1 -0
  30. package/dist/api/workflows.d.ts +366 -0
  31. package/dist/api/workflows.d.ts.map +1 -0
  32. package/dist/api/workflows.js +175 -0
  33. package/dist/api/workflows.js.map +1 -0
  34. package/dist/api/workspace.js +1476 -0
  35. package/dist/api/workspace.js.map +1 -0
  36. package/dist/api/workspaceManager.d.ts +1121 -0
  37. package/dist/api/workspaceManager.d.ts.map +1 -0
  38. package/dist/api/workspaceManager.js +357 -0
  39. package/dist/api/workspaceManager.js.map +1 -0
  40. package/dist/api/workspaceSearchEngine.d.ts +93 -0
  41. package/dist/api/workspaceSearchEngine.d.ts.map +1 -0
  42. package/dist/api/workspaceSearchEngine.js +55 -0
  43. package/dist/api/workspaceSearchEngine.js.map +1 -0
  44. package/dist/apis.json +121 -0
  45. package/dist/client/account.d.ts +217 -0
  46. package/dist/client/account.d.ts.map +1 -0
  47. package/dist/client/account.js +276 -0
  48. package/dist/client/account.js.map +1 -0
  49. package/dist/error/CanceledError.d.ts +8 -0
  50. package/dist/error/CanceledError.d.ts.map +1 -0
  51. package/dist/error/CanceledError.js +10 -0
  52. package/dist/error/CanceledError.js.map +1 -0
  53. package/dist/error/DefaultAPIError.d.ts +34 -0
  54. package/dist/error/DefaultAPIError.d.ts.map +1 -0
  55. package/dist/error/DefaultAPIError.js +82 -0
  56. package/dist/error/DefaultAPIError.js.map +1 -0
  57. package/dist/error/StackspotAPIError.d.ts +50 -0
  58. package/dist/error/StackspotAPIError.d.ts.map +1 -0
  59. package/dist/error/StackspotAPIError.js +54 -0
  60. package/dist/error/StackspotAPIError.js.map +1 -0
  61. package/dist/error/dictionary/account.d.ts +55 -0
  62. package/dist/error/dictionary/account.d.ts.map +1 -0
  63. package/dist/error/dictionary/account.js +55 -0
  64. package/dist/error/dictionary/account.js.map +1 -0
  65. package/dist/error/dictionary/action.d.ts +163 -0
  66. package/dist/error/dictionary/action.d.ts.map +1 -0
  67. package/dist/error/dictionary/action.js +163 -0
  68. package/dist/error/dictionary/action.js.map +1 -0
  69. package/dist/error/dictionary/base.d.ts +21 -0
  70. package/dist/error/dictionary/base.d.ts.map +1 -0
  71. package/dist/error/dictionary/base.js +21 -0
  72. package/dist/error/dictionary/base.js.map +1 -0
  73. package/dist/error/dictionary/cnt-fields.d.ts +13 -0
  74. package/dist/error/dictionary/cnt-fields.d.ts.map +1 -0
  75. package/dist/error/dictionary/cnt-fields.js +13 -0
  76. package/dist/error/dictionary/cnt-fields.js.map +1 -0
  77. package/dist/error/dictionary/cnt.d.ts +79 -0
  78. package/dist/error/dictionary/cnt.d.ts.map +1 -0
  79. package/dist/error/dictionary/cnt.js +79 -0
  80. package/dist/error/dictionary/cnt.js.map +1 -0
  81. package/dist/error/dictionary/rte.d.ts +23 -0
  82. package/dist/error/dictionary/rte.d.ts.map +1 -0
  83. package/dist/error/dictionary/rte.js +23 -0
  84. package/dist/error/dictionary/rte.js.map +1 -0
  85. package/dist/error/dictionary/rtm.d.ts +9 -0
  86. package/dist/error/dictionary/rtm.d.ts.map +1 -0
  87. package/dist/error/dictionary/rtm.js +9 -0
  88. package/dist/error/dictionary/rtm.js.map +1 -0
  89. package/dist/error/dictionary/workspace-fields.d.ts +9 -0
  90. package/dist/error/dictionary/workspace-fields.d.ts.map +1 -0
  91. package/dist/error/dictionary/workspace-fields.js +9 -0
  92. package/dist/error/dictionary/workspace-fields.js.map +1 -0
  93. package/dist/error/dictionary/workspace.d.ts +99 -0
  94. package/dist/error/dictionary/workspace.d.ts.map +1 -0
  95. package/dist/error/dictionary/workspace.js +99 -0
  96. package/dist/error/dictionary/workspace.js.map +1 -0
  97. package/dist/index.d.ts +7 -0
  98. package/dist/index.d.ts.map +1 -0
  99. package/dist/index.js +7 -0
  100. package/dist/index.js.map +1 -0
  101. package/dist/network/AutoInfiniteQuery.d.ts +23 -0
  102. package/dist/network/AutoInfiniteQuery.d.ts.map +1 -0
  103. package/dist/network/AutoInfiniteQuery.js +70 -0
  104. package/dist/network/AutoInfiniteQuery.js.map +1 -0
  105. package/dist/network/AutoMutation.d.ts +10 -0
  106. package/dist/network/AutoMutation.d.ts.map +1 -0
  107. package/dist/network/AutoMutation.js +20 -0
  108. package/dist/network/AutoMutation.js.map +1 -0
  109. package/dist/network/AutoOperation.d.ts +19 -0
  110. package/dist/network/AutoOperation.d.ts.map +1 -0
  111. package/dist/network/AutoOperation.js +105 -0
  112. package/dist/network/AutoOperation.js.map +1 -0
  113. package/dist/network/AutoQuery.d.ts +19 -0
  114. package/dist/network/AutoQuery.d.ts.map +1 -0
  115. package/dist/network/AutoQuery.js +70 -0
  116. package/dist/network/AutoQuery.js.map +1 -0
  117. package/dist/network/ManualInfiniteQuery.d.ts +25 -0
  118. package/dist/network/ManualInfiniteQuery.d.ts.map +1 -0
  119. package/dist/network/ManualInfiniteQuery.js +62 -0
  120. package/dist/network/ManualInfiniteQuery.js.map +1 -0
  121. package/dist/network/ManualMutation.d.ts +11 -0
  122. package/dist/network/ManualMutation.d.ts.map +1 -0
  123. package/dist/network/ManualMutation.js +32 -0
  124. package/dist/network/ManualMutation.js.map +1 -0
  125. package/dist/network/ManualOperation.d.ts +13 -0
  126. package/dist/network/ManualOperation.d.ts.map +1 -0
  127. package/dist/network/ManualOperation.js +53 -0
  128. package/dist/network/ManualOperation.js.map +1 -0
  129. package/dist/network/ManualQuery.d.ts +20 -0
  130. package/dist/network/ManualQuery.d.ts.map +1 -0
  131. package/dist/network/ManualQuery.js +77 -0
  132. package/dist/network/ManualQuery.js.map +1 -0
  133. package/dist/network/NetworkClient.d.ts +58 -0
  134. package/dist/network/NetworkClient.d.ts.map +1 -0
  135. package/dist/network/NetworkClient.js +107 -0
  136. package/dist/network/NetworkClient.js.map +1 -0
  137. package/dist/network/ReactQueryNetworkClient.d.ts +78 -0
  138. package/dist/network/ReactQueryNetworkClient.d.ts.map +1 -0
  139. package/dist/network/ReactQueryNetworkClient.js +144 -0
  140. package/dist/network/ReactQueryNetworkClient.js.map +1 -0
  141. package/dist/network/react-query-client.d.ts +6 -0
  142. package/dist/network/react-query-client.d.ts.map +1 -0
  143. package/dist/network/react-query-client.js +6 -0
  144. package/dist/network/react-query-client.js.map +1 -0
  145. package/dist/network/types.d.ts +234 -0
  146. package/dist/network/types.d.ts.map +1 -0
  147. package/dist/network/types.js +2 -0
  148. package/dist/network/types.js.map +1 -0
  149. package/dist/utils/use-extended-list.d.ts +39 -0
  150. package/dist/utils/use-extended-list.d.ts.map +1 -0
  151. package/dist/utils/use-extended-list.js +36 -0
  152. package/dist/utils/use-extended-list.js.map +1 -0
  153. package/package.json +1 -1
  154. package/src/error/DefaultAPIError.ts +2 -3
package/dist/api/ai.js ADDED
@@ -0,0 +1,1342 @@
1
+ /**
2
+ * FastAPI
3
+ * 0.1.0
4
+ * DO NOT MODIFY - This file has been generated using oazapfts.
5
+ * See https://www.npmjs.com/package/oazapfts
6
+ */
7
+ import * as Oazapfts from "@oazapfts/runtime";
8
+ import * as QS from "@oazapfts/runtime/query";
9
+ export const defaults = {
10
+ headers: {},
11
+ baseUrl: "/",
12
+ };
13
+ const oazapfts = Oazapfts.runtime(defaults);
14
+ export const servers = {};
15
+ /**
16
+ * Metrics
17
+ */
18
+ export function metricsMetricsGet(opts) {
19
+ return oazapfts.ok(oazapfts.fetchJson("/metrics", {
20
+ ...opts
21
+ }));
22
+ }
23
+ /**
24
+ * Request Access
25
+ */
26
+ export function requestAccessV1AllowedAccessRequestAccessPost({ authorization, xAccountId }, opts) {
27
+ return oazapfts.ok(oazapfts.fetchJson("/v1/allowed-access/request-access", {
28
+ ...opts,
29
+ method: "POST",
30
+ headers: oazapfts.mergeHeaders(opts?.headers, {
31
+ authorization,
32
+ "x-account-id": xAccountId
33
+ })
34
+ }));
35
+ }
36
+ /**
37
+ * Get By Username
38
+ */
39
+ export function getByUsernameV1AllowedAccessGet({ authorization, xAccountId }, opts) {
40
+ return oazapfts.ok(oazapfts.fetchJson("/v1/allowed-access/", {
41
+ ...opts,
42
+ headers: oazapfts.mergeHeaders(opts?.headers, {
43
+ authorization,
44
+ "x-account-id": xAccountId
45
+ })
46
+ }));
47
+ }
48
+ /**
49
+ * List Ai Stacks By Studio
50
+ */
51
+ export function listAiStacksByStudioV1StudiosStudioIdAiStacksGet({ studioId, authorization, xAccountId }, opts) {
52
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioId)}/ai-stacks`, {
53
+ ...opts,
54
+ headers: oazapfts.mergeHeaders(opts?.headers, {
55
+ authorization,
56
+ "x-account-id": xAccountId
57
+ })
58
+ }));
59
+ }
60
+ /**
61
+ * Create Ai Stack
62
+ */
63
+ export function createAiStackV1StudiosStudioIdAiStacksPost({ studioId, authorization, xAccountId, newAiStackRequest }, opts) {
64
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioId)}/ai-stacks`, oazapfts.json({
65
+ ...opts,
66
+ method: "POST",
67
+ body: newAiStackRequest,
68
+ headers: oazapfts.mergeHeaders(opts?.headers, {
69
+ authorization,
70
+ "x-account-id": xAccountId
71
+ })
72
+ })));
73
+ }
74
+ /**
75
+ * Get Ai Stack
76
+ */
77
+ export function getAiStackV1StudiosStudioIdAiStacksStackIdGet({ studioId, stackId, authorization, xAccountId }, opts) {
78
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioId)}/ai-stacks/${encodeURIComponent(stackId)}`, {
79
+ ...opts,
80
+ headers: oazapfts.mergeHeaders(opts?.headers, {
81
+ authorization,
82
+ "x-account-id": xAccountId
83
+ })
84
+ }));
85
+ }
86
+ /**
87
+ * Remove Ai Stack
88
+ */
89
+ export function removeAiStackV1StudiosStudioIdAiStacksStackIdDelete({ studioId, stackId, authorization, xAccountId }, opts) {
90
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioId)}/ai-stacks/${encodeURIComponent(stackId)}`, {
91
+ ...opts,
92
+ method: "DELETE",
93
+ headers: oazapfts.mergeHeaders(opts?.headers, {
94
+ authorization,
95
+ "x-account-id": xAccountId
96
+ })
97
+ }));
98
+ }
99
+ /**
100
+ * Update Ai Stack
101
+ */
102
+ export function updateAiStackV1StudiosStudioIdAiStacksStackIdPatch({ studioId, stackId, authorization, xAccountId, updateAiStackRequest }, opts) {
103
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioId)}/ai-stacks/${encodeURIComponent(stackId)}`, oazapfts.json({
104
+ ...opts,
105
+ method: "PATCH",
106
+ body: updateAiStackRequest,
107
+ headers: oazapfts.mergeHeaders(opts?.headers, {
108
+ authorization,
109
+ "x-account-id": xAccountId
110
+ })
111
+ })));
112
+ }
113
+ /**
114
+ * Find Knowledge Source Dependencies
115
+ */
116
+ export function findKnowledgeSourceDependenciesV1StudiosStudioIdAiStacksStackIdDependenciesGet({ studioId, stackId, authorization, xAccountId }, opts) {
117
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioId)}/ai-stacks/${encodeURIComponent(stackId)}/dependencies`, {
118
+ ...opts,
119
+ headers: oazapfts.mergeHeaders(opts?.headers, {
120
+ authorization,
121
+ "x-account-id": xAccountId
122
+ })
123
+ }));
124
+ }
125
+ /**
126
+ * Add Ai Stack To Workspace
127
+ */
128
+ export function addAiStackToWorkspaceV1WorkspacesWorkspaceIdAddAiStackPost({ workspaceId, authorization, xAccountId, addAiStackToWorkspaceRequest }, opts) {
129
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/add-ai-stack`, oazapfts.json({
130
+ ...opts,
131
+ method: "POST",
132
+ body: addAiStackToWorkspaceRequest,
133
+ headers: oazapfts.mergeHeaders(opts?.headers, {
134
+ authorization,
135
+ "x-account-id": xAccountId
136
+ })
137
+ })));
138
+ }
139
+ /**
140
+ * List Ai Stacks From Workspace
141
+ */
142
+ export function listAiStacksFromWorkspaceV1WorkspacesWorkspaceIdAiStacksGet({ workspaceId, authorization, xAccountId }, opts) {
143
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/ai-stacks`, {
144
+ ...opts,
145
+ headers: oazapfts.mergeHeaders(opts?.headers, {
146
+ authorization,
147
+ "x-account-id": xAccountId
148
+ })
149
+ }));
150
+ }
151
+ /**
152
+ * Find Ai Stack In Workspace
153
+ */
154
+ export function findAiStackInWorkspaceV1WorkspacesWorkspaceIdAiStacksStackIdGet({ workspaceId, stackId, authorization, xAccountId }, opts) {
155
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/ai-stacks/${encodeURIComponent(stackId)}`, {
156
+ ...opts,
157
+ headers: oazapfts.mergeHeaders(opts?.headers, {
158
+ authorization,
159
+ "x-account-id": xAccountId
160
+ })
161
+ }));
162
+ }
163
+ /**
164
+ * Remove Ai Stack From Workspace
165
+ */
166
+ export function removeAiStackFromWorkspaceV1WorkspacesWorkspaceIdAiStacksStackIdDelete({ workspaceId, stackId, authorization, xAccountId }, opts) {
167
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/ai-stacks/${encodeURIComponent(stackId)}`, {
168
+ ...opts,
169
+ method: "DELETE",
170
+ headers: oazapfts.mergeHeaders(opts?.headers, {
171
+ authorization,
172
+ "x-account-id": xAccountId
173
+ })
174
+ }));
175
+ }
176
+ /**
177
+ * List Ai Stacks
178
+ */
179
+ export function listAiStacksV1AiStacksGet({ visibility, order, authorization, xAccountId }, opts) {
180
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/ai-stacks${QS.query(QS.explode({
181
+ visibility,
182
+ order
183
+ }))}`, {
184
+ ...opts,
185
+ headers: oazapfts.mergeHeaders(opts?.headers, {
186
+ authorization,
187
+ "x-account-id": xAccountId
188
+ })
189
+ }));
190
+ }
191
+ /**
192
+ * Create Ai Stack
193
+ */
194
+ export function createAiStackV1AiStacksPost({ authorization, xAccountId, newAiStackRequest }, opts) {
195
+ return oazapfts.ok(oazapfts.fetchJson("/v1/ai-stacks", oazapfts.json({
196
+ ...opts,
197
+ method: "POST",
198
+ body: newAiStackRequest,
199
+ headers: oazapfts.mergeHeaders(opts?.headers, {
200
+ authorization,
201
+ "x-account-id": xAccountId
202
+ })
203
+ })));
204
+ }
205
+ /**
206
+ * Get Ai Stack
207
+ */
208
+ export function getAiStackV1AiStacksStackIdGet({ stackId, authorization, xAccountId }, opts) {
209
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/ai-stacks/${encodeURIComponent(stackId)}`, {
210
+ ...opts,
211
+ headers: oazapfts.mergeHeaders(opts?.headers, {
212
+ authorization,
213
+ "x-account-id": xAccountId
214
+ })
215
+ }));
216
+ }
217
+ /**
218
+ * Remove Ai Stack
219
+ */
220
+ export function removeAiStackV1AiStacksStackIdDelete({ stackId, authorization, xAccountId }, opts) {
221
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/ai-stacks/${encodeURIComponent(stackId)}`, {
222
+ ...opts,
223
+ method: "DELETE",
224
+ headers: oazapfts.mergeHeaders(opts?.headers, {
225
+ authorization,
226
+ "x-account-id": xAccountId
227
+ })
228
+ }));
229
+ }
230
+ /**
231
+ * Update Ai Stack
232
+ */
233
+ export function updateAiStackV1AiStacksStackIdPatch({ stackId, authorization, xAccountId, updateAiStackRequest }, opts) {
234
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/ai-stacks/${encodeURIComponent(stackId)}`, oazapfts.json({
235
+ ...opts,
236
+ method: "PATCH",
237
+ body: updateAiStackRequest,
238
+ headers: oazapfts.mergeHeaders(opts?.headers, {
239
+ authorization,
240
+ "x-account-id": xAccountId
241
+ })
242
+ })));
243
+ }
244
+ /**
245
+ * Fork
246
+ */
247
+ export function forkV1AiStacksStackIdForkPost({ stackId, authorization, xAccountId, aiStackForkRequest }, opts) {
248
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/ai-stacks/${encodeURIComponent(stackId)}/fork`, oazapfts.json({
249
+ ...opts,
250
+ method: "POST",
251
+ body: aiStackForkRequest,
252
+ headers: oazapfts.mergeHeaders(opts?.headers, {
253
+ authorization,
254
+ "x-account-id": xAccountId
255
+ })
256
+ })));
257
+ }
258
+ /**
259
+ * Share
260
+ */
261
+ export function shareV1AiStacksStackIdSharePost({ stackId, authorization, xAccountId, shareContentRequest }, opts) {
262
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/ai-stacks/${encodeURIComponent(stackId)}/share`, oazapfts.json({
263
+ ...opts,
264
+ method: "POST",
265
+ body: shareContentRequest,
266
+ headers: oazapfts.mergeHeaders(opts?.headers, {
267
+ authorization,
268
+ "x-account-id": xAccountId
269
+ })
270
+ })));
271
+ }
272
+ /**
273
+ * Project Files
274
+ */
275
+ export function projectFilesV1ProjectFilesPost({ authorization, xAccountId, newProjectFilesRequest }, opts) {
276
+ return oazapfts.ok(oazapfts.fetchJson("/v1/project-files", oazapfts.json({
277
+ ...opts,
278
+ method: "POST",
279
+ body: newProjectFilesRequest,
280
+ headers: oazapfts.mergeHeaders(opts?.headers, {
281
+ authorization,
282
+ "x-account-id": xAccountId
283
+ })
284
+ })));
285
+ }
286
+ /**
287
+ * Code Understanding Assistant
288
+ */
289
+ export function codeUnderstandingAssistantV1CodeUnderstandingAssistantPost({ authorization, xAccountId, codeUnderstandingRequest }, opts) {
290
+ return oazapfts.ok(oazapfts.fetchJson("/v1/code-understanding-assistant", oazapfts.json({
291
+ ...opts,
292
+ method: "POST",
293
+ body: codeUnderstandingRequest,
294
+ headers: oazapfts.mergeHeaders(opts?.headers, {
295
+ authorization,
296
+ "x-account-id": xAccountId
297
+ })
298
+ })));
299
+ }
300
+ /**
301
+ * Code Scan
302
+ */
303
+ export function codeScanV1CodeScanPost({ authorization, xAccountId, codeScanRequest }, opts) {
304
+ return oazapfts.ok(oazapfts.fetchJson("/v1/code-scan", oazapfts.json({
305
+ ...opts,
306
+ method: "POST",
307
+ body: codeScanRequest,
308
+ headers: oazapfts.mergeHeaders(opts?.headers, {
309
+ authorization,
310
+ "x-account-id": xAccountId
311
+ })
312
+ })));
313
+ }
314
+ /**
315
+ * Quick Actions
316
+ */
317
+ export function quickActionsV1QuickActionsPost({ authorization, xAccountId, quickActionsRequest }, opts) {
318
+ return oazapfts.ok(oazapfts.fetchJson("/v1/quick-actions", oazapfts.json({
319
+ ...opts,
320
+ method: "POST",
321
+ body: quickActionsRequest,
322
+ headers: oazapfts.mergeHeaders(opts?.headers, {
323
+ authorization,
324
+ "x-account-id": xAccountId
325
+ })
326
+ })));
327
+ }
328
+ /**
329
+ * Dev Assistant
330
+ */
331
+ export function devAssistantV1ChatPost({ authorization, xAccountId, codeBuddyApiV1SchemasChatRequest }, opts) {
332
+ return oazapfts.ok(oazapfts.fetchJson("/v1/chat", oazapfts.json({
333
+ ...opts,
334
+ method: "POST",
335
+ body: codeBuddyApiV1SchemasChatRequest,
336
+ headers: oazapfts.mergeHeaders(opts?.headers, {
337
+ authorization,
338
+ "x-account-id": xAccountId
339
+ })
340
+ })));
341
+ }
342
+ /**
343
+ * Autocomplete Code Generator
344
+ */
345
+ export function autocompleteCodeGeneratorV1AutocompletePost({ authorization, xAccountId, autocompleteCodeGeneratorRequest }, opts) {
346
+ return oazapfts.ok(oazapfts.fetchJson("/v1/autocomplete", oazapfts.json({
347
+ ...opts,
348
+ method: "POST",
349
+ body: autocompleteCodeGeneratorRequest,
350
+ headers: oazapfts.mergeHeaders(opts?.headers, {
351
+ authorization,
352
+ "x-account-id": xAccountId
353
+ })
354
+ })));
355
+ }
356
+ /**
357
+ * Post Event
358
+ */
359
+ export function postEventV1EventsPost({ authorization, xAccountId, body }, opts) {
360
+ return oazapfts.ok(oazapfts.fetchJson("/v1/events", oazapfts.json({
361
+ ...opts,
362
+ method: "POST",
363
+ body,
364
+ headers: oazapfts.mergeHeaders(opts?.headers, {
365
+ authorization,
366
+ "x-account-id": xAccountId
367
+ })
368
+ })));
369
+ }
370
+ /**
371
+ * Get Upload Url
372
+ */
373
+ export function getUploadUrlV1FileUploadUrlPost({ authorization, xAccountId, newFileUploadUrlRequest }, opts) {
374
+ return oazapfts.ok(oazapfts.fetchJson("/v1/file-upload/url", oazapfts.json({
375
+ ...opts,
376
+ method: "POST",
377
+ body: newFileUploadUrlRequest,
378
+ headers: oazapfts.mergeHeaders(opts?.headers, {
379
+ authorization,
380
+ "x-account-id": xAccountId
381
+ })
382
+ })));
383
+ }
384
+ /**
385
+ * Get Upload Form
386
+ */
387
+ export function getUploadFormV1FileUploadFormPost({ authorization, xAccountId, newFileUploadUrlRequest }, opts) {
388
+ return oazapfts.ok(oazapfts.fetchJson("/v1/file-upload/form", oazapfts.json({
389
+ ...opts,
390
+ method: "POST",
391
+ body: newFileUploadUrlRequest,
392
+ headers: oazapfts.mergeHeaders(opts?.headers, {
393
+ authorization,
394
+ "x-account-id": xAccountId
395
+ })
396
+ })));
397
+ }
398
+ /**
399
+ * Get File Upload Status
400
+ */
401
+ export function getFileUploadStatusV1FileUploadFileUploadIdGet({ fileUploadId, authorization, xAccountId }, opts) {
402
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/file-upload/${encodeURIComponent(fileUploadId)}`, {
403
+ ...opts,
404
+ headers: oazapfts.mergeHeaders(opts?.headers, {
405
+ authorization,
406
+ "x-account-id": xAccountId
407
+ })
408
+ }));
409
+ }
410
+ /**
411
+ * Report Health
412
+ */
413
+ export function reportHealthHealthzGet(opts) {
414
+ return oazapfts.ok(oazapfts.fetchJson("/healthz", {
415
+ ...opts
416
+ }));
417
+ }
418
+ /**
419
+ * List Knowledge Sources
420
+ */
421
+ export function listKnowledgeSourcesV1KnowledgeSourcesGet({ visibility, order, $default, types, authorization, xAccountId }, opts) {
422
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources${QS.query(QS.explode({
423
+ visibility,
424
+ order,
425
+ "default": $default,
426
+ types
427
+ }))}`, {
428
+ ...opts,
429
+ headers: oazapfts.mergeHeaders(opts?.headers, {
430
+ authorization,
431
+ "x-account-id": xAccountId
432
+ })
433
+ }));
434
+ }
435
+ /**
436
+ * Create Knowledge Source
437
+ */
438
+ export function createKnowledgeSourceV1KnowledgeSourcesPost({ authorization, xAccountId, newKnowledgeSourceRequest }, opts) {
439
+ return oazapfts.ok(oazapfts.fetchJson("/v1/knowledge-sources", oazapfts.json({
440
+ ...opts,
441
+ method: "POST",
442
+ body: newKnowledgeSourceRequest,
443
+ headers: oazapfts.mergeHeaders(opts?.headers, {
444
+ authorization,
445
+ "x-account-id": xAccountId
446
+ })
447
+ })));
448
+ }
449
+ /**
450
+ * Find Knowledge Source
451
+ */
452
+ export function findKnowledgeSourceV1KnowledgeSourcesSlugGet({ slug, authorization, xAccountId }, opts) {
453
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources/${encodeURIComponent(slug)}`, {
454
+ ...opts,
455
+ headers: oazapfts.mergeHeaders(opts?.headers, {
456
+ authorization,
457
+ "x-account-id": xAccountId
458
+ })
459
+ }));
460
+ }
461
+ /**
462
+ * Delete Knowledge Source
463
+ */
464
+ export function deleteKnowledgeSourceV1KnowledgeSourcesSlugDelete({ slug, authorization, xAccountId }, opts) {
465
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources/${encodeURIComponent(slug)}`, {
466
+ ...opts,
467
+ method: "DELETE",
468
+ headers: oazapfts.mergeHeaders(opts?.headers, {
469
+ authorization,
470
+ "x-account-id": xAccountId
471
+ })
472
+ }));
473
+ }
474
+ /**
475
+ * Update Knowledge Source
476
+ */
477
+ export function updateKnowledgeSourceV1KnowledgeSourcesSlugPatch({ slug, authorization, xAccountId, knowledgeSourcePatchesRequest }, opts) {
478
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources/${encodeURIComponent(slug)}`, oazapfts.json({
479
+ ...opts,
480
+ method: "PATCH",
481
+ body: knowledgeSourcePatchesRequest,
482
+ headers: oazapfts.mergeHeaders(opts?.headers, {
483
+ authorization,
484
+ "x-account-id": xAccountId
485
+ })
486
+ })));
487
+ }
488
+ /**
489
+ * Find Knowledge Source Dependencies
490
+ */
491
+ export function findKnowledgeSourceDependenciesV1KnowledgeSourcesSlugDependenciesGet({ slug, authorization, xAccountId }, opts) {
492
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources/${encodeURIComponent(slug)}/dependencies`, {
493
+ ...opts,
494
+ headers: oazapfts.mergeHeaders(opts?.headers, {
495
+ authorization,
496
+ "x-account-id": xAccountId
497
+ })
498
+ }));
499
+ }
500
+ /**
501
+ * Search
502
+ */
503
+ export function searchV1KnowledgeSourcesSlugSimilaritySearchGet({ slug, q, size, authorization, xAccountId }, opts) {
504
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources/${encodeURIComponent(slug)}/similarity-search${QS.query(QS.explode({
505
+ q,
506
+ size
507
+ }))}`, {
508
+ ...opts,
509
+ headers: oazapfts.mergeHeaders(opts?.headers, {
510
+ authorization,
511
+ "x-account-id": xAccountId
512
+ })
513
+ }));
514
+ }
515
+ /**
516
+ * Share Knowledge Source
517
+ */
518
+ export function shareKnowledgeSourceV1KnowledgeSourcesSlugSharePost({ slug, authorization, xAccountId }, opts) {
519
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources/${encodeURIComponent(slug)}/share`, {
520
+ ...opts,
521
+ method: "POST",
522
+ headers: oazapfts.mergeHeaders(opts?.headers, {
523
+ authorization,
524
+ "x-account-id": xAccountId
525
+ })
526
+ }));
527
+ }
528
+ /**
529
+ * Configure Knowledge Source Default Flag
530
+ */
531
+ export function configureKnowledgeSourceDefaultFlagV1KnowledgeSourcesSlugDefaultPut({ slug, value, authorization, xAccountId }, opts) {
532
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources/${encodeURIComponent(slug)}/default${QS.query(QS.explode({
533
+ value
534
+ }))}`, {
535
+ ...opts,
536
+ method: "PUT",
537
+ headers: oazapfts.mergeHeaders(opts?.headers, {
538
+ authorization,
539
+ "x-account-id": xAccountId
540
+ })
541
+ }));
542
+ }
543
+ /**
544
+ * Fork Knowledge Source
545
+ */
546
+ export function forkKnowledgeSourceV1KnowledgeSourcesSlugForkPost({ slug, authorization, xAccountId, forkKnowledgeSourceRequest }, opts) {
547
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources/${encodeURIComponent(slug)}/fork`, oazapfts.json({
548
+ ...opts,
549
+ method: "POST",
550
+ body: forkKnowledgeSourceRequest,
551
+ headers: oazapfts.mergeHeaders(opts?.headers, {
552
+ authorization,
553
+ "x-account-id": xAccountId
554
+ })
555
+ })));
556
+ }
557
+ /**
558
+ * List Knowledge Objects
559
+ */
560
+ export function listKnowledgeObjectsV1KnowledgeSourcesSlugObjectsGet({ slug, standalone, authorization, xAccountId }, opts) {
561
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources/${encodeURIComponent(slug)}/objects${QS.query(QS.explode({
562
+ standalone
563
+ }))}`, {
564
+ ...opts,
565
+ headers: oazapfts.mergeHeaders(opts?.headers, {
566
+ authorization,
567
+ "x-account-id": xAccountId
568
+ })
569
+ }));
570
+ }
571
+ /**
572
+ * Vectorize Objects From File
573
+ */
574
+ export function vectorizeObjectsFromFileV1KnowledgeSourcesSlugObjectsPost({ slug, authorization, xAccountId, bodyVectorizeObjectsFromFileV1KnowledgeSourcesSlugObjectsPost }, opts) {
575
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources/${encodeURIComponent(slug)}/objects`, oazapfts.multipart({
576
+ ...opts,
577
+ method: "POST",
578
+ body: bodyVectorizeObjectsFromFileV1KnowledgeSourcesSlugObjectsPost,
579
+ headers: oazapfts.mergeHeaders(opts?.headers, {
580
+ authorization,
581
+ "x-account-id": xAccountId
582
+ })
583
+ })));
584
+ }
585
+ /**
586
+ * Reset Knowledge Objects
587
+ */
588
+ export function resetKnowledgeObjectsV1KnowledgeSourcesSlugObjectsDelete({ slug, standalone, authorization, xAccountId }, opts) {
589
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources/${encodeURIComponent(slug)}/objects${QS.query(QS.explode({
590
+ standalone
591
+ }))}`, {
592
+ ...opts,
593
+ method: "DELETE",
594
+ headers: oazapfts.mergeHeaders(opts?.headers, {
595
+ authorization,
596
+ "x-account-id": xAccountId
597
+ })
598
+ }));
599
+ }
600
+ /**
601
+ * Upload Knowledge Objects Zip
602
+ */
603
+ export function uploadKnowledgeObjectsZipV1KnowledgeSourcesSlugObjectsBatchPost({ slug, autoDelete, authorization, xAccountId, bodyUploadKnowledgeObjectsZipV1KnowledgeSourcesSlugObjectsBatchPost }, opts) {
604
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources/${encodeURIComponent(slug)}/objects/batch${QS.query(QS.explode({
605
+ "auto-delete": autoDelete
606
+ }))}`, oazapfts.multipart({
607
+ ...opts,
608
+ method: "POST",
609
+ body: bodyUploadKnowledgeObjectsZipV1KnowledgeSourcesSlugObjectsBatchPost,
610
+ headers: oazapfts.mergeHeaders(opts?.headers, {
611
+ authorization,
612
+ "x-account-id": xAccountId
613
+ })
614
+ })));
615
+ }
616
+ /**
617
+ * Find Knowledge Object By Custom Id
618
+ */
619
+ export function findKnowledgeObjectByCustomIdV1KnowledgeSourcesSlugObjectsCustomIdGet({ slug, customId, authorization, xAccountId }, opts) {
620
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources/${encodeURIComponent(slug)}/objects/${encodeURIComponent(customId)}`, {
621
+ ...opts,
622
+ headers: oazapfts.mergeHeaders(opts?.headers, {
623
+ authorization,
624
+ "x-account-id": xAccountId
625
+ })
626
+ }));
627
+ }
628
+ /**
629
+ * Delete Knowledge Object By Custom Id
630
+ */
631
+ export function deleteKnowledgeObjectByCustomIdV1KnowledgeSourcesSlugObjectsCustomIdDelete({ customId, slug, authorization, xAccountId }, opts) {
632
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources/${encodeURIComponent(slug)}/objects/${encodeURIComponent(customId)}`, {
633
+ ...opts,
634
+ method: "DELETE",
635
+ headers: oazapfts.mergeHeaders(opts?.headers, {
636
+ authorization,
637
+ "x-account-id": xAccountId
638
+ })
639
+ }));
640
+ }
641
+ /**
642
+ * Find Snippet Doc By Custom Id
643
+ */
644
+ export function findSnippetDocByCustomIdV1KnowledgeSourcesSlugSnippetsIdGet({ slug, id, authorization, xAccountId }, opts) {
645
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources/${encodeURIComponent(slug)}/snippets/${encodeURIComponent(id)}`, {
646
+ ...opts,
647
+ headers: oazapfts.mergeHeaders(opts?.headers, {
648
+ authorization,
649
+ "x-account-id": xAccountId
650
+ })
651
+ }));
652
+ }
653
+ /**
654
+ * Vectorize Snippet Knowledge Source
655
+ */
656
+ export function vectorizeSnippetKnowledgeSourceV1KnowledgeSourcesSlugSnippetsPost({ slug, authorization, xAccountId, snippetKnowledgeSourceRequest }, opts) {
657
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources/${encodeURIComponent(slug)}/snippets`, oazapfts.json({
658
+ ...opts,
659
+ method: "POST",
660
+ body: snippetKnowledgeSourceRequest,
661
+ headers: oazapfts.mergeHeaders(opts?.headers, {
662
+ authorization,
663
+ "x-account-id": xAccountId
664
+ })
665
+ })));
666
+ }
667
+ /**
668
+ * Find Api Doc By Custom Id
669
+ */
670
+ export function findApiDocByCustomIdV1KnowledgeSourcesSlugApisIdGet({ slug, id, authorization, xAccountId }, opts) {
671
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources/${encodeURIComponent(slug)}/apis/${encodeURIComponent(id)}`, {
672
+ ...opts,
673
+ headers: oazapfts.mergeHeaders(opts?.headers, {
674
+ authorization,
675
+ "x-account-id": xAccountId
676
+ })
677
+ }));
678
+ }
679
+ /**
680
+ * Vectorize Api Knowledge Source
681
+ */
682
+ export function vectorizeApiKnowledgeSourceV1KnowledgeSourcesSlugApisPost({ slug, authorization, xAccountId, body }, opts) {
683
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources/${encodeURIComponent(slug)}/apis`, oazapfts.json({
684
+ ...opts,
685
+ method: "POST",
686
+ body,
687
+ headers: oazapfts.mergeHeaders(opts?.headers, {
688
+ authorization,
689
+ "x-account-id": xAccountId
690
+ })
691
+ })));
692
+ }
693
+ /**
694
+ * Find Event Doc By Custom Id
695
+ */
696
+ export function findEventDocByCustomIdV1KnowledgeSourcesSlugEventsIdGet({ slug, id, authorization, xAccountId }, opts) {
697
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources/${encodeURIComponent(slug)}/events/${encodeURIComponent(id)}`, {
698
+ ...opts,
699
+ headers: oazapfts.mergeHeaders(opts?.headers, {
700
+ authorization,
701
+ "x-account-id": xAccountId
702
+ })
703
+ }));
704
+ }
705
+ /**
706
+ * Vectorize Event Knowledge Source
707
+ */
708
+ export function vectorizeEventKnowledgeSourceV1KnowledgeSourcesSlugEventsPost({ slug, authorization, xAccountId, body }, opts) {
709
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources/${encodeURIComponent(slug)}/events`, oazapfts.json({
710
+ ...opts,
711
+ method: "POST",
712
+ body,
713
+ headers: oazapfts.mergeHeaders(opts?.headers, {
714
+ authorization,
715
+ "x-account-id": xAccountId
716
+ })
717
+ })));
718
+ }
719
+ /**
720
+ * Find Custom Doc By Custom Id
721
+ */
722
+ export function findCustomDocByCustomIdV1KnowledgeSourcesSlugCustomIdGet({ slug, id, authorization, xAccountId }, opts) {
723
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources/${encodeURIComponent(slug)}/custom/${encodeURIComponent(id)}`, {
724
+ ...opts,
725
+ headers: oazapfts.mergeHeaders(opts?.headers, {
726
+ authorization,
727
+ "x-account-id": xAccountId
728
+ })
729
+ }));
730
+ }
731
+ /**
732
+ * Vectorize Custom Knowledge Source
733
+ */
734
+ export function vectorizeCustomKnowledgeSourceV1KnowledgeSourcesSlugCustomPost({ slug, authorization, xAccountId, customKnowledgeSourceRequest }, opts) {
735
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources/${encodeURIComponent(slug)}/custom`, oazapfts.json({
736
+ ...opts,
737
+ method: "POST",
738
+ body: customKnowledgeSourceRequest,
739
+ headers: oazapfts.mergeHeaders(opts?.headers, {
740
+ authorization,
741
+ "x-account-id": xAccountId
742
+ })
743
+ })));
744
+ }
745
+ /**
746
+ * Sync Embedding Model
747
+ */
748
+ export function syncEmbeddingModelV1KnowledgeSourcesSyncPost(opts) {
749
+ return oazapfts.ok(oazapfts.fetchJson("/v1/knowledge-sources/sync", {
750
+ ...opts,
751
+ method: "POST"
752
+ }));
753
+ }
754
+ /**
755
+ * Change Llm
756
+ */
757
+ export function changeLlmV1AccountsLlmPatch({ authorization, xAccountId, accountSettingsChangeLlmRequest }, opts) {
758
+ return oazapfts.ok(oazapfts.fetchJson("/v1/accounts/llm", oazapfts.json({
759
+ ...opts,
760
+ method: "PATCH",
761
+ body: accountSettingsChangeLlmRequest,
762
+ headers: oazapfts.mergeHeaders(opts?.headers, {
763
+ authorization,
764
+ "x-account-id": xAccountId
765
+ })
766
+ })));
767
+ }
768
+ /**
769
+ * Change Limit
770
+ */
771
+ export function changeLimitV1AccountsTokenLimitsPut({ authorization, xAccountId, accountSettingsChangeLimitRequest }, opts) {
772
+ return oazapfts.ok(oazapfts.fetchJson("/v1/accounts/token-limits", oazapfts.json({
773
+ ...opts,
774
+ method: "PUT",
775
+ body: accountSettingsChangeLimitRequest,
776
+ headers: oazapfts.mergeHeaders(opts?.headers, {
777
+ authorization,
778
+ "x-account-id": xAccountId
779
+ })
780
+ })));
781
+ }
782
+ /**
783
+ * Reset Limit
784
+ */
785
+ export function resetLimitV1AccountsTokenLimitsDelete({ authorization, xAccountId }, opts) {
786
+ return oazapfts.ok(oazapfts.fetchJson("/v1/accounts/token-limits", {
787
+ ...opts,
788
+ method: "DELETE",
789
+ headers: oazapfts.mergeHeaders(opts?.headers, {
790
+ authorization,
791
+ "x-account-id": xAccountId
792
+ })
793
+ }));
794
+ }
795
+ /**
796
+ * Current
797
+ */
798
+ export function currentV1TokensUsageCurrentGet({ year, month, authorization, xAccountId }, opts) {
799
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/tokens-usage/current${QS.query(QS.explode({
800
+ year,
801
+ month
802
+ }))}`, {
803
+ ...opts,
804
+ headers: oazapfts.mergeHeaders(opts?.headers, {
805
+ authorization,
806
+ "x-account-id": xAccountId
807
+ })
808
+ }));
809
+ }
810
+ /**
811
+ * Monthly
812
+ */
813
+ export function monthlyV1TokensUsageMonthlyGet({ year, authorization, xAccountId }, opts) {
814
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/tokens-usage/monthly${QS.query(QS.explode({
815
+ year
816
+ }))}`, {
817
+ ...opts,
818
+ headers: oazapfts.mergeHeaders(opts?.headers, {
819
+ authorization,
820
+ "x-account-id": xAccountId
821
+ })
822
+ }));
823
+ }
824
+ /**
825
+ * Top Users
826
+ */
827
+ export function topUsersV1TokensUsageTopUsersGet({ year, month, authorization, xAccountId }, opts) {
828
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/tokens-usage/top-users${QS.query(QS.explode({
829
+ year,
830
+ month
831
+ }))}`, {
832
+ ...opts,
833
+ headers: oazapfts.mergeHeaders(opts?.headers, {
834
+ authorization,
835
+ "x-account-id": xAccountId
836
+ })
837
+ }));
838
+ }
839
+ /**
840
+ * List Association
841
+ */
842
+ export function listAssociationV1WorkspaceWorkspaceIdGet({ workspaceId, authorization, xAccountId }, opts) {
843
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/workspace/${encodeURIComponent(workspaceId)}`, {
844
+ ...opts,
845
+ headers: oazapfts.mergeHeaders(opts?.headers, {
846
+ authorization,
847
+ "x-account-id": xAccountId
848
+ })
849
+ }));
850
+ }
851
+ /**
852
+ * Add Association
853
+ */
854
+ export function addAssociationV1WorkspaceWorkspaceIdPost({ workspaceId, authorization, xAccountId, addWorkspaceKnowledgeSourceRequest }, opts) {
855
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/workspace/${encodeURIComponent(workspaceId)}`, oazapfts.json({
856
+ ...opts,
857
+ method: "POST",
858
+ body: addWorkspaceKnowledgeSourceRequest,
859
+ headers: oazapfts.mergeHeaders(opts?.headers, {
860
+ authorization,
861
+ "x-account-id": xAccountId
862
+ })
863
+ })));
864
+ }
865
+ /**
866
+ * Delete Association
867
+ */
868
+ export function deleteAssociationV1WorkspaceWorkspaceIdKnowledgeSourceKnowledgeSourceSlugDelete({ workspaceId, knowledgeSourceSlug, authorization, xAccountId }, opts) {
869
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/workspace/${encodeURIComponent(workspaceId)}/knowledge_source/${encodeURIComponent(knowledgeSourceSlug)}`, {
870
+ ...opts,
871
+ method: "DELETE",
872
+ headers: oazapfts.mergeHeaders(opts?.headers, {
873
+ authorization,
874
+ "x-account-id": xAccountId
875
+ })
876
+ }));
877
+ }
878
+ /**
879
+ * Create Quick Command
880
+ */
881
+ export function createQuickCommandV1QuickCommandsPost({ authorization, xAccountId, quickCommandsCreateRequest }, opts) {
882
+ return oazapfts.ok(oazapfts.fetchJson("/v1/quick-commands", oazapfts.json({
883
+ ...opts,
884
+ method: "POST",
885
+ body: quickCommandsCreateRequest,
886
+ headers: oazapfts.mergeHeaders(opts?.headers, {
887
+ authorization,
888
+ "x-account-id": xAccountId
889
+ })
890
+ })));
891
+ }
892
+ /**
893
+ * List All
894
+ */
895
+ export function listAllV1QuickCommandsAllGet({ visibility, order, workspaceId, types, authorization, xAccountId }, opts) {
896
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/all${QS.query(QS.explode({
897
+ visibility,
898
+ order,
899
+ workspace_id: workspaceId,
900
+ types
901
+ }))}`, {
902
+ ...opts,
903
+ headers: oazapfts.mergeHeaders(opts?.headers, {
904
+ authorization,
905
+ "x-account-id": xAccountId
906
+ })
907
+ }));
908
+ }
909
+ /**
910
+ * List All Deprecated
911
+ */
912
+ export function listAllDeprecatedV1QuickCommandsAllPost({ origin, authorization, xAccountId, baseContextualRequest }, opts) {
913
+ return oazapfts.ok(oazapfts.fetchJson("/v1/quick-commands/all", oazapfts.json({
914
+ ...opts,
915
+ method: "POST",
916
+ body: baseContextualRequest,
917
+ headers: oazapfts.mergeHeaders(opts?.headers, {
918
+ origin,
919
+ authorization,
920
+ "x-account-id": xAccountId
921
+ })
922
+ })));
923
+ }
924
+ /**
925
+ * Get Quick Command
926
+ */
927
+ export function getQuickCommandV1QuickCommandsSlugGet({ slug, authorization, xAccountId }, opts) {
928
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/${encodeURIComponent(slug)}`, {
929
+ ...opts,
930
+ headers: oazapfts.mergeHeaders(opts?.headers, {
931
+ authorization,
932
+ "x-account-id": xAccountId
933
+ })
934
+ }));
935
+ }
936
+ /**
937
+ * Delete Quick Command
938
+ */
939
+ export function deleteQuickCommandV1QuickCommandsSlugDelete({ slug, authorization, xAccountId }, opts) {
940
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/${encodeURIComponent(slug)}`, {
941
+ ...opts,
942
+ method: "DELETE",
943
+ headers: oazapfts.mergeHeaders(opts?.headers, {
944
+ authorization,
945
+ "x-account-id": xAccountId
946
+ })
947
+ }));
948
+ }
949
+ /**
950
+ * Update Quick Command
951
+ */
952
+ export function updateQuickCommandV1QuickCommandsSlugPatch({ slug, authorization, xAccountId, quickCommandsUpdateRequest }, opts) {
953
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/${encodeURIComponent(slug)}`, oazapfts.json({
954
+ ...opts,
955
+ method: "PATCH",
956
+ body: quickCommandsUpdateRequest,
957
+ headers: oazapfts.mergeHeaders(opts?.headers, {
958
+ authorization,
959
+ "x-account-id": xAccountId
960
+ })
961
+ })));
962
+ }
963
+ /**
964
+ * Share
965
+ */
966
+ export function shareV1QuickCommandsSlugSharePost({ slug, authorization, xAccountId, shareContentRequest }, opts) {
967
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/${encodeURIComponent(slug)}/share`, oazapfts.json({
968
+ ...opts,
969
+ method: "POST",
970
+ body: shareContentRequest,
971
+ headers: oazapfts.mergeHeaders(opts?.headers, {
972
+ authorization,
973
+ "x-account-id": xAccountId
974
+ })
975
+ })));
976
+ }
977
+ /**
978
+ * Fork
979
+ */
980
+ export function forkV1QuickCommandsSlugForkPost({ slug, authorization, xAccountId, quickCommandsMakeACopyRequest }, opts) {
981
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/${encodeURIComponent(slug)}/fork`, oazapfts.json({
982
+ ...opts,
983
+ method: "POST",
984
+ body: quickCommandsMakeACopyRequest,
985
+ headers: oazapfts.mergeHeaders(opts?.headers, {
986
+ authorization,
987
+ "x-account-id": xAccountId
988
+ })
989
+ })));
990
+ }
991
+ /**
992
+ * Get Quick Command By Ks Slug
993
+ */
994
+ export function getQuickCommandByKsSlugV1QuickCommandsKnowledgeSourcesSlugGet({ slug, authorization, xAccountId }, opts) {
995
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/knowledge-sources/${encodeURIComponent(slug)}`, {
996
+ ...opts,
997
+ headers: oazapfts.mergeHeaders(opts?.headers, {
998
+ authorization,
999
+ "x-account-id": xAccountId
1000
+ })
1001
+ }));
1002
+ }
1003
+ /**
1004
+ * List By Workspace Id
1005
+ */
1006
+ export function listByWorkspaceIdV1QuickCommandsWorkspacesWorkspaceIdGet({ workspaceId, authorization, xAccountId }, opts) {
1007
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/workspaces/${encodeURIComponent(workspaceId)}`, {
1008
+ ...opts,
1009
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1010
+ authorization,
1011
+ "x-account-id": xAccountId
1012
+ })
1013
+ }));
1014
+ }
1015
+ /**
1016
+ * Dependencies
1017
+ */
1018
+ export function dependenciesV1QuickCommandsSlugDependenciesGet({ slug, authorization, xAccountId }, opts) {
1019
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/${encodeURIComponent(slug)}/dependencies`, {
1020
+ ...opts,
1021
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1022
+ authorization,
1023
+ "x-account-id": xAccountId
1024
+ })
1025
+ }));
1026
+ }
1027
+ /**
1028
+ * Quick Commands Run
1029
+ */
1030
+ export function quickCommandsRunV1QuickCommandsSlugStepsStepSlugRunPost({ slug, stepSlug, authorization, xAccountId, quickCommandsExecutionRequest }, opts) {
1031
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/${encodeURIComponent(slug)}/steps/${encodeURIComponent(stepSlug)}/run`, oazapfts.json({
1032
+ ...opts,
1033
+ method: "POST",
1034
+ body: quickCommandsExecutionRequest,
1035
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1036
+ authorization,
1037
+ "x-account-id": xAccountId
1038
+ })
1039
+ })));
1040
+ }
1041
+ /**
1042
+ * Format Fetch Step
1043
+ */
1044
+ export function formatFetchStepV1QuickCommandsSlugStepsStepSlugFetchFormatPost({ slug, stepSlug, authorization, xAccountId, quickCommandsExecutionRequest }, opts) {
1045
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/${encodeURIComponent(slug)}/steps/${encodeURIComponent(stepSlug)}/fetch_format`, oazapfts.json({
1046
+ ...opts,
1047
+ method: "POST",
1048
+ body: quickCommandsExecutionRequest,
1049
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1050
+ authorization,
1051
+ "x-account-id": xAccountId
1052
+ })
1053
+ })));
1054
+ }
1055
+ /**
1056
+ * Format Result
1057
+ */
1058
+ export function formatResultV1QuickCommandsSlugResultFormatPost({ slug, authorization, xAccountId, quickCommandsExecutionRequest }, opts) {
1059
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/${encodeURIComponent(slug)}/result_format`, oazapfts.json({
1060
+ ...opts,
1061
+ method: "POST",
1062
+ body: quickCommandsExecutionRequest,
1063
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1064
+ authorization,
1065
+ "x-account-id": xAccountId
1066
+ })
1067
+ })));
1068
+ }
1069
+ /**
1070
+ * Add Workspace
1071
+ */
1072
+ export function addWorkspaceV1QuickCommandsSlugWorkspacesWorkspaceIdAddPost({ slug, workspaceId, authorization, xAccountId }, opts) {
1073
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/${encodeURIComponent(slug)}/workspaces/${encodeURIComponent(workspaceId)}/add`, {
1074
+ ...opts,
1075
+ method: "POST",
1076
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1077
+ authorization,
1078
+ "x-account-id": xAccountId
1079
+ })
1080
+ }));
1081
+ }
1082
+ /**
1083
+ * Remove Workspace
1084
+ */
1085
+ export function removeWorkspaceV1QuickCommandsSlugWorkspacesWorkspaceIdRemoveDelete({ slug, workspaceId, authorization, xAccountId }, opts) {
1086
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/${encodeURIComponent(slug)}/workspaces/${encodeURIComponent(workspaceId)}/remove`, {
1087
+ ...opts,
1088
+ method: "DELETE",
1089
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1090
+ authorization,
1091
+ "x-account-id": xAccountId
1092
+ })
1093
+ }));
1094
+ }
1095
+ /**
1096
+ * Create Execution
1097
+ */
1098
+ export function createExecutionV1QuickCommandsCreateExecutionSlugPost({ slug, conversationId, authorization, xAccountId, quickCommandCreateRequest }, opts) {
1099
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/create-execution/${encodeURIComponent(slug)}${QS.query(QS.explode({
1100
+ conversation_id: conversationId
1101
+ }))}`, oazapfts.json({
1102
+ ...opts,
1103
+ method: "POST",
1104
+ body: quickCommandCreateRequest,
1105
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1106
+ authorization,
1107
+ "x-account-id": xAccountId
1108
+ })
1109
+ })));
1110
+ }
1111
+ /**
1112
+ * Callback
1113
+ */
1114
+ export function callbackV1QuickCommandsCallbackExecutionIdGet({ executionId, authorization, xAccountId }, opts) {
1115
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/callback/${encodeURIComponent(executionId)}`, {
1116
+ ...opts,
1117
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1118
+ authorization,
1119
+ "x-account-id": xAccountId
1120
+ })
1121
+ }));
1122
+ }
1123
+ /**
1124
+ * Import Content
1125
+ */
1126
+ export function importContentV1ImportPost({ authorization, xAccountId, importPublicContent }, opts) {
1127
+ return oazapfts.ok(oazapfts.fetchJson("/v1/import", oazapfts.json({
1128
+ ...opts,
1129
+ method: "POST",
1130
+ body: importPublicContent,
1131
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1132
+ authorization,
1133
+ "x-account-id": xAccountId
1134
+ })
1135
+ })));
1136
+ }
1137
+ /**
1138
+ * Change Ai Stack Visibility
1139
+ */
1140
+ export function changeAiStackVisibilityV1StudiosStudioIdAiStacksStackIdVisibilityPut({ studioId, stackId, changeContentVisibility }, opts) {
1141
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioId)}/ai-stacks/${encodeURIComponent(stackId)}/visibility`, oazapfts.json({
1142
+ ...opts,
1143
+ method: "PUT",
1144
+ body: changeContentVisibility
1145
+ })));
1146
+ }
1147
+ /**
1148
+ * Change Knowledge Source Visibility
1149
+ */
1150
+ export function changeKnowledgeSourceVisibilityV1KnowledgeSourcesSlugVisibilityPut({ slug, changeContentVisibility }, opts) {
1151
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources/${encodeURIComponent(slug)}/visibility`, oazapfts.json({
1152
+ ...opts,
1153
+ method: "PUT",
1154
+ body: changeContentVisibility
1155
+ })));
1156
+ }
1157
+ /**
1158
+ * Change Quick Command Visibility
1159
+ */
1160
+ export function changeQuickCommandVisibilityV1QuickCommandsSlugVisibilityPut({ slug, changeContentVisibility }, opts) {
1161
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/${encodeURIComponent(slug)}/visibility`, oazapfts.json({
1162
+ ...opts,
1163
+ method: "PUT",
1164
+ body: changeContentVisibility
1165
+ })));
1166
+ }
1167
+ /**
1168
+ * List Conversations
1169
+ */
1170
+ export function listConversationsV1ConversationsGet({ size, page, authorization, xAccountId }, opts) {
1171
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/conversations${QS.query(QS.explode({
1172
+ size,
1173
+ page
1174
+ }))}`, {
1175
+ ...opts,
1176
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1177
+ authorization,
1178
+ "x-account-id": xAccountId
1179
+ })
1180
+ }));
1181
+ }
1182
+ /**
1183
+ * Conversation History
1184
+ */
1185
+ export function conversationHistoryV1ConversationsConversationIdGet({ conversationId, authorization, xAccountId }, opts) {
1186
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/conversations/${encodeURIComponent(conversationId)}`, {
1187
+ ...opts,
1188
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1189
+ authorization,
1190
+ "x-account-id": xAccountId
1191
+ })
1192
+ }));
1193
+ }
1194
+ /**
1195
+ * Delete Conversation
1196
+ */
1197
+ export function deleteConversationV1ConversationsConversationIdDelete({ conversationId, authorization, xAccountId }, opts) {
1198
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/conversations/${encodeURIComponent(conversationId)}`, {
1199
+ ...opts,
1200
+ method: "DELETE",
1201
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1202
+ authorization,
1203
+ "x-account-id": xAccountId
1204
+ })
1205
+ }));
1206
+ }
1207
+ /**
1208
+ * Update Title
1209
+ */
1210
+ export function updateTitleV1ConversationsConversationIdPatch({ conversationId, authorization, xAccountId, conversationUpdateTitleRequest }, opts) {
1211
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/conversations/${encodeURIComponent(conversationId)}`, oazapfts.json({
1212
+ ...opts,
1213
+ method: "PATCH",
1214
+ body: conversationUpdateTitleRequest,
1215
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1216
+ authorization,
1217
+ "x-account-id": xAccountId
1218
+ })
1219
+ })));
1220
+ }
1221
+ /**
1222
+ * Download Conversation
1223
+ */
1224
+ export function downloadConversationV1ConversationsConversationIdDownloadGet({ conversationId, authorization, xAccountId }, opts) {
1225
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/conversations/${encodeURIComponent(conversationId)}/download`, {
1226
+ ...opts,
1227
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1228
+ authorization,
1229
+ "x-account-id": xAccountId
1230
+ })
1231
+ }));
1232
+ }
1233
+ /**
1234
+ * Create Knowledge Source
1235
+ */
1236
+ export function createKnowledgeSourceV1DefaultKnowledgeSourcesPost({ authorization, newKnowledgeSourceRequest }, opts) {
1237
+ return oazapfts.ok(oazapfts.fetchJson("/v1/default-knowledge-sources", oazapfts.json({
1238
+ ...opts,
1239
+ method: "POST",
1240
+ body: newKnowledgeSourceRequest,
1241
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1242
+ authorization
1243
+ })
1244
+ })));
1245
+ }
1246
+ /**
1247
+ * Delete Knowledge Source
1248
+ */
1249
+ export function deleteKnowledgeSourceV1DefaultKnowledgeSourcesSlugDelete({ slug }, opts) {
1250
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/default-knowledge-sources/${encodeURIComponent(slug)}`, {
1251
+ ...opts,
1252
+ method: "DELETE"
1253
+ }));
1254
+ }
1255
+ /**
1256
+ * Upload Knowledge Objects Zip
1257
+ */
1258
+ export function uploadKnowledgeObjectsZipV1DefaultKnowledgeSourcesSlugObjectsBatchPost({ slug, autoDelete, bodyUploadKnowledgeObjectsZipV1DefaultKnowledgeSourcesSlugObjectsBatchPost }, opts) {
1259
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/default-knowledge-sources/${encodeURIComponent(slug)}/objects/batch${QS.query(QS.explode({
1260
+ "auto-delete": autoDelete
1261
+ }))}`, oazapfts.multipart({
1262
+ ...opts,
1263
+ method: "POST",
1264
+ body: bodyUploadKnowledgeObjectsZipV1DefaultKnowledgeSourcesSlugObjectsBatchPost
1265
+ })));
1266
+ }
1267
+ /**
1268
+ * Dev Assistant V2
1269
+ */
1270
+ export function devAssistantV2V2ChatPost({ accept, authorization, xAccountId, codeBuddyApiV2SchemasChatRequest }, opts) {
1271
+ return oazapfts.ok(oazapfts.fetchJson("/v2/chat", oazapfts.json({
1272
+ ...opts,
1273
+ method: "POST",
1274
+ body: codeBuddyApiV2SchemasChatRequest,
1275
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1276
+ accept,
1277
+ authorization,
1278
+ "x-account-id": xAccountId
1279
+ })
1280
+ })));
1281
+ }
1282
+ /**
1283
+ * Quick Commands Run V2
1284
+ */
1285
+ export function quickCommandsRunV2V2QuickCommandsSlugStepsStepSlugRunPost({ slug, stepSlug, accept, authorization, xAccountId, quickCommandsExecutionRequest }, opts) {
1286
+ return oazapfts.ok(oazapfts.fetchJson(`/v2/quick-commands/${encodeURIComponent(slug)}/steps/${encodeURIComponent(stepSlug)}/run`, oazapfts.json({
1287
+ ...opts,
1288
+ method: "POST",
1289
+ body: quickCommandsExecutionRequest,
1290
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1291
+ accept,
1292
+ authorization,
1293
+ "x-account-id": xAccountId
1294
+ })
1295
+ })));
1296
+ }
1297
+ /**
1298
+ * Vectorize Objects From File
1299
+ */
1300
+ export function vectorizeObjectsFromFileV2KnowledgeSourcesSlugObjectsPost({ slug, authorization, xAccountId, bodyVectorizeObjectsFromFileV2KnowledgeSourcesSlugObjectsPost }, opts) {
1301
+ return oazapfts.ok(oazapfts.fetchJson(`/v2/knowledge-sources/${encodeURIComponent(slug)}/objects`, oazapfts.multipart({
1302
+ ...opts,
1303
+ method: "POST",
1304
+ body: bodyVectorizeObjectsFromFileV2KnowledgeSourcesSlugObjectsPost,
1305
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1306
+ authorization,
1307
+ "x-account-id": xAccountId
1308
+ })
1309
+ })));
1310
+ }
1311
+ /**
1312
+ * Upload Knowledge Objects Zip
1313
+ */
1314
+ export function uploadKnowledgeObjectsZipV2KnowledgeSourcesSlugObjectsBatchPost({ slug, autoDelete, authorization, xAccountId, bodyUploadKnowledgeObjectsZipV2KnowledgeSourcesSlugObjectsBatchPost }, opts) {
1315
+ return oazapfts.ok(oazapfts.fetchJson(`/v2/knowledge-sources/${encodeURIComponent(slug)}/objects/batch${QS.query(QS.explode({
1316
+ "auto-delete": autoDelete
1317
+ }))}`, oazapfts.multipart({
1318
+ ...opts,
1319
+ method: "POST",
1320
+ body: bodyUploadKnowledgeObjectsZipV2KnowledgeSourcesSlugObjectsBatchPost,
1321
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1322
+ authorization,
1323
+ "x-account-id": xAccountId
1324
+ })
1325
+ })));
1326
+ }
1327
+ /**
1328
+ * Dev Assistant V3
1329
+ */
1330
+ export function devAssistantV3V3ChatPost({ accept, authorization, xAccountId, codeBuddyApiV2SchemasChatRequest }, opts) {
1331
+ return oazapfts.ok(oazapfts.fetchJson("/v3/chat", oazapfts.json({
1332
+ ...opts,
1333
+ method: "POST",
1334
+ body: codeBuddyApiV2SchemasChatRequest,
1335
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1336
+ accept,
1337
+ authorization,
1338
+ "x-account-id": xAccountId
1339
+ })
1340
+ })));
1341
+ }
1342
+ //# sourceMappingURL=ai.js.map