@integrahub/vergefy-client 0.10.0 → 0.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/README.md +2 -2
  2. package/dist/apis/APIAFLFlagApi.d.ts +221 -0
  3. package/dist/apis/APIAFLFlagApi.js +606 -0
  4. package/dist/apis/index.d.ts +1 -0
  5. package/dist/apis/index.js +1 -0
  6. package/dist/esm/apis/APIAFLFlagApi.js +602 -0
  7. package/dist/esm/apis/index.js +1 -0
  8. package/dist/esm/ext/telemetry.js +1 -1
  9. package/dist/esm/models/DataResponseDTOFlagDTO.js +42 -0
  10. package/dist/esm/models/DataResponseDTOFlagEnvironmentValueDTO.js +42 -0
  11. package/dist/esm/models/DataResponseDTOListFlagEnvironmentDefinitionDTO.js +42 -0
  12. package/dist/esm/models/DataResponseDTOListFlagEvaluationResultDTO.js +42 -0
  13. package/dist/esm/models/EventDTO.js +2 -0
  14. package/dist/esm/models/FlagCreateApiDTO.js +67 -0
  15. package/dist/esm/models/FlagDTO.js +98 -0
  16. package/dist/esm/models/FlagEnvironmentDefinitionDTO.js +88 -0
  17. package/dist/esm/models/FlagEnvironmentValueDTO.js +83 -0
  18. package/dist/esm/models/FlagEvaluationRequestDTO.js +47 -0
  19. package/dist/esm/models/FlagEvaluationResultDTO.js +55 -0
  20. package/dist/esm/models/FlagUpdateApiDTO.js +61 -0
  21. package/dist/esm/models/FlagVariantDTO.js +85 -0
  22. package/dist/esm/models/PageFlagDTO.js +64 -0
  23. package/dist/esm/models/index.js +13 -0
  24. package/dist/ext/telemetry.d.ts +1 -1
  25. package/dist/ext/telemetry.js +1 -1
  26. package/dist/models/DataResponseDTOFlagDTO.d.ts +33 -0
  27. package/dist/models/DataResponseDTOFlagDTO.js +49 -0
  28. package/dist/models/DataResponseDTOFlagEnvironmentValueDTO.d.ts +33 -0
  29. package/dist/models/DataResponseDTOFlagEnvironmentValueDTO.js +49 -0
  30. package/dist/models/DataResponseDTOListFlagEnvironmentDefinitionDTO.d.ts +33 -0
  31. package/dist/models/DataResponseDTOListFlagEnvironmentDefinitionDTO.js +49 -0
  32. package/dist/models/DataResponseDTOListFlagEvaluationResultDTO.d.ts +33 -0
  33. package/dist/models/DataResponseDTOListFlagEvaluationResultDTO.js +49 -0
  34. package/dist/models/EventDTO.d.ts +6 -0
  35. package/dist/models/EventDTO.js +2 -0
  36. package/dist/models/FlagCreateApiDTO.d.ts +79 -0
  37. package/dist/models/FlagCreateApiDTO.js +75 -0
  38. package/dist/models/FlagDTO.d.ts +166 -0
  39. package/dist/models/FlagDTO.js +106 -0
  40. package/dist/models/FlagEnvironmentDefinitionDTO.d.ts +140 -0
  41. package/dist/models/FlagEnvironmentDefinitionDTO.js +96 -0
  42. package/dist/models/FlagEnvironmentValueDTO.d.ts +140 -0
  43. package/dist/models/FlagEnvironmentValueDTO.js +91 -0
  44. package/dist/models/FlagEvaluationRequestDTO.d.ts +44 -0
  45. package/dist/models/FlagEvaluationRequestDTO.js +54 -0
  46. package/dist/models/FlagEvaluationResultDTO.d.ts +74 -0
  47. package/dist/models/FlagEvaluationResultDTO.js +62 -0
  48. package/dist/models/FlagUpdateApiDTO.d.ts +73 -0
  49. package/dist/models/FlagUpdateApiDTO.js +69 -0
  50. package/dist/models/FlagVariantDTO.d.ts +140 -0
  51. package/dist/models/FlagVariantDTO.js +93 -0
  52. package/dist/models/PageFlagDTO.d.ts +95 -0
  53. package/dist/models/PageFlagDTO.js +71 -0
  54. package/dist/models/index.d.ts +13 -0
  55. package/dist/models/index.js +13 -0
  56. package/package.json +1 -1
@@ -0,0 +1,606 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Vergefy API
6
+ * <h1>AI Agent Management</h1><p>Create, configure, and orchestrate AI agents with multi-provider support.</p><h2>Modules</h2><ul><li><b>Agent (IAG):</b> Agent creation, configuration, lifecycle, insight and analytics (IAG001-057, IAG500-505, IAG700-701)</li><li><b>Template (IAT):</b> Agent template management — /ai/agents-templates</li><li><b>Template Advanced (IATEMP):</b> Versions, analytics, recommendations, diffs — /ai/agents-templates (IATEMP001-008)</li><li><b>Agent Upgrade (IAGENT):</b> Upgrade, rollback, version management — /ai/agents/{id}/upgrade|rollback (IAGENT001-005)</li><li><b>Hierarchy (IAH):</b> Supervisor-worker relationships, delegation — /ai/agents/hierarchies</li><li><b>Goal (IAGG):</b> Autonomous goals, success criteria — /ai/agents/goals</li><li><b>Pool (IAGP):</b> Agent pool management, allocation, coordination (queries IAGP001-023, commands IAGP101-109) — /ai/agents/pools</li><li><b>Execution (IAGE):</b> Execution tracking, history — /ai/agents/executions</li><li><b>Health (IAGH):</b> Health checks, recovery — /ai/agents/health</li><li><b>Communication (IAGC):</b> Channels (IAGC001-019) and inter-agent messages (IAGC020-052) — /ai/agents/channels, /ai/agents/messages</li><li><b>Handoff (IAGD):</b> Agent handoff and transfer — /ai/agents/handoffs</li><li><b>Orchestration (IAGO):</b> Orchestration sessions — /ai/agents/orchestration/sessions</li><li><b>Workflow (IAGW):</b> Workflow assignment and execution — /ai/agents-workflows</li><li><b>Capability (IACAP):</b> Capability definitions, permissions (queries IACAP001-011, commands IACAP101-105) — /ai/capabilities</li><li><b>Capability Mapping (IACF):</b> Capability to feature mapping — /ai/agents/capability-feature-mappings</li></ul><p><b>Providers:</b> OpenAI GPT-4, Anthropic Claude, Google Gemini</p>
7
+ *
8
+ * The version of the OpenAPI document: 2026-05-30
9
+ * Contact: support@integrahub.co
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.AFL004EntityStatusesEnum = exports.APIAFLFlagApi = void 0;
26
+ const runtime = require("../runtime");
27
+ const DataResponseDTOFlagDTO_1 = require("../models/DataResponseDTOFlagDTO");
28
+ const DataResponseDTOFlagEnvironmentValueDTO_1 = require("../models/DataResponseDTOFlagEnvironmentValueDTO");
29
+ const DataResponseDTOListFlagEnvironmentDefinitionDTO_1 = require("../models/DataResponseDTOListFlagEnvironmentDefinitionDTO");
30
+ const DataResponseDTOListFlagEvaluationResultDTO_1 = require("../models/DataResponseDTOListFlagEvaluationResultDTO");
31
+ const FlagCreateApiDTO_1 = require("../models/FlagCreateApiDTO");
32
+ const FlagEnvironmentValueDTO_1 = require("../models/FlagEnvironmentValueDTO");
33
+ const FlagEvaluationRequestDTO_1 = require("../models/FlagEvaluationRequestDTO");
34
+ const FlagUpdateApiDTO_1 = require("../models/FlagUpdateApiDTO");
35
+ const PageFlagDTO_1 = require("../models/PageFlagDTO");
36
+ /**
37
+ *
38
+ */
39
+ class APIAFLFlagApi extends runtime.BaseAPI {
40
+ /**
41
+ * Creates request options for aFL001 without sending the request
42
+ */
43
+ aFL001RequestOpts(requestParameters) {
44
+ return __awaiter(this, void 0, void 0, function* () {
45
+ if (requestParameters['xAppAccountId'] == null) {
46
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling aFL001().');
47
+ }
48
+ if (requestParameters['flagCreateApiDTO'] == null) {
49
+ throw new runtime.RequiredError('flagCreateApiDTO', 'Required parameter "flagCreateApiDTO" was null or undefined when calling aFL001().');
50
+ }
51
+ const queryParameters = {};
52
+ const headerParameters = {};
53
+ headerParameters['Content-Type'] = 'application/json';
54
+ if (requestParameters['acceptLanguage'] != null) {
55
+ headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
56
+ }
57
+ if (requestParameters['xAppAccountId'] != null) {
58
+ headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
59
+ }
60
+ if (requestParameters['vergefyVersion'] != null) {
61
+ headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
62
+ }
63
+ if (requestParameters['acceptTimezone'] != null) {
64
+ headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
65
+ }
66
+ if (this.configuration && this.configuration.accessToken) {
67
+ const token = this.configuration.accessToken;
68
+ const tokenString = yield token("BearerAuth", []);
69
+ if (tokenString) {
70
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
71
+ }
72
+ }
73
+ let urlPath = `/api/flags`;
74
+ return {
75
+ path: urlPath,
76
+ method: 'POST',
77
+ headers: headerParameters,
78
+ query: queryParameters,
79
+ body: (0, FlagCreateApiDTO_1.FlagCreateApiDTOToJSON)(requestParameters['flagCreateApiDTO']),
80
+ };
81
+ });
82
+ }
83
+ /**
84
+ * Creates a feature flag with a tenant-unique slug, a value type, and an optional ordered list of variants. The flag starts with its master kill-switch off unless stated otherwise.
85
+ * AFL001 - Create Flag
86
+ */
87
+ aFL001Raw(requestParameters, initOverrides) {
88
+ return __awaiter(this, void 0, void 0, function* () {
89
+ const requestOptions = yield this.aFL001RequestOpts(requestParameters);
90
+ const response = yield this.request(requestOptions, initOverrides);
91
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, DataResponseDTOFlagDTO_1.DataResponseDTOFlagDTOFromJSON)(jsonValue));
92
+ });
93
+ }
94
+ /**
95
+ * Creates a feature flag with a tenant-unique slug, a value type, and an optional ordered list of variants. The flag starts with its master kill-switch off unless stated otherwise.
96
+ * AFL001 - Create Flag
97
+ */
98
+ aFL001(requestParameters, initOverrides) {
99
+ return __awaiter(this, void 0, void 0, function* () {
100
+ const response = yield this.aFL001Raw(requestParameters, initOverrides);
101
+ return yield response.value();
102
+ });
103
+ }
104
+ /**
105
+ * Creates request options for aFL002 without sending the request
106
+ */
107
+ aFL002RequestOpts(requestParameters) {
108
+ return __awaiter(this, void 0, void 0, function* () {
109
+ if (requestParameters['id'] == null) {
110
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling aFL002().');
111
+ }
112
+ if (requestParameters['xAppAccountId'] == null) {
113
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling aFL002().');
114
+ }
115
+ if (requestParameters['flagUpdateApiDTO'] == null) {
116
+ throw new runtime.RequiredError('flagUpdateApiDTO', 'Required parameter "flagUpdateApiDTO" was null or undefined when calling aFL002().');
117
+ }
118
+ const queryParameters = {};
119
+ const headerParameters = {};
120
+ headerParameters['Content-Type'] = 'application/json';
121
+ if (requestParameters['acceptLanguage'] != null) {
122
+ headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
123
+ }
124
+ if (requestParameters['xAppAccountId'] != null) {
125
+ headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
126
+ }
127
+ if (requestParameters['vergefyVersion'] != null) {
128
+ headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
129
+ }
130
+ if (requestParameters['acceptTimezone'] != null) {
131
+ headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
132
+ }
133
+ if (this.configuration && this.configuration.accessToken) {
134
+ const token = this.configuration.accessToken;
135
+ const tokenString = yield token("BearerAuth", []);
136
+ if (tokenString) {
137
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
138
+ }
139
+ }
140
+ let urlPath = `/api/flags/{id}`;
141
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
142
+ return {
143
+ path: urlPath,
144
+ method: 'PUT',
145
+ headers: headerParameters,
146
+ query: queryParameters,
147
+ body: (0, FlagUpdateApiDTO_1.FlagUpdateApiDTOToJSON)(requestParameters['flagUpdateApiDTO']),
148
+ };
149
+ });
150
+ }
151
+ /**
152
+ * Partially updates a feature flag. Null fields are left untouched. Supplying a variant list replaces the current variants wholesale; omitting it leaves them alone. The slug is immutable.
153
+ * AFL002 - Update Flag
154
+ */
155
+ aFL002Raw(requestParameters, initOverrides) {
156
+ return __awaiter(this, void 0, void 0, function* () {
157
+ const requestOptions = yield this.aFL002RequestOpts(requestParameters);
158
+ const response = yield this.request(requestOptions, initOverrides);
159
+ return new runtime.VoidApiResponse(response);
160
+ });
161
+ }
162
+ /**
163
+ * Partially updates a feature flag. Null fields are left untouched. Supplying a variant list replaces the current variants wholesale; omitting it leaves them alone. The slug is immutable.
164
+ * AFL002 - Update Flag
165
+ */
166
+ aFL002(requestParameters, initOverrides) {
167
+ return __awaiter(this, void 0, void 0, function* () {
168
+ yield this.aFL002Raw(requestParameters, initOverrides);
169
+ });
170
+ }
171
+ /**
172
+ * Creates request options for aFL003 without sending the request
173
+ */
174
+ aFL003RequestOpts(requestParameters) {
175
+ return __awaiter(this, void 0, void 0, function* () {
176
+ if (requestParameters['id'] == null) {
177
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling aFL003().');
178
+ }
179
+ if (requestParameters['xAppAccountId'] == null) {
180
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling aFL003().');
181
+ }
182
+ const queryParameters = {};
183
+ const headerParameters = {};
184
+ if (requestParameters['acceptLanguage'] != null) {
185
+ headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
186
+ }
187
+ if (requestParameters['xAppAccountId'] != null) {
188
+ headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
189
+ }
190
+ if (requestParameters['vergefyVersion'] != null) {
191
+ headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
192
+ }
193
+ if (requestParameters['acceptTimezone'] != null) {
194
+ headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
195
+ }
196
+ if (this.configuration && this.configuration.accessToken) {
197
+ const token = this.configuration.accessToken;
198
+ const tokenString = yield token("BearerAuth", []);
199
+ if (tokenString) {
200
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
201
+ }
202
+ }
203
+ let urlPath = `/api/flags/{id}`;
204
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
205
+ return {
206
+ path: urlPath,
207
+ method: 'DELETE',
208
+ headers: headerParameters,
209
+ query: queryParameters,
210
+ };
211
+ });
212
+ }
213
+ /**
214
+ * Soft-deletes a feature flag together with its variants and per-environment values, freeing the slug for reuse.
215
+ * AFL003 - Delete Flag
216
+ */
217
+ aFL003Raw(requestParameters, initOverrides) {
218
+ return __awaiter(this, void 0, void 0, function* () {
219
+ const requestOptions = yield this.aFL003RequestOpts(requestParameters);
220
+ const response = yield this.request(requestOptions, initOverrides);
221
+ return new runtime.VoidApiResponse(response);
222
+ });
223
+ }
224
+ /**
225
+ * Soft-deletes a feature flag together with its variants and per-environment values, freeing the slug for reuse.
226
+ * AFL003 - Delete Flag
227
+ */
228
+ aFL003(requestParameters, initOverrides) {
229
+ return __awaiter(this, void 0, void 0, function* () {
230
+ yield this.aFL003Raw(requestParameters, initOverrides);
231
+ });
232
+ }
233
+ /**
234
+ * Creates request options for aFL004 without sending the request
235
+ */
236
+ aFL004RequestOpts(requestParameters) {
237
+ return __awaiter(this, void 0, void 0, function* () {
238
+ if (requestParameters['xAppAccountId'] == null) {
239
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling aFL004().');
240
+ }
241
+ const queryParameters = {};
242
+ if (requestParameters['slug'] != null) {
243
+ queryParameters['slug'] = requestParameters['slug'];
244
+ }
245
+ if (requestParameters['projectKey'] != null) {
246
+ queryParameters['projectKey'] = requestParameters['projectKey'];
247
+ }
248
+ if (requestParameters['flagTypes'] != null) {
249
+ queryParameters['flagTypes'] = requestParameters['flagTypes'];
250
+ }
251
+ if (requestParameters['enabled'] != null) {
252
+ queryParameters['enabled'] = requestParameters['enabled'];
253
+ }
254
+ if (requestParameters['search'] != null) {
255
+ queryParameters['search'] = requestParameters['search'];
256
+ }
257
+ if (requestParameters['entityStatuses'] != null) {
258
+ queryParameters['entityStatuses'] = requestParameters['entityStatuses'];
259
+ }
260
+ if (requestParameters['ids'] != null) {
261
+ queryParameters['ids'] = requestParameters['ids'];
262
+ }
263
+ if (requestParameters['uuids'] != null) {
264
+ queryParameters['uuids'] = requestParameters['uuids'];
265
+ }
266
+ if (requestParameters['externalIds'] != null) {
267
+ queryParameters['externalIds'] = requestParameters['externalIds'];
268
+ }
269
+ if (requestParameters['customIds'] != null) {
270
+ queryParameters['customIds'] = requestParameters['customIds'];
271
+ }
272
+ if (requestParameters['createdAtStart'] != null) {
273
+ queryParameters['createdAtStart'] = requestParameters['createdAtStart'].toISOString();
274
+ }
275
+ if (requestParameters['createdAtEnd'] != null) {
276
+ queryParameters['createdAtEnd'] = requestParameters['createdAtEnd'].toISOString();
277
+ }
278
+ if (requestParameters['page'] != null) {
279
+ queryParameters['page'] = requestParameters['page'];
280
+ }
281
+ if (requestParameters['size'] != null) {
282
+ queryParameters['size'] = requestParameters['size'];
283
+ }
284
+ if (requestParameters['sort'] != null) {
285
+ queryParameters['sort'] = requestParameters['sort'];
286
+ }
287
+ const headerParameters = {};
288
+ if (requestParameters['acceptLanguage'] != null) {
289
+ headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
290
+ }
291
+ if (requestParameters['xAppAccountId'] != null) {
292
+ headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
293
+ }
294
+ if (requestParameters['vergefyVersion'] != null) {
295
+ headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
296
+ }
297
+ if (requestParameters['acceptTimezone'] != null) {
298
+ headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
299
+ }
300
+ if (this.configuration && this.configuration.accessToken) {
301
+ const token = this.configuration.accessToken;
302
+ const tokenString = yield token("BearerAuth", []);
303
+ if (tokenString) {
304
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
305
+ }
306
+ }
307
+ let urlPath = `/api/flags`;
308
+ return {
309
+ path: urlPath,
310
+ method: 'GET',
311
+ headers: headerParameters,
312
+ query: queryParameters,
313
+ };
314
+ });
315
+ }
316
+ /**
317
+ * Searches feature flags with pagination. Filters by slug, project, type and master kill-switch state; free-text search matches the slug and the name. Variants and per-environment values are not included — retrieve a single flag for those.
318
+ * AFL004 - Search Flags
319
+ */
320
+ aFL004Raw(requestParameters, initOverrides) {
321
+ return __awaiter(this, void 0, void 0, function* () {
322
+ const requestOptions = yield this.aFL004RequestOpts(requestParameters);
323
+ const response = yield this.request(requestOptions, initOverrides);
324
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, PageFlagDTO_1.PageFlagDTOFromJSON)(jsonValue));
325
+ });
326
+ }
327
+ /**
328
+ * Searches feature flags with pagination. Filters by slug, project, type and master kill-switch state; free-text search matches the slug and the name. Variants and per-environment values are not included — retrieve a single flag for those.
329
+ * AFL004 - Search Flags
330
+ */
331
+ aFL004(requestParameters, initOverrides) {
332
+ return __awaiter(this, void 0, void 0, function* () {
333
+ const response = yield this.aFL004Raw(requestParameters, initOverrides);
334
+ return yield response.value();
335
+ });
336
+ }
337
+ /**
338
+ * Creates request options for aFL005 without sending the request
339
+ */
340
+ aFL005RequestOpts(requestParameters) {
341
+ return __awaiter(this, void 0, void 0, function* () {
342
+ if (requestParameters['id'] == null) {
343
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling aFL005().');
344
+ }
345
+ if (requestParameters['xAppAccountId'] == null) {
346
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling aFL005().');
347
+ }
348
+ const queryParameters = {};
349
+ const headerParameters = {};
350
+ if (requestParameters['acceptLanguage'] != null) {
351
+ headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
352
+ }
353
+ if (requestParameters['xAppAccountId'] != null) {
354
+ headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
355
+ }
356
+ if (requestParameters['vergefyVersion'] != null) {
357
+ headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
358
+ }
359
+ if (requestParameters['acceptTimezone'] != null) {
360
+ headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
361
+ }
362
+ if (this.configuration && this.configuration.accessToken) {
363
+ const token = this.configuration.accessToken;
364
+ const tokenString = yield token("BearerAuth", []);
365
+ if (tokenString) {
366
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
367
+ }
368
+ }
369
+ let urlPath = `/api/flags/{id}`;
370
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
371
+ return {
372
+ path: urlPath,
373
+ method: 'GET',
374
+ headers: headerParameters,
375
+ query: queryParameters,
376
+ };
377
+ });
378
+ }
379
+ /**
380
+ * Retrieves one feature flag with its ordered variants and every per-environment value configured for it.
381
+ * AFL005 - Get Flag By Id
382
+ */
383
+ aFL005Raw(requestParameters, initOverrides) {
384
+ return __awaiter(this, void 0, void 0, function* () {
385
+ const requestOptions = yield this.aFL005RequestOpts(requestParameters);
386
+ const response = yield this.request(requestOptions, initOverrides);
387
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, DataResponseDTOFlagDTO_1.DataResponseDTOFlagDTOFromJSON)(jsonValue));
388
+ });
389
+ }
390
+ /**
391
+ * Retrieves one feature flag with its ordered variants and every per-environment value configured for it.
392
+ * AFL005 - Get Flag By Id
393
+ */
394
+ aFL005(requestParameters, initOverrides) {
395
+ return __awaiter(this, void 0, void 0, function* () {
396
+ const response = yield this.aFL005Raw(requestParameters, initOverrides);
397
+ return yield response.value();
398
+ });
399
+ }
400
+ /**
401
+ * Creates request options for aFL006 without sending the request
402
+ */
403
+ aFL006RequestOpts(requestParameters) {
404
+ return __awaiter(this, void 0, void 0, function* () {
405
+ if (requestParameters['xAppAccountId'] == null) {
406
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling aFL006().');
407
+ }
408
+ if (requestParameters['flagEvaluationRequestDTO'] == null) {
409
+ throw new runtime.RequiredError('flagEvaluationRequestDTO', 'Required parameter "flagEvaluationRequestDTO" was null or undefined when calling aFL006().');
410
+ }
411
+ const queryParameters = {};
412
+ const headerParameters = {};
413
+ headerParameters['Content-Type'] = 'application/json';
414
+ if (requestParameters['acceptLanguage'] != null) {
415
+ headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
416
+ }
417
+ if (requestParameters['xAppAccountId'] != null) {
418
+ headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
419
+ }
420
+ if (requestParameters['vergefyVersion'] != null) {
421
+ headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
422
+ }
423
+ if (requestParameters['acceptTimezone'] != null) {
424
+ headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
425
+ }
426
+ if (this.configuration && this.configuration.accessToken) {
427
+ const token = this.configuration.accessToken;
428
+ const tokenString = yield token("BearerAuth", []);
429
+ if (tokenString) {
430
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
431
+ }
432
+ }
433
+ let urlPath = `/api/flags/evaluate`;
434
+ return {
435
+ path: urlPath,
436
+ method: 'POST',
437
+ headers: headerParameters,
438
+ query: queryParameters,
439
+ body: (0, FlagEvaluationRequestDTO_1.FlagEvaluationRequestDTOToJSON)(requestParameters['flagEvaluationRequestDTO']),
440
+ };
441
+ });
442
+ }
443
+ /**
444
+ * Resolves the effective value of the requested flags in one environment. A flag with no value configured for that environment falls back to its disabled state and is reported as defaulted, so callers can tell \'explicitly off\' from \'never configured\'.
445
+ * AFL006 - Evaluate Flags
446
+ */
447
+ aFL006Raw(requestParameters, initOverrides) {
448
+ return __awaiter(this, void 0, void 0, function* () {
449
+ const requestOptions = yield this.aFL006RequestOpts(requestParameters);
450
+ const response = yield this.request(requestOptions, initOverrides);
451
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, DataResponseDTOListFlagEvaluationResultDTO_1.DataResponseDTOListFlagEvaluationResultDTOFromJSON)(jsonValue));
452
+ });
453
+ }
454
+ /**
455
+ * Resolves the effective value of the requested flags in one environment. A flag with no value configured for that environment falls back to its disabled state and is reported as defaulted, so callers can tell \'explicitly off\' from \'never configured\'.
456
+ * AFL006 - Evaluate Flags
457
+ */
458
+ aFL006(requestParameters, initOverrides) {
459
+ return __awaiter(this, void 0, void 0, function* () {
460
+ const response = yield this.aFL006Raw(requestParameters, initOverrides);
461
+ return yield response.value();
462
+ });
463
+ }
464
+ /**
465
+ * Creates request options for aFL007 without sending the request
466
+ */
467
+ aFL007RequestOpts(requestParameters) {
468
+ return __awaiter(this, void 0, void 0, function* () {
469
+ if (requestParameters['id'] == null) {
470
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling aFL007().');
471
+ }
472
+ if (requestParameters['environment'] == null) {
473
+ throw new runtime.RequiredError('environment', 'Required parameter "environment" was null or undefined when calling aFL007().');
474
+ }
475
+ if (requestParameters['xAppAccountId'] == null) {
476
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling aFL007().');
477
+ }
478
+ if (requestParameters['flagEnvironmentValueDTO'] == null) {
479
+ throw new runtime.RequiredError('flagEnvironmentValueDTO', 'Required parameter "flagEnvironmentValueDTO" was null or undefined when calling aFL007().');
480
+ }
481
+ const queryParameters = {};
482
+ const headerParameters = {};
483
+ headerParameters['Content-Type'] = 'application/json';
484
+ if (requestParameters['acceptLanguage'] != null) {
485
+ headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
486
+ }
487
+ if (requestParameters['xAppAccountId'] != null) {
488
+ headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
489
+ }
490
+ if (requestParameters['vergefyVersion'] != null) {
491
+ headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
492
+ }
493
+ if (requestParameters['acceptTimezone'] != null) {
494
+ headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
495
+ }
496
+ if (this.configuration && this.configuration.accessToken) {
497
+ const token = this.configuration.accessToken;
498
+ const tokenString = yield token("BearerAuth", []);
499
+ if (tokenString) {
500
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
501
+ }
502
+ }
503
+ let urlPath = `/api/flags/{id}/environments/{environment}`;
504
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
505
+ urlPath = urlPath.replace('{environment}', encodeURIComponent(String(requestParameters['environment'])));
506
+ return {
507
+ path: urlPath,
508
+ method: 'PUT',
509
+ headers: headerParameters,
510
+ query: queryParameters,
511
+ body: (0, FlagEnvironmentValueDTO_1.FlagEnvironmentValueDTOToJSON)(requestParameters['flagEnvironmentValueDTO']),
512
+ };
513
+ });
514
+ }
515
+ /**
516
+ * Sets the value of a flag in one environment, creating the row on first write. The environment in the path is authoritative; any environment in the body is ignored. The environment is a tenant-defined KEY (AFL008 lists them), not one of a fixed three; an unknown key is a 404 rather than a silent create.
517
+ * AFL007 - Set Flag Environment Value
518
+ */
519
+ aFL007Raw(requestParameters, initOverrides) {
520
+ return __awaiter(this, void 0, void 0, function* () {
521
+ const requestOptions = yield this.aFL007RequestOpts(requestParameters);
522
+ const response = yield this.request(requestOptions, initOverrides);
523
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, DataResponseDTOFlagEnvironmentValueDTO_1.DataResponseDTOFlagEnvironmentValueDTOFromJSON)(jsonValue));
524
+ });
525
+ }
526
+ /**
527
+ * Sets the value of a flag in one environment, creating the row on first write. The environment in the path is authoritative; any environment in the body is ignored. The environment is a tenant-defined KEY (AFL008 lists them), not one of a fixed three; an unknown key is a 404 rather than a silent create.
528
+ * AFL007 - Set Flag Environment Value
529
+ */
530
+ aFL007(requestParameters, initOverrides) {
531
+ return __awaiter(this, void 0, void 0, function* () {
532
+ const response = yield this.aFL007Raw(requestParameters, initOverrides);
533
+ return yield response.value();
534
+ });
535
+ }
536
+ /**
537
+ * Creates request options for aFL008 without sending the request
538
+ */
539
+ aFL008RequestOpts(requestParameters) {
540
+ return __awaiter(this, void 0, void 0, function* () {
541
+ if (requestParameters['xAppAccountId'] == null) {
542
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling aFL008().');
543
+ }
544
+ const queryParameters = {};
545
+ const headerParameters = {};
546
+ if (requestParameters['acceptLanguage'] != null) {
547
+ headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
548
+ }
549
+ if (requestParameters['xAppAccountId'] != null) {
550
+ headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
551
+ }
552
+ if (requestParameters['vergefyVersion'] != null) {
553
+ headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
554
+ }
555
+ if (requestParameters['acceptTimezone'] != null) {
556
+ headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
557
+ }
558
+ if (this.configuration && this.configuration.accessToken) {
559
+ const token = this.configuration.accessToken;
560
+ const tokenString = yield token("BearerAuth", []);
561
+ if (tokenString) {
562
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
563
+ }
564
+ }
565
+ let urlPath = `/api/flags/environments`;
566
+ return {
567
+ path: urlPath,
568
+ method: 'GET',
569
+ headers: headerParameters,
570
+ query: queryParameters,
571
+ };
572
+ });
573
+ }
574
+ /**
575
+ * Lists the environments this workspace has defined, in display order. The set is tenant-defined and unbounded — callers must treat the environment as an opaque key and must not assume the three that ship by default.
576
+ * AFL008 - List Flag Environments
577
+ */
578
+ aFL008Raw(requestParameters, initOverrides) {
579
+ return __awaiter(this, void 0, void 0, function* () {
580
+ const requestOptions = yield this.aFL008RequestOpts(requestParameters);
581
+ const response = yield this.request(requestOptions, initOverrides);
582
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, DataResponseDTOListFlagEnvironmentDefinitionDTO_1.DataResponseDTOListFlagEnvironmentDefinitionDTOFromJSON)(jsonValue));
583
+ });
584
+ }
585
+ /**
586
+ * Lists the environments this workspace has defined, in display order. The set is tenant-defined and unbounded — callers must treat the environment as an opaque key and must not assume the three that ship by default.
587
+ * AFL008 - List Flag Environments
588
+ */
589
+ aFL008(requestParameters, initOverrides) {
590
+ return __awaiter(this, void 0, void 0, function* () {
591
+ const response = yield this.aFL008Raw(requestParameters, initOverrides);
592
+ return yield response.value();
593
+ });
594
+ }
595
+ }
596
+ exports.APIAFLFlagApi = APIAFLFlagApi;
597
+ /**
598
+ * @export
599
+ */
600
+ exports.AFL004EntityStatusesEnum = {
601
+ Active: 'ACTIVE',
602
+ Passive: 'PASSIVE',
603
+ Archived: 'ARCHIVED',
604
+ Deleted: 'DELETED',
605
+ Pending: 'PENDING'
606
+ };
@@ -82,6 +82,7 @@ export * from './APIADSCouponDiscountApi';
82
82
  export * from './APIADTNotificationDeviceTokenApi';
83
83
  export * from './APIAETNotificationEmailTemplateApi';
84
84
  export * from './APIAEXExchangeApi';
85
+ export * from './APIAFLFlagApi';
85
86
  export * from './APIAFTFilterApi';
86
87
  export * from './APIAGMGamificationApi';
87
88
  export * from './APIAGRGoodsReceiptApi';
@@ -100,6 +100,7 @@ __exportStar(require("./APIADSCouponDiscountApi"), exports);
100
100
  __exportStar(require("./APIADTNotificationDeviceTokenApi"), exports);
101
101
  __exportStar(require("./APIAETNotificationEmailTemplateApi"), exports);
102
102
  __exportStar(require("./APIAEXExchangeApi"), exports);
103
+ __exportStar(require("./APIAFLFlagApi"), exports);
103
104
  __exportStar(require("./APIAFTFilterApi"), exports);
104
105
  __exportStar(require("./APIAGMGamificationApi"), exports);
105
106
  __exportStar(require("./APIAGRGoodsReceiptApi"), exports);