@knowledge-stack/ksapi 1.40.1 → 1.42.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 (133) hide show
  1. package/.openapi-generator/FILES +8 -0
  2. package/README.md +18 -9
  3. package/dist/apis/ApiKeysApi.d.ts +187 -0
  4. package/dist/apis/ApiKeysApi.js +193 -0
  5. package/dist/apis/AuthApi.d.ts +6 -0
  6. package/dist/apis/AuthApi.js +6 -0
  7. package/dist/apis/ChunkLineagesApi.d.ts +9 -0
  8. package/dist/apis/ChunkLineagesApi.js +9 -0
  9. package/dist/apis/ChunksApi.d.ts +24 -0
  10. package/dist/apis/ChunksApi.js +24 -0
  11. package/dist/apis/DocumentVersionsApi.d.ts +21 -0
  12. package/dist/apis/DocumentVersionsApi.js +21 -0
  13. package/dist/apis/DocumentsApi.d.ts +21 -0
  14. package/dist/apis/DocumentsApi.js +21 -0
  15. package/dist/apis/FoldersApi.d.ts +21 -0
  16. package/dist/apis/FoldersApi.js +21 -0
  17. package/dist/apis/InvitesApi.d.ts +12 -0
  18. package/dist/apis/InvitesApi.js +12 -0
  19. package/dist/apis/PathPartsApi.d.ts +18 -0
  20. package/dist/apis/PathPartsApi.js +18 -0
  21. package/dist/apis/SectionsApi.d.ts +12 -0
  22. package/dist/apis/SectionsApi.js +12 -0
  23. package/dist/apis/TagsApi.d.ts +15 -0
  24. package/dist/apis/TagsApi.js +15 -0
  25. package/dist/apis/TenantsApi.d.ts +24 -0
  26. package/dist/apis/TenantsApi.js +24 -0
  27. package/dist/apis/ThreadMessagesApi.d.ts +9 -0
  28. package/dist/apis/ThreadMessagesApi.js +9 -0
  29. package/dist/apis/ThreadsApi.d.ts +21 -0
  30. package/dist/apis/ThreadsApi.js +21 -0
  31. package/dist/apis/UserPermissionsApi.d.ts +12 -0
  32. package/dist/apis/UserPermissionsApi.js +12 -0
  33. package/dist/apis/UsersApi.d.ts +6 -0
  34. package/dist/apis/UsersApi.js +6 -0
  35. package/dist/apis/WorkflowsApi.d.ts +9 -0
  36. package/dist/apis/WorkflowsApi.js +9 -0
  37. package/dist/apis/index.d.ts +1 -0
  38. package/dist/apis/index.js +1 -0
  39. package/dist/esm/apis/ApiKeysApi.d.ts +187 -0
  40. package/dist/esm/apis/ApiKeysApi.js +189 -0
  41. package/dist/esm/apis/AuthApi.d.ts +6 -0
  42. package/dist/esm/apis/AuthApi.js +6 -0
  43. package/dist/esm/apis/ChunkLineagesApi.d.ts +9 -0
  44. package/dist/esm/apis/ChunkLineagesApi.js +9 -0
  45. package/dist/esm/apis/ChunksApi.d.ts +24 -0
  46. package/dist/esm/apis/ChunksApi.js +24 -0
  47. package/dist/esm/apis/DocumentVersionsApi.d.ts +21 -0
  48. package/dist/esm/apis/DocumentVersionsApi.js +21 -0
  49. package/dist/esm/apis/DocumentsApi.d.ts +21 -0
  50. package/dist/esm/apis/DocumentsApi.js +21 -0
  51. package/dist/esm/apis/FoldersApi.d.ts +21 -0
  52. package/dist/esm/apis/FoldersApi.js +21 -0
  53. package/dist/esm/apis/InvitesApi.d.ts +12 -0
  54. package/dist/esm/apis/InvitesApi.js +12 -0
  55. package/dist/esm/apis/PathPartsApi.d.ts +18 -0
  56. package/dist/esm/apis/PathPartsApi.js +18 -0
  57. package/dist/esm/apis/SectionsApi.d.ts +12 -0
  58. package/dist/esm/apis/SectionsApi.js +12 -0
  59. package/dist/esm/apis/TagsApi.d.ts +15 -0
  60. package/dist/esm/apis/TagsApi.js +15 -0
  61. package/dist/esm/apis/TenantsApi.d.ts +24 -0
  62. package/dist/esm/apis/TenantsApi.js +24 -0
  63. package/dist/esm/apis/ThreadMessagesApi.d.ts +9 -0
  64. package/dist/esm/apis/ThreadMessagesApi.js +9 -0
  65. package/dist/esm/apis/ThreadsApi.d.ts +21 -0
  66. package/dist/esm/apis/ThreadsApi.js +21 -0
  67. package/dist/esm/apis/UserPermissionsApi.d.ts +12 -0
  68. package/dist/esm/apis/UserPermissionsApi.js +12 -0
  69. package/dist/esm/apis/UsersApi.d.ts +6 -0
  70. package/dist/esm/apis/UsersApi.js +6 -0
  71. package/dist/esm/apis/WorkflowsApi.d.ts +9 -0
  72. package/dist/esm/apis/WorkflowsApi.js +9 -0
  73. package/dist/esm/apis/index.d.ts +1 -0
  74. package/dist/esm/apis/index.js +1 -0
  75. package/dist/esm/models/ApiKeyResponse.d.ts +65 -0
  76. package/dist/esm/models/ApiKeyResponse.js +56 -0
  77. package/dist/esm/models/CreateApiKeyRequest.d.ts +47 -0
  78. package/dist/esm/models/CreateApiKeyRequest.js +49 -0
  79. package/dist/esm/models/CreateApiKeyResponse.d.ts +71 -0
  80. package/dist/esm/models/CreateApiKeyResponse.js +60 -0
  81. package/dist/esm/models/index.d.ts +3 -0
  82. package/dist/esm/models/index.js +3 -0
  83. package/dist/models/ApiKeyResponse.d.ts +65 -0
  84. package/dist/models/ApiKeyResponse.js +64 -0
  85. package/dist/models/CreateApiKeyRequest.d.ts +47 -0
  86. package/dist/models/CreateApiKeyRequest.js +57 -0
  87. package/dist/models/CreateApiKeyResponse.d.ts +71 -0
  88. package/dist/models/CreateApiKeyResponse.js +68 -0
  89. package/dist/models/index.d.ts +3 -0
  90. package/dist/models/index.js +3 -0
  91. package/docs/ApiKeyResponse.md +41 -0
  92. package/docs/ApiKeysApi.md +293 -0
  93. package/docs/AuthApi.md +8 -2
  94. package/docs/ChunkLineagesApi.md +12 -3
  95. package/docs/ChunksApi.md +32 -8
  96. package/docs/CreateApiKeyRequest.md +35 -0
  97. package/docs/CreateApiKeyResponse.md +43 -0
  98. package/docs/DocumentVersionsApi.md +28 -7
  99. package/docs/DocumentsApi.md +28 -7
  100. package/docs/FoldersApi.md +28 -7
  101. package/docs/InvitesApi.md +16 -4
  102. package/docs/PathPartsApi.md +24 -6
  103. package/docs/SectionsApi.md +16 -4
  104. package/docs/TagsApi.md +20 -5
  105. package/docs/TenantsApi.md +32 -8
  106. package/docs/ThreadMessagesApi.md +12 -3
  107. package/docs/ThreadsApi.md +28 -7
  108. package/docs/UserPermissionsApi.md +16 -4
  109. package/docs/UsersApi.md +8 -2
  110. package/docs/WorkflowsApi.md +12 -3
  111. package/package.json +1 -1
  112. package/src/apis/ApiKeysApi.ts +350 -0
  113. package/src/apis/AuthApi.ts +14 -0
  114. package/src/apis/ChunkLineagesApi.ts +21 -0
  115. package/src/apis/ChunksApi.ts +56 -0
  116. package/src/apis/DocumentVersionsApi.ts +49 -0
  117. package/src/apis/DocumentsApi.ts +49 -0
  118. package/src/apis/FoldersApi.ts +49 -0
  119. package/src/apis/InvitesApi.ts +28 -0
  120. package/src/apis/PathPartsApi.ts +42 -0
  121. package/src/apis/SectionsApi.ts +28 -0
  122. package/src/apis/TagsApi.ts +35 -0
  123. package/src/apis/TenantsApi.ts +56 -0
  124. package/src/apis/ThreadMessagesApi.ts +21 -0
  125. package/src/apis/ThreadsApi.ts +49 -0
  126. package/src/apis/UserPermissionsApi.ts +28 -0
  127. package/src/apis/UsersApi.ts +14 -0
  128. package/src/apis/WorkflowsApi.ts +21 -0
  129. package/src/apis/index.ts +1 -0
  130. package/src/models/ApiKeyResponse.ts +110 -0
  131. package/src/models/CreateApiKeyRequest.ts +87 -0
  132. package/src/models/CreateApiKeyResponse.ts +119 -0
  133. package/src/models/index.ts +3 -0
@@ -0,0 +1,187 @@
1
+ /**
2
+ * Knowledge Stack API
3
+ * Knowledge Stack backend API for authentication and knowledge management
4
+ *
5
+ * The version of the OpenAPI document: 0.1.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 * as runtime from '../runtime';
13
+ import type { ApiKeyResponse, CreateApiKeyRequest, CreateApiKeyResponse } from '../models/index';
14
+ export interface CreateApiKeyOperationRequest {
15
+ createApiKeyRequest: CreateApiKeyRequest;
16
+ ksUat?: string | null;
17
+ }
18
+ export interface DeleteApiKeyRequest {
19
+ apiKeyId: string;
20
+ ksUat?: string | null;
21
+ }
22
+ export interface GetApiKeyRequest {
23
+ apiKeyId: string;
24
+ ksUat?: string | null;
25
+ }
26
+ export interface ListApiKeysRequest {
27
+ ksUat?: string | null;
28
+ }
29
+ /**
30
+ * ApiKeysApi - interface
31
+ *
32
+ * @export
33
+ * @interface ApiKeysApiInterface
34
+ */
35
+ export interface ApiKeysApiInterface {
36
+ /**
37
+ * Creates request options for createApiKey without sending the request
38
+ * @param {CreateApiKeyRequest} createApiKeyRequest
39
+ * @param {string} [ksUat]
40
+ * @throws {RequiredError}
41
+ * @memberof ApiKeysApiInterface
42
+ */
43
+ createApiKeyRequestOpts(requestParameters: CreateApiKeyOperationRequest): Promise<runtime.RequestOpts>;
44
+ /**
45
+ * Create a new API key. The full key is returned only once.
46
+ * @summary Create Api Key Handler
47
+ * @param {CreateApiKeyRequest} createApiKeyRequest
48
+ * @param {string} [ksUat]
49
+ * @param {*} [options] Override http request option.
50
+ * @throws {RequiredError}
51
+ * @memberof ApiKeysApiInterface
52
+ */
53
+ createApiKeyRaw(requestParameters: CreateApiKeyOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateApiKeyResponse>>;
54
+ /**
55
+ * Create a new API key. The full key is returned only once.
56
+ * Create Api Key Handler
57
+ */
58
+ createApiKey(requestParameters: CreateApiKeyOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateApiKeyResponse>;
59
+ /**
60
+ * Creates request options for deleteApiKey without sending the request
61
+ * @param {string} apiKeyId
62
+ * @param {string} [ksUat]
63
+ * @throws {RequiredError}
64
+ * @memberof ApiKeysApiInterface
65
+ */
66
+ deleteApiKeyRequestOpts(requestParameters: DeleteApiKeyRequest): Promise<runtime.RequestOpts>;
67
+ /**
68
+ * Delete an API key.
69
+ * @summary Delete Api Key Handler
70
+ * @param {string} apiKeyId
71
+ * @param {string} [ksUat]
72
+ * @param {*} [options] Override http request option.
73
+ * @throws {RequiredError}
74
+ * @memberof ApiKeysApiInterface
75
+ */
76
+ deleteApiKeyRaw(requestParameters: DeleteApiKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
77
+ /**
78
+ * Delete an API key.
79
+ * Delete Api Key Handler
80
+ */
81
+ deleteApiKey(requestParameters: DeleteApiKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
82
+ /**
83
+ * Creates request options for getApiKey without sending the request
84
+ * @param {string} apiKeyId
85
+ * @param {string} [ksUat]
86
+ * @throws {RequiredError}
87
+ * @memberof ApiKeysApiInterface
88
+ */
89
+ getApiKeyRequestOpts(requestParameters: GetApiKeyRequest): Promise<runtime.RequestOpts>;
90
+ /**
91
+ * Get a single API key by ID.
92
+ * @summary Get Api Key Handler
93
+ * @param {string} apiKeyId
94
+ * @param {string} [ksUat]
95
+ * @param {*} [options] Override http request option.
96
+ * @throws {RequiredError}
97
+ * @memberof ApiKeysApiInterface
98
+ */
99
+ getApiKeyRaw(requestParameters: GetApiKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiKeyResponse>>;
100
+ /**
101
+ * Get a single API key by ID.
102
+ * Get Api Key Handler
103
+ */
104
+ getApiKey(requestParameters: GetApiKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiKeyResponse>;
105
+ /**
106
+ * Creates request options for listApiKeys without sending the request
107
+ * @param {string} [ksUat]
108
+ * @throws {RequiredError}
109
+ * @memberof ApiKeysApiInterface
110
+ */
111
+ listApiKeysRequestOpts(requestParameters: ListApiKeysRequest): Promise<runtime.RequestOpts>;
112
+ /**
113
+ * List all API keys for the current user.
114
+ * @summary List Api Keys Handler
115
+ * @param {string} [ksUat]
116
+ * @param {*} [options] Override http request option.
117
+ * @throws {RequiredError}
118
+ * @memberof ApiKeysApiInterface
119
+ */
120
+ listApiKeysRaw(requestParameters: ListApiKeysRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ApiKeyResponse>>>;
121
+ /**
122
+ * List all API keys for the current user.
123
+ * List Api Keys Handler
124
+ */
125
+ listApiKeys(requestParameters: ListApiKeysRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ApiKeyResponse>>;
126
+ }
127
+ /**
128
+ *
129
+ */
130
+ export declare class ApiKeysApi extends runtime.BaseAPI implements ApiKeysApiInterface {
131
+ /**
132
+ * Creates request options for createApiKey without sending the request
133
+ */
134
+ createApiKeyRequestOpts(requestParameters: CreateApiKeyOperationRequest): Promise<runtime.RequestOpts>;
135
+ /**
136
+ * Create a new API key. The full key is returned only once.
137
+ * Create Api Key Handler
138
+ */
139
+ createApiKeyRaw(requestParameters: CreateApiKeyOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateApiKeyResponse>>;
140
+ /**
141
+ * Create a new API key. The full key is returned only once.
142
+ * Create Api Key Handler
143
+ */
144
+ createApiKey(requestParameters: CreateApiKeyOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateApiKeyResponse>;
145
+ /**
146
+ * Creates request options for deleteApiKey without sending the request
147
+ */
148
+ deleteApiKeyRequestOpts(requestParameters: DeleteApiKeyRequest): Promise<runtime.RequestOpts>;
149
+ /**
150
+ * Delete an API key.
151
+ * Delete Api Key Handler
152
+ */
153
+ deleteApiKeyRaw(requestParameters: DeleteApiKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
154
+ /**
155
+ * Delete an API key.
156
+ * Delete Api Key Handler
157
+ */
158
+ deleteApiKey(requestParameters: DeleteApiKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
159
+ /**
160
+ * Creates request options for getApiKey without sending the request
161
+ */
162
+ getApiKeyRequestOpts(requestParameters: GetApiKeyRequest): Promise<runtime.RequestOpts>;
163
+ /**
164
+ * Get a single API key by ID.
165
+ * Get Api Key Handler
166
+ */
167
+ getApiKeyRaw(requestParameters: GetApiKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiKeyResponse>>;
168
+ /**
169
+ * Get a single API key by ID.
170
+ * Get Api Key Handler
171
+ */
172
+ getApiKey(requestParameters: GetApiKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiKeyResponse>;
173
+ /**
174
+ * Creates request options for listApiKeys without sending the request
175
+ */
176
+ listApiKeysRequestOpts(requestParameters: ListApiKeysRequest): Promise<runtime.RequestOpts>;
177
+ /**
178
+ * List all API keys for the current user.
179
+ * List Api Keys Handler
180
+ */
181
+ listApiKeysRaw(requestParameters: ListApiKeysRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ApiKeyResponse>>>;
182
+ /**
183
+ * List all API keys for the current user.
184
+ * List Api Keys Handler
185
+ */
186
+ listApiKeys(requestParameters?: ListApiKeysRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ApiKeyResponse>>;
187
+ }
@@ -0,0 +1,189 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Knowledge Stack API
5
+ * Knowledge Stack backend API for authentication and knowledge management
6
+ *
7
+ * The version of the OpenAPI document: 0.1.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
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16
+ return new (P || (P = Promise))(function (resolve, reject) {
17
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
21
+ });
22
+ };
23
+ import * as runtime from '../runtime';
24
+ import { ApiKeyResponseFromJSON, CreateApiKeyRequestToJSON, CreateApiKeyResponseFromJSON, } from '../models/index';
25
+ /**
26
+ *
27
+ */
28
+ export class ApiKeysApi extends runtime.BaseAPI {
29
+ /**
30
+ * Creates request options for createApiKey without sending the request
31
+ */
32
+ createApiKeyRequestOpts(requestParameters) {
33
+ return __awaiter(this, void 0, void 0, function* () {
34
+ if (requestParameters['createApiKeyRequest'] == null) {
35
+ throw new runtime.RequiredError('createApiKeyRequest', 'Required parameter "createApiKeyRequest" was null or undefined when calling createApiKey().');
36
+ }
37
+ const queryParameters = {};
38
+ const headerParameters = {};
39
+ headerParameters['Content-Type'] = 'application/json';
40
+ let urlPath = `/v1/api-keys`;
41
+ return {
42
+ path: urlPath,
43
+ method: 'POST',
44
+ headers: headerParameters,
45
+ query: queryParameters,
46
+ body: CreateApiKeyRequestToJSON(requestParameters['createApiKeyRequest']),
47
+ };
48
+ });
49
+ }
50
+ /**
51
+ * Create a new API key. The full key is returned only once.
52
+ * Create Api Key Handler
53
+ */
54
+ createApiKeyRaw(requestParameters, initOverrides) {
55
+ return __awaiter(this, void 0, void 0, function* () {
56
+ const requestOptions = yield this.createApiKeyRequestOpts(requestParameters);
57
+ const response = yield this.request(requestOptions, initOverrides);
58
+ return new runtime.JSONApiResponse(response, (jsonValue) => CreateApiKeyResponseFromJSON(jsonValue));
59
+ });
60
+ }
61
+ /**
62
+ * Create a new API key. The full key is returned only once.
63
+ * Create Api Key Handler
64
+ */
65
+ createApiKey(requestParameters, initOverrides) {
66
+ return __awaiter(this, void 0, void 0, function* () {
67
+ const response = yield this.createApiKeyRaw(requestParameters, initOverrides);
68
+ return yield response.value();
69
+ });
70
+ }
71
+ /**
72
+ * Creates request options for deleteApiKey without sending the request
73
+ */
74
+ deleteApiKeyRequestOpts(requestParameters) {
75
+ return __awaiter(this, void 0, void 0, function* () {
76
+ if (requestParameters['apiKeyId'] == null) {
77
+ throw new runtime.RequiredError('apiKeyId', 'Required parameter "apiKeyId" was null or undefined when calling deleteApiKey().');
78
+ }
79
+ const queryParameters = {};
80
+ const headerParameters = {};
81
+ let urlPath = `/v1/api-keys/{api_key_id}`;
82
+ urlPath = urlPath.replace(`{${"api_key_id"}}`, encodeURIComponent(String(requestParameters['apiKeyId'])));
83
+ return {
84
+ path: urlPath,
85
+ method: 'DELETE',
86
+ headers: headerParameters,
87
+ query: queryParameters,
88
+ };
89
+ });
90
+ }
91
+ /**
92
+ * Delete an API key.
93
+ * Delete Api Key Handler
94
+ */
95
+ deleteApiKeyRaw(requestParameters, initOverrides) {
96
+ return __awaiter(this, void 0, void 0, function* () {
97
+ const requestOptions = yield this.deleteApiKeyRequestOpts(requestParameters);
98
+ const response = yield this.request(requestOptions, initOverrides);
99
+ return new runtime.VoidApiResponse(response);
100
+ });
101
+ }
102
+ /**
103
+ * Delete an API key.
104
+ * Delete Api Key Handler
105
+ */
106
+ deleteApiKey(requestParameters, initOverrides) {
107
+ return __awaiter(this, void 0, void 0, function* () {
108
+ yield this.deleteApiKeyRaw(requestParameters, initOverrides);
109
+ });
110
+ }
111
+ /**
112
+ * Creates request options for getApiKey without sending the request
113
+ */
114
+ getApiKeyRequestOpts(requestParameters) {
115
+ return __awaiter(this, void 0, void 0, function* () {
116
+ if (requestParameters['apiKeyId'] == null) {
117
+ throw new runtime.RequiredError('apiKeyId', 'Required parameter "apiKeyId" was null or undefined when calling getApiKey().');
118
+ }
119
+ const queryParameters = {};
120
+ const headerParameters = {};
121
+ let urlPath = `/v1/api-keys/{api_key_id}`;
122
+ urlPath = urlPath.replace(`{${"api_key_id"}}`, encodeURIComponent(String(requestParameters['apiKeyId'])));
123
+ return {
124
+ path: urlPath,
125
+ method: 'GET',
126
+ headers: headerParameters,
127
+ query: queryParameters,
128
+ };
129
+ });
130
+ }
131
+ /**
132
+ * Get a single API key by ID.
133
+ * Get Api Key Handler
134
+ */
135
+ getApiKeyRaw(requestParameters, initOverrides) {
136
+ return __awaiter(this, void 0, void 0, function* () {
137
+ const requestOptions = yield this.getApiKeyRequestOpts(requestParameters);
138
+ const response = yield this.request(requestOptions, initOverrides);
139
+ return new runtime.JSONApiResponse(response, (jsonValue) => ApiKeyResponseFromJSON(jsonValue));
140
+ });
141
+ }
142
+ /**
143
+ * Get a single API key by ID.
144
+ * Get Api Key Handler
145
+ */
146
+ getApiKey(requestParameters, initOverrides) {
147
+ return __awaiter(this, void 0, void 0, function* () {
148
+ const response = yield this.getApiKeyRaw(requestParameters, initOverrides);
149
+ return yield response.value();
150
+ });
151
+ }
152
+ /**
153
+ * Creates request options for listApiKeys without sending the request
154
+ */
155
+ listApiKeysRequestOpts(requestParameters) {
156
+ return __awaiter(this, void 0, void 0, function* () {
157
+ const queryParameters = {};
158
+ const headerParameters = {};
159
+ let urlPath = `/v1/api-keys`;
160
+ return {
161
+ path: urlPath,
162
+ method: 'GET',
163
+ headers: headerParameters,
164
+ query: queryParameters,
165
+ };
166
+ });
167
+ }
168
+ /**
169
+ * List all API keys for the current user.
170
+ * List Api Keys Handler
171
+ */
172
+ listApiKeysRaw(requestParameters, initOverrides) {
173
+ return __awaiter(this, void 0, void 0, function* () {
174
+ const requestOptions = yield this.listApiKeysRequestOpts(requestParameters);
175
+ const response = yield this.request(requestOptions, initOverrides);
176
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ApiKeyResponseFromJSON));
177
+ });
178
+ }
179
+ /**
180
+ * List all API keys for the current user.
181
+ * List Api Keys Handler
182
+ */
183
+ listApiKeys() {
184
+ return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
185
+ const response = yield this.listApiKeysRaw(requestParameters, initOverrides);
186
+ return yield response.value();
187
+ });
188
+ }
189
+ }
@@ -34,10 +34,12 @@ export interface PwSigninRequest {
34
34
  }
35
35
  export interface RefreshUatRequest {
36
36
  tenantId?: string | null;
37
+ authorization?: string | null;
37
38
  ksUat?: string | null;
38
39
  }
39
40
  export interface ResetPasswordRequest {
40
41
  passwordResetRequest: PasswordResetRequest;
42
+ authorization?: string | null;
41
43
  ksUat?: string | null;
42
44
  }
43
45
  export interface ResetPasswordWithTokenRequest {
@@ -172,6 +174,7 @@ export interface AuthApiInterface {
172
174
  /**
173
175
  * Creates request options for refreshUat without sending the request
174
176
  * @param {string} [tenantId] Target tenant ID to switch to. None&#x3D;refresh current tenant
177
+ * @param {string} [authorization]
175
178
  * @param {string} [ksUat]
176
179
  * @throws {RequiredError}
177
180
  * @memberof AuthApiInterface
@@ -181,6 +184,7 @@ export interface AuthApiInterface {
181
184
  * Refresh or switch the user\'s active tenant token.
182
185
  * @summary Refresh Uat Handler
183
186
  * @param {string} [tenantId] Target tenant ID to switch to. None&#x3D;refresh current tenant
187
+ * @param {string} [authorization]
184
188
  * @param {string} [ksUat]
185
189
  * @param {*} [options] Override http request option.
186
190
  * @throws {RequiredError}
@@ -195,6 +199,7 @@ export interface AuthApiInterface {
195
199
  /**
196
200
  * Creates request options for resetPassword without sending the request
197
201
  * @param {PasswordResetRequest} passwordResetRequest
202
+ * @param {string} [authorization]
198
203
  * @param {string} [ksUat]
199
204
  * @throws {RequiredError}
200
205
  * @memberof AuthApiInterface
@@ -204,6 +209,7 @@ export interface AuthApiInterface {
204
209
  * Reset password for the authenticated user
205
210
  * @summary Reset Password Handler
206
211
  * @param {PasswordResetRequest} passwordResetRequest
212
+ * @param {string} [authorization]
207
213
  * @param {string} [ksUat]
208
214
  * @param {*} [options] Override http request option.
209
215
  * @throws {RequiredError}
@@ -264,6 +264,9 @@ export class AuthApi extends runtime.BaseAPI {
264
264
  queryParameters['tenant_id'] = requestParameters['tenantId'];
265
265
  }
266
266
  const headerParameters = {};
267
+ if (requestParameters['authorization'] != null) {
268
+ headerParameters['authorization'] = String(requestParameters['authorization']);
269
+ }
267
270
  let urlPath = `/v1/auth/uat`;
268
271
  return {
269
272
  path: urlPath,
@@ -305,6 +308,9 @@ export class AuthApi extends runtime.BaseAPI {
305
308
  const queryParameters = {};
306
309
  const headerParameters = {};
307
310
  headerParameters['Content-Type'] = 'application/json';
311
+ if (requestParameters['authorization'] != null) {
312
+ headerParameters['authorization'] = String(requestParameters['authorization']);
313
+ }
308
314
  let urlPath = `/v1/auth/pw/reset`;
309
315
  return {
310
316
  path: urlPath,
@@ -13,16 +13,19 @@ import * as runtime from '../runtime';
13
13
  import type { ChunkLineageResponse, CreateChunkLineageRequest, LineageGraphResponse } from '../models/index';
14
14
  export interface CreateChunkLineageOperationRequest {
15
15
  createChunkLineageRequest: CreateChunkLineageRequest;
16
+ authorization?: string | null;
16
17
  ksUat?: string | null;
17
18
  }
18
19
  export interface DeleteChunkLineageRequest {
19
20
  parentChunkId: string;
20
21
  chunkId: string;
22
+ authorization?: string | null;
21
23
  ksUat?: string | null;
22
24
  }
23
25
  export interface GetChunkLineageRequest {
24
26
  chunkId: string;
25
27
  maxDepth?: number;
28
+ authorization?: string | null;
26
29
  ksUat?: string | null;
27
30
  }
28
31
  /**
@@ -35,6 +38,7 @@ export interface ChunkLineagesApiInterface {
35
38
  /**
36
39
  * Creates request options for createChunkLineage without sending the request
37
40
  * @param {CreateChunkLineageRequest} createChunkLineageRequest
41
+ * @param {string} [authorization]
38
42
  * @param {string} [ksUat]
39
43
  * @throws {RequiredError}
40
44
  * @memberof ChunkLineagesApiInterface
@@ -44,6 +48,7 @@ export interface ChunkLineagesApiInterface {
44
48
  * Batch-create lineage edges for a child chunk. Creates edges from each parent chunk to the specified child chunk. All chunks must exist in the same tenant.
45
49
  * @summary Create Chunk Lineage Handler
46
50
  * @param {CreateChunkLineageRequest} createChunkLineageRequest
51
+ * @param {string} [authorization]
47
52
  * @param {string} [ksUat]
48
53
  * @param {*} [options] Override http request option.
49
54
  * @throws {RequiredError}
@@ -59,6 +64,7 @@ export interface ChunkLineagesApiInterface {
59
64
  * Creates request options for deleteChunkLineage without sending the request
60
65
  * @param {string} parentChunkId Parent chunk ID
61
66
  * @param {string} chunkId Child chunk ID
67
+ * @param {string} [authorization]
62
68
  * @param {string} [ksUat]
63
69
  * @throws {RequiredError}
64
70
  * @memberof ChunkLineagesApiInterface
@@ -69,6 +75,7 @@ export interface ChunkLineagesApiInterface {
69
75
  * @summary Delete Chunk Lineage Handler
70
76
  * @param {string} parentChunkId Parent chunk ID
71
77
  * @param {string} chunkId Child chunk ID
78
+ * @param {string} [authorization]
72
79
  * @param {string} [ksUat]
73
80
  * @param {*} [options] Override http request option.
74
81
  * @throws {RequiredError}
@@ -84,6 +91,7 @@ export interface ChunkLineagesApiInterface {
84
91
  * Creates request options for getChunkLineage without sending the request
85
92
  * @param {string} chunkId
86
93
  * @param {number} [maxDepth]
94
+ * @param {string} [authorization]
87
95
  * @param {string} [ksUat]
88
96
  * @throws {RequiredError}
89
97
  * @memberof ChunkLineagesApiInterface
@@ -94,6 +102,7 @@ export interface ChunkLineagesApiInterface {
94
102
  * @summary Get Chunk Lineage Handler
95
103
  * @param {string} chunkId
96
104
  * @param {number} [maxDepth]
105
+ * @param {string} [authorization]
97
106
  * @param {string} [ksUat]
98
107
  * @param {*} [options] Override http request option.
99
108
  * @throws {RequiredError}
@@ -37,6 +37,9 @@ export class ChunkLineagesApi extends runtime.BaseAPI {
37
37
  const queryParameters = {};
38
38
  const headerParameters = {};
39
39
  headerParameters['Content-Type'] = 'application/json';
40
+ if (requestParameters['authorization'] != null) {
41
+ headerParameters['authorization'] = String(requestParameters['authorization']);
42
+ }
40
43
  let urlPath = `/v1/chunk-lineages`;
41
44
  return {
42
45
  path: urlPath,
@@ -87,6 +90,9 @@ export class ChunkLineagesApi extends runtime.BaseAPI {
87
90
  queryParameters['chunk_id'] = requestParameters['chunkId'];
88
91
  }
89
92
  const headerParameters = {};
93
+ if (requestParameters['authorization'] != null) {
94
+ headerParameters['authorization'] = String(requestParameters['authorization']);
95
+ }
90
96
  let urlPath = `/v1/chunk-lineages`;
91
97
  return {
92
98
  path: urlPath,
@@ -129,6 +135,9 @@ export class ChunkLineagesApi extends runtime.BaseAPI {
129
135
  queryParameters['max_depth'] = requestParameters['maxDepth'];
130
136
  }
131
137
  const headerParameters = {};
138
+ if (requestParameters['authorization'] != null) {
139
+ headerParameters['authorization'] = String(requestParameters['authorization']);
140
+ }
132
141
  let urlPath = `/v1/chunk-lineages/{chunk_id}`;
133
142
  urlPath = urlPath.replace(`{${"chunk_id"}}`, encodeURIComponent(String(requestParameters['chunkId'])));
134
143
  return {