@stack-spot/portal-network 0.195.0 → 0.196.0-beta.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 (92) hide show
  1. package/CHANGELOG.md +86 -0
  2. package/dist/api/agent-tools.d.ts +135 -148
  3. package/dist/api/agent-tools.d.ts.map +1 -1
  4. package/dist/api/agent-tools.js +41 -4
  5. package/dist/api/agent-tools.js.map +1 -1
  6. package/dist/api/agent.d.ts +55 -55
  7. package/dist/api/agent.d.ts.map +1 -1
  8. package/dist/api/ai.d.ts +377 -103
  9. package/dist/api/ai.d.ts.map +1 -1
  10. package/dist/api/ai.js +383 -156
  11. package/dist/api/ai.js.map +1 -1
  12. package/dist/api/cloudPlatformHorizon.d.ts +178 -9
  13. package/dist/api/cloudPlatformHorizon.d.ts.map +1 -1
  14. package/dist/api/cloudPlatformHorizon.js +69 -1
  15. package/dist/api/cloudPlatformHorizon.js.map +1 -1
  16. package/dist/api/codeShift.d.ts +315 -62
  17. package/dist/api/codeShift.d.ts.map +1 -1
  18. package/dist/api/codeShift.js +153 -12
  19. package/dist/api/codeShift.js.map +1 -1
  20. package/dist/api/discover.d.ts +23 -12
  21. package/dist/api/discover.d.ts.map +1 -1
  22. package/dist/api/discover.js +10 -0
  23. package/dist/api/discover.js.map +1 -1
  24. package/dist/api-addresses.d.ts.map +1 -1
  25. package/dist/client/account.d.ts +233 -233
  26. package/dist/client/account.d.ts.map +1 -1
  27. package/dist/client/agent-tools.d.ts +152 -126
  28. package/dist/client/agent-tools.d.ts.map +1 -1
  29. package/dist/client/agent-tools.js +29 -2
  30. package/dist/client/agent-tools.js.map +1 -1
  31. package/dist/client/agent.d.ts +46 -46
  32. package/dist/client/agent.d.ts.map +1 -1
  33. package/dist/client/ai.d.ts +120 -81
  34. package/dist/client/ai.d.ts.map +1 -1
  35. package/dist/client/ai.js +29 -2
  36. package/dist/client/ai.js.map +1 -1
  37. package/dist/client/api-management.d.ts +2 -2
  38. package/dist/client/cloud-account.d.ts +13 -13
  39. package/dist/client/cloud-platform-horizon.d.ts +38 -19
  40. package/dist/client/cloud-platform-horizon.d.ts.map +1 -1
  41. package/dist/client/cloud-platform-horizon.js +19 -1
  42. package/dist/client/cloud-platform-horizon.js.map +1 -1
  43. package/dist/client/cloud-platform.d.ts +50 -50
  44. package/dist/client/cloud-runtimes.d.ts +4 -4
  45. package/dist/client/cloud-services.d.ts +17 -17
  46. package/dist/client/cloud-services.d.ts.map +1 -1
  47. package/dist/client/code-shift.d.ts +349 -258
  48. package/dist/client/code-shift.d.ts.map +1 -1
  49. package/dist/client/code-shift.js +82 -1
  50. package/dist/client/code-shift.js.map +1 -1
  51. package/dist/client/content.d.ts +127 -132
  52. package/dist/client/content.d.ts.map +1 -1
  53. package/dist/client/data-integration.d.ts +55 -55
  54. package/dist/client/data-integration.d.ts.map +1 -1
  55. package/dist/client/discover.d.ts +15 -9
  56. package/dist/client/discover.d.ts.map +1 -1
  57. package/dist/client/discover.js +208 -0
  58. package/dist/client/discover.js.map +1 -1
  59. package/dist/client/event-bus.d.ts.map +1 -1
  60. package/dist/client/gen-ai-inference.d.ts +20 -20
  61. package/dist/client/insights.d.ts +7 -7
  62. package/dist/client/notification.d.ts +10 -10
  63. package/dist/client/runtime-manager.d.ts +8 -8
  64. package/dist/client/types.d.ts +14 -0
  65. package/dist/client/types.d.ts.map +1 -1
  66. package/dist/client/workflow.d.ts +10 -10
  67. package/dist/client/workspace-ai.d.ts +53 -53
  68. package/dist/client/workspace-manager.d.ts +77 -77
  69. package/dist/client/workspace-search.d.ts +2 -2
  70. package/dist/client/workspace.d.ts +58 -105
  71. package/dist/client/workspace.d.ts.map +1 -1
  72. package/dist/error/dictionary/cloud-platform.d.ts +6 -0
  73. package/dist/error/dictionary/cloud-platform.d.ts.map +1 -1
  74. package/dist/error/dictionary/cloud-platform.js +6 -0
  75. package/dist/error/dictionary/cloud-platform.js.map +1 -1
  76. package/dist/utils/StreamedJson.d.ts.map +1 -1
  77. package/dist/utils/StreamedJson.js +9 -1
  78. package/dist/utils/StreamedJson.js.map +1 -1
  79. package/package.json +2 -2
  80. package/src/api/agent-tools.ts +182 -150
  81. package/src/api/ai.ts +733 -185
  82. package/src/api/cloudPlatformHorizon.ts +412 -9
  83. package/src/api/codeShift.ts +607 -69
  84. package/src/api/discover.ts +35 -12
  85. package/src/client/agent-tools.ts +20 -2
  86. package/src/client/ai.ts +25 -10
  87. package/src/client/cloud-platform-horizon.ts +12 -4
  88. package/src/client/code-shift.ts +50 -1
  89. package/src/client/discover.ts +220 -3
  90. package/src/client/types.ts +17 -2
  91. package/src/error/dictionary/cloud-platform.ts +6 -0
  92. package/src/utils/StreamedJson.tsx +9 -2
package/dist/api/ai.js CHANGED
@@ -23,7 +23,7 @@ export function metricsMetricsGet(opts) {
23
23
  /**
24
24
  * Workspace Fork
25
25
  */
26
- export function workspaceForkV1AiStacksWorkspaceForkPost({ authorization, xAccountId, xMemberId, aiStackWorkspaceForkRequest }, opts) {
26
+ export function workspaceForkV1AiStacksWorkspaceForkPost({ authorization, xAccountId, xMemberId, xUsername, aiStackWorkspaceForkRequest }, opts) {
27
27
  return oazapfts.ok(oazapfts.fetchJson("/v1/ai-stacks/workspace/fork", oazapfts.json({
28
28
  ...opts,
29
29
  method: "POST",
@@ -31,14 +31,15 @@ export function workspaceForkV1AiStacksWorkspaceForkPost({ authorization, xAccou
31
31
  headers: oazapfts.mergeHeaders(opts?.headers, {
32
32
  authorization,
33
33
  "x-account-id": xAccountId,
34
- "x-member-id": xMemberId
34
+ "x-member-id": xMemberId,
35
+ "x-username": xUsername
35
36
  })
36
37
  })));
37
38
  }
38
39
  /**
39
40
  * Workspace Delete Fork
40
41
  */
41
- export function workspaceDeleteForkV1AiStacksWorkspaceForkDelete({ authorization, xAccountId, xMemberId, aiStackWorkspaceDeleteRequest }, opts) {
42
+ export function workspaceDeleteForkV1AiStacksWorkspaceForkDelete({ authorization, xAccountId, xMemberId, xUsername, aiStackWorkspaceDeleteRequest }, opts) {
42
43
  return oazapfts.ok(oazapfts.fetchJson("/v1/ai-stacks/workspace/fork", oazapfts.json({
43
44
  ...opts,
44
45
  method: "DELETE",
@@ -46,14 +47,15 @@ export function workspaceDeleteForkV1AiStacksWorkspaceForkDelete({ authorization
46
47
  headers: oazapfts.mergeHeaders(opts?.headers, {
47
48
  authorization,
48
49
  "x-account-id": xAccountId,
49
- "x-member-id": xMemberId
50
+ "x-member-id": xMemberId,
51
+ "x-username": xUsername
50
52
  })
51
53
  })));
52
54
  }
53
55
  /**
54
56
  * Workspace List
55
57
  */
56
- export function workspaceListV1AiStacksWorkspaceListPost({ authorization, xAccountId, xMemberId, aiStackWorkspaceListRequest }, opts) {
58
+ export function workspaceListV1AiStacksWorkspaceListPost({ authorization, xAccountId, xMemberId, xUsername, aiStackWorkspaceListRequest }, opts) {
57
59
  return oazapfts.ok(oazapfts.fetchJson("/v1/ai-stacks/workspace/list", oazapfts.json({
58
60
  ...opts,
59
61
  method: "POST",
@@ -61,14 +63,15 @@ export function workspaceListV1AiStacksWorkspaceListPost({ authorization, xAccou
61
63
  headers: oazapfts.mergeHeaders(opts?.headers, {
62
64
  authorization,
63
65
  "x-account-id": xAccountId,
64
- "x-member-id": xMemberId
66
+ "x-member-id": xMemberId,
67
+ "x-username": xUsername
65
68
  })
66
69
  })));
67
70
  }
68
71
  /**
69
72
  * List Ai Stacks
70
73
  */
71
- export function listAiStacksV1AiStacksGet({ visibility, authorization, xAccountId, xMemberId }, opts) {
74
+ export function listAiStacksV1AiStacksGet({ visibility, authorization, xAccountId, xMemberId, xUsername }, opts) {
72
75
  return oazapfts.ok(oazapfts.fetchJson(`/v1/ai-stacks${QS.query(QS.explode({
73
76
  visibility
74
77
  }))}`, {
@@ -76,14 +79,15 @@ export function listAiStacksV1AiStacksGet({ visibility, authorization, xAccountI
76
79
  headers: oazapfts.mergeHeaders(opts?.headers, {
77
80
  authorization,
78
81
  "x-account-id": xAccountId,
79
- "x-member-id": xMemberId
82
+ "x-member-id": xMemberId,
83
+ "x-username": xUsername
80
84
  })
81
85
  }));
82
86
  }
83
87
  /**
84
88
  * Create Ai Stack
85
89
  */
86
- export function createAiStackV1AiStacksPost({ authorization, xAccountId, xMemberId, newAiStackRequest }, opts) {
90
+ export function createAiStackV1AiStacksPost({ authorization, xAccountId, xMemberId, xUsername, newAiStackRequest }, opts) {
87
91
  return oazapfts.ok(oazapfts.fetchJson("/v1/ai-stacks", oazapfts.json({
88
92
  ...opts,
89
93
  method: "POST",
@@ -91,14 +95,15 @@ export function createAiStackV1AiStacksPost({ authorization, xAccountId, xMember
91
95
  headers: oazapfts.mergeHeaders(opts?.headers, {
92
96
  authorization,
93
97
  "x-account-id": xAccountId,
94
- "x-member-id": xMemberId
98
+ "x-member-id": xMemberId,
99
+ "x-username": xUsername
95
100
  })
96
101
  })));
97
102
  }
98
103
  /**
99
104
  * Update Ai Stack
100
105
  */
101
- export function updateAiStackV1AiStacksStackIdPatch({ stackId, authorization, xAccountId, xMemberId, updateAiStackRequest }, opts) {
106
+ export function updateAiStackV1AiStacksStackIdPatch({ stackId, authorization, xAccountId, xMemberId, xUsername, updateAiStackRequest }, opts) {
102
107
  return oazapfts.ok(oazapfts.fetchJson(`/v1/ai-stacks/${encodeURIComponent(stackId)}`, oazapfts.json({
103
108
  ...opts,
104
109
  method: "PATCH",
@@ -106,82 +111,88 @@ export function updateAiStackV1AiStacksStackIdPatch({ stackId, authorization, xA
106
111
  headers: oazapfts.mergeHeaders(opts?.headers, {
107
112
  authorization,
108
113
  "x-account-id": xAccountId,
109
- "x-member-id": xMemberId
114
+ "x-member-id": xMemberId,
115
+ "x-username": xUsername
110
116
  })
111
117
  })));
112
118
  }
113
119
  /**
114
120
  * Get Ai Stack
115
121
  */
116
- export function getAiStackV1AiStacksStackIdGet({ stackId, authorization, xAccountId, xMemberId }, opts) {
122
+ export function getAiStackV1AiStacksStackIdGet({ stackId, authorization, xAccountId, xMemberId, xUsername }, opts) {
117
123
  return oazapfts.ok(oazapfts.fetchJson(`/v1/ai-stacks/${encodeURIComponent(stackId)}`, {
118
124
  ...opts,
119
125
  headers: oazapfts.mergeHeaders(opts?.headers, {
120
126
  authorization,
121
127
  "x-account-id": xAccountId,
122
- "x-member-id": xMemberId
128
+ "x-member-id": xMemberId,
129
+ "x-username": xUsername
123
130
  })
124
131
  }));
125
132
  }
126
133
  /**
127
134
  * Remove Ai Stack
128
135
  */
129
- export function removeAiStackV1AiStacksStackIdDelete({ stackId, authorization, xAccountId, xMemberId }, opts) {
136
+ export function removeAiStackV1AiStacksStackIdDelete({ stackId, authorization, xAccountId, xMemberId, xUsername }, opts) {
130
137
  return oazapfts.ok(oazapfts.fetchJson(`/v1/ai-stacks/${encodeURIComponent(stackId)}`, {
131
138
  ...opts,
132
139
  method: "DELETE",
133
140
  headers: oazapfts.mergeHeaders(opts?.headers, {
134
141
  authorization,
135
142
  "x-account-id": xAccountId,
136
- "x-member-id": xMemberId
143
+ "x-member-id": xMemberId,
144
+ "x-username": xUsername
137
145
  })
138
146
  }));
139
147
  }
140
148
  /**
141
149
  * Get Ai Stack Exists
142
150
  */
143
- export function getAiStackExistsV1AiStacksStackNameExistsGet({ stackName, authorization, xAccountId, xMemberId }, opts) {
151
+ export function getAiStackExistsV1AiStacksStackNameExistsGet({ stackName, authorization, xAccountId, xMemberId, xUsername }, opts) {
144
152
  return oazapfts.ok(oazapfts.fetchJson(`/v1/ai-stacks/${encodeURIComponent(stackName)}/exists`, {
145
153
  ...opts,
146
154
  headers: oazapfts.mergeHeaders(opts?.headers, {
147
155
  authorization,
148
156
  "x-account-id": xAccountId,
149
- "x-member-id": xMemberId
157
+ "x-member-id": xMemberId,
158
+ "x-username": xUsername
150
159
  })
151
160
  }));
152
161
  }
153
162
  /**
154
163
  * Add Favorite
155
164
  */
156
- export function addFavoriteV1AiStacksStackIdFavoritePost({ stackId, authorization, xAccountId, xMemberId }, opts) {
165
+ export function addFavoriteV1AiStacksStackIdFavoritePost({ stackId, authorization, xAccountId, xMemberId, xUsername }, opts) {
157
166
  return oazapfts.ok(oazapfts.fetchJson(`/v1/ai-stacks/${encodeURIComponent(stackId)}/favorite`, {
158
167
  ...opts,
159
168
  method: "POST",
160
169
  headers: oazapfts.mergeHeaders(opts?.headers, {
161
170
  authorization,
162
171
  "x-account-id": xAccountId,
163
- "x-member-id": xMemberId
172
+ "x-member-id": xMemberId,
173
+ "x-username": xUsername
164
174
  })
165
175
  }));
166
176
  }
167
177
  /**
168
178
  * Delete Favorite
169
179
  */
170
- export function deleteFavoriteV1AiStacksStackIdFavoriteDelete({ stackId, authorization, xAccountId, xMemberId }, opts) {
180
+ export function deleteFavoriteV1AiStacksStackIdFavoriteDelete({ stackId, authorization, xAccountId, xMemberId, xUsername }, opts) {
171
181
  return oazapfts.ok(oazapfts.fetchJson(`/v1/ai-stacks/${encodeURIComponent(stackId)}/favorite`, {
172
182
  ...opts,
173
183
  method: "DELETE",
174
184
  headers: oazapfts.mergeHeaders(opts?.headers, {
175
185
  authorization,
176
186
  "x-account-id": xAccountId,
177
- "x-member-id": xMemberId
187
+ "x-member-id": xMemberId,
188
+ "x-username": xUsername
178
189
  })
179
190
  }));
180
191
  }
181
192
  /**
182
193
  * Fork
183
194
  */
184
- export function forkV1AiStacksStackIdForkPost({ stackId, authorization, xAccountId, xMemberId, aiStackForkRequest }, opts) {
195
+ export function forkV1AiStacksStackIdForkPost({ stackId, authorization, xAccountId, xMemberId, xUsername, aiStackForkRequest }, opts) {
185
196
  return oazapfts.ok(oazapfts.fetchJson(`/v1/ai-stacks/${encodeURIComponent(stackId)}/fork`, oazapfts.json({
186
197
  ...opts,
187
198
  method: "POST",
@@ -189,28 +200,30 @@ export function forkV1AiStacksStackIdForkPost({ stackId, authorization, xAccount
189
200
  headers: oazapfts.mergeHeaders(opts?.headers, {
190
201
  authorization,
191
202
  "x-account-id": xAccountId,
192
- "x-member-id": xMemberId
203
+ "x-member-id": xMemberId,
204
+ "x-username": xUsername
193
205
  })
194
206
  })));
195
207
  }
196
208
  /**
197
209
  * Share
198
210
  */
199
- export function shareV1AiStacksStackIdSharePost({ stackId, authorization, xAccountId, xMemberId }, opts) {
211
+ export function shareV1AiStacksStackIdSharePost({ stackId, authorization, xAccountId, xMemberId, xUsername }, opts) {
200
212
  return oazapfts.ok(oazapfts.fetchJson(`/v1/ai-stacks/${encodeURIComponent(stackId)}/share`, {
201
213
  ...opts,
202
214
  method: "POST",
203
215
  headers: oazapfts.mergeHeaders(opts?.headers, {
204
216
  authorization,
205
217
  "x-account-id": xAccountId,
206
- "x-member-id": xMemberId
218
+ "x-member-id": xMemberId,
219
+ "x-username": xUsername
207
220
  })
208
221
  }));
209
222
  }
210
223
  /**
211
224
  * Publish
212
225
  */
213
- export function publishV1AiStacksStackIdPublishPost({ stackId, authorization, xAccountId, xMemberId, aiStackPublishRequest }, opts) {
226
+ export function publishV1AiStacksStackIdPublishPost({ stackId, authorization, xAccountId, xMemberId, xUsername, aiStackPublishRequest }, opts) {
214
227
  return oazapfts.ok(oazapfts.fetchJson(`/v1/ai-stacks/${encodeURIComponent(stackId)}/publish`, oazapfts.json({
215
228
  ...opts,
216
229
  method: "POST",
@@ -218,7 +231,8 @@ export function publishV1AiStacksStackIdPublishPost({ stackId, authorization, xA
218
231
  headers: oazapfts.mergeHeaders(opts?.headers, {
219
232
  authorization,
220
233
  "x-account-id": xAccountId,
221
- "x-member-id": xMemberId
234
+ "x-member-id": xMemberId,
235
+ "x-username": xUsername
222
236
  })
223
237
  })));
224
238
  }
@@ -238,7 +252,7 @@ export function projectFilesV1ProjectFilesPost({ authorization, newProjectFilesR
238
252
  /**
239
253
  * Quick Actions
240
254
  */
241
- export function quickActionsV1QuickActionsPost({ authorization, xAccountId, xMemberId, quickActionsRequest }, opts) {
255
+ export function quickActionsV1QuickActionsPost({ authorization, xAccountId, xMemberId, xUsername, quickActionsRequest }, opts) {
242
256
  return oazapfts.ok(oazapfts.fetchJson("/v1/quick-actions", oazapfts.json({
243
257
  ...opts,
244
258
  method: "POST",
@@ -246,7 +260,8 @@ export function quickActionsV1QuickActionsPost({ authorization, xAccountId, xMem
246
260
  headers: oazapfts.mergeHeaders(opts?.headers, {
247
261
  authorization,
248
262
  "x-account-id": xAccountId,
249
- "x-member-id": xMemberId
263
+ "x-member-id": xMemberId,
264
+ "x-username": xUsername
250
265
  })
251
266
  })));
252
267
  }
@@ -262,7 +277,7 @@ export function devAssistantV1ChatPost(opts) {
262
277
  /**
263
278
  * Autocomplete V1
264
279
  */
265
- export function autocompleteV1V1AutocompletePost({ authorization, xAccountId, xMemberId, autoCompleteRequest }, opts) {
280
+ export function autocompleteV1V1AutocompletePost({ authorization, xAccountId, xMemberId, xUsername, autoCompleteRequest }, opts) {
266
281
  return oazapfts.ok(oazapfts.fetchJson("/v1/autocomplete", oazapfts.json({
267
282
  ...opts,
268
283
  method: "POST",
@@ -270,14 +285,15 @@ export function autocompleteV1V1AutocompletePost({ authorization, xAccountId, xM
270
285
  headers: oazapfts.mergeHeaders(opts?.headers, {
271
286
  authorization,
272
287
  "x-account-id": xAccountId,
273
- "x-member-id": xMemberId
288
+ "x-member-id": xMemberId,
289
+ "x-username": xUsername
274
290
  })
275
291
  })));
276
292
  }
277
293
  /**
278
294
  * Post Event
279
295
  */
280
- export function postEventV1EventsPost({ authorization, xAccountId, xMemberId, body }, opts) {
296
+ export function postEventV1EventsPost({ authorization, xAccountId, xMemberId, xUsername, body }, opts) {
281
297
  return oazapfts.ok(oazapfts.fetchJson("/v1/events", oazapfts.json({
282
298
  ...opts,
283
299
  method: "POST",
@@ -285,7 +301,8 @@ export function postEventV1EventsPost({ authorization, xAccountId, xMemberId, bo
285
301
  headers: oazapfts.mergeHeaders(opts?.headers, {
286
302
  authorization,
287
303
  "x-account-id": xAccountId,
288
- "x-member-id": xMemberId
304
+ "x-member-id": xMemberId,
305
+ "x-username": xUsername
289
306
  })
290
307
  })));
291
308
  }
@@ -337,7 +354,7 @@ export function createKnowledgeSourceV1KnowledgeSourcesPost({ authorization, new
337
354
  /**
338
355
  * List Knowledge Sources
339
356
  */
340
- export function listKnowledgeSourcesV1KnowledgeSourcesGet({ visibility, order, $default, types, authorization, xAccountId, xMemberId }, opts) {
357
+ export function listKnowledgeSourcesV1KnowledgeSourcesGet({ visibility, order, $default, types, authorization, xAccountId, xMemberId, xUsername }, opts) {
341
358
  return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources${QS.query(QS.explode({
342
359
  visibility,
343
360
  order,
@@ -348,7 +365,8 @@ export function listKnowledgeSourcesV1KnowledgeSourcesGet({ visibility, order, $
348
365
  headers: oazapfts.mergeHeaders(opts?.headers, {
349
366
  authorization,
350
367
  "x-account-id": xAccountId,
351
- "x-member-id": xMemberId
368
+ "x-member-id": xMemberId,
369
+ "x-username": xUsername
352
370
  })
353
371
  }));
354
372
  }
@@ -379,14 +397,15 @@ export function updateKnowledgeSourceV1KnowledgeSourcesSlugPatch({ slug, authori
379
397
  /**
380
398
  * Delete Knowledge Source
381
399
  */
382
- export function deleteKnowledgeSourceV1KnowledgeSourcesSlugDelete({ slug, authorization, xAccountId, xMemberId }, opts) {
400
+ export function deleteKnowledgeSourceV1KnowledgeSourcesSlugDelete({ slug, authorization, xAccountId, xMemberId, xUsername }, opts) {
383
401
  return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources/${encodeURIComponent(slug)}`, {
384
402
  ...opts,
385
403
  method: "DELETE",
386
404
  headers: oazapfts.mergeHeaders(opts?.headers, {
387
405
  authorization,
388
406
  "x-account-id": xAccountId,
389
- "x-member-id": xMemberId
407
+ "x-member-id": xMemberId,
408
+ "x-username": xUsername
390
409
  })
391
410
  }));
392
411
  }
@@ -404,7 +423,7 @@ export function existsKnowledgeSourceV1KnowledgeSourcesSlugExistsGet({ slug, aut
404
423
  /**
405
424
  * Search
406
425
  */
407
- export function searchV1KnowledgeSourcesSlugSimilaritySearchGet({ slug, q, size, authorization, xAccountId, xMemberId }, opts) {
426
+ export function searchV1KnowledgeSourcesSlugSimilaritySearchGet({ slug, q, size, authorization, xAccountId, xMemberId, xUsername }, opts) {
408
427
  return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources/${encodeURIComponent(slug)}/similarity-search${QS.query(QS.explode({
409
428
  q,
410
429
  size
@@ -413,7 +432,8 @@ export function searchV1KnowledgeSourcesSlugSimilaritySearchGet({ slug, q, size,
413
432
  headers: oazapfts.mergeHeaders(opts?.headers, {
414
433
  authorization,
415
434
  "x-account-id": xAccountId,
416
- "x-member-id": xMemberId
435
+ "x-member-id": xMemberId,
436
+ "x-username": xUsername
417
437
  })
418
438
  }));
419
439
  }
@@ -532,7 +552,7 @@ export function findSnippetDocByCustomIdV1KnowledgeSourcesSlugSnippetsIdGet({ sl
532
552
  /**
533
553
  * Vectorize Snippet Knowledge Source
534
554
  */
535
- export function vectorizeSnippetKnowledgeSourceV1KnowledgeSourcesSlugSnippetsPost({ slug, authorization, xAccountId, xMemberId, snippetKnowledgeSourceRequest }, opts) {
555
+ export function vectorizeSnippetKnowledgeSourceV1KnowledgeSourcesSlugSnippetsPost({ slug, authorization, xAccountId, xMemberId, xUsername, snippetKnowledgeSourceRequest }, opts) {
536
556
  return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources/${encodeURIComponent(slug)}/snippets`, oazapfts.json({
537
557
  ...opts,
538
558
  method: "POST",
@@ -540,7 +560,8 @@ export function vectorizeSnippetKnowledgeSourceV1KnowledgeSourcesSlugSnippetsPos
540
560
  headers: oazapfts.mergeHeaders(opts?.headers, {
541
561
  authorization,
542
562
  "x-account-id": xAccountId,
543
- "x-member-id": xMemberId
563
+ "x-member-id": xMemberId,
564
+ "x-username": xUsername
544
565
  })
545
566
  })));
546
567
  }
@@ -569,7 +590,7 @@ export function findEventDocByCustomIdV1KnowledgeSourcesSlugEventsIdGet({ slug,
569
590
  /**
570
591
  * Vectorize Event Knowledge Source
571
592
  */
572
- export function vectorizeEventKnowledgeSourceV1KnowledgeSourcesSlugEventsPost({ slug, authorization, xAccountId, xMemberId, body }, opts) {
593
+ export function vectorizeEventKnowledgeSourceV1KnowledgeSourcesSlugEventsPost({ slug, authorization, xAccountId, xMemberId, xUsername, body }, opts) {
573
594
  return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources/${encodeURIComponent(slug)}/events`, oazapfts.json({
574
595
  ...opts,
575
596
  method: "POST",
@@ -577,7 +598,8 @@ export function vectorizeEventKnowledgeSourceV1KnowledgeSourcesSlugEventsPost({
577
598
  headers: oazapfts.mergeHeaders(opts?.headers, {
578
599
  authorization,
579
600
  "x-account-id": xAccountId,
580
- "x-member-id": xMemberId
601
+ "x-member-id": xMemberId,
602
+ "x-username": xUsername
581
603
  })
582
604
  })));
583
605
  }
@@ -595,7 +617,7 @@ export function findCustomDocByCustomIdV1KnowledgeSourcesSlugCustomIdGet({ slug,
595
617
  /**
596
618
  * Vectorize Custom Knowledge Source
597
619
  */
598
- export function vectorizeCustomKnowledgeSourceV1KnowledgeSourcesSlugCustomPost({ slug, authorization, xAccountId, xMemberId, customKnowledgeSourceRequest }, opts) {
620
+ export function vectorizeCustomKnowledgeSourceV1KnowledgeSourcesSlugCustomPost({ slug, authorization, xAccountId, xMemberId, xUsername, customKnowledgeSourceRequest }, opts) {
599
621
  return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources/${encodeURIComponent(slug)}/custom`, oazapfts.json({
600
622
  ...opts,
601
623
  method: "POST",
@@ -603,7 +625,8 @@ export function vectorizeCustomKnowledgeSourceV1KnowledgeSourcesSlugCustomPost({
603
625
  headers: oazapfts.mergeHeaders(opts?.headers, {
604
626
  authorization,
605
627
  "x-account-id": xAccountId,
606
- "x-member-id": xMemberId
628
+ "x-member-id": xMemberId,
629
+ "x-username": xUsername
607
630
  })
608
631
  })));
609
632
  }
@@ -632,7 +655,7 @@ export function searchKnowledgeSourcesV1KnowledgeSourcesSearchPost({ authorizati
632
655
  /**
633
656
  * Change Llm
634
657
  */
635
- export function changeLlmV1AccountsLlmPatch({ authorization, xAccountId, xMemberId, accountSettingsChangeLlmRequest }, opts) {
658
+ export function changeLlmV1AccountsLlmPatch({ authorization, xAccountId, xMemberId, xUsername, accountSettingsChangeLlmRequest }, opts) {
636
659
  return oazapfts.ok(oazapfts.fetchJson("/v1/accounts/llm", oazapfts.json({
637
660
  ...opts,
638
661
  method: "PATCH",
@@ -640,14 +663,15 @@ export function changeLlmV1AccountsLlmPatch({ authorization, xAccountId, xMember
640
663
  headers: oazapfts.mergeHeaders(opts?.headers, {
641
664
  authorization,
642
665
  "x-account-id": xAccountId,
643
- "x-member-id": xMemberId
666
+ "x-member-id": xMemberId,
667
+ "x-username": xUsername
644
668
  })
645
669
  })));
646
670
  }
647
671
  /**
648
672
  * Change Limit
649
673
  */
650
- export function changeLimitV1AccountsTokenLimitsPut({ authorization, xAccountId, xMemberId, accountSettingsChangeLimitRequest }, opts) {
674
+ export function changeLimitV1AccountsTokenLimitsPut({ authorization, xAccountId, xMemberId, xUsername, accountSettingsChangeLimitRequest }, opts) {
651
675
  return oazapfts.ok(oazapfts.fetchJson("/v1/accounts/token-limits", oazapfts.json({
652
676
  ...opts,
653
677
  method: "PUT",
@@ -655,28 +679,30 @@ export function changeLimitV1AccountsTokenLimitsPut({ authorization, xAccountId,
655
679
  headers: oazapfts.mergeHeaders(opts?.headers, {
656
680
  authorization,
657
681
  "x-account-id": xAccountId,
658
- "x-member-id": xMemberId
682
+ "x-member-id": xMemberId,
683
+ "x-username": xUsername
659
684
  })
660
685
  })));
661
686
  }
662
687
  /**
663
688
  * Reset Limit
664
689
  */
665
- export function resetLimitV1AccountsTokenLimitsDelete({ authorization, xAccountId, xMemberId }, opts) {
690
+ export function resetLimitV1AccountsTokenLimitsDelete({ authorization, xAccountId, xMemberId, xUsername }, opts) {
666
691
  return oazapfts.ok(oazapfts.fetchJson("/v1/accounts/token-limits", {
667
692
  ...opts,
668
693
  method: "DELETE",
669
694
  headers: oazapfts.mergeHeaders(opts?.headers, {
670
695
  authorization,
671
696
  "x-account-id": xAccountId,
672
- "x-member-id": xMemberId
697
+ "x-member-id": xMemberId,
698
+ "x-username": xUsername
673
699
  })
674
700
  }));
675
701
  }
676
702
  /**
677
703
  * Change External Rqc
678
704
  */
679
- export function changeExternalRqcV1AccountsExternalRqcPatch({ authorization, xAccountId, xMemberId, accountSettingsChangeErqcRequest }, opts) {
705
+ export function changeExternalRqcV1AccountsExternalRqcPatch({ authorization, xAccountId, xMemberId, xUsername, accountSettingsChangeErqcRequest }, opts) {
680
706
  return oazapfts.ok(oazapfts.fetchJson("/v1/accounts/external-rqc", oazapfts.json({
681
707
  ...opts,
682
708
  method: "PATCH",
@@ -684,7 +710,8 @@ export function changeExternalRqcV1AccountsExternalRqcPatch({ authorization, xAc
684
710
  headers: oazapfts.mergeHeaders(opts?.headers, {
685
711
  authorization,
686
712
  "x-account-id": xAccountId,
687
- "x-member-id": xMemberId
713
+ "x-member-id": xMemberId,
714
+ "x-username": xUsername
688
715
  })
689
716
  })));
690
717
  }
@@ -709,28 +736,35 @@ export function changeExternalConfigsV1AccountsExternalConfigPatch({ body }, opt
709
736
  /**
710
737
  * Tokens Usage
711
738
  */
712
- export function tokensUsageV1AccountsTokensUsageGet(opts) {
739
+ export function tokensUsageV1AccountsTokensUsageGet({ authorization, xAccountId, xMemberId, xUsername }, opts) {
713
740
  return oazapfts.ok(oazapfts.fetchJson("/v1/accounts/tokens-usage", {
714
- ...opts
741
+ ...opts,
742
+ headers: oazapfts.mergeHeaders(opts?.headers, {
743
+ authorization,
744
+ "x-account-id": xAccountId,
745
+ "x-member-id": xMemberId,
746
+ "x-username": xUsername
747
+ })
715
748
  }));
716
749
  }
717
750
  /**
718
- * Current
751
+ * Total
719
752
  */
720
- export function currentV1TokensUsageTotalGet({ authorization, xAccountId, xMemberId }, opts) {
753
+ export function totalV1TokensUsageTotalGet({ authorization, xAccountId, xMemberId, xUsername }, opts) {
721
754
  return oazapfts.ok(oazapfts.fetchJson("/v1/tokens-usage/total", {
722
755
  ...opts,
723
756
  headers: oazapfts.mergeHeaders(opts?.headers, {
724
757
  authorization,
725
758
  "x-account-id": xAccountId,
726
- "x-member-id": xMemberId
759
+ "x-member-id": xMemberId,
760
+ "x-username": xUsername
727
761
  })
728
762
  }));
729
763
  }
730
764
  /**
731
765
  * Current
732
766
  */
733
- export function currentV1TokensUsageCurrentGet({ year, month, authorization, xAccountId, xMemberId }, opts) {
767
+ export function currentV1TokensUsageCurrentGet({ year, month, authorization, xAccountId, xMemberId, xUsername }, opts) {
734
768
  return oazapfts.ok(oazapfts.fetchJson(`/v1/tokens-usage/current${QS.query(QS.explode({
735
769
  year,
736
770
  month
@@ -739,14 +773,15 @@ export function currentV1TokensUsageCurrentGet({ year, month, authorization, xAc
739
773
  headers: oazapfts.mergeHeaders(opts?.headers, {
740
774
  authorization,
741
775
  "x-account-id": xAccountId,
742
- "x-member-id": xMemberId
776
+ "x-member-id": xMemberId,
777
+ "x-username": xUsername
743
778
  })
744
779
  }));
745
780
  }
746
781
  /**
747
782
  * Monthly
748
783
  */
749
- export function monthlyV1TokensUsageMonthlyGet({ year, authorization, xAccountId, xMemberId }, opts) {
784
+ export function monthlyV1TokensUsageMonthlyGet({ year, authorization, xAccountId, xMemberId, xUsername }, opts) {
750
785
  return oazapfts.ok(oazapfts.fetchJson(`/v1/tokens-usage/monthly${QS.query(QS.explode({
751
786
  year
752
787
  }))}`, {
@@ -754,14 +789,15 @@ export function monthlyV1TokensUsageMonthlyGet({ year, authorization, xAccountId
754
789
  headers: oazapfts.mergeHeaders(opts?.headers, {
755
790
  authorization,
756
791
  "x-account-id": xAccountId,
757
- "x-member-id": xMemberId
792
+ "x-member-id": xMemberId,
793
+ "x-username": xUsername
758
794
  })
759
795
  }));
760
796
  }
761
797
  /**
762
798
  * Top Users
763
799
  */
764
- export function topUsersV1TokensUsageTopUsersGet({ year, month, authorization, xAccountId, xMemberId }, opts) {
800
+ export function topUsersV1TokensUsageTopUsersGet({ year, month, authorization, xAccountId, xMemberId, xUsername }, opts) {
765
801
  return oazapfts.ok(oazapfts.fetchJson(`/v1/tokens-usage/top-users${QS.query(QS.explode({
766
802
  year,
767
803
  month
@@ -770,14 +806,15 @@ export function topUsersV1TokensUsageTopUsersGet({ year, month, authorization, x
770
806
  headers: oazapfts.mergeHeaders(opts?.headers, {
771
807
  authorization,
772
808
  "x-account-id": xAccountId,
773
- "x-member-id": xMemberId
809
+ "x-member-id": xMemberId,
810
+ "x-username": xUsername
774
811
  })
775
812
  }));
776
813
  }
777
814
  /**
778
815
  * Add Association
779
816
  */
780
- export function addAssociationV1WorkspaceWorkspaceIdPost({ workspaceId, authorization, xAccountId, xMemberId, addWorkspaceKnowledgeSourceRequest }, opts) {
817
+ export function addAssociationV1WorkspaceWorkspaceIdPost({ workspaceId, authorization, xAccountId, xMemberId, xUsername, addWorkspaceKnowledgeSourceRequest }, opts) {
781
818
  return oazapfts.ok(oazapfts.fetchJson(`/v1/workspace/${encodeURIComponent(workspaceId)}`, oazapfts.json({
782
819
  ...opts,
783
820
  method: "POST",
@@ -785,41 +822,44 @@ export function addAssociationV1WorkspaceWorkspaceIdPost({ workspaceId, authoriz
785
822
  headers: oazapfts.mergeHeaders(opts?.headers, {
786
823
  authorization,
787
824
  "x-account-id": xAccountId,
788
- "x-member-id": xMemberId
825
+ "x-member-id": xMemberId,
826
+ "x-username": xUsername
789
827
  })
790
828
  })));
791
829
  }
792
830
  /**
793
831
  * List Association
794
832
  */
795
- export function listAssociationV1WorkspaceWorkspaceIdGet({ workspaceId, authorization, xAccountId, xMemberId }, opts) {
833
+ export function listAssociationV1WorkspaceWorkspaceIdGet({ workspaceId, authorization, xAccountId, xMemberId, xUsername }, opts) {
796
834
  return oazapfts.ok(oazapfts.fetchJson(`/v1/workspace/${encodeURIComponent(workspaceId)}`, {
797
835
  ...opts,
798
836
  headers: oazapfts.mergeHeaders(opts?.headers, {
799
837
  authorization,
800
838
  "x-account-id": xAccountId,
801
- "x-member-id": xMemberId
839
+ "x-member-id": xMemberId,
840
+ "x-username": xUsername
802
841
  })
803
842
  }));
804
843
  }
805
844
  /**
806
845
  * Delete Association
807
846
  */
808
- export function deleteAssociationV1WorkspaceWorkspaceIdKnowledgeSourceKnowledgeSourceSlugDelete({ workspaceId, knowledgeSourceSlug, authorization, xAccountId, xMemberId }, opts) {
847
+ export function deleteAssociationV1WorkspaceWorkspaceIdKnowledgeSourceKnowledgeSourceSlugDelete({ workspaceId, knowledgeSourceSlug, authorization, xAccountId, xMemberId, xUsername }, opts) {
809
848
  return oazapfts.ok(oazapfts.fetchJson(`/v1/workspace/${encodeURIComponent(workspaceId)}/knowledge_source/${encodeURIComponent(knowledgeSourceSlug)}`, {
810
849
  ...opts,
811
850
  method: "DELETE",
812
851
  headers: oazapfts.mergeHeaders(opts?.headers, {
813
852
  authorization,
814
853
  "x-account-id": xAccountId,
815
- "x-member-id": xMemberId
854
+ "x-member-id": xMemberId,
855
+ "x-username": xUsername
816
856
  })
817
857
  }));
818
858
  }
819
859
  /**
820
860
  * Workspace Fork
821
861
  */
822
- export function workspaceForkV1QuickCommandsWorkspaceForkPost({ authorization, xAccountId, xMemberId, quickCommandWorkspaceForkRequest }, opts) {
862
+ export function workspaceForkV1QuickCommandsWorkspaceForkPost({ authorization, xAccountId, xMemberId, xUsername, quickCommandWorkspaceForkRequest }, opts) {
823
863
  return oazapfts.ok(oazapfts.fetchJson("/v1/quick-commands/workspace/fork", oazapfts.json({
824
864
  ...opts,
825
865
  method: "POST",
@@ -827,14 +867,15 @@ export function workspaceForkV1QuickCommandsWorkspaceForkPost({ authorization, x
827
867
  headers: oazapfts.mergeHeaders(opts?.headers, {
828
868
  authorization,
829
869
  "x-account-id": xAccountId,
830
- "x-member-id": xMemberId
870
+ "x-member-id": xMemberId,
871
+ "x-username": xUsername
831
872
  })
832
873
  })));
833
874
  }
834
875
  /**
835
876
  * Workspace Delete Fork
836
877
  */
837
- export function workspaceDeleteForkV1QuickCommandsWorkspaceForkDelete({ authorization, xAccountId, xMemberId, quickCommandWorkspaceDeleteRequest }, opts) {
878
+ export function workspaceDeleteForkV1QuickCommandsWorkspaceForkDelete({ authorization, xAccountId, xMemberId, xUsername, quickCommandWorkspaceDeleteRequest }, opts) {
838
879
  return oazapfts.ok(oazapfts.fetchJson("/v1/quick-commands/workspace/fork", oazapfts.json({
839
880
  ...opts,
840
881
  method: "DELETE",
@@ -842,14 +883,15 @@ export function workspaceDeleteForkV1QuickCommandsWorkspaceForkDelete({ authoriz
842
883
  headers: oazapfts.mergeHeaders(opts?.headers, {
843
884
  authorization,
844
885
  "x-account-id": xAccountId,
845
- "x-member-id": xMemberId
886
+ "x-member-id": xMemberId,
887
+ "x-username": xUsername
846
888
  })
847
889
  })));
848
890
  }
849
891
  /**
850
892
  * Workspace List
851
893
  */
852
- export function workspaceListV1QuickCommandsWorkspaceListPost({ authorization, xAccountId, xMemberId, quickCommandWorkspaceListRequest }, opts) {
894
+ export function workspaceListV1QuickCommandsWorkspaceListPost({ authorization, xAccountId, xMemberId, xUsername, quickCommandWorkspaceListRequest }, opts) {
853
895
  return oazapfts.ok(oazapfts.fetchJson("/v1/quick-commands/workspace/list", oazapfts.json({
854
896
  ...opts,
855
897
  method: "POST",
@@ -857,14 +899,15 @@ export function workspaceListV1QuickCommandsWorkspaceListPost({ authorization, x
857
899
  headers: oazapfts.mergeHeaders(opts?.headers, {
858
900
  authorization,
859
901
  "x-account-id": xAccountId,
860
- "x-member-id": xMemberId
902
+ "x-member-id": xMemberId,
903
+ "x-username": xUsername
861
904
  })
862
905
  })));
863
906
  }
864
907
  /**
865
908
  * Create Quick Command
866
909
  */
867
- export function createQuickCommandV1QuickCommandsPost({ authorization, xAccountId, xMemberId, quickCommandsCreateRequest }, opts) {
910
+ export function createQuickCommandV1QuickCommandsPost({ authorization, xAccountId, xMemberId, xUsername, quickCommandsCreateRequest }, opts) {
868
911
  return oazapfts.ok(oazapfts.fetchJson("/v1/quick-commands", oazapfts.json({
869
912
  ...opts,
870
913
  method: "POST",
@@ -872,14 +915,15 @@ export function createQuickCommandV1QuickCommandsPost({ authorization, xAccountI
872
915
  headers: oazapfts.mergeHeaders(opts?.headers, {
873
916
  authorization,
874
917
  "x-account-id": xAccountId,
875
- "x-member-id": xMemberId
918
+ "x-member-id": xMemberId,
919
+ "x-username": xUsername
876
920
  })
877
921
  })));
878
922
  }
879
923
  /**
880
924
  * List All
881
925
  */
882
- export function listAllV1QuickCommandsAllGet({ visibility, order, types, authorization, xAccountId, xMemberId }, opts) {
926
+ export function listAllV1QuickCommandsAllGet({ visibility, order, types, authorization, xAccountId, xMemberId, xUsername }, opts) {
883
927
  return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/all${QS.query(QS.explode({
884
928
  visibility,
885
929
  order,
@@ -889,14 +933,15 @@ export function listAllV1QuickCommandsAllGet({ visibility, order, types, authori
889
933
  headers: oazapfts.mergeHeaders(opts?.headers, {
890
934
  authorization,
891
935
  "x-account-id": xAccountId,
892
- "x-member-id": xMemberId
936
+ "x-member-id": xMemberId,
937
+ "x-username": xUsername
893
938
  })
894
939
  }));
895
940
  }
896
941
  /**
897
942
  * Update Quick Command
898
943
  */
899
- export function updateQuickCommandV1QuickCommandsSlugPatch({ slug, authorization, xAccountId, xMemberId, quickCommandsUpdateRequest }, opts) {
944
+ export function updateQuickCommandV1QuickCommandsSlugPatch({ slug, authorization, xAccountId, xMemberId, xUsername, quickCommandsUpdateRequest }, opts) {
900
945
  return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/${encodeURIComponent(slug)}`, oazapfts.json({
901
946
  ...opts,
902
947
  method: "PATCH",
@@ -904,14 +949,15 @@ export function updateQuickCommandV1QuickCommandsSlugPatch({ slug, authorization
904
949
  headers: oazapfts.mergeHeaders(opts?.headers, {
905
950
  authorization,
906
951
  "x-account-id": xAccountId,
907
- "x-member-id": xMemberId
952
+ "x-member-id": xMemberId,
953
+ "x-username": xUsername
908
954
  })
909
955
  })));
910
956
  }
911
957
  /**
912
958
  * Get Quick Command
913
959
  */
914
- export function getQuickCommandV1QuickCommandsSlugGet({ slug, findAgents, authorization, xAccountId, xMemberId }, opts) {
960
+ export function getQuickCommandV1QuickCommandsSlugGet({ slug, findAgents, authorization, xAccountId, xMemberId, xUsername }, opts) {
915
961
  return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/${encodeURIComponent(slug)}${QS.query(QS.explode({
916
962
  find_agents: findAgents
917
963
  }))}`, {
@@ -919,70 +965,75 @@ export function getQuickCommandV1QuickCommandsSlugGet({ slug, findAgents, author
919
965
  headers: oazapfts.mergeHeaders(opts?.headers, {
920
966
  authorization,
921
967
  "x-account-id": xAccountId,
922
- "x-member-id": xMemberId
968
+ "x-member-id": xMemberId,
969
+ "x-username": xUsername
923
970
  })
924
971
  }));
925
972
  }
926
973
  /**
927
974
  * Delete Quick Command
928
975
  */
929
- export function deleteQuickCommandV1QuickCommandsSlugDelete({ slug, authorization, xAccountId, xMemberId }, opts) {
976
+ export function deleteQuickCommandV1QuickCommandsSlugDelete({ slug, authorization, xAccountId, xMemberId, xUsername }, opts) {
930
977
  return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/${encodeURIComponent(slug)}`, {
931
978
  ...opts,
932
979
  method: "DELETE",
933
980
  headers: oazapfts.mergeHeaders(opts?.headers, {
934
981
  authorization,
935
982
  "x-account-id": xAccountId,
936
- "x-member-id": xMemberId
983
+ "x-member-id": xMemberId,
984
+ "x-username": xUsername
937
985
  })
938
986
  }));
939
987
  }
940
988
  /**
941
989
  * Add Favorite
942
990
  */
943
- export function addFavoriteV1QuickCommandsSlugFavoritePost({ slug, authorization, xAccountId, xMemberId }, opts) {
991
+ export function addFavoriteV1QuickCommandsSlugFavoritePost({ slug, authorization, xAccountId, xMemberId, xUsername }, opts) {
944
992
  return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/${encodeURIComponent(slug)}/favorite`, {
945
993
  ...opts,
946
994
  method: "POST",
947
995
  headers: oazapfts.mergeHeaders(opts?.headers, {
948
996
  authorization,
949
997
  "x-account-id": xAccountId,
950
- "x-member-id": xMemberId
998
+ "x-member-id": xMemberId,
999
+ "x-username": xUsername
951
1000
  })
952
1001
  }));
953
1002
  }
954
1003
  /**
955
1004
  * Delete Favorite
956
1005
  */
957
- export function deleteFavoriteV1QuickCommandsSlugFavoriteDelete({ slug, authorization, xAccountId, xMemberId }, opts) {
1006
+ export function deleteFavoriteV1QuickCommandsSlugFavoriteDelete({ slug, authorization, xAccountId, xMemberId, xUsername }, opts) {
958
1007
  return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/${encodeURIComponent(slug)}/favorite`, {
959
1008
  ...opts,
960
1009
  method: "DELETE",
961
1010
  headers: oazapfts.mergeHeaders(opts?.headers, {
962
1011
  authorization,
963
1012
  "x-account-id": xAccountId,
964
- "x-member-id": xMemberId
1013
+ "x-member-id": xMemberId,
1014
+ "x-username": xUsername
965
1015
  })
966
1016
  }));
967
1017
  }
968
1018
  /**
969
1019
  * Share
970
1020
  */
971
- export function shareV1QuickCommandsSlugSharePost({ slug, authorization, xAccountId, xMemberId }, opts) {
1021
+ export function shareV1QuickCommandsSlugSharePost({ slug, authorization, xAccountId, xMemberId, xUsername }, opts) {
972
1022
  return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/${encodeURIComponent(slug)}/share`, {
973
1023
  ...opts,
974
1024
  method: "POST",
975
1025
  headers: oazapfts.mergeHeaders(opts?.headers, {
976
1026
  authorization,
977
1027
  "x-account-id": xAccountId,
978
- "x-member-id": xMemberId
1028
+ "x-member-id": xMemberId,
1029
+ "x-username": xUsername
979
1030
  })
980
1031
  }));
981
1032
  }
982
1033
  /**
983
1034
  * Publish
984
1035
  */
985
- export function publishV1QuickCommandsSlugPublishPost({ slug, authorization, xAccountId, xMemberId, quickCommandPublishRequest }, opts) {
1036
+ export function publishV1QuickCommandsSlugPublishPost({ slug, authorization, xAccountId, xMemberId, xUsername, quickCommandPublishRequest }, opts) {
986
1037
  return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/${encodeURIComponent(slug)}/publish`, oazapfts.json({
987
1038
  ...opts,
988
1039
  method: "POST",
@@ -990,14 +1041,15 @@ export function publishV1QuickCommandsSlugPublishPost({ slug, authorization, xAc
990
1041
  headers: oazapfts.mergeHeaders(opts?.headers, {
991
1042
  authorization,
992
1043
  "x-account-id": xAccountId,
993
- "x-member-id": xMemberId
1044
+ "x-member-id": xMemberId,
1045
+ "x-username": xUsername
994
1046
  })
995
1047
  })));
996
1048
  }
997
1049
  /**
998
1050
  * Fork
999
1051
  */
1000
- export function forkV1QuickCommandsSlugForkPost({ slug, authorization, xAccountId, xMemberId, quickCommandsMakeACopyRequest }, opts) {
1052
+ export function forkV1QuickCommandsSlugForkPost({ slug, authorization, xAccountId, xMemberId, xUsername, quickCommandsMakeACopyRequest }, opts) {
1001
1053
  return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/${encodeURIComponent(slug)}/fork`, oazapfts.json({
1002
1054
  ...opts,
1003
1055
  method: "POST",
@@ -1005,80 +1057,86 @@ export function forkV1QuickCommandsSlugForkPost({ slug, authorization, xAccountI
1005
1057
  headers: oazapfts.mergeHeaders(opts?.headers, {
1006
1058
  authorization,
1007
1059
  "x-account-id": xAccountId,
1008
- "x-member-id": xMemberId
1060
+ "x-member-id": xMemberId,
1061
+ "x-username": xUsername
1009
1062
  })
1010
1063
  })));
1011
1064
  }
1012
1065
  /**
1013
- * Get Quick Command
1066
+ * Check Quick Command Exists
1014
1067
  */
1015
- export function getQuickCommandV1QuickCommandsSlugExistsGet({ slug, authorization, xAccountId, xMemberId }, opts) {
1068
+ export function checkQuickCommandExistsV1QuickCommandsSlugExistsGet({ slug, authorization, xAccountId, xMemberId, xUsername }, opts) {
1016
1069
  return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/${encodeURIComponent(slug)}/exists`, {
1017
1070
  ...opts,
1018
1071
  headers: oazapfts.mergeHeaders(opts?.headers, {
1019
1072
  authorization,
1020
1073
  "x-account-id": xAccountId,
1021
- "x-member-id": xMemberId
1074
+ "x-member-id": xMemberId,
1075
+ "x-username": xUsername
1022
1076
  })
1023
1077
  }));
1024
1078
  }
1025
1079
  /**
1026
1080
  * Get Quick Command By Ks Slug
1027
1081
  */
1028
- export function getQuickCommandByKsSlugV1QuickCommandsKnowledgeSourcesSlugGet({ slug, authorization, xAccountId, xMemberId }, opts) {
1082
+ export function getQuickCommandByKsSlugV1QuickCommandsKnowledgeSourcesSlugGet({ slug, authorization, xAccountId, xMemberId, xUsername }, opts) {
1029
1083
  return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/knowledge-sources/${encodeURIComponent(slug)}`, {
1030
1084
  ...opts,
1031
1085
  headers: oazapfts.mergeHeaders(opts?.headers, {
1032
1086
  authorization,
1033
1087
  "x-account-id": xAccountId,
1034
- "x-member-id": xMemberId
1088
+ "x-member-id": xMemberId,
1089
+ "x-username": xUsername
1035
1090
  })
1036
1091
  }));
1037
1092
  }
1038
1093
  /**
1039
1094
  * Get Quick Commands By Agent Id
1040
1095
  */
1041
- export function getQuickCommandsByAgentIdV1QuickCommandsAgentsAgentIdGet({ agentId, authorization, xAccountId, xMemberId }, opts) {
1096
+ export function getQuickCommandsByAgentIdV1QuickCommandsAgentsAgentIdGet({ agentId, authorization, xAccountId, xMemberId, xUsername }, opts) {
1042
1097
  return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/agents/${encodeURIComponent(agentId)}`, {
1043
1098
  ...opts,
1044
1099
  headers: oazapfts.mergeHeaders(opts?.headers, {
1045
1100
  authorization,
1046
1101
  "x-account-id": xAccountId,
1047
- "x-member-id": xMemberId
1102
+ "x-member-id": xMemberId,
1103
+ "x-username": xUsername
1048
1104
  })
1049
1105
  }));
1050
1106
  }
1051
1107
  /**
1052
1108
  * Disassociate Agent
1053
1109
  */
1054
- export function disassociateAgentV1QuickCommandsAgentsAgentIdDelete({ agentId, authorization, xAccountId, xMemberId }, opts) {
1110
+ export function disassociateAgentV1QuickCommandsAgentsAgentIdDelete({ agentId, authorization, xAccountId, xMemberId, xUsername }, opts) {
1055
1111
  return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/agents/${encodeURIComponent(agentId)}`, {
1056
1112
  ...opts,
1057
1113
  method: "DELETE",
1058
1114
  headers: oazapfts.mergeHeaders(opts?.headers, {
1059
1115
  authorization,
1060
1116
  "x-account-id": xAccountId,
1061
- "x-member-id": xMemberId
1117
+ "x-member-id": xMemberId,
1118
+ "x-username": xUsername
1062
1119
  })
1063
1120
  }));
1064
1121
  }
1065
1122
  /**
1066
1123
  * List By Workspace Id
1067
1124
  */
1068
- export function listByWorkspaceIdV1QuickCommandsWorkspacesWorkspaceIdGet({ workspaceId, authorization, xAccountId, xMemberId }, opts) {
1125
+ export function listByWorkspaceIdV1QuickCommandsWorkspacesWorkspaceIdGet({ workspaceId, authorization, xAccountId, xMemberId, xUsername }, opts) {
1069
1126
  return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/workspaces/${encodeURIComponent(workspaceId)}`, {
1070
1127
  ...opts,
1071
1128
  headers: oazapfts.mergeHeaders(opts?.headers, {
1072
1129
  authorization,
1073
1130
  "x-account-id": xAccountId,
1074
- "x-member-id": xMemberId
1131
+ "x-member-id": xMemberId,
1132
+ "x-username": xUsername
1075
1133
  })
1076
1134
  }));
1077
1135
  }
1078
1136
  /**
1079
1137
  * Format Fetch Step
1080
1138
  */
1081
- export function formatFetchStepV1QuickCommandsSlugStepsStepSlugFetchFormatPost({ slug, stepSlug, authorization, xAccountId, xMemberId, quickCommandsExecutionRequest }, opts) {
1139
+ export function formatFetchStepV1QuickCommandsSlugStepsStepSlugFetchFormatPost({ slug, stepSlug, authorization, xAccountId, xMemberId, xUsername, quickCommandsExecutionRequest }, opts) {
1082
1140
  return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/${encodeURIComponent(slug)}/steps/${encodeURIComponent(stepSlug)}/fetch_format`, oazapfts.json({
1083
1141
  ...opts,
1084
1142
  method: "POST",
@@ -1086,14 +1144,15 @@ export function formatFetchStepV1QuickCommandsSlugStepsStepSlugFetchFormatPost({
1086
1144
  headers: oazapfts.mergeHeaders(opts?.headers, {
1087
1145
  authorization,
1088
1146
  "x-account-id": xAccountId,
1089
- "x-member-id": xMemberId
1147
+ "x-member-id": xMemberId,
1148
+ "x-username": xUsername
1090
1149
  })
1091
1150
  })));
1092
1151
  }
1093
1152
  /**
1094
1153
  * Format Result
1095
1154
  */
1096
- export function formatResultV1QuickCommandsSlugResultFormatPost({ slug, authorization, xAccountId, xMemberId, quickCommandsExecutionRequest }, opts) {
1155
+ export function formatResultV1QuickCommandsSlugResultFormatPost({ slug, authorization, xAccountId, xMemberId, xUsername, quickCommandsExecutionRequest }, opts) {
1097
1156
  return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/${encodeURIComponent(slug)}/result_format`, oazapfts.json({
1098
1157
  ...opts,
1099
1158
  method: "POST",
@@ -1101,14 +1160,15 @@ export function formatResultV1QuickCommandsSlugResultFormatPost({ slug, authoriz
1101
1160
  headers: oazapfts.mergeHeaders(opts?.headers, {
1102
1161
  authorization,
1103
1162
  "x-account-id": xAccountId,
1104
- "x-member-id": xMemberId
1163
+ "x-member-id": xMemberId,
1164
+ "x-username": xUsername
1105
1165
  })
1106
1166
  })));
1107
1167
  }
1108
1168
  /**
1109
1169
  * Calculates the next route for a ROUTER step
1110
1170
  */
1111
- export function calculateNextStepV1QuickCommandsSlugStepsStepSlugCalculateNextStepPost({ slug, stepSlug, authorization, xAccountId, xMemberId, quickCommandEvaluateStepRouterRequest }, opts) {
1171
+ export function calculateNextStepV1QuickCommandsSlugStepsStepSlugCalculateNextStepPost({ slug, stepSlug, authorization, xAccountId, xMemberId, xUsername, quickCommandEvaluateStepRouterRequest }, opts) {
1112
1172
  return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/${encodeURIComponent(slug)}/steps/${encodeURIComponent(stepSlug)}/calculate_next_step`, oazapfts.json({
1113
1173
  ...opts,
1114
1174
  method: "POST",
@@ -1116,59 +1176,57 @@ export function calculateNextStepV1QuickCommandsSlugStepsStepSlugCalculateNextSt
1116
1176
  headers: oazapfts.mergeHeaders(opts?.headers, {
1117
1177
  authorization,
1118
1178
  "x-account-id": xAccountId,
1119
- "x-member-id": xMemberId
1179
+ "x-member-id": xMemberId,
1180
+ "x-username": xUsername
1120
1181
  })
1121
1182
  })));
1122
1183
  }
1123
1184
  /**
1124
1185
  * Add Workspace
1125
1186
  */
1126
- export function addWorkspaceV1QuickCommandsSlugWorkspacesWorkspaceIdAddPost({ slug, workspaceId, authorization, xAccountId, xMemberId }, opts) {
1187
+ export function addWorkspaceV1QuickCommandsSlugWorkspacesWorkspaceIdAddPost({ slug, workspaceId, authorization, xAccountId, xMemberId, xUsername }, opts) {
1127
1188
  return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/${encodeURIComponent(slug)}/workspaces/${encodeURIComponent(workspaceId)}/add`, {
1128
1189
  ...opts,
1129
1190
  method: "POST",
1130
1191
  headers: oazapfts.mergeHeaders(opts?.headers, {
1131
1192
  authorization,
1132
1193
  "x-account-id": xAccountId,
1133
- "x-member-id": xMemberId
1194
+ "x-member-id": xMemberId,
1195
+ "x-username": xUsername
1134
1196
  })
1135
1197
  }));
1136
1198
  }
1137
1199
  /**
1138
1200
  * Remove Workspace
1139
1201
  */
1140
- export function removeWorkspaceV1QuickCommandsSlugWorkspacesWorkspaceIdRemoveDelete({ slug, workspaceId, authorization, xAccountId, xMemberId }, opts) {
1202
+ export function removeWorkspaceV1QuickCommandsSlugWorkspacesWorkspaceIdRemoveDelete({ slug, workspaceId, authorization, xAccountId, xMemberId, xUsername }, opts) {
1141
1203
  return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/${encodeURIComponent(slug)}/workspaces/${encodeURIComponent(workspaceId)}/remove`, {
1142
1204
  ...opts,
1143
1205
  method: "DELETE",
1144
1206
  headers: oazapfts.mergeHeaders(opts?.headers, {
1145
1207
  authorization,
1146
1208
  "x-account-id": xAccountId,
1147
- "x-member-id": xMemberId
1209
+ "x-member-id": xMemberId,
1210
+ "x-username": xUsername
1148
1211
  })
1149
1212
  }));
1150
1213
  }
1151
1214
  /**
1152
1215
  * Create Execution
1153
1216
  */
1154
- export function createExecutionV1QuickCommandsCreateExecutionSlugPost({ slug, conversationId, authorization, xAccountId, xMemberId, quickCommandCreateRequest }, opts) {
1217
+ export function createExecutionV1QuickCommandsCreateExecutionSlugPost({ slug, conversationId, quickCommandCreateRequest }, opts) {
1155
1218
  return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/create-execution/${encodeURIComponent(slug)}${QS.query(QS.explode({
1156
1219
  conversation_id: conversationId
1157
1220
  }))}`, oazapfts.json({
1158
1221
  ...opts,
1159
1222
  method: "POST",
1160
- body: quickCommandCreateRequest,
1161
- headers: oazapfts.mergeHeaders(opts?.headers, {
1162
- authorization,
1163
- "x-account-id": xAccountId,
1164
- "x-member-id": xMemberId
1165
- })
1223
+ body: quickCommandCreateRequest
1166
1224
  })));
1167
1225
  }
1168
1226
  /**
1169
1227
  * Triggers asynchronous execution of a Remote Quick Command
1170
1228
  */
1171
- export function executeV1QuickCommandsExecuteExecutionIdPost({ executionId, authorization, xAccountId, xMemberId, quickCommandExecutionRequest }, opts) {
1229
+ export function executeV1QuickCommandsExecuteExecutionIdPost({ executionId, authorization, xAccountId, xMemberId, xUsername, quickCommandExecutionRequest }, opts) {
1172
1230
  return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/execute/${encodeURIComponent(executionId)}`, oazapfts.json({
1173
1231
  ...opts,
1174
1232
  method: "POST",
@@ -1176,27 +1234,23 @@ export function executeV1QuickCommandsExecuteExecutionIdPost({ executionId, auth
1176
1234
  headers: oazapfts.mergeHeaders(opts?.headers, {
1177
1235
  authorization,
1178
1236
  "x-account-id": xAccountId,
1179
- "x-member-id": xMemberId
1237
+ "x-member-id": xMemberId,
1238
+ "x-username": xUsername
1180
1239
  })
1181
1240
  })));
1182
1241
  }
1183
1242
  /**
1184
1243
  * Callback
1185
1244
  */
1186
- export function callbackV1QuickCommandsCallbackExecutionIdGet({ executionId, authorization, xAccountId, xMemberId }, opts) {
1245
+ export function callbackV1QuickCommandsCallbackExecutionIdGet({ executionId }, opts) {
1187
1246
  return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/callback/${encodeURIComponent(executionId)}`, {
1188
- ...opts,
1189
- headers: oazapfts.mergeHeaders(opts?.headers, {
1190
- authorization,
1191
- "x-account-id": xAccountId,
1192
- "x-member-id": xMemberId
1193
- })
1247
+ ...opts
1194
1248
  }));
1195
1249
  }
1196
1250
  /**
1197
1251
  * Run Fetch Step
1198
1252
  */
1199
- export function runFetchStepV1QuickCommandsSlugStepsStepSlugFetchRunPost({ slug, stepSlug, authorization, xAccountId, xMemberId, quickCommandsExecutionRequest }, opts) {
1253
+ export function runFetchStepV1QuickCommandsSlugStepsStepSlugFetchRunPost({ slug, stepSlug, authorization, xAccountId, xMemberId, xUsername, quickCommandsExecutionRequest }, opts) {
1200
1254
  return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/${encodeURIComponent(slug)}/steps/${encodeURIComponent(stepSlug)}/fetch_run`, oazapfts.json({
1201
1255
  ...opts,
1202
1256
  method: "POST",
@@ -1204,14 +1258,33 @@ export function runFetchStepV1QuickCommandsSlugStepsStepSlugFetchRunPost({ slug,
1204
1258
  headers: oazapfts.mergeHeaders(opts?.headers, {
1205
1259
  authorization,
1206
1260
  "x-account-id": xAccountId,
1207
- "x-member-id": xMemberId
1261
+ "x-member-id": xMemberId,
1262
+ "x-username": xUsername
1208
1263
  })
1209
1264
  })));
1210
1265
  }
1266
+ /**
1267
+ * Starts the execution of a step with a user defined script
1268
+ */
1269
+ export function startScriptStepV1QuickCommandsSlugStepsStepSlugStartScriptPost({ slug, stepSlug, quickCommandStartScriptRequest }, opts) {
1270
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/${encodeURIComponent(slug)}/steps/${encodeURIComponent(stepSlug)}/start-script`, oazapfts.json({
1271
+ ...opts,
1272
+ method: "POST",
1273
+ body: quickCommandStartScriptRequest
1274
+ })));
1275
+ }
1276
+ /**
1277
+ * Get the status of a script execution step
1278
+ */
1279
+ export function getScriptExecutionStatusV1QuickCommandsScriptExecutionsScriptExecutionIdGet({ scriptExecutionId }, opts) {
1280
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/script-executions/${encodeURIComponent(scriptExecutionId)}`, {
1281
+ ...opts
1282
+ }));
1283
+ }
1211
1284
  /**
1212
1285
  * List Conversations
1213
1286
  */
1214
- export function listConversationsV1ConversationsGet({ size, page, authorization, xAccountId, xMemberId }, opts) {
1287
+ export function listConversationsV1ConversationsGet({ size, page, authorization, xAccountId, xMemberId, xUsername }, opts) {
1215
1288
  return oazapfts.ok(oazapfts.fetchJson(`/v1/conversations${QS.query(QS.explode({
1216
1289
  size,
1217
1290
  page
@@ -1220,27 +1293,29 @@ export function listConversationsV1ConversationsGet({ size, page, authorization,
1220
1293
  headers: oazapfts.mergeHeaders(opts?.headers, {
1221
1294
  authorization,
1222
1295
  "x-account-id": xAccountId,
1223
- "x-member-id": xMemberId
1296
+ "x-member-id": xMemberId,
1297
+ "x-username": xUsername
1224
1298
  })
1225
1299
  }));
1226
1300
  }
1227
1301
  /**
1228
1302
  * Conversation History
1229
1303
  */
1230
- export function conversationHistoryV1ConversationsConversationIdGet({ conversationId, authorization, xAccountId, xMemberId }, opts) {
1304
+ export function conversationHistoryV1ConversationsConversationIdGet({ conversationId, authorization, xAccountId, xMemberId, xUsername }, opts) {
1231
1305
  return oazapfts.ok(oazapfts.fetchJson(`/v1/conversations/${encodeURIComponent(conversationId)}`, {
1232
1306
  ...opts,
1233
1307
  headers: oazapfts.mergeHeaders(opts?.headers, {
1234
1308
  authorization,
1235
1309
  "x-account-id": xAccountId,
1236
- "x-member-id": xMemberId
1310
+ "x-member-id": xMemberId,
1311
+ "x-username": xUsername
1237
1312
  })
1238
1313
  }));
1239
1314
  }
1240
1315
  /**
1241
1316
  * Update Title
1242
1317
  */
1243
- export function updateTitleV1ConversationsConversationIdPatch({ conversationId, authorization, xAccountId, xMemberId, conversationUpdateTitleRequest }, opts) {
1318
+ export function updateTitleV1ConversationsConversationIdPatch({ conversationId, authorization, xAccountId, xMemberId, xUsername, conversationUpdateTitleRequest }, opts) {
1244
1319
  return oazapfts.ok(oazapfts.fetchJson(`/v1/conversations/${encodeURIComponent(conversationId)}`, oazapfts.json({
1245
1320
  ...opts,
1246
1321
  method: "PATCH",
@@ -1248,34 +1323,37 @@ export function updateTitleV1ConversationsConversationIdPatch({ conversationId,
1248
1323
  headers: oazapfts.mergeHeaders(opts?.headers, {
1249
1324
  authorization,
1250
1325
  "x-account-id": xAccountId,
1251
- "x-member-id": xMemberId
1326
+ "x-member-id": xMemberId,
1327
+ "x-username": xUsername
1252
1328
  })
1253
1329
  })));
1254
1330
  }
1255
1331
  /**
1256
1332
  * Delete Conversation
1257
1333
  */
1258
- export function deleteConversationV1ConversationsConversationIdDelete({ conversationId, authorization, xAccountId, xMemberId }, opts) {
1334
+ export function deleteConversationV1ConversationsConversationIdDelete({ conversationId, authorization, xAccountId, xMemberId, xUsername }, opts) {
1259
1335
  return oazapfts.ok(oazapfts.fetchJson(`/v1/conversations/${encodeURIComponent(conversationId)}`, {
1260
1336
  ...opts,
1261
1337
  method: "DELETE",
1262
1338
  headers: oazapfts.mergeHeaders(opts?.headers, {
1263
1339
  authorization,
1264
1340
  "x-account-id": xAccountId,
1265
- "x-member-id": xMemberId
1341
+ "x-member-id": xMemberId,
1342
+ "x-username": xUsername
1266
1343
  })
1267
1344
  }));
1268
1345
  }
1269
1346
  /**
1270
1347
  * Download Conversation
1271
1348
  */
1272
- export function downloadConversationV1ConversationsConversationIdDownloadGet({ conversationId, authorization, xAccountId, xMemberId }, opts) {
1349
+ export function downloadConversationV1ConversationsConversationIdDownloadGet({ conversationId, authorization, xAccountId, xMemberId, xUsername }, opts) {
1273
1350
  return oazapfts.ok(oazapfts.fetchJson(`/v1/conversations/${encodeURIComponent(conversationId)}/download`, {
1274
1351
  ...opts,
1275
1352
  headers: oazapfts.mergeHeaders(opts?.headers, {
1276
1353
  authorization,
1277
1354
  "x-account-id": xAccountId,
1278
- "x-member-id": xMemberId
1355
+ "x-member-id": xMemberId,
1356
+ "x-username": xUsername
1279
1357
  })
1280
1358
  }));
1281
1359
  }
@@ -1319,13 +1397,14 @@ export function uploadKnowledgeObjectsZipV1DefaultKnowledgeSourcesSlugObjectsBat
1319
1397
  /**
1320
1398
  * Find Knowledge Source Dependencies
1321
1399
  */
1322
- export function findKnowledgeSourceDependenciesV1KnowledgeSourcesSlugDependenciesGet({ slug, authorization, xAccountId, xMemberId }, opts) {
1400
+ export function findKnowledgeSourceDependenciesV1KnowledgeSourcesSlugDependenciesGet({ slug, authorization, xAccountId, xMemberId, xUsername }, opts) {
1323
1401
  return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources/${encodeURIComponent(slug)}/dependencies`, {
1324
1402
  ...opts,
1325
1403
  headers: oazapfts.mergeHeaders(opts?.headers, {
1326
1404
  authorization,
1327
1405
  "x-account-id": xAccountId,
1328
- "x-member-id": xMemberId
1406
+ "x-member-id": xMemberId,
1407
+ "x-username": xUsername
1329
1408
  })
1330
1409
  }));
1331
1410
  }
@@ -1340,13 +1419,158 @@ export function getFlagsV1FlagsGet(opts) {
1340
1419
  /**
1341
1420
  * Get Content Dependencies
1342
1421
  */
1343
- export function getContentDependenciesV1ContentContentTypeContentIdDependenciesGet({ contentType, contentId, authorization, xAccountId, xMemberId }, opts) {
1422
+ export function getContentDependenciesV1ContentContentTypeContentIdDependenciesGet({ contentType, contentId, authorization, xAccountId, xMemberId, xUsername }, opts) {
1344
1423
  return oazapfts.ok(oazapfts.fetchJson(`/v1/content/${encodeURIComponent(contentType)}/${encodeURIComponent(contentId)}/dependencies`, {
1345
1424
  ...opts,
1346
1425
  headers: oazapfts.mergeHeaders(opts?.headers, {
1347
1426
  authorization,
1348
1427
  "x-account-id": xAccountId,
1349
- "x-member-id": xMemberId
1428
+ "x-member-id": xMemberId,
1429
+ "x-username": xUsername
1430
+ })
1431
+ }));
1432
+ }
1433
+ /**
1434
+ * Tokens Daily Usage
1435
+ */
1436
+ export function tokensDailyUsageV1AnalyticsTokensDailyUsageGet({ month, year, accountSlug }, opts) {
1437
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/analytics/tokens/daily-usage${QS.query(QS.explode({
1438
+ month,
1439
+ year,
1440
+ account_slug: accountSlug
1441
+ }))}`, {
1442
+ ...opts
1443
+ }));
1444
+ }
1445
+ /**
1446
+ * Tokens By User
1447
+ */
1448
+ export function tokensByUserV1AnalyticsTokensByUserGet({ month, year, page, pageSize }, opts) {
1449
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/analytics/tokens/by-user${QS.query(QS.explode({
1450
+ month,
1451
+ year,
1452
+ page,
1453
+ page_size: pageSize
1454
+ }))}`, {
1455
+ ...opts
1456
+ }));
1457
+ }
1458
+ /**
1459
+ * Get Reviews By Resource
1460
+ */
1461
+ export function getReviewsByResourceV1ResourcesResourceTypeSlugResourceSlugReviewsGet({ resourceSlug, resourceTypeSlug, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn, authorization, xAccountId, xMemberId, xUsername }, opts) {
1462
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/resources/${encodeURIComponent(resourceTypeSlug)}/${encodeURIComponent(resourceSlug)}/reviews${QS.query(QS.explode({
1463
+ size,
1464
+ page,
1465
+ sort,
1466
+ direction,
1467
+ search,
1468
+ filterMode,
1469
+ filterBy,
1470
+ filterValue,
1471
+ multiFilterMode,
1472
+ filterIn
1473
+ }))}`, {
1474
+ ...opts,
1475
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1476
+ authorization,
1477
+ "x-account-id": xAccountId,
1478
+ "x-member-id": xMemberId,
1479
+ "x-username": xUsername
1480
+ })
1481
+ }));
1482
+ }
1483
+ /**
1484
+ * Create Resource Review
1485
+ */
1486
+ export function createResourceReviewV1ResourcesResourceTypeSlugResourceSlugReviewsPost({ resourceSlug, resourceTypeSlug, authorization, xAccountId, xMemberId, xUsername, resourceReviewRequest }, opts) {
1487
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/resources/${encodeURIComponent(resourceTypeSlug)}/${encodeURIComponent(resourceSlug)}/reviews`, oazapfts.json({
1488
+ ...opts,
1489
+ method: "POST",
1490
+ body: resourceReviewRequest,
1491
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1492
+ authorization,
1493
+ "x-account-id": xAccountId,
1494
+ "x-member-id": xMemberId,
1495
+ "x-username": xUsername
1496
+ })
1497
+ })));
1498
+ }
1499
+ /**
1500
+ * Create Answer For Review
1501
+ */
1502
+ export function createAnswerForReviewV1ResourcesResourceTypeSlugResourceSlugReviewsReviewIdAnswersPost({ reviewId, authorization, xAccountId, xMemberId, xUsername, reviewAnswer }, opts) {
1503
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/resources/${encodeURIComponent(resourceTypeSlug)}/${encodeURIComponent(resourceSlug)}/reviews/${encodeURIComponent(reviewId)}/answers`, oazapfts.json({
1504
+ ...opts,
1505
+ method: "POST",
1506
+ body: reviewAnswer,
1507
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1508
+ authorization,
1509
+ "x-account-id": xAccountId,
1510
+ "x-member-id": xMemberId,
1511
+ "x-username": xUsername
1512
+ })
1513
+ })));
1514
+ }
1515
+ /**
1516
+ * Update Resource Review
1517
+ */
1518
+ export function updateResourceReviewV1ResourcesResourceTypeSlugResourceSlugReviewsReviewIdPatch({ reviewId, authorization, xAccountId, xMemberId, xUsername, resourceReviewRequest }, opts) {
1519
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/resources/${encodeURIComponent(resourceTypeSlug)}/${encodeURIComponent(resourceSlug)}/reviews/${encodeURIComponent(reviewId)}`, oazapfts.json({
1520
+ ...opts,
1521
+ method: "PATCH",
1522
+ body: resourceReviewRequest,
1523
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1524
+ authorization,
1525
+ "x-account-id": xAccountId,
1526
+ "x-member-id": xMemberId,
1527
+ "x-username": xUsername
1528
+ })
1529
+ })));
1530
+ }
1531
+ /**
1532
+ * Delete Resource Review
1533
+ */
1534
+ export function deleteResourceReviewV1ResourcesResourceTypeSlugResourceSlugReviewsReviewIdDelete({ reviewId, authorization, xAccountId, xMemberId, xUsername }, opts) {
1535
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/resources/${encodeURIComponent(resourceTypeSlug)}/${encodeURIComponent(resourceSlug)}/reviews/${encodeURIComponent(reviewId)}`, {
1536
+ ...opts,
1537
+ method: "DELETE",
1538
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1539
+ authorization,
1540
+ "x-account-id": xAccountId,
1541
+ "x-member-id": xMemberId,
1542
+ "x-username": xUsername
1543
+ })
1544
+ }));
1545
+ }
1546
+ /**
1547
+ * Update Review Comment
1548
+ */
1549
+ export function updateReviewCommentV1ResourcesResourceTypeSlugResourceSlugReviewsReviewIdAnswersAnswerIdPatch({ reviewId, answerId, authorization, xAccountId, xMemberId, xUsername, reviewAnswer }, opts) {
1550
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/resources/${encodeURIComponent(resourceTypeSlug)}/${encodeURIComponent(resourceSlug)}/reviews/${encodeURIComponent(reviewId)}/answers/${encodeURIComponent(answerId)}`, oazapfts.json({
1551
+ ...opts,
1552
+ method: "PATCH",
1553
+ body: reviewAnswer,
1554
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1555
+ authorization,
1556
+ "x-account-id": xAccountId,
1557
+ "x-member-id": xMemberId,
1558
+ "x-username": xUsername
1559
+ })
1560
+ })));
1561
+ }
1562
+ /**
1563
+ * Delete Review Comment
1564
+ */
1565
+ export function deleteReviewCommentV1ResourcesResourceTypeSlugResourceSlugReviewsReviewIdAnswersAnswerIdDelete({ reviewId, answerId, authorization, xAccountId, xMemberId, xUsername }, opts) {
1566
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/resources/${encodeURIComponent(resourceTypeSlug)}/${encodeURIComponent(resourceSlug)}/reviews/${encodeURIComponent(reviewId)}/answers/${encodeURIComponent(answerId)}`, {
1567
+ ...opts,
1568
+ method: "DELETE",
1569
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1570
+ authorization,
1571
+ "x-account-id": xAccountId,
1572
+ "x-member-id": xMemberId,
1573
+ "x-username": xUsername
1350
1574
  })
1351
1575
  }));
1352
1576
  }
@@ -1365,7 +1589,7 @@ export function devAssistantV2V2ChatPost({ accept }, opts) {
1365
1589
  /**
1366
1590
  * Quick Commands Run V2
1367
1591
  */
1368
- export function quickCommandsRunV2V2QuickCommandsSlugStepsStepSlugRunPost({ slug, stepSlug, authorization, xAccountId, xMemberId, quickCommandsExecutionRequest }, opts) {
1592
+ export function quickCommandsRunV2V2QuickCommandsSlugStepsStepSlugRunPost({ slug, stepSlug, authorization, xAccountId, xMemberId, xUsername, quickCommandsExecutionRequest }, opts) {
1369
1593
  return oazapfts.ok(oazapfts.fetchJson(`/v2/quick-commands/${encodeURIComponent(slug)}/steps/${encodeURIComponent(stepSlug)}/run`, oazapfts.json({
1370
1594
  ...opts,
1371
1595
  method: "POST",
@@ -1373,14 +1597,15 @@ export function quickCommandsRunV2V2QuickCommandsSlugStepsStepSlugRunPost({ slug
1373
1597
  headers: oazapfts.mergeHeaders(opts?.headers, {
1374
1598
  authorization,
1375
1599
  "x-account-id": xAccountId,
1376
- "x-member-id": xMemberId
1600
+ "x-member-id": xMemberId,
1601
+ "x-username": xUsername
1377
1602
  })
1378
1603
  })));
1379
1604
  }
1380
1605
  /**
1381
1606
  * List All
1382
1607
  */
1383
- export function listAllV2QuickCommandsAllGet({ visibility, order, types, authorization, xAccountId, xMemberId }, opts) {
1608
+ export function listAllV2QuickCommandsAllGet({ visibility, order, types, authorization, xAccountId, xMemberId, xUsername }, opts) {
1384
1609
  return oazapfts.ok(oazapfts.fetchJson(`/v2/quick-commands/all${QS.query(QS.explode({
1385
1610
  visibility,
1386
1611
  order,
@@ -1390,14 +1615,15 @@ export function listAllV2QuickCommandsAllGet({ visibility, order, types, authori
1390
1615
  headers: oazapfts.mergeHeaders(opts?.headers, {
1391
1616
  authorization,
1392
1617
  "x-account-id": xAccountId,
1393
- "x-member-id": xMemberId
1618
+ "x-member-id": xMemberId,
1619
+ "x-username": xUsername
1394
1620
  })
1395
1621
  }));
1396
1622
  }
1397
1623
  /**
1398
1624
  * Dev Assistant V3
1399
1625
  */
1400
- export function devAssistantV3V3ChatPost({ authorization, xAccountId, xMemberId, chatRequest }, opts) {
1626
+ export function devAssistantV3V3ChatPost({ authorization, xAccountId, xMemberId, xUsername, chatRequest }, opts) {
1401
1627
  return oazapfts.ok(oazapfts.fetchJson("/v3/chat", oazapfts.json({
1402
1628
  ...opts,
1403
1629
  method: "POST",
@@ -1405,7 +1631,8 @@ export function devAssistantV3V3ChatPost({ authorization, xAccountId, xMemberId,
1405
1631
  headers: oazapfts.mergeHeaders(opts?.headers, {
1406
1632
  authorization,
1407
1633
  "x-account-id": xAccountId,
1408
- "x-member-id": xMemberId
1634
+ "x-member-id": xMemberId,
1635
+ "x-username": xUsername
1409
1636
  })
1410
1637
  })));
1411
1638
  }