@integrahub/vergefy-client 0.10.0 → 0.11.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 (50) hide show
  1. package/README.md +2 -2
  2. package/dist/apis/APIAFLFlagApi.d.ts +209 -0
  3. package/dist/apis/APIAFLFlagApi.js +554 -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 +550 -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/DataResponseDTOListFlagEvaluationResultDTO.js +42 -0
  12. package/dist/esm/models/EventDTO.js +2 -0
  13. package/dist/esm/models/FlagCreateApiDTO.js +67 -0
  14. package/dist/esm/models/FlagDTO.js +98 -0
  15. package/dist/esm/models/FlagEnvironmentValueDTO.js +83 -0
  16. package/dist/esm/models/FlagEvaluationRequestDTO.js +47 -0
  17. package/dist/esm/models/FlagEvaluationResultDTO.js +55 -0
  18. package/dist/esm/models/FlagUpdateApiDTO.js +61 -0
  19. package/dist/esm/models/FlagVariantDTO.js +85 -0
  20. package/dist/esm/models/PageFlagDTO.js +64 -0
  21. package/dist/esm/models/index.js +11 -0
  22. package/dist/ext/telemetry.d.ts +1 -1
  23. package/dist/ext/telemetry.js +1 -1
  24. package/dist/models/DataResponseDTOFlagDTO.d.ts +33 -0
  25. package/dist/models/DataResponseDTOFlagDTO.js +49 -0
  26. package/dist/models/DataResponseDTOFlagEnvironmentValueDTO.d.ts +33 -0
  27. package/dist/models/DataResponseDTOFlagEnvironmentValueDTO.js +49 -0
  28. package/dist/models/DataResponseDTOListFlagEvaluationResultDTO.d.ts +33 -0
  29. package/dist/models/DataResponseDTOListFlagEvaluationResultDTO.js +49 -0
  30. package/dist/models/EventDTO.d.ts +6 -0
  31. package/dist/models/EventDTO.js +2 -0
  32. package/dist/models/FlagCreateApiDTO.d.ts +79 -0
  33. package/dist/models/FlagCreateApiDTO.js +75 -0
  34. package/dist/models/FlagDTO.d.ts +166 -0
  35. package/dist/models/FlagDTO.js +106 -0
  36. package/dist/models/FlagEnvironmentValueDTO.d.ts +140 -0
  37. package/dist/models/FlagEnvironmentValueDTO.js +91 -0
  38. package/dist/models/FlagEvaluationRequestDTO.d.ts +44 -0
  39. package/dist/models/FlagEvaluationRequestDTO.js +54 -0
  40. package/dist/models/FlagEvaluationResultDTO.d.ts +74 -0
  41. package/dist/models/FlagEvaluationResultDTO.js +62 -0
  42. package/dist/models/FlagUpdateApiDTO.d.ts +73 -0
  43. package/dist/models/FlagUpdateApiDTO.js +69 -0
  44. package/dist/models/FlagVariantDTO.d.ts +140 -0
  45. package/dist/models/FlagVariantDTO.js +93 -0
  46. package/dist/models/PageFlagDTO.d.ts +95 -0
  47. package/dist/models/PageFlagDTO.js +71 -0
  48. package/dist/models/index.d.ts +11 -0
  49. package/dist/models/index.js +11 -0
  50. package/package.json +1 -1
@@ -0,0 +1,554 @@
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.AFL007EnvironmentEnum = 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 DataResponseDTOListFlagEvaluationResultDTO_1 = require("../models/DataResponseDTOListFlagEvaluationResultDTO");
30
+ const FlagCreateApiDTO_1 = require("../models/FlagCreateApiDTO");
31
+ const FlagEnvironmentValueDTO_1 = require("../models/FlagEnvironmentValueDTO");
32
+ const FlagEvaluationRequestDTO_1 = require("../models/FlagEvaluationRequestDTO");
33
+ const FlagUpdateApiDTO_1 = require("../models/FlagUpdateApiDTO");
34
+ const PageFlagDTO_1 = require("../models/PageFlagDTO");
35
+ /**
36
+ *
37
+ */
38
+ class APIAFLFlagApi extends runtime.BaseAPI {
39
+ /**
40
+ * Creates request options for aFL001 without sending the request
41
+ */
42
+ aFL001RequestOpts(requestParameters) {
43
+ return __awaiter(this, void 0, void 0, function* () {
44
+ if (requestParameters['xAppAccountId'] == null) {
45
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling aFL001().');
46
+ }
47
+ if (requestParameters['flagCreateApiDTO'] == null) {
48
+ throw new runtime.RequiredError('flagCreateApiDTO', 'Required parameter "flagCreateApiDTO" was null or undefined when calling aFL001().');
49
+ }
50
+ const queryParameters = {};
51
+ const headerParameters = {};
52
+ headerParameters['Content-Type'] = 'application/json';
53
+ if (requestParameters['acceptLanguage'] != null) {
54
+ headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
55
+ }
56
+ if (requestParameters['xAppAccountId'] != null) {
57
+ headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
58
+ }
59
+ if (requestParameters['vergefyVersion'] != null) {
60
+ headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
61
+ }
62
+ if (requestParameters['acceptTimezone'] != null) {
63
+ headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
64
+ }
65
+ if (this.configuration && this.configuration.accessToken) {
66
+ const token = this.configuration.accessToken;
67
+ const tokenString = yield token("BearerAuth", []);
68
+ if (tokenString) {
69
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
70
+ }
71
+ }
72
+ let urlPath = `/api/flags`;
73
+ return {
74
+ path: urlPath,
75
+ method: 'POST',
76
+ headers: headerParameters,
77
+ query: queryParameters,
78
+ body: (0, FlagCreateApiDTO_1.FlagCreateApiDTOToJSON)(requestParameters['flagCreateApiDTO']),
79
+ };
80
+ });
81
+ }
82
+ /**
83
+ * 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.
84
+ * AFL001 - Create Flag
85
+ */
86
+ aFL001Raw(requestParameters, initOverrides) {
87
+ return __awaiter(this, void 0, void 0, function* () {
88
+ const requestOptions = yield this.aFL001RequestOpts(requestParameters);
89
+ const response = yield this.request(requestOptions, initOverrides);
90
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, DataResponseDTOFlagDTO_1.DataResponseDTOFlagDTOFromJSON)(jsonValue));
91
+ });
92
+ }
93
+ /**
94
+ * 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.
95
+ * AFL001 - Create Flag
96
+ */
97
+ aFL001(requestParameters, initOverrides) {
98
+ return __awaiter(this, void 0, void 0, function* () {
99
+ const response = yield this.aFL001Raw(requestParameters, initOverrides);
100
+ return yield response.value();
101
+ });
102
+ }
103
+ /**
104
+ * Creates request options for aFL002 without sending the request
105
+ */
106
+ aFL002RequestOpts(requestParameters) {
107
+ return __awaiter(this, void 0, void 0, function* () {
108
+ if (requestParameters['id'] == null) {
109
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling aFL002().');
110
+ }
111
+ if (requestParameters['xAppAccountId'] == null) {
112
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling aFL002().');
113
+ }
114
+ if (requestParameters['flagUpdateApiDTO'] == null) {
115
+ throw new runtime.RequiredError('flagUpdateApiDTO', 'Required parameter "flagUpdateApiDTO" was null or undefined when calling aFL002().');
116
+ }
117
+ const queryParameters = {};
118
+ const headerParameters = {};
119
+ headerParameters['Content-Type'] = 'application/json';
120
+ if (requestParameters['acceptLanguage'] != null) {
121
+ headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
122
+ }
123
+ if (requestParameters['xAppAccountId'] != null) {
124
+ headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
125
+ }
126
+ if (requestParameters['vergefyVersion'] != null) {
127
+ headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
128
+ }
129
+ if (requestParameters['acceptTimezone'] != null) {
130
+ headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
131
+ }
132
+ if (this.configuration && this.configuration.accessToken) {
133
+ const token = this.configuration.accessToken;
134
+ const tokenString = yield token("BearerAuth", []);
135
+ if (tokenString) {
136
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
137
+ }
138
+ }
139
+ let urlPath = `/api/flags/{id}`;
140
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
141
+ return {
142
+ path: urlPath,
143
+ method: 'PUT',
144
+ headers: headerParameters,
145
+ query: queryParameters,
146
+ body: (0, FlagUpdateApiDTO_1.FlagUpdateApiDTOToJSON)(requestParameters['flagUpdateApiDTO']),
147
+ };
148
+ });
149
+ }
150
+ /**
151
+ * 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.
152
+ * AFL002 - Update Flag
153
+ */
154
+ aFL002Raw(requestParameters, initOverrides) {
155
+ return __awaiter(this, void 0, void 0, function* () {
156
+ const requestOptions = yield this.aFL002RequestOpts(requestParameters);
157
+ const response = yield this.request(requestOptions, initOverrides);
158
+ return new runtime.VoidApiResponse(response);
159
+ });
160
+ }
161
+ /**
162
+ * 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.
163
+ * AFL002 - Update Flag
164
+ */
165
+ aFL002(requestParameters, initOverrides) {
166
+ return __awaiter(this, void 0, void 0, function* () {
167
+ yield this.aFL002Raw(requestParameters, initOverrides);
168
+ });
169
+ }
170
+ /**
171
+ * Creates request options for aFL003 without sending the request
172
+ */
173
+ aFL003RequestOpts(requestParameters) {
174
+ return __awaiter(this, void 0, void 0, function* () {
175
+ if (requestParameters['id'] == null) {
176
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling aFL003().');
177
+ }
178
+ if (requestParameters['xAppAccountId'] == null) {
179
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling aFL003().');
180
+ }
181
+ const queryParameters = {};
182
+ const headerParameters = {};
183
+ if (requestParameters['acceptLanguage'] != null) {
184
+ headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
185
+ }
186
+ if (requestParameters['xAppAccountId'] != null) {
187
+ headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
188
+ }
189
+ if (requestParameters['vergefyVersion'] != null) {
190
+ headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
191
+ }
192
+ if (requestParameters['acceptTimezone'] != null) {
193
+ headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
194
+ }
195
+ if (this.configuration && this.configuration.accessToken) {
196
+ const token = this.configuration.accessToken;
197
+ const tokenString = yield token("BearerAuth", []);
198
+ if (tokenString) {
199
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
200
+ }
201
+ }
202
+ let urlPath = `/api/flags/{id}`;
203
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
204
+ return {
205
+ path: urlPath,
206
+ method: 'DELETE',
207
+ headers: headerParameters,
208
+ query: queryParameters,
209
+ };
210
+ });
211
+ }
212
+ /**
213
+ * Soft-deletes a feature flag together with its variants and per-environment values, freeing the slug for reuse.
214
+ * AFL003 - Delete Flag
215
+ */
216
+ aFL003Raw(requestParameters, initOverrides) {
217
+ return __awaiter(this, void 0, void 0, function* () {
218
+ const requestOptions = yield this.aFL003RequestOpts(requestParameters);
219
+ const response = yield this.request(requestOptions, initOverrides);
220
+ return new runtime.VoidApiResponse(response);
221
+ });
222
+ }
223
+ /**
224
+ * Soft-deletes a feature flag together with its variants and per-environment values, freeing the slug for reuse.
225
+ * AFL003 - Delete Flag
226
+ */
227
+ aFL003(requestParameters, initOverrides) {
228
+ return __awaiter(this, void 0, void 0, function* () {
229
+ yield this.aFL003Raw(requestParameters, initOverrides);
230
+ });
231
+ }
232
+ /**
233
+ * Creates request options for aFL004 without sending the request
234
+ */
235
+ aFL004RequestOpts(requestParameters) {
236
+ return __awaiter(this, void 0, void 0, function* () {
237
+ if (requestParameters['xAppAccountId'] == null) {
238
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling aFL004().');
239
+ }
240
+ const queryParameters = {};
241
+ if (requestParameters['slug'] != null) {
242
+ queryParameters['slug'] = requestParameters['slug'];
243
+ }
244
+ if (requestParameters['projectKey'] != null) {
245
+ queryParameters['projectKey'] = requestParameters['projectKey'];
246
+ }
247
+ if (requestParameters['flagTypes'] != null) {
248
+ queryParameters['flagTypes'] = requestParameters['flagTypes'];
249
+ }
250
+ if (requestParameters['enabled'] != null) {
251
+ queryParameters['enabled'] = requestParameters['enabled'];
252
+ }
253
+ if (requestParameters['search'] != null) {
254
+ queryParameters['search'] = requestParameters['search'];
255
+ }
256
+ if (requestParameters['entityStatuses'] != null) {
257
+ queryParameters['entityStatuses'] = requestParameters['entityStatuses'];
258
+ }
259
+ if (requestParameters['ids'] != null) {
260
+ queryParameters['ids'] = requestParameters['ids'];
261
+ }
262
+ if (requestParameters['uuids'] != null) {
263
+ queryParameters['uuids'] = requestParameters['uuids'];
264
+ }
265
+ if (requestParameters['externalIds'] != null) {
266
+ queryParameters['externalIds'] = requestParameters['externalIds'];
267
+ }
268
+ if (requestParameters['customIds'] != null) {
269
+ queryParameters['customIds'] = requestParameters['customIds'];
270
+ }
271
+ if (requestParameters['createdAtStart'] != null) {
272
+ queryParameters['createdAtStart'] = requestParameters['createdAtStart'].toISOString();
273
+ }
274
+ if (requestParameters['createdAtEnd'] != null) {
275
+ queryParameters['createdAtEnd'] = requestParameters['createdAtEnd'].toISOString();
276
+ }
277
+ if (requestParameters['page'] != null) {
278
+ queryParameters['page'] = requestParameters['page'];
279
+ }
280
+ if (requestParameters['size'] != null) {
281
+ queryParameters['size'] = requestParameters['size'];
282
+ }
283
+ if (requestParameters['sort'] != null) {
284
+ queryParameters['sort'] = requestParameters['sort'];
285
+ }
286
+ const headerParameters = {};
287
+ if (requestParameters['acceptLanguage'] != null) {
288
+ headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
289
+ }
290
+ if (requestParameters['xAppAccountId'] != null) {
291
+ headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
292
+ }
293
+ if (requestParameters['vergefyVersion'] != null) {
294
+ headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
295
+ }
296
+ if (requestParameters['acceptTimezone'] != null) {
297
+ headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
298
+ }
299
+ if (this.configuration && this.configuration.accessToken) {
300
+ const token = this.configuration.accessToken;
301
+ const tokenString = yield token("BearerAuth", []);
302
+ if (tokenString) {
303
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
304
+ }
305
+ }
306
+ let urlPath = `/api/flags`;
307
+ return {
308
+ path: urlPath,
309
+ method: 'GET',
310
+ headers: headerParameters,
311
+ query: queryParameters,
312
+ };
313
+ });
314
+ }
315
+ /**
316
+ * 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.
317
+ * AFL004 - Search Flags
318
+ */
319
+ aFL004Raw(requestParameters, initOverrides) {
320
+ return __awaiter(this, void 0, void 0, function* () {
321
+ const requestOptions = yield this.aFL004RequestOpts(requestParameters);
322
+ const response = yield this.request(requestOptions, initOverrides);
323
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, PageFlagDTO_1.PageFlagDTOFromJSON)(jsonValue));
324
+ });
325
+ }
326
+ /**
327
+ * 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.
328
+ * AFL004 - Search Flags
329
+ */
330
+ aFL004(requestParameters, initOverrides) {
331
+ return __awaiter(this, void 0, void 0, function* () {
332
+ const response = yield this.aFL004Raw(requestParameters, initOverrides);
333
+ return yield response.value();
334
+ });
335
+ }
336
+ /**
337
+ * Creates request options for aFL005 without sending the request
338
+ */
339
+ aFL005RequestOpts(requestParameters) {
340
+ return __awaiter(this, void 0, void 0, function* () {
341
+ if (requestParameters['id'] == null) {
342
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling aFL005().');
343
+ }
344
+ if (requestParameters['xAppAccountId'] == null) {
345
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling aFL005().');
346
+ }
347
+ const queryParameters = {};
348
+ const headerParameters = {};
349
+ if (requestParameters['acceptLanguage'] != null) {
350
+ headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
351
+ }
352
+ if (requestParameters['xAppAccountId'] != null) {
353
+ headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
354
+ }
355
+ if (requestParameters['vergefyVersion'] != null) {
356
+ headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
357
+ }
358
+ if (requestParameters['acceptTimezone'] != null) {
359
+ headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
360
+ }
361
+ if (this.configuration && this.configuration.accessToken) {
362
+ const token = this.configuration.accessToken;
363
+ const tokenString = yield token("BearerAuth", []);
364
+ if (tokenString) {
365
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
366
+ }
367
+ }
368
+ let urlPath = `/api/flags/{id}`;
369
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
370
+ return {
371
+ path: urlPath,
372
+ method: 'GET',
373
+ headers: headerParameters,
374
+ query: queryParameters,
375
+ };
376
+ });
377
+ }
378
+ /**
379
+ * Retrieves one feature flag with its ordered variants and every per-environment value configured for it.
380
+ * AFL005 - Get Flag By Id
381
+ */
382
+ aFL005Raw(requestParameters, initOverrides) {
383
+ return __awaiter(this, void 0, void 0, function* () {
384
+ const requestOptions = yield this.aFL005RequestOpts(requestParameters);
385
+ const response = yield this.request(requestOptions, initOverrides);
386
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, DataResponseDTOFlagDTO_1.DataResponseDTOFlagDTOFromJSON)(jsonValue));
387
+ });
388
+ }
389
+ /**
390
+ * Retrieves one feature flag with its ordered variants and every per-environment value configured for it.
391
+ * AFL005 - Get Flag By Id
392
+ */
393
+ aFL005(requestParameters, initOverrides) {
394
+ return __awaiter(this, void 0, void 0, function* () {
395
+ const response = yield this.aFL005Raw(requestParameters, initOverrides);
396
+ return yield response.value();
397
+ });
398
+ }
399
+ /**
400
+ * Creates request options for aFL006 without sending the request
401
+ */
402
+ aFL006RequestOpts(requestParameters) {
403
+ return __awaiter(this, void 0, void 0, function* () {
404
+ if (requestParameters['xAppAccountId'] == null) {
405
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling aFL006().');
406
+ }
407
+ if (requestParameters['flagEvaluationRequestDTO'] == null) {
408
+ throw new runtime.RequiredError('flagEvaluationRequestDTO', 'Required parameter "flagEvaluationRequestDTO" was null or undefined when calling aFL006().');
409
+ }
410
+ const queryParameters = {};
411
+ const headerParameters = {};
412
+ headerParameters['Content-Type'] = 'application/json';
413
+ if (requestParameters['acceptLanguage'] != null) {
414
+ headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
415
+ }
416
+ if (requestParameters['xAppAccountId'] != null) {
417
+ headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
418
+ }
419
+ if (requestParameters['vergefyVersion'] != null) {
420
+ headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
421
+ }
422
+ if (requestParameters['acceptTimezone'] != null) {
423
+ headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
424
+ }
425
+ if (this.configuration && this.configuration.accessToken) {
426
+ const token = this.configuration.accessToken;
427
+ const tokenString = yield token("BearerAuth", []);
428
+ if (tokenString) {
429
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
430
+ }
431
+ }
432
+ let urlPath = `/api/flags/evaluate`;
433
+ return {
434
+ path: urlPath,
435
+ method: 'POST',
436
+ headers: headerParameters,
437
+ query: queryParameters,
438
+ body: (0, FlagEvaluationRequestDTO_1.FlagEvaluationRequestDTOToJSON)(requestParameters['flagEvaluationRequestDTO']),
439
+ };
440
+ });
441
+ }
442
+ /**
443
+ * 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\'.
444
+ * AFL006 - Evaluate Flags
445
+ */
446
+ aFL006Raw(requestParameters, initOverrides) {
447
+ return __awaiter(this, void 0, void 0, function* () {
448
+ const requestOptions = yield this.aFL006RequestOpts(requestParameters);
449
+ const response = yield this.request(requestOptions, initOverrides);
450
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, DataResponseDTOListFlagEvaluationResultDTO_1.DataResponseDTOListFlagEvaluationResultDTOFromJSON)(jsonValue));
451
+ });
452
+ }
453
+ /**
454
+ * 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\'.
455
+ * AFL006 - Evaluate Flags
456
+ */
457
+ aFL006(requestParameters, initOverrides) {
458
+ return __awaiter(this, void 0, void 0, function* () {
459
+ const response = yield this.aFL006Raw(requestParameters, initOverrides);
460
+ return yield response.value();
461
+ });
462
+ }
463
+ /**
464
+ * Creates request options for aFL007 without sending the request
465
+ */
466
+ aFL007RequestOpts(requestParameters) {
467
+ return __awaiter(this, void 0, void 0, function* () {
468
+ if (requestParameters['id'] == null) {
469
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling aFL007().');
470
+ }
471
+ if (requestParameters['environment'] == null) {
472
+ throw new runtime.RequiredError('environment', 'Required parameter "environment" was null or undefined when calling aFL007().');
473
+ }
474
+ if (requestParameters['xAppAccountId'] == null) {
475
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling aFL007().');
476
+ }
477
+ if (requestParameters['flagEnvironmentValueDTO'] == null) {
478
+ throw new runtime.RequiredError('flagEnvironmentValueDTO', 'Required parameter "flagEnvironmentValueDTO" was null or undefined when calling aFL007().');
479
+ }
480
+ const queryParameters = {};
481
+ const headerParameters = {};
482
+ headerParameters['Content-Type'] = 'application/json';
483
+ if (requestParameters['acceptLanguage'] != null) {
484
+ headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
485
+ }
486
+ if (requestParameters['xAppAccountId'] != null) {
487
+ headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
488
+ }
489
+ if (requestParameters['vergefyVersion'] != null) {
490
+ headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
491
+ }
492
+ if (requestParameters['acceptTimezone'] != null) {
493
+ headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
494
+ }
495
+ if (this.configuration && this.configuration.accessToken) {
496
+ const token = this.configuration.accessToken;
497
+ const tokenString = yield token("BearerAuth", []);
498
+ if (tokenString) {
499
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
500
+ }
501
+ }
502
+ let urlPath = `/api/flags/{id}/environments/{environment}`;
503
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
504
+ urlPath = urlPath.replace('{environment}', encodeURIComponent(String(requestParameters['environment'])));
505
+ return {
506
+ path: urlPath,
507
+ method: 'PUT',
508
+ headers: headerParameters,
509
+ query: queryParameters,
510
+ body: (0, FlagEnvironmentValueDTO_1.FlagEnvironmentValueDTOToJSON)(requestParameters['flagEnvironmentValueDTO']),
511
+ };
512
+ });
513
+ }
514
+ /**
515
+ * 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.
516
+ * AFL007 - Set Flag Environment Value
517
+ */
518
+ aFL007Raw(requestParameters, initOverrides) {
519
+ return __awaiter(this, void 0, void 0, function* () {
520
+ const requestOptions = yield this.aFL007RequestOpts(requestParameters);
521
+ const response = yield this.request(requestOptions, initOverrides);
522
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, DataResponseDTOFlagEnvironmentValueDTO_1.DataResponseDTOFlagEnvironmentValueDTOFromJSON)(jsonValue));
523
+ });
524
+ }
525
+ /**
526
+ * 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.
527
+ * AFL007 - Set Flag Environment Value
528
+ */
529
+ aFL007(requestParameters, initOverrides) {
530
+ return __awaiter(this, void 0, void 0, function* () {
531
+ const response = yield this.aFL007Raw(requestParameters, initOverrides);
532
+ return yield response.value();
533
+ });
534
+ }
535
+ }
536
+ exports.APIAFLFlagApi = APIAFLFlagApi;
537
+ /**
538
+ * @export
539
+ */
540
+ exports.AFL004EntityStatusesEnum = {
541
+ Active: 'ACTIVE',
542
+ Passive: 'PASSIVE',
543
+ Archived: 'ARCHIVED',
544
+ Deleted: 'DELETED',
545
+ Pending: 'PENDING'
546
+ };
547
+ /**
548
+ * @export
549
+ */
550
+ exports.AFL007EnvironmentEnum = {
551
+ Production: 'PRODUCTION',
552
+ Preview: 'PREVIEW',
553
+ Development: 'DEVELOPMENT'
554
+ };
@@ -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);