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