@stack-spot/portal-network 0.138.1 → 0.139.1-beta.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 (45) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/api/agent-tools.d.ts +178 -4
  3. package/dist/api/agent-tools.d.ts.map +1 -1
  4. package/dist/api/agent-tools.js +98 -2
  5. package/dist/api/agent-tools.js.map +1 -1
  6. package/dist/api/dataIntegration.d.ts +183 -179
  7. package/dist/api/dataIntegration.d.ts.map +1 -1
  8. package/dist/api/dataIntegration.js +166 -161
  9. package/dist/api/dataIntegration.js.map +1 -1
  10. package/dist/client/agent-tools.d.ts +77 -0
  11. package/dist/client/agent-tools.d.ts.map +1 -1
  12. package/dist/client/agent-tools.js +134 -1
  13. package/dist/client/agent-tools.js.map +1 -1
  14. package/dist/client/agent.d.ts +2 -49
  15. package/dist/client/agent.d.ts.map +1 -1
  16. package/dist/client/agent.js +0 -63
  17. package/dist/client/agent.js.map +1 -1
  18. package/dist/client/ai.d.ts +7 -0
  19. package/dist/client/ai.d.ts.map +1 -1
  20. package/dist/client/ai.js +10 -1
  21. package/dist/client/ai.js.map +1 -1
  22. package/dist/client/data-integration.d.ts +12 -14
  23. package/dist/client/data-integration.d.ts.map +1 -1
  24. package/dist/client/data-integration.js +33 -3
  25. package/dist/client/data-integration.js.map +1 -1
  26. package/dist/client/types.d.ts +6 -3
  27. package/dist/client/types.d.ts.map +1 -1
  28. package/dist/error/FileUploadError.d.ts +6 -0
  29. package/dist/error/FileUploadError.d.ts.map +1 -0
  30. package/dist/error/FileUploadError.js +21 -0
  31. package/dist/error/FileUploadError.js.map +1 -0
  32. package/dist/index.d.ts +2 -1
  33. package/dist/index.d.ts.map +1 -1
  34. package/dist/index.js +2 -1
  35. package/dist/index.js.map +1 -1
  36. package/package.json +2 -2
  37. package/src/api/agent-tools.ts +306 -4
  38. package/src/api/dataIntegration.ts +327 -307
  39. package/src/client/agent-tools.ts +103 -1
  40. package/src/client/agent.ts +1 -67
  41. package/src/client/ai.ts +5 -0
  42. package/src/client/data-integration.ts +29 -6
  43. package/src/client/types.ts +8 -4
  44. package/src/error/FileUploadError.ts +18 -0
  45. package/src/index.ts +2 -1
@@ -49,25 +49,19 @@ export type SearchCrossAccountKnowledgeObjectRequest = {
49
49
  strategy?: SearchStrategy;
50
50
  method?: SearchMethod;
51
51
  };
52
+ export type KnowledgeSourceTypeEnum = "snippet" | "api" | "event" | "custom" | "project_file" | "memory";
52
53
  export type NewKnowledgeSourceRequest = {
53
54
  slug: string;
54
55
  name: string;
55
56
  description: string;
56
- "type": "api" | "custom" | "snippet";
57
+ "type": KnowledgeSourceTypeEnum;
57
58
  };
58
- export type ExceptionType = "DATAINTEGRATION_1000_INVALID_JWT" | "DATAINTEGRATION_1001_DECODE_JWT_ERROR" | "DATAINTEGRATION_1002_KNOWLEDGE_SOURCE_DOES_NOT_EXISTS" | "DATAINTEGRATION_1003_KNOWLEDGE_SOURCE_WRONG_TYPE" | "DATAINTEGRATION_1004_UNSUPPORTED_KNOWLEDGE_SOURCE_TYPE_FOR_UPLOAD" | "DATAINTEGRATION_1005_KNOWLEDGE_OBJECT_NOT_FOUND" | "DATAINTEGRATION_1006_UNSUPPORTED_FILE_TYPE" | "DATAINTEGRATION_1007_KNOWLEDGE_SOURCE_SLUG_ALREADY_EXISTS" | "DATAINTEGRATION_1008_KNOWLEDGE_SOURCE_NOT_FOUND" | "DATAINTEGRATION_1009_KNOWLEDGE_SOURCE_CANNOT_BE_ASSOCIATED" | "DATAINTEGRATION_1010_KNOWLEDGE_SOURCE_NOT_ACCOUNT_VISIBLE" | "DATAINTEGRATION_1011_ACCOUNT_SETTINGS_NOT_FOUND" | "DATAINTEGRATION_1012_SECRET_NOT_FOUND" | "DATAINTEGRATION_1013_STRATEGY_NOT_FOUND" | "DATAINTEGRATION_1014_EMBEDDING_INTEGRATION_ERROR" | "DATAINTEGRATION_1015_KNOWLEDGE_OBJECT_UNEXPECTED_ERROR" | "DATAINTEGRATION_1016_FILE_UPLOAD_DOES_NOT_EXISTS" | "DATAINTEGRATION_1017_INVALID_VISIBILITY_CHANGE" | "DATAINTEGRATION_1018_TOKENS_USAGE_LIMIT_REACHED" | "DATAINTEGRATION_1019_KNOWLEDGE_SOURCE_INVALID_SPLIT_STRATEGY" | "DATAINTEGRATION_1020_FILE_UPLOAD_INVALID_SPLIT_STRATEGY" | "DATAINTEGRATION_1021_FILE_UPLOAD_INDEXED_OR_NOT_SPLITTED" | "DATAINTEGRATION_1022_KNOWLEDGE_GROUP_NOT_FOUND" | "DATAINTEGRATION_2000_LLM_INTEGRATION_ERROR" | "DATAINTEGRATION_2001_LLM_RATE_LIMIT_ERROR" | "DATAINTEGRATION_2002_LLM_PROMPT_TOO_LARGE_ERROR" | "DATAINTEGRATION_2003_LLM_FILE_TOO_LARGE_ERROR" | "DATAINTEGRATION_3000_FEATURE_DISABLED_ERROR" | "DATAINTEGRATION_5000_UNEXPECTED_ERROR" | "DATAINTEGRATION_6000_FORBIDDEN" | "DATAINTEGRATION_8001_ACCOUNT_API_ERROR" | "DATAINTEGRATION_4001_FAVORITE_ALREADY_EXISTS" | "DATAINTEGRATION_4002_FAVORITE_NOT_FOUND";
59
- export type HttpErrorResponse = {
60
- "type"?: string;
61
- status: string;
62
- code: ExceptionType;
63
- details: string;
64
- value?: string | null;
65
- field?: string | null;
59
+ export type KnowledgeSourcesWorkspaceForkRequest = {
60
+ ids: string[];
61
+ member_id: string;
66
62
  };
67
63
  export type VisibilityLevelEnum = "account" | "personal" | "shared" | "workspace" | "favorite";
68
- export type OrderEnum = "a-to-z" | "z-to-a" | "oldest-first" | "newest-first";
69
- export type KnowledgeSourceTypeEnum = "snippet" | "api" | "event" | "custom" | "project_file" | "memory";
70
- export type KnowledgeSourceItemResponse = {
64
+ export type KnowledgeSourceResponse = {
71
65
  id: string;
72
66
  slug: string;
73
67
  name: string;
@@ -76,13 +70,22 @@ export type KnowledgeSourceItemResponse = {
76
70
  creator: string | null;
77
71
  "default": boolean;
78
72
  visibility_level: VisibilityLevelEnum;
79
- object_count: number;
73
+ model_name: string;
80
74
  use_only: boolean;
81
75
  };
82
- export type KnowledgeSourceSearchRequest = {
76
+ export type KnowledgeSourcesWorkspaceForkResponse = {
77
+ list_ks: KnowledgeSourceResponse[];
78
+ ks_ids_account: string[];
79
+ error_ids: string[];
80
+ };
81
+ export type KnowledgeSourcesWorkspaceDeleteRequest = {
83
82
  ids: string[];
84
83
  };
85
- export type KnowledgeSourceResponse = {
84
+ export type KnowledgeSourcesWorkspaceListRequest = {
85
+ ids: string[];
86
+ name?: string | null;
87
+ };
88
+ export type KnowledgeSourceItemResponse = {
86
89
  id: string;
87
90
  slug: string;
88
91
  name: string;
@@ -91,9 +94,22 @@ export type KnowledgeSourceResponse = {
91
94
  creator: string | null;
92
95
  "default": boolean;
93
96
  visibility_level: VisibilityLevelEnum;
94
- model_name: string;
97
+ object_count: number;
95
98
  use_only: boolean;
96
99
  };
100
+ export type ExceptionType = "DATAINTEGRATION_1000_INVALID_JWT" | "DATAINTEGRATION_1001_DECODE_JWT_ERROR" | "DATAINTEGRATION_1002_KNOWLEDGE_SOURCE_DOES_NOT_EXISTS" | "DATAINTEGRATION_1003_KNOWLEDGE_SOURCE_WRONG_TYPE" | "DATAINTEGRATION_1004_UNSUPPORTED_KNOWLEDGE_SOURCE_TYPE_FOR_UPLOAD" | "DATAINTEGRATION_1005_KNOWLEDGE_OBJECT_NOT_FOUND" | "DATAINTEGRATION_1006_UNSUPPORTED_FILE_TYPE" | "DATAINTEGRATION_1007_KNOWLEDGE_SOURCE_SLUG_ALREADY_EXISTS" | "DATAINTEGRATION_1008_KNOWLEDGE_SOURCE_NOT_FOUND" | "DATAINTEGRATION_1009_KNOWLEDGE_SOURCE_CANNOT_BE_ASSOCIATED" | "DATAINTEGRATION_1010_KNOWLEDGE_SOURCE_NOT_ACCOUNT_VISIBLE" | "DATAINTEGRATION_1011_ACCOUNT_SETTINGS_NOT_FOUND" | "DATAINTEGRATION_1012_SECRET_NOT_FOUND" | "DATAINTEGRATION_1013_STRATEGY_NOT_FOUND" | "DATAINTEGRATION_1014_EMBEDDING_INTEGRATION_ERROR" | "DATAINTEGRATION_1015_KNOWLEDGE_OBJECT_UNEXPECTED_ERROR" | "DATAINTEGRATION_1016_FILE_UPLOAD_DOES_NOT_EXISTS" | "DATAINTEGRATION_1017_INVALID_VISIBILITY_CHANGE" | "DATAINTEGRATION_1018_TOKENS_USAGE_LIMIT_REACHED" | "DATAINTEGRATION_1019_KNOWLEDGE_SOURCE_INVALID_SPLIT_STRATEGY" | "DATAINTEGRATION_1020_FILE_UPLOAD_INVALID_SPLIT_STRATEGY" | "DATAINTEGRATION_1021_FILE_UPLOAD_INDEXED_OR_NOT_SPLITTED" | "DATAINTEGRATION_1022_KNOWLEDGE_GROUP_NOT_FOUND" | "DATAINTEGRATION_2000_LLM_INTEGRATION_ERROR" | "DATAINTEGRATION_2001_LLM_RATE_LIMIT_ERROR" | "DATAINTEGRATION_2002_LLM_PROMPT_TOO_LARGE_ERROR" | "DATAINTEGRATION_2003_LLM_FILE_TOO_LARGE_ERROR" | "DATAINTEGRATION_3000_FEATURE_DISABLED_ERROR" | "DATAINTEGRATION_5000_UNEXPECTED_ERROR" | "DATAINTEGRATION_6000_FORBIDDEN" | "DATAINTEGRATION_8001_ACCOUNT_API_ERROR" | "DATAINTEGRATION_4001_FAVORITE_ALREADY_EXISTS" | "DATAINTEGRATION_4002_FAVORITE_NOT_FOUND";
101
+ export type HttpErrorResponse = {
102
+ "type"?: string;
103
+ status: string;
104
+ code: ExceptionType;
105
+ details: string;
106
+ value?: string | null;
107
+ field?: string | null;
108
+ };
109
+ export type OrderEnum = "a-to-z" | "z-to-a" | "oldest-first" | "newest-first";
110
+ export type KnowledgeSourceSearchRequest = {
111
+ ids: string[];
112
+ };
97
113
  export type KnowledgeSourcePatchesRequest = {
98
114
  name: string;
99
115
  description: string;
@@ -140,27 +156,11 @@ export type KnowledgeSourceFilesIngestedResponse = {
140
156
  export type DeleteIndexedFilesRequest = {
141
157
  paths: string[];
142
158
  };
143
- export type KnowledgeSourcesWorkspaceForkRequest = {
144
- ids: string[];
145
- member_id: string;
146
- };
147
- export type KnowledgeSourcesWorkspaceForkResponse = {
148
- ks_ids: string[];
149
- ks_ids_account: string[];
150
- error_ids: string[];
151
- };
152
- export type KnowledgeSourcesWorkspaceDeleteRequest = {
153
- ids: string[];
154
- };
155
- export type KnowledgeSourcesWorkspaceListRequest = {
156
- ids: string[];
157
- name?: string | null;
158
- };
159
- export type FileUploadType = "PROJECT" | "KNOWLEDGE_SOURCE";
159
+ export type FileUploadType = "PROJECT" | "KNOWLEDGE_SOURCE" | "CONTEXT" | "TOOLKIT";
160
160
  export type FileUploadIndexType = "RELEVANT" | "FULL_INDEX";
161
161
  export type NewFileUploadRequest = {
162
162
  file_name: string;
163
- target_id: string;
163
+ target_id?: string | null;
164
164
  target_type: FileUploadType;
165
165
  expiration?: number;
166
166
  index_type?: FileUploadIndexType | null;
@@ -214,6 +214,7 @@ export type FileSplitRequest = {
214
214
  split_quantity?: number | null;
215
215
  split_strategy: FileSplitStrategy;
216
216
  embed_after_split?: boolean;
217
+ max_split_preview?: number;
217
218
  };
218
219
  export type FileMetadataResponse = {
219
220
  id: string;
@@ -225,6 +226,20 @@ export type FileMetadataResponse = {
225
226
  error_description: string | null;
226
227
  user_id_headers: string;
227
228
  };
229
+ export type FileUploadException = {
230
+ "type": ExceptionType;
231
+ message: string;
232
+ value?: string | null;
233
+ field?: string | null;
234
+ };
235
+ export type PresignedUrlsDto = {
236
+ presigned_urls: string[] | null;
237
+ invalid: FileUploadException | null;
238
+ };
239
+ export type AccountEmbeddingTokenUsage = {
240
+ current_used: number;
241
+ max_embedding_tokens: number;
242
+ };
228
243
  export type ConsumeTokenRequest = {
229
244
  token_quantity: number;
230
245
  };
@@ -283,21 +298,19 @@ export declare function readinessCheckReadyzGet(opts?: Oazapfts.RequestOpts): Pr
283
298
  /**
284
299
  * Search Objects
285
300
  */
286
- export declare function searchObjectsV1SearchPost({ xAccountId, xUsername, authorization, authorizationHeader, searchKnowledgeObjectRequest }: {
301
+ export declare function searchObjectsV1SearchPost({ xAccountId, xUsername, authorization, searchKnowledgeObjectRequest }: {
287
302
  xAccountId?: string | null;
288
303
  xUsername?: string | null;
289
- authorization?: string | null;
290
- authorizationHeader: string;
304
+ authorization: string;
291
305
  searchKnowledgeObjectRequest: SearchKnowledgeObjectRequest;
292
306
  }, opts?: Oazapfts.RequestOpts): Promise<SearchKnowledgeObjectResponse[]>;
293
307
  /**
294
308
  * Search Cross Account Objects
295
309
  */
296
- export declare function searchCrossAccountObjectsV1SearchCrossAccountPost({ xAccountId, xUsername, authorization, authorizationHeader, searchCrossAccountKnowledgeObjectRequest }: {
310
+ export declare function searchCrossAccountObjectsV1SearchCrossAccountPost({ xAccountId, xUsername, authorization, searchCrossAccountKnowledgeObjectRequest }: {
297
311
  xAccountId: string;
298
312
  xUsername: string;
299
- authorization?: string | null;
300
- authorizationHeader: string;
313
+ authorization: string;
301
314
  searchCrossAccountKnowledgeObjectRequest: SearchCrossAccountKnowledgeObjectRequest;
302
315
  }, opts?: Oazapfts.RequestOpts): Promise<SearchKnowledgeObjectResponse[]>;
303
316
  /**
@@ -312,163 +325,175 @@ export declare function createFtKnowledgeSourceV1FtKnowledgeSourcesPost({ newKno
312
325
  export declare function deleteFtKnowledgeSourceV1FtKnowledgeSourcesSlugDelete({ slug }: {
313
326
  slug: string;
314
327
  }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
328
+ /**
329
+ * Workspace Fork
330
+ */
331
+ export declare function workspaceForkV1KnowledgeSourcesWorkspaceForkPost({ xAccountId, xUsername, authorization, knowledgeSourcesWorkspaceForkRequest }: {
332
+ xAccountId?: string | null;
333
+ xUsername?: string | null;
334
+ authorization: string;
335
+ knowledgeSourcesWorkspaceForkRequest: KnowledgeSourcesWorkspaceForkRequest;
336
+ }, opts?: Oazapfts.RequestOpts): Promise<KnowledgeSourcesWorkspaceForkResponse>;
337
+ /**
338
+ * Workspace Delete Fork
339
+ */
340
+ export declare function workspaceDeleteForkV1KnowledgeSourcesWorkspaceForkDelete({ xAccountId, xUsername, authorization, knowledgeSourcesWorkspaceDeleteRequest }: {
341
+ xAccountId?: string | null;
342
+ xUsername?: string | null;
343
+ authorization: string;
344
+ knowledgeSourcesWorkspaceDeleteRequest: KnowledgeSourcesWorkspaceDeleteRequest;
345
+ }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
346
+ /**
347
+ * Workspace List
348
+ */
349
+ export declare function workspaceListV1KnowledgeSourcesWorkspaceListPost({ xAccountId, xUsername, authorization, knowledgeSourcesWorkspaceListRequest }: {
350
+ xAccountId?: string | null;
351
+ xUsername?: string | null;
352
+ authorization: string;
353
+ knowledgeSourcesWorkspaceListRequest: KnowledgeSourcesWorkspaceListRequest;
354
+ }, opts?: Oazapfts.RequestOpts): Promise<KnowledgeSourceItemResponse[]>;
315
355
  /**
316
356
  * Create Ks
317
357
  */
318
- export declare function createKsV1KnowledgeSourcesPost({ xAccountId, xUsername, authorization, authorizationHeader, newKnowledgeSourceRequest }: {
358
+ export declare function createKsV1KnowledgeSourcesPost({ xAccountId, xUsername, authorization, newKnowledgeSourceRequest }: {
319
359
  xAccountId?: string | null;
320
360
  xUsername?: string | null;
321
- authorization?: string | null;
322
- authorizationHeader: string;
361
+ authorization: string;
323
362
  newKnowledgeSourceRequest: NewKnowledgeSourceRequest;
324
363
  }, opts?: Oazapfts.RequestOpts): Promise<any>;
325
364
  /**
326
365
  * List Ks
327
366
  */
328
- export declare function listKsV1KnowledgeSourcesGet({ visibility, order, types, xAccountId, xUsername, authorization, authorizationHeader }: {
367
+ export declare function listKsV1KnowledgeSourcesGet({ visibility, order, types, xAccountId, xUsername, authorization }: {
329
368
  visibility?: VisibilityLevelEnum;
330
369
  order?: OrderEnum;
331
370
  types?: KnowledgeSourceTypeEnum[];
332
371
  xAccountId?: string | null;
333
372
  xUsername?: string | null;
334
- authorization?: string | null;
335
- authorizationHeader: string;
373
+ authorization: string;
336
374
  }, opts?: Oazapfts.RequestOpts): Promise<KnowledgeSourceItemResponse[]>;
337
375
  /**
338
376
  * Search Ks
339
377
  */
340
- export declare function searchKsV1KnowledgeSourcesSearchPost({ xAccountId, xUsername, authorization, authorizationHeader, knowledgeSourceSearchRequest }: {
378
+ export declare function searchKsV1KnowledgeSourcesSearchPost({ xAccountId, xUsername, authorization, knowledgeSourceSearchRequest }: {
341
379
  xAccountId?: string | null;
342
380
  xUsername?: string | null;
343
- authorization?: string | null;
344
- authorizationHeader: string;
381
+ authorization: string;
345
382
  knowledgeSourceSearchRequest: KnowledgeSourceSearchRequest;
346
383
  }, opts?: Oazapfts.RequestOpts): Promise<KnowledgeSourceResponse[]>;
347
384
  /**
348
385
  * Find Ks
349
386
  */
350
- export declare function findKsV1KnowledgeSourcesSlugGet({ slug, xAccountId, xUsername, authorization, authorizationHeader }: {
387
+ export declare function findKsV1KnowledgeSourcesSlugGet({ slug, xAccountId, xUsername, authorization }: {
351
388
  slug: string;
352
389
  xAccountId?: string | null;
353
390
  xUsername?: string | null;
354
- authorization?: string | null;
355
- authorizationHeader: string;
391
+ authorization: string;
356
392
  }, opts?: Oazapfts.RequestOpts): Promise<KnowledgeSourceResponse>;
357
393
  /**
358
394
  * Update Ks
359
395
  */
360
- export declare function updateKsV1KnowledgeSourcesSlugPatch({ slug, xAccountId, xUsername, authorization, authorizationHeader, knowledgeSourcePatchesRequest }: {
396
+ export declare function updateKsV1KnowledgeSourcesSlugPatch({ slug, xAccountId, xUsername, authorization, knowledgeSourcePatchesRequest }: {
361
397
  slug: string;
362
398
  xAccountId?: string | null;
363
399
  xUsername?: string | null;
364
- authorization?: string | null;
365
- authorizationHeader: string;
400
+ authorization: string;
366
401
  knowledgeSourcePatchesRequest: KnowledgeSourcePatchesRequest;
367
402
  }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
368
403
  /**
369
404
  * Delete Ks
370
405
  */
371
- export declare function deleteKsV1KnowledgeSourcesSlugDelete({ slug, xAccountId, xUsername, authorization, authorizationHeader }: {
406
+ export declare function deleteKsV1KnowledgeSourcesSlugDelete({ slug, xAccountId, xUsername, authorization }: {
372
407
  slug: string;
373
408
  xAccountId: string;
374
409
  xUsername: string;
375
- authorization?: string | null;
376
- authorizationHeader: string;
410
+ authorization: string;
377
411
  }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
378
412
  /**
379
413
  * Exists Ks
380
414
  */
381
- export declare function existsKsV1KnowledgeSourcesSlugExistsGet({ slug, xAccountId, xUsername, authorization, authorizationHeader }: {
415
+ export declare function existsKsV1KnowledgeSourcesSlugExistsGet({ slug, xAccountId, xUsername, authorization }: {
382
416
  slug: string;
383
417
  xAccountId?: string | null;
384
418
  xUsername?: string | null;
385
- authorization?: string | null;
386
- authorizationHeader: string;
419
+ authorization: string;
387
420
  }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
388
421
  /**
389
422
  * Share Ks
390
423
  */
391
- export declare function shareKsV1KnowledgeSourcesSlugSharePost({ slug, xAccountId, xUsername, authorization, authorizationHeader }: {
424
+ export declare function shareKsV1KnowledgeSourcesSlugSharePost({ slug, xAccountId, xUsername, authorization }: {
392
425
  slug: string;
393
426
  xAccountId?: string | null;
394
427
  xUsername?: string | null;
395
- authorization?: string | null;
396
- authorizationHeader: string;
428
+ authorization: string;
397
429
  }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
398
430
  /**
399
431
  * Add Favorite
400
432
  */
401
- export declare function addFavoriteV1KnowledgeSourcesSlugFavoritePost({ slug, xAccountId, xUsername, authorization, authorizationHeader }: {
433
+ export declare function addFavoriteV1KnowledgeSourcesSlugFavoritePost({ slug, xAccountId, xUsername, authorization }: {
402
434
  slug: string;
403
435
  xAccountId?: string | null;
404
436
  xUsername?: string | null;
405
- authorization?: string | null;
406
- authorizationHeader: string;
437
+ authorization: string;
407
438
  }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
408
439
  /**
409
440
  * Delete Favorite
410
441
  */
411
- export declare function deleteFavoriteV1KnowledgeSourcesSlugFavoriteDelete({ slug, xAccountId, xUsername, authorization, authorizationHeader }: {
442
+ export declare function deleteFavoriteV1KnowledgeSourcesSlugFavoriteDelete({ slug, xAccountId, xUsername, authorization }: {
412
443
  slug: string;
413
444
  xAccountId?: string | null;
414
445
  xUsername?: string | null;
415
- authorization?: string | null;
416
- authorizationHeader: string;
446
+ authorization: string;
417
447
  }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
418
448
  /**
419
449
  * Publish Ks
420
450
  */
421
- export declare function publishKsV1KnowledgeSourcesSlugPublishPost({ slug, xAccountId, xUsername, authorization, authorizationHeader, body }: {
451
+ export declare function publishKsV1KnowledgeSourcesSlugPublishPost({ slug, xAccountId, xUsername, authorization, body }: {
422
452
  slug: string;
423
453
  xAccountId?: string | null;
424
454
  xUsername?: string | null;
425
- authorization?: string | null;
426
- authorizationHeader: string;
455
+ authorization: string;
427
456
  body?: KnowledgeSourcesPublishRequest | null;
428
457
  }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
429
458
  /**
430
459
  * Publish Ks Batch
431
460
  */
432
- export declare function publishKsBatchV1KnowledgeSourcesPublishBatchPost({ xAccountId, xUsername, authorization, authorizationHeader, knowledgeSourcePublishBatchRequest }: {
461
+ export declare function publishKsBatchV1KnowledgeSourcesPublishBatchPost({ xAccountId, xUsername, authorization, knowledgeSourcePublishBatchRequest }: {
433
462
  xAccountId?: string | null;
434
463
  xUsername?: string | null;
435
- authorization?: string | null;
436
- authorizationHeader: string;
464
+ authorization: string;
437
465
  knowledgeSourcePublishBatchRequest: KnowledgeSourcePublishBatchRequest;
438
466
  }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
439
467
  /**
440
468
  * Fork Ks
441
469
  */
442
- export declare function forkKsV1KnowledgeSourcesSlugForkPost({ slug, xAccountId, xUsername, authorization, authorizationHeader, forkKnowledgeSourceRequest }: {
470
+ export declare function forkKsV1KnowledgeSourcesSlugForkPost({ slug, xAccountId, xUsername, authorization, forkKnowledgeSourceRequest }: {
443
471
  slug: string;
444
472
  xAccountId?: string | null;
445
473
  xUsername?: string | null;
446
- authorization?: string | null;
447
- authorizationHeader: string;
474
+ authorization: string;
448
475
  forkKnowledgeSourceRequest: ForkKnowledgeSourceRequest;
449
476
  }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
450
477
  /**
451
478
  * List Kos
452
479
  */
453
- export declare function listKosV1KnowledgeSourcesKsSlugObjectsGet({ ksSlug, standalone, xAccountId, xUsername, authorization, authorizationHeader, body }: {
480
+ export declare function listKosV1KnowledgeSourcesKsSlugObjectsGet({ ksSlug, standalone, filePath, xAccountId, xUsername, authorization }: {
454
481
  ksSlug: string;
455
482
  standalone?: boolean | null;
483
+ filePath?: string[];
456
484
  xAccountId?: string | null;
457
485
  xUsername?: string | null;
458
- authorization?: string | null;
459
- authorizationHeader: string;
460
- body?: string[] | null;
486
+ authorization: string;
461
487
  }, opts?: Oazapfts.RequestOpts): Promise<KnowledgeObjectResponse[]>;
462
488
  /**
463
489
  * Reset Kos
464
490
  */
465
- export declare function resetKosV1KnowledgeSourcesKsSlugObjectsDelete({ ksSlug, standalone, xAccountId, xUsername, authorization, authorizationHeader }: {
491
+ export declare function resetKosV1KnowledgeSourcesKsSlugObjectsDelete({ ksSlug, standalone, xAccountId, xUsername, authorization }: {
466
492
  ksSlug: string;
467
493
  standalone?: boolean | null;
468
494
  xAccountId?: string | null;
469
495
  xUsername?: string | null;
470
- authorization?: string | null;
471
- authorizationHeader: string;
496
+ authorization: string;
472
497
  }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
473
498
  /**
474
499
  * Vectorize Snippet Ks
@@ -481,238 +506,217 @@ export declare function vectorizeCustomKsV1KnowledgeSourcesSlugCustomPost(opts?:
481
506
  /**
482
507
  * Find Ko By Id
483
508
  */
484
- export declare function findKoByIdV1KnowledgeSourcesKsSlugObjectsKoIdGet({ ksSlug, koId, xAccountId, xUsername, authorization, authorizationHeader }: {
509
+ export declare function findKoByIdV1KnowledgeSourcesKsSlugObjectsKoIdGet({ ksSlug, koId, xAccountId, xUsername, authorization }: {
485
510
  ksSlug: string;
486
511
  koId: string;
487
512
  xAccountId?: string | null;
488
513
  xUsername?: string | null;
489
- authorization?: string | null;
490
- authorizationHeader: string;
514
+ authorization: string;
491
515
  }, opts?: Oazapfts.RequestOpts): Promise<KnowledgeObjectResponse>;
492
516
  /**
493
517
  * Delete Ko By Id
494
518
  */
495
- export declare function deleteKoByIdV1KnowledgeSourcesKsSlugObjectsKoIdDelete({ ksSlug, koId, xAccountId, xUsername, authorization, authorizationHeader }: {
519
+ export declare function deleteKoByIdV1KnowledgeSourcesKsSlugObjectsKoIdDelete({ ksSlug, koId, xAccountId, xUsername, authorization }: {
496
520
  ksSlug: string;
497
521
  koId: string;
498
522
  xAccountId?: string | null;
499
523
  xUsername?: string | null;
500
- authorization?: string | null;
501
- authorizationHeader: string;
524
+ authorization: string;
502
525
  }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
503
526
  /**
504
527
  * Get Last Message
505
528
  */
506
- export declare function getLastMessageV1KnowledgeSourcesKsSlugLastMessageGet({ ksSlug, xAccountId, xUsername, authorization, authorizationHeader }: {
529
+ export declare function getLastMessageV1KnowledgeSourcesKsSlugLastMessageGet({ ksSlug, xAccountId, xUsername, authorization }: {
507
530
  ksSlug: string;
508
531
  xAccountId: string;
509
532
  xUsername?: string | null;
510
- authorization?: string | null;
511
- authorizationHeader: string;
533
+ authorization: string;
512
534
  }, opts?: Oazapfts.RequestOpts): Promise<KnowledgeSourceLastMessageResponse[]>;
513
535
  /**
514
536
  * Get Indexed Files
515
537
  */
516
- export declare function getIndexedFilesV1KnowledgeSourcesKsSlugFilesGet({ ksSlug, xAccountId, xUsername, authorization, authorizationHeader }: {
538
+ export declare function getIndexedFilesV1KnowledgeSourcesKsSlugFilesGet({ ksSlug, xAccountId, xUsername, authorization }: {
517
539
  ksSlug: string;
518
540
  xAccountId?: string | null;
519
541
  xUsername?: string | null;
520
- authorization?: string | null;
521
- authorizationHeader: string;
542
+ authorization: string;
522
543
  }, opts?: Oazapfts.RequestOpts): Promise<KnowledgeSourceFilesIngestedResponse[]>;
523
544
  /**
524
545
  * Delete Indexed Files
525
546
  */
526
- export declare function deleteIndexedFilesV1KnowledgeSourcesKsSlugFilesDelete({ ksSlug, xAccountId, xUsername, authorization, authorizationHeader, deleteIndexedFilesRequest }: {
547
+ export declare function deleteIndexedFilesV1KnowledgeSourcesKsSlugFilesDelete({ ksSlug, xAccountId, xUsername, authorization, deleteIndexedFilesRequest }: {
527
548
  ksSlug: string;
528
549
  xAccountId?: string | null;
529
550
  xUsername?: string | null;
530
- authorization?: string | null;
531
- authorizationHeader: string;
551
+ authorization: string;
532
552
  deleteIndexedFilesRequest: DeleteIndexedFilesRequest;
533
553
  }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
534
- /**
535
- * Workspace Fork
536
- */
537
- export declare function workspaceForkV1KnowledgeSourcesWorkspaceForkPost({ xAccountId, xUsername, authorization, authorizationHeader, knowledgeSourcesWorkspaceForkRequest }: {
538
- xAccountId?: string | null;
539
- xUsername?: string | null;
540
- authorization?: string | null;
541
- authorizationHeader: string;
542
- knowledgeSourcesWorkspaceForkRequest: KnowledgeSourcesWorkspaceForkRequest;
543
- }, opts?: Oazapfts.RequestOpts): Promise<KnowledgeSourcesWorkspaceForkResponse>;
544
- /**
545
- * Workspace Delete Fork
546
- */
547
- export declare function workspaceDeleteForkV1KnowledgeSourcesWorkspaceForkDelete({ xAccountId, xUsername, authorization, authorizationHeader, knowledgeSourcesWorkspaceDeleteRequest }: {
548
- xAccountId?: string | null;
549
- xUsername?: string | null;
550
- authorization?: string | null;
551
- authorizationHeader: string;
552
- knowledgeSourcesWorkspaceDeleteRequest: KnowledgeSourcesWorkspaceDeleteRequest;
553
- }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
554
- /**
555
- * Workspace List
556
- */
557
- export declare function workspaceListV1KnowledgeSourcesWorkspaceListPost({ xAccountId, xUsername, authorization, authorizationHeader, knowledgeSourcesWorkspaceListRequest }: {
558
- xAccountId?: string | null;
559
- xUsername?: string | null;
560
- authorization?: string | null;
561
- authorizationHeader: string;
562
- knowledgeSourcesWorkspaceListRequest: KnowledgeSourcesWorkspaceListRequest;
563
- }, opts?: Oazapfts.RequestOpts): Promise<KnowledgeSourceItemResponse[]>;
564
554
  /**
565
555
  * Get Upload Form
566
556
  */
567
- export declare function getUploadFormV1FileUploadFormPost({ xAccountId, xUsername, authorization, authorizationHeader, newFileUploadRequest }: {
557
+ export declare function getUploadFormV1FileUploadFormPost({ xAccountId, xUsername, authorization, newFileUploadRequest }: {
568
558
  xAccountId?: string | null;
569
559
  xUsername?: string | null;
570
- authorization?: string | null;
571
- authorizationHeader: string;
560
+ authorization: string;
572
561
  newFileUploadRequest: NewFileUploadRequest;
573
562
  }, opts?: Oazapfts.RequestOpts): Promise<NewFileUploadFormResponse>;
574
563
  /**
575
564
  * Get File Upload Status
576
565
  */
577
- export declare function getFileUploadStatusV1FileUploadFileUploadIdGet({ fileUploadId, xAccountId, xUsername, authorization, authorizationHeader }: {
566
+ export declare function getFileUploadStatusV1FileUploadFileUploadIdGet({ fileUploadId, xAccountId, xUsername, authorization }: {
578
567
  fileUploadId: string;
579
568
  xAccountId?: string | null;
580
569
  xUsername?: string | null;
581
- authorization?: string | null;
582
- authorizationHeader: string;
570
+ authorization: string;
583
571
  }, opts?: Oazapfts.RequestOpts): Promise<FileUploadStatusResponse>;
584
572
  /**
585
- * Save Chunked Files
573
+ * Save Chunked Files Deprecated
586
574
  */
587
- export declare function saveChunkedFilesV1FileUploadFileUploadIdPost({ fileUploadId, xAccountId, xUsername, authorization, authorizationHeader, fileUploadSaveChunksRequest }: {
575
+ export declare function saveChunkedFilesDeprecatedV1FileUploadFileUploadIdPost({ fileUploadId, xAccountId, xUsername, authorization, fileUploadSaveChunksRequest }: {
588
576
  fileUploadId: string;
589
577
  xAccountId?: string | null;
590
578
  xUsername?: string | null;
591
- authorization?: string | null;
592
- authorizationHeader: string;
579
+ authorization: string;
593
580
  fileUploadSaveChunksRequest: FileUploadSaveChunksRequest;
594
581
  }, opts?: Oazapfts.RequestOpts): Promise<any>;
595
582
  /**
596
583
  * Internal Patch File Upload Status
597
584
  */
598
- export declare function internalPatchFileUploadStatusV1FileUploadFileUploadIdPatch({ fileUploadId, xAccountId, xUsername, authorization, authorizationHeader, fileUploadUpdateRequest }: {
585
+ export declare function internalPatchFileUploadStatusV1FileUploadFileUploadIdPatch({ fileUploadId, xAccountId, xUsername, authorization, fileUploadUpdateRequest }: {
599
586
  fileUploadId: string;
600
587
  xAccountId: string;
601
588
  xUsername?: string | null;
602
- authorization?: string | null;
603
- authorizationHeader: string;
589
+ authorization: string;
604
590
  fileUploadUpdateRequest: FileUploadUpdateRequest;
605
591
  }, opts?: Oazapfts.RequestOpts): Promise<FileUploadStatusResponse>;
592
+ /**
593
+ * Save Chunked Files
594
+ */
595
+ export declare function saveChunkedFilesV1FileUploadFileUploadIdKnowledgeObjectsPost({ fileUploadId, xAccountId, xUsername, authorization, fileUploadSaveChunksRequest }: {
596
+ fileUploadId: string;
597
+ xAccountId?: string | null;
598
+ xUsername?: string | null;
599
+ authorization: string;
600
+ fileUploadSaveChunksRequest: FileUploadSaveChunksRequest;
601
+ }, opts?: Oazapfts.RequestOpts): Promise<any>;
606
602
  /**
607
603
  * Split Uploaded File
608
604
  */
609
- export declare function splitUploadedFileV1FileUploadFileUploadIdSplitPost({ fileUploadId, xAccountId, xUsername, authorization, authorizationHeader, fileSplitRequest }: {
605
+ export declare function splitUploadedFileV1FileUploadFileUploadIdSplitPost({ fileUploadId, xAccountId, xUsername, authorization, fileSplitRequest }: {
610
606
  fileUploadId: string;
611
607
  xAccountId?: string | null;
612
608
  xUsername?: string | null;
613
- authorization?: string | null;
614
- authorizationHeader: string;
609
+ authorization: string;
615
610
  fileSplitRequest: FileSplitRequest;
616
611
  }, opts?: Oazapfts.RequestOpts): Promise<any>;
617
612
  /**
618
613
  * Split Uploaded File Preview
619
614
  */
620
- export declare function splitUploadedFilePreviewV1FileUploadFileUploadIdSplitPreviewSplitStrategyGet({ fileUploadId, splitStrategy, xAccountId, xUsername, authorization, authorizationHeader }: {
615
+ export declare function splitUploadedFilePreviewV1FileUploadFileUploadIdSplitPreviewSplitStrategyGet({ fileUploadId, splitStrategy, xAccountId, xUsername, authorization }: {
621
616
  fileUploadId: string;
622
617
  splitStrategy: FileSplitStrategy;
623
618
  xAccountId?: string | null;
624
619
  xUsername?: string | null;
625
- authorization?: string | null;
626
- authorizationHeader: string;
620
+ authorization: string;
627
621
  }, opts?: Oazapfts.RequestOpts): Promise<any>;
628
622
  /**
629
623
  * Internal Get File Upload Metadata
630
624
  */
631
- export declare function internalGetFileUploadMetadataV1FileUploadFileUploadIdMetadataGet({ fileUploadId, xAccountId, xUsername, authorization, authorizationHeader }: {
625
+ export declare function internalGetFileUploadMetadataV1FileUploadFileUploadIdMetadataGet({ fileUploadId, xAccountId, xUsername, authorization }: {
632
626
  fileUploadId: string;
633
627
  xAccountId: string;
634
628
  xUsername?: string | null;
635
- authorization?: string | null;
636
- authorizationHeader: string;
629
+ authorization: string;
637
630
  }, opts?: Oazapfts.RequestOpts): Promise<FileMetadataResponse>;
638
631
  /**
639
- * Has Limit
632
+ * Get Presigned Download Url
640
633
  */
641
- export declare function hasLimitV1TokenUsageHasLimitGet({ xAccountId, xUsername, authorization, authorizationHeader }: {
634
+ export declare function getPresignedDownloadUrlV1FileUploadPresignedUrlGet({ id, expiration, xAccountId, xUsername, authorization }: {
635
+ id?: string[];
636
+ expiration?: number;
642
637
  xAccountId?: string | null;
643
638
  xUsername?: string | null;
644
- authorization?: string | null;
645
- authorizationHeader: string;
646
- }, opts?: Oazapfts.RequestOpts): Promise<any>;
639
+ authorization: string;
640
+ }, opts?: Oazapfts.RequestOpts): Promise<PresignedUrlsDto>;
641
+ /**
642
+ * Delete Bucket Object
643
+ */
644
+ export declare function deleteBucketObjectV1FileUploadUploadIdDelete({ uploadId, xAccountId, xUsername, authorization }: {
645
+ uploadId: string;
646
+ xAccountId?: string | null;
647
+ xUsername?: string | null;
648
+ authorization: string;
649
+ }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
650
+ /**
651
+ * Internal Get Current Embedding Usage
652
+ */
653
+ export declare function internalGetCurrentEmbeddingUsageV1TokenUsageEmbeddingGet({ xAccountId, xUsername, authorization }: {
654
+ xAccountId: string;
655
+ xUsername?: string | null;
656
+ authorization: string;
657
+ }, opts?: Oazapfts.RequestOpts): Promise<AccountEmbeddingTokenUsage>;
647
658
  /**
648
659
  * Internal Consume Token Usage
649
660
  */
650
- export declare function internalConsumeTokenUsageV1TokenUsageConsumePost({ xAccountId, xUsername, authorization, authorizationHeader, consumeTokenRequest }: {
661
+ export declare function internalConsumeTokenUsageV1TokenUsageConsumePost({ xAccountId, xUsername, authorization, consumeTokenRequest }: {
651
662
  xAccountId: string;
652
663
  xUsername: string;
653
- authorization?: string | null;
654
- authorizationHeader: string;
664
+ authorization: string;
655
665
  consumeTokenRequest: ConsumeTokenRequest;
656
666
  }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
657
667
  /**
658
668
  * Get Upload Form V2
659
669
  */
660
- export declare function getUploadFormV2V2FileUploadFormPost({ xAccountId, xUsername, authorization, authorizationHeader, newFileUploadRequest }: {
670
+ export declare function getUploadFormV2V2FileUploadFormPost({ xAccountId, xUsername, authorization, newFileUploadRequest }: {
661
671
  xAccountId?: string | null;
662
672
  xUsername?: string | null;
663
- authorization?: string | null;
664
- authorizationHeader: string;
673
+ authorization: string;
665
674
  newFileUploadRequest: NewFileUploadRequest;
666
675
  }, opts?: Oazapfts.RequestOpts): Promise<NewFileUploadFormResponse>;
667
676
  /**
668
677
  * Internal Get Llm Config
669
678
  */
670
- export declare function internalGetLlmConfigV1AccountsLlmConfigGet({ xAccountId, xUsername, authorization, authorizationHeader }: {
679
+ export declare function internalGetLlmConfigV1AccountsLlmConfigGet({ xAccountId, xUsername, authorization }: {
671
680
  xAccountId: string;
672
681
  xUsername?: string | null;
673
- authorization?: string | null;
674
- authorizationHeader: string;
682
+ authorization: string;
675
683
  }, opts?: Oazapfts.RequestOpts): Promise<AccountLlmConfigResponse>;
676
684
  /**
677
685
  * Internal Get Or Create Knowledge Group
678
686
  */
679
- export declare function internalGetOrCreateKnowledgeGroupV1KnowledgeGroupsGetOrCreatePut({ xAccountId, xUsername, authorization, authorizationHeader, getOrCreateKnowledgeGroupRequest }: {
687
+ export declare function internalGetOrCreateKnowledgeGroupV1KnowledgeGroupsGetOrCreatePut({ xAccountId, xUsername, authorization, getOrCreateKnowledgeGroupRequest }: {
680
688
  xAccountId: string;
681
689
  xUsername?: string | null;
682
- authorization?: string | null;
683
- authorizationHeader: string;
690
+ authorization: string;
684
691
  getOrCreateKnowledgeGroupRequest: GetOrCreateKnowledgeGroupRequest;
685
692
  }, opts?: Oazapfts.RequestOpts): Promise<KnowledgeGroupResponse>;
686
693
  /**
687
694
  * Internal Delete By Not Checksums
688
695
  */
689
- export declare function internalDeleteByNotChecksumsV1KnowledgeGroupsGroupIdObjectsDelete({ groupId, xAccountId, xUsername, authorization, authorizationHeader, deleteGroupObjectsRequests }: {
696
+ export declare function internalDeleteByNotChecksumsV1KnowledgeGroupsGroupIdObjectsDelete({ groupId, xAccountId, xUsername, authorization, deleteGroupObjectsRequests }: {
690
697
  groupId: string;
691
698
  xAccountId: string;
692
699
  xUsername?: string | null;
693
- authorization?: string | null;
694
- authorizationHeader: string;
700
+ authorization: string;
695
701
  deleteGroupObjectsRequests: DeleteGroupObjectsRequests;
696
702
  }, opts?: Oazapfts.RequestOpts): Promise<DeletedCountResponse>;
697
703
  /**
698
704
  * Internal Update Knowledge Group
699
705
  */
700
- export declare function internalUpdateKnowledgeGroupV1KnowledgeGroupsGroupIdPatch({ groupId, xAccountId, xUsername, authorization, authorizationHeader, updateKnowledgeGroupRequest }: {
706
+ export declare function internalUpdateKnowledgeGroupV1KnowledgeGroupsGroupIdPatch({ groupId, xAccountId, xUsername, authorization, updateKnowledgeGroupRequest }: {
701
707
  groupId: string;
702
708
  xAccountId: string;
703
709
  xUsername?: string | null;
704
- authorization?: string | null;
705
- authorizationHeader: string;
710
+ authorization: string;
706
711
  updateKnowledgeGroupRequest: UpdateKnowledgeGroupRequest;
707
712
  }, opts?: Oazapfts.RequestOpts): Promise<any>;
708
713
  /**
709
714
  * Internal Create Knowledge Objects Batch
710
715
  */
711
- export declare function internalCreateKnowledgeObjectsBatchV1KnowledgeObjectsBatchPost({ xAccountId, xUsername, authorization, authorizationHeader, body }: {
716
+ export declare function internalCreateKnowledgeObjectsBatchV1KnowledgeObjectsBatchPost({ xAccountId, xUsername, authorization, body }: {
712
717
  xAccountId: string;
713
718
  xUsername?: string | null;
714
- authorization?: string | null;
715
- authorizationHeader: string;
719
+ authorization: string;
716
720
  body: CreateKnowledgeObjectsBatchRequest[];
717
721
  }, opts?: Oazapfts.RequestOpts): Promise<any>;
718
722
  //# sourceMappingURL=dataIntegration.d.ts.map