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