@integrahub/vergefy-client 0.12.0 → 0.14.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 (86) hide show
  1. package/README.md +2 -2
  2. package/dist/apis/APIAFLFlagApi.d.ts +44 -0
  3. package/dist/apis/APIAFLFlagApi.js +128 -0
  4. package/dist/esm/apis/APIAFLFlagApi.js +128 -0
  5. package/dist/esm/ext/telemetry.js +1 -1
  6. package/dist/esm/models/AffiliateTierHistoryDTO.js +9 -3
  7. package/dist/esm/models/AgentHierarchyCreateDTO.js +3 -1
  8. package/dist/esm/models/ArticleChannelStockCreateDTO.js +3 -1
  9. package/dist/esm/models/DataResponseDTOFlagEnvironmentDefinitionDTO.js +42 -0
  10. package/dist/esm/models/DealCloseDTO.js +3 -1
  11. package/dist/esm/models/DealStageUpdateDTO.js +3 -1
  12. package/dist/esm/models/FlagEnvironmentCreateApiDTO.js +51 -0
  13. package/dist/esm/models/FleetDeviceConsumableCreateDTO.js +6 -2
  14. package/dist/esm/models/FleetGeofenceCreateDTO.js +9 -3
  15. package/dist/esm/models/FleetTelemetryCreateDTO.js +6 -2
  16. package/dist/esm/models/GoodsReceiptDTO.js +3 -1
  17. package/dist/esm/models/InsuranceBrokerCreateDTO.js +6 -2
  18. package/dist/esm/models/InsuranceCarrierCreateDTO.js +3 -1
  19. package/dist/esm/models/InsuranceClaimCreateDTO.js +10 -4
  20. package/dist/esm/models/InsuranceCommissionCreateDTO.js +9 -3
  21. package/dist/esm/models/InsuranceCommissionStatementCreateDTO.js +11 -5
  22. package/dist/esm/models/InsurancePolicyCreateDTO.js +14 -6
  23. package/dist/esm/models/LoyaltyMemberEnrollDTO.js +6 -2
  24. package/dist/esm/models/ManufacturingProcessProfileCreateDTO.js +3 -1
  25. package/dist/esm/models/ManufacturingWorkOrderMaterialCreateDTO.js +6 -2
  26. package/dist/esm/models/PipelineStage.js +14 -0
  27. package/dist/esm/models/PipelineStageApiDTO.js +14 -0
  28. package/dist/esm/models/PlatformPaymentMethodDTO.js +3 -1
  29. package/dist/esm/models/SocialWorkflowCreateDTO.js +3 -1
  30. package/dist/esm/models/StockDTO.js +6 -2
  31. package/dist/esm/models/index.js +2 -0
  32. package/dist/ext/telemetry.d.ts +1 -1
  33. package/dist/ext/telemetry.js +1 -1
  34. package/dist/models/AffiliateTierHistoryDTO.d.ts +3 -3
  35. package/dist/models/AffiliateTierHistoryDTO.js +9 -3
  36. package/dist/models/AgentHierarchyCreateDTO.d.ts +1 -1
  37. package/dist/models/AgentHierarchyCreateDTO.js +3 -1
  38. package/dist/models/ArticleChannelStockCreateDTO.d.ts +1 -1
  39. package/dist/models/ArticleChannelStockCreateDTO.js +3 -1
  40. package/dist/models/DataResponseDTOFlagEnvironmentDefinitionDTO.d.ts +33 -0
  41. package/dist/models/DataResponseDTOFlagEnvironmentDefinitionDTO.js +49 -0
  42. package/dist/models/DealCloseDTO.d.ts +1 -1
  43. package/dist/models/DealCloseDTO.js +3 -1
  44. package/dist/models/DealStageUpdateDTO.d.ts +1 -1
  45. package/dist/models/DealStageUpdateDTO.js +3 -1
  46. package/dist/models/FlagEnvironmentCreateApiDTO.d.ts +50 -0
  47. package/dist/models/FlagEnvironmentCreateApiDTO.js +58 -0
  48. package/dist/models/FleetDeviceConsumableCreateDTO.d.ts +2 -2
  49. package/dist/models/FleetDeviceConsumableCreateDTO.js +6 -2
  50. package/dist/models/FleetGeofenceCreateDTO.d.ts +3 -3
  51. package/dist/models/FleetGeofenceCreateDTO.js +9 -3
  52. package/dist/models/FleetTelemetryCreateDTO.d.ts +2 -2
  53. package/dist/models/FleetTelemetryCreateDTO.js +6 -2
  54. package/dist/models/GoodsReceiptDTO.d.ts +1 -1
  55. package/dist/models/GoodsReceiptDTO.js +3 -1
  56. package/dist/models/InsuranceBrokerCreateDTO.d.ts +2 -2
  57. package/dist/models/InsuranceBrokerCreateDTO.js +6 -2
  58. package/dist/models/InsuranceCarrierCreateDTO.d.ts +1 -1
  59. package/dist/models/InsuranceCarrierCreateDTO.js +3 -1
  60. package/dist/models/InsuranceClaimCreateDTO.d.ts +3 -3
  61. package/dist/models/InsuranceClaimCreateDTO.js +10 -4
  62. package/dist/models/InsuranceCommissionCreateDTO.d.ts +3 -3
  63. package/dist/models/InsuranceCommissionCreateDTO.js +9 -3
  64. package/dist/models/InsuranceCommissionStatementCreateDTO.d.ts +3 -3
  65. package/dist/models/InsuranceCommissionStatementCreateDTO.js +11 -5
  66. package/dist/models/InsurancePolicyCreateDTO.d.ts +4 -4
  67. package/dist/models/InsurancePolicyCreateDTO.js +14 -6
  68. package/dist/models/LoyaltyMemberEnrollDTO.d.ts +2 -2
  69. package/dist/models/LoyaltyMemberEnrollDTO.js +6 -2
  70. package/dist/models/ManufacturingProcessProfileCreateDTO.d.ts +1 -1
  71. package/dist/models/ManufacturingProcessProfileCreateDTO.js +3 -1
  72. package/dist/models/ManufacturingWorkOrderMaterialCreateDTO.d.ts +2 -2
  73. package/dist/models/ManufacturingWorkOrderMaterialCreateDTO.js +6 -2
  74. package/dist/models/PipelineStage.d.ts +19 -0
  75. package/dist/models/PipelineStage.js +15 -1
  76. package/dist/models/PipelineStageApiDTO.d.ts +19 -0
  77. package/dist/models/PipelineStageApiDTO.js +15 -0
  78. package/dist/models/PlatformPaymentMethodDTO.d.ts +1 -1
  79. package/dist/models/PlatformPaymentMethodDTO.js +3 -1
  80. package/dist/models/SocialWorkflowCreateDTO.d.ts +1 -1
  81. package/dist/models/SocialWorkflowCreateDTO.js +3 -1
  82. package/dist/models/StockDTO.d.ts +2 -2
  83. package/dist/models/StockDTO.js +6 -2
  84. package/dist/models/index.d.ts +2 -0
  85. package/dist/models/index.js +2 -0
  86. package/package.json +1 -1
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @integrahub/vergefy-client@0.12.0
1
+ # @integrahub/vergefy-client@0.14.0
2
2
 
3
3
  A TypeScript SDK client for the your-vergefy-host.invalid API.
4
4
 
@@ -90,7 +90,7 @@ and is automatically generated by the
90
90
  [OpenAPI Generator](https://openapi-generator.tech) project:
91
91
 
92
92
  - API version: `2026-05-30`
93
- - Package version: `0.12.0`
93
+ - Package version: `0.14.0`
94
94
  - Generator version: `7.22.0`
95
95
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
96
96
 
@@ -11,10 +11,12 @@
11
11
  */
12
12
  import * as runtime from '../runtime';
13
13
  import { type DataResponseDTOFlagDTO } from '../models/DataResponseDTOFlagDTO';
14
+ import { type DataResponseDTOFlagEnvironmentDefinitionDTO } from '../models/DataResponseDTOFlagEnvironmentDefinitionDTO';
14
15
  import { type DataResponseDTOFlagEnvironmentValueDTO } from '../models/DataResponseDTOFlagEnvironmentValueDTO';
15
16
  import { type DataResponseDTOListFlagEnvironmentDefinitionDTO } from '../models/DataResponseDTOListFlagEnvironmentDefinitionDTO';
16
17
  import { type DataResponseDTOListFlagEvaluationResultDTO } from '../models/DataResponseDTOListFlagEvaluationResultDTO';
17
18
  import { type FlagCreateApiDTO } from '../models/FlagCreateApiDTO';
19
+ import { type FlagEnvironmentCreateApiDTO } from '../models/FlagEnvironmentCreateApiDTO';
18
20
  import { type FlagEnvironmentValueDTO } from '../models/FlagEnvironmentValueDTO';
19
21
  import { type FlagEvaluationRequestDTO } from '../models/FlagEvaluationRequestDTO';
20
22
  import { type FlagUpdateApiDTO } from '../models/FlagUpdateApiDTO';
@@ -91,6 +93,20 @@ export interface AFL008Request {
91
93
  vergefyVersion?: string;
92
94
  acceptTimezone?: string;
93
95
  }
96
+ export interface AFL009Request {
97
+ xAppAccountId: string;
98
+ flagEnvironmentCreateApiDTO: FlagEnvironmentCreateApiDTO;
99
+ acceptLanguage?: string;
100
+ vergefyVersion?: string;
101
+ acceptTimezone?: string;
102
+ }
103
+ export interface AFL010Request {
104
+ environment: string;
105
+ xAppAccountId: string;
106
+ acceptLanguage?: string;
107
+ vergefyVersion?: string;
108
+ acceptTimezone?: string;
109
+ }
94
110
  /**
95
111
  *
96
112
  */
@@ -207,6 +223,34 @@ export declare class APIAFLFlagApi extends runtime.BaseAPI {
207
223
  * AFL008 - List Flag Environments
208
224
  */
209
225
  aFL008(requestParameters: AFL008Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataResponseDTOListFlagEnvironmentDefinitionDTO>;
226
+ /**
227
+ * Creates request options for aFL009 without sending the request
228
+ */
229
+ aFL009RequestOpts(requestParameters: AFL009Request): Promise<runtime.RequestOpts>;
230
+ /**
231
+ * Defines a new environment for this workspace. Environments are tenant-defined: the three seeded at provisioning (PRODUCTION, PREVIEW, DEVELOPMENT) are a starting point, not the permitted set. The key is case-insensitive and becomes addressable immediately on AFL006 and AFL007.
232
+ * AFL009 - Define Flag Environment
233
+ */
234
+ aFL009Raw(requestParameters: AFL009Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataResponseDTOFlagEnvironmentDefinitionDTO>>;
235
+ /**
236
+ * Defines a new environment for this workspace. Environments are tenant-defined: the three seeded at provisioning (PRODUCTION, PREVIEW, DEVELOPMENT) are a starting point, not the permitted set. The key is case-insensitive and becomes addressable immediately on AFL006 and AFL007.
237
+ * AFL009 - Define Flag Environment
238
+ */
239
+ aFL009(requestParameters: AFL009Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataResponseDTOFlagEnvironmentDefinitionDTO>;
240
+ /**
241
+ * Creates request options for aFL010 without sending the request
242
+ */
243
+ aFL010RequestOpts(requestParameters: AFL010Request): Promise<runtime.RequestOpts>;
244
+ /**
245
+ * Removes an environment from this workspace. Refused with 400 while any flag still holds a value in it — deleting would discard that configuration irrecoverably behind what looks like an ordinary success. Clear the values first. Soft delete, so the key can be reused afterwards. A seeded built-in is deletable like any other.
246
+ * AFL010 - Delete Flag Environment
247
+ */
248
+ aFL010Raw(requestParameters: AFL010Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
249
+ /**
250
+ * Removes an environment from this workspace. Refused with 400 while any flag still holds a value in it — deleting would discard that configuration irrecoverably behind what looks like an ordinary success. Clear the values first. Soft delete, so the key can be reused afterwards. A seeded built-in is deletable like any other.
251
+ * AFL010 - Delete Flag Environment
252
+ */
253
+ aFL010(requestParameters: AFL010Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
210
254
  }
211
255
  /**
212
256
  * @export
@@ -25,10 +25,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
25
25
  exports.AFL004EntityStatusesEnum = exports.APIAFLFlagApi = void 0;
26
26
  const runtime = require("../runtime");
27
27
  const DataResponseDTOFlagDTO_1 = require("../models/DataResponseDTOFlagDTO");
28
+ const DataResponseDTOFlagEnvironmentDefinitionDTO_1 = require("../models/DataResponseDTOFlagEnvironmentDefinitionDTO");
28
29
  const DataResponseDTOFlagEnvironmentValueDTO_1 = require("../models/DataResponseDTOFlagEnvironmentValueDTO");
29
30
  const DataResponseDTOListFlagEnvironmentDefinitionDTO_1 = require("../models/DataResponseDTOListFlagEnvironmentDefinitionDTO");
30
31
  const DataResponseDTOListFlagEvaluationResultDTO_1 = require("../models/DataResponseDTOListFlagEvaluationResultDTO");
31
32
  const FlagCreateApiDTO_1 = require("../models/FlagCreateApiDTO");
33
+ const FlagEnvironmentCreateApiDTO_1 = require("../models/FlagEnvironmentCreateApiDTO");
32
34
  const FlagEnvironmentValueDTO_1 = require("../models/FlagEnvironmentValueDTO");
33
35
  const FlagEvaluationRequestDTO_1 = require("../models/FlagEvaluationRequestDTO");
34
36
  const FlagUpdateApiDTO_1 = require("../models/FlagUpdateApiDTO");
@@ -592,6 +594,132 @@ class APIAFLFlagApi extends runtime.BaseAPI {
592
594
  return yield response.value();
593
595
  });
594
596
  }
597
+ /**
598
+ * Creates request options for aFL009 without sending the request
599
+ */
600
+ aFL009RequestOpts(requestParameters) {
601
+ return __awaiter(this, void 0, void 0, function* () {
602
+ if (requestParameters['xAppAccountId'] == null) {
603
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling aFL009().');
604
+ }
605
+ if (requestParameters['flagEnvironmentCreateApiDTO'] == null) {
606
+ throw new runtime.RequiredError('flagEnvironmentCreateApiDTO', 'Required parameter "flagEnvironmentCreateApiDTO" was null or undefined when calling aFL009().');
607
+ }
608
+ const queryParameters = {};
609
+ const headerParameters = {};
610
+ headerParameters['Content-Type'] = 'application/json';
611
+ if (requestParameters['acceptLanguage'] != null) {
612
+ headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
613
+ }
614
+ if (requestParameters['xAppAccountId'] != null) {
615
+ headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
616
+ }
617
+ if (requestParameters['vergefyVersion'] != null) {
618
+ headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
619
+ }
620
+ if (requestParameters['acceptTimezone'] != null) {
621
+ headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
622
+ }
623
+ if (this.configuration && this.configuration.accessToken) {
624
+ const token = this.configuration.accessToken;
625
+ const tokenString = yield token("BearerAuth", []);
626
+ if (tokenString) {
627
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
628
+ }
629
+ }
630
+ let urlPath = `/api/flags/environments`;
631
+ return {
632
+ path: urlPath,
633
+ method: 'POST',
634
+ headers: headerParameters,
635
+ query: queryParameters,
636
+ body: (0, FlagEnvironmentCreateApiDTO_1.FlagEnvironmentCreateApiDTOToJSON)(requestParameters['flagEnvironmentCreateApiDTO']),
637
+ };
638
+ });
639
+ }
640
+ /**
641
+ * Defines a new environment for this workspace. Environments are tenant-defined: the three seeded at provisioning (PRODUCTION, PREVIEW, DEVELOPMENT) are a starting point, not the permitted set. The key is case-insensitive and becomes addressable immediately on AFL006 and AFL007.
642
+ * AFL009 - Define Flag Environment
643
+ */
644
+ aFL009Raw(requestParameters, initOverrides) {
645
+ return __awaiter(this, void 0, void 0, function* () {
646
+ const requestOptions = yield this.aFL009RequestOpts(requestParameters);
647
+ const response = yield this.request(requestOptions, initOverrides);
648
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, DataResponseDTOFlagEnvironmentDefinitionDTO_1.DataResponseDTOFlagEnvironmentDefinitionDTOFromJSON)(jsonValue));
649
+ });
650
+ }
651
+ /**
652
+ * Defines a new environment for this workspace. Environments are tenant-defined: the three seeded at provisioning (PRODUCTION, PREVIEW, DEVELOPMENT) are a starting point, not the permitted set. The key is case-insensitive and becomes addressable immediately on AFL006 and AFL007.
653
+ * AFL009 - Define Flag Environment
654
+ */
655
+ aFL009(requestParameters, initOverrides) {
656
+ return __awaiter(this, void 0, void 0, function* () {
657
+ const response = yield this.aFL009Raw(requestParameters, initOverrides);
658
+ return yield response.value();
659
+ });
660
+ }
661
+ /**
662
+ * Creates request options for aFL010 without sending the request
663
+ */
664
+ aFL010RequestOpts(requestParameters) {
665
+ return __awaiter(this, void 0, void 0, function* () {
666
+ if (requestParameters['environment'] == null) {
667
+ throw new runtime.RequiredError('environment', 'Required parameter "environment" was null or undefined when calling aFL010().');
668
+ }
669
+ if (requestParameters['xAppAccountId'] == null) {
670
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling aFL010().');
671
+ }
672
+ const queryParameters = {};
673
+ const headerParameters = {};
674
+ if (requestParameters['acceptLanguage'] != null) {
675
+ headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
676
+ }
677
+ if (requestParameters['xAppAccountId'] != null) {
678
+ headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
679
+ }
680
+ if (requestParameters['vergefyVersion'] != null) {
681
+ headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
682
+ }
683
+ if (requestParameters['acceptTimezone'] != null) {
684
+ headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
685
+ }
686
+ if (this.configuration && this.configuration.accessToken) {
687
+ const token = this.configuration.accessToken;
688
+ const tokenString = yield token("BearerAuth", []);
689
+ if (tokenString) {
690
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
691
+ }
692
+ }
693
+ let urlPath = `/api/flags/environments/{environment}`;
694
+ urlPath = urlPath.replace('{environment}', encodeURIComponent(String(requestParameters['environment'])));
695
+ return {
696
+ path: urlPath,
697
+ method: 'DELETE',
698
+ headers: headerParameters,
699
+ query: queryParameters,
700
+ };
701
+ });
702
+ }
703
+ /**
704
+ * Removes an environment from this workspace. Refused with 400 while any flag still holds a value in it — deleting would discard that configuration irrecoverably behind what looks like an ordinary success. Clear the values first. Soft delete, so the key can be reused afterwards. A seeded built-in is deletable like any other.
705
+ * AFL010 - Delete Flag Environment
706
+ */
707
+ aFL010Raw(requestParameters, initOverrides) {
708
+ return __awaiter(this, void 0, void 0, function* () {
709
+ const requestOptions = yield this.aFL010RequestOpts(requestParameters);
710
+ const response = yield this.request(requestOptions, initOverrides);
711
+ return new runtime.VoidApiResponse(response);
712
+ });
713
+ }
714
+ /**
715
+ * Removes an environment from this workspace. Refused with 400 while any flag still holds a value in it — deleting would discard that configuration irrecoverably behind what looks like an ordinary success. Clear the values first. Soft delete, so the key can be reused afterwards. A seeded built-in is deletable like any other.
716
+ * AFL010 - Delete Flag Environment
717
+ */
718
+ aFL010(requestParameters, initOverrides) {
719
+ return __awaiter(this, void 0, void 0, function* () {
720
+ yield this.aFL010Raw(requestParameters, initOverrides);
721
+ });
722
+ }
595
723
  }
596
724
  exports.APIAFLFlagApi = APIAFLFlagApi;
597
725
  /**
@@ -22,10 +22,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
22
22
  };
23
23
  import * as runtime from '../runtime';
24
24
  import { DataResponseDTOFlagDTOFromJSON, } from '../models/DataResponseDTOFlagDTO';
25
+ import { DataResponseDTOFlagEnvironmentDefinitionDTOFromJSON, } from '../models/DataResponseDTOFlagEnvironmentDefinitionDTO';
25
26
  import { DataResponseDTOFlagEnvironmentValueDTOFromJSON, } from '../models/DataResponseDTOFlagEnvironmentValueDTO';
26
27
  import { DataResponseDTOListFlagEnvironmentDefinitionDTOFromJSON, } from '../models/DataResponseDTOListFlagEnvironmentDefinitionDTO';
27
28
  import { DataResponseDTOListFlagEvaluationResultDTOFromJSON, } from '../models/DataResponseDTOListFlagEvaluationResultDTO';
28
29
  import { FlagCreateApiDTOToJSON, } from '../models/FlagCreateApiDTO';
30
+ import { FlagEnvironmentCreateApiDTOToJSON, } from '../models/FlagEnvironmentCreateApiDTO';
29
31
  import { FlagEnvironmentValueDTOToJSON, } from '../models/FlagEnvironmentValueDTO';
30
32
  import { FlagEvaluationRequestDTOToJSON, } from '../models/FlagEvaluationRequestDTO';
31
33
  import { FlagUpdateApiDTOToJSON, } from '../models/FlagUpdateApiDTO';
@@ -589,6 +591,132 @@ export class APIAFLFlagApi extends runtime.BaseAPI {
589
591
  return yield response.value();
590
592
  });
591
593
  }
594
+ /**
595
+ * Creates request options for aFL009 without sending the request
596
+ */
597
+ aFL009RequestOpts(requestParameters) {
598
+ return __awaiter(this, void 0, void 0, function* () {
599
+ if (requestParameters['xAppAccountId'] == null) {
600
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling aFL009().');
601
+ }
602
+ if (requestParameters['flagEnvironmentCreateApiDTO'] == null) {
603
+ throw new runtime.RequiredError('flagEnvironmentCreateApiDTO', 'Required parameter "flagEnvironmentCreateApiDTO" was null or undefined when calling aFL009().');
604
+ }
605
+ const queryParameters = {};
606
+ const headerParameters = {};
607
+ headerParameters['Content-Type'] = 'application/json';
608
+ if (requestParameters['acceptLanguage'] != null) {
609
+ headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
610
+ }
611
+ if (requestParameters['xAppAccountId'] != null) {
612
+ headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
613
+ }
614
+ if (requestParameters['vergefyVersion'] != null) {
615
+ headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
616
+ }
617
+ if (requestParameters['acceptTimezone'] != null) {
618
+ headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
619
+ }
620
+ if (this.configuration && this.configuration.accessToken) {
621
+ const token = this.configuration.accessToken;
622
+ const tokenString = yield token("BearerAuth", []);
623
+ if (tokenString) {
624
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
625
+ }
626
+ }
627
+ let urlPath = `/api/flags/environments`;
628
+ return {
629
+ path: urlPath,
630
+ method: 'POST',
631
+ headers: headerParameters,
632
+ query: queryParameters,
633
+ body: FlagEnvironmentCreateApiDTOToJSON(requestParameters['flagEnvironmentCreateApiDTO']),
634
+ };
635
+ });
636
+ }
637
+ /**
638
+ * Defines a new environment for this workspace. Environments are tenant-defined: the three seeded at provisioning (PRODUCTION, PREVIEW, DEVELOPMENT) are a starting point, not the permitted set. The key is case-insensitive and becomes addressable immediately on AFL006 and AFL007.
639
+ * AFL009 - Define Flag Environment
640
+ */
641
+ aFL009Raw(requestParameters, initOverrides) {
642
+ return __awaiter(this, void 0, void 0, function* () {
643
+ const requestOptions = yield this.aFL009RequestOpts(requestParameters);
644
+ const response = yield this.request(requestOptions, initOverrides);
645
+ return new runtime.JSONApiResponse(response, (jsonValue) => DataResponseDTOFlagEnvironmentDefinitionDTOFromJSON(jsonValue));
646
+ });
647
+ }
648
+ /**
649
+ * Defines a new environment for this workspace. Environments are tenant-defined: the three seeded at provisioning (PRODUCTION, PREVIEW, DEVELOPMENT) are a starting point, not the permitted set. The key is case-insensitive and becomes addressable immediately on AFL006 and AFL007.
650
+ * AFL009 - Define Flag Environment
651
+ */
652
+ aFL009(requestParameters, initOverrides) {
653
+ return __awaiter(this, void 0, void 0, function* () {
654
+ const response = yield this.aFL009Raw(requestParameters, initOverrides);
655
+ return yield response.value();
656
+ });
657
+ }
658
+ /**
659
+ * Creates request options for aFL010 without sending the request
660
+ */
661
+ aFL010RequestOpts(requestParameters) {
662
+ return __awaiter(this, void 0, void 0, function* () {
663
+ if (requestParameters['environment'] == null) {
664
+ throw new runtime.RequiredError('environment', 'Required parameter "environment" was null or undefined when calling aFL010().');
665
+ }
666
+ if (requestParameters['xAppAccountId'] == null) {
667
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling aFL010().');
668
+ }
669
+ const queryParameters = {};
670
+ const headerParameters = {};
671
+ if (requestParameters['acceptLanguage'] != null) {
672
+ headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
673
+ }
674
+ if (requestParameters['xAppAccountId'] != null) {
675
+ headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
676
+ }
677
+ if (requestParameters['vergefyVersion'] != null) {
678
+ headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
679
+ }
680
+ if (requestParameters['acceptTimezone'] != null) {
681
+ headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
682
+ }
683
+ if (this.configuration && this.configuration.accessToken) {
684
+ const token = this.configuration.accessToken;
685
+ const tokenString = yield token("BearerAuth", []);
686
+ if (tokenString) {
687
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
688
+ }
689
+ }
690
+ let urlPath = `/api/flags/environments/{environment}`;
691
+ urlPath = urlPath.replace('{environment}', encodeURIComponent(String(requestParameters['environment'])));
692
+ return {
693
+ path: urlPath,
694
+ method: 'DELETE',
695
+ headers: headerParameters,
696
+ query: queryParameters,
697
+ };
698
+ });
699
+ }
700
+ /**
701
+ * Removes an environment from this workspace. Refused with 400 while any flag still holds a value in it — deleting would discard that configuration irrecoverably behind what looks like an ordinary success. Clear the values first. Soft delete, so the key can be reused afterwards. A seeded built-in is deletable like any other.
702
+ * AFL010 - Delete Flag Environment
703
+ */
704
+ aFL010Raw(requestParameters, initOverrides) {
705
+ return __awaiter(this, void 0, void 0, function* () {
706
+ const requestOptions = yield this.aFL010RequestOpts(requestParameters);
707
+ const response = yield this.request(requestOptions, initOverrides);
708
+ return new runtime.VoidApiResponse(response);
709
+ });
710
+ }
711
+ /**
712
+ * Removes an environment from this workspace. Refused with 400 while any flag still holds a value in it — deleting would discard that configuration irrecoverably behind what looks like an ordinary success. Clear the values first. Soft delete, so the key can be reused afterwards. A seeded built-in is deletable like any other.
713
+ * AFL010 - Delete Flag Environment
714
+ */
715
+ aFL010(requestParameters, initOverrides) {
716
+ return __awaiter(this, void 0, void 0, function* () {
717
+ yield this.aFL010Raw(requestParameters, initOverrides);
718
+ });
719
+ }
592
720
  }
593
721
  /**
594
722
  * @export
@@ -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.12.0';
11
+ export const VERSION = '0.14.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() {
@@ -37,6 +37,12 @@ export const AffiliateTierHistoryDTOReasonEnum = {
37
37
  * Check if a given object implements the AffiliateTierHistoryDTO interface.
38
38
  */
39
39
  export function instanceOfAffiliateTierHistoryDTO(value) {
40
+ if (!('affiliateAccountId' in value) || value['affiliateAccountId'] === undefined)
41
+ return false;
42
+ if (!('newTierId' in value) || value['newTierId'] === undefined)
43
+ return false;
44
+ if (!('reason' in value) || value['reason'] === undefined)
45
+ return false;
40
46
  return true;
41
47
  }
42
48
  export function AffiliateTierHistoryDTOFromJSON(json) {
@@ -47,7 +53,7 @@ export function AffiliateTierHistoryDTOFromJSONTyped(json, ignoreDiscriminator)
47
53
  return json;
48
54
  }
49
55
  return {
50
- 'affiliateAccountId': json['affiliateAccountId'] == null ? undefined : json['affiliateAccountId'],
56
+ 'affiliateAccountId': json['affiliateAccountId'],
51
57
  'changedAt': json['changedAt'] == null ? undefined : (new Date(json['changedAt'])),
52
58
  'changedBy': json['changedBy'] == null ? undefined : json['changedBy'],
53
59
  'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
@@ -60,12 +66,12 @@ export function AffiliateTierHistoryDTOFromJSONTyped(json, ignoreDiscriminator)
60
66
  'lastModifiedAt': json['lastModifiedAt'] == null ? undefined : (new Date(json['lastModifiedAt'])),
61
67
  'lastModifiedBy': json['lastModifiedBy'] == null ? undefined : json['lastModifiedBy'],
62
68
  'namespaceKey': json['namespaceKey'] == null ? undefined : json['namespaceKey'],
63
- 'newTierId': json['newTierId'] == null ? undefined : json['newTierId'],
69
+ 'newTierId': json['newTierId'],
64
70
  'notes': json['notes'] == null ? undefined : json['notes'],
65
71
  'orderNumber': json['orderNumber'] == null ? undefined : json['orderNumber'],
66
72
  'permission': json['permission'] == null ? undefined : ElementPermissionBasedEntityEmbeddableDTOFromJSON(json['permission']),
67
73
  'previousTierId': json['previousTierId'] == null ? undefined : json['previousTierId'],
68
- 'reason': json['reason'] == null ? undefined : json['reason'],
74
+ 'reason': json['reason'],
69
75
  'salesAmountAtChange': json['salesAmountAtChange'] == null ? undefined : json['salesAmountAtChange'],
70
76
  'salesCountAtChange': json['salesCountAtChange'] == null ? undefined : json['salesCountAtChange'],
71
77
  'version': json['version'] == null ? undefined : json['version'],
@@ -32,6 +32,8 @@ export const AgentHierarchyCreateDTODelegationStrategyEnum = {
32
32
  export function instanceOfAgentHierarchyCreateDTO(value) {
33
33
  if (!('allowSubDelegation' in value) || value['allowSubDelegation'] === undefined)
34
34
  return false;
35
+ if (!('delegationRules' in value) || value['delegationRules'] === undefined)
36
+ return false;
35
37
  if (!('delegationStrategy' in value) || value['delegationStrategy'] === undefined)
36
38
  return false;
37
39
  if (!('priority' in value) || value['priority'] === undefined)
@@ -52,7 +54,7 @@ export function AgentHierarchyCreateDTOFromJSONTyped(json, ignoreDiscriminator)
52
54
  return {
53
55
  'active': json['active'] == null ? undefined : json['active'],
54
56
  'allowSubDelegation': json['allowSubDelegation'],
55
- 'delegationRules': json['delegationRules'] == null ? undefined : json['delegationRules'],
57
+ 'delegationRules': json['delegationRules'],
56
58
  'delegationStrategy': json['delegationStrategy'],
57
59
  'maxDelegations': json['maxDelegations'] == null ? undefined : json['maxDelegations'],
58
60
  'metadata': json['metadata'] == null ? undefined : json['metadata'],
@@ -26,6 +26,8 @@ export const ArticleChannelStockCreateDTOChannelTypeEnum = {
26
26
  export function instanceOfArticleChannelStockCreateDTO(value) {
27
27
  if (!('articleId' in value) || value['articleId'] === undefined)
28
28
  return false;
29
+ if (!('channelId' in value) || value['channelId'] === undefined)
30
+ return false;
29
31
  if (!('channelType' in value) || value['channelType'] === undefined)
30
32
  return false;
31
33
  return true;
@@ -39,7 +41,7 @@ export function ArticleChannelStockCreateDTOFromJSONTyped(json, ignoreDiscrimina
39
41
  }
40
42
  return {
41
43
  'articleId': json['articleId'],
42
- 'channelId': json['channelId'] == null ? undefined : json['channelId'],
44
+ 'channelId': json['channelId'],
43
45
  'channelType': json['channelType'],
44
46
  'quantityOnHand': json['quantityOnHand'] == null ? undefined : json['quantityOnHand'],
45
47
  'reservedQuantity': json['reservedQuantity'] == null ? undefined : json['reservedQuantity'],
@@ -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 { FlagEnvironmentDefinitionDTOFromJSON, FlagEnvironmentDefinitionDTOToJSON, } from './FlagEnvironmentDefinitionDTO';
15
+ /**
16
+ * Check if a given object implements the DataResponseDTOFlagEnvironmentDefinitionDTO interface.
17
+ */
18
+ export function instanceOfDataResponseDTOFlagEnvironmentDefinitionDTO(value) {
19
+ return true;
20
+ }
21
+ export function DataResponseDTOFlagEnvironmentDefinitionDTOFromJSON(json) {
22
+ return DataResponseDTOFlagEnvironmentDefinitionDTOFromJSONTyped(json, false);
23
+ }
24
+ export function DataResponseDTOFlagEnvironmentDefinitionDTOFromJSONTyped(json, ignoreDiscriminator) {
25
+ if (json == null) {
26
+ return json;
27
+ }
28
+ return {
29
+ 'data': json['data'] == null ? undefined : FlagEnvironmentDefinitionDTOFromJSON(json['data']),
30
+ };
31
+ }
32
+ export function DataResponseDTOFlagEnvironmentDefinitionDTOToJSON(json) {
33
+ return DataResponseDTOFlagEnvironmentDefinitionDTOToJSONTyped(json, false);
34
+ }
35
+ export function DataResponseDTOFlagEnvironmentDefinitionDTOToJSONTyped(value, ignoreDiscriminator = false) {
36
+ if (value == null) {
37
+ return value;
38
+ }
39
+ return {
40
+ 'data': FlagEnvironmentDefinitionDTOToJSON(value['data']),
41
+ };
42
+ }
@@ -38,6 +38,8 @@ export const DealCloseDTOEntityStatusEnum = {
38
38
  * Check if a given object implements the DealCloseDTO interface.
39
39
  */
40
40
  export function instanceOfDealCloseDTO(value) {
41
+ if (!('closeReason' in value) || value['closeReason'] === undefined)
42
+ return false;
41
43
  if (!('dealStage' in value) || value['dealStage'] === undefined)
42
44
  return false;
43
45
  return true;
@@ -51,7 +53,7 @@ export function DealCloseDTOFromJSONTyped(json, ignoreDiscriminator) {
51
53
  }
52
54
  return {
53
55
  'actualCloseDate': json['actualCloseDate'] == null ? undefined : json['actualCloseDate'],
54
- 'closeReason': json['closeReason'] == null ? undefined : json['closeReason'],
56
+ 'closeReason': json['closeReason'],
55
57
  'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
56
58
  'createdBy': json['createdBy'] == null ? undefined : json['createdBy'],
57
59
  'customId': json['customId'] == null ? undefined : json['customId'],
@@ -38,6 +38,8 @@ export const DealStageUpdateDTONewDealStageEnum = {
38
38
  * Check if a given object implements the DealStageUpdateDTO interface.
39
39
  */
40
40
  export function instanceOfDealStageUpdateDTO(value) {
41
+ if (!('newDealStage' in value) || value['newDealStage'] === undefined)
42
+ return false;
41
43
  if (!('newPipelineStageId' in value) || value['newPipelineStageId'] === undefined)
42
44
  return false;
43
45
  return true;
@@ -60,7 +62,7 @@ export function DealStageUpdateDTOFromJSONTyped(json, ignoreDiscriminator) {
60
62
  'lastModifiedAt': json['lastModifiedAt'] == null ? undefined : (new Date(json['lastModifiedAt'])),
61
63
  'lastModifiedBy': json['lastModifiedBy'] == null ? undefined : json['lastModifiedBy'],
62
64
  'namespaceKey': json['namespaceKey'] == null ? undefined : json['namespaceKey'],
63
- 'newDealStage': json['newDealStage'] == null ? undefined : json['newDealStage'],
65
+ 'newDealStage': json['newDealStage'],
64
66
  'newPipelineStageId': json['newPipelineStageId'],
65
67
  'newProbability': json['newProbability'] == null ? undefined : json['newProbability'],
66
68
  'notes': json['notes'] == null ? undefined : json['notes'],
@@ -0,0 +1,51 @@
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
+ /**
15
+ * Check if a given object implements the FlagEnvironmentCreateApiDTO interface.
16
+ */
17
+ export function instanceOfFlagEnvironmentCreateApiDTO(value) {
18
+ if (!('key' in value) || value['key'] === undefined)
19
+ return false;
20
+ if (!('name' in value) || value['name'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function FlagEnvironmentCreateApiDTOFromJSON(json) {
25
+ return FlagEnvironmentCreateApiDTOFromJSONTyped(json, false);
26
+ }
27
+ export function FlagEnvironmentCreateApiDTOFromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'description': json['description'] == null ? undefined : json['description'],
33
+ 'key': json['key'],
34
+ 'name': json['name'],
35
+ 'ordinal': json['ordinal'] == null ? undefined : json['ordinal'],
36
+ };
37
+ }
38
+ export function FlagEnvironmentCreateApiDTOToJSON(json) {
39
+ return FlagEnvironmentCreateApiDTOToJSONTyped(json, false);
40
+ }
41
+ export function FlagEnvironmentCreateApiDTOToJSONTyped(value, ignoreDiscriminator = false) {
42
+ if (value == null) {
43
+ return value;
44
+ }
45
+ return {
46
+ 'description': value['description'],
47
+ 'key': value['key'],
48
+ 'name': value['name'],
49
+ 'ordinal': value['ordinal'],
50
+ };
51
+ }
@@ -15,6 +15,10 @@
15
15
  * Check if a given object implements the FleetDeviceConsumableCreateDTO interface.
16
16
  */
17
17
  export function instanceOfFleetDeviceConsumableCreateDTO(value) {
18
+ if (!('capacity' in value) || value['capacity'] === undefined)
19
+ return false;
20
+ if (!('deviceId' in value) || value['deviceId'] === undefined)
21
+ return false;
18
22
  return true;
19
23
  }
20
24
  export function FleetDeviceConsumableCreateDTOFromJSON(json) {
@@ -25,10 +29,10 @@ export function FleetDeviceConsumableCreateDTOFromJSONTyped(json, ignoreDiscrimi
25
29
  return json;
26
30
  }
27
31
  return {
28
- 'capacity': json['capacity'] == null ? undefined : json['capacity'],
32
+ 'capacity': json['capacity'],
29
33
  'criticalThresholdPercent': json['criticalThresholdPercent'] == null ? undefined : json['criticalThresholdPercent'],
30
34
  'currentQuantity': json['currentQuantity'] == null ? undefined : json['currentQuantity'],
31
- 'deviceId': json['deviceId'] == null ? undefined : json['deviceId'],
35
+ 'deviceId': json['deviceId'],
32
36
  'inventoryStockId': json['inventoryStockId'] == null ? undefined : json['inventoryStockId'],
33
37
  'lowThresholdPercent': json['lowThresholdPercent'] == null ? undefined : json['lowThresholdPercent'],
34
38
  'name': json['name'] == null ? undefined : json['name'],