@stack-spot/portal-network 0.154.0 → 0.155.0-beta.2

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 (45) hide show
  1. package/CHANGELOG.md +66 -0
  2. package/dist/api/ai.d.ts +252 -76
  3. package/dist/api/ai.d.ts.map +1 -1
  4. package/dist/api/ai.js +245 -138
  5. package/dist/api/ai.js.map +1 -1
  6. package/dist/api/codeShift.d.ts +101 -196
  7. package/dist/api/codeShift.d.ts.map +1 -1
  8. package/dist/api/codeShift.js +37 -94
  9. package/dist/api/codeShift.js.map +1 -1
  10. package/dist/client/account.d.ts +2 -2
  11. package/dist/client/account.d.ts.map +1 -1
  12. package/dist/client/account.js +2 -2
  13. package/dist/client/account.js.map +1 -1
  14. package/dist/client/agent-tools.d.ts +89 -3
  15. package/dist/client/agent-tools.d.ts.map +1 -1
  16. package/dist/client/agent-tools.js +133 -2
  17. package/dist/client/agent-tools.js.map +1 -1
  18. package/dist/client/agent.d.ts +5 -50
  19. package/dist/client/agent.d.ts.map +1 -1
  20. package/dist/client/agent.js +0 -64
  21. package/dist/client/agent.js.map +1 -1
  22. package/dist/client/ai.d.ts +45 -1
  23. package/dist/client/ai.d.ts.map +1 -1
  24. package/dist/client/ai.js +19 -1
  25. package/dist/client/ai.js.map +1 -1
  26. package/dist/client/code-shift.d.ts +25 -67
  27. package/dist/client/code-shift.d.ts.map +1 -1
  28. package/dist/client/code-shift.js +30 -73
  29. package/dist/client/code-shift.js.map +1 -1
  30. package/dist/client/types.d.ts +5 -4
  31. package/dist/client/types.d.ts.map +1 -1
  32. package/package.json +1 -1
  33. package/readme.md +1 -1
  34. package/src/api/account.ts +1 -0
  35. package/src/api/agent-tools.ts +3 -0
  36. package/src/api/agent.ts +2 -0
  37. package/src/api/ai.ts +436 -145
  38. package/src/api/codeShift.ts +248 -481
  39. package/src/api/notification.ts +2 -0
  40. package/src/client/account.ts +3 -3
  41. package/src/client/agent-tools.ts +102 -3
  42. package/src/client/agent.ts +0 -68
  43. package/src/client/ai.ts +11 -0
  44. package/src/client/code-shift.ts +19 -57
  45. package/src/client/types.ts +7 -5
package/dist/api/ai.js CHANGED
@@ -23,188 +23,202 @@ export function metricsMetricsGet(opts) {
23
23
  /**
24
24
  * Workspace Fork
25
25
  */
26
- export function workspaceForkV1AiStacksWorkspaceForkPost({ authorization, xAccountId, aiStackWorkspaceForkRequest }, opts) {
26
+ export function workspaceForkV1AiStacksWorkspaceForkPost({ authorization, xAccountId, xMemberId, aiStackWorkspaceForkRequest }, opts) {
27
27
  return oazapfts.ok(oazapfts.fetchJson("/v1/ai-stacks/workspace/fork", oazapfts.json({
28
28
  ...opts,
29
29
  method: "POST",
30
30
  body: aiStackWorkspaceForkRequest,
31
31
  headers: oazapfts.mergeHeaders(opts?.headers, {
32
32
  authorization,
33
- "x-account-id": xAccountId
33
+ "x-account-id": xAccountId,
34
+ "x-member-id": xMemberId
34
35
  })
35
36
  })));
36
37
  }
37
38
  /**
38
39
  * Workspace Delete Fork
39
40
  */
40
- export function workspaceDeleteForkV1AiStacksWorkspaceForkDelete({ authorization, xAccountId, aiStackWorkspaceDeleteRequest }, opts) {
41
+ export function workspaceDeleteForkV1AiStacksWorkspaceForkDelete({ authorization, xAccountId, xMemberId, aiStackWorkspaceDeleteRequest }, opts) {
41
42
  return oazapfts.ok(oazapfts.fetchJson("/v1/ai-stacks/workspace/fork", oazapfts.json({
42
43
  ...opts,
43
44
  method: "DELETE",
44
45
  body: aiStackWorkspaceDeleteRequest,
45
46
  headers: oazapfts.mergeHeaders(opts?.headers, {
46
47
  authorization,
47
- "x-account-id": xAccountId
48
+ "x-account-id": xAccountId,
49
+ "x-member-id": xMemberId
48
50
  })
49
51
  })));
50
52
  }
51
53
  /**
52
54
  * Workspace List
53
55
  */
54
- export function workspaceListV1AiStacksWorkspaceListPost({ authorization, xAccountId, aiStackWorkspaceListRequest }, opts) {
56
+ export function workspaceListV1AiStacksWorkspaceListPost({ authorization, xAccountId, xMemberId, aiStackWorkspaceListRequest }, opts) {
55
57
  return oazapfts.ok(oazapfts.fetchJson("/v1/ai-stacks/workspace/list", oazapfts.json({
56
58
  ...opts,
57
59
  method: "POST",
58
60
  body: aiStackWorkspaceListRequest,
59
61
  headers: oazapfts.mergeHeaders(opts?.headers, {
60
62
  authorization,
61
- "x-account-id": xAccountId
63
+ "x-account-id": xAccountId,
64
+ "x-member-id": xMemberId
62
65
  })
63
66
  })));
64
67
  }
65
68
  /**
66
69
  * List Ai Stacks
67
70
  */
68
- export function listAiStacksV1AiStacksGet({ visibility, authorization, xAccountId }, opts) {
71
+ export function listAiStacksV1AiStacksGet({ visibility, authorization, xAccountId, xMemberId }, opts) {
69
72
  return oazapfts.ok(oazapfts.fetchJson(`/v1/ai-stacks${QS.query(QS.explode({
70
73
  visibility
71
74
  }))}`, {
72
75
  ...opts,
73
76
  headers: oazapfts.mergeHeaders(opts?.headers, {
74
77
  authorization,
75
- "x-account-id": xAccountId
78
+ "x-account-id": xAccountId,
79
+ "x-member-id": xMemberId
76
80
  })
77
81
  }));
78
82
  }
79
83
  /**
80
84
  * Create Ai Stack
81
85
  */
82
- export function createAiStackV1AiStacksPost({ authorization, xAccountId, newAiStackRequest }, opts) {
86
+ export function createAiStackV1AiStacksPost({ authorization, xAccountId, xMemberId, newAiStackRequest }, opts) {
83
87
  return oazapfts.ok(oazapfts.fetchJson("/v1/ai-stacks", oazapfts.json({
84
88
  ...opts,
85
89
  method: "POST",
86
90
  body: newAiStackRequest,
87
91
  headers: oazapfts.mergeHeaders(opts?.headers, {
88
92
  authorization,
89
- "x-account-id": xAccountId
93
+ "x-account-id": xAccountId,
94
+ "x-member-id": xMemberId
90
95
  })
91
96
  })));
92
97
  }
93
98
  /**
94
99
  * Update Ai Stack
95
100
  */
96
- export function updateAiStackV1AiStacksStackIdPatch({ stackId, authorization, xAccountId, updateAiStackRequest }, opts) {
101
+ export function updateAiStackV1AiStacksStackIdPatch({ stackId, authorization, xAccountId, xMemberId, updateAiStackRequest }, opts) {
97
102
  return oazapfts.ok(oazapfts.fetchJson(`/v1/ai-stacks/${encodeURIComponent(stackId)}`, oazapfts.json({
98
103
  ...opts,
99
104
  method: "PATCH",
100
105
  body: updateAiStackRequest,
101
106
  headers: oazapfts.mergeHeaders(opts?.headers, {
102
107
  authorization,
103
- "x-account-id": xAccountId
108
+ "x-account-id": xAccountId,
109
+ "x-member-id": xMemberId
104
110
  })
105
111
  })));
106
112
  }
107
113
  /**
108
114
  * Get Ai Stack
109
115
  */
110
- export function getAiStackV1AiStacksStackIdGet({ stackId, authorization, xAccountId }, opts) {
116
+ export function getAiStackV1AiStacksStackIdGet({ stackId, authorization, xAccountId, xMemberId }, opts) {
111
117
  return oazapfts.ok(oazapfts.fetchJson(`/v1/ai-stacks/${encodeURIComponent(stackId)}`, {
112
118
  ...opts,
113
119
  headers: oazapfts.mergeHeaders(opts?.headers, {
114
120
  authorization,
115
- "x-account-id": xAccountId
121
+ "x-account-id": xAccountId,
122
+ "x-member-id": xMemberId
116
123
  })
117
124
  }));
118
125
  }
119
126
  /**
120
127
  * Remove Ai Stack
121
128
  */
122
- export function removeAiStackV1AiStacksStackIdDelete({ stackId, authorization, xAccountId }, opts) {
129
+ export function removeAiStackV1AiStacksStackIdDelete({ stackId, authorization, xAccountId, xMemberId }, opts) {
123
130
  return oazapfts.ok(oazapfts.fetchJson(`/v1/ai-stacks/${encodeURIComponent(stackId)}`, {
124
131
  ...opts,
125
132
  method: "DELETE",
126
133
  headers: oazapfts.mergeHeaders(opts?.headers, {
127
134
  authorization,
128
- "x-account-id": xAccountId
135
+ "x-account-id": xAccountId,
136
+ "x-member-id": xMemberId
129
137
  })
130
138
  }));
131
139
  }
132
140
  /**
133
141
  * Get Ai Stack Exists
134
142
  */
135
- export function getAiStackExistsV1AiStacksStackNameExistsGet({ stackName, authorization, xAccountId }, opts) {
143
+ export function getAiStackExistsV1AiStacksStackNameExistsGet({ stackName, authorization, xAccountId, xMemberId }, opts) {
136
144
  return oazapfts.ok(oazapfts.fetchJson(`/v1/ai-stacks/${encodeURIComponent(stackName)}/exists`, {
137
145
  ...opts,
138
146
  headers: oazapfts.mergeHeaders(opts?.headers, {
139
147
  authorization,
140
- "x-account-id": xAccountId
148
+ "x-account-id": xAccountId,
149
+ "x-member-id": xMemberId
141
150
  })
142
151
  }));
143
152
  }
144
153
  /**
145
154
  * Add Favorite
146
155
  */
147
- export function addFavoriteV1AiStacksStackIdFavoritePost({ stackId, authorization, xAccountId }, opts) {
156
+ export function addFavoriteV1AiStacksStackIdFavoritePost({ stackId, authorization, xAccountId, xMemberId }, opts) {
148
157
  return oazapfts.ok(oazapfts.fetchJson(`/v1/ai-stacks/${encodeURIComponent(stackId)}/favorite`, {
149
158
  ...opts,
150
159
  method: "POST",
151
160
  headers: oazapfts.mergeHeaders(opts?.headers, {
152
161
  authorization,
153
- "x-account-id": xAccountId
162
+ "x-account-id": xAccountId,
163
+ "x-member-id": xMemberId
154
164
  })
155
165
  }));
156
166
  }
157
167
  /**
158
168
  * Delete Favorite
159
169
  */
160
- export function deleteFavoriteV1AiStacksStackIdFavoriteDelete({ stackId, authorization, xAccountId }, opts) {
170
+ export function deleteFavoriteV1AiStacksStackIdFavoriteDelete({ stackId, authorization, xAccountId, xMemberId }, opts) {
161
171
  return oazapfts.ok(oazapfts.fetchJson(`/v1/ai-stacks/${encodeURIComponent(stackId)}/favorite`, {
162
172
  ...opts,
163
173
  method: "DELETE",
164
174
  headers: oazapfts.mergeHeaders(opts?.headers, {
165
175
  authorization,
166
- "x-account-id": xAccountId
176
+ "x-account-id": xAccountId,
177
+ "x-member-id": xMemberId
167
178
  })
168
179
  }));
169
180
  }
170
181
  /**
171
182
  * Fork
172
183
  */
173
- export function forkV1AiStacksStackIdForkPost({ stackId, authorization, xAccountId, aiStackForkRequest }, opts) {
184
+ export function forkV1AiStacksStackIdForkPost({ stackId, authorization, xAccountId, xMemberId, aiStackForkRequest }, opts) {
174
185
  return oazapfts.ok(oazapfts.fetchJson(`/v1/ai-stacks/${encodeURIComponent(stackId)}/fork`, oazapfts.json({
175
186
  ...opts,
176
187
  method: "POST",
177
188
  body: aiStackForkRequest,
178
189
  headers: oazapfts.mergeHeaders(opts?.headers, {
179
190
  authorization,
180
- "x-account-id": xAccountId
191
+ "x-account-id": xAccountId,
192
+ "x-member-id": xMemberId
181
193
  })
182
194
  })));
183
195
  }
184
196
  /**
185
197
  * Share
186
198
  */
187
- export function shareV1AiStacksStackIdSharePost({ stackId, authorization, xAccountId }, opts) {
199
+ export function shareV1AiStacksStackIdSharePost({ stackId, authorization, xAccountId, xMemberId }, opts) {
188
200
  return oazapfts.ok(oazapfts.fetchJson(`/v1/ai-stacks/${encodeURIComponent(stackId)}/share`, {
189
201
  ...opts,
190
202
  method: "POST",
191
203
  headers: oazapfts.mergeHeaders(opts?.headers, {
192
204
  authorization,
193
- "x-account-id": xAccountId
205
+ "x-account-id": xAccountId,
206
+ "x-member-id": xMemberId
194
207
  })
195
208
  }));
196
209
  }
197
210
  /**
198
211
  * Publish
199
212
  */
200
- export function publishV1AiStacksStackIdPublishPost({ stackId, authorization, xAccountId, aiStackPublishRequest }, opts) {
213
+ export function publishV1AiStacksStackIdPublishPost({ stackId, authorization, xAccountId, xMemberId, aiStackPublishRequest }, opts) {
201
214
  return oazapfts.ok(oazapfts.fetchJson(`/v1/ai-stacks/${encodeURIComponent(stackId)}/publish`, oazapfts.json({
202
215
  ...opts,
203
216
  method: "POST",
204
217
  body: aiStackPublishRequest,
205
218
  headers: oazapfts.mergeHeaders(opts?.headers, {
206
219
  authorization,
207
- "x-account-id": xAccountId
220
+ "x-account-id": xAccountId,
221
+ "x-member-id": xMemberId
208
222
  })
209
223
  })));
210
224
  }
@@ -224,14 +238,15 @@ export function projectFilesV1ProjectFilesPost({ authorization, newProjectFilesR
224
238
  /**
225
239
  * Quick Actions
226
240
  */
227
- export function quickActionsV1QuickActionsPost({ authorization, xAccountId, quickActionsRequest }, opts) {
241
+ export function quickActionsV1QuickActionsPost({ authorization, xAccountId, xMemberId, quickActionsRequest }, opts) {
228
242
  return oazapfts.ok(oazapfts.fetchJson("/v1/quick-actions", oazapfts.json({
229
243
  ...opts,
230
244
  method: "POST",
231
245
  body: quickActionsRequest,
232
246
  headers: oazapfts.mergeHeaders(opts?.headers, {
233
247
  authorization,
234
- "x-account-id": xAccountId
248
+ "x-account-id": xAccountId,
249
+ "x-member-id": xMemberId
235
250
  })
236
251
  })));
237
252
  }
@@ -247,28 +262,30 @@ export function devAssistantV1ChatPost(opts) {
247
262
  /**
248
263
  * Autocomplete V1
249
264
  */
250
- export function autocompleteV1V1AutocompletePost({ authorization, xAccountId, autoCompleteRequest }, opts) {
265
+ export function autocompleteV1V1AutocompletePost({ authorization, xAccountId, xMemberId, autoCompleteRequest }, opts) {
251
266
  return oazapfts.ok(oazapfts.fetchJson("/v1/autocomplete", oazapfts.json({
252
267
  ...opts,
253
268
  method: "POST",
254
269
  body: autoCompleteRequest,
255
270
  headers: oazapfts.mergeHeaders(opts?.headers, {
256
271
  authorization,
257
- "x-account-id": xAccountId
272
+ "x-account-id": xAccountId,
273
+ "x-member-id": xMemberId
258
274
  })
259
275
  })));
260
276
  }
261
277
  /**
262
278
  * Post Event
263
279
  */
264
- export function postEventV1EventsPost({ authorization, xAccountId, body }, opts) {
280
+ export function postEventV1EventsPost({ authorization, xAccountId, xMemberId, body }, opts) {
265
281
  return oazapfts.ok(oazapfts.fetchJson("/v1/events", oazapfts.json({
266
282
  ...opts,
267
283
  method: "POST",
268
284
  body,
269
285
  headers: oazapfts.mergeHeaders(opts?.headers, {
270
286
  authorization,
271
- "x-account-id": xAccountId
287
+ "x-account-id": xAccountId,
288
+ "x-member-id": xMemberId
272
289
  })
273
290
  })));
274
291
  }
@@ -320,7 +337,7 @@ export function createKnowledgeSourceV1KnowledgeSourcesPost({ authorization, new
320
337
  /**
321
338
  * List Knowledge Sources
322
339
  */
323
- export function listKnowledgeSourcesV1KnowledgeSourcesGet({ visibility, order, $default, types, authorization, xAccountId }, opts) {
340
+ export function listKnowledgeSourcesV1KnowledgeSourcesGet({ visibility, order, $default, types, authorization, xAccountId, xMemberId }, opts) {
324
341
  return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources${QS.query(QS.explode({
325
342
  visibility,
326
343
  order,
@@ -330,7 +347,8 @@ export function listKnowledgeSourcesV1KnowledgeSourcesGet({ visibility, order, $
330
347
  ...opts,
331
348
  headers: oazapfts.mergeHeaders(opts?.headers, {
332
349
  authorization,
333
- "x-account-id": xAccountId
350
+ "x-account-id": xAccountId,
351
+ "x-member-id": xMemberId
334
352
  })
335
353
  }));
336
354
  }
@@ -361,13 +379,14 @@ export function updateKnowledgeSourceV1KnowledgeSourcesSlugPatch({ slug, authori
361
379
  /**
362
380
  * Delete Knowledge Source
363
381
  */
364
- export function deleteKnowledgeSourceV1KnowledgeSourcesSlugDelete({ slug, authorization, xAccountId }, opts) {
382
+ export function deleteKnowledgeSourceV1KnowledgeSourcesSlugDelete({ slug, authorization, xAccountId, xMemberId }, opts) {
365
383
  return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources/${encodeURIComponent(slug)}`, {
366
384
  ...opts,
367
385
  method: "DELETE",
368
386
  headers: oazapfts.mergeHeaders(opts?.headers, {
369
387
  authorization,
370
- "x-account-id": xAccountId
388
+ "x-account-id": xAccountId,
389
+ "x-member-id": xMemberId
371
390
  })
372
391
  }));
373
392
  }
@@ -385,7 +404,7 @@ export function existsKnowledgeSourceV1KnowledgeSourcesSlugExistsGet({ slug, aut
385
404
  /**
386
405
  * Search
387
406
  */
388
- export function searchV1KnowledgeSourcesSlugSimilaritySearchGet({ slug, q, size, authorization, xAccountId }, opts) {
407
+ export function searchV1KnowledgeSourcesSlugSimilaritySearchGet({ slug, q, size, authorization, xAccountId, xMemberId }, opts) {
389
408
  return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources/${encodeURIComponent(slug)}/similarity-search${QS.query(QS.explode({
390
409
  q,
391
410
  size
@@ -393,7 +412,8 @@ export function searchV1KnowledgeSourcesSlugSimilaritySearchGet({ slug, q, size,
393
412
  ...opts,
394
413
  headers: oazapfts.mergeHeaders(opts?.headers, {
395
414
  authorization,
396
- "x-account-id": xAccountId
415
+ "x-account-id": xAccountId,
416
+ "x-member-id": xMemberId
397
417
  })
398
418
  }));
399
419
  }
@@ -512,14 +532,15 @@ export function findSnippetDocByCustomIdV1KnowledgeSourcesSlugSnippetsIdGet({ sl
512
532
  /**
513
533
  * Vectorize Snippet Knowledge Source
514
534
  */
515
- export function vectorizeSnippetKnowledgeSourceV1KnowledgeSourcesSlugSnippetsPost({ slug, authorization, xAccountId, snippetKnowledgeSourceRequest }, opts) {
535
+ export function vectorizeSnippetKnowledgeSourceV1KnowledgeSourcesSlugSnippetsPost({ slug, authorization, xAccountId, xMemberId, snippetKnowledgeSourceRequest }, opts) {
516
536
  return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources/${encodeURIComponent(slug)}/snippets`, oazapfts.json({
517
537
  ...opts,
518
538
  method: "POST",
519
539
  body: snippetKnowledgeSourceRequest,
520
540
  headers: oazapfts.mergeHeaders(opts?.headers, {
521
541
  authorization,
522
- "x-account-id": xAccountId
542
+ "x-account-id": xAccountId,
543
+ "x-member-id": xMemberId
523
544
  })
524
545
  })));
525
546
  }
@@ -548,14 +569,15 @@ export function findEventDocByCustomIdV1KnowledgeSourcesSlugEventsIdGet({ slug,
548
569
  /**
549
570
  * Vectorize Event Knowledge Source
550
571
  */
551
- export function vectorizeEventKnowledgeSourceV1KnowledgeSourcesSlugEventsPost({ slug, authorization, xAccountId, body }, opts) {
572
+ export function vectorizeEventKnowledgeSourceV1KnowledgeSourcesSlugEventsPost({ slug, authorization, xAccountId, xMemberId, body }, opts) {
552
573
  return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources/${encodeURIComponent(slug)}/events`, oazapfts.json({
553
574
  ...opts,
554
575
  method: "POST",
555
576
  body,
556
577
  headers: oazapfts.mergeHeaders(opts?.headers, {
557
578
  authorization,
558
- "x-account-id": xAccountId
579
+ "x-account-id": xAccountId,
580
+ "x-member-id": xMemberId
559
581
  })
560
582
  })));
561
583
  }
@@ -573,14 +595,15 @@ export function findCustomDocByCustomIdV1KnowledgeSourcesSlugCustomIdGet({ slug,
573
595
  /**
574
596
  * Vectorize Custom Knowledge Source
575
597
  */
576
- export function vectorizeCustomKnowledgeSourceV1KnowledgeSourcesSlugCustomPost({ slug, authorization, xAccountId, customKnowledgeSourceRequest }, opts) {
598
+ export function vectorizeCustomKnowledgeSourceV1KnowledgeSourcesSlugCustomPost({ slug, authorization, xAccountId, xMemberId, customKnowledgeSourceRequest }, opts) {
577
599
  return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources/${encodeURIComponent(slug)}/custom`, oazapfts.json({
578
600
  ...opts,
579
601
  method: "POST",
580
602
  body: customKnowledgeSourceRequest,
581
603
  headers: oazapfts.mergeHeaders(opts?.headers, {
582
604
  authorization,
583
- "x-account-id": xAccountId
605
+ "x-account-id": xAccountId,
606
+ "x-member-id": xMemberId
584
607
  })
585
608
  })));
586
609
  }
@@ -609,55 +632,59 @@ export function searchKnowledgeSourcesV1KnowledgeSourcesSearchPost({ authorizati
609
632
  /**
610
633
  * Change Llm
611
634
  */
612
- export function changeLlmV1AccountsLlmPatch({ authorization, xAccountId, accountSettingsChangeLlmRequest }, opts) {
635
+ export function changeLlmV1AccountsLlmPatch({ authorization, xAccountId, xMemberId, accountSettingsChangeLlmRequest }, opts) {
613
636
  return oazapfts.ok(oazapfts.fetchJson("/v1/accounts/llm", oazapfts.json({
614
637
  ...opts,
615
638
  method: "PATCH",
616
639
  body: accountSettingsChangeLlmRequest,
617
640
  headers: oazapfts.mergeHeaders(opts?.headers, {
618
641
  authorization,
619
- "x-account-id": xAccountId
642
+ "x-account-id": xAccountId,
643
+ "x-member-id": xMemberId
620
644
  })
621
645
  })));
622
646
  }
623
647
  /**
624
648
  * Change Limit
625
649
  */
626
- export function changeLimitV1AccountsTokenLimitsPut({ authorization, xAccountId, accountSettingsChangeLimitRequest }, opts) {
650
+ export function changeLimitV1AccountsTokenLimitsPut({ authorization, xAccountId, xMemberId, accountSettingsChangeLimitRequest }, opts) {
627
651
  return oazapfts.ok(oazapfts.fetchJson("/v1/accounts/token-limits", oazapfts.json({
628
652
  ...opts,
629
653
  method: "PUT",
630
654
  body: accountSettingsChangeLimitRequest,
631
655
  headers: oazapfts.mergeHeaders(opts?.headers, {
632
656
  authorization,
633
- "x-account-id": xAccountId
657
+ "x-account-id": xAccountId,
658
+ "x-member-id": xMemberId
634
659
  })
635
660
  })));
636
661
  }
637
662
  /**
638
663
  * Reset Limit
639
664
  */
640
- export function resetLimitV1AccountsTokenLimitsDelete({ authorization, xAccountId }, opts) {
665
+ export function resetLimitV1AccountsTokenLimitsDelete({ authorization, xAccountId, xMemberId }, opts) {
641
666
  return oazapfts.ok(oazapfts.fetchJson("/v1/accounts/token-limits", {
642
667
  ...opts,
643
668
  method: "DELETE",
644
669
  headers: oazapfts.mergeHeaders(opts?.headers, {
645
670
  authorization,
646
- "x-account-id": xAccountId
671
+ "x-account-id": xAccountId,
672
+ "x-member-id": xMemberId
647
673
  })
648
674
  }));
649
675
  }
650
676
  /**
651
677
  * Change External Rqc
652
678
  */
653
- export function changeExternalRqcV1AccountsExternalRqcPatch({ authorization, xAccountId, accountSettingsChangeErqcRequest }, opts) {
679
+ export function changeExternalRqcV1AccountsExternalRqcPatch({ authorization, xAccountId, xMemberId, accountSettingsChangeErqcRequest }, opts) {
654
680
  return oazapfts.ok(oazapfts.fetchJson("/v1/accounts/external-rqc", oazapfts.json({
655
681
  ...opts,
656
682
  method: "PATCH",
657
683
  body: accountSettingsChangeErqcRequest,
658
684
  headers: oazapfts.mergeHeaders(opts?.headers, {
659
685
  authorization,
660
- "x-account-id": xAccountId
686
+ "x-account-id": xAccountId,
687
+ "x-member-id": xMemberId
661
688
  })
662
689
  })));
663
690
  }
@@ -679,22 +706,31 @@ export function changeExternalConfigsV1AccountsExternalConfigPatch({ body }, opt
679
706
  body
680
707
  })));
681
708
  }
709
+ /**
710
+ * Tokens Usage
711
+ */
712
+ export function tokensUsageV1AccountsTokensUsageGet(opts) {
713
+ return oazapfts.ok(oazapfts.fetchJson("/v1/accounts/tokens-usage", {
714
+ ...opts
715
+ }));
716
+ }
682
717
  /**
683
718
  * Current
684
719
  */
685
- export function currentV1TokensUsageTotalGet({ authorization, xAccountId }, opts) {
720
+ export function currentV1TokensUsageTotalGet({ authorization, xAccountId, xMemberId }, opts) {
686
721
  return oazapfts.ok(oazapfts.fetchJson("/v1/tokens-usage/total", {
687
722
  ...opts,
688
723
  headers: oazapfts.mergeHeaders(opts?.headers, {
689
724
  authorization,
690
- "x-account-id": xAccountId
725
+ "x-account-id": xAccountId,
726
+ "x-member-id": xMemberId
691
727
  })
692
728
  }));
693
729
  }
694
730
  /**
695
731
  * Current
696
732
  */
697
- export function currentV1TokensUsageCurrentGet({ year, month, authorization, xAccountId }, opts) {
733
+ export function currentV1TokensUsageCurrentGet({ year, month, authorization, xAccountId, xMemberId }, opts) {
698
734
  return oazapfts.ok(oazapfts.fetchJson(`/v1/tokens-usage/current${QS.query(QS.explode({
699
735
  year,
700
736
  month
@@ -702,28 +738,30 @@ export function currentV1TokensUsageCurrentGet({ year, month, authorization, xAc
702
738
  ...opts,
703
739
  headers: oazapfts.mergeHeaders(opts?.headers, {
704
740
  authorization,
705
- "x-account-id": xAccountId
741
+ "x-account-id": xAccountId,
742
+ "x-member-id": xMemberId
706
743
  })
707
744
  }));
708
745
  }
709
746
  /**
710
747
  * Monthly
711
748
  */
712
- export function monthlyV1TokensUsageMonthlyGet({ year, authorization, xAccountId }, opts) {
749
+ export function monthlyV1TokensUsageMonthlyGet({ year, authorization, xAccountId, xMemberId }, opts) {
713
750
  return oazapfts.ok(oazapfts.fetchJson(`/v1/tokens-usage/monthly${QS.query(QS.explode({
714
751
  year
715
752
  }))}`, {
716
753
  ...opts,
717
754
  headers: oazapfts.mergeHeaders(opts?.headers, {
718
755
  authorization,
719
- "x-account-id": xAccountId
756
+ "x-account-id": xAccountId,
757
+ "x-member-id": xMemberId
720
758
  })
721
759
  }));
722
760
  }
723
761
  /**
724
762
  * Top Users
725
763
  */
726
- export function topUsersV1TokensUsageTopUsersGet({ year, month, authorization, xAccountId }, opts) {
764
+ export function topUsersV1TokensUsageTopUsersGet({ year, month, authorization, xAccountId, xMemberId }, opts) {
727
765
  return oazapfts.ok(oazapfts.fetchJson(`/v1/tokens-usage/top-users${QS.query(QS.explode({
728
766
  year,
729
767
  month
@@ -731,109 +769,117 @@ export function topUsersV1TokensUsageTopUsersGet({ year, month, authorization, x
731
769
  ...opts,
732
770
  headers: oazapfts.mergeHeaders(opts?.headers, {
733
771
  authorization,
734
- "x-account-id": xAccountId
772
+ "x-account-id": xAccountId,
773
+ "x-member-id": xMemberId
735
774
  })
736
775
  }));
737
776
  }
738
777
  /**
739
778
  * Add Association
740
779
  */
741
- export function addAssociationV1WorkspaceWorkspaceIdPost({ workspaceId, authorization, xAccountId, addWorkspaceKnowledgeSourceRequest }, opts) {
780
+ export function addAssociationV1WorkspaceWorkspaceIdPost({ workspaceId, authorization, xAccountId, xMemberId, addWorkspaceKnowledgeSourceRequest }, opts) {
742
781
  return oazapfts.ok(oazapfts.fetchJson(`/v1/workspace/${encodeURIComponent(workspaceId)}`, oazapfts.json({
743
782
  ...opts,
744
783
  method: "POST",
745
784
  body: addWorkspaceKnowledgeSourceRequest,
746
785
  headers: oazapfts.mergeHeaders(opts?.headers, {
747
786
  authorization,
748
- "x-account-id": xAccountId
787
+ "x-account-id": xAccountId,
788
+ "x-member-id": xMemberId
749
789
  })
750
790
  })));
751
791
  }
752
792
  /**
753
793
  * List Association
754
794
  */
755
- export function listAssociationV1WorkspaceWorkspaceIdGet({ workspaceId, authorization, xAccountId }, opts) {
795
+ export function listAssociationV1WorkspaceWorkspaceIdGet({ workspaceId, authorization, xAccountId, xMemberId }, opts) {
756
796
  return oazapfts.ok(oazapfts.fetchJson(`/v1/workspace/${encodeURIComponent(workspaceId)}`, {
757
797
  ...opts,
758
798
  headers: oazapfts.mergeHeaders(opts?.headers, {
759
799
  authorization,
760
- "x-account-id": xAccountId
800
+ "x-account-id": xAccountId,
801
+ "x-member-id": xMemberId
761
802
  })
762
803
  }));
763
804
  }
764
805
  /**
765
806
  * Delete Association
766
807
  */
767
- export function deleteAssociationV1WorkspaceWorkspaceIdKnowledgeSourceKnowledgeSourceSlugDelete({ workspaceId, knowledgeSourceSlug, authorization, xAccountId }, opts) {
808
+ export function deleteAssociationV1WorkspaceWorkspaceIdKnowledgeSourceKnowledgeSourceSlugDelete({ workspaceId, knowledgeSourceSlug, authorization, xAccountId, xMemberId }, opts) {
768
809
  return oazapfts.ok(oazapfts.fetchJson(`/v1/workspace/${encodeURIComponent(workspaceId)}/knowledge_source/${encodeURIComponent(knowledgeSourceSlug)}`, {
769
810
  ...opts,
770
811
  method: "DELETE",
771
812
  headers: oazapfts.mergeHeaders(opts?.headers, {
772
813
  authorization,
773
- "x-account-id": xAccountId
814
+ "x-account-id": xAccountId,
815
+ "x-member-id": xMemberId
774
816
  })
775
817
  }));
776
818
  }
777
819
  /**
778
820
  * Workspace Fork
779
821
  */
780
- export function workspaceForkV1QuickCommandsWorkspaceForkPost({ authorization, xAccountId, quickCommandWorkspaceForkRequest }, opts) {
822
+ export function workspaceForkV1QuickCommandsWorkspaceForkPost({ authorization, xAccountId, xMemberId, quickCommandWorkspaceForkRequest }, opts) {
781
823
  return oazapfts.ok(oazapfts.fetchJson("/v1/quick-commands/workspace/fork", oazapfts.json({
782
824
  ...opts,
783
825
  method: "POST",
784
826
  body: quickCommandWorkspaceForkRequest,
785
827
  headers: oazapfts.mergeHeaders(opts?.headers, {
786
828
  authorization,
787
- "x-account-id": xAccountId
829
+ "x-account-id": xAccountId,
830
+ "x-member-id": xMemberId
788
831
  })
789
832
  })));
790
833
  }
791
834
  /**
792
835
  * Workspace Delete Fork
793
836
  */
794
- export function workspaceDeleteForkV1QuickCommandsWorkspaceForkDelete({ authorization, xAccountId, quickCommandWorkspaceDeleteRequest }, opts) {
837
+ export function workspaceDeleteForkV1QuickCommandsWorkspaceForkDelete({ authorization, xAccountId, xMemberId, quickCommandWorkspaceDeleteRequest }, opts) {
795
838
  return oazapfts.ok(oazapfts.fetchJson("/v1/quick-commands/workspace/fork", oazapfts.json({
796
839
  ...opts,
797
840
  method: "DELETE",
798
841
  body: quickCommandWorkspaceDeleteRequest,
799
842
  headers: oazapfts.mergeHeaders(opts?.headers, {
800
843
  authorization,
801
- "x-account-id": xAccountId
844
+ "x-account-id": xAccountId,
845
+ "x-member-id": xMemberId
802
846
  })
803
847
  })));
804
848
  }
805
849
  /**
806
850
  * Workspace List
807
851
  */
808
- export function workspaceListV1QuickCommandsWorkspaceListPost({ authorization, xAccountId, quickCommandWorkspaceListRequest }, opts) {
852
+ export function workspaceListV1QuickCommandsWorkspaceListPost({ authorization, xAccountId, xMemberId, quickCommandWorkspaceListRequest }, opts) {
809
853
  return oazapfts.ok(oazapfts.fetchJson("/v1/quick-commands/workspace/list", oazapfts.json({
810
854
  ...opts,
811
855
  method: "POST",
812
856
  body: quickCommandWorkspaceListRequest,
813
857
  headers: oazapfts.mergeHeaders(opts?.headers, {
814
858
  authorization,
815
- "x-account-id": xAccountId
859
+ "x-account-id": xAccountId,
860
+ "x-member-id": xMemberId
816
861
  })
817
862
  })));
818
863
  }
819
864
  /**
820
865
  * Create Quick Command
821
866
  */
822
- export function createQuickCommandV1QuickCommandsPost({ authorization, xAccountId, quickCommandsCreateRequest }, opts) {
867
+ export function createQuickCommandV1QuickCommandsPost({ authorization, xAccountId, xMemberId, quickCommandsCreateRequest }, opts) {
823
868
  return oazapfts.ok(oazapfts.fetchJson("/v1/quick-commands", oazapfts.json({
824
869
  ...opts,
825
870
  method: "POST",
826
871
  body: quickCommandsCreateRequest,
827
872
  headers: oazapfts.mergeHeaders(opts?.headers, {
828
873
  authorization,
829
- "x-account-id": xAccountId
874
+ "x-account-id": xAccountId,
875
+ "x-member-id": xMemberId
830
876
  })
831
877
  })));
832
878
  }
833
879
  /**
834
880
  * List All
835
881
  */
836
- export function listAllV1QuickCommandsAllGet({ visibility, order, types, authorization, xAccountId }, opts) {
882
+ export function listAllV1QuickCommandsAllGet({ visibility, order, types, authorization, xAccountId, xMemberId }, opts) {
837
883
  return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/all${QS.query(QS.explode({
838
884
  visibility,
839
885
  order,
@@ -842,237 +888,270 @@ export function listAllV1QuickCommandsAllGet({ visibility, order, types, authori
842
888
  ...opts,
843
889
  headers: oazapfts.mergeHeaders(opts?.headers, {
844
890
  authorization,
845
- "x-account-id": xAccountId
891
+ "x-account-id": xAccountId,
892
+ "x-member-id": xMemberId
846
893
  })
847
894
  }));
848
895
  }
849
896
  /**
850
897
  * Update Quick Command
851
898
  */
852
- export function updateQuickCommandV1QuickCommandsSlugPatch({ slug, authorization, xAccountId, quickCommandsUpdateRequest }, opts) {
899
+ export function updateQuickCommandV1QuickCommandsSlugPatch({ slug, authorization, xAccountId, xMemberId, quickCommandsUpdateRequest }, opts) {
853
900
  return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/${encodeURIComponent(slug)}`, oazapfts.json({
854
901
  ...opts,
855
902
  method: "PATCH",
856
903
  body: quickCommandsUpdateRequest,
857
904
  headers: oazapfts.mergeHeaders(opts?.headers, {
858
905
  authorization,
859
- "x-account-id": xAccountId
906
+ "x-account-id": xAccountId,
907
+ "x-member-id": xMemberId
860
908
  })
861
909
  })));
862
910
  }
863
911
  /**
864
912
  * Get Quick Command
865
913
  */
866
- export function getQuickCommandV1QuickCommandsSlugGet({ slug, findAgents, authorization, xAccountId }, opts) {
914
+ export function getQuickCommandV1QuickCommandsSlugGet({ slug, findAgents, authorization, xAccountId, xMemberId }, opts) {
867
915
  return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/${encodeURIComponent(slug)}${QS.query(QS.explode({
868
916
  find_agents: findAgents
869
917
  }))}`, {
870
918
  ...opts,
871
919
  headers: oazapfts.mergeHeaders(opts?.headers, {
872
920
  authorization,
873
- "x-account-id": xAccountId
921
+ "x-account-id": xAccountId,
922
+ "x-member-id": xMemberId
874
923
  })
875
924
  }));
876
925
  }
877
926
  /**
878
927
  * Delete Quick Command
879
928
  */
880
- export function deleteQuickCommandV1QuickCommandsSlugDelete({ slug, authorization, xAccountId }, opts) {
929
+ export function deleteQuickCommandV1QuickCommandsSlugDelete({ slug, authorization, xAccountId, xMemberId }, opts) {
881
930
  return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/${encodeURIComponent(slug)}`, {
882
931
  ...opts,
883
932
  method: "DELETE",
884
933
  headers: oazapfts.mergeHeaders(opts?.headers, {
885
934
  authorization,
886
- "x-account-id": xAccountId
935
+ "x-account-id": xAccountId,
936
+ "x-member-id": xMemberId
887
937
  })
888
938
  }));
889
939
  }
890
940
  /**
891
941
  * Add Favorite
892
942
  */
893
- export function addFavoriteV1QuickCommandsSlugFavoritePost({ slug, authorization, xAccountId }, opts) {
943
+ export function addFavoriteV1QuickCommandsSlugFavoritePost({ slug, authorization, xAccountId, xMemberId }, opts) {
894
944
  return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/${encodeURIComponent(slug)}/favorite`, {
895
945
  ...opts,
896
946
  method: "POST",
897
947
  headers: oazapfts.mergeHeaders(opts?.headers, {
898
948
  authorization,
899
- "x-account-id": xAccountId
949
+ "x-account-id": xAccountId,
950
+ "x-member-id": xMemberId
900
951
  })
901
952
  }));
902
953
  }
903
954
  /**
904
955
  * Delete Favorite
905
956
  */
906
- export function deleteFavoriteV1QuickCommandsSlugFavoriteDelete({ slug, authorization, xAccountId }, opts) {
957
+ export function deleteFavoriteV1QuickCommandsSlugFavoriteDelete({ slug, authorization, xAccountId, xMemberId }, opts) {
907
958
  return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/${encodeURIComponent(slug)}/favorite`, {
908
959
  ...opts,
909
960
  method: "DELETE",
910
961
  headers: oazapfts.mergeHeaders(opts?.headers, {
911
962
  authorization,
912
- "x-account-id": xAccountId
963
+ "x-account-id": xAccountId,
964
+ "x-member-id": xMemberId
913
965
  })
914
966
  }));
915
967
  }
916
968
  /**
917
969
  * Share
918
970
  */
919
- export function shareV1QuickCommandsSlugSharePost({ slug, authorization, xAccountId }, opts) {
971
+ export function shareV1QuickCommandsSlugSharePost({ slug, authorization, xAccountId, xMemberId }, opts) {
920
972
  return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/${encodeURIComponent(slug)}/share`, {
921
973
  ...opts,
922
974
  method: "POST",
923
975
  headers: oazapfts.mergeHeaders(opts?.headers, {
924
976
  authorization,
925
- "x-account-id": xAccountId
977
+ "x-account-id": xAccountId,
978
+ "x-member-id": xMemberId
926
979
  })
927
980
  }));
928
981
  }
929
982
  /**
930
983
  * Publish
931
984
  */
932
- export function publishV1QuickCommandsSlugPublishPost({ slug, authorization, xAccountId, quickCommandPublishRequest }, opts) {
985
+ export function publishV1QuickCommandsSlugPublishPost({ slug, authorization, xAccountId, xMemberId, quickCommandPublishRequest }, opts) {
933
986
  return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/${encodeURIComponent(slug)}/publish`, oazapfts.json({
934
987
  ...opts,
935
988
  method: "POST",
936
989
  body: quickCommandPublishRequest,
937
990
  headers: oazapfts.mergeHeaders(opts?.headers, {
938
991
  authorization,
939
- "x-account-id": xAccountId
992
+ "x-account-id": xAccountId,
993
+ "x-member-id": xMemberId
940
994
  })
941
995
  })));
942
996
  }
943
997
  /**
944
998
  * Fork
945
999
  */
946
- export function forkV1QuickCommandsSlugForkPost({ slug, authorization, xAccountId, quickCommandsMakeACopyRequest }, opts) {
1000
+ export function forkV1QuickCommandsSlugForkPost({ slug, authorization, xAccountId, xMemberId, quickCommandsMakeACopyRequest }, opts) {
947
1001
  return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/${encodeURIComponent(slug)}/fork`, oazapfts.json({
948
1002
  ...opts,
949
1003
  method: "POST",
950
1004
  body: quickCommandsMakeACopyRequest,
951
1005
  headers: oazapfts.mergeHeaders(opts?.headers, {
952
1006
  authorization,
953
- "x-account-id": xAccountId
1007
+ "x-account-id": xAccountId,
1008
+ "x-member-id": xMemberId
954
1009
  })
955
1010
  })));
956
1011
  }
957
1012
  /**
958
1013
  * Get Quick Command
959
1014
  */
960
- export function getQuickCommandV1QuickCommandsSlugExistsGet({ slug, authorization, xAccountId }, opts) {
1015
+ export function getQuickCommandV1QuickCommandsSlugExistsGet({ slug, authorization, xAccountId, xMemberId }, opts) {
961
1016
  return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/${encodeURIComponent(slug)}/exists`, {
962
1017
  ...opts,
963
1018
  headers: oazapfts.mergeHeaders(opts?.headers, {
964
1019
  authorization,
965
- "x-account-id": xAccountId
1020
+ "x-account-id": xAccountId,
1021
+ "x-member-id": xMemberId
966
1022
  })
967
1023
  }));
968
1024
  }
969
1025
  /**
970
1026
  * Get Quick Command By Ks Slug
971
1027
  */
972
- export function getQuickCommandByKsSlugV1QuickCommandsKnowledgeSourcesSlugGet({ slug, authorization, xAccountId }, opts) {
1028
+ export function getQuickCommandByKsSlugV1QuickCommandsKnowledgeSourcesSlugGet({ slug, authorization, xAccountId, xMemberId }, opts) {
973
1029
  return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/knowledge-sources/${encodeURIComponent(slug)}`, {
974
1030
  ...opts,
975
1031
  headers: oazapfts.mergeHeaders(opts?.headers, {
976
1032
  authorization,
977
- "x-account-id": xAccountId
1033
+ "x-account-id": xAccountId,
1034
+ "x-member-id": xMemberId
978
1035
  })
979
1036
  }));
980
1037
  }
981
1038
  /**
982
1039
  * Get Quick Commands By Agent Id
983
1040
  */
984
- export function getQuickCommandsByAgentIdV1QuickCommandsAgentsAgentIdGet({ agentId, authorization, xAccountId }, opts) {
1041
+ export function getQuickCommandsByAgentIdV1QuickCommandsAgentsAgentIdGet({ agentId, authorization, xAccountId, xMemberId }, opts) {
985
1042
  return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/agents/${encodeURIComponent(agentId)}`, {
986
1043
  ...opts,
987
1044
  headers: oazapfts.mergeHeaders(opts?.headers, {
988
1045
  authorization,
989
- "x-account-id": xAccountId
1046
+ "x-account-id": xAccountId,
1047
+ "x-member-id": xMemberId
990
1048
  })
991
1049
  }));
992
1050
  }
993
1051
  /**
994
1052
  * Disassociate Agent
995
1053
  */
996
- export function disassociateAgentV1QuickCommandsAgentsAgentIdDelete({ agentId, authorization, xAccountId }, opts) {
1054
+ export function disassociateAgentV1QuickCommandsAgentsAgentIdDelete({ agentId, authorization, xAccountId, xMemberId }, opts) {
997
1055
  return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/agents/${encodeURIComponent(agentId)}`, {
998
1056
  ...opts,
999
1057
  method: "DELETE",
1000
1058
  headers: oazapfts.mergeHeaders(opts?.headers, {
1001
1059
  authorization,
1002
- "x-account-id": xAccountId
1060
+ "x-account-id": xAccountId,
1061
+ "x-member-id": xMemberId
1003
1062
  })
1004
1063
  }));
1005
1064
  }
1006
1065
  /**
1007
1066
  * List By Workspace Id
1008
1067
  */
1009
- export function listByWorkspaceIdV1QuickCommandsWorkspacesWorkspaceIdGet({ workspaceId, authorization, xAccountId }, opts) {
1068
+ export function listByWorkspaceIdV1QuickCommandsWorkspacesWorkspaceIdGet({ workspaceId, authorization, xAccountId, xMemberId }, opts) {
1010
1069
  return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/workspaces/${encodeURIComponent(workspaceId)}`, {
1011
1070
  ...opts,
1012
1071
  headers: oazapfts.mergeHeaders(opts?.headers, {
1013
1072
  authorization,
1014
- "x-account-id": xAccountId
1073
+ "x-account-id": xAccountId,
1074
+ "x-member-id": xMemberId
1015
1075
  })
1016
1076
  }));
1017
1077
  }
1018
1078
  /**
1019
1079
  * Format Fetch Step
1020
1080
  */
1021
- export function formatFetchStepV1QuickCommandsSlugStepsStepSlugFetchFormatPost({ slug, stepSlug, authorization, xAccountId, quickCommandsExecutionRequest }, opts) {
1081
+ export function formatFetchStepV1QuickCommandsSlugStepsStepSlugFetchFormatPost({ slug, stepSlug, authorization, xAccountId, xMemberId, quickCommandsExecutionRequest }, opts) {
1022
1082
  return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/${encodeURIComponent(slug)}/steps/${encodeURIComponent(stepSlug)}/fetch_format`, oazapfts.json({
1023
1083
  ...opts,
1024
1084
  method: "POST",
1025
1085
  body: quickCommandsExecutionRequest,
1026
1086
  headers: oazapfts.mergeHeaders(opts?.headers, {
1027
1087
  authorization,
1028
- "x-account-id": xAccountId
1088
+ "x-account-id": xAccountId,
1089
+ "x-member-id": xMemberId
1029
1090
  })
1030
1091
  })));
1031
1092
  }
1032
1093
  /**
1033
1094
  * Format Result
1034
1095
  */
1035
- export function formatResultV1QuickCommandsSlugResultFormatPost({ slug, authorization, xAccountId, quickCommandsExecutionRequest }, opts) {
1096
+ export function formatResultV1QuickCommandsSlugResultFormatPost({ slug, authorization, xAccountId, xMemberId, quickCommandsExecutionRequest }, opts) {
1036
1097
  return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/${encodeURIComponent(slug)}/result_format`, oazapfts.json({
1037
1098
  ...opts,
1038
1099
  method: "POST",
1039
1100
  body: quickCommandsExecutionRequest,
1040
1101
  headers: oazapfts.mergeHeaders(opts?.headers, {
1041
1102
  authorization,
1042
- "x-account-id": xAccountId
1103
+ "x-account-id": xAccountId,
1104
+ "x-member-id": xMemberId
1105
+ })
1106
+ })));
1107
+ }
1108
+ /**
1109
+ * Calculates the next route for a ROUTER step
1110
+ */
1111
+ export function calculateNextStepV1QuickCommandsSlugStepsStepSlugCalculateNextStepPost({ slug, stepSlug, authorization, xAccountId, xMemberId, quickCommandEvaluateStepRouterRequest }, opts) {
1112
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/${encodeURIComponent(slug)}/steps/${encodeURIComponent(stepSlug)}/calculate_next_step`, oazapfts.json({
1113
+ ...opts,
1114
+ method: "POST",
1115
+ body: quickCommandEvaluateStepRouterRequest,
1116
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1117
+ authorization,
1118
+ "x-account-id": xAccountId,
1119
+ "x-member-id": xMemberId
1043
1120
  })
1044
1121
  })));
1045
1122
  }
1046
1123
  /**
1047
1124
  * Add Workspace
1048
1125
  */
1049
- export function addWorkspaceV1QuickCommandsSlugWorkspacesWorkspaceIdAddPost({ slug, workspaceId, authorization, xAccountId }, opts) {
1126
+ export function addWorkspaceV1QuickCommandsSlugWorkspacesWorkspaceIdAddPost({ slug, workspaceId, authorization, xAccountId, xMemberId }, opts) {
1050
1127
  return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/${encodeURIComponent(slug)}/workspaces/${encodeURIComponent(workspaceId)}/add`, {
1051
1128
  ...opts,
1052
1129
  method: "POST",
1053
1130
  headers: oazapfts.mergeHeaders(opts?.headers, {
1054
1131
  authorization,
1055
- "x-account-id": xAccountId
1132
+ "x-account-id": xAccountId,
1133
+ "x-member-id": xMemberId
1056
1134
  })
1057
1135
  }));
1058
1136
  }
1059
1137
  /**
1060
1138
  * Remove Workspace
1061
1139
  */
1062
- export function removeWorkspaceV1QuickCommandsSlugWorkspacesWorkspaceIdRemoveDelete({ slug, workspaceId, authorization, xAccountId }, opts) {
1140
+ export function removeWorkspaceV1QuickCommandsSlugWorkspacesWorkspaceIdRemoveDelete({ slug, workspaceId, authorization, xAccountId, xMemberId }, opts) {
1063
1141
  return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/${encodeURIComponent(slug)}/workspaces/${encodeURIComponent(workspaceId)}/remove`, {
1064
1142
  ...opts,
1065
1143
  method: "DELETE",
1066
1144
  headers: oazapfts.mergeHeaders(opts?.headers, {
1067
1145
  authorization,
1068
- "x-account-id": xAccountId
1146
+ "x-account-id": xAccountId,
1147
+ "x-member-id": xMemberId
1069
1148
  })
1070
1149
  }));
1071
1150
  }
1072
1151
  /**
1073
1152
  * Create Execution
1074
1153
  */
1075
- export function createExecutionV1QuickCommandsCreateExecutionSlugPost({ slug, conversationId, authorization, xAccountId, quickCommandCreateRequest }, opts) {
1154
+ export function createExecutionV1QuickCommandsCreateExecutionSlugPost({ slug, conversationId, authorization, xAccountId, xMemberId, quickCommandCreateRequest }, opts) {
1076
1155
  return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/create-execution/${encodeURIComponent(slug)}${QS.query(QS.explode({
1077
1156
  conversation_id: conversationId
1078
1157
  }))}`, oazapfts.json({
@@ -1081,40 +1160,58 @@ export function createExecutionV1QuickCommandsCreateExecutionSlugPost({ slug, co
1081
1160
  body: quickCommandCreateRequest,
1082
1161
  headers: oazapfts.mergeHeaders(opts?.headers, {
1083
1162
  authorization,
1084
- "x-account-id": xAccountId
1163
+ "x-account-id": xAccountId,
1164
+ "x-member-id": xMemberId
1165
+ })
1166
+ })));
1167
+ }
1168
+ /**
1169
+ * Triggers asynchronous execution of a Remote Quick Command
1170
+ */
1171
+ export function executeV1QuickCommandsExecuteExecutionIdPost({ executionId, authorization, xAccountId, xMemberId, quickCommandExecutionRequest }, opts) {
1172
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/execute/${encodeURIComponent(executionId)}`, oazapfts.json({
1173
+ ...opts,
1174
+ method: "POST",
1175
+ body: quickCommandExecutionRequest,
1176
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1177
+ authorization,
1178
+ "x-account-id": xAccountId,
1179
+ "x-member-id": xMemberId
1085
1180
  })
1086
1181
  })));
1087
1182
  }
1088
1183
  /**
1089
1184
  * Callback
1090
1185
  */
1091
- export function callbackV1QuickCommandsCallbackExecutionIdGet({ executionId, authorization, xAccountId }, opts) {
1186
+ export function callbackV1QuickCommandsCallbackExecutionIdGet({ executionId, authorization, xAccountId, xMemberId }, opts) {
1092
1187
  return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/callback/${encodeURIComponent(executionId)}`, {
1093
1188
  ...opts,
1094
1189
  headers: oazapfts.mergeHeaders(opts?.headers, {
1095
1190
  authorization,
1096
- "x-account-id": xAccountId
1191
+ "x-account-id": xAccountId,
1192
+ "x-member-id": xMemberId
1097
1193
  })
1098
1194
  }));
1099
1195
  }
1100
1196
  /**
1101
1197
  * Run Fetch Step
1102
1198
  */
1103
- export function runFetchStepV1QuickCommandsSlugStepsStepSlugFetchRunPost({ slug, stepSlug, authorization, xAccountId, quickCommandsExecutionRequest }, opts) {
1199
+ export function runFetchStepV1QuickCommandsSlugStepsStepSlugFetchRunPost({ slug, stepSlug, authorization, xAccountId, xMemberId, quickCommandsExecutionRequest }, opts) {
1104
1200
  return oazapfts.ok(oazapfts.fetchJson(`/v1/quick-commands/${encodeURIComponent(slug)}/steps/${encodeURIComponent(stepSlug)}/fetch_run`, oazapfts.json({
1105
1201
  ...opts,
1106
1202
  method: "POST",
1107
1203
  body: quickCommandsExecutionRequest,
1108
1204
  headers: oazapfts.mergeHeaders(opts?.headers, {
1109
1205
  authorization,
1110
- "x-account-id": xAccountId
1206
+ "x-account-id": xAccountId,
1207
+ "x-member-id": xMemberId
1111
1208
  })
1112
1209
  })));
1113
1210
  }
1114
1211
  /**
1115
1212
  * List Conversations
1116
1213
  */
1117
- export function listConversationsV1ConversationsGet({ size, page, authorization, xAccountId }, opts) {
1214
+ export function listConversationsV1ConversationsGet({ size, page, authorization, xAccountId, xMemberId }, opts) {
1118
1215
  return oazapfts.ok(oazapfts.fetchJson(`/v1/conversations${QS.query(QS.explode({
1119
1216
  size,
1120
1217
  page
@@ -1122,58 +1219,63 @@ export function listConversationsV1ConversationsGet({ size, page, authorization,
1122
1219
  ...opts,
1123
1220
  headers: oazapfts.mergeHeaders(opts?.headers, {
1124
1221
  authorization,
1125
- "x-account-id": xAccountId
1222
+ "x-account-id": xAccountId,
1223
+ "x-member-id": xMemberId
1126
1224
  })
1127
1225
  }));
1128
1226
  }
1129
1227
  /**
1130
1228
  * Conversation History
1131
1229
  */
1132
- export function conversationHistoryV1ConversationsConversationIdGet({ conversationId, authorization, xAccountId }, opts) {
1230
+ export function conversationHistoryV1ConversationsConversationIdGet({ conversationId, authorization, xAccountId, xMemberId }, opts) {
1133
1231
  return oazapfts.ok(oazapfts.fetchJson(`/v1/conversations/${encodeURIComponent(conversationId)}`, {
1134
1232
  ...opts,
1135
1233
  headers: oazapfts.mergeHeaders(opts?.headers, {
1136
1234
  authorization,
1137
- "x-account-id": xAccountId
1235
+ "x-account-id": xAccountId,
1236
+ "x-member-id": xMemberId
1138
1237
  })
1139
1238
  }));
1140
1239
  }
1141
1240
  /**
1142
1241
  * Update Title
1143
1242
  */
1144
- export function updateTitleV1ConversationsConversationIdPatch({ conversationId, authorization, xAccountId, conversationUpdateTitleRequest }, opts) {
1243
+ export function updateTitleV1ConversationsConversationIdPatch({ conversationId, authorization, xAccountId, xMemberId, conversationUpdateTitleRequest }, opts) {
1145
1244
  return oazapfts.ok(oazapfts.fetchJson(`/v1/conversations/${encodeURIComponent(conversationId)}`, oazapfts.json({
1146
1245
  ...opts,
1147
1246
  method: "PATCH",
1148
1247
  body: conversationUpdateTitleRequest,
1149
1248
  headers: oazapfts.mergeHeaders(opts?.headers, {
1150
1249
  authorization,
1151
- "x-account-id": xAccountId
1250
+ "x-account-id": xAccountId,
1251
+ "x-member-id": xMemberId
1152
1252
  })
1153
1253
  })));
1154
1254
  }
1155
1255
  /**
1156
1256
  * Delete Conversation
1157
1257
  */
1158
- export function deleteConversationV1ConversationsConversationIdDelete({ conversationId, authorization, xAccountId }, opts) {
1258
+ export function deleteConversationV1ConversationsConversationIdDelete({ conversationId, authorization, xAccountId, xMemberId }, opts) {
1159
1259
  return oazapfts.ok(oazapfts.fetchJson(`/v1/conversations/${encodeURIComponent(conversationId)}`, {
1160
1260
  ...opts,
1161
1261
  method: "DELETE",
1162
1262
  headers: oazapfts.mergeHeaders(opts?.headers, {
1163
1263
  authorization,
1164
- "x-account-id": xAccountId
1264
+ "x-account-id": xAccountId,
1265
+ "x-member-id": xMemberId
1165
1266
  })
1166
1267
  }));
1167
1268
  }
1168
1269
  /**
1169
1270
  * Download Conversation
1170
1271
  */
1171
- export function downloadConversationV1ConversationsConversationIdDownloadGet({ conversationId, authorization, xAccountId }, opts) {
1272
+ export function downloadConversationV1ConversationsConversationIdDownloadGet({ conversationId, authorization, xAccountId, xMemberId }, opts) {
1172
1273
  return oazapfts.ok(oazapfts.fetchJson(`/v1/conversations/${encodeURIComponent(conversationId)}/download`, {
1173
1274
  ...opts,
1174
1275
  headers: oazapfts.mergeHeaders(opts?.headers, {
1175
1276
  authorization,
1176
- "x-account-id": xAccountId
1277
+ "x-account-id": xAccountId,
1278
+ "x-member-id": xMemberId
1177
1279
  })
1178
1280
  }));
1179
1281
  }
@@ -1217,12 +1319,13 @@ export function uploadKnowledgeObjectsZipV1DefaultKnowledgeSourcesSlugObjectsBat
1217
1319
  /**
1218
1320
  * Find Knowledge Source Dependencies
1219
1321
  */
1220
- export function findKnowledgeSourceDependenciesV1KnowledgeSourcesSlugDependenciesGet({ slug, authorization, xAccountId }, opts) {
1322
+ export function findKnowledgeSourceDependenciesV1KnowledgeSourcesSlugDependenciesGet({ slug, authorization, xAccountId, xMemberId }, opts) {
1221
1323
  return oazapfts.ok(oazapfts.fetchJson(`/v1/knowledge-sources/${encodeURIComponent(slug)}/dependencies`, {
1222
1324
  ...opts,
1223
1325
  headers: oazapfts.mergeHeaders(opts?.headers, {
1224
1326
  authorization,
1225
- "x-account-id": xAccountId
1327
+ "x-account-id": xAccountId,
1328
+ "x-member-id": xMemberId
1226
1329
  })
1227
1330
  }));
1228
1331
  }
@@ -1237,12 +1340,13 @@ export function getFlagsV1FlagsGet(opts) {
1237
1340
  /**
1238
1341
  * Get Content Dependencies
1239
1342
  */
1240
- export function getContentDependenciesV1ContentContentTypeContentIdDependenciesGet({ contentType, contentId, authorization, xAccountId }, opts) {
1343
+ export function getContentDependenciesV1ContentContentTypeContentIdDependenciesGet({ contentType, contentId, authorization, xAccountId, xMemberId }, opts) {
1241
1344
  return oazapfts.ok(oazapfts.fetchJson(`/v1/content/${encodeURIComponent(contentType)}/${encodeURIComponent(contentId)}/dependencies`, {
1242
1345
  ...opts,
1243
1346
  headers: oazapfts.mergeHeaders(opts?.headers, {
1244
1347
  authorization,
1245
- "x-account-id": xAccountId
1348
+ "x-account-id": xAccountId,
1349
+ "x-member-id": xMemberId
1246
1350
  })
1247
1351
  }));
1248
1352
  }
@@ -1261,21 +1365,22 @@ export function devAssistantV2V2ChatPost({ accept }, opts) {
1261
1365
  /**
1262
1366
  * Quick Commands Run V2
1263
1367
  */
1264
- export function quickCommandsRunV2V2QuickCommandsSlugStepsStepSlugRunPost({ slug, stepSlug, authorization, xAccountId, quickCommandsExecutionRequest }, opts) {
1368
+ export function quickCommandsRunV2V2QuickCommandsSlugStepsStepSlugRunPost({ slug, stepSlug, authorization, xAccountId, xMemberId, quickCommandsExecutionRequest }, opts) {
1265
1369
  return oazapfts.ok(oazapfts.fetchJson(`/v2/quick-commands/${encodeURIComponent(slug)}/steps/${encodeURIComponent(stepSlug)}/run`, oazapfts.json({
1266
1370
  ...opts,
1267
1371
  method: "POST",
1268
1372
  body: quickCommandsExecutionRequest,
1269
1373
  headers: oazapfts.mergeHeaders(opts?.headers, {
1270
1374
  authorization,
1271
- "x-account-id": xAccountId
1375
+ "x-account-id": xAccountId,
1376
+ "x-member-id": xMemberId
1272
1377
  })
1273
1378
  })));
1274
1379
  }
1275
1380
  /**
1276
1381
  * List All
1277
1382
  */
1278
- export function listAllV2QuickCommandsAllGet({ visibility, order, types, authorization, xAccountId }, opts) {
1383
+ export function listAllV2QuickCommandsAllGet({ visibility, order, types, authorization, xAccountId, xMemberId }, opts) {
1279
1384
  return oazapfts.ok(oazapfts.fetchJson(`/v2/quick-commands/all${QS.query(QS.explode({
1280
1385
  visibility,
1281
1386
  order,
@@ -1284,21 +1389,23 @@ export function listAllV2QuickCommandsAllGet({ visibility, order, types, authori
1284
1389
  ...opts,
1285
1390
  headers: oazapfts.mergeHeaders(opts?.headers, {
1286
1391
  authorization,
1287
- "x-account-id": xAccountId
1392
+ "x-account-id": xAccountId,
1393
+ "x-member-id": xMemberId
1288
1394
  })
1289
1395
  }));
1290
1396
  }
1291
1397
  /**
1292
1398
  * Dev Assistant V3
1293
1399
  */
1294
- export function devAssistantV3V3ChatPost({ authorization, xAccountId, chatRequest }, opts) {
1400
+ export function devAssistantV3V3ChatPost({ authorization, xAccountId, xMemberId, chatRequest }, opts) {
1295
1401
  return oazapfts.ok(oazapfts.fetchJson("/v3/chat", oazapfts.json({
1296
1402
  ...opts,
1297
1403
  method: "POST",
1298
1404
  body: chatRequest,
1299
1405
  headers: oazapfts.mergeHeaders(opts?.headers, {
1300
1406
  authorization,
1301
- "x-account-id": xAccountId
1407
+ "x-account-id": xAccountId,
1408
+ "x-member-id": xMemberId
1302
1409
  })
1303
1410
  })));
1304
1411
  }