@integrahub/vergefy-client 0.9.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 (77) hide show
  1. package/README.md +2 -2
  2. package/dist/apis/AIIAGAgentApi.d.ts +4 -4
  3. package/dist/apis/AIIAGAgentApi.js +3 -8
  4. package/dist/apis/APIAFLFlagApi.d.ts +209 -0
  5. package/dist/apis/APIAFLFlagApi.js +554 -0
  6. package/dist/apis/APIAISOIntegrationShopifyApi.d.ts +22 -0
  7. package/dist/apis/APIAISOIntegrationShopifyApi.js +66 -0
  8. package/dist/apis/APIASUPSubscriptionPublicBridgeApi.d.ts +19 -0
  9. package/dist/apis/APIASUPSubscriptionPublicBridgeApi.js +54 -0
  10. package/dist/apis/PLATFORMLTNATenantManagementAccountApi.d.ts +25 -0
  11. package/dist/apis/PLATFORMLTNATenantManagementAccountApi.js +77 -0
  12. package/dist/apis/PLATFORMLTNTenantManagementApi.d.ts +21 -0
  13. package/dist/apis/PLATFORMLTNTenantManagementApi.js +60 -0
  14. package/dist/apis/index.d.ts +1 -0
  15. package/dist/apis/index.js +1 -0
  16. package/dist/esm/apis/AIIAGAgentApi.js +3 -8
  17. package/dist/esm/apis/APIAFLFlagApi.js +550 -0
  18. package/dist/esm/apis/APIAISOIntegrationShopifyApi.js +66 -0
  19. package/dist/esm/apis/APIASUPSubscriptionPublicBridgeApi.js +54 -0
  20. package/dist/esm/apis/PLATFORMLTNATenantManagementAccountApi.js +77 -0
  21. package/dist/esm/apis/PLATFORMLTNTenantManagementApi.js +60 -0
  22. package/dist/esm/apis/index.js +1 -0
  23. package/dist/esm/ext/telemetry.js +1 -1
  24. package/dist/esm/models/DataResponseDTOFlagDTO.js +42 -0
  25. package/dist/esm/models/DataResponseDTOFlagEnvironmentValueDTO.js +42 -0
  26. package/dist/esm/models/DataResponseDTOListFlagEvaluationResultDTO.js +42 -0
  27. package/dist/esm/models/DataResponseDTOListTenantDTO.js +42 -0
  28. package/dist/esm/models/EntitlementSummaryResponseDTO.js +58 -0
  29. package/dist/esm/models/EventDTO.js +2 -0
  30. package/dist/esm/models/FlagCreateApiDTO.js +67 -0
  31. package/dist/esm/models/FlagDTO.js +98 -0
  32. package/dist/esm/models/FlagEnvironmentValueDTO.js +83 -0
  33. package/dist/esm/models/FlagEvaluationRequestDTO.js +47 -0
  34. package/dist/esm/models/FlagEvaluationResultDTO.js +55 -0
  35. package/dist/esm/models/FlagUpdateApiDTO.js +61 -0
  36. package/dist/esm/models/FlagVariantDTO.js +85 -0
  37. package/dist/esm/models/PageFlagDTO.js +64 -0
  38. package/dist/esm/models/ShopifyConfigurationLookupDTO.js +59 -0
  39. package/dist/esm/models/index.js +14 -0
  40. package/dist/ext/telemetry.d.ts +1 -1
  41. package/dist/ext/telemetry.js +1 -1
  42. package/dist/models/CapabilityCreateApiDTO.d.ts +2 -4
  43. package/dist/models/CapabilityDTO.d.ts +2 -4
  44. package/dist/models/CapabilityUpdateApiDTO.d.ts +2 -4
  45. package/dist/models/DataResponseDTOFlagDTO.d.ts +33 -0
  46. package/dist/models/DataResponseDTOFlagDTO.js +49 -0
  47. package/dist/models/DataResponseDTOFlagEnvironmentValueDTO.d.ts +33 -0
  48. package/dist/models/DataResponseDTOFlagEnvironmentValueDTO.js +49 -0
  49. package/dist/models/DataResponseDTOListFlagEvaluationResultDTO.d.ts +33 -0
  50. package/dist/models/DataResponseDTOListFlagEvaluationResultDTO.js +49 -0
  51. package/dist/models/DataResponseDTOListTenantDTO.d.ts +33 -0
  52. package/dist/models/DataResponseDTOListTenantDTO.js +49 -0
  53. package/dist/models/EntitlementSummaryResponseDTO.d.ts +70 -0
  54. package/dist/models/EntitlementSummaryResponseDTO.js +66 -0
  55. package/dist/models/EventDTO.d.ts +6 -0
  56. package/dist/models/EventDTO.js +2 -0
  57. package/dist/models/FlagCreateApiDTO.d.ts +79 -0
  58. package/dist/models/FlagCreateApiDTO.js +75 -0
  59. package/dist/models/FlagDTO.d.ts +166 -0
  60. package/dist/models/FlagDTO.js +106 -0
  61. package/dist/models/FlagEnvironmentValueDTO.d.ts +140 -0
  62. package/dist/models/FlagEnvironmentValueDTO.js +91 -0
  63. package/dist/models/FlagEvaluationRequestDTO.d.ts +44 -0
  64. package/dist/models/FlagEvaluationRequestDTO.js +54 -0
  65. package/dist/models/FlagEvaluationResultDTO.d.ts +74 -0
  66. package/dist/models/FlagEvaluationResultDTO.js +62 -0
  67. package/dist/models/FlagUpdateApiDTO.d.ts +73 -0
  68. package/dist/models/FlagUpdateApiDTO.js +69 -0
  69. package/dist/models/FlagVariantDTO.d.ts +140 -0
  70. package/dist/models/FlagVariantDTO.js +93 -0
  71. package/dist/models/PageFlagDTO.d.ts +95 -0
  72. package/dist/models/PageFlagDTO.js +71 -0
  73. package/dist/models/ShopifyConfigurationLookupDTO.d.ts +63 -0
  74. package/dist/models/ShopifyConfigurationLookupDTO.js +67 -0
  75. package/dist/models/index.d.ts +14 -0
  76. package/dist/models/index.js +14 -0
  77. package/package.json +1 -1
@@ -34,6 +34,7 @@ const PageShopifyOrderDTO_1 = require("../models/PageShopifyOrderDTO");
34
34
  const PageShopifySyncDTO_1 = require("../models/PageShopifySyncDTO");
35
35
  const PriceDTO_1 = require("../models/PriceDTO");
36
36
  const PurchaseOrderDTO_1 = require("../models/PurchaseOrderDTO");
37
+ const ShopifyConfigurationLookupDTO_1 = require("../models/ShopifyConfigurationLookupDTO");
37
38
  const ShopifyConfigurationRegisterDTO_1 = require("../models/ShopifyConfigurationRegisterDTO");
38
39
  const ShopifyConfigurationRegistrationDTO_1 = require("../models/ShopifyConfigurationRegistrationDTO");
39
40
  const ShopifyConfigurationStatusDTO_1 = require("../models/ShopifyConfigurationStatusDTO");
@@ -559,6 +560,71 @@ class APIAISOIntegrationShopifyApi extends runtime.BaseAPI {
559
560
  return yield response.value();
560
561
  });
561
562
  }
563
+ /**
564
+ * Creates request options for aISF102 without sending the request
565
+ */
566
+ aISF102RequestOpts(requestParameters) {
567
+ return __awaiter(this, void 0, void 0, function* () {
568
+ if (requestParameters['shopDomain'] == null) {
569
+ throw new runtime.RequiredError('shopDomain', 'Required parameter "shopDomain" was null or undefined when calling aISF102().');
570
+ }
571
+ if (requestParameters['xAppAccountId'] == null) {
572
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling aISF102().');
573
+ }
574
+ const queryParameters = {};
575
+ if (requestParameters['shopDomain'] != null) {
576
+ queryParameters['shopDomain'] = requestParameters['shopDomain'];
577
+ }
578
+ const headerParameters = {};
579
+ if (requestParameters['acceptLanguage'] != null) {
580
+ headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
581
+ }
582
+ if (requestParameters['xAppAccountId'] != null) {
583
+ headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
584
+ }
585
+ if (requestParameters['vergefyVersion'] != null) {
586
+ headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
587
+ }
588
+ if (requestParameters['acceptTimezone'] != null) {
589
+ headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
590
+ }
591
+ if (this.configuration && this.configuration.accessToken) {
592
+ const token = this.configuration.accessToken;
593
+ const tokenString = yield token("BearerAuth", []);
594
+ if (tokenString) {
595
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
596
+ }
597
+ }
598
+ let urlPath = `/api/integrations/shopify/configurations/by-shop`;
599
+ return {
600
+ path: urlPath,
601
+ method: 'GET',
602
+ headers: headerParameters,
603
+ query: queryParameters,
604
+ };
605
+ });
606
+ }
607
+ /**
608
+ * Resolves a Shopify shop domain to the tenant and configuration that own it, so a caller holding only a shop domain can reach the configurationId-keyed endpoints. Returns no credentials. A REVOKED configuration still resolves — an uninstalled shop is a different answer from an unknown one, which is 404.
609
+ * AISF102 - Resolve a Shopify Configuration by Shop Domain
610
+ */
611
+ aISF102Raw(requestParameters, initOverrides) {
612
+ return __awaiter(this, void 0, void 0, function* () {
613
+ const requestOptions = yield this.aISF102RequestOpts(requestParameters);
614
+ const response = yield this.request(requestOptions, initOverrides);
615
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, ShopifyConfigurationLookupDTO_1.ShopifyConfigurationLookupDTOFromJSON)(jsonValue));
616
+ });
617
+ }
618
+ /**
619
+ * Resolves a Shopify shop domain to the tenant and configuration that own it, so a caller holding only a shop domain can reach the configurationId-keyed endpoints. Returns no credentials. A REVOKED configuration still resolves — an uninstalled shop is a different answer from an unknown one, which is 404.
620
+ * AISF102 - Resolve a Shopify Configuration by Shop Domain
621
+ */
622
+ aISF102(requestParameters, initOverrides) {
623
+ return __awaiter(this, void 0, void 0, function* () {
624
+ const response = yield this.aISF102Raw(requestParameters, initOverrides);
625
+ return yield response.value();
626
+ });
627
+ }
562
628
  /**
563
629
  * Creates request options for aISM001 without sending the request
564
630
  */
@@ -11,12 +11,17 @@
11
11
  */
12
12
  import * as runtime from '../runtime';
13
13
  import { type EntitledAppDTO } from '../models/EntitledAppDTO';
14
+ import { type EntitlementSummaryResponseDTO } from '../models/EntitlementSummaryResponseDTO';
14
15
  import { type QuotaCheckResponseDTO } from '../models/QuotaCheckResponseDTO';
15
16
  export interface ASUP001Request {
16
17
  featureKey: string;
17
18
  quantity?: number;
18
19
  xServiceTenantId?: string;
19
20
  }
21
+ export interface ASUP003Request {
22
+ featureKey: string;
23
+ xServiceTenantId?: string;
24
+ }
20
25
  /**
21
26
  *
22
27
  */
@@ -49,4 +54,18 @@ export declare class APIASUPSubscriptionPublicBridgeApi extends runtime.BaseAPI
49
54
  * ASUP002 - My Entitled Apps (Public Bridge)
50
55
  */
51
56
  aSUP002(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<EntitledAppDTO>>;
57
+ /**
58
+ * Creates request options for aSUP003 without sending the request
59
+ */
60
+ aSUP003RequestOpts(requestParameters: ASUP003Request): Promise<runtime.RequestOpts>;
61
+ /**
62
+ * Entitlement state for display: allocated, used, remaining and enforcement for a feature key. Distinguishes \'no entitlement record\' (known=false) from \'unlimited\' (known=true, allocated=null), which the quota-check gate deliberately conflates.
63
+ * ASUP003 - Entitlement Summary (Public Bridge)
64
+ */
65
+ aSUP003Raw(requestParameters: ASUP003Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<EntitlementSummaryResponseDTO>>;
66
+ /**
67
+ * Entitlement state for display: allocated, used, remaining and enforcement for a feature key. Distinguishes \'no entitlement record\' (known=false) from \'unlimited\' (known=true, allocated=null), which the quota-check gate deliberately conflates.
68
+ * ASUP003 - Entitlement Summary (Public Bridge)
69
+ */
70
+ aSUP003(requestParameters: ASUP003Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EntitlementSummaryResponseDTO>;
52
71
  }
@@ -25,6 +25,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
25
25
  exports.APIASUPSubscriptionPublicBridgeApi = void 0;
26
26
  const runtime = require("../runtime");
27
27
  const EntitledAppDTO_1 = require("../models/EntitledAppDTO");
28
+ const EntitlementSummaryResponseDTO_1 = require("../models/EntitlementSummaryResponseDTO");
28
29
  const QuotaCheckResponseDTO_1 = require("../models/QuotaCheckResponseDTO");
29
30
  /**
30
31
  *
@@ -130,5 +131,58 @@ class APIASUPSubscriptionPublicBridgeApi extends runtime.BaseAPI {
130
131
  return yield response.value();
131
132
  });
132
133
  }
134
+ /**
135
+ * Creates request options for aSUP003 without sending the request
136
+ */
137
+ aSUP003RequestOpts(requestParameters) {
138
+ return __awaiter(this, void 0, void 0, function* () {
139
+ if (requestParameters['featureKey'] == null) {
140
+ throw new runtime.RequiredError('featureKey', 'Required parameter "featureKey" was null or undefined when calling aSUP003().');
141
+ }
142
+ const queryParameters = {};
143
+ if (requestParameters['featureKey'] != null) {
144
+ queryParameters['featureKey'] = requestParameters['featureKey'];
145
+ }
146
+ const headerParameters = {};
147
+ if (requestParameters['xServiceTenantId'] != null) {
148
+ headerParameters['X-Service-Tenant-Id'] = String(requestParameters['xServiceTenantId']);
149
+ }
150
+ if (this.configuration && this.configuration.accessToken) {
151
+ const token = this.configuration.accessToken;
152
+ const tokenString = yield token("BearerAuth", []);
153
+ if (tokenString) {
154
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
155
+ }
156
+ }
157
+ let urlPath = `/pb/platform/entitlements/summary`;
158
+ return {
159
+ path: urlPath,
160
+ method: 'GET',
161
+ headers: headerParameters,
162
+ query: queryParameters,
163
+ };
164
+ });
165
+ }
166
+ /**
167
+ * Entitlement state for display: allocated, used, remaining and enforcement for a feature key. Distinguishes \'no entitlement record\' (known=false) from \'unlimited\' (known=true, allocated=null), which the quota-check gate deliberately conflates.
168
+ * ASUP003 - Entitlement Summary (Public Bridge)
169
+ */
170
+ aSUP003Raw(requestParameters, initOverrides) {
171
+ return __awaiter(this, void 0, void 0, function* () {
172
+ const requestOptions = yield this.aSUP003RequestOpts(requestParameters);
173
+ const response = yield this.request(requestOptions, initOverrides);
174
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, EntitlementSummaryResponseDTO_1.EntitlementSummaryResponseDTOFromJSON)(jsonValue));
175
+ });
176
+ }
177
+ /**
178
+ * Entitlement state for display: allocated, used, remaining and enforcement for a feature key. Distinguishes \'no entitlement record\' (known=false) from \'unlimited\' (known=true, allocated=null), which the quota-check gate deliberately conflates.
179
+ * ASUP003 - Entitlement Summary (Public Bridge)
180
+ */
181
+ aSUP003(requestParameters, initOverrides) {
182
+ return __awaiter(this, void 0, void 0, function* () {
183
+ const response = yield this.aSUP003Raw(requestParameters, initOverrides);
184
+ return yield response.value();
185
+ });
186
+ }
133
187
  }
134
188
  exports.APIASUPSubscriptionPublicBridgeApi = APIASUPSubscriptionPublicBridgeApi;
@@ -80,6 +80,17 @@ export interface LTN110Request {
80
80
  vergefyVersion?: string;
81
81
  acceptTimezone?: string;
82
82
  }
83
+ export interface LTN123Request {
84
+ search: string;
85
+ xAppAccountId: string;
86
+ includes?: Array<string>;
87
+ page?: number;
88
+ size?: number;
89
+ sort?: Array<string>;
90
+ acceptLanguage?: string;
91
+ vergefyVersion?: string;
92
+ acceptTimezone?: string;
93
+ }
83
94
  /**
84
95
  *
85
96
  */
@@ -196,4 +207,18 @@ export declare class PLATFORMLTNATenantManagementAccountApi extends runtime.Base
196
207
  * LTN110 - Update Account
197
208
  */
198
209
  lTN110(requestParameters: LTN110Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
210
+ /**
211
+ * Creates request options for lTN123 without sending the request
212
+ */
213
+ lTN123RequestOpts(requestParameters: LTN123Request): Promise<runtime.RequestOpts>;
214
+ /**
215
+ * Lists the accounts in the CALLER\'S OWN tenant. This is the within-tenant counterpart to LTN024: it takes no tenantId parameter, so it cannot address another tenant at all, and is therefore safe to expose to ordinary tenant users.
216
+ * LTN123 - Search My Tenant Accounts
217
+ */
218
+ lTN123Raw(requestParameters: LTN123Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PageAccountDTO>>;
219
+ /**
220
+ * Lists the accounts in the CALLER\'S OWN tenant. This is the within-tenant counterpart to LTN024: it takes no tenantId parameter, so it cannot address another tenant at all, and is therefore safe to expose to ordinary tenant users.
221
+ * LTN123 - Search My Tenant Accounts
222
+ */
223
+ lTN123(requestParameters: LTN123Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PageAccountDTO>;
199
224
  }
@@ -564,5 +564,82 @@ class PLATFORMLTNATenantManagementAccountApi extends runtime.BaseAPI {
564
564
  yield this.lTN110Raw(requestParameters, initOverrides);
565
565
  });
566
566
  }
567
+ /**
568
+ * Creates request options for lTN123 without sending the request
569
+ */
570
+ lTN123RequestOpts(requestParameters) {
571
+ return __awaiter(this, void 0, void 0, function* () {
572
+ if (requestParameters['search'] == null) {
573
+ throw new runtime.RequiredError('search', 'Required parameter "search" was null or undefined when calling lTN123().');
574
+ }
575
+ if (requestParameters['xAppAccountId'] == null) {
576
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling lTN123().');
577
+ }
578
+ const queryParameters = {};
579
+ if (requestParameters['search'] != null) {
580
+ queryParameters['search'] = requestParameters['search'];
581
+ }
582
+ if (requestParameters['includes'] != null) {
583
+ queryParameters['includes'] = requestParameters['includes'];
584
+ }
585
+ if (requestParameters['page'] != null) {
586
+ queryParameters['page'] = requestParameters['page'];
587
+ }
588
+ if (requestParameters['size'] != null) {
589
+ queryParameters['size'] = requestParameters['size'];
590
+ }
591
+ if (requestParameters['sort'] != null) {
592
+ queryParameters['sort'] = requestParameters['sort'];
593
+ }
594
+ const headerParameters = {};
595
+ if (requestParameters['acceptLanguage'] != null) {
596
+ headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
597
+ }
598
+ if (requestParameters['xAppAccountId'] != null) {
599
+ headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
600
+ }
601
+ if (requestParameters['vergefyVersion'] != null) {
602
+ headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
603
+ }
604
+ if (requestParameters['acceptTimezone'] != null) {
605
+ headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
606
+ }
607
+ if (this.configuration && this.configuration.accessToken) {
608
+ const token = this.configuration.accessToken;
609
+ const tokenString = yield token("BearerAuth", []);
610
+ if (tokenString) {
611
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
612
+ }
613
+ }
614
+ let urlPath = `/platform/accounts/my-tenant`;
615
+ return {
616
+ path: urlPath,
617
+ method: 'GET',
618
+ headers: headerParameters,
619
+ query: queryParameters,
620
+ };
621
+ });
622
+ }
623
+ /**
624
+ * Lists the accounts in the CALLER\'S OWN tenant. This is the within-tenant counterpart to LTN024: it takes no tenantId parameter, so it cannot address another tenant at all, and is therefore safe to expose to ordinary tenant users.
625
+ * LTN123 - Search My Tenant Accounts
626
+ */
627
+ lTN123Raw(requestParameters, initOverrides) {
628
+ return __awaiter(this, void 0, void 0, function* () {
629
+ const requestOptions = yield this.lTN123RequestOpts(requestParameters);
630
+ const response = yield this.request(requestOptions, initOverrides);
631
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, PageAccountDTO_1.PageAccountDTOFromJSON)(jsonValue));
632
+ });
633
+ }
634
+ /**
635
+ * Lists the accounts in the CALLER\'S OWN tenant. This is the within-tenant counterpart to LTN024: it takes no tenantId parameter, so it cannot address another tenant at all, and is therefore safe to expose to ordinary tenant users.
636
+ * LTN123 - Search My Tenant Accounts
637
+ */
638
+ lTN123(requestParameters, initOverrides) {
639
+ return __awaiter(this, void 0, void 0, function* () {
640
+ const response = yield this.lTN123Raw(requestParameters, initOverrides);
641
+ return yield response.value();
642
+ });
643
+ }
567
644
  }
568
645
  exports.PLATFORMLTNATenantManagementAccountApi = PLATFORMLTNATenantManagementAccountApi;
@@ -11,6 +11,7 @@
11
11
  */
12
12
  import * as runtime from '../runtime';
13
13
  import { type DataResponseDTO } from '../models/DataResponseDTO';
14
+ import { type DataResponseDTOListTenantDTO } from '../models/DataResponseDTOListTenantDTO';
14
15
  import { type Page } from '../models/Page';
15
16
  import { type TenantDTO } from '../models/TenantDTO';
16
17
  export interface LTN001Request {
@@ -58,6 +59,12 @@ export interface LTN047Request {
58
59
  vergefyVersion?: string;
59
60
  acceptTimezone?: string;
60
61
  }
62
+ export interface LTN124Request {
63
+ xAppAccountId: string;
64
+ acceptLanguage?: string;
65
+ vergefyVersion?: string;
66
+ acceptTimezone?: string;
67
+ }
61
68
  /**
62
69
  *
63
70
  */
@@ -132,6 +139,20 @@ export declare class PLATFORMLTNTenantManagementApi extends runtime.BaseAPI {
132
139
  * LTN047 - Create Tenant
133
140
  */
134
141
  lTN047(requestParameters: LTN047Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataResponseDTO>;
142
+ /**
143
+ * Creates request options for lTN124 without sending the request
144
+ */
145
+ lTN124RequestOpts(requestParameters: LTN124Request): Promise<runtime.RequestOpts>;
146
+ /**
147
+ * Lists the CALLER\'S OWN tenant plus every non-deleted tenant beneath it in the group hierarchy, nearest first. This is the within-tenant counterpart to LTN001: it takes no parameters at all, so it cannot inspect another group\'s structure, and is therefore safe to expose to ordinary tenant users.
148
+ * LTN124 - List My Tenant Group
149
+ */
150
+ lTN124Raw(requestParameters: LTN124Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataResponseDTOListTenantDTO>>;
151
+ /**
152
+ * Lists the CALLER\'S OWN tenant plus every non-deleted tenant beneath it in the group hierarchy, nearest first. This is the within-tenant counterpart to LTN001: it takes no parameters at all, so it cannot inspect another group\'s structure, and is therefore safe to expose to ordinary tenant users.
153
+ * LTN124 - List My Tenant Group
154
+ */
155
+ lTN124(requestParameters: LTN124Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataResponseDTOListTenantDTO>;
135
156
  }
136
157
  /**
137
158
  * @export
@@ -25,6 +25,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
25
25
  exports.LTN001EntityStatusesEnum = exports.PLATFORMLTNTenantManagementApi = void 0;
26
26
  const runtime = require("../runtime");
27
27
  const DataResponseDTO_1 = require("../models/DataResponseDTO");
28
+ const DataResponseDTOListTenantDTO_1 = require("../models/DataResponseDTOListTenantDTO");
28
29
  const Page_1 = require("../models/Page");
29
30
  const TenantDTO_1 = require("../models/TenantDTO");
30
31
  /**
@@ -375,6 +376,65 @@ class PLATFORMLTNTenantManagementApi extends runtime.BaseAPI {
375
376
  return yield response.value();
376
377
  });
377
378
  }
379
+ /**
380
+ * Creates request options for lTN124 without sending the request
381
+ */
382
+ lTN124RequestOpts(requestParameters) {
383
+ return __awaiter(this, void 0, void 0, function* () {
384
+ if (requestParameters['xAppAccountId'] == null) {
385
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling lTN124().');
386
+ }
387
+ const queryParameters = {};
388
+ const headerParameters = {};
389
+ if (requestParameters['acceptLanguage'] != null) {
390
+ headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
391
+ }
392
+ if (requestParameters['xAppAccountId'] != null) {
393
+ headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
394
+ }
395
+ if (requestParameters['vergefyVersion'] != null) {
396
+ headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
397
+ }
398
+ if (requestParameters['acceptTimezone'] != null) {
399
+ headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
400
+ }
401
+ if (this.configuration && this.configuration.accessToken) {
402
+ const token = this.configuration.accessToken;
403
+ const tokenString = yield token("BearerAuth", []);
404
+ if (tokenString) {
405
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
406
+ }
407
+ }
408
+ let urlPath = `/platform/tenants/my-group`;
409
+ return {
410
+ path: urlPath,
411
+ method: 'GET',
412
+ headers: headerParameters,
413
+ query: queryParameters,
414
+ };
415
+ });
416
+ }
417
+ /**
418
+ * Lists the CALLER\'S OWN tenant plus every non-deleted tenant beneath it in the group hierarchy, nearest first. This is the within-tenant counterpart to LTN001: it takes no parameters at all, so it cannot inspect another group\'s structure, and is therefore safe to expose to ordinary tenant users.
419
+ * LTN124 - List My Tenant Group
420
+ */
421
+ lTN124Raw(requestParameters, initOverrides) {
422
+ return __awaiter(this, void 0, void 0, function* () {
423
+ const requestOptions = yield this.lTN124RequestOpts(requestParameters);
424
+ const response = yield this.request(requestOptions, initOverrides);
425
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, DataResponseDTOListTenantDTO_1.DataResponseDTOListTenantDTOFromJSON)(jsonValue));
426
+ });
427
+ }
428
+ /**
429
+ * Lists the CALLER\'S OWN tenant plus every non-deleted tenant beneath it in the group hierarchy, nearest first. This is the within-tenant counterpart to LTN001: it takes no parameters at all, so it cannot inspect another group\'s structure, and is therefore safe to expose to ordinary tenant users.
430
+ * LTN124 - List My Tenant Group
431
+ */
432
+ lTN124(requestParameters, initOverrides) {
433
+ return __awaiter(this, void 0, void 0, function* () {
434
+ const response = yield this.lTN124Raw(requestParameters, initOverrides);
435
+ return yield response.value();
436
+ });
437
+ }
378
438
  }
379
439
  exports.PLATFORMLTNTenantManagementApi = PLATFORMLTNTenantManagementApi;
380
440
  /**
@@ -82,6 +82,7 @@ export * from './APIADSCouponDiscountApi';
82
82
  export * from './APIADTNotificationDeviceTokenApi';
83
83
  export * from './APIAETNotificationEmailTemplateApi';
84
84
  export * from './APIAEXExchangeApi';
85
+ export * from './APIAFLFlagApi';
85
86
  export * from './APIAFTFilterApi';
86
87
  export * from './APIAGMGamificationApi';
87
88
  export * from './APIAGRGoodsReceiptApi';
@@ -100,6 +100,7 @@ __exportStar(require("./APIADSCouponDiscountApi"), exports);
100
100
  __exportStar(require("./APIADTNotificationDeviceTokenApi"), exports);
101
101
  __exportStar(require("./APIAETNotificationEmailTemplateApi"), exports);
102
102
  __exportStar(require("./APIAEXExchangeApi"), exports);
103
+ __exportStar(require("./APIAFLFlagApi"), exports);
103
104
  __exportStar(require("./APIAFTFilterApi"), exports);
104
105
  __exportStar(require("./APIAGMGamificationApi"), exports);
105
106
  __exportStar(require("./APIAGRGoodsReceiptApi"), exports);
@@ -460,23 +460,18 @@ export class AIIAGAgentApi extends runtime.BaseAPI {
460
460
  });
461
461
  }
462
462
  /**
463
- * Resets the monthly usage counter for an AI agent
463
+ * Platform-operator only. Resets the monthly usage counter for ONE AI agent, identified by path id. Restricted to the system tenant: the counter is platform-owned operational data, so a tenant must not be able to clear its own.
464
464
  * IAG007 - Reset Monthly Usage
465
465
  */
466
466
  iAG007Raw(requestParameters, initOverrides) {
467
467
  return __awaiter(this, void 0, void 0, function* () {
468
468
  const requestOptions = yield this.iAG007RequestOpts(requestParameters);
469
469
  const response = yield this.request(requestOptions, initOverrides);
470
- if (this.isJsonMime(response.headers.get('content-type'))) {
471
- return new runtime.JSONApiResponse(response);
472
- }
473
- else {
474
- return new runtime.TextApiResponse(response);
475
- }
470
+ return new runtime.JSONApiResponse(response, (jsonValue) => AgentDTOFromJSON(jsonValue));
476
471
  });
477
472
  }
478
473
  /**
479
- * Resets the monthly usage counter for an AI agent
474
+ * Platform-operator only. Resets the monthly usage counter for ONE AI agent, identified by path id. Restricted to the system tenant: the counter is platform-owned operational data, so a tenant must not be able to clear its own.
480
475
  * IAG007 - Reset Monthly Usage
481
476
  */
482
477
  iAG007(requestParameters, initOverrides) {