@stack-spot/portal-network 0.39.2 → 0.40.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/api/ai.d.ts +445 -542
  3. package/dist/api/ai.d.ts.map +1 -1
  4. package/dist/api/ai.js +181 -318
  5. package/dist/api/ai.js.map +1 -1
  6. package/dist/client/ai.d.ts +89 -0
  7. package/dist/client/ai.d.ts.map +1 -0
  8. package/dist/client/ai.js +108 -0
  9. package/dist/client/ai.js.map +1 -0
  10. package/dist/client/cloud-account.d.ts +5 -5
  11. package/dist/client/cloud-platform.d.ts +13 -13
  12. package/dist/client/content.d.ts +5 -5
  13. package/dist/client/notification.d.ts +1 -1
  14. package/dist/client/types.d.ts +17 -0
  15. package/dist/client/types.d.ts.map +1 -1
  16. package/dist/client/workflow.d.ts +8 -8
  17. package/dist/error/StackspotAPIError.d.ts +1 -1
  18. package/dist/error/StackspotAPIError.d.ts.map +1 -1
  19. package/dist/error/StreamCanceledError.d.ts +5 -0
  20. package/dist/error/StreamCanceledError.d.ts.map +1 -0
  21. package/dist/error/StreamCanceledError.js +9 -0
  22. package/dist/error/StreamCanceledError.js.map +1 -0
  23. package/dist/error/StreamError.d.ts +5 -0
  24. package/dist/error/StreamError.d.ts.map +1 -0
  25. package/dist/error/StreamError.js +7 -0
  26. package/dist/error/StreamError.js.map +1 -0
  27. package/dist/error/StreamJsonError.d.ts +5 -0
  28. package/dist/error/StreamJsonError.d.ts.map +1 -0
  29. package/dist/error/StreamJsonError.js +9 -0
  30. package/dist/error/StreamJsonError.js.map +1 -0
  31. package/dist/index.d.ts +6 -1
  32. package/dist/index.d.ts.map +1 -1
  33. package/dist/index.js +6 -1
  34. package/dist/index.js.map +1 -1
  35. package/dist/network/NetworkClient.d.ts +17 -1
  36. package/dist/network/NetworkClient.d.ts.map +1 -1
  37. package/dist/network/NetworkClient.js +29 -0
  38. package/dist/network/NetworkClient.js.map +1 -1
  39. package/dist/network/types.d.ts +5 -3
  40. package/dist/network/types.d.ts.map +1 -1
  41. package/dist/utils/StreamedJson.d.ts +48 -0
  42. package/dist/utils/StreamedJson.d.ts.map +1 -0
  43. package/dist/utils/StreamedJson.js +162 -0
  44. package/dist/utils/StreamedJson.js.map +1 -0
  45. package/package.json +2 -1
  46. package/src/api/ai.ts +652 -935
  47. package/src/client/ai.ts +69 -0
  48. package/src/client/types.ts +18 -1
  49. package/src/error/StackspotAPIError.ts +1 -1
  50. package/src/error/StreamCanceledError.ts +10 -0
  51. package/src/error/StreamError.ts +7 -0
  52. package/src/error/StreamJsonError.ts +10 -0
  53. package/src/index.ts +7 -1
  54. package/src/network/NetworkClient.ts +30 -1
  55. package/src/network/types.ts +6 -3
  56. package/src/utils/StreamedJson.tsx +135 -0
package/src/api/ai.ts CHANGED
@@ -12,6 +12,25 @@ export const defaults: Oazapfts.Defaults<Oazapfts.CustomHeaders> = {
12
12
  };
13
13
  const oazapfts = Oazapfts.runtime(defaults);
14
14
  export const servers = {};
15
+ export type VisibilityLevelEnum = "account" | "personal" | "shared" | "workspace";
16
+ export type OrderEnum = "a-to-z" | "z-to-a" | "oldest-first" | "newest-first";
17
+ export type GetAiStackResponse = {
18
+ id: string;
19
+ name: string;
20
+ use_case: string;
21
+ programming_language: string;
22
+ framework: string | null;
23
+ test_framework: string | null;
24
+ observability: string | null;
25
+ patterns?: string[] | null;
26
+ dependencies?: string[] | null;
27
+ studio_id: string | null;
28
+ image: string | null;
29
+ cloud_provider: string | null;
30
+ cloud_attributes: string[] | null;
31
+ creator: string | null;
32
+ visibility_level: string;
33
+ };
15
34
  export type ValidationError = {
16
35
  loc: (string | number)[];
17
36
  msg: string;
@@ -20,97 +39,59 @@ export type ValidationError = {
20
39
  export type HttpValidationError = {
21
40
  detail?: ValidationError[];
22
41
  };
23
- export type AllowedAccessResponse = {
24
- id: string;
25
- username: string;
26
- enabled: boolean;
27
- };
28
- export type GetAiStackResponse = {
29
- id: string;
30
- name: string;
31
- use_case: string;
32
- programming_language: string;
33
- framework?: string;
34
- test_framework?: string;
35
- observability?: string;
36
- patterns?: string[];
37
- dependencies?: string[];
38
- studio_id?: string;
39
- image?: string;
40
- cloud_provider?: string;
41
- cloud_attributes?: string[];
42
- creator?: string;
43
- visibility_level: string;
44
- };
45
42
  export type NewAiStackRequest = {
46
43
  name: string;
47
44
  use_case: string;
48
45
  programming_language: string;
49
- framework?: string;
50
- test_framework?: string;
51
- observability?: string;
52
- patterns?: string[];
53
- dependencies?: string[];
54
- image?: string;
55
- cloud_provider?: string;
56
- cloud_attributes?: string[];
46
+ framework?: string | null;
47
+ test_framework?: string | null;
48
+ observability?: string | null;
49
+ patterns?: string[] | null;
50
+ dependencies?: string[] | null;
51
+ image?: string | null;
52
+ cloud_provider?: string | null;
53
+ cloud_attributes?: string[] | null;
57
54
  };
58
55
  export type NewAiStackResponse = {
59
56
  id: string;
60
57
  };
61
58
  export type UpdateAiStackRequest = {
62
- name?: string;
63
- use_case?: string;
64
- programming_language?: string;
65
- framework?: string;
66
- test_framework?: string;
67
- observability?: string;
68
- patterns?: string[];
69
- dependencies?: string[];
70
- image?: string;
71
- cloud_provider?: string;
72
- cloud_attributes?: string[];
73
- };
74
- export type AiStacksDependenciesResponse = {
75
- studios?: string[];
76
- workspaces?: string[];
77
- };
78
- export type AddAiStackToWorkspaceRequest = {
79
- ai_stack_id: string;
59
+ name: string | null;
60
+ use_case: string | null;
61
+ programming_language: string | null;
62
+ framework: string | null;
63
+ test_framework: string | null;
64
+ observability: string | null;
65
+ patterns: string[] | null;
66
+ dependencies: string[] | null;
67
+ image: string | null;
68
+ cloud_provider: string | null;
69
+ cloud_attributes: string[] | null;
80
70
  };
81
- export type AiStacksFromWorkspaceResponse = {
82
- id: string;
83
- name: string;
84
- use_case: string;
85
- programming_language: string;
86
- framework?: string;
87
- test_framework?: string;
88
- observability?: string;
89
- patterns?: string[];
90
- dependencies?: string[];
91
- image?: string;
92
- cloud_provider?: string;
93
- cloud_attributes?: string[];
94
- creator?: string;
95
- };
96
- export type VisibilityLevelEnum = "account" | "personal";
97
- export type OrderEnum = "a-to-z" | "z-to-a" | "oldest-first" | "newest-first";
98
71
  export type AiStackForkRequest = {
99
72
  name: string;
100
- description?: string;
101
- };
102
- export type ShareContentRequest = {
103
- visibility: "account";
73
+ description: string | null;
104
74
  };
105
75
  export type NewProjectFilesRequest = {
106
- context?: object;
76
+ context?: object | null;
107
77
  project_id: string;
108
78
  encoded_project_files: string;
109
79
  };
110
- export type CodeUnderstandingRequest = {
111
- context?: object;
112
- project_id: string;
80
+ export type QuickActionsRequest = {
81
+ context?: object | null;
82
+ action: string;
83
+ code: string;
84
+ };
85
+ export type SimpleResponse = {
86
+ answer: string;
87
+ prompt_tokens: number;
88
+ completion_tokens: number;
89
+ total_cost?: string | null;
90
+ };
91
+ export type ChatRequest = {
92
+ context?: object | null;
113
93
  user_prompt: string;
94
+ project_id?: string | null;
114
95
  };
115
96
  export type SourceStackAi = {
116
97
  "type": "ai_stack";
@@ -121,92 +102,70 @@ export type SourceKnowledgeSource = {
121
102
  "type": "knowledge_source";
122
103
  name: string;
123
104
  slug: string;
124
- document_type?: string;
105
+ document_type?: string | null;
125
106
  document_score: number;
126
107
  document_id: string;
127
108
  };
128
109
  export type SourceProjectFile = {
129
- "type": "project_file";
130
- path: string;
110
+ "type"?: "project_file";
111
+ name: string;
112
+ slug: string;
131
113
  document_score: number;
132
- };
133
- export type CodeUnderstandingResponse = {
134
- answer: string;
135
- prompt_tokens: number;
136
- completion_tokens: number;
137
- total_cost?: number;
138
- input?: string;
139
- sources: (SourceStackAi | SourceKnowledgeSource | SourceProjectFile)[];
140
- };
141
- export type CodeScanRequest = {
142
- context?: object;
143
- project_id: string;
144
- };
145
- export type QuickActionsRequest = {
146
- context?: object;
147
- action: string;
148
- code: string;
149
- };
150
- export type SimpleResponse = {
151
- answer: string;
152
- prompt_tokens: number;
153
- completion_tokens: number;
154
- total_cost?: number;
155
- };
156
- export type ChatRequest = {
157
- context?: object;
158
- user_prompt: string;
159
- project_id?: string;
114
+ document_id: string;
115
+ path: string;
160
116
  };
161
117
  export type ChatResponse = {
162
118
  answer: string;
163
119
  prompt_tokens: number;
164
120
  completion_tokens: number;
165
- total_cost?: number;
121
+ total_cost?: string | null;
166
122
  sources: (SourceStackAi | SourceKnowledgeSource | SourceProjectFile)[];
167
123
  };
168
- export type AutocompleteCodeGeneratorRequest = {
169
- context?: object;
170
- code_to_complete: string;
171
- };
172
124
  export type EventTypeEnum = "code_injected" | "code_copied" | "custom_quick_command_execution" | "user_feedback_provided";
125
+ export type SourceKnowledgeSource2 = {
126
+ "type": "knowledge_source";
127
+ name: string;
128
+ slug: string;
129
+ document_type?: string | null;
130
+ document_score: number;
131
+ document_id: string;
132
+ };
133
+ export type SourceProjectFile2 = {
134
+ "type"?: "project_file";
135
+ name: string;
136
+ slug: string;
137
+ document_score: number;
138
+ document_id: string;
139
+ path: string;
140
+ };
173
141
  export type QuickCommandEvent = {
174
142
  slug: string;
175
143
  "type": string;
176
144
  duration_execution: number;
177
145
  status_execution: string;
178
- message_error?: string;
179
- tokens_consumed?: string;
180
- execution_id?: string;
181
- };
182
- export type UserFeedbackProvidedEventRequest = {
183
- context?: object;
184
- "type": EventTypeEnum;
185
- knowledge_sources?: (string | SourceStackAi | SourceKnowledgeSource | SourceProjectFile)[];
186
- code: string;
187
- size: number;
188
- generated_at: number;
189
- quick_command_event?: QuickCommandEvent;
190
- feedback: "LIKE" | "DISLIKE";
191
- chosen_feedback_options?: string[];
192
- additional_feedback?: string;
193
- message_id?: string;
146
+ message_error?: string | null;
147
+ tokens_consumed?: string | null;
148
+ execution_id?: string | null;
194
149
  };
195
150
  export type GenericEventRequest = {
196
- context?: object;
197
151
  "type": EventTypeEnum;
198
- knowledge_sources?: (string | SourceStackAi | SourceKnowledgeSource | SourceProjectFile)[];
199
152
  code: string;
200
153
  size: number;
201
154
  generated_at: number;
202
- quick_command_event?: QuickCommandEvent;
155
+ feedback?: ("LIKE" | "DISLIKE") | null;
156
+ chosen_feedback_options?: string[] | null;
157
+ additional_feedback?: string | null;
158
+ message_id?: string | null;
159
+ knowledge_sources?: (string | SourceStackAi | SourceKnowledgeSource2 | SourceProjectFile2)[] | null;
160
+ quick_command_event?: QuickCommandEvent | null;
161
+ context?: object | null;
203
162
  };
204
163
  export type FileUploadType = "PROJECT" | "KNOWLEDGE_SOURCE";
205
164
  export type NewFileUploadUrlRequest = {
206
165
  file_name: string;
207
166
  target_id: string;
208
167
  target_type: FileUploadType;
209
- expiration?: number;
168
+ expiration?: number | null;
210
169
  };
211
170
  export type NewFileUploadUrlResponse = {
212
171
  id: string;
@@ -234,31 +193,32 @@ export type FileUploadStatusResponse = {
234
193
  target_id: string;
235
194
  target_type: FileUploadType;
236
195
  status: FileUploadStatus;
237
- error_description?: string;
238
- summary?: SummaryPartResponse;
196
+ error_description: string | null;
197
+ summary: SummaryPartResponse | null;
198
+ };
199
+ export type NewKnowledgeSourceRequest = {
200
+ slug: string;
201
+ name: string;
202
+ description: string;
203
+ "type": "API" | "SNIPPET" | "CUSTOM";
239
204
  };
240
205
  export type KnowledgeSourceTypeEnum = "snippet" | "api" | "event" | "custom" | "project_file" | "memory";
241
206
  export type KnowledgeSourceItemResponse = {
207
+ id: string;
242
208
  slug: string;
243
209
  name: string;
244
210
  description: string;
245
211
  "type": string;
246
212
  object_count: number;
247
- creator?: string;
213
+ creator: string | null;
248
214
  visibility_level: string;
249
215
  };
250
- export type NewKnowledgeSourceRequest = {
251
- slug: string;
252
- name: string;
253
- description: string;
254
- "type": "API" | "SNIPPET" | "CUSTOM";
255
- };
256
216
  export type KnowledgeSourceResponse = {
257
217
  slug: string;
258
218
  name: string;
259
219
  description: string;
260
220
  "type": string;
261
- creator?: string;
221
+ creator: string | null;
262
222
  "default": boolean;
263
223
  visibility_level: string;
264
224
  };
@@ -272,34 +232,48 @@ export type KnowledgeSourceDependenciesResponse = {
272
232
  export type KnowledgeSourceSimilaritySearchItemResponse = {
273
233
  doc: string;
274
234
  score: number;
275
- file_path?: string;
235
+ file_path: string | null;
236
+ };
237
+ export type KnowSourcePublishBatchRequest = {
238
+ ids: string[];
276
239
  };
277
240
  export type ForkKnowledgeSourceRequest = {
278
241
  slug: string;
279
242
  name: string;
280
243
  description: string;
281
244
  };
245
+ export type BodyVectorizeObjectsFromFileV1KnowledgeSourcesSlugObjectsPost = {
246
+ upload: Blob;
247
+ };
282
248
  export type DocumentResponse = {
283
249
  page_content: string;
284
250
  metadata: object;
285
251
  };
286
- export type BodyVectorizeObjectsFromFileV1KnowledgeSourcesSlugObjectsPost = {
287
- upload: Blob;
288
- };
289
252
  export type BodyUploadKnowledgeObjectsZipV1KnowledgeSourcesSlugObjectsBatchPost = {
290
253
  objects_zip: Blob;
291
254
  };
292
255
  export type SnippetKnowledgeSourceRequest = {
293
256
  use_case: string;
294
257
  code: string;
295
- language?: string;
258
+ language?: string | null;
296
259
  };
297
260
  export type CustomKnowledgeSourceRequest = {
298
261
  content: string;
299
262
  };
263
+ export type SearchKnowledgeSourcesRequest = {
264
+ knowledge_source_ids: string[];
265
+ };
266
+ export type KnowledgeSourcesDependenciesRequest = {
267
+ ids: string[];
268
+ };
269
+ export type KnowledgeSourcesDependenciesResponseV2 = {
270
+ ks_names?: string[] | null;
271
+ error_ks_names?: string[] | null;
272
+ missing_ks_list?: string[] | null;
273
+ };
300
274
  export type AccountSettingsChangeLlmRequest = {
301
- llm_type?: string;
302
- llm_data?: object;
275
+ llm_type: string | null;
276
+ llm_data: object | null;
303
277
  };
304
278
  export type AccountSettingsChangeLimitRequest = {
305
279
  limit: number;
@@ -320,20 +294,21 @@ export type QuickCommandTypeRequest = "IDE" | "REMOTE";
320
294
  export type Method = "GET" | "OPTIONS" | "HEAD" | "POST" | "PUT" | "PATCH" | "DELETE";
321
295
  export type QuickCommandsStepFetchRequest = {
322
296
  slug: string;
323
- knowledge_source_slugs?: string[];
324
297
  url: string;
325
298
  method: Method;
326
299
  headers?: {
327
300
  [key: string]: string;
328
- };
329
- data?: string;
301
+ } | null;
302
+ data?: string | null;
330
303
  };
331
304
  export type QuickCommandsStepPromptRequest = {
332
305
  slug: string;
333
- knowledge_source_slugs?: string[];
334
306
  prompt: string;
335
307
  use_stack?: boolean;
336
308
  use_project_files?: boolean;
309
+ knowledge_source_slugs?: string[] | null;
310
+ agent_id?: string | null;
311
+ agent_built_in?: boolean | null;
337
312
  };
338
313
  export type QuickCommandsReturnType = "CHAT" | "REPLACE_CODE" | "BEFORE_CODE" | "AFTER_CODE";
339
314
  export type CustomInputRequest = {
@@ -348,28 +323,38 @@ export type QuickCommandsCreateRequest = {
348
323
  description: string;
349
324
  final_result: string;
350
325
  steps: (QuickCommandsStepFetchRequest | QuickCommandsStepPromptRequest)[];
351
- return_type?: QuickCommandsReturnType;
326
+ return_type?: QuickCommandsReturnType | null;
352
327
  preserve_conversation?: boolean;
353
- custom_inputs?: CustomInputRequest[];
354
- flow?: object;
328
+ custom_inputs?: CustomInputRequest[] | null;
329
+ flow?: object | null;
330
+ };
331
+ export type BaseContextualRequest = {
332
+ context?: object | null;
355
333
  };
356
334
  export type QuickCommandListResponse = {
357
335
  slug: string;
358
336
  name: string;
359
337
  "type": QuickCommandTypeRequest;
360
338
  description: string;
361
- studio_id?: string;
362
- flow?: object;
339
+ studio_id?: string | null;
340
+ flow?: object | null;
363
341
  preserve_conversation: boolean;
364
342
  use_selected_code: boolean;
365
- return_type?: QuickCommandsReturnType;
366
- creator?: string;
343
+ return_type?: QuickCommandsReturnType | null;
344
+ creator: string | null;
367
345
  visibility_level: string;
368
346
  };
369
- export type BaseContextualRequest = {
370
- context?: object;
347
+ export type QuickCommandsUpdateRequest = {
348
+ name?: string | null;
349
+ description?: string | null;
350
+ steps?: (QuickCommandsStepFetchRequest | QuickCommandsStepPromptRequest)[] | null;
351
+ return_type?: QuickCommandsReturnType | null;
352
+ knowledge_source_slugs?: string[] | null;
353
+ final_result?: string | null;
354
+ preserve_conversation?: boolean;
355
+ custom_inputs?: CustomInputRequest[] | null;
356
+ flow?: object | null;
371
357
  };
372
- export type QuickCommandReturnType = "CHAT" | "REPLACE_CODE" | "BEFORE_CODE" | "AFTER_CODE";
373
358
  export type QuickCommandStepType = "LLM" | "FETCH";
374
359
  export type Method2 = "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
375
360
  export type QuickCommandStepFetchResponse = {
@@ -379,17 +364,51 @@ export type QuickCommandStepFetchResponse = {
379
364
  method: Method2;
380
365
  headers?: {
381
366
  [key: string]: string;
382
- };
383
- data?: string;
367
+ } | null;
368
+ data?: string | null;
369
+ };
370
+ export type AgentType = "CONVERSATIONAL" | "SINGLE_ANSWER";
371
+ export type LlmConfig = {
372
+ model_slug: string;
373
+ temperature?: number;
374
+ };
375
+ export type KnowledgeSource = {
376
+ similarity_function: string;
377
+ max_number_of_kos: number;
378
+ relevancy_threshold?: number;
379
+ post_processing?: boolean;
380
+ knowledge_sources: string[] | null;
381
+ sealed?: boolean;
382
+ };
383
+ export type AgentDefinitionResponse = {
384
+ id: string;
385
+ name: string;
386
+ slug: string;
387
+ description?: string | null;
388
+ system_prompt?: string | null;
389
+ avatar?: string | null;
390
+ suggested_prompts?: string[] | null;
391
+ "type": AgentType;
392
+ llm_config?: LlmConfig | null;
393
+ visibility_level?: string | null;
394
+ knowledge_sources_config?: KnowledgeSource | null;
395
+ built_in?: boolean;
396
+ creator_name: string;
397
+ created_by: string;
398
+ created_at: string;
399
+ updated_by?: string | null;
400
+ updated_at?: string | null;
384
401
  };
385
- export type QuickCommandStepType2 = "LLM" | "FETCH";
386
402
  export type QuickCommandStepLlmResponse = {
387
403
  slug: string;
388
- "type": QuickCommandStepType2;
389
- knowledge_source_slugs?: string[];
404
+ "type": QuickCommandStepType;
405
+ knowledge_source_slugs?: string[] | null;
390
406
  prompt: string;
391
407
  use_stack?: boolean;
392
408
  use_project_files?: boolean;
409
+ agent_id?: string | null;
410
+ agent_built_in?: boolean | null;
411
+ agent_data?: AgentDefinitionResponse | null;
393
412
  };
394
413
  export type CustomInputResponse = {
395
414
  slug: string;
@@ -398,30 +417,19 @@ export type CustomInputResponse = {
398
417
  };
399
418
  export type QuickCommandResponse = {
400
419
  slug: string;
401
- name?: string;
402
- "type"?: QuickCommandTypeRequest;
403
- description?: string;
404
- studio_id?: string;
405
- return_type?: QuickCommandReturnType;
406
- final_result?: string;
407
- steps?: (QuickCommandStepFetchResponse | QuickCommandStepLlmResponse)[];
408
- flow?: object;
409
- preserve_conversation?: boolean;
410
- use_selected_code?: boolean;
411
- creator?: string;
412
- custom_inputs?: CustomInputResponse[];
420
+ name?: string | null;
421
+ "type"?: QuickCommandTypeRequest | null;
422
+ description?: string | null;
423
+ studio_id?: string | null;
424
+ return_type?: QuickCommandsReturnType | null;
425
+ final_result?: string | null;
426
+ steps?: (QuickCommandStepFetchResponse | QuickCommandStepLlmResponse)[] | null;
427
+ flow?: object | null;
428
+ preserve_conversation?: boolean | null;
429
+ use_selected_code?: boolean | null;
430
+ creator: string | null;
413
431
  visibility_level: string;
414
- };
415
- export type QuickCommandsUpdateRequest = {
416
- name?: string;
417
- description?: string;
418
- steps?: (QuickCommandsStepFetchRequest | QuickCommandsStepPromptRequest)[];
419
- return_type?: QuickCommandsReturnType;
420
- knowledge_source_slugs?: string[];
421
- final_result?: string;
422
- preserve_conversation?: boolean;
423
- custom_inputs?: CustomInputRequest[];
424
- flow?: object;
432
+ custom_inputs?: CustomInputResponse[] | null;
425
433
  };
426
434
  export type QuickCommandsMakeACopyRequest = {
427
435
  suggested_slug: string;
@@ -429,37 +437,45 @@ export type QuickCommandsMakeACopyRequest = {
429
437
  description: string;
430
438
  };
431
439
  export type QuickCommandDependenciesResponse = {
432
- studios?: string[];
433
- workspaces?: string[];
440
+ studios?: string[] | null;
441
+ workspaces?: string[] | null;
442
+ };
443
+ export type QuickCommandPromptResponse = {
444
+ answer: string;
445
+ sources?: (SourceStackAi | SourceKnowledgeSource2 | SourceProjectFile2)[] | null;
434
446
  };
435
447
  export type QuickCommandFetchResponseResult = {
436
448
  headers?: {
437
449
  [key: string]: string;
438
- };
439
- data?: string;
450
+ } | null;
451
+ data?: string | null;
440
452
  status: number;
441
453
  };
442
454
  export type QuickCommandsExecutionRequest = {
443
- context?: object;
455
+ context?: object | null;
444
456
  /** This field is deprecated and will be removed in future releases. Use 'input_data' instead. */
445
- code_selection?: string;
446
- input_data?: string;
457
+ code_selection?: string | null;
458
+ input_data?: string | null;
447
459
  slugs_executions?: {
448
- [key: string]: SimpleResponse | QuickCommandFetchResponseResult;
449
- };
460
+ [key: string]: string | QuickCommandPromptResponse | QuickCommandFetchResponseResult;
461
+ } | null;
462
+ };
463
+ export type QuickCommandPromptResponse2 = {
464
+ answer: string;
465
+ sources?: (SourceStackAi | SourceKnowledgeSource | SourceProjectFile)[] | null;
450
466
  };
451
467
  export type QuickCommandFinalResultResponse = {
452
468
  result: string;
453
469
  };
454
470
  export type QuickCommandCreateRequest = {
455
- input_data?: string | object;
456
- ai_stack_id?: string;
457
- custom_inputs?: object;
471
+ input_data?: string | object | null;
472
+ ai_stack_id?: string | null;
473
+ custom_inputs?: object | null;
458
474
  };
459
475
  export type Progress = {
460
476
  start: string;
461
- end?: string;
462
- duration?: number;
477
+ end?: string | null;
478
+ duration?: number | null;
463
479
  execution_percentage: number;
464
480
  status: string;
465
481
  };
@@ -467,9 +483,9 @@ export type StepFetch = {
467
483
  status_code: number;
468
484
  headers?: {
469
485
  [key: string]: string;
470
- };
471
- data?: string;
472
- json_data?: object;
486
+ } | null;
487
+ data?: string | null;
488
+ json_data?: object | null;
473
489
  };
474
490
  export type StepLlm = {
475
491
  answer: string;
@@ -478,7 +494,7 @@ export type StepLlm = {
478
494
  export type Step = {
479
495
  step_name: string;
480
496
  execution_order: number;
481
- "type": QuickCommandStepType2;
497
+ "type": QuickCommandStepType;
482
498
  step_result: StepFetch | StepLlm;
483
499
  };
484
500
  export type QuickCommandExecutionResponse = {
@@ -486,20 +502,16 @@ export type QuickCommandExecutionResponse = {
486
502
  quick_command_slug: string;
487
503
  conversation_id: string;
488
504
  progress: Progress;
489
- steps?: Step[];
490
- result?: string;
505
+ steps?: Step[] | null;
506
+ result?: string | null;
491
507
  };
492
508
  export type ImportContentType = "ai_stack" | "knowledge_source" | "quick_command";
493
509
  export type ImportPublicContent = {
494
510
  "type": ImportContentType;
495
511
  content_id: string;
496
512
  content_slug_name: string;
497
- studio_id?: string;
498
- workspace_ids?: string[];
499
- };
500
- export type ContentVisibility = "private" | "public";
501
- export type ChangeContentVisibility = {
502
- visibility: ContentVisibility;
513
+ studio_id: string | null;
514
+ workspace_ids?: string[] | null;
503
515
  };
504
516
  export type ConversationHistoryAgentEnum = "AI" | "USER";
505
517
  export type ConversationHistoryResponse = {
@@ -507,15 +519,16 @@ export type ConversationHistoryResponse = {
507
519
  agent: ConversationHistoryAgentEnum;
508
520
  content: string;
509
521
  sources: any[];
522
+ custom_agent?: object | null;
510
523
  updated: string;
511
524
  };
512
525
  export type ConversationResponse = {
513
526
  id: string;
514
527
  title: string;
515
- workspace_id?: string;
516
- ai_stack_id?: string;
517
- created?: string;
518
- updated?: string;
528
+ workspace_id: string | null;
529
+ ai_stack_id: string | null;
530
+ created: string | null;
531
+ updated: string | null;
519
532
  history?: ConversationHistoryResponse[];
520
533
  };
521
534
  export type ConversationUpdateTitleRequest = {
@@ -527,48 +540,7 @@ export type BodyUploadKnowledgeObjectsZipV1DefaultKnowledgeSourcesSlugObjectsBat
527
540
  export type ChatRequest2 = {
528
541
  context?: object;
529
542
  user_prompt: string;
530
- project_id?: string;
531
- };
532
- export type SourceStackAi2 = {
533
- "type": "ai_stack";
534
- name: string;
535
- id: string;
536
- };
537
- export type SourceKnowledgeSource2 = {
538
- "type": "knowledge_source";
539
- name: string;
540
- slug: string;
541
- document_type: string;
542
- document_score: number;
543
- document_id: string;
544
- };
545
- export type SourceProjectFile2 = {
546
- "type": "project_file";
547
- path: string;
548
- document_score: number;
549
- };
550
- export type ChatResponse2 = {
551
- answer: string;
552
- sources: (SourceStackAi2 | SourceKnowledgeSource2 | SourceProjectFile2)[];
553
- };
554
- export type BodyVectorizeObjectsFromFileV2KnowledgeSourcesSlugObjectsPost = {
555
- upload: Blob;
556
- };
557
- export type SyncResponse = {
558
- added: number;
559
- preserved: number;
560
- removed: number;
561
- errors?: {
562
- [key: string]: string;
563
- };
564
- };
565
- export type BodyUploadKnowledgeObjectsZipV2KnowledgeSourcesSlugObjectsBatchPost = {
566
- objects_zip: Blob;
567
- };
568
- export type SourceStackAi3 = {
569
- "type": "ai_stack";
570
- name: string;
571
- id: string;
543
+ project_id?: string | null;
572
544
  };
573
545
  export type SourceKnowledgeSource3 = {
574
546
  "type": "knowledge_source";
@@ -583,322 +555,48 @@ export type SourceProjectFile3 = {
583
555
  path: string;
584
556
  document_score: number;
585
557
  };
586
- export type ChatResponse3 = {
558
+ export type ChatResponse2 = {
587
559
  answer: string;
588
- sources: (SourceStackAi3 | SourceKnowledgeSource3 | SourceProjectFile3)[];
589
- message_id?: string;
590
- };
591
- /**
592
- * Metrics
593
- */
594
- export function metricsMetricsGet(opts?: Oazapfts.RequestOpts) {
595
- return oazapfts.ok(oazapfts.fetchJson<{
596
- status: 200;
597
- data: any;
598
- }>("/metrics", {
599
- ...opts
600
- }));
601
- }
602
- /**
603
- * Request Access
604
- */
605
- export function requestAccessV1AllowedAccessRequestAccessPost({ authorization, xAccountId }: {
606
- authorization: string;
607
- xAccountId?: string;
608
- }, opts?: Oazapfts.RequestOpts) {
609
- return oazapfts.ok(oazapfts.fetchJson<{
610
- status: 201;
611
- data: any;
612
- } | {
613
- status: 404;
614
- } | {
615
- status: 422;
616
- data: HttpValidationError;
617
- }>("/v1/allowed-access/request-access", {
618
- ...opts,
619
- method: "POST",
620
- headers: oazapfts.mergeHeaders(opts?.headers, {
621
- authorization,
622
- "x-account-id": xAccountId
623
- })
624
- }));
625
- }
626
- /**
627
- * Get By Username
628
- */
629
- export function getByUsernameV1AllowedAccessGet({ authorization, xAccountId }: {
630
- authorization: string;
631
- xAccountId?: string;
632
- }, opts?: Oazapfts.RequestOpts) {
633
- return oazapfts.ok(oazapfts.fetchJson<{
634
- status: 200;
635
- data: AllowedAccessResponse;
636
- } | {
637
- status: 404;
638
- } | {
639
- status: 422;
640
- data: HttpValidationError;
641
- }>("/v1/allowed-access/", {
642
- ...opts,
643
- headers: oazapfts.mergeHeaders(opts?.headers, {
644
- authorization,
645
- "x-account-id": xAccountId
646
- })
647
- }));
648
- }
649
- /**
650
- * List Ai Stacks By Studio
651
- */
652
- export function listAiStacksByStudioV1StudiosStudioIdAiStacksGet({ studioId, authorization, xAccountId }: {
653
- studioId: string;
654
- authorization: string;
655
- xAccountId?: string;
656
- }, opts?: Oazapfts.RequestOpts) {
657
- return oazapfts.ok(oazapfts.fetchJson<{
658
- status: 200;
659
- data: GetAiStackResponse[];
660
- } | {
661
- status: 404;
662
- } | {
663
- status: 422;
664
- data: HttpValidationError;
665
- }>(`/v1/studios/${encodeURIComponent(studioId)}/ai-stacks`, {
666
- ...opts,
667
- headers: oazapfts.mergeHeaders(opts?.headers, {
668
- authorization,
669
- "x-account-id": xAccountId
670
- })
671
- }));
672
- }
673
- /**
674
- * Create Ai Stack
675
- */
676
- export function createAiStackV1StudiosStudioIdAiStacksPost({ studioId, authorization, xAccountId, newAiStackRequest }: {
677
- studioId: string;
678
- authorization: string;
679
- xAccountId?: string;
680
- newAiStackRequest: NewAiStackRequest;
681
- }, opts?: Oazapfts.RequestOpts) {
682
- return oazapfts.ok(oazapfts.fetchJson<{
683
- status: 201;
684
- data: NewAiStackResponse;
685
- } | {
686
- status: 404;
687
- } | {
688
- status: 422;
689
- data: HttpValidationError;
690
- }>(`/v1/studios/${encodeURIComponent(studioId)}/ai-stacks`, oazapfts.json({
691
- ...opts,
692
- method: "POST",
693
- body: newAiStackRequest,
694
- headers: oazapfts.mergeHeaders(opts?.headers, {
695
- authorization,
696
- "x-account-id": xAccountId
697
- })
698
- })));
699
- }
700
- /**
701
- * Get Ai Stack
702
- */
703
- export function getAiStackV1StudiosStudioIdAiStacksStackIdGet({ studioId, stackId, authorization, xAccountId }: {
704
- studioId: string;
705
- stackId: string;
706
- authorization: string;
707
- xAccountId?: string;
708
- }, opts?: Oazapfts.RequestOpts) {
709
- return oazapfts.ok(oazapfts.fetchJson<{
710
- status: 200;
711
- data: GetAiStackResponse;
712
- } | {
713
- status: 404;
714
- } | {
715
- status: 422;
716
- data: HttpValidationError;
717
- }>(`/v1/studios/${encodeURIComponent(studioId)}/ai-stacks/${encodeURIComponent(stackId)}`, {
718
- ...opts,
719
- headers: oazapfts.mergeHeaders(opts?.headers, {
720
- authorization,
721
- "x-account-id": xAccountId
722
- })
723
- }));
724
- }
725
- /**
726
- * Remove Ai Stack
727
- */
728
- export function removeAiStackV1StudiosStudioIdAiStacksStackIdDelete({ studioId, stackId, authorization, xAccountId }: {
729
- studioId: string;
730
- stackId: string;
731
- authorization: string;
732
- xAccountId?: string;
733
- }, opts?: Oazapfts.RequestOpts) {
734
- return oazapfts.ok(oazapfts.fetchJson<{
735
- status: 200;
736
- data: any;
737
- } | {
738
- status: 404;
739
- } | {
740
- status: 422;
741
- data: HttpValidationError;
742
- }>(`/v1/studios/${encodeURIComponent(studioId)}/ai-stacks/${encodeURIComponent(stackId)}`, {
743
- ...opts,
744
- method: "DELETE",
745
- headers: oazapfts.mergeHeaders(opts?.headers, {
746
- authorization,
747
- "x-account-id": xAccountId
748
- })
749
- }));
750
- }
751
- /**
752
- * Update Ai Stack
753
- */
754
- export function updateAiStackV1StudiosStudioIdAiStacksStackIdPatch({ studioId, stackId, authorization, xAccountId, updateAiStackRequest }: {
755
- studioId: string;
756
- stackId: string;
757
- authorization: string;
758
- xAccountId?: string;
759
- updateAiStackRequest: UpdateAiStackRequest;
760
- }, opts?: Oazapfts.RequestOpts) {
761
- return oazapfts.ok(oazapfts.fetchJson<{
762
- status: 204;
763
- } | {
764
- status: 404;
765
- } | {
766
- status: 422;
767
- data: HttpValidationError;
768
- }>(`/v1/studios/${encodeURIComponent(studioId)}/ai-stacks/${encodeURIComponent(stackId)}`, oazapfts.json({
769
- ...opts,
770
- method: "PATCH",
771
- body: updateAiStackRequest,
772
- headers: oazapfts.mergeHeaders(opts?.headers, {
773
- authorization,
774
- "x-account-id": xAccountId
775
- })
776
- })));
777
- }
778
- /**
779
- * Find Knowledge Source Dependencies
780
- */
781
- export function findKnowledgeSourceDependenciesV1StudiosStudioIdAiStacksStackIdDependenciesGet({ studioId, stackId, authorization, xAccountId }: {
782
- studioId: string;
783
- stackId: string;
784
- authorization: string;
785
- xAccountId?: string;
786
- }, opts?: Oazapfts.RequestOpts) {
787
- return oazapfts.ok(oazapfts.fetchJson<{
788
- status: 200;
789
- data: AiStacksDependenciesResponse;
790
- } | {
791
- status: 404;
792
- } | {
793
- status: 422;
794
- data: HttpValidationError;
795
- }>(`/v1/studios/${encodeURIComponent(studioId)}/ai-stacks/${encodeURIComponent(stackId)}/dependencies`, {
796
- ...opts,
797
- headers: oazapfts.mergeHeaders(opts?.headers, {
798
- authorization,
799
- "x-account-id": xAccountId
800
- })
801
- }));
802
- }
803
- /**
804
- * Add Ai Stack To Workspace
805
- */
806
- export function addAiStackToWorkspaceV1WorkspacesWorkspaceIdAddAiStackPost({ workspaceId, authorization, xAccountId, addAiStackToWorkspaceRequest }: {
807
- workspaceId: string;
808
- authorization: string;
809
- xAccountId?: string;
810
- addAiStackToWorkspaceRequest: AddAiStackToWorkspaceRequest;
811
- }, opts?: Oazapfts.RequestOpts) {
812
- return oazapfts.ok(oazapfts.fetchJson<{
813
- status: 204;
814
- } | {
815
- status: 404;
816
- } | {
817
- status: 422;
818
- data: HttpValidationError;
819
- }>(`/v1/workspaces/${encodeURIComponent(workspaceId)}/add-ai-stack`, oazapfts.json({
820
- ...opts,
821
- method: "POST",
822
- body: addAiStackToWorkspaceRequest,
823
- headers: oazapfts.mergeHeaders(opts?.headers, {
824
- authorization,
825
- "x-account-id": xAccountId
826
- })
827
- })));
828
- }
829
- /**
830
- * List Ai Stacks From Workspace
831
- */
832
- export function listAiStacksFromWorkspaceV1WorkspacesWorkspaceIdAiStacksGet({ workspaceId, authorization, xAccountId }: {
833
- workspaceId: string;
834
- authorization: string;
835
- xAccountId?: string;
836
- }, opts?: Oazapfts.RequestOpts) {
837
- return oazapfts.ok(oazapfts.fetchJson<{
838
- status: 200;
839
- data: AiStacksFromWorkspaceResponse[];
840
- } | {
841
- status: 404;
842
- } | {
843
- status: 422;
844
- data: HttpValidationError;
845
- }>(`/v1/workspaces/${encodeURIComponent(workspaceId)}/ai-stacks`, {
846
- ...opts,
847
- headers: oazapfts.mergeHeaders(opts?.headers, {
848
- authorization,
849
- "x-account-id": xAccountId
850
- })
851
- }));
852
- }
853
- /**
854
- * Find Ai Stack In Workspace
855
- */
856
- export function findAiStackInWorkspaceV1WorkspacesWorkspaceIdAiStacksStackIdGet({ workspaceId, stackId, authorization, xAccountId }: {
857
- workspaceId: string;
858
- stackId: string;
859
- authorization: string;
860
- xAccountId?: string;
861
- }, opts?: Oazapfts.RequestOpts) {
862
- return oazapfts.ok(oazapfts.fetchJson<{
863
- status: 200;
864
- data: AiStacksFromWorkspaceResponse;
865
- } | {
866
- status: 404;
867
- } | {
868
- status: 422;
869
- data: HttpValidationError;
870
- }>(`/v1/workspaces/${encodeURIComponent(workspaceId)}/ai-stacks/${encodeURIComponent(stackId)}`, {
871
- ...opts,
872
- headers: oazapfts.mergeHeaders(opts?.headers, {
873
- authorization,
874
- "x-account-id": xAccountId
875
- })
876
- }));
877
- }
560
+ sources: (SourceStackAi | SourceKnowledgeSource3 | SourceProjectFile3)[];
561
+ };
562
+ export type QuickCommandDependenciesResponseV2 = {
563
+ ks_names?: string[] | null;
564
+ error_ks_names?: string[] | null;
565
+ missing_ks_id_list?: string[] | null;
566
+ };
567
+ export type BodyVectorizeObjectsFromFileV2KnowledgeSourcesSlugObjectsPost = {
568
+ upload: Blob;
569
+ };
570
+ export type BodyUploadKnowledgeObjectsZipV2KnowledgeSourcesSlugObjectsBatchPost = {
571
+ objects_zip: Blob;
572
+ };
573
+ export type SourceKnowledgeSource4 = {
574
+ "type": "knowledge_source";
575
+ name: string;
576
+ slug: string;
577
+ document_type: string;
578
+ document_score: number;
579
+ document_id: string;
580
+ };
581
+ export type SourceProjectFile4 = {
582
+ "type": "project_file";
583
+ path: string;
584
+ document_score: number;
585
+ };
586
+ export type ChatResponse3 = {
587
+ answer: string;
588
+ sources: (SourceStackAi | SourceKnowledgeSource4 | SourceProjectFile4)[];
589
+ message_id: string | null;
590
+ };
878
591
  /**
879
- * Remove Ai Stack From Workspace
592
+ * Metrics
880
593
  */
881
- export function removeAiStackFromWorkspaceV1WorkspacesWorkspaceIdAiStacksStackIdDelete({ workspaceId, stackId, authorization, xAccountId }: {
882
- workspaceId: string;
883
- stackId: string;
884
- authorization: string;
885
- xAccountId?: string;
886
- }, opts?: Oazapfts.RequestOpts) {
594
+ export function metricsMetricsGet(opts?: Oazapfts.RequestOpts) {
887
595
  return oazapfts.ok(oazapfts.fetchJson<{
888
596
  status: 200;
889
597
  data: any;
890
- } | {
891
- status: 404;
892
- } | {
893
- status: 422;
894
- data: HttpValidationError;
895
- }>(`/v1/workspaces/${encodeURIComponent(workspaceId)}/ai-stacks/${encodeURIComponent(stackId)}`, {
896
- ...opts,
897
- method: "DELETE",
898
- headers: oazapfts.mergeHeaders(opts?.headers, {
899
- authorization,
900
- "x-account-id": xAccountId
901
- })
598
+ }>("/metrics", {
599
+ ...opts
902
600
  }));
903
601
  }
904
602
  /**
@@ -908,7 +606,7 @@ export function listAiStacksV1AiStacksGet({ visibility, order, authorization, xA
908
606
  visibility?: VisibilityLevelEnum;
909
607
  order?: OrderEnum;
910
608
  authorization: string;
911
- xAccountId?: string;
609
+ xAccountId?: string | null;
912
610
  }, opts?: Oazapfts.RequestOpts) {
913
611
  return oazapfts.ok(oazapfts.fetchJson<{
914
612
  status: 200;
@@ -934,7 +632,7 @@ export function listAiStacksV1AiStacksGet({ visibility, order, authorization, xA
934
632
  */
935
633
  export function createAiStackV1AiStacksPost({ authorization, xAccountId, newAiStackRequest }: {
936
634
  authorization: string;
937
- xAccountId?: string;
635
+ xAccountId?: string | null;
938
636
  newAiStackRequest: NewAiStackRequest;
939
637
  }, opts?: Oazapfts.RequestOpts) {
940
638
  return oazapfts.ok(oazapfts.fetchJson<{
@@ -956,40 +654,42 @@ export function createAiStackV1AiStacksPost({ authorization, xAccountId, newAiSt
956
654
  })));
957
655
  }
958
656
  /**
959
- * Get Ai Stack
657
+ * Update Ai Stack
960
658
  */
961
- export function getAiStackV1AiStacksStackIdGet({ stackId, authorization, xAccountId }: {
659
+ export function updateAiStackV1AiStacksStackIdPatch({ stackId, authorization, xAccountId, updateAiStackRequest }: {
962
660
  stackId: string;
963
661
  authorization: string;
964
- xAccountId?: string;
662
+ xAccountId?: string | null;
663
+ updateAiStackRequest: UpdateAiStackRequest;
965
664
  }, opts?: Oazapfts.RequestOpts) {
966
665
  return oazapfts.ok(oazapfts.fetchJson<{
967
- status: 200;
968
- data: GetAiStackResponse;
666
+ status: 204;
969
667
  } | {
970
668
  status: 404;
971
669
  } | {
972
670
  status: 422;
973
671
  data: HttpValidationError;
974
- }>(`/v1/ai-stacks/${encodeURIComponent(stackId)}`, {
672
+ }>(`/v1/ai-stacks/${encodeURIComponent(stackId)}`, oazapfts.json({
975
673
  ...opts,
674
+ method: "PATCH",
675
+ body: updateAiStackRequest,
976
676
  headers: oazapfts.mergeHeaders(opts?.headers, {
977
677
  authorization,
978
678
  "x-account-id": xAccountId
979
679
  })
980
- }));
680
+ })));
981
681
  }
982
682
  /**
983
- * Remove Ai Stack
683
+ * Get Ai Stack
984
684
  */
985
- export function removeAiStackV1AiStacksStackIdDelete({ stackId, authorization, xAccountId }: {
685
+ export function getAiStackV1AiStacksStackIdGet({ stackId, authorization, xAccountId }: {
986
686
  stackId: string;
987
687
  authorization: string;
988
- xAccountId?: string;
688
+ xAccountId?: string | null;
989
689
  }, opts?: Oazapfts.RequestOpts) {
990
690
  return oazapfts.ok(oazapfts.fetchJson<{
991
691
  status: 200;
992
- data: any;
692
+ data: GetAiStackResponse;
993
693
  } | {
994
694
  status: 404;
995
695
  } | {
@@ -997,7 +697,6 @@ export function removeAiStackV1AiStacksStackIdDelete({ stackId, authorization, x
997
697
  data: HttpValidationError;
998
698
  }>(`/v1/ai-stacks/${encodeURIComponent(stackId)}`, {
999
699
  ...opts,
1000
- method: "DELETE",
1001
700
  headers: oazapfts.mergeHeaders(opts?.headers, {
1002
701
  authorization,
1003
702
  "x-account-id": xAccountId
@@ -1005,30 +704,29 @@ export function removeAiStackV1AiStacksStackIdDelete({ stackId, authorization, x
1005
704
  }));
1006
705
  }
1007
706
  /**
1008
- * Update Ai Stack
707
+ * Remove Ai Stack
1009
708
  */
1010
- export function updateAiStackV1AiStacksStackIdPatch({ stackId, authorization, xAccountId, updateAiStackRequest }: {
709
+ export function removeAiStackV1AiStacksStackIdDelete({ stackId, authorization, xAccountId }: {
1011
710
  stackId: string;
1012
711
  authorization: string;
1013
- xAccountId?: string;
1014
- updateAiStackRequest: UpdateAiStackRequest;
712
+ xAccountId?: string | null;
1015
713
  }, opts?: Oazapfts.RequestOpts) {
1016
714
  return oazapfts.ok(oazapfts.fetchJson<{
1017
- status: 204;
715
+ status: 200;
716
+ data: any;
1018
717
  } | {
1019
718
  status: 404;
1020
719
  } | {
1021
720
  status: 422;
1022
721
  data: HttpValidationError;
1023
- }>(`/v1/ai-stacks/${encodeURIComponent(stackId)}`, oazapfts.json({
722
+ }>(`/v1/ai-stacks/${encodeURIComponent(stackId)}`, {
1024
723
  ...opts,
1025
- method: "PATCH",
1026
- body: updateAiStackRequest,
724
+ method: "DELETE",
1027
725
  headers: oazapfts.mergeHeaders(opts?.headers, {
1028
726
  authorization,
1029
727
  "x-account-id": xAccountId
1030
728
  })
1031
- })));
729
+ }));
1032
730
  }
1033
731
  /**
1034
732
  * Fork
@@ -1036,7 +734,7 @@ export function updateAiStackV1AiStacksStackIdPatch({ stackId, authorization, xA
1036
734
  export function forkV1AiStacksStackIdForkPost({ stackId, authorization, xAccountId, aiStackForkRequest }: {
1037
735
  stackId: string;
1038
736
  authorization: string;
1039
- xAccountId?: string;
737
+ xAccountId?: string | null;
1040
738
  aiStackForkRequest: AiStackForkRequest;
1041
739
  }, opts?: Oazapfts.RequestOpts) {
1042
740
  return oazapfts.ok(oazapfts.fetchJson<{
@@ -1060,11 +758,10 @@ export function forkV1AiStacksStackIdForkPost({ stackId, authorization, xAccount
1060
758
  /**
1061
759
  * Share
1062
760
  */
1063
- export function shareV1AiStacksStackIdSharePost({ stackId, authorization, xAccountId, shareContentRequest }: {
761
+ export function shareV1AiStacksStackIdSharePost({ stackId, authorization, xAccountId }: {
1064
762
  stackId: string;
1065
763
  authorization: string;
1066
- xAccountId?: string;
1067
- shareContentRequest: ShareContentRequest;
764
+ xAccountId?: string | null;
1068
765
  }, opts?: Oazapfts.RequestOpts) {
1069
766
  return oazapfts.ok(oazapfts.fetchJson<{
1070
767
  status: 204;
@@ -1073,88 +770,59 @@ export function shareV1AiStacksStackIdSharePost({ stackId, authorization, xAccou
1073
770
  } | {
1074
771
  status: 422;
1075
772
  data: HttpValidationError;
1076
- }>(`/v1/ai-stacks/${encodeURIComponent(stackId)}/share`, oazapfts.json({
1077
- ...opts,
1078
- method: "POST",
1079
- body: shareContentRequest,
1080
- headers: oazapfts.mergeHeaders(opts?.headers, {
1081
- authorization,
1082
- "x-account-id": xAccountId
1083
- })
1084
- })));
1085
- }
1086
- /**
1087
- * Project Files
1088
- */
1089
- export function projectFilesV1ProjectFilesPost({ authorization, xAccountId, newProjectFilesRequest }: {
1090
- authorization: string;
1091
- xAccountId?: string;
1092
- newProjectFilesRequest: NewProjectFilesRequest;
1093
- }, opts?: Oazapfts.RequestOpts) {
1094
- return oazapfts.ok(oazapfts.fetchJson<{
1095
- status: 202;
1096
- data: any;
1097
- } | {
1098
- status: 404;
1099
- } | {
1100
- status: 422;
1101
- data: HttpValidationError;
1102
- }>("/v1/project-files", oazapfts.json({
773
+ }>(`/v1/ai-stacks/${encodeURIComponent(stackId)}/share`, {
1103
774
  ...opts,
1104
775
  method: "POST",
1105
- body: newProjectFilesRequest,
1106
776
  headers: oazapfts.mergeHeaders(opts?.headers, {
1107
777
  authorization,
1108
778
  "x-account-id": xAccountId
1109
779
  })
1110
- })));
780
+ }));
1111
781
  }
1112
782
  /**
1113
- * Code Understanding Assistant
783
+ * Publish
1114
784
  */
1115
- export function codeUnderstandingAssistantV1CodeUnderstandingAssistantPost({ authorization, xAccountId, codeUnderstandingRequest }: {
785
+ export function publishV1AiStacksStackIdPublishPost({ stackId, authorization, xAccountId }: {
786
+ stackId: string;
1116
787
  authorization: string;
1117
- xAccountId?: string;
1118
- codeUnderstandingRequest: CodeUnderstandingRequest;
788
+ xAccountId?: string | null;
1119
789
  }, opts?: Oazapfts.RequestOpts) {
1120
790
  return oazapfts.ok(oazapfts.fetchJson<{
1121
- status: 200;
1122
- data: CodeUnderstandingResponse;
791
+ status: 204;
1123
792
  } | {
1124
793
  status: 404;
1125
794
  } | {
1126
795
  status: 422;
1127
796
  data: HttpValidationError;
1128
- }>("/v1/code-understanding-assistant", oazapfts.json({
797
+ }>(`/v1/ai-stacks/${encodeURIComponent(stackId)}/publish`, {
1129
798
  ...opts,
1130
799
  method: "POST",
1131
- body: codeUnderstandingRequest,
1132
800
  headers: oazapfts.mergeHeaders(opts?.headers, {
1133
801
  authorization,
1134
802
  "x-account-id": xAccountId
1135
803
  })
1136
- })));
804
+ }));
1137
805
  }
1138
806
  /**
1139
- * Code Scan
807
+ * Project Files
1140
808
  */
1141
- export function codeScanV1CodeScanPost({ authorization, xAccountId, codeScanRequest }: {
809
+ export function projectFilesV1ProjectFilesPost({ authorization, xAccountId, newProjectFilesRequest }: {
1142
810
  authorization: string;
1143
- xAccountId?: string;
1144
- codeScanRequest: CodeScanRequest;
811
+ xAccountId?: string | null;
812
+ newProjectFilesRequest: NewProjectFilesRequest;
1145
813
  }, opts?: Oazapfts.RequestOpts) {
1146
814
  return oazapfts.ok(oazapfts.fetchJson<{
1147
- status: 200;
1148
- data: CodeUnderstandingResponse[];
815
+ status: 202;
816
+ data: any;
1149
817
  } | {
1150
818
  status: 404;
1151
819
  } | {
1152
820
  status: 422;
1153
821
  data: HttpValidationError;
1154
- }>("/v1/code-scan", oazapfts.json({
822
+ }>("/v1/project-files", oazapfts.json({
1155
823
  ...opts,
1156
824
  method: "POST",
1157
- body: codeScanRequest,
825
+ body: newProjectFilesRequest,
1158
826
  headers: oazapfts.mergeHeaders(opts?.headers, {
1159
827
  authorization,
1160
828
  "x-account-id": xAccountId
@@ -1166,7 +834,7 @@ export function codeScanV1CodeScanPost({ authorization, xAccountId, codeScanRequ
1166
834
  */
1167
835
  export function quickActionsV1QuickActionsPost({ authorization, xAccountId, quickActionsRequest }: {
1168
836
  authorization: string;
1169
- xAccountId?: string;
837
+ xAccountId?: string | null;
1170
838
  quickActionsRequest: QuickActionsRequest;
1171
839
  }, opts?: Oazapfts.RequestOpts) {
1172
840
  return oazapfts.ok(oazapfts.fetchJson<{
@@ -1192,7 +860,7 @@ export function quickActionsV1QuickActionsPost({ authorization, xAccountId, quic
1192
860
  */
1193
861
  export function devAssistantV1ChatPost({ authorization, xAccountId, codeBuddyApiV1SchemasChatRequest }: {
1194
862
  authorization: string;
1195
- xAccountId?: string;
863
+ xAccountId?: string | null;
1196
864
  codeBuddyApiV1SchemasChatRequest: ChatRequest;
1197
865
  }, opts?: Oazapfts.RequestOpts) {
1198
866
  return oazapfts.ok(oazapfts.fetchJson<{
@@ -1213,39 +881,13 @@ export function devAssistantV1ChatPost({ authorization, xAccountId, codeBuddyApi
1213
881
  })
1214
882
  })));
1215
883
  }
1216
- /**
1217
- * Autocomplete Code Generator
1218
- */
1219
- export function autocompleteCodeGeneratorV1AutocompletePost({ authorization, xAccountId, autocompleteCodeGeneratorRequest }: {
1220
- authorization: string;
1221
- xAccountId?: string;
1222
- autocompleteCodeGeneratorRequest: AutocompleteCodeGeneratorRequest;
1223
- }, opts?: Oazapfts.RequestOpts) {
1224
- return oazapfts.ok(oazapfts.fetchJson<{
1225
- status: 200;
1226
- data: SimpleResponse;
1227
- } | {
1228
- status: 404;
1229
- } | {
1230
- status: 422;
1231
- data: HttpValidationError;
1232
- }>("/v1/autocomplete", oazapfts.json({
1233
- ...opts,
1234
- method: "POST",
1235
- body: autocompleteCodeGeneratorRequest,
1236
- headers: oazapfts.mergeHeaders(opts?.headers, {
1237
- authorization,
1238
- "x-account-id": xAccountId
1239
- })
1240
- })));
1241
- }
1242
884
  /**
1243
885
  * Post Event
1244
886
  */
1245
887
  export function postEventV1EventsPost({ authorization, xAccountId, body }: {
1246
888
  authorization: string;
1247
- xAccountId?: string;
1248
- body: (UserFeedbackProvidedEventRequest | GenericEventRequest)[];
889
+ xAccountId?: string | null;
890
+ body: GenericEventRequest[];
1249
891
  }, opts?: Oazapfts.RequestOpts) {
1250
892
  return oazapfts.ok(oazapfts.fetchJson<{
1251
893
  status: 204;
@@ -1269,7 +911,7 @@ export function postEventV1EventsPost({ authorization, xAccountId, body }: {
1269
911
  */
1270
912
  export function getUploadUrlV1FileUploadUrlPost({ authorization, xAccountId, newFileUploadUrlRequest }: {
1271
913
  authorization: string;
1272
- xAccountId?: string;
914
+ xAccountId?: string | null;
1273
915
  newFileUploadUrlRequest: NewFileUploadUrlRequest;
1274
916
  }, opts?: Oazapfts.RequestOpts) {
1275
917
  return oazapfts.ok(oazapfts.fetchJson<{
@@ -1295,7 +937,7 @@ export function getUploadUrlV1FileUploadUrlPost({ authorization, xAccountId, new
1295
937
  */
1296
938
  export function getUploadFormV1FileUploadFormPost({ authorization, xAccountId, newFileUploadUrlRequest }: {
1297
939
  authorization: string;
1298
- xAccountId?: string;
940
+ xAccountId?: string | null;
1299
941
  newFileUploadUrlRequest: NewFileUploadUrlRequest;
1300
942
  }, opts?: Oazapfts.RequestOpts) {
1301
943
  return oazapfts.ok(oazapfts.fetchJson<{
@@ -1322,7 +964,7 @@ export function getUploadFormV1FileUploadFormPost({ authorization, xAccountId, n
1322
964
  export function getFileUploadStatusV1FileUploadFileUploadIdGet({ fileUploadId, authorization, xAccountId }: {
1323
965
  fileUploadId: string;
1324
966
  authorization: string;
1325
- xAccountId?: string;
967
+ xAccountId?: string | null;
1326
968
  }, opts?: Oazapfts.RequestOpts) {
1327
969
  return oazapfts.ok(oazapfts.fetchJson<{
1328
970
  status: 200;
@@ -1354,61 +996,61 @@ export function reportHealthHealthzGet(opts?: Oazapfts.RequestOpts) {
1354
996
  }));
1355
997
  }
1356
998
  /**
1357
- * List Knowledge Sources
999
+ * Create Knowledge Source
1358
1000
  */
1359
- export function listKnowledgeSourcesV1KnowledgeSourcesGet({ visibility, order, $default, types, authorization, xAccountId }: {
1360
- visibility?: VisibilityLevelEnum;
1361
- order?: OrderEnum;
1362
- $default?: boolean;
1363
- types?: KnowledgeSourceTypeEnum[];
1001
+ export function createKnowledgeSourceV1KnowledgeSourcesPost({ authorization, xAccountId, newKnowledgeSourceRequest }: {
1364
1002
  authorization: string;
1365
- xAccountId?: string;
1003
+ xAccountId?: string | null;
1004
+ newKnowledgeSourceRequest: NewKnowledgeSourceRequest;
1366
1005
  }, opts?: Oazapfts.RequestOpts) {
1367
1006
  return oazapfts.ok(oazapfts.fetchJson<{
1368
- status: 200;
1369
- data: KnowledgeSourceItemResponse[];
1007
+ status: 204;
1370
1008
  } | {
1371
1009
  status: 404;
1372
1010
  } | {
1373
1011
  status: 422;
1374
1012
  data: HttpValidationError;
1375
- }>(`/v1/knowledge-sources${QS.query(QS.explode({
1376
- visibility,
1377
- order,
1378
- "default": $default,
1379
- types
1380
- }))}`, {
1013
+ }>("/v1/knowledge-sources", oazapfts.json({
1381
1014
  ...opts,
1015
+ method: "POST",
1016
+ body: newKnowledgeSourceRequest,
1382
1017
  headers: oazapfts.mergeHeaders(opts?.headers, {
1383
1018
  authorization,
1384
1019
  "x-account-id": xAccountId
1385
1020
  })
1386
- }));
1021
+ })));
1387
1022
  }
1388
1023
  /**
1389
- * Create Knowledge Source
1024
+ * List Knowledge Sources
1390
1025
  */
1391
- export function createKnowledgeSourceV1KnowledgeSourcesPost({ authorization, xAccountId, newKnowledgeSourceRequest }: {
1026
+ export function listKnowledgeSourcesV1KnowledgeSourcesGet({ visibility, order, $default, types, authorization, xAccountId }: {
1027
+ visibility?: VisibilityLevelEnum;
1028
+ order?: OrderEnum;
1029
+ $default?: boolean | null;
1030
+ types?: KnowledgeSourceTypeEnum[] | null;
1392
1031
  authorization: string;
1393
- xAccountId?: string;
1394
- newKnowledgeSourceRequest: NewKnowledgeSourceRequest;
1032
+ xAccountId?: string | null;
1395
1033
  }, opts?: Oazapfts.RequestOpts) {
1396
1034
  return oazapfts.ok(oazapfts.fetchJson<{
1397
- status: 204;
1035
+ status: 200;
1036
+ data: KnowledgeSourceItemResponse[];
1398
1037
  } | {
1399
1038
  status: 404;
1400
1039
  } | {
1401
1040
  status: 422;
1402
1041
  data: HttpValidationError;
1403
- }>("/v1/knowledge-sources", oazapfts.json({
1042
+ }>(`/v1/knowledge-sources${QS.query(QS.explode({
1043
+ visibility,
1044
+ order,
1045
+ "default": $default,
1046
+ types
1047
+ }))}`, {
1404
1048
  ...opts,
1405
- method: "POST",
1406
- body: newKnowledgeSourceRequest,
1407
1049
  headers: oazapfts.mergeHeaders(opts?.headers, {
1408
1050
  authorization,
1409
1051
  "x-account-id": xAccountId
1410
1052
  })
1411
- })));
1053
+ }));
1412
1054
  }
1413
1055
  /**
1414
1056
  * Find Knowledge Source
@@ -1416,7 +1058,7 @@ export function createKnowledgeSourceV1KnowledgeSourcesPost({ authorization, xAc
1416
1058
  export function findKnowledgeSourceV1KnowledgeSourcesSlugGet({ slug, authorization, xAccountId }: {
1417
1059
  slug: string;
1418
1060
  authorization: string;
1419
- xAccountId?: string;
1061
+ xAccountId?: string | null;
1420
1062
  }, opts?: Oazapfts.RequestOpts) {
1421
1063
  return oazapfts.ok(oazapfts.fetchJson<{
1422
1064
  status: 200;
@@ -1435,12 +1077,13 @@ export function findKnowledgeSourceV1KnowledgeSourcesSlugGet({ slug, authorizati
1435
1077
  }));
1436
1078
  }
1437
1079
  /**
1438
- * Delete Knowledge Source
1080
+ * Update Knowledge Source
1439
1081
  */
1440
- export function deleteKnowledgeSourceV1KnowledgeSourcesSlugDelete({ slug, authorization, xAccountId }: {
1082
+ export function updateKnowledgeSourceV1KnowledgeSourcesSlugPatch({ slug, authorization, xAccountId, knowledgeSourcePatchesRequest }: {
1441
1083
  slug: string;
1442
1084
  authorization: string;
1443
- xAccountId?: string;
1085
+ xAccountId?: string | null;
1086
+ knowledgeSourcePatchesRequest: KnowledgeSourcePatchesRequest;
1444
1087
  }, opts?: Oazapfts.RequestOpts) {
1445
1088
  return oazapfts.ok(oazapfts.fetchJson<{
1446
1089
  status: 204;
@@ -1449,23 +1092,23 @@ export function deleteKnowledgeSourceV1KnowledgeSourcesSlugDelete({ slug, author
1449
1092
  } | {
1450
1093
  status: 422;
1451
1094
  data: HttpValidationError;
1452
- }>(`/v1/knowledge-sources/${encodeURIComponent(slug)}`, {
1095
+ }>(`/v1/knowledge-sources/${encodeURIComponent(slug)}`, oazapfts.json({
1453
1096
  ...opts,
1454
- method: "DELETE",
1097
+ method: "PATCH",
1098
+ body: knowledgeSourcePatchesRequest,
1455
1099
  headers: oazapfts.mergeHeaders(opts?.headers, {
1456
1100
  authorization,
1457
1101
  "x-account-id": xAccountId
1458
1102
  })
1459
- }));
1103
+ })));
1460
1104
  }
1461
1105
  /**
1462
- * Update Knowledge Source
1106
+ * Delete Knowledge Source
1463
1107
  */
1464
- export function updateKnowledgeSourceV1KnowledgeSourcesSlugPatch({ slug, authorization, xAccountId, knowledgeSourcePatchesRequest }: {
1108
+ export function deleteKnowledgeSourceV1KnowledgeSourcesSlugDelete({ slug, authorization, xAccountId }: {
1465
1109
  slug: string;
1466
1110
  authorization: string;
1467
- xAccountId?: string;
1468
- knowledgeSourcePatchesRequest: KnowledgeSourcePatchesRequest;
1111
+ xAccountId?: string | null;
1469
1112
  }, opts?: Oazapfts.RequestOpts) {
1470
1113
  return oazapfts.ok(oazapfts.fetchJson<{
1471
1114
  status: 204;
@@ -1474,15 +1117,14 @@ export function updateKnowledgeSourceV1KnowledgeSourcesSlugPatch({ slug, authori
1474
1117
  } | {
1475
1118
  status: 422;
1476
1119
  data: HttpValidationError;
1477
- }>(`/v1/knowledge-sources/${encodeURIComponent(slug)}`, oazapfts.json({
1120
+ }>(`/v1/knowledge-sources/${encodeURIComponent(slug)}`, {
1478
1121
  ...opts,
1479
- method: "PATCH",
1480
- body: knowledgeSourcePatchesRequest,
1122
+ method: "DELETE",
1481
1123
  headers: oazapfts.mergeHeaders(opts?.headers, {
1482
1124
  authorization,
1483
1125
  "x-account-id": xAccountId
1484
1126
  })
1485
- })));
1127
+ }));
1486
1128
  }
1487
1129
  /**
1488
1130
  * Find Knowledge Source Dependencies
@@ -1490,7 +1132,7 @@ export function updateKnowledgeSourceV1KnowledgeSourcesSlugPatch({ slug, authori
1490
1132
  export function findKnowledgeSourceDependenciesV1KnowledgeSourcesSlugDependenciesGet({ slug, authorization, xAccountId }: {
1491
1133
  slug: string;
1492
1134
  authorization: string;
1493
- xAccountId?: string;
1135
+ xAccountId?: string | null;
1494
1136
  }, opts?: Oazapfts.RequestOpts) {
1495
1137
  return oazapfts.ok(oazapfts.fetchJson<{
1496
1138
  status: 200;
@@ -1516,7 +1158,7 @@ export function searchV1KnowledgeSourcesSlugSimilaritySearchGet({ slug, q, size,
1516
1158
  q: string;
1517
1159
  size?: number;
1518
1160
  authorization: string;
1519
- xAccountId?: string;
1161
+ xAccountId?: string | null;
1520
1162
  }, opts?: Oazapfts.RequestOpts) {
1521
1163
  return oazapfts.ok(oazapfts.fetchJson<{
1522
1164
  status: 200;
@@ -1543,7 +1185,7 @@ export function searchV1KnowledgeSourcesSlugSimilaritySearchGet({ slug, q, size,
1543
1185
  export function shareKnowledgeSourceV1KnowledgeSourcesSlugSharePost({ slug, authorization, xAccountId }: {
1544
1186
  slug: string;
1545
1187
  authorization: string;
1546
- xAccountId?: string;
1188
+ xAccountId?: string | null;
1547
1189
  }, opts?: Oazapfts.RequestOpts) {
1548
1190
  return oazapfts.ok(oazapfts.fetchJson<{
1549
1191
  status: 204;
@@ -1561,6 +1203,55 @@ export function shareKnowledgeSourceV1KnowledgeSourcesSlugSharePost({ slug, auth
1561
1203
  })
1562
1204
  }));
1563
1205
  }
1206
+ /**
1207
+ * Publish Knowledge Source
1208
+ */
1209
+ export function publishKnowledgeSourceV1KnowledgeSourcesSlugPublishPost({ slug, authorization, xAccountId }: {
1210
+ slug: string;
1211
+ authorization: string;
1212
+ xAccountId?: string | null;
1213
+ }, opts?: Oazapfts.RequestOpts) {
1214
+ return oazapfts.ok(oazapfts.fetchJson<{
1215
+ status: 204;
1216
+ } | {
1217
+ status: 404;
1218
+ } | {
1219
+ status: 422;
1220
+ data: HttpValidationError;
1221
+ }>(`/v1/knowledge-sources/${encodeURIComponent(slug)}/publish`, {
1222
+ ...opts,
1223
+ method: "POST",
1224
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1225
+ authorization,
1226
+ "x-account-id": xAccountId
1227
+ })
1228
+ }));
1229
+ }
1230
+ /**
1231
+ * Publish Knowledge Source In Batch
1232
+ */
1233
+ export function publishKnowledgeSourceInBatchV1KnowledgeSourcesPublishBatchPost({ authorization, xAccountId, knowSourcePublishBatchRequest }: {
1234
+ authorization: string;
1235
+ xAccountId?: string | null;
1236
+ knowSourcePublishBatchRequest: KnowSourcePublishBatchRequest;
1237
+ }, opts?: Oazapfts.RequestOpts) {
1238
+ return oazapfts.ok(oazapfts.fetchJson<{
1239
+ status: 204;
1240
+ } | {
1241
+ status: 404;
1242
+ } | {
1243
+ status: 422;
1244
+ data: HttpValidationError;
1245
+ }>("/v1/knowledge-sources/publish/batch", oazapfts.json({
1246
+ ...opts,
1247
+ method: "POST",
1248
+ body: knowSourcePublishBatchRequest,
1249
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1250
+ authorization,
1251
+ "x-account-id": xAccountId
1252
+ })
1253
+ })));
1254
+ }
1564
1255
  /**
1565
1256
  * Configure Knowledge Source Default Flag
1566
1257
  */
@@ -1568,7 +1259,7 @@ export function configureKnowledgeSourceDefaultFlagV1KnowledgeSourcesSlugDefault
1568
1259
  slug: string;
1569
1260
  value: boolean;
1570
1261
  authorization: string;
1571
- xAccountId?: string;
1262
+ xAccountId?: string | null;
1572
1263
  }, opts?: Oazapfts.RequestOpts) {
1573
1264
  return oazapfts.ok(oazapfts.fetchJson<{
1574
1265
  status: 204;
@@ -1594,7 +1285,7 @@ export function configureKnowledgeSourceDefaultFlagV1KnowledgeSourcesSlugDefault
1594
1285
  export function forkKnowledgeSourceV1KnowledgeSourcesSlugForkPost({ slug, authorization, xAccountId, forkKnowledgeSourceRequest }: {
1595
1286
  slug: string;
1596
1287
  authorization: string;
1597
- xAccountId?: string;
1288
+ xAccountId?: string | null;
1598
1289
  forkKnowledgeSourceRequest: ForkKnowledgeSourceRequest;
1599
1290
  }, opts?: Oazapfts.RequestOpts) {
1600
1291
  return oazapfts.ok(oazapfts.fetchJson<{
@@ -1615,66 +1306,66 @@ export function forkKnowledgeSourceV1KnowledgeSourcesSlugForkPost({ slug, author
1615
1306
  })));
1616
1307
  }
1617
1308
  /**
1618
- * List Knowledge Objects
1309
+ * Vectorize Objects From File
1619
1310
  */
1620
- export function listKnowledgeObjectsV1KnowledgeSourcesSlugObjectsGet({ slug, standalone, authorization, xAccountId }: {
1311
+ export function vectorizeObjectsFromFileV1KnowledgeSourcesSlugObjectsPost({ slug, authorization, xAccountId, bodyVectorizeObjectsFromFileV1KnowledgeSourcesSlugObjectsPost }: {
1621
1312
  slug: string;
1622
- standalone?: boolean;
1623
1313
  authorization: string;
1624
- xAccountId?: string;
1314
+ xAccountId?: string | null;
1315
+ bodyVectorizeObjectsFromFileV1KnowledgeSourcesSlugObjectsPost: BodyVectorizeObjectsFromFileV1KnowledgeSourcesSlugObjectsPost;
1625
1316
  }, opts?: Oazapfts.RequestOpts) {
1626
1317
  return oazapfts.ok(oazapfts.fetchJson<{
1627
- status: 200;
1628
- data: DocumentResponse[];
1318
+ status: 204;
1629
1319
  } | {
1630
1320
  status: 404;
1631
1321
  } | {
1632
1322
  status: 422;
1633
1323
  data: HttpValidationError;
1634
- }>(`/v1/knowledge-sources/${encodeURIComponent(slug)}/objects${QS.query(QS.explode({
1635
- standalone
1636
- }))}`, {
1324
+ }>(`/v1/knowledge-sources/${encodeURIComponent(slug)}/objects`, oazapfts.multipart({
1637
1325
  ...opts,
1326
+ method: "POST",
1327
+ body: bodyVectorizeObjectsFromFileV1KnowledgeSourcesSlugObjectsPost,
1638
1328
  headers: oazapfts.mergeHeaders(opts?.headers, {
1639
1329
  authorization,
1640
1330
  "x-account-id": xAccountId
1641
1331
  })
1642
- }));
1332
+ })));
1643
1333
  }
1644
1334
  /**
1645
- * Vectorize Objects From File
1335
+ * List Knowledge Objects
1646
1336
  */
1647
- export function vectorizeObjectsFromFileV1KnowledgeSourcesSlugObjectsPost({ slug, authorization, xAccountId, bodyVectorizeObjectsFromFileV1KnowledgeSourcesSlugObjectsPost }: {
1337
+ export function listKnowledgeObjectsV1KnowledgeSourcesSlugObjectsGet({ slug, standalone, authorization, xAccountId }: {
1648
1338
  slug: string;
1339
+ standalone?: boolean | null;
1649
1340
  authorization: string;
1650
- xAccountId?: string;
1651
- bodyVectorizeObjectsFromFileV1KnowledgeSourcesSlugObjectsPost: BodyVectorizeObjectsFromFileV1KnowledgeSourcesSlugObjectsPost;
1341
+ xAccountId?: string | null;
1652
1342
  }, opts?: Oazapfts.RequestOpts) {
1653
1343
  return oazapfts.ok(oazapfts.fetchJson<{
1654
- status: 204;
1344
+ status: 200;
1345
+ data: DocumentResponse[];
1655
1346
  } | {
1656
1347
  status: 404;
1657
1348
  } | {
1658
1349
  status: 422;
1659
1350
  data: HttpValidationError;
1660
- }>(`/v1/knowledge-sources/${encodeURIComponent(slug)}/objects`, oazapfts.multipart({
1351
+ }>(`/v1/knowledge-sources/${encodeURIComponent(slug)}/objects${QS.query(QS.explode({
1352
+ standalone
1353
+ }))}`, {
1661
1354
  ...opts,
1662
- method: "POST",
1663
- body: bodyVectorizeObjectsFromFileV1KnowledgeSourcesSlugObjectsPost,
1664
1355
  headers: oazapfts.mergeHeaders(opts?.headers, {
1665
1356
  authorization,
1666
1357
  "x-account-id": xAccountId
1667
1358
  })
1668
- })));
1359
+ }));
1669
1360
  }
1670
1361
  /**
1671
1362
  * Reset Knowledge Objects
1672
1363
  */
1673
1364
  export function resetKnowledgeObjectsV1KnowledgeSourcesSlugObjectsDelete({ slug, standalone, authorization, xAccountId }: {
1674
1365
  slug: string;
1675
- standalone?: boolean;
1366
+ standalone?: boolean | null;
1676
1367
  authorization: string;
1677
- xAccountId?: string;
1368
+ xAccountId?: string | null;
1678
1369
  }, opts?: Oazapfts.RequestOpts) {
1679
1370
  return oazapfts.ok(oazapfts.fetchJson<{
1680
1371
  status: 204;
@@ -1701,7 +1392,7 @@ export function uploadKnowledgeObjectsZipV1KnowledgeSourcesSlugObjectsBatchPost(
1701
1392
  slug: string;
1702
1393
  autoDelete?: boolean;
1703
1394
  authorization: string;
1704
- xAccountId?: string;
1395
+ xAccountId?: string | null;
1705
1396
  bodyUploadKnowledgeObjectsZipV1KnowledgeSourcesSlugObjectsBatchPost: BodyUploadKnowledgeObjectsZipV1KnowledgeSourcesSlugObjectsBatchPost;
1706
1397
  }, opts?: Oazapfts.RequestOpts) {
1707
1398
  return oazapfts.ok(oazapfts.fetchJson<{
@@ -1730,7 +1421,7 @@ export function findKnowledgeObjectByCustomIdV1KnowledgeSourcesSlugObjectsCustom
1730
1421
  slug: string;
1731
1422
  customId: string;
1732
1423
  authorization: string;
1733
- xAccountId?: string;
1424
+ xAccountId?: string | null;
1734
1425
  }, opts?: Oazapfts.RequestOpts) {
1735
1426
  return oazapfts.ok(oazapfts.fetchJson<{
1736
1427
  status: 200;
@@ -1755,7 +1446,7 @@ export function deleteKnowledgeObjectByCustomIdV1KnowledgeSourcesSlugObjectsCust
1755
1446
  customId: string;
1756
1447
  slug: string;
1757
1448
  authorization: string;
1758
- xAccountId?: string;
1449
+ xAccountId?: string | null;
1759
1450
  }, opts?: Oazapfts.RequestOpts) {
1760
1451
  return oazapfts.ok(oazapfts.fetchJson<{
1761
1452
  status: 204;
@@ -1780,7 +1471,7 @@ export function findSnippetDocByCustomIdV1KnowledgeSourcesSlugSnippetsIdGet({ sl
1780
1471
  slug: string;
1781
1472
  id: string;
1782
1473
  authorization: string;
1783
- xAccountId?: string;
1474
+ xAccountId?: string | null;
1784
1475
  }, opts?: Oazapfts.RequestOpts) {
1785
1476
  return oazapfts.ok(oazapfts.fetchJson<{
1786
1477
  status: 200;
@@ -1804,7 +1495,7 @@ export function findSnippetDocByCustomIdV1KnowledgeSourcesSlugSnippetsIdGet({ sl
1804
1495
  export function vectorizeSnippetKnowledgeSourceV1KnowledgeSourcesSlugSnippetsPost({ slug, authorization, xAccountId, snippetKnowledgeSourceRequest }: {
1805
1496
  slug: string;
1806
1497
  authorization: string;
1807
- xAccountId?: string;
1498
+ xAccountId?: string | null;
1808
1499
  snippetKnowledgeSourceRequest: SnippetKnowledgeSourceRequest;
1809
1500
  }, opts?: Oazapfts.RequestOpts) {
1810
1501
  return oazapfts.ok(oazapfts.fetchJson<{
@@ -1831,7 +1522,7 @@ export function findApiDocByCustomIdV1KnowledgeSourcesSlugApisIdGet({ slug, id,
1831
1522
  slug: string;
1832
1523
  id: string;
1833
1524
  authorization: string;
1834
- xAccountId?: string;
1525
+ xAccountId?: string | null;
1835
1526
  }, opts?: Oazapfts.RequestOpts) {
1836
1527
  return oazapfts.ok(oazapfts.fetchJson<{
1837
1528
  status: 200;
@@ -1855,7 +1546,7 @@ export function findApiDocByCustomIdV1KnowledgeSourcesSlugApisIdGet({ slug, id,
1855
1546
  export function vectorizeApiKnowledgeSourceV1KnowledgeSourcesSlugApisPost({ slug, authorization, xAccountId, body }: {
1856
1547
  slug: string;
1857
1548
  authorization: string;
1858
- xAccountId?: string;
1549
+ xAccountId?: string | null;
1859
1550
  body: object;
1860
1551
  }, opts?: Oazapfts.RequestOpts) {
1861
1552
  return oazapfts.ok(oazapfts.fetchJson<{
@@ -1882,7 +1573,7 @@ export function findEventDocByCustomIdV1KnowledgeSourcesSlugEventsIdGet({ slug,
1882
1573
  slug: string;
1883
1574
  id: string;
1884
1575
  authorization: string;
1885
- xAccountId?: string;
1576
+ xAccountId?: string | null;
1886
1577
  }, opts?: Oazapfts.RequestOpts) {
1887
1578
  return oazapfts.ok(oazapfts.fetchJson<{
1888
1579
  status: 200;
@@ -1906,7 +1597,7 @@ export function findEventDocByCustomIdV1KnowledgeSourcesSlugEventsIdGet({ slug,
1906
1597
  export function vectorizeEventKnowledgeSourceV1KnowledgeSourcesSlugEventsPost({ slug, authorization, xAccountId, body }: {
1907
1598
  slug: string;
1908
1599
  authorization: string;
1909
- xAccountId?: string;
1600
+ xAccountId?: string | null;
1910
1601
  body: object;
1911
1602
  }, opts?: Oazapfts.RequestOpts) {
1912
1603
  return oazapfts.ok(oazapfts.fetchJson<{
@@ -1933,7 +1624,7 @@ export function findCustomDocByCustomIdV1KnowledgeSourcesSlugCustomIdGet({ slug,
1933
1624
  slug: string;
1934
1625
  id: string;
1935
1626
  authorization: string;
1936
- xAccountId?: string;
1627
+ xAccountId?: string | null;
1937
1628
  }, opts?: Oazapfts.RequestOpts) {
1938
1629
  return oazapfts.ok(oazapfts.fetchJson<{
1939
1630
  status: 200;
@@ -1957,7 +1648,7 @@ export function findCustomDocByCustomIdV1KnowledgeSourcesSlugCustomIdGet({ slug,
1957
1648
  export function vectorizeCustomKnowledgeSourceV1KnowledgeSourcesSlugCustomPost({ slug, authorization, xAccountId, customKnowledgeSourceRequest }: {
1958
1649
  slug: string;
1959
1650
  authorization: string;
1960
- xAccountId?: string;
1651
+ xAccountId?: string | null;
1961
1652
  customKnowledgeSourceRequest: CustomKnowledgeSourceRequest;
1962
1653
  }, opts?: Oazapfts.RequestOpts) {
1963
1654
  return oazapfts.ok(oazapfts.fetchJson<{
@@ -1991,12 +1682,64 @@ export function syncEmbeddingModelV1KnowledgeSourcesSyncPost(opts?: Oazapfts.Req
1991
1682
  method: "POST"
1992
1683
  }));
1993
1684
  }
1685
+ /**
1686
+ * Search Knowledge Sources
1687
+ */
1688
+ export function searchKnowledgeSourcesV1KnowledgeSourcesSearchPost({ authorization, xAccountId, searchKnowledgeSourcesRequest }: {
1689
+ authorization: string;
1690
+ xAccountId?: string | null;
1691
+ searchKnowledgeSourcesRequest: SearchKnowledgeSourcesRequest;
1692
+ }, opts?: Oazapfts.RequestOpts) {
1693
+ return oazapfts.ok(oazapfts.fetchJson<{
1694
+ status: 200;
1695
+ data: any;
1696
+ } | {
1697
+ status: 404;
1698
+ } | {
1699
+ status: 422;
1700
+ data: HttpValidationError;
1701
+ }>("/v1/knowledge-sources/search", oazapfts.json({
1702
+ ...opts,
1703
+ method: "POST",
1704
+ body: searchKnowledgeSourcesRequest,
1705
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1706
+ authorization,
1707
+ "x-account-id": xAccountId
1708
+ })
1709
+ })));
1710
+ }
1711
+ /**
1712
+ * Ks Dependencies
1713
+ */
1714
+ export function ksDependenciesV1KnowledgeSourcesDependenciesPost({ authorization, xAccountId, knowledgeSourcesDependenciesRequest }: {
1715
+ authorization: string;
1716
+ xAccountId?: string | null;
1717
+ knowledgeSourcesDependenciesRequest: KnowledgeSourcesDependenciesRequest;
1718
+ }, opts?: Oazapfts.RequestOpts) {
1719
+ return oazapfts.ok(oazapfts.fetchJson<{
1720
+ status: 200;
1721
+ data: KnowledgeSourcesDependenciesResponseV2;
1722
+ } | {
1723
+ status: 404;
1724
+ } | {
1725
+ status: 422;
1726
+ data: HttpValidationError;
1727
+ }>("/v1/knowledge-sources/dependencies", oazapfts.json({
1728
+ ...opts,
1729
+ method: "POST",
1730
+ body: knowledgeSourcesDependenciesRequest,
1731
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1732
+ authorization,
1733
+ "x-account-id": xAccountId
1734
+ })
1735
+ })));
1736
+ }
1994
1737
  /**
1995
1738
  * Change Llm
1996
1739
  */
1997
1740
  export function changeLlmV1AccountsLlmPatch({ authorization, xAccountId, accountSettingsChangeLlmRequest }: {
1998
1741
  authorization: string;
1999
- xAccountId?: string;
1742
+ xAccountId?: string | null;
2000
1743
  accountSettingsChangeLlmRequest: AccountSettingsChangeLlmRequest;
2001
1744
  }, opts?: Oazapfts.RequestOpts) {
2002
1745
  return oazapfts.ok(oazapfts.fetchJson<{
@@ -2021,7 +1764,7 @@ export function changeLlmV1AccountsLlmPatch({ authorization, xAccountId, account
2021
1764
  */
2022
1765
  export function changeLimitV1AccountsTokenLimitsPut({ authorization, xAccountId, accountSettingsChangeLimitRequest }: {
2023
1766
  authorization: string;
2024
- xAccountId?: string;
1767
+ xAccountId?: string | null;
2025
1768
  accountSettingsChangeLimitRequest: AccountSettingsChangeLimitRequest;
2026
1769
  }, opts?: Oazapfts.RequestOpts) {
2027
1770
  return oazapfts.ok(oazapfts.fetchJson<{
@@ -2046,7 +1789,7 @@ export function changeLimitV1AccountsTokenLimitsPut({ authorization, xAccountId,
2046
1789
  */
2047
1790
  export function resetLimitV1AccountsTokenLimitsDelete({ authorization, xAccountId }: {
2048
1791
  authorization: string;
2049
- xAccountId?: string;
1792
+ xAccountId?: string | null;
2050
1793
  }, opts?: Oazapfts.RequestOpts) {
2051
1794
  return oazapfts.ok(oazapfts.fetchJson<{
2052
1795
  status: 204;
@@ -2071,7 +1814,7 @@ export function currentV1TokensUsageCurrentGet({ year, month, authorization, xAc
2071
1814
  year: number;
2072
1815
  month: number;
2073
1816
  authorization: string;
2074
- xAccountId?: string;
1817
+ xAccountId?: string | null;
2075
1818
  }, opts?: Oazapfts.RequestOpts) {
2076
1819
  return oazapfts.ok(oazapfts.fetchJson<{
2077
1820
  status: 200;
@@ -2098,7 +1841,7 @@ export function currentV1TokensUsageCurrentGet({ year, month, authorization, xAc
2098
1841
  export function monthlyV1TokensUsageMonthlyGet({ year, authorization, xAccountId }: {
2099
1842
  year: number;
2100
1843
  authorization: string;
2101
- xAccountId?: string;
1844
+ xAccountId?: string | null;
2102
1845
  }, opts?: Oazapfts.RequestOpts) {
2103
1846
  return oazapfts.ok(oazapfts.fetchJson<{
2104
1847
  status: 200;
@@ -2125,7 +1868,7 @@ export function topUsersV1TokensUsageTopUsersGet({ year, month, authorization, x
2125
1868
  year: number;
2126
1869
  month: number;
2127
1870
  authorization: string;
2128
- xAccountId?: string;
1871
+ xAccountId?: string | null;
2129
1872
  }, opts?: Oazapfts.RequestOpts) {
2130
1873
  return oazapfts.ok(oazapfts.fetchJson<{
2131
1874
  status: 200;
@@ -2147,54 +1890,54 @@ export function topUsersV1TokensUsageTopUsersGet({ year, month, authorization, x
2147
1890
  }));
2148
1891
  }
2149
1892
  /**
2150
- * List Association
1893
+ * Add Association
2151
1894
  */
2152
- export function listAssociationV1WorkspaceWorkspaceIdGet({ workspaceId, authorization, xAccountId }: {
1895
+ export function addAssociationV1WorkspaceWorkspaceIdPost({ workspaceId, authorization, xAccountId, addWorkspaceKnowledgeSourceRequest }: {
2153
1896
  workspaceId: string;
2154
1897
  authorization: string;
2155
- xAccountId?: string;
1898
+ xAccountId?: string | null;
1899
+ addWorkspaceKnowledgeSourceRequest: AddWorkspaceKnowledgeSourceRequest;
2156
1900
  }, opts?: Oazapfts.RequestOpts) {
2157
1901
  return oazapfts.ok(oazapfts.fetchJson<{
2158
- status: 200;
2159
- data: KnowledgeSourceResponse[];
1902
+ status: 204;
2160
1903
  } | {
2161
1904
  status: 404;
2162
1905
  } | {
2163
1906
  status: 422;
2164
1907
  data: HttpValidationError;
2165
- }>(`/v1/workspace/${encodeURIComponent(workspaceId)}`, {
1908
+ }>(`/v1/workspace/${encodeURIComponent(workspaceId)}`, oazapfts.json({
2166
1909
  ...opts,
1910
+ method: "POST",
1911
+ body: addWorkspaceKnowledgeSourceRequest,
2167
1912
  headers: oazapfts.mergeHeaders(opts?.headers, {
2168
1913
  authorization,
2169
1914
  "x-account-id": xAccountId
2170
1915
  })
2171
- }));
1916
+ })));
2172
1917
  }
2173
1918
  /**
2174
- * Add Association
1919
+ * List Association
2175
1920
  */
2176
- export function addAssociationV1WorkspaceWorkspaceIdPost({ workspaceId, authorization, xAccountId, addWorkspaceKnowledgeSourceRequest }: {
1921
+ export function listAssociationV1WorkspaceWorkspaceIdGet({ workspaceId, authorization, xAccountId }: {
2177
1922
  workspaceId: string;
2178
1923
  authorization: string;
2179
- xAccountId?: string;
2180
- addWorkspaceKnowledgeSourceRequest: AddWorkspaceKnowledgeSourceRequest;
1924
+ xAccountId?: string | null;
2181
1925
  }, opts?: Oazapfts.RequestOpts) {
2182
1926
  return oazapfts.ok(oazapfts.fetchJson<{
2183
- status: 204;
1927
+ status: 200;
1928
+ data: KnowledgeSourceResponse[];
2184
1929
  } | {
2185
1930
  status: 404;
2186
1931
  } | {
2187
1932
  status: 422;
2188
1933
  data: HttpValidationError;
2189
- }>(`/v1/workspace/${encodeURIComponent(workspaceId)}`, oazapfts.json({
1934
+ }>(`/v1/workspace/${encodeURIComponent(workspaceId)}`, {
2190
1935
  ...opts,
2191
- method: "POST",
2192
- body: addWorkspaceKnowledgeSourceRequest,
2193
1936
  headers: oazapfts.mergeHeaders(opts?.headers, {
2194
1937
  authorization,
2195
1938
  "x-account-id": xAccountId
2196
1939
  })
2197
- })));
1940
+ }));
2198
1941
  }
2199
1942
  /**
2200
1943
  * Delete Association
@@ -2203,7 +1946,7 @@ export function deleteAssociationV1WorkspaceWorkspaceIdKnowledgeSourceKnowledgeS
2203
1946
  workspaceId: string;
2204
1947
  knowledgeSourceSlug: string;
2205
1948
  authorization: string;
2206
- xAccountId?: string;
1949
+ xAccountId?: string | null;
2207
1950
  }, opts?: Oazapfts.RequestOpts) {
2208
1951
  return oazapfts.ok(oazapfts.fetchJson<{
2209
1952
  status: 204;
@@ -2226,7 +1969,7 @@ export function deleteAssociationV1WorkspaceWorkspaceIdKnowledgeSourceKnowledgeS
2226
1969
  */
2227
1970
  export function createQuickCommandV1QuickCommandsPost({ authorization, xAccountId, quickCommandsCreateRequest }: {
2228
1971
  authorization: string;
2229
- xAccountId?: string;
1972
+ xAccountId?: string | null;
2230
1973
  quickCommandsCreateRequest: QuickCommandsCreateRequest;
2231
1974
  }, opts?: Oazapfts.RequestOpts) {
2232
1975
  return oazapfts.ok(oazapfts.fetchJson<{
@@ -2247,16 +1990,43 @@ export function createQuickCommandV1QuickCommandsPost({ authorization, xAccountI
2247
1990
  })
2248
1991
  })));
2249
1992
  }
1993
+ /**
1994
+ * List All Deprecated
1995
+ */
1996
+ export function listAllDeprecatedV1QuickCommandsAllPost({ origin, authorization, xAccountId, baseContextualRequest }: {
1997
+ origin?: string;
1998
+ authorization: string;
1999
+ xAccountId?: string | null;
2000
+ baseContextualRequest: BaseContextualRequest;
2001
+ }, opts?: Oazapfts.RequestOpts) {
2002
+ return oazapfts.ok(oazapfts.fetchJson<{
2003
+ status: 200;
2004
+ data: QuickCommandListResponse[];
2005
+ } | {
2006
+ status: 404;
2007
+ } | {
2008
+ status: 422;
2009
+ data: HttpValidationError;
2010
+ }>("/v1/quick-commands/all", oazapfts.json({
2011
+ ...opts,
2012
+ method: "POST",
2013
+ body: baseContextualRequest,
2014
+ headers: oazapfts.mergeHeaders(opts?.headers, {
2015
+ origin,
2016
+ authorization,
2017
+ "x-account-id": xAccountId
2018
+ })
2019
+ })));
2020
+ }
2250
2021
  /**
2251
2022
  * List All
2252
2023
  */
2253
- export function listAllV1QuickCommandsAllGet({ visibility, order, workspaceId, types, authorization, xAccountId }: {
2254
- visibility?: VisibilityLevelEnum;
2024
+ export function listAllV1QuickCommandsAllGet({ visibility, order, types, authorization, xAccountId }: {
2025
+ visibility?: VisibilityLevelEnum | null;
2255
2026
  order?: OrderEnum;
2256
- workspaceId?: string;
2257
- types?: QuickCommandTypeRequest[];
2027
+ types?: QuickCommandTypeRequest[] | null;
2258
2028
  authorization: string;
2259
- xAccountId?: string;
2029
+ xAccountId?: string | null;
2260
2030
  }, opts?: Oazapfts.RequestOpts) {
2261
2031
  return oazapfts.ok(oazapfts.fetchJson<{
2262
2032
  status: 200;
@@ -2269,7 +2039,6 @@ export function listAllV1QuickCommandsAllGet({ visibility, order, workspaceId, t
2269
2039
  }>(`/v1/quick-commands/all${QS.query(QS.explode({
2270
2040
  visibility,
2271
2041
  order,
2272
- workspace_id: workspaceId,
2273
2042
  types
2274
2043
  }))}`, {
2275
2044
  ...opts,
@@ -2280,28 +2049,26 @@ export function listAllV1QuickCommandsAllGet({ visibility, order, workspaceId, t
2280
2049
  }));
2281
2050
  }
2282
2051
  /**
2283
- * List All Deprecated
2052
+ * Update Quick Command
2284
2053
  */
2285
- export function listAllDeprecatedV1QuickCommandsAllPost({ origin, authorization, xAccountId, baseContextualRequest }: {
2286
- origin?: string;
2054
+ export function updateQuickCommandV1QuickCommandsSlugPatch({ slug, authorization, xAccountId, quickCommandsUpdateRequest }: {
2055
+ slug: string;
2287
2056
  authorization: string;
2288
- xAccountId?: string;
2289
- baseContextualRequest: BaseContextualRequest;
2057
+ xAccountId?: string | null;
2058
+ quickCommandsUpdateRequest: QuickCommandsUpdateRequest;
2290
2059
  }, opts?: Oazapfts.RequestOpts) {
2291
2060
  return oazapfts.ok(oazapfts.fetchJson<{
2292
- status: 200;
2293
- data: QuickCommandListResponse[];
2061
+ status: 204;
2294
2062
  } | {
2295
2063
  status: 404;
2296
2064
  } | {
2297
2065
  status: 422;
2298
2066
  data: HttpValidationError;
2299
- }>("/v1/quick-commands/all", oazapfts.json({
2067
+ }>(`/v1/quick-commands/${encodeURIComponent(slug)}`, oazapfts.json({
2300
2068
  ...opts,
2301
- method: "POST",
2302
- body: baseContextualRequest,
2069
+ method: "PATCH",
2070
+ body: quickCommandsUpdateRequest,
2303
2071
  headers: oazapfts.mergeHeaders(opts?.headers, {
2304
- origin,
2305
2072
  authorization,
2306
2073
  "x-account-id": xAccountId
2307
2074
  })
@@ -2310,10 +2077,11 @@ export function listAllDeprecatedV1QuickCommandsAllPost({ origin, authorization,
2310
2077
  /**
2311
2078
  * Get Quick Command
2312
2079
  */
2313
- export function getQuickCommandV1QuickCommandsSlugGet({ slug, authorization, xAccountId }: {
2080
+ export function getQuickCommandV1QuickCommandsSlugGet({ slug, findAgents, authorization, xAccountId }: {
2314
2081
  slug: string;
2082
+ findAgents?: boolean;
2315
2083
  authorization: string;
2316
- xAccountId?: string;
2084
+ xAccountId?: string | null;
2317
2085
  }, opts?: Oazapfts.RequestOpts) {
2318
2086
  return oazapfts.ok(oazapfts.fetchJson<{
2319
2087
  status: 200;
@@ -2323,7 +2091,9 @@ export function getQuickCommandV1QuickCommandsSlugGet({ slug, authorization, xAc
2323
2091
  } | {
2324
2092
  status: 422;
2325
2093
  data: HttpValidationError;
2326
- }>(`/v1/quick-commands/${encodeURIComponent(slug)}`, {
2094
+ }>(`/v1/quick-commands/${encodeURIComponent(slug)}${QS.query(QS.explode({
2095
+ find_agents: findAgents
2096
+ }))}`, {
2327
2097
  ...opts,
2328
2098
  headers: oazapfts.mergeHeaders(opts?.headers, {
2329
2099
  authorization,
@@ -2337,7 +2107,7 @@ export function getQuickCommandV1QuickCommandsSlugGet({ slug, authorization, xAc
2337
2107
  export function deleteQuickCommandV1QuickCommandsSlugDelete({ slug, authorization, xAccountId }: {
2338
2108
  slug: string;
2339
2109
  authorization: string;
2340
- xAccountId?: string;
2110
+ xAccountId?: string | null;
2341
2111
  }, opts?: Oazapfts.RequestOpts) {
2342
2112
  return oazapfts.ok(oazapfts.fetchJson<{
2343
2113
  status: 204;
@@ -2356,13 +2126,12 @@ export function deleteQuickCommandV1QuickCommandsSlugDelete({ slug, authorizatio
2356
2126
  }));
2357
2127
  }
2358
2128
  /**
2359
- * Update Quick Command
2129
+ * Share
2360
2130
  */
2361
- export function updateQuickCommandV1QuickCommandsSlugPatch({ slug, authorization, xAccountId, quickCommandsUpdateRequest }: {
2131
+ export function shareV1QuickCommandsSlugSharePost({ slug, authorization, xAccountId }: {
2362
2132
  slug: string;
2363
2133
  authorization: string;
2364
- xAccountId?: string;
2365
- quickCommandsUpdateRequest: QuickCommandsUpdateRequest;
2134
+ xAccountId?: string | null;
2366
2135
  }, opts?: Oazapfts.RequestOpts) {
2367
2136
  return oazapfts.ok(oazapfts.fetchJson<{
2368
2137
  status: 204;
@@ -2371,24 +2140,22 @@ export function updateQuickCommandV1QuickCommandsSlugPatch({ slug, authorization
2371
2140
  } | {
2372
2141
  status: 422;
2373
2142
  data: HttpValidationError;
2374
- }>(`/v1/quick-commands/${encodeURIComponent(slug)}`, oazapfts.json({
2143
+ }>(`/v1/quick-commands/${encodeURIComponent(slug)}/share`, {
2375
2144
  ...opts,
2376
- method: "PATCH",
2377
- body: quickCommandsUpdateRequest,
2145
+ method: "POST",
2378
2146
  headers: oazapfts.mergeHeaders(opts?.headers, {
2379
2147
  authorization,
2380
2148
  "x-account-id": xAccountId
2381
2149
  })
2382
- })));
2150
+ }));
2383
2151
  }
2384
2152
  /**
2385
- * Share
2153
+ * Publish
2386
2154
  */
2387
- export function shareV1QuickCommandsSlugSharePost({ slug, authorization, xAccountId, shareContentRequest }: {
2155
+ export function publishV1QuickCommandsSlugPublishPost({ slug, authorization, xAccountId }: {
2388
2156
  slug: string;
2389
2157
  authorization: string;
2390
- xAccountId?: string;
2391
- shareContentRequest: ShareContentRequest;
2158
+ xAccountId?: string | null;
2392
2159
  }, opts?: Oazapfts.RequestOpts) {
2393
2160
  return oazapfts.ok(oazapfts.fetchJson<{
2394
2161
  status: 204;
@@ -2397,15 +2164,14 @@ export function shareV1QuickCommandsSlugSharePost({ slug, authorization, xAccoun
2397
2164
  } | {
2398
2165
  status: 422;
2399
2166
  data: HttpValidationError;
2400
- }>(`/v1/quick-commands/${encodeURIComponent(slug)}/share`, oazapfts.json({
2167
+ }>(`/v1/quick-commands/${encodeURIComponent(slug)}/publish`, {
2401
2168
  ...opts,
2402
2169
  method: "POST",
2403
- body: shareContentRequest,
2404
2170
  headers: oazapfts.mergeHeaders(opts?.headers, {
2405
2171
  authorization,
2406
2172
  "x-account-id": xAccountId
2407
2173
  })
2408
- })));
2174
+ }));
2409
2175
  }
2410
2176
  /**
2411
2177
  * Fork
@@ -2413,7 +2179,7 @@ export function shareV1QuickCommandsSlugSharePost({ slug, authorization, xAccoun
2413
2179
  export function forkV1QuickCommandsSlugForkPost({ slug, authorization, xAccountId, quickCommandsMakeACopyRequest }: {
2414
2180
  slug: string;
2415
2181
  authorization: string;
2416
- xAccountId?: string;
2182
+ xAccountId?: string | null;
2417
2183
  quickCommandsMakeACopyRequest: QuickCommandsMakeACopyRequest;
2418
2184
  }, opts?: Oazapfts.RequestOpts) {
2419
2185
  return oazapfts.ok(oazapfts.fetchJson<{
@@ -2440,7 +2206,7 @@ export function forkV1QuickCommandsSlugForkPost({ slug, authorization, xAccountI
2440
2206
  export function getQuickCommandByKsSlugV1QuickCommandsKnowledgeSourcesSlugGet({ slug, authorization, xAccountId }: {
2441
2207
  slug: string;
2442
2208
  authorization: string;
2443
- xAccountId?: string;
2209
+ xAccountId?: string | null;
2444
2210
  }, opts?: Oazapfts.RequestOpts) {
2445
2211
  return oazapfts.ok(oazapfts.fetchJson<{
2446
2212
  status: 200;
@@ -2464,7 +2230,7 @@ export function getQuickCommandByKsSlugV1QuickCommandsKnowledgeSourcesSlugGet({
2464
2230
  export function listByWorkspaceIdV1QuickCommandsWorkspacesWorkspaceIdGet({ workspaceId, authorization, xAccountId }: {
2465
2231
  workspaceId: string;
2466
2232
  authorization: string;
2467
- xAccountId?: string;
2233
+ xAccountId?: string | null;
2468
2234
  }, opts?: Oazapfts.RequestOpts) {
2469
2235
  return oazapfts.ok(oazapfts.fetchJson<{
2470
2236
  status: 200;
@@ -2488,7 +2254,7 @@ export function listByWorkspaceIdV1QuickCommandsWorkspacesWorkspaceIdGet({ works
2488
2254
  export function dependenciesV1QuickCommandsSlugDependenciesGet({ slug, authorization, xAccountId }: {
2489
2255
  slug: string;
2490
2256
  authorization: string;
2491
- xAccountId?: string;
2257
+ xAccountId?: string | null;
2492
2258
  }, opts?: Oazapfts.RequestOpts) {
2493
2259
  return oazapfts.ok(oazapfts.fetchJson<{
2494
2260
  status: 200;
@@ -2513,12 +2279,12 @@ export function quickCommandsRunV1QuickCommandsSlugStepsStepSlugRunPost({ slug,
2513
2279
  slug: string;
2514
2280
  stepSlug: string;
2515
2281
  authorization: string;
2516
- xAccountId?: string;
2282
+ xAccountId?: string | null;
2517
2283
  quickCommandsExecutionRequest: QuickCommandsExecutionRequest;
2518
2284
  }, opts?: Oazapfts.RequestOpts) {
2519
2285
  return oazapfts.ok(oazapfts.fetchJson<{
2520
2286
  status: 200;
2521
- data: SimpleResponse;
2287
+ data: QuickCommandPromptResponse2;
2522
2288
  } | {
2523
2289
  status: 404;
2524
2290
  } | {
@@ -2541,7 +2307,7 @@ export function formatFetchStepV1QuickCommandsSlugStepsStepSlugFetchFormatPost({
2541
2307
  slug: string;
2542
2308
  stepSlug: string;
2543
2309
  authorization: string;
2544
- xAccountId?: string;
2310
+ xAccountId?: string | null;
2545
2311
  quickCommandsExecutionRequest: QuickCommandsExecutionRequest;
2546
2312
  }, opts?: Oazapfts.RequestOpts) {
2547
2313
  return oazapfts.ok(oazapfts.fetchJson<{
@@ -2568,7 +2334,7 @@ export function formatFetchStepV1QuickCommandsSlugStepsStepSlugFetchFormatPost({
2568
2334
  export function formatResultV1QuickCommandsSlugResultFormatPost({ slug, authorization, xAccountId, quickCommandsExecutionRequest }: {
2569
2335
  slug: string;
2570
2336
  authorization: string;
2571
- xAccountId?: string;
2337
+ xAccountId?: string | null;
2572
2338
  quickCommandsExecutionRequest: QuickCommandsExecutionRequest;
2573
2339
  }, opts?: Oazapfts.RequestOpts) {
2574
2340
  return oazapfts.ok(oazapfts.fetchJson<{
@@ -2596,7 +2362,7 @@ export function addWorkspaceV1QuickCommandsSlugWorkspacesWorkspaceIdAddPost({ sl
2596
2362
  slug: string;
2597
2363
  workspaceId: string;
2598
2364
  authorization: string;
2599
- xAccountId?: string;
2365
+ xAccountId?: string | null;
2600
2366
  }, opts?: Oazapfts.RequestOpts) {
2601
2367
  return oazapfts.ok(oazapfts.fetchJson<{
2602
2368
  status: 204;
@@ -2621,7 +2387,7 @@ export function removeWorkspaceV1QuickCommandsSlugWorkspacesWorkspaceIdRemoveDel
2621
2387
  slug: string;
2622
2388
  workspaceId: string;
2623
2389
  authorization: string;
2624
- xAccountId?: string;
2390
+ xAccountId?: string | null;
2625
2391
  }, opts?: Oazapfts.RequestOpts) {
2626
2392
  return oazapfts.ok(oazapfts.fetchJson<{
2627
2393
  status: 204;
@@ -2644,9 +2410,9 @@ export function removeWorkspaceV1QuickCommandsSlugWorkspacesWorkspaceIdRemoveDel
2644
2410
  */
2645
2411
  export function createExecutionV1QuickCommandsCreateExecutionSlugPost({ slug, conversationId, authorization, xAccountId, quickCommandCreateRequest }: {
2646
2412
  slug: string;
2647
- conversationId?: string;
2413
+ conversationId?: string | null;
2648
2414
  authorization: string;
2649
- xAccountId?: string;
2415
+ xAccountId?: string | null;
2650
2416
  quickCommandCreateRequest?: QuickCommandCreateRequest;
2651
2417
  }, opts?: Oazapfts.RequestOpts) {
2652
2418
  return oazapfts.ok(oazapfts.fetchJson<{
@@ -2675,7 +2441,7 @@ export function createExecutionV1QuickCommandsCreateExecutionSlugPost({ slug, co
2675
2441
  export function callbackV1QuickCommandsCallbackExecutionIdGet({ executionId, authorization, xAccountId }: {
2676
2442
  executionId: string;
2677
2443
  authorization: string;
2678
- xAccountId?: string;
2444
+ xAccountId?: string | null;
2679
2445
  }, opts?: Oazapfts.RequestOpts) {
2680
2446
  return oazapfts.ok(oazapfts.fetchJson<{
2681
2447
  status: 200;
@@ -2698,7 +2464,7 @@ export function callbackV1QuickCommandsCallbackExecutionIdGet({ executionId, aut
2698
2464
  */
2699
2465
  export function importContentV1ImportPost({ authorization, xAccountId, importPublicContent }: {
2700
2466
  authorization: string;
2701
- xAccountId?: string;
2467
+ xAccountId?: string | null;
2702
2468
  importPublicContent: ImportPublicContent;
2703
2469
  }, opts?: Oazapfts.RequestOpts) {
2704
2470
  return oazapfts.ok(oazapfts.fetchJson<{
@@ -2718,70 +2484,6 @@ export function importContentV1ImportPost({ authorization, xAccountId, importPub
2718
2484
  })
2719
2485
  })));
2720
2486
  }
2721
- /**
2722
- * Change Ai Stack Visibility
2723
- */
2724
- export function changeAiStackVisibilityV1StudiosStudioIdAiStacksStackIdVisibilityPut({ studioId, stackId, changeContentVisibility }: {
2725
- studioId: string;
2726
- stackId: string;
2727
- changeContentVisibility: ChangeContentVisibility;
2728
- }, opts?: Oazapfts.RequestOpts) {
2729
- return oazapfts.ok(oazapfts.fetchJson<{
2730
- status: 202;
2731
- data: any;
2732
- } | {
2733
- status: 404;
2734
- } | {
2735
- status: 422;
2736
- data: HttpValidationError;
2737
- }>(`/v1/studios/${encodeURIComponent(studioId)}/ai-stacks/${encodeURIComponent(stackId)}/visibility`, oazapfts.json({
2738
- ...opts,
2739
- method: "PUT",
2740
- body: changeContentVisibility
2741
- })));
2742
- }
2743
- /**
2744
- * Change Knowledge Source Visibility
2745
- */
2746
- export function changeKnowledgeSourceVisibilityV1KnowledgeSourcesSlugVisibilityPut({ slug, changeContentVisibility }: {
2747
- slug: string;
2748
- changeContentVisibility: ChangeContentVisibility;
2749
- }, opts?: Oazapfts.RequestOpts) {
2750
- return oazapfts.ok(oazapfts.fetchJson<{
2751
- status: 202;
2752
- data: any;
2753
- } | {
2754
- status: 404;
2755
- } | {
2756
- status: 422;
2757
- data: HttpValidationError;
2758
- }>(`/v1/knowledge-sources/${encodeURIComponent(slug)}/visibility`, oazapfts.json({
2759
- ...opts,
2760
- method: "PUT",
2761
- body: changeContentVisibility
2762
- })));
2763
- }
2764
- /**
2765
- * Change Quick Command Visibility
2766
- */
2767
- export function changeQuickCommandVisibilityV1QuickCommandsSlugVisibilityPut({ slug, changeContentVisibility }: {
2768
- slug: string;
2769
- changeContentVisibility: ChangeContentVisibility;
2770
- }, opts?: Oazapfts.RequestOpts) {
2771
- return oazapfts.ok(oazapfts.fetchJson<{
2772
- status: 202;
2773
- data: any;
2774
- } | {
2775
- status: 404;
2776
- } | {
2777
- status: 422;
2778
- data: HttpValidationError;
2779
- }>(`/v1/quick-commands/${encodeURIComponent(slug)}/visibility`, oazapfts.json({
2780
- ...opts,
2781
- method: "PUT",
2782
- body: changeContentVisibility
2783
- })));
2784
- }
2785
2487
  /**
2786
2488
  * List Conversations
2787
2489
  */
@@ -2789,7 +2491,7 @@ export function listConversationsV1ConversationsGet({ size, page, authorization,
2789
2491
  size?: number;
2790
2492
  page?: number;
2791
2493
  authorization: string;
2792
- xAccountId?: string;
2494
+ xAccountId?: string | null;
2793
2495
  }, opts?: Oazapfts.RequestOpts) {
2794
2496
  return oazapfts.ok(oazapfts.fetchJson<{
2795
2497
  status: 200;
@@ -2816,7 +2518,7 @@ export function listConversationsV1ConversationsGet({ size, page, authorization,
2816
2518
  export function conversationHistoryV1ConversationsConversationIdGet({ conversationId, authorization, xAccountId }: {
2817
2519
  conversationId: string;
2818
2520
  authorization: string;
2819
- xAccountId?: string;
2521
+ xAccountId?: string | null;
2820
2522
  }, opts?: Oazapfts.RequestOpts) {
2821
2523
  return oazapfts.ok(oazapfts.fetchJson<{
2822
2524
  status: 200;
@@ -2835,55 +2537,55 @@ export function conversationHistoryV1ConversationsConversationIdGet({ conversati
2835
2537
  }));
2836
2538
  }
2837
2539
  /**
2838
- * Delete Conversation
2540
+ * Update Title
2839
2541
  */
2840
- export function deleteConversationV1ConversationsConversationIdDelete({ conversationId, authorization, xAccountId }: {
2542
+ export function updateTitleV1ConversationsConversationIdPatch({ conversationId, authorization, xAccountId, conversationUpdateTitleRequest }: {
2841
2543
  conversationId: string;
2842
2544
  authorization: string;
2843
- xAccountId?: string;
2545
+ xAccountId?: string | null;
2546
+ conversationUpdateTitleRequest: ConversationUpdateTitleRequest;
2844
2547
  }, opts?: Oazapfts.RequestOpts) {
2845
2548
  return oazapfts.ok(oazapfts.fetchJson<{
2846
- status: 204;
2549
+ status: 200;
2550
+ data: ConversationResponse;
2847
2551
  } | {
2848
2552
  status: 404;
2849
2553
  } | {
2850
2554
  status: 422;
2851
2555
  data: HttpValidationError;
2852
- }>(`/v1/conversations/${encodeURIComponent(conversationId)}`, {
2556
+ }>(`/v1/conversations/${encodeURIComponent(conversationId)}`, oazapfts.json({
2853
2557
  ...opts,
2854
- method: "DELETE",
2558
+ method: "PATCH",
2559
+ body: conversationUpdateTitleRequest,
2855
2560
  headers: oazapfts.mergeHeaders(opts?.headers, {
2856
2561
  authorization,
2857
2562
  "x-account-id": xAccountId
2858
2563
  })
2859
- }));
2564
+ })));
2860
2565
  }
2861
2566
  /**
2862
- * Update Title
2567
+ * Delete Conversation
2863
2568
  */
2864
- export function updateTitleV1ConversationsConversationIdPatch({ conversationId, authorization, xAccountId, conversationUpdateTitleRequest }: {
2569
+ export function deleteConversationV1ConversationsConversationIdDelete({ conversationId, authorization, xAccountId }: {
2865
2570
  conversationId: string;
2866
2571
  authorization: string;
2867
- xAccountId?: string;
2868
- conversationUpdateTitleRequest: ConversationUpdateTitleRequest;
2572
+ xAccountId?: string | null;
2869
2573
  }, opts?: Oazapfts.RequestOpts) {
2870
2574
  return oazapfts.ok(oazapfts.fetchJson<{
2871
- status: 200;
2872
- data: ConversationResponse;
2575
+ status: 204;
2873
2576
  } | {
2874
2577
  status: 404;
2875
2578
  } | {
2876
2579
  status: 422;
2877
2580
  data: HttpValidationError;
2878
- }>(`/v1/conversations/${encodeURIComponent(conversationId)}`, oazapfts.json({
2581
+ }>(`/v1/conversations/${encodeURIComponent(conversationId)}`, {
2879
2582
  ...opts,
2880
- method: "PATCH",
2881
- body: conversationUpdateTitleRequest,
2583
+ method: "DELETE",
2882
2584
  headers: oazapfts.mergeHeaders(opts?.headers, {
2883
2585
  authorization,
2884
2586
  "x-account-id": xAccountId
2885
2587
  })
2886
- })));
2588
+ }));
2887
2589
  }
2888
2590
  /**
2889
2591
  * Download Conversation
@@ -2891,7 +2593,7 @@ export function updateTitleV1ConversationsConversationIdPatch({ conversationId,
2891
2593
  export function downloadConversationV1ConversationsConversationIdDownloadGet({ conversationId, authorization, xAccountId }: {
2892
2594
  conversationId: string;
2893
2595
  authorization: string;
2894
- xAccountId?: string;
2596
+ xAccountId?: string | null;
2895
2597
  }, opts?: Oazapfts.RequestOpts) {
2896
2598
  return oazapfts.ok(oazapfts.fetchJson<{
2897
2599
  status: 200;
@@ -2912,8 +2614,7 @@ export function downloadConversationV1ConversationsConversationIdDownloadGet({ c
2912
2614
  /**
2913
2615
  * Create Knowledge Source
2914
2616
  */
2915
- export function createKnowledgeSourceV1DefaultKnowledgeSourcesPost({ authorization, newKnowledgeSourceRequest }: {
2916
- authorization: string;
2617
+ export function createKnowledgeSourceV1DefaultKnowledgeSourcesPost({ newKnowledgeSourceRequest }: {
2917
2618
  newKnowledgeSourceRequest: NewKnowledgeSourceRequest;
2918
2619
  }, opts?: Oazapfts.RequestOpts) {
2919
2620
  return oazapfts.ok(oazapfts.fetchJson<{
@@ -2926,10 +2627,7 @@ export function createKnowledgeSourceV1DefaultKnowledgeSourcesPost({ authorizati
2926
2627
  }>("/v1/default-knowledge-sources", oazapfts.json({
2927
2628
  ...opts,
2928
2629
  method: "POST",
2929
- body: newKnowledgeSourceRequest,
2930
- headers: oazapfts.mergeHeaders(opts?.headers, {
2931
- authorization
2932
- })
2630
+ body: newKnowledgeSourceRequest
2933
2631
  })));
2934
2632
  }
2935
2633
  /**
@@ -2977,9 +2675,9 @@ export function uploadKnowledgeObjectsZipV1DefaultKnowledgeSourcesSlugObjectsBat
2977
2675
  * Dev Assistant V2
2978
2676
  */
2979
2677
  export function devAssistantV2V2ChatPost({ accept, authorization, xAccountId, codeBuddyApiV2SchemasChatRequest }: {
2980
- accept?: string;
2678
+ accept?: string | null;
2981
2679
  authorization: string;
2982
- xAccountId?: string;
2680
+ xAccountId?: string | null;
2983
2681
  codeBuddyApiV2SchemasChatRequest: ChatRequest2;
2984
2682
  }, opts?: Oazapfts.RequestOpts) {
2985
2683
  return oazapfts.ok(oazapfts.fetchJson<{
@@ -3007,14 +2705,14 @@ export function devAssistantV2V2ChatPost({ accept, authorization, xAccountId, co
3007
2705
  export function quickCommandsRunV2V2QuickCommandsSlugStepsStepSlugRunPost({ slug, stepSlug, accept, authorization, xAccountId, quickCommandsExecutionRequest }: {
3008
2706
  slug: string;
3009
2707
  stepSlug: string;
3010
- accept?: string;
2708
+ accept?: string | null;
3011
2709
  authorization: string;
3012
- xAccountId?: string;
2710
+ xAccountId?: string | null;
3013
2711
  quickCommandsExecutionRequest: QuickCommandsExecutionRequest;
3014
2712
  }, opts?: Oazapfts.RequestOpts) {
3015
2713
  return oazapfts.ok(oazapfts.fetchJson<{
3016
2714
  status: 200;
3017
- data: string | SimpleResponse;
2715
+ data: string | QuickCommandPromptResponse2;
3018
2716
  } | {
3019
2717
  status: 404;
3020
2718
  } | {
@@ -3031,18 +2729,42 @@ export function quickCommandsRunV2V2QuickCommandsSlugStepsStepSlugRunPost({ slug
3031
2729
  })
3032
2730
  })));
3033
2731
  }
2732
+ /**
2733
+ * Get Dependencies
2734
+ */
2735
+ export function getDependenciesV2QuickCommandsSlugDependenciesGet({ slug, authorization, xAccountId }: {
2736
+ slug: string;
2737
+ authorization: string;
2738
+ xAccountId?: string | null;
2739
+ }, opts?: Oazapfts.RequestOpts) {
2740
+ return oazapfts.ok(oazapfts.fetchJson<{
2741
+ status: 200;
2742
+ data: QuickCommandDependenciesResponseV2;
2743
+ } | {
2744
+ status: 404;
2745
+ } | {
2746
+ status: 422;
2747
+ data: HttpValidationError;
2748
+ }>(`/v2/quick-commands/${encodeURIComponent(slug)}/dependencies`, {
2749
+ ...opts,
2750
+ headers: oazapfts.mergeHeaders(opts?.headers, {
2751
+ authorization,
2752
+ "x-account-id": xAccountId
2753
+ })
2754
+ }));
2755
+ }
3034
2756
  /**
3035
2757
  * Vectorize Objects From File
3036
2758
  */
3037
2759
  export function vectorizeObjectsFromFileV2KnowledgeSourcesSlugObjectsPost({ slug, authorization, xAccountId, bodyVectorizeObjectsFromFileV2KnowledgeSourcesSlugObjectsPost }: {
3038
2760
  slug: string;
3039
2761
  authorization: string;
3040
- xAccountId?: string;
2762
+ xAccountId?: string | null;
3041
2763
  bodyVectorizeObjectsFromFileV2KnowledgeSourcesSlugObjectsPost: BodyVectorizeObjectsFromFileV2KnowledgeSourcesSlugObjectsPost;
3042
2764
  }, opts?: Oazapfts.RequestOpts) {
3043
2765
  return oazapfts.ok(oazapfts.fetchJson<{
3044
- status: 200;
3045
- data: SyncResponse;
2766
+ status: 202;
2767
+ data: any;
3046
2768
  } | {
3047
2769
  status: 404;
3048
2770
  } | {
@@ -3065,15 +2787,12 @@ export function uploadKnowledgeObjectsZipV2KnowledgeSourcesSlugObjectsBatchPost(
3065
2787
  slug: string;
3066
2788
  autoDelete?: boolean;
3067
2789
  authorization: string;
3068
- xAccountId?: string;
2790
+ xAccountId?: string | null;
3069
2791
  bodyUploadKnowledgeObjectsZipV2KnowledgeSourcesSlugObjectsBatchPost: BodyUploadKnowledgeObjectsZipV2KnowledgeSourcesSlugObjectsBatchPost;
3070
2792
  }, opts?: Oazapfts.RequestOpts) {
3071
2793
  return oazapfts.ok(oazapfts.fetchJson<{
3072
- status: 200;
3073
- data: SyncResponse;
3074
- } | {
3075
- status: 207;
3076
- data: SyncResponse;
2794
+ status: 202;
2795
+ data: any;
3077
2796
  } | {
3078
2797
  status: 404;
3079
2798
  } | {
@@ -3094,10 +2813,9 @@ export function uploadKnowledgeObjectsZipV2KnowledgeSourcesSlugObjectsBatchPost(
3094
2813
  /**
3095
2814
  * Dev Assistant V3
3096
2815
  */
3097
- export function devAssistantV3V3ChatPost({ accept, authorization, xAccountId, codeBuddyApiV2SchemasChatRequest }: {
3098
- accept?: string;
2816
+ export function devAssistantV3V3ChatPost({ authorization, xAccountId, codeBuddyApiV2SchemasChatRequest }: {
3099
2817
  authorization: string;
3100
- xAccountId?: string;
2818
+ xAccountId?: string | null;
3101
2819
  codeBuddyApiV2SchemasChatRequest: ChatRequest2;
3102
2820
  }, opts?: Oazapfts.RequestOpts) {
3103
2821
  return oazapfts.ok(oazapfts.fetchJson<{
@@ -3113,7 +2831,6 @@ export function devAssistantV3V3ChatPost({ accept, authorization, xAccountId, co
3113
2831
  method: "POST",
3114
2832
  body: codeBuddyApiV2SchemasChatRequest,
3115
2833
  headers: oazapfts.mergeHeaders(opts?.headers, {
3116
- accept,
3117
2834
  authorization,
3118
2835
  "x-account-id": xAccountId
3119
2836
  })