@integrahub/vergefy-client 0.9.0 → 0.10.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.
- package/README.md +2 -2
- package/dist/apis/AIIAGAgentApi.d.ts +4 -4
- package/dist/apis/AIIAGAgentApi.js +3 -8
- package/dist/apis/APIAISOIntegrationShopifyApi.d.ts +22 -0
- package/dist/apis/APIAISOIntegrationShopifyApi.js +66 -0
- package/dist/apis/APIASUPSubscriptionPublicBridgeApi.d.ts +19 -0
- package/dist/apis/APIASUPSubscriptionPublicBridgeApi.js +54 -0
- package/dist/apis/PLATFORMLTNATenantManagementAccountApi.d.ts +25 -0
- package/dist/apis/PLATFORMLTNATenantManagementAccountApi.js +77 -0
- package/dist/apis/PLATFORMLTNTenantManagementApi.d.ts +21 -0
- package/dist/apis/PLATFORMLTNTenantManagementApi.js +60 -0
- package/dist/esm/apis/AIIAGAgentApi.js +3 -8
- package/dist/esm/apis/APIAISOIntegrationShopifyApi.js +66 -0
- package/dist/esm/apis/APIASUPSubscriptionPublicBridgeApi.js +54 -0
- package/dist/esm/apis/PLATFORMLTNATenantManagementAccountApi.js +77 -0
- package/dist/esm/apis/PLATFORMLTNTenantManagementApi.js +60 -0
- package/dist/esm/ext/telemetry.js +1 -1
- package/dist/esm/models/DataResponseDTOListTenantDTO.js +42 -0
- package/dist/esm/models/EntitlementSummaryResponseDTO.js +58 -0
- package/dist/esm/models/ShopifyConfigurationLookupDTO.js +59 -0
- package/dist/esm/models/index.js +3 -0
- package/dist/ext/telemetry.d.ts +1 -1
- package/dist/ext/telemetry.js +1 -1
- package/dist/models/CapabilityCreateApiDTO.d.ts +2 -4
- package/dist/models/CapabilityDTO.d.ts +2 -4
- package/dist/models/CapabilityUpdateApiDTO.d.ts +2 -4
- package/dist/models/DataResponseDTOListTenantDTO.d.ts +33 -0
- package/dist/models/DataResponseDTOListTenantDTO.js +49 -0
- package/dist/models/EntitlementSummaryResponseDTO.d.ts +70 -0
- package/dist/models/EntitlementSummaryResponseDTO.js +66 -0
- package/dist/models/ShopifyConfigurationLookupDTO.d.ts +63 -0
- package/dist/models/ShopifyConfigurationLookupDTO.js +67 -0
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @integrahub/vergefy-client@0.
|
|
1
|
+
# @integrahub/vergefy-client@0.10.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.
|
|
93
|
+
- Package version: `0.10.0`
|
|
94
94
|
- Generator version: `7.22.0`
|
|
95
95
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
96
96
|
|
|
@@ -387,15 +387,15 @@ export declare class AIIAGAgentApi extends runtime.BaseAPI {
|
|
|
387
387
|
*/
|
|
388
388
|
iAG007RequestOpts(requestParameters: IAG007Request): Promise<runtime.RequestOpts>;
|
|
389
389
|
/**
|
|
390
|
-
* Resets the monthly usage counter for
|
|
390
|
+
* 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.
|
|
391
391
|
* IAG007 - Reset Monthly Usage
|
|
392
392
|
*/
|
|
393
|
-
iAG007Raw(requestParameters: IAG007Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
393
|
+
iAG007Raw(requestParameters: IAG007Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AgentDTO>>;
|
|
394
394
|
/**
|
|
395
|
-
* Resets the monthly usage counter for
|
|
395
|
+
* 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.
|
|
396
396
|
* IAG007 - Reset Monthly Usage
|
|
397
397
|
*/
|
|
398
|
-
iAG007(requestParameters: IAG007Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
398
|
+
iAG007(requestParameters: IAG007Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgentDTO>;
|
|
399
399
|
/**
|
|
400
400
|
* Creates request options for iAG008 without sending the request
|
|
401
401
|
*/
|
|
@@ -463,23 +463,18 @@ class AIIAGAgentApi extends runtime.BaseAPI {
|
|
|
463
463
|
});
|
|
464
464
|
}
|
|
465
465
|
/**
|
|
466
|
-
* Resets the monthly usage counter for
|
|
466
|
+
* 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.
|
|
467
467
|
* IAG007 - Reset Monthly Usage
|
|
468
468
|
*/
|
|
469
469
|
iAG007Raw(requestParameters, initOverrides) {
|
|
470
470
|
return __awaiter(this, void 0, void 0, function* () {
|
|
471
471
|
const requestOptions = yield this.iAG007RequestOpts(requestParameters);
|
|
472
472
|
const response = yield this.request(requestOptions, initOverrides);
|
|
473
|
-
|
|
474
|
-
return new runtime.JSONApiResponse(response);
|
|
475
|
-
}
|
|
476
|
-
else {
|
|
477
|
-
return new runtime.TextApiResponse(response);
|
|
478
|
-
}
|
|
473
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, AgentDTO_1.AgentDTOFromJSON)(jsonValue));
|
|
479
474
|
});
|
|
480
475
|
}
|
|
481
476
|
/**
|
|
482
|
-
* Resets the monthly usage counter for
|
|
477
|
+
* 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.
|
|
483
478
|
* IAG007 - Reset Monthly Usage
|
|
484
479
|
*/
|
|
485
480
|
iAG007(requestParameters, initOverrides) {
|
|
@@ -20,6 +20,7 @@ import { type PageShopifyOrderDTO } from '../models/PageShopifyOrderDTO';
|
|
|
20
20
|
import { type PageShopifySyncDTO } from '../models/PageShopifySyncDTO';
|
|
21
21
|
import { type PriceDTO } from '../models/PriceDTO';
|
|
22
22
|
import { type PurchaseOrderDTO } from '../models/PurchaseOrderDTO';
|
|
23
|
+
import { type ShopifyConfigurationLookupDTO } from '../models/ShopifyConfigurationLookupDTO';
|
|
23
24
|
import { type ShopifyConfigurationRegisterDTO } from '../models/ShopifyConfigurationRegisterDTO';
|
|
24
25
|
import { type ShopifyConfigurationRegistrationDTO } from '../models/ShopifyConfigurationRegistrationDTO';
|
|
25
26
|
import { type ShopifyConfigurationStatusDTO } from '../models/ShopifyConfigurationStatusDTO';
|
|
@@ -86,6 +87,13 @@ export interface AISF101Request {
|
|
|
86
87
|
vergefyVersion?: string;
|
|
87
88
|
acceptTimezone?: string;
|
|
88
89
|
}
|
|
90
|
+
export interface AISF102Request {
|
|
91
|
+
shopDomain: string;
|
|
92
|
+
xAppAccountId: string;
|
|
93
|
+
acceptLanguage?: string;
|
|
94
|
+
vergefyVersion?: string;
|
|
95
|
+
acceptTimezone?: string;
|
|
96
|
+
}
|
|
89
97
|
export interface AISM001Request {
|
|
90
98
|
shopifyId: string;
|
|
91
99
|
xAppAccountId: string;
|
|
@@ -428,6 +436,20 @@ export declare class APIAISOIntegrationShopifyApi extends runtime.BaseAPI {
|
|
|
428
436
|
* AISF101 - Get Shopify Connection Status
|
|
429
437
|
*/
|
|
430
438
|
aISF101(requestParameters: AISF101Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ShopifyConfigurationStatusDTO>;
|
|
439
|
+
/**
|
|
440
|
+
* Creates request options for aISF102 without sending the request
|
|
441
|
+
*/
|
|
442
|
+
aISF102RequestOpts(requestParameters: AISF102Request): Promise<runtime.RequestOpts>;
|
|
443
|
+
/**
|
|
444
|
+
* 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.
|
|
445
|
+
* AISF102 - Resolve a Shopify Configuration by Shop Domain
|
|
446
|
+
*/
|
|
447
|
+
aISF102Raw(requestParameters: AISF102Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ShopifyConfigurationLookupDTO>>;
|
|
448
|
+
/**
|
|
449
|
+
* 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.
|
|
450
|
+
* AISF102 - Resolve a Shopify Configuration by Shop Domain
|
|
451
|
+
*/
|
|
452
|
+
aISF102(requestParameters: AISF102Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ShopifyConfigurationLookupDTO>;
|
|
431
453
|
/**
|
|
432
454
|
* Creates request options for aISM001 without sending the request
|
|
433
455
|
*/
|
|
@@ -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
|
/**
|
|
@@ -460,23 +460,18 @@ export class AIIAGAgentApi extends runtime.BaseAPI {
|
|
|
460
460
|
});
|
|
461
461
|
}
|
|
462
462
|
/**
|
|
463
|
-
* Resets the monthly usage counter for
|
|
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
|
-
|
|
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
|
|
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) {
|
|
@@ -31,6 +31,7 @@ import { PageShopifyOrderDTOFromJSON, } from '../models/PageShopifyOrderDTO';
|
|
|
31
31
|
import { PageShopifySyncDTOFromJSON, } from '../models/PageShopifySyncDTO';
|
|
32
32
|
import { PriceDTOToJSON, } from '../models/PriceDTO';
|
|
33
33
|
import { PurchaseOrderDTOToJSON, } from '../models/PurchaseOrderDTO';
|
|
34
|
+
import { ShopifyConfigurationLookupDTOFromJSON, } from '../models/ShopifyConfigurationLookupDTO';
|
|
34
35
|
import { ShopifyConfigurationRegisterDTOToJSON, } from '../models/ShopifyConfigurationRegisterDTO';
|
|
35
36
|
import { ShopifyConfigurationRegistrationDTOFromJSON, } from '../models/ShopifyConfigurationRegistrationDTO';
|
|
36
37
|
import { ShopifyConfigurationStatusDTOFromJSON, } from '../models/ShopifyConfigurationStatusDTO';
|
|
@@ -556,6 +557,71 @@ export class APIAISOIntegrationShopifyApi extends runtime.BaseAPI {
|
|
|
556
557
|
return yield response.value();
|
|
557
558
|
});
|
|
558
559
|
}
|
|
560
|
+
/**
|
|
561
|
+
* Creates request options for aISF102 without sending the request
|
|
562
|
+
*/
|
|
563
|
+
aISF102RequestOpts(requestParameters) {
|
|
564
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
565
|
+
if (requestParameters['shopDomain'] == null) {
|
|
566
|
+
throw new runtime.RequiredError('shopDomain', 'Required parameter "shopDomain" was null or undefined when calling aISF102().');
|
|
567
|
+
}
|
|
568
|
+
if (requestParameters['xAppAccountId'] == null) {
|
|
569
|
+
throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling aISF102().');
|
|
570
|
+
}
|
|
571
|
+
const queryParameters = {};
|
|
572
|
+
if (requestParameters['shopDomain'] != null) {
|
|
573
|
+
queryParameters['shopDomain'] = requestParameters['shopDomain'];
|
|
574
|
+
}
|
|
575
|
+
const headerParameters = {};
|
|
576
|
+
if (requestParameters['acceptLanguage'] != null) {
|
|
577
|
+
headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
|
|
578
|
+
}
|
|
579
|
+
if (requestParameters['xAppAccountId'] != null) {
|
|
580
|
+
headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
|
|
581
|
+
}
|
|
582
|
+
if (requestParameters['vergefyVersion'] != null) {
|
|
583
|
+
headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
|
|
584
|
+
}
|
|
585
|
+
if (requestParameters['acceptTimezone'] != null) {
|
|
586
|
+
headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
|
|
587
|
+
}
|
|
588
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
589
|
+
const token = this.configuration.accessToken;
|
|
590
|
+
const tokenString = yield token("BearerAuth", []);
|
|
591
|
+
if (tokenString) {
|
|
592
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
593
|
+
}
|
|
594
|
+
}
|
|
595
|
+
let urlPath = `/api/integrations/shopify/configurations/by-shop`;
|
|
596
|
+
return {
|
|
597
|
+
path: urlPath,
|
|
598
|
+
method: 'GET',
|
|
599
|
+
headers: headerParameters,
|
|
600
|
+
query: queryParameters,
|
|
601
|
+
};
|
|
602
|
+
});
|
|
603
|
+
}
|
|
604
|
+
/**
|
|
605
|
+
* 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.
|
|
606
|
+
* AISF102 - Resolve a Shopify Configuration by Shop Domain
|
|
607
|
+
*/
|
|
608
|
+
aISF102Raw(requestParameters, initOverrides) {
|
|
609
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
610
|
+
const requestOptions = yield this.aISF102RequestOpts(requestParameters);
|
|
611
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
612
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ShopifyConfigurationLookupDTOFromJSON(jsonValue));
|
|
613
|
+
});
|
|
614
|
+
}
|
|
615
|
+
/**
|
|
616
|
+
* 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.
|
|
617
|
+
* AISF102 - Resolve a Shopify Configuration by Shop Domain
|
|
618
|
+
*/
|
|
619
|
+
aISF102(requestParameters, initOverrides) {
|
|
620
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
621
|
+
const response = yield this.aISF102Raw(requestParameters, initOverrides);
|
|
622
|
+
return yield response.value();
|
|
623
|
+
});
|
|
624
|
+
}
|
|
559
625
|
/**
|
|
560
626
|
* Creates request options for aISM001 without sending the request
|
|
561
627
|
*/
|