@openfilz-sdk/typescript-ee 1.13.4 → 1.14.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (122) hide show
  1. package/.openapi-generator/FILES +26 -0
  2. package/.openapi-generator/openfilz-api-generate-typescript-sdk.sha256 +1 -1
  3. package/README.md +33 -2
  4. package/api/metadata-key-controller-api.ts +121 -0
  5. package/api/sharing-policy-api.ts +1471 -0
  6. package/api/team-administration-api.ts +133 -0
  7. package/api.ts +3 -0
  8. package/dist/api/metadata-key-controller-api.d.ts +63 -0
  9. package/dist/api/metadata-key-controller-api.js +125 -0
  10. package/dist/api/sharing-policy-api.d.ts +662 -0
  11. package/dist/api/sharing-policy-api.js +1399 -0
  12. package/dist/api/team-administration-api.d.ts +70 -0
  13. package/dist/api/team-administration-api.js +139 -0
  14. package/dist/api.d.ts +3 -0
  15. package/dist/api.js +3 -0
  16. package/dist/esm/api/metadata-key-controller-api.d.ts +63 -0
  17. package/dist/esm/api/metadata-key-controller-api.js +118 -0
  18. package/dist/esm/api/sharing-policy-api.d.ts +662 -0
  19. package/dist/esm/api/sharing-policy-api.js +1392 -0
  20. package/dist/esm/api/team-administration-api.d.ts +70 -0
  21. package/dist/esm/api/team-administration-api.js +132 -0
  22. package/dist/esm/api.d.ts +3 -0
  23. package/dist/esm/api.js +3 -0
  24. package/dist/esm/models/effective-policy.d.ts +31 -0
  25. package/dist/esm/models/effective-policy.js +24 -0
  26. package/dist/esm/models/enriched-audit-log.d.ts +2 -0
  27. package/dist/esm/models/enriched-audit-log.js +2 -0
  28. package/dist/esm/models/global-policy.d.ts +26 -0
  29. package/dist/esm/models/global-policy.js +19 -0
  30. package/dist/esm/models/index.d.ts +10 -0
  31. package/dist/esm/models/index.js +10 -0
  32. package/dist/esm/models/item.d.ts +1 -7
  33. package/dist/esm/models/metadata-key-suggestion.d.ts +24 -0
  34. package/dist/esm/models/metadata-key-suggestion.js +14 -0
  35. package/dist/esm/models/my-policy.d.ts +30 -0
  36. package/dist/esm/models/my-policy.js +24 -0
  37. package/dist/esm/models/notification-dto.d.ts +1 -0
  38. package/dist/esm/models/notification-dto.js +1 -0
  39. package/dist/esm/models/override-request.d.ts +21 -0
  40. package/dist/esm/models/override-request.js +19 -0
  41. package/dist/esm/models/override-view.d.ts +27 -0
  42. package/dist/esm/models/override-view.js +19 -0
  43. package/dist/esm/models/revoke-request.d.ts +16 -0
  44. package/dist/esm/models/revoke-request.js +14 -0
  45. package/dist/esm/models/revoke-result.d.ts +18 -0
  46. package/dist/esm/models/revoke-result.js +14 -0
  47. package/dist/esm/models/search-by-audit-log-request.d.ts +2 -0
  48. package/dist/esm/models/search-by-audit-log-request.js +2 -0
  49. package/dist/esm/models/search-by-metadata-request.d.ts +1 -1
  50. package/dist/esm/models/share-result-error.d.ts +6 -0
  51. package/dist/esm/models/share-result-error.js +6 -0
  52. package/dist/esm/models/violation.d.ts +41 -0
  53. package/dist/esm/models/violation.js +28 -0
  54. package/dist/esm/models/violations-response.d.ts +17 -0
  55. package/dist/esm/models/violations-response.js +14 -0
  56. package/dist/models/effective-policy.d.ts +31 -0
  57. package/dist/models/effective-policy.js +27 -0
  58. package/dist/models/enriched-audit-log.d.ts +2 -0
  59. package/dist/models/enriched-audit-log.js +2 -0
  60. package/dist/models/global-policy.d.ts +26 -0
  61. package/dist/models/global-policy.js +22 -0
  62. package/dist/models/index.d.ts +10 -0
  63. package/dist/models/index.js +10 -0
  64. package/dist/models/item.d.ts +1 -7
  65. package/dist/models/metadata-key-suggestion.d.ts +24 -0
  66. package/dist/models/metadata-key-suggestion.js +15 -0
  67. package/dist/models/my-policy.d.ts +30 -0
  68. package/dist/models/my-policy.js +27 -0
  69. package/dist/models/notification-dto.d.ts +1 -0
  70. package/dist/models/notification-dto.js +1 -0
  71. package/dist/models/override-request.d.ts +21 -0
  72. package/dist/models/override-request.js +22 -0
  73. package/dist/models/override-view.d.ts +27 -0
  74. package/dist/models/override-view.js +22 -0
  75. package/dist/models/revoke-request.d.ts +16 -0
  76. package/dist/models/revoke-request.js +15 -0
  77. package/dist/models/revoke-result.d.ts +18 -0
  78. package/dist/models/revoke-result.js +15 -0
  79. package/dist/models/search-by-audit-log-request.d.ts +2 -0
  80. package/dist/models/search-by-audit-log-request.js +2 -0
  81. package/dist/models/search-by-metadata-request.d.ts +1 -1
  82. package/dist/models/share-result-error.d.ts +6 -0
  83. package/dist/models/share-result-error.js +6 -0
  84. package/dist/models/violation.d.ts +41 -0
  85. package/dist/models/violation.js +31 -0
  86. package/dist/models/violations-response.d.ts +17 -0
  87. package/dist/models/violations-response.js +15 -0
  88. package/docs/EffectivePolicy.md +28 -0
  89. package/docs/GlobalPolicy.md +30 -0
  90. package/docs/Item.md +2 -14
  91. package/docs/MetadataKeyControllerApi.md +52 -0
  92. package/docs/MetadataKeySuggestion.md +23 -0
  93. package/docs/MyPolicy.md +26 -0
  94. package/docs/OverrideRequest.md +20 -0
  95. package/docs/OverrideView.md +32 -0
  96. package/docs/RevokeRequest.md +22 -0
  97. package/docs/RevokeResult.md +28 -0
  98. package/docs/SearchByMetadataRequest.md +1 -1
  99. package/docs/SharingPolicyApi.md +988 -0
  100. package/docs/TeamAdministrationApi.md +62 -0
  101. package/docs/Violation.md +42 -0
  102. package/docs/ViolationsResponse.md +24 -0
  103. package/graphql/document.graphqls +2 -2
  104. package/graphql/share.graphqls +2 -0
  105. package/models/effective-policy.ts +41 -0
  106. package/models/enriched-audit-log.ts +2 -0
  107. package/models/global-policy.ts +35 -0
  108. package/models/index.ts +10 -0
  109. package/models/item.ts +1 -7
  110. package/models/metadata-key-suggestion.ts +30 -0
  111. package/models/my-policy.ts +40 -0
  112. package/models/notification-dto.ts +1 -0
  113. package/models/override-request.ts +30 -0
  114. package/models/override-view.ts +36 -0
  115. package/models/revoke-request.ts +24 -0
  116. package/models/revoke-result.ts +24 -0
  117. package/models/search-by-audit-log-request.ts +2 -0
  118. package/models/search-by-metadata-request.ts +1 -1
  119. package/models/share-result-error.ts +6 -0
  120. package/models/violation.ts +50 -0
  121. package/models/violations-response.ts +25 -0
  122. package/package.json +1 -1
@@ -0,0 +1,133 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * openfilz-api
5
+ * API for Document Management System
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import type { Configuration } from '../configuration';
17
+ import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
18
+ import globalAxios from 'axios';
19
+ // Some imports not used depending on template conditions
20
+ // @ts-ignore
21
+ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction, replaceWithSerializableTypeIfNeeded } from '../common';
22
+ // @ts-ignore
23
+ import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
24
+ /**
25
+ * TeamAdministrationApi - axios parameter creator
26
+ */
27
+ export const TeamAdministrationApiAxiosParamCreator = function (configuration?: Configuration) {
28
+ return {
29
+ /**
30
+ * Idempotent for existing members. 409 TEAM_MEMBER_EXTERNAL (counts of members, owners and documents) when documents shared with the team may not be shared with a new member under the sharing policy.
31
+ * @summary Add members to a team
32
+ * @param {string} teamId
33
+ * @param {Array<string>} requestBody
34
+ * @param {*} [options] Override http request option.
35
+ * @throws {RequiredError}
36
+ */
37
+ adminAddTeamMembers: async (teamId: string, requestBody: Array<string>, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
38
+ // verify required parameter 'teamId' is not null or undefined
39
+ assertParamExists('adminAddTeamMembers', 'teamId', teamId)
40
+ // verify required parameter 'requestBody' is not null or undefined
41
+ assertParamExists('adminAddTeamMembers', 'requestBody', requestBody)
42
+ const localVarPath = `/api/v1/admin/teams/{teamId}/members`
43
+ .replace('{teamId}', encodeURIComponent(String(teamId)));
44
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
45
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
46
+ let baseOptions;
47
+ if (configuration) {
48
+ baseOptions = configuration.baseOptions;
49
+ }
50
+
51
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
52
+ const localVarHeaderParameter = {} as any;
53
+ const localVarQueryParameter = {} as any;
54
+
55
+ // authentication keycloak_auth required
56
+ // http bearer authentication required
57
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
58
+
59
+ localVarHeaderParameter['Content-Type'] = 'application/json';
60
+
61
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
62
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
63
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
64
+ localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration)
65
+
66
+ return {
67
+ url: toPathString(localVarUrlObj),
68
+ options: localVarRequestOptions,
69
+ };
70
+ },
71
+ }
72
+ };
73
+
74
+ /**
75
+ * TeamAdministrationApi - functional programming interface
76
+ */
77
+ export const TeamAdministrationApiFp = function(configuration?: Configuration) {
78
+ const localVarAxiosParamCreator = TeamAdministrationApiAxiosParamCreator(configuration)
79
+ return {
80
+ /**
81
+ * Idempotent for existing members. 409 TEAM_MEMBER_EXTERNAL (counts of members, owners and documents) when documents shared with the team may not be shared with a new member under the sharing policy.
82
+ * @summary Add members to a team
83
+ * @param {string} teamId
84
+ * @param {Array<string>} requestBody
85
+ * @param {*} [options] Override http request option.
86
+ * @throws {RequiredError}
87
+ */
88
+ async adminAddTeamMembers(teamId: string, requestBody: Array<string>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
89
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminAddTeamMembers(teamId, requestBody, options);
90
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
91
+ const localVarOperationServerBasePath = operationServerMap['TeamAdministrationApi.adminAddTeamMembers']?.[localVarOperationServerIndex]?.url;
92
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
93
+ },
94
+ }
95
+ };
96
+
97
+ /**
98
+ * TeamAdministrationApi - factory interface
99
+ */
100
+ export const TeamAdministrationApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
101
+ const localVarFp = TeamAdministrationApiFp(configuration)
102
+ return {
103
+ /**
104
+ * Idempotent for existing members. 409 TEAM_MEMBER_EXTERNAL (counts of members, owners and documents) when documents shared with the team may not be shared with a new member under the sharing policy.
105
+ * @summary Add members to a team
106
+ * @param {string} teamId
107
+ * @param {Array<string>} requestBody
108
+ * @param {*} [options] Override http request option.
109
+ * @throws {RequiredError}
110
+ */
111
+ adminAddTeamMembers(teamId: string, requestBody: Array<string>, options?: RawAxiosRequestConfig): AxiosPromise<void> {
112
+ return localVarFp.adminAddTeamMembers(teamId, requestBody, options).then((request) => request(axios, basePath));
113
+ },
114
+ };
115
+ };
116
+
117
+ /**
118
+ * TeamAdministrationApi - object-oriented interface
119
+ */
120
+ export class TeamAdministrationApi extends BaseAPI {
121
+ /**
122
+ * Idempotent for existing members. 409 TEAM_MEMBER_EXTERNAL (counts of members, owners and documents) when documents shared with the team may not be shared with a new member under the sharing policy.
123
+ * @summary Add members to a team
124
+ * @param {string} teamId
125
+ * @param {Array<string>} requestBody
126
+ * @param {*} [options] Override http request option.
127
+ * @throws {RequiredError}
128
+ */
129
+ public adminAddTeamMembers(teamId: string, requestBody: Array<string>, options?: RawAxiosRequestConfig) {
130
+ return TeamAdministrationApiFp(this.configuration).adminAddTeamMembers(teamId, requestBody, options).then((request) => request(this.axios, this.basePath));
131
+ }
132
+ }
133
+
package/api.ts CHANGED
@@ -49,6 +49,7 @@ export * from './api/file-controller-api';
49
49
  export * from './api/folder-controller-api';
50
50
  export * from './api/mcp-discovery-controller-api';
51
51
  export * from './api/mcp-token-admin-controller-api';
52
+ export * from './api/metadata-key-controller-api';
52
53
  export * from './api/notifications-api';
53
54
  export * from './api/organisation-settings-api';
54
55
  export * from './api/ownership-api';
@@ -60,8 +61,10 @@ export * from './api/scanner-proxy-api';
60
61
  export * from './api/search-administration-api';
61
62
  export * from './api/settings-api';
62
63
  export * from './api/sharing-api';
64
+ export * from './api/sharing-policy-api';
63
65
  export * from './api/smart-filing-api';
64
66
  export * from './api/storage-encryption-administration-api';
67
+ export * from './api/team-administration-api';
65
68
  export * from './api/tus-controller-api';
66
69
  export * from './api/upload-token-controller-api';
67
70
  export * from './api/user-privacy-api';
@@ -0,0 +1,63 @@
1
+ /**
2
+ * openfilz-api
3
+ * API for Document Management System
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { Configuration } from '../configuration';
13
+ import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
+ import { type RequestArgs, BaseAPI } from '../base';
15
+ import type { MetadataKeySuggestion } from '../models';
16
+ /**
17
+ * MetadataKeyControllerApi - axios parameter creator
18
+ */
19
+ export declare const MetadataKeyControllerApiAxiosParamCreator: (configuration?: Configuration) => {
20
+ /**
21
+ * Metadata keys found on the documents the caller can see, most frequent first, with the number of documents carrying each (at most 200). Meant for autocompletion of the metadata search filter: the list is cached for a short time and is empty when it cannot be computed in time. 404 when key suggestions are disabled.
22
+ * @summary List metadata keys
23
+ * @param {*} [options] Override http request option.
24
+ * @throws {RequiredError}
25
+ */
26
+ listMetadataKeys: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
27
+ };
28
+ /**
29
+ * MetadataKeyControllerApi - functional programming interface
30
+ */
31
+ export declare const MetadataKeyControllerApiFp: (configuration?: Configuration) => {
32
+ /**
33
+ * Metadata keys found on the documents the caller can see, most frequent first, with the number of documents carrying each (at most 200). Meant for autocompletion of the metadata search filter: the list is cached for a short time and is empty when it cannot be computed in time. 404 when key suggestions are disabled.
34
+ * @summary List metadata keys
35
+ * @param {*} [options] Override http request option.
36
+ * @throws {RequiredError}
37
+ */
38
+ listMetadataKeys(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<MetadataKeySuggestion>>>;
39
+ };
40
+ /**
41
+ * MetadataKeyControllerApi - factory interface
42
+ */
43
+ export declare const MetadataKeyControllerApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
44
+ /**
45
+ * Metadata keys found on the documents the caller can see, most frequent first, with the number of documents carrying each (at most 200). Meant for autocompletion of the metadata search filter: the list is cached for a short time and is empty when it cannot be computed in time. 404 when key suggestions are disabled.
46
+ * @summary List metadata keys
47
+ * @param {*} [options] Override http request option.
48
+ * @throws {RequiredError}
49
+ */
50
+ listMetadataKeys(options?: RawAxiosRequestConfig): AxiosPromise<Array<MetadataKeySuggestion>>;
51
+ };
52
+ /**
53
+ * MetadataKeyControllerApi - object-oriented interface
54
+ */
55
+ export declare class MetadataKeyControllerApi extends BaseAPI {
56
+ /**
57
+ * Metadata keys found on the documents the caller can see, most frequent first, with the number of documents carrying each (at most 200). Meant for autocompletion of the metadata search filter: the list is cached for a short time and is empty when it cannot be computed in time. 404 when key suggestions are disabled.
58
+ * @summary List metadata keys
59
+ * @param {*} [options] Override http request option.
60
+ * @throws {RequiredError}
61
+ */
62
+ listMetadataKeys(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<MetadataKeySuggestion[], any, {}, any>>;
63
+ }
@@ -0,0 +1,125 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * openfilz-api
6
+ * API for Document Management System
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
16
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
17
+ return new (P || (P = Promise))(function (resolve, reject) {
18
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
19
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
20
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
21
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
22
+ });
23
+ };
24
+ Object.defineProperty(exports, "__esModule", { value: true });
25
+ exports.MetadataKeyControllerApi = exports.MetadataKeyControllerApiFactory = exports.MetadataKeyControllerApiFp = exports.MetadataKeyControllerApiAxiosParamCreator = void 0;
26
+ const axios_1 = require("axios");
27
+ // Some imports not used depending on template conditions
28
+ // @ts-ignore
29
+ const common_1 = require("../common");
30
+ // @ts-ignore
31
+ const base_1 = require("../base");
32
+ /**
33
+ * MetadataKeyControllerApi - axios parameter creator
34
+ */
35
+ const MetadataKeyControllerApiAxiosParamCreator = function (configuration) {
36
+ return {
37
+ /**
38
+ * Metadata keys found on the documents the caller can see, most frequent first, with the number of documents carrying each (at most 200). Meant for autocompletion of the metadata search filter: the list is cached for a short time and is empty when it cannot be computed in time. 404 when key suggestions are disabled.
39
+ * @summary List metadata keys
40
+ * @param {*} [options] Override http request option.
41
+ * @throws {RequiredError}
42
+ */
43
+ listMetadataKeys: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
44
+ const localVarPath = `/api/v1/documents/metadata-keys`;
45
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
46
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
47
+ let baseOptions;
48
+ if (configuration) {
49
+ baseOptions = configuration.baseOptions;
50
+ }
51
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
52
+ const localVarHeaderParameter = {};
53
+ const localVarQueryParameter = {};
54
+ // authentication keycloak_auth required
55
+ // http bearer authentication required
56
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
57
+ localVarHeaderParameter['Accept'] = '*/*';
58
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
59
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
60
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
61
+ return {
62
+ url: (0, common_1.toPathString)(localVarUrlObj),
63
+ options: localVarRequestOptions,
64
+ };
65
+ }),
66
+ };
67
+ };
68
+ exports.MetadataKeyControllerApiAxiosParamCreator = MetadataKeyControllerApiAxiosParamCreator;
69
+ /**
70
+ * MetadataKeyControllerApi - functional programming interface
71
+ */
72
+ const MetadataKeyControllerApiFp = function (configuration) {
73
+ const localVarAxiosParamCreator = (0, exports.MetadataKeyControllerApiAxiosParamCreator)(configuration);
74
+ return {
75
+ /**
76
+ * Metadata keys found on the documents the caller can see, most frequent first, with the number of documents carrying each (at most 200). Meant for autocompletion of the metadata search filter: the list is cached for a short time and is empty when it cannot be computed in time. 404 when key suggestions are disabled.
77
+ * @summary List metadata keys
78
+ * @param {*} [options] Override http request option.
79
+ * @throws {RequiredError}
80
+ */
81
+ listMetadataKeys(options) {
82
+ return __awaiter(this, void 0, void 0, function* () {
83
+ var _a, _b, _c;
84
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listMetadataKeys(options);
85
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
86
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['MetadataKeyControllerApi.listMetadataKeys']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
87
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
88
+ });
89
+ },
90
+ };
91
+ };
92
+ exports.MetadataKeyControllerApiFp = MetadataKeyControllerApiFp;
93
+ /**
94
+ * MetadataKeyControllerApi - factory interface
95
+ */
96
+ const MetadataKeyControllerApiFactory = function (configuration, basePath, axios) {
97
+ const localVarFp = (0, exports.MetadataKeyControllerApiFp)(configuration);
98
+ return {
99
+ /**
100
+ * Metadata keys found on the documents the caller can see, most frequent first, with the number of documents carrying each (at most 200). Meant for autocompletion of the metadata search filter: the list is cached for a short time and is empty when it cannot be computed in time. 404 when key suggestions are disabled.
101
+ * @summary List metadata keys
102
+ * @param {*} [options] Override http request option.
103
+ * @throws {RequiredError}
104
+ */
105
+ listMetadataKeys(options) {
106
+ return localVarFp.listMetadataKeys(options).then((request) => request(axios, basePath));
107
+ },
108
+ };
109
+ };
110
+ exports.MetadataKeyControllerApiFactory = MetadataKeyControllerApiFactory;
111
+ /**
112
+ * MetadataKeyControllerApi - object-oriented interface
113
+ */
114
+ class MetadataKeyControllerApi extends base_1.BaseAPI {
115
+ /**
116
+ * Metadata keys found on the documents the caller can see, most frequent first, with the number of documents carrying each (at most 200). Meant for autocompletion of the metadata search filter: the list is cached for a short time and is empty when it cannot be computed in time. 404 when key suggestions are disabled.
117
+ * @summary List metadata keys
118
+ * @param {*} [options] Override http request option.
119
+ * @throws {RequiredError}
120
+ */
121
+ listMetadataKeys(options) {
122
+ return (0, exports.MetadataKeyControllerApiFp)(this.configuration).listMetadataKeys(options).then((request) => request(this.axios, this.basePath));
123
+ }
124
+ }
125
+ exports.MetadataKeyControllerApi = MetadataKeyControllerApi;