@gooddata/api-client-tiger 11.32.0-alpha.0 → 11.32.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -514,6 +514,54 @@ export async function KnowledgeAiAxiosParamCreator_CreateDocument(workspaceId, f
514
514
  };
515
515
  }
516
516
  // KnowledgeAi FP - KnowledgeAiAxiosParamCreator
517
+ /**
518
+ * Upload a new org-scoped knowledge document.
519
+ * @summary Upload Document Org
520
+ * @param {File} file
521
+ * @param {string} [title]
522
+ * @param {Array<string>} [scopes]
523
+ * @param {*} [options] Override http request option.
524
+ * @param {Configuration} [configuration] Optional configuration.
525
+ * @throws {RequiredError}
526
+ */
527
+ export async function KnowledgeAiAxiosParamCreator_CreateOrgDocument(file, title, scopes, options = {}, configuration) {
528
+ // verify required parameter 'file' is not null or undefined
529
+ assertParamExists('createOrgDocument', 'file', file);
530
+ const localVarPath = `/api/v1/ai/organization/knowledge/documents`;
531
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
532
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
533
+ let baseOptions;
534
+ if (configuration) {
535
+ baseOptions = configuration.baseOptions;
536
+ }
537
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
538
+ const localVarHeaderParameter = {};
539
+ const localVarQueryParameter = {};
540
+ const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
541
+ if (file !== undefined) {
542
+ localVarFormParams.append('file', file);
543
+ }
544
+ if (title !== undefined) {
545
+ localVarFormParams.append('title', title);
546
+ }
547
+ if (scopes) {
548
+ localVarFormParams.append('scopes', scopes.join(COLLECTION_FORMATS.csv));
549
+ }
550
+ localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
551
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
552
+ const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
553
+ localVarRequestOptions.headers = {
554
+ ...localVarHeaderParameter,
555
+ ...headersFromBaseOptions,
556
+ ...options.headers,
557
+ };
558
+ localVarRequestOptions.data = localVarFormParams;
559
+ return {
560
+ url: toPathString(localVarUrlObj),
561
+ options: localVarRequestOptions,
562
+ };
563
+ }
564
+ // KnowledgeAi FP - KnowledgeAiAxiosParamCreator
517
565
  /**
518
566
  * Delete a knowledge document and all its chunks.
519
567
  * @summary Delete Document
@@ -553,6 +601,41 @@ export async function KnowledgeAiAxiosParamCreator_DeleteDocument(workspaceId, d
553
601
  };
554
602
  }
555
603
  // KnowledgeAi FP - KnowledgeAiAxiosParamCreator
604
+ /**
605
+ * Delete an org-scoped knowledge document and all its chunks.
606
+ * @summary Delete Document Org
607
+ * @param {string} documentId
608
+ * @param {*} [options] Override http request option.
609
+ * @param {Configuration} [configuration] Optional configuration.
610
+ * @throws {RequiredError}
611
+ */
612
+ export async function KnowledgeAiAxiosParamCreator_DeleteOrgDocument(documentId, options = {}, configuration) {
613
+ // verify required parameter 'documentId' is not null or undefined
614
+ assertParamExists('deleteOrgDocument', 'documentId', documentId);
615
+ const localVarPath = `/api/v1/ai/organization/knowledge/documents/{document_id}`
616
+ .replace(`{${"document_id"}}`, encodeURIComponent(String(documentId)));
617
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
618
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
619
+ let baseOptions;
620
+ if (configuration) {
621
+ baseOptions = configuration.baseOptions;
622
+ }
623
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
624
+ const localVarHeaderParameter = {};
625
+ const localVarQueryParameter = {};
626
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
627
+ const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
628
+ localVarRequestOptions.headers = {
629
+ ...localVarHeaderParameter,
630
+ ...headersFromBaseOptions,
631
+ ...options.headers,
632
+ };
633
+ return {
634
+ url: toPathString(localVarUrlObj),
635
+ options: localVarRequestOptions,
636
+ };
637
+ }
638
+ // KnowledgeAi FP - KnowledgeAiAxiosParamCreator
556
639
  /**
557
640
  * Download a knowledge document\'s raw file.
558
641
  * @summary Download Document
@@ -592,6 +675,41 @@ export async function KnowledgeAiAxiosParamCreator_DownloadDocument(workspaceId,
592
675
  };
593
676
  }
594
677
  // KnowledgeAi FP - KnowledgeAiAxiosParamCreator
678
+ /**
679
+ * Download an org-scoped knowledge document\'s raw file.
680
+ * @summary Download Document Org
681
+ * @param {string} documentId
682
+ * @param {*} [options] Override http request option.
683
+ * @param {Configuration} [configuration] Optional configuration.
684
+ * @throws {RequiredError}
685
+ */
686
+ export async function KnowledgeAiAxiosParamCreator_DownloadOrgDocument(documentId, options = {}, configuration) {
687
+ // verify required parameter 'documentId' is not null or undefined
688
+ assertParamExists('downloadOrgDocument', 'documentId', documentId);
689
+ const localVarPath = `/api/v1/ai/organization/knowledge/documents/{document_id}/download`
690
+ .replace(`{${"document_id"}}`, encodeURIComponent(String(documentId)));
691
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
692
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
693
+ let baseOptions;
694
+ if (configuration) {
695
+ baseOptions = configuration.baseOptions;
696
+ }
697
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
698
+ const localVarHeaderParameter = {};
699
+ const localVarQueryParameter = {};
700
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
701
+ const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
702
+ localVarRequestOptions.headers = {
703
+ ...localVarHeaderParameter,
704
+ ...headersFromBaseOptions,
705
+ ...options.headers,
706
+ };
707
+ return {
708
+ url: toPathString(localVarUrlObj),
709
+ options: localVarRequestOptions,
710
+ };
711
+ }
712
+ // KnowledgeAi FP - KnowledgeAiAxiosParamCreator
595
713
  /**
596
714
  * Get a single knowledge document\'s metadata.
597
715
  * @summary Get Document
@@ -631,6 +749,41 @@ export async function KnowledgeAiAxiosParamCreator_GetDocument(workspaceId, docu
631
749
  };
632
750
  }
633
751
  // KnowledgeAi FP - KnowledgeAiAxiosParamCreator
752
+ /**
753
+ * Get a single org-scoped knowledge document\'s metadata.
754
+ * @summary Get Document Org
755
+ * @param {string} documentId
756
+ * @param {*} [options] Override http request option.
757
+ * @param {Configuration} [configuration] Optional configuration.
758
+ * @throws {RequiredError}
759
+ */
760
+ export async function KnowledgeAiAxiosParamCreator_GetOrgDocument(documentId, options = {}, configuration) {
761
+ // verify required parameter 'documentId' is not null or undefined
762
+ assertParamExists('getOrgDocument', 'documentId', documentId);
763
+ const localVarPath = `/api/v1/ai/organization/knowledge/documents/{document_id}`
764
+ .replace(`{${"document_id"}}`, encodeURIComponent(String(documentId)));
765
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
766
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
767
+ let baseOptions;
768
+ if (configuration) {
769
+ baseOptions = configuration.baseOptions;
770
+ }
771
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
772
+ const localVarHeaderParameter = {};
773
+ const localVarQueryParameter = {};
774
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
775
+ const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
776
+ localVarRequestOptions.headers = {
777
+ ...localVarHeaderParameter,
778
+ ...headersFromBaseOptions,
779
+ ...options.headers,
780
+ };
781
+ return {
782
+ url: toPathString(localVarUrlObj),
783
+ options: localVarRequestOptions,
784
+ };
785
+ }
786
+ // KnowledgeAi FP - KnowledgeAiAxiosParamCreator
634
787
  /**
635
788
  * List knowledge documents accessible from the workspace.
636
789
  * @summary List Documents
@@ -690,6 +843,61 @@ export async function KnowledgeAiAxiosParamCreator_ListDocuments(workspaceId, sc
690
843
  };
691
844
  }
692
845
  // KnowledgeAi FP - KnowledgeAiAxiosParamCreator
846
+ /**
847
+ * List org-scoped knowledge documents.
848
+ * @summary List Documents Org
849
+ * @param {Array<string>} [scopes]
850
+ * @param {number} [size]
851
+ * @param {string} [pageToken]
852
+ * @param {string} [metaInclude]
853
+ * @param {'enabled' | 'disabled'} [state]
854
+ * @param {string} [query]
855
+ * @param {*} [options] Override http request option.
856
+ * @param {Configuration} [configuration] Optional configuration.
857
+ * @throws {RequiredError}
858
+ */
859
+ export async function KnowledgeAiAxiosParamCreator_ListOrgDocuments(scopes, size, pageToken, metaInclude, state, query, options = {}, configuration) {
860
+ const localVarPath = `/api/v1/ai/organization/knowledge/documents`;
861
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
862
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
863
+ let baseOptions;
864
+ if (configuration) {
865
+ baseOptions = configuration.baseOptions;
866
+ }
867
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
868
+ const localVarHeaderParameter = {};
869
+ const localVarQueryParameter = {};
870
+ if (scopes) {
871
+ localVarQueryParameter['scopes'] = scopes;
872
+ }
873
+ if (size !== undefined) {
874
+ localVarQueryParameter['size'] = size;
875
+ }
876
+ if (pageToken !== undefined) {
877
+ localVarQueryParameter['pageToken'] = pageToken;
878
+ }
879
+ if (metaInclude !== undefined) {
880
+ localVarQueryParameter['metaInclude'] = metaInclude;
881
+ }
882
+ if (state !== undefined) {
883
+ localVarQueryParameter['state'] = state;
884
+ }
885
+ if (query !== undefined) {
886
+ localVarQueryParameter['query'] = query;
887
+ }
888
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
889
+ const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
890
+ localVarRequestOptions.headers = {
891
+ ...localVarHeaderParameter,
892
+ ...headersFromBaseOptions,
893
+ ...options.headers,
894
+ };
895
+ return {
896
+ url: toPathString(localVarUrlObj),
897
+ options: localVarRequestOptions,
898
+ };
899
+ }
900
+ // KnowledgeAi FP - KnowledgeAiAxiosParamCreator
693
901
  /**
694
902
  * Patch a knowledge document\'s metadata without re-uploading content.
695
903
  * @summary Patch Document
@@ -744,6 +952,56 @@ export async function KnowledgeAiAxiosParamCreator_PatchDocument(workspaceId, do
744
952
  };
745
953
  }
746
954
  // KnowledgeAi FP - KnowledgeAiAxiosParamCreator
955
+ /**
956
+ * Patch an org-scoped knowledge document\'s metadata.
957
+ * @summary Patch Document Org
958
+ * @param {string} documentId
959
+ * @param {AiPatchDocumentRequest} aiPatchDocumentRequest
960
+ * @param {*} [options] Override http request option.
961
+ * @param {Configuration} [configuration] Optional configuration.
962
+ * @throws {RequiredError}
963
+ */
964
+ export async function KnowledgeAiAxiosParamCreator_PatchOrgDocument(documentId, aiPatchDocumentRequest, options = {}, configuration) {
965
+ // verify required parameter 'documentId' is not null or undefined
966
+ assertParamExists('patchOrgDocument', 'documentId', documentId);
967
+ // verify required parameter 'aiPatchDocumentRequest' is not null or undefined
968
+ assertParamExists('patchOrgDocument', 'aiPatchDocumentRequest', aiPatchDocumentRequest);
969
+ const localVarPath = `/api/v1/ai/organization/knowledge/documents/{document_id}`
970
+ .replace(`{${"document_id"}}`, encodeURIComponent(String(documentId)));
971
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
972
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
973
+ let baseOptions;
974
+ if (configuration) {
975
+ baseOptions = configuration.baseOptions;
976
+ }
977
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options };
978
+ const localVarHeaderParameter = {};
979
+ const localVarQueryParameter = {};
980
+ const consumes = [
981
+ 'application/json'
982
+ ];
983
+ // use application/json if present, otherwise fallback to the first one
984
+ localVarHeaderParameter['Content-Type'] = consumes.includes('application/json')
985
+ ? 'application/json'
986
+ : consumes[0];
987
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
988
+ const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
989
+ localVarRequestOptions.headers = {
990
+ ...localVarHeaderParameter,
991
+ ...headersFromBaseOptions,
992
+ ...options.headers,
993
+ };
994
+ const needsSerialization = typeof aiPatchDocumentRequest !== "string" ||
995
+ localVarRequestOptions.headers["Content-Type"] === "application/json";
996
+ localVarRequestOptions.data = needsSerialization
997
+ ? JSON.stringify(aiPatchDocumentRequest !== undefined ? aiPatchDocumentRequest : {})
998
+ : aiPatchDocumentRequest || "";
999
+ return {
1000
+ url: toPathString(localVarUrlObj),
1001
+ options: localVarRequestOptions,
1002
+ };
1003
+ }
1004
+ // KnowledgeAi FP - KnowledgeAiAxiosParamCreator
747
1005
  /**
748
1006
  * Search the knowledge base using semantic similarity.
749
1007
  * @summary Search Documents
@@ -797,6 +1055,55 @@ export async function KnowledgeAiAxiosParamCreator_SearchKnowledge(workspaceId,
797
1055
  };
798
1056
  }
799
1057
  // KnowledgeAi FP - KnowledgeAiAxiosParamCreator
1058
+ /**
1059
+ * Search org-scoped knowledge documents using semantic similarity.
1060
+ * @summary Search Documents Org
1061
+ * @param {string} query
1062
+ * @param {number} [limit]
1063
+ * @param {number} [minScore]
1064
+ * @param {Array<string>} [scopes]
1065
+ * @param {*} [options] Override http request option.
1066
+ * @param {Configuration} [configuration] Optional configuration.
1067
+ * @throws {RequiredError}
1068
+ */
1069
+ export async function KnowledgeAiAxiosParamCreator_SearchOrgKnowledge(query, limit, minScore, scopes, options = {}, configuration) {
1070
+ // verify required parameter 'query' is not null or undefined
1071
+ assertParamExists('searchOrgKnowledge', 'query', query);
1072
+ const localVarPath = `/api/v1/ai/organization/knowledge/search`;
1073
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1074
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1075
+ let baseOptions;
1076
+ if (configuration) {
1077
+ baseOptions = configuration.baseOptions;
1078
+ }
1079
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1080
+ const localVarHeaderParameter = {};
1081
+ const localVarQueryParameter = {};
1082
+ if (query !== undefined) {
1083
+ localVarQueryParameter['query'] = query;
1084
+ }
1085
+ if (limit !== undefined) {
1086
+ localVarQueryParameter['limit'] = limit;
1087
+ }
1088
+ if (minScore !== undefined) {
1089
+ localVarQueryParameter['minScore'] = minScore;
1090
+ }
1091
+ if (scopes) {
1092
+ localVarQueryParameter['scopes'] = scopes;
1093
+ }
1094
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1095
+ const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
1096
+ localVarRequestOptions.headers = {
1097
+ ...localVarHeaderParameter,
1098
+ ...headersFromBaseOptions,
1099
+ ...options.headers,
1100
+ };
1101
+ return {
1102
+ url: toPathString(localVarUrlObj),
1103
+ options: localVarRequestOptions,
1104
+ };
1105
+ }
1106
+ // KnowledgeAi FP - KnowledgeAiAxiosParamCreator
800
1107
  /**
801
1108
  * Upload or replace a knowledge document.
802
1109
  * @summary Upsert Document
@@ -848,6 +1155,54 @@ export async function KnowledgeAiAxiosParamCreator_UpsertDocument(workspaceId, f
848
1155
  options: localVarRequestOptions,
849
1156
  };
850
1157
  }
1158
+ // KnowledgeAi FP - KnowledgeAiAxiosParamCreator
1159
+ /**
1160
+ * Upload or replace an org-scoped knowledge document.
1161
+ * @summary Upsert Document Org
1162
+ * @param {File} file
1163
+ * @param {string} [title]
1164
+ * @param {Array<string>} [scopes]
1165
+ * @param {*} [options] Override http request option.
1166
+ * @param {Configuration} [configuration] Optional configuration.
1167
+ * @throws {RequiredError}
1168
+ */
1169
+ export async function KnowledgeAiAxiosParamCreator_UpsertOrgDocument(file, title, scopes, options = {}, configuration) {
1170
+ // verify required parameter 'file' is not null or undefined
1171
+ assertParamExists('upsertOrgDocument', 'file', file);
1172
+ const localVarPath = `/api/v1/ai/organization/knowledge/documents`;
1173
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1174
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1175
+ let baseOptions;
1176
+ if (configuration) {
1177
+ baseOptions = configuration.baseOptions;
1178
+ }
1179
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
1180
+ const localVarHeaderParameter = {};
1181
+ const localVarQueryParameter = {};
1182
+ const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
1183
+ if (file !== undefined) {
1184
+ localVarFormParams.append('file', file);
1185
+ }
1186
+ if (title !== undefined) {
1187
+ localVarFormParams.append('title', title);
1188
+ }
1189
+ if (scopes) {
1190
+ localVarFormParams.append('scopes', scopes.join(COLLECTION_FORMATS.csv));
1191
+ }
1192
+ localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
1193
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1194
+ const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
1195
+ localVarRequestOptions.headers = {
1196
+ ...localVarHeaderParameter,
1197
+ ...headersFromBaseOptions,
1198
+ ...options.headers,
1199
+ };
1200
+ localVarRequestOptions.data = localVarFormParams;
1201
+ return {
1202
+ url: toPathString(localVarUrlObj),
1203
+ options: localVarRequestOptions,
1204
+ };
1205
+ }
851
1206
  // KnowledgeAi Api FP
852
1207
  /**
853
1208
  * Upload a new knowledge document. Returns 409 if filename already exists.
@@ -864,6 +1219,21 @@ export async function KnowledgeAi_CreateDocument(axios, basePath, requestParamet
864
1219
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
865
1220
  }
866
1221
  // KnowledgeAi Api FP
1222
+ /**
1223
+ * Upload a new org-scoped knowledge document.
1224
+ * @summary Upload Document Org
1225
+ * @param {AxiosInstance} axios Axios instance.
1226
+ * @param {string} basePath Base path.
1227
+ * @param {KnowledgeAiCreateOrgDocumentRequest} requestParameters Request parameters.
1228
+ * @param {*} [options] Override http request option.
1229
+ * @param {Configuration} [configuration] Optional configuration.
1230
+ * @throws {RequiredError}
1231
+ */
1232
+ export async function KnowledgeAi_CreateOrgDocument(axios, basePath, requestParameters, options, configuration) {
1233
+ const localVarAxiosArgs = await KnowledgeAiAxiosParamCreator_CreateOrgDocument(requestParameters.file, requestParameters.title, requestParameters.scopes, options || {}, configuration);
1234
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
1235
+ }
1236
+ // KnowledgeAi Api FP
867
1237
  /**
868
1238
  * Delete a knowledge document and all its chunks.
869
1239
  * @summary Delete Document
@@ -879,6 +1249,21 @@ export async function KnowledgeAi_DeleteDocument(axios, basePath, requestParamet
879
1249
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
880
1250
  }
881
1251
  // KnowledgeAi Api FP
1252
+ /**
1253
+ * Delete an org-scoped knowledge document and all its chunks.
1254
+ * @summary Delete Document Org
1255
+ * @param {AxiosInstance} axios Axios instance.
1256
+ * @param {string} basePath Base path.
1257
+ * @param {KnowledgeAiDeleteOrgDocumentRequest} requestParameters Request parameters.
1258
+ * @param {*} [options] Override http request option.
1259
+ * @param {Configuration} [configuration] Optional configuration.
1260
+ * @throws {RequiredError}
1261
+ */
1262
+ export async function KnowledgeAi_DeleteOrgDocument(axios, basePath, requestParameters, options, configuration) {
1263
+ const localVarAxiosArgs = await KnowledgeAiAxiosParamCreator_DeleteOrgDocument(requestParameters.documentId, options || {}, configuration);
1264
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
1265
+ }
1266
+ // KnowledgeAi Api FP
882
1267
  /**
883
1268
  * Download a knowledge document\'s raw file.
884
1269
  * @summary Download Document
@@ -894,6 +1279,21 @@ export async function KnowledgeAi_DownloadDocument(axios, basePath, requestParam
894
1279
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
895
1280
  }
896
1281
  // KnowledgeAi Api FP
1282
+ /**
1283
+ * Download an org-scoped knowledge document\'s raw file.
1284
+ * @summary Download Document Org
1285
+ * @param {AxiosInstance} axios Axios instance.
1286
+ * @param {string} basePath Base path.
1287
+ * @param {KnowledgeAiDownloadOrgDocumentRequest} requestParameters Request parameters.
1288
+ * @param {*} [options] Override http request option.
1289
+ * @param {Configuration} [configuration] Optional configuration.
1290
+ * @throws {RequiredError}
1291
+ */
1292
+ export async function KnowledgeAi_DownloadOrgDocument(axios, basePath, requestParameters, options, configuration) {
1293
+ const localVarAxiosArgs = await KnowledgeAiAxiosParamCreator_DownloadOrgDocument(requestParameters.documentId, options || {}, configuration);
1294
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
1295
+ }
1296
+ // KnowledgeAi Api FP
897
1297
  /**
898
1298
  * Get a single knowledge document\'s metadata.
899
1299
  * @summary Get Document
@@ -909,6 +1309,21 @@ export async function KnowledgeAi_GetDocument(axios, basePath, requestParameters
909
1309
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
910
1310
  }
911
1311
  // KnowledgeAi Api FP
1312
+ /**
1313
+ * Get a single org-scoped knowledge document\'s metadata.
1314
+ * @summary Get Document Org
1315
+ * @param {AxiosInstance} axios Axios instance.
1316
+ * @param {string} basePath Base path.
1317
+ * @param {KnowledgeAiGetOrgDocumentRequest} requestParameters Request parameters.
1318
+ * @param {*} [options] Override http request option.
1319
+ * @param {Configuration} [configuration] Optional configuration.
1320
+ * @throws {RequiredError}
1321
+ */
1322
+ export async function KnowledgeAi_GetOrgDocument(axios, basePath, requestParameters, options, configuration) {
1323
+ const localVarAxiosArgs = await KnowledgeAiAxiosParamCreator_GetOrgDocument(requestParameters.documentId, options || {}, configuration);
1324
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
1325
+ }
1326
+ // KnowledgeAi Api FP
912
1327
  /**
913
1328
  * List knowledge documents accessible from the workspace.
914
1329
  * @summary List Documents
@@ -924,6 +1339,21 @@ export async function KnowledgeAi_ListDocuments(axios, basePath, requestParamete
924
1339
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
925
1340
  }
926
1341
  // KnowledgeAi Api FP
1342
+ /**
1343
+ * List org-scoped knowledge documents.
1344
+ * @summary List Documents Org
1345
+ * @param {AxiosInstance} axios Axios instance.
1346
+ * @param {string} basePath Base path.
1347
+ * @param {KnowledgeAiListOrgDocumentsRequest} requestParameters Request parameters.
1348
+ * @param {*} [options] Override http request option.
1349
+ * @param {Configuration} [configuration] Optional configuration.
1350
+ * @throws {RequiredError}
1351
+ */
1352
+ export async function KnowledgeAi_ListOrgDocuments(axios, basePath, requestParameters, options, configuration) {
1353
+ const localVarAxiosArgs = await KnowledgeAiAxiosParamCreator_ListOrgDocuments(requestParameters.scopes, requestParameters.size, requestParameters.pageToken, requestParameters.metaInclude, requestParameters.state, requestParameters.query, options || {}, configuration);
1354
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
1355
+ }
1356
+ // KnowledgeAi Api FP
927
1357
  /**
928
1358
  * Patch a knowledge document\'s metadata without re-uploading content.
929
1359
  * @summary Patch Document
@@ -939,6 +1369,21 @@ export async function KnowledgeAi_PatchDocument(axios, basePath, requestParamete
939
1369
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
940
1370
  }
941
1371
  // KnowledgeAi Api FP
1372
+ /**
1373
+ * Patch an org-scoped knowledge document\'s metadata.
1374
+ * @summary Patch Document Org
1375
+ * @param {AxiosInstance} axios Axios instance.
1376
+ * @param {string} basePath Base path.
1377
+ * @param {KnowledgeAiPatchOrgDocumentRequest} requestParameters Request parameters.
1378
+ * @param {*} [options] Override http request option.
1379
+ * @param {Configuration} [configuration] Optional configuration.
1380
+ * @throws {RequiredError}
1381
+ */
1382
+ export async function KnowledgeAi_PatchOrgDocument(axios, basePath, requestParameters, options, configuration) {
1383
+ const localVarAxiosArgs = await KnowledgeAiAxiosParamCreator_PatchOrgDocument(requestParameters.documentId, requestParameters.aiPatchDocumentRequest, options || {}, configuration);
1384
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
1385
+ }
1386
+ // KnowledgeAi Api FP
942
1387
  /**
943
1388
  * Search the knowledge base using semantic similarity.
944
1389
  * @summary Search Documents
@@ -954,6 +1399,21 @@ export async function KnowledgeAi_SearchKnowledge(axios, basePath, requestParame
954
1399
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
955
1400
  }
956
1401
  // KnowledgeAi Api FP
1402
+ /**
1403
+ * Search org-scoped knowledge documents using semantic similarity.
1404
+ * @summary Search Documents Org
1405
+ * @param {AxiosInstance} axios Axios instance.
1406
+ * @param {string} basePath Base path.
1407
+ * @param {KnowledgeAiSearchOrgKnowledgeRequest} requestParameters Request parameters.
1408
+ * @param {*} [options] Override http request option.
1409
+ * @param {Configuration} [configuration] Optional configuration.
1410
+ * @throws {RequiredError}
1411
+ */
1412
+ export async function KnowledgeAi_SearchOrgKnowledge(axios, basePath, requestParameters, options, configuration) {
1413
+ const localVarAxiosArgs = await KnowledgeAiAxiosParamCreator_SearchOrgKnowledge(requestParameters.query, requestParameters.limit, requestParameters.minScore, requestParameters.scopes, options || {}, configuration);
1414
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
1415
+ }
1416
+ // KnowledgeAi Api FP
957
1417
  /**
958
1418
  * Upload or replace a knowledge document.
959
1419
  * @summary Upsert Document
@@ -968,6 +1428,21 @@ export async function KnowledgeAi_UpsertDocument(axios, basePath, requestParamet
968
1428
  const localVarAxiosArgs = await KnowledgeAiAxiosParamCreator_UpsertDocument(requestParameters.workspaceId, requestParameters.file, requestParameters.title, requestParameters.scopes, options || {}, configuration);
969
1429
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
970
1430
  }
1431
+ // KnowledgeAi Api FP
1432
+ /**
1433
+ * Upload or replace an org-scoped knowledge document.
1434
+ * @summary Upsert Document Org
1435
+ * @param {AxiosInstance} axios Axios instance.
1436
+ * @param {string} basePath Base path.
1437
+ * @param {KnowledgeAiUpsertOrgDocumentRequest} requestParameters Request parameters.
1438
+ * @param {*} [options] Override http request option.
1439
+ * @param {Configuration} [configuration] Optional configuration.
1440
+ * @throws {RequiredError}
1441
+ */
1442
+ export async function KnowledgeAi_UpsertOrgDocument(axios, basePath, requestParameters, options, configuration) {
1443
+ const localVarAxiosArgs = await KnowledgeAiAxiosParamCreator_UpsertOrgDocument(requestParameters.file, requestParameters.title, requestParameters.scopes, options || {}, configuration);
1444
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
1445
+ }
971
1446
  /**
972
1447
  * KnowledgeAi - object-oriented interface
973
1448
  * @export
@@ -986,6 +1461,17 @@ export class KnowledgeAi extends BaseAPI {
986
1461
  createDocument(requestParameters, options) {
987
1462
  return KnowledgeAi_CreateDocument(this.axios, this.basePath, requestParameters, options, this.configuration);
988
1463
  }
1464
+ /**
1465
+ * Upload a new org-scoped knowledge document.
1466
+ * @summary Upload Document Org
1467
+ * @param {KnowledgeAiCreateOrgDocumentRequest} requestParameters Request parameters.
1468
+ * @param {*} [options] Override http request option.
1469
+ * @throws {RequiredError}
1470
+ * @memberof KnowledgeAi
1471
+ */
1472
+ createOrgDocument(requestParameters, options) {
1473
+ return KnowledgeAi_CreateOrgDocument(this.axios, this.basePath, requestParameters, options, this.configuration);
1474
+ }
989
1475
  /**
990
1476
  * Delete a knowledge document and all its chunks.
991
1477
  * @summary Delete Document
@@ -997,6 +1483,17 @@ export class KnowledgeAi extends BaseAPI {
997
1483
  deleteDocument(requestParameters, options) {
998
1484
  return KnowledgeAi_DeleteDocument(this.axios, this.basePath, requestParameters, options, this.configuration);
999
1485
  }
1486
+ /**
1487
+ * Delete an org-scoped knowledge document and all its chunks.
1488
+ * @summary Delete Document Org
1489
+ * @param {KnowledgeAiDeleteOrgDocumentRequest} requestParameters Request parameters.
1490
+ * @param {*} [options] Override http request option.
1491
+ * @throws {RequiredError}
1492
+ * @memberof KnowledgeAi
1493
+ */
1494
+ deleteOrgDocument(requestParameters, options) {
1495
+ return KnowledgeAi_DeleteOrgDocument(this.axios, this.basePath, requestParameters, options, this.configuration);
1496
+ }
1000
1497
  /**
1001
1498
  * Download a knowledge document\'s raw file.
1002
1499
  * @summary Download Document
@@ -1008,6 +1505,17 @@ export class KnowledgeAi extends BaseAPI {
1008
1505
  downloadDocument(requestParameters, options) {
1009
1506
  return KnowledgeAi_DownloadDocument(this.axios, this.basePath, requestParameters, options, this.configuration);
1010
1507
  }
1508
+ /**
1509
+ * Download an org-scoped knowledge document\'s raw file.
1510
+ * @summary Download Document Org
1511
+ * @param {KnowledgeAiDownloadOrgDocumentRequest} requestParameters Request parameters.
1512
+ * @param {*} [options] Override http request option.
1513
+ * @throws {RequiredError}
1514
+ * @memberof KnowledgeAi
1515
+ */
1516
+ downloadOrgDocument(requestParameters, options) {
1517
+ return KnowledgeAi_DownloadOrgDocument(this.axios, this.basePath, requestParameters, options, this.configuration);
1518
+ }
1011
1519
  /**
1012
1520
  * Get a single knowledge document\'s metadata.
1013
1521
  * @summary Get Document
@@ -1019,6 +1527,17 @@ export class KnowledgeAi extends BaseAPI {
1019
1527
  getDocument(requestParameters, options) {
1020
1528
  return KnowledgeAi_GetDocument(this.axios, this.basePath, requestParameters, options, this.configuration);
1021
1529
  }
1530
+ /**
1531
+ * Get a single org-scoped knowledge document\'s metadata.
1532
+ * @summary Get Document Org
1533
+ * @param {KnowledgeAiGetOrgDocumentRequest} requestParameters Request parameters.
1534
+ * @param {*} [options] Override http request option.
1535
+ * @throws {RequiredError}
1536
+ * @memberof KnowledgeAi
1537
+ */
1538
+ getOrgDocument(requestParameters, options) {
1539
+ return KnowledgeAi_GetOrgDocument(this.axios, this.basePath, requestParameters, options, this.configuration);
1540
+ }
1022
1541
  /**
1023
1542
  * List knowledge documents accessible from the workspace.
1024
1543
  * @summary List Documents
@@ -1030,6 +1549,17 @@ export class KnowledgeAi extends BaseAPI {
1030
1549
  listDocuments(requestParameters, options) {
1031
1550
  return KnowledgeAi_ListDocuments(this.axios, this.basePath, requestParameters, options, this.configuration);
1032
1551
  }
1552
+ /**
1553
+ * List org-scoped knowledge documents.
1554
+ * @summary List Documents Org
1555
+ * @param {KnowledgeAiListOrgDocumentsRequest} requestParameters Request parameters.
1556
+ * @param {*} [options] Override http request option.
1557
+ * @throws {RequiredError}
1558
+ * @memberof KnowledgeAi
1559
+ */
1560
+ listOrgDocuments(requestParameters = {}, options) {
1561
+ return KnowledgeAi_ListOrgDocuments(this.axios, this.basePath, requestParameters, options, this.configuration);
1562
+ }
1033
1563
  /**
1034
1564
  * Patch a knowledge document\'s metadata without re-uploading content.
1035
1565
  * @summary Patch Document
@@ -1041,6 +1571,17 @@ export class KnowledgeAi extends BaseAPI {
1041
1571
  patchDocument(requestParameters, options) {
1042
1572
  return KnowledgeAi_PatchDocument(this.axios, this.basePath, requestParameters, options, this.configuration);
1043
1573
  }
1574
+ /**
1575
+ * Patch an org-scoped knowledge document\'s metadata.
1576
+ * @summary Patch Document Org
1577
+ * @param {KnowledgeAiPatchOrgDocumentRequest} requestParameters Request parameters.
1578
+ * @param {*} [options] Override http request option.
1579
+ * @throws {RequiredError}
1580
+ * @memberof KnowledgeAi
1581
+ */
1582
+ patchOrgDocument(requestParameters, options) {
1583
+ return KnowledgeAi_PatchOrgDocument(this.axios, this.basePath, requestParameters, options, this.configuration);
1584
+ }
1044
1585
  /**
1045
1586
  * Search the knowledge base using semantic similarity.
1046
1587
  * @summary Search Documents
@@ -1052,6 +1593,17 @@ export class KnowledgeAi extends BaseAPI {
1052
1593
  searchKnowledge(requestParameters, options) {
1053
1594
  return KnowledgeAi_SearchKnowledge(this.axios, this.basePath, requestParameters, options, this.configuration);
1054
1595
  }
1596
+ /**
1597
+ * Search org-scoped knowledge documents using semantic similarity.
1598
+ * @summary Search Documents Org
1599
+ * @param {KnowledgeAiSearchOrgKnowledgeRequest} requestParameters Request parameters.
1600
+ * @param {*} [options] Override http request option.
1601
+ * @throws {RequiredError}
1602
+ * @memberof KnowledgeAi
1603
+ */
1604
+ searchOrgKnowledge(requestParameters, options) {
1605
+ return KnowledgeAi_SearchOrgKnowledge(this.axios, this.basePath, requestParameters, options, this.configuration);
1606
+ }
1055
1607
  /**
1056
1608
  * Upload or replace a knowledge document.
1057
1609
  * @summary Upsert Document
@@ -1063,6 +1615,17 @@ export class KnowledgeAi extends BaseAPI {
1063
1615
  upsertDocument(requestParameters, options) {
1064
1616
  return KnowledgeAi_UpsertDocument(this.axios, this.basePath, requestParameters, options, this.configuration);
1065
1617
  }
1618
+ /**
1619
+ * Upload or replace an org-scoped knowledge document.
1620
+ * @summary Upsert Document Org
1621
+ * @param {KnowledgeAiUpsertOrgDocumentRequest} requestParameters Request parameters.
1622
+ * @param {*} [options] Override http request option.
1623
+ * @throws {RequiredError}
1624
+ * @memberof KnowledgeAi
1625
+ */
1626
+ upsertOrgDocument(requestParameters, options) {
1627
+ return KnowledgeAi_UpsertOrgDocument(this.axios, this.basePath, requestParameters, options, this.configuration);
1628
+ }
1066
1629
  }
1067
1630
  // MessagesAi FP - MessagesAiAxiosParamCreator
1068
1631
  /**