@seekora-ai/admin-api 1.2.14 → 1.2.15-stage-20260517100714
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 +19 -2
- package/api.ts +994 -16
- package/dist/api.d.ts +655 -4
- package/dist/api.js +669 -11
- package/dist/esm/api.d.ts +655 -4
- package/dist/esm/api.js +652 -7
- package/package.json +1 -1
- package/seekora-ai-admin-api-1.2.15-stage-20260517100714.tgz +0 -0
- package/seekora-ai-admin-api-1.2.14.tgz +0 -0
package/dist/api.js
CHANGED
|
@@ -30,10 +30,11 @@ exports.CompanyConfigApiFactory = exports.CompanyConfigApiFp = exports.CompanyCo
|
|
|
30
30
|
exports.ConnectorPipelinesApiAxiosParamCreator = exports.ConnectorOAuthApi = exports.ConnectorOAuthApiFactory = exports.ConnectorOAuthApiFp = exports.ConnectorOAuthApiAxiosParamCreator = exports.ConnectorDefinitionsApi = exports.ConnectorDefinitionsApiFactory = exports.ConnectorDefinitionsApiFp = exports.ConnectorDefinitionsApiAxiosParamCreator = exports.ConnectorAdminTransformationsApi = exports.ConnectorAdminTransformationsApiFactory = exports.ConnectorAdminTransformationsApiFp = exports.ConnectorAdminTransformationsApiAxiosParamCreator = exports.ConnectorAdminTasksApi = exports.ConnectorAdminTasksApiFactory = exports.ConnectorAdminTasksApiFp = exports.ConnectorAdminTasksApiAxiosParamCreator = exports.ConnectorAdminTaskGroupsApi = exports.ConnectorAdminTaskGroupsApiFactory = exports.ConnectorAdminTaskGroupsApiFp = exports.ConnectorAdminTaskGroupsApiAxiosParamCreator = exports.ConnectorAdminStoreUploadsApi = exports.ConnectorAdminStoreUploadsApiFactory = exports.ConnectorAdminStoreUploadsApiFp = exports.ConnectorAdminStoreUploadsApiAxiosParamCreator = exports.ConnectorAdminSourcesApi = exports.ConnectorAdminSourcesApiFactory = exports.ConnectorAdminSourcesApiFp = exports.ConnectorAdminSourcesApiAxiosParamCreator = exports.ConnectorAdminSecretsApi = exports.ConnectorAdminSecretsApiFactory = exports.ConnectorAdminSecretsApiFp = exports.ConnectorAdminSecretsApiAxiosParamCreator = exports.ConnectorAdminRunsApi = exports.ConnectorAdminRunsApiFactory = exports.ConnectorAdminRunsApiFp = exports.ConnectorAdminRunsApiAxiosParamCreator = exports.ConnectorAdminDiscoveryApi = exports.ConnectorAdminDiscoveryApiFactory = exports.ConnectorAdminDiscoveryApiFp = exports.ConnectorAdminDiscoveryApiAxiosParamCreator = exports.ConnectorAdminDestinationsApi = exports.ConnectorAdminDestinationsApiFactory = exports.ConnectorAdminDestinationsApiFp = exports.ConnectorAdminDestinationsApiAxiosParamCreator = exports.ConnectorAdminAuthApi = exports.ConnectorAdminAuthApiFactory = exports.ConnectorAdminAuthApiFp = exports.ConnectorAdminAuthApiAxiosParamCreator = exports.CompanyConfigApi = void 0;
|
|
31
31
|
exports.CustomStopwordsApiFp = exports.CustomStopwordsApiAxiosParamCreator = exports.CustomEventsAnalyticsApi = exports.CustomEventsAnalyticsApiFactory = exports.CustomEventsAnalyticsApiFp = exports.CustomEventsAnalyticsApiAxiosParamCreator = exports.CustomEventsApi = exports.CustomEventsApiFactory = exports.CustomEventsApiFp = exports.CustomEventsApiAxiosParamCreator = exports.CreditsTransactionsGetTypeEnum = exports.CreditsApi = exports.CreditsApiFactory = exports.CreditsApiFp = exports.CreditsApiAxiosParamCreator = exports.ConsentApi = exports.ConsentApiFactory = exports.ConsentApiFp = exports.ConsentApiAxiosParamCreator = exports.ConnectorsApi = exports.ConnectorsApiFactory = exports.ConnectorsApiFp = exports.ConnectorsApiAxiosParamCreator = exports.ConnectorSourcesApi = exports.ConnectorSourcesApiFactory = exports.ConnectorSourcesApiFp = exports.ConnectorSourcesApiAxiosParamCreator = exports.ConnectorPublicTasksApi = exports.ConnectorPublicTasksApiFactory = exports.ConnectorPublicTasksApiFp = exports.ConnectorPublicTasksApiAxiosParamCreator = exports.ConnectorPublicSourcesApi = exports.ConnectorPublicSourcesApiFactory = exports.ConnectorPublicSourcesApiFp = exports.ConnectorPublicSourcesApiAxiosParamCreator = exports.ConnectorPublicRunsApi = exports.ConnectorPublicRunsApiFactory = exports.ConnectorPublicRunsApiFp = exports.ConnectorPublicRunsApiAxiosParamCreator = exports.ConnectorPublicDestinationsApi = exports.ConnectorPublicDestinationsApiFactory = exports.ConnectorPublicDestinationsApiFp = exports.ConnectorPublicDestinationsApiAxiosParamCreator = exports.ConnectorPublicAuthApi = exports.ConnectorPublicAuthApiFactory = exports.ConnectorPublicAuthApiFp = exports.ConnectorPublicAuthApiAxiosParamCreator = exports.ConnectorPipelinesApi = exports.ConnectorPipelinesApiFactory = exports.ConnectorPipelinesApiFp = void 0;
|
|
32
32
|
exports.ForgeApi = exports.ForgeApiFactory = exports.ForgeApiFp = exports.ForgeApiAxiosParamCreator = exports.FiltersApi = exports.FiltersApiFactory = exports.FiltersApiFp = exports.FiltersApiAxiosParamCreator = exports.FeatureLimitsAdminApi = exports.FeatureLimitsAdminApiFactory = exports.FeatureLimitsAdminApiFp = exports.FeatureLimitsAdminApiAxiosParamCreator = exports.FeatureLimitsApi = exports.FeatureLimitsApiFactory = exports.FeatureLimitsApiFp = exports.FeatureLimitsApiAxiosParamCreator = exports.FeatureFlagsApi = exports.FeatureFlagsApiFactory = exports.FeatureFlagsApiFp = exports.FeatureFlagsApiAxiosParamCreator = exports.ExternalAPINotificationsApi = exports.ExternalAPINotificationsApiFactory = exports.ExternalAPINotificationsApiFp = exports.ExternalAPINotificationsApiAxiosParamCreator = exports.ExperimentsApi = exports.ExperimentsApiFactory = exports.ExperimentsApiFp = exports.ExperimentsApiAxiosParamCreator = exports.DocumentsApi = exports.DocumentsApiFactory = exports.DocumentsApiFp = exports.DocumentsApiAxiosParamCreator = exports.DocumentationApi = exports.DocumentationApiFactory = exports.DocumentationApiFp = exports.DocumentationApiAxiosParamCreator = exports.DefaultMenuManagementApi = exports.DefaultMenuManagementApiFactory = exports.DefaultMenuManagementApiFp = exports.DefaultMenuManagementApiAxiosParamCreator = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.DataQualityApi = exports.DataQualityApiFactory = exports.DataQualityApiFp = exports.DataQualityApiAxiosParamCreator = exports.CustomStopwordsApi = exports.CustomStopwordsApiFactory = void 0;
|
|
33
|
-
exports.
|
|
34
|
-
exports.
|
|
35
|
-
exports.
|
|
36
|
-
exports.
|
|
33
|
+
exports.MenuRouteMetricsAdminApiFp = exports.MenuRouteMetricsAdminApiAxiosParamCreator = exports.MenuRouteMetricGetFormnameEnum = exports.MenuRouteMetricGetRouteEnum = exports.MenuRouteMetricsApi = exports.MenuRouteMetricsApiFactory = exports.MenuRouteMetricsApiFp = exports.MenuRouteMetricsApiAxiosParamCreator = exports.MenuManagementApi = exports.MenuManagementApiFactory = exports.MenuManagementApiFp = exports.MenuManagementApiAxiosParamCreator = exports.LimitsApi = exports.LimitsApiFactory = exports.LimitsApiFp = exports.LimitsApiAxiosParamCreator = exports.JourneyBuilderApi = exports.JourneyBuilderApiFactory = exports.JourneyBuilderApiFp = exports.JourneyBuilderApiAxiosParamCreator = exports.AdminAnalyticsStoreXStoreIDQueriesItemPerformanceGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDQueriesItemPerformanceGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDItemsTrendsGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDItemsTrendsGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDItemsTrendsGetGranularityEnum = exports.AdminAnalyticsStoreXStoreIDItemsPerformanceGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDItemsPerformanceGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDItemsItemIdInsightsGetGroupByEnum = exports.AdminAnalyticsStoreXStoreIDItemsItemIdInsightsGetCompareTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDItemsItemIdInsightsGetTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDItemsGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDItemsGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDItemsDiscoveryGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDItemsDiscoveryGetSortByEnum = exports.ItemAnalyticsApi = exports.ItemAnalyticsApiFactory = exports.ItemAnalyticsApiFp = exports.ItemAnalyticsApiAxiosParamCreator = exports.InternalConnectorWebhooksApi = exports.InternalConnectorWebhooksApiFactory = exports.InternalConnectorWebhooksApiFp = exports.InternalConnectorWebhooksApiAxiosParamCreator = exports.InternalApi = exports.InternalApiFactory = exports.InternalApiFp = exports.InternalApiAxiosParamCreator = exports.GDPRApi = exports.GDPRApiFactory = exports.GDPRApiFp = exports.GDPRApiAxiosParamCreator = void 0;
|
|
34
|
+
exports.PaymentsApiFactory = exports.PaymentsApiFp = exports.PaymentsApiAxiosParamCreator = exports.PaymentGatewayApi = exports.PaymentGatewayApiFactory = exports.PaymentGatewayApiFp = exports.PaymentGatewayApiAxiosParamCreator = exports.ParentMenusApi = exports.ParentMenusApiFactory = exports.ParentMenusApiFp = exports.ParentMenusApiAxiosParamCreator = exports.OrganizationsApi = exports.OrganizationsApiFactory = exports.OrganizationsApiFp = exports.OrganizationsApiAxiosParamCreator = exports.OnboardingApi = exports.OnboardingApiFactory = exports.OnboardingApiFp = exports.OnboardingApiAxiosParamCreator = exports.V1NotificationsGetSortOrderEnum = exports.V1NotificationsGetSortByEnum = exports.V1NotificationsGetPriorityEnum = exports.V1NotificationsGetIsReadEnum = exports.V1NotificationsGetTypeEnum = exports.NotificationsApi = exports.NotificationsApiFactory = exports.NotificationsApiFp = exports.NotificationsApiAxiosParamCreator = exports.NotificationPreferencesApi = exports.NotificationPreferencesApiFactory = exports.NotificationPreferencesApiFp = exports.NotificationPreferencesApiAxiosParamCreator = exports.NewsLettersApi = exports.NewsLettersApiFactory = exports.NewsLettersApiFp = exports.NewsLettersApiAxiosParamCreator = exports.MongoDbApi = exports.MongoDbApiFactory = exports.MongoDbApiFp = exports.MongoDbApiAxiosParamCreator = exports.ModulesApi = exports.ModulesApiFactory = exports.ModulesApiFp = exports.ModulesApiAxiosParamCreator = exports.MenusApi = exports.MenusApiFactory = exports.MenusApiFp = exports.MenusApiAxiosParamCreator = exports.MenuRouteMetricsAdminApi = exports.MenuRouteMetricsAdminApiFactory = void 0;
|
|
35
|
+
exports.RolesApiFactory = exports.RolesApiFp = exports.RolesApiAxiosParamCreator = exports.RoleRightsApi = exports.RoleRightsApiFactory = exports.RoleRightsApiFp = exports.RoleRightsApiAxiosParamCreator = exports.RequestsApi = exports.RequestsApiFactory = exports.RequestsApiFp = exports.RequestsApiAxiosParamCreator = exports.RegisterApi = exports.RegisterApiFactory = exports.RegisterApiFp = exports.RegisterApiAxiosParamCreator = exports.RefundManagementApi = exports.RefundManagementApiFactory = exports.RefundManagementApiFp = exports.RefundManagementApiAxiosParamCreator = exports.QuerySuggestionsManagementApi = exports.QuerySuggestionsManagementApiFactory = exports.QuerySuggestionsManagementApiFp = exports.QuerySuggestionsManagementApiAxiosParamCreator = exports.V1SuggestionsQueriesGetTimeRangeEnum = exports.V1SuggestionsQueriesGetTagsMatchModeEnum = exports.QuerySuggestionsApi = exports.QuerySuggestionsApiFactory = exports.QuerySuggestionsApiFp = exports.QuerySuggestionsApiAxiosParamCreator = exports.PluralsDeclensionsApi = exports.PluralsDeclensionsApiFactory = exports.PluralsDeclensionsApiFp = exports.PluralsDeclensionsApiAxiosParamCreator = exports.PlatformPublicSessionApi = exports.PlatformPublicSessionApiFactory = exports.PlatformPublicSessionApiFp = exports.PlatformPublicSessionApiAxiosParamCreator = exports.PlatformPublicOnboardingApi = exports.PlatformPublicOnboardingApiFactory = exports.PlatformPublicOnboardingApiFp = exports.PlatformPublicOnboardingApiAxiosParamCreator = exports.PlatformPublicConnectorRunsApi = exports.PlatformPublicConnectorRunsApiFactory = exports.PlatformPublicConnectorRunsApiFp = exports.PlatformPublicConnectorRunsApiAxiosParamCreator = exports.PlansApi = exports.PlansApiFactory = exports.PlansApiFp = exports.PlansApiAxiosParamCreator = exports.PaymentsApi = void 0;
|
|
36
|
+
exports.WebhooksApiAxiosParamCreator = exports.UserProfilesApi = exports.UserProfilesApiFactory = exports.UserProfilesApiFp = exports.UserProfilesApiAxiosParamCreator = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.TeamApi = exports.TeamApiFactory = exports.TeamApiFp = exports.TeamApiAxiosParamCreator = exports.TaxManagementApi = exports.TaxManagementApiFactory = exports.TaxManagementApiFp = exports.TaxManagementApiAxiosParamCreator = exports.SubscriptionsApi = exports.SubscriptionsApiFactory = exports.SubscriptionsApiFp = exports.SubscriptionsApiAxiosParamCreator = exports.SubscriptionPaymentsApi = exports.SubscriptionPaymentsApiFactory = exports.SubscriptionPaymentsApiFp = exports.SubscriptionPaymentsApiAxiosParamCreator = exports.StoresApi = exports.StoresApiFactory = exports.StoresApiFp = exports.StoresApiAxiosParamCreator = exports.StoreManagementApi = exports.StoreManagementApiFactory = exports.StoreManagementApiFp = exports.StoreManagementApiAxiosParamCreator = exports.StoreDocumentsApi = exports.StoreDocumentsApiFactory = exports.StoreDocumentsApiFp = exports.StoreDocumentsApiAxiosParamCreator = exports.StoreCreationApi = exports.StoreCreationApiFactory = exports.StoreCreationApiFp = exports.StoreCreationApiAxiosParamCreator = exports.StopwordsApi = exports.StopwordsApiFactory = exports.StopwordsApiFp = exports.StopwordsApiAxiosParamCreator = exports.SearchApi = exports.SearchApiFactory = exports.SearchApiFp = exports.SearchApiAxiosParamCreator = exports.RolesApi = void 0;
|
|
37
|
+
exports.WebhooksApi = exports.WebhooksApiFactory = exports.WebhooksApiFp = void 0;
|
|
37
38
|
const axios_1 = require("axios");
|
|
38
39
|
// Some imports not used depending on template conditions
|
|
39
40
|
// @ts-ignore
|
|
@@ -1619,6 +1620,37 @@ exports.AdminAnalyticsApi = AdminAnalyticsApi;
|
|
|
1619
1620
|
*/
|
|
1620
1621
|
const AdminConnectorWebhooksApiAxiosParamCreator = function (configuration) {
|
|
1621
1622
|
return {
|
|
1623
|
+
/**
|
|
1624
|
+
* Re-runs the manifest\'s DynamicSchemaLoader streams and upserts the resolved JSON Schemas into connector_provider_schemas. The next sync reads the fresh cache and (re)builds the Typesense collection from it.
|
|
1625
|
+
* @summary Regenerate provider schema cache for a connector source
|
|
1626
|
+
* @param {string} sourceUuid Connector source UUID
|
|
1627
|
+
* @param {*} [options] Override http request option.
|
|
1628
|
+
* @throws {RequiredError}
|
|
1629
|
+
*/
|
|
1630
|
+
adminConnectorsSourcesSourceUuidSchemaRegeneratePost: (sourceUuid_1, ...args_1) => __awaiter(this, [sourceUuid_1, ...args_1], void 0, function* (sourceUuid, options = {}) {
|
|
1631
|
+
// verify required parameter 'sourceUuid' is not null or undefined
|
|
1632
|
+
(0, common_1.assertParamExists)('adminConnectorsSourcesSourceUuidSchemaRegeneratePost', 'sourceUuid', sourceUuid);
|
|
1633
|
+
const localVarPath = `/admin/connectors/sources/{source_uuid}/schema/regenerate`
|
|
1634
|
+
.replace(`{${"source_uuid"}}`, encodeURIComponent(String(sourceUuid)));
|
|
1635
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1636
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1637
|
+
let baseOptions;
|
|
1638
|
+
if (configuration) {
|
|
1639
|
+
baseOptions = configuration.baseOptions;
|
|
1640
|
+
}
|
|
1641
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1642
|
+
const localVarHeaderParameter = {};
|
|
1643
|
+
const localVarQueryParameter = {};
|
|
1644
|
+
// authentication BearerAuth required
|
|
1645
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
1646
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1647
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1648
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1649
|
+
return {
|
|
1650
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1651
|
+
options: localVarRequestOptions,
|
|
1652
|
+
};
|
|
1653
|
+
}),
|
|
1622
1654
|
/**
|
|
1623
1655
|
* Re-publish a previously recorded delivery through the forge.webhook exchange. A new external_id is minted so the worker processes the replay end-to-end.
|
|
1624
1656
|
* @summary Replay a recorded webhook delivery
|
|
@@ -1661,10 +1693,12 @@ const AdminConnectorWebhooksApiAxiosParamCreator = function (configuration) {
|
|
|
1661
1693
|
* @param {string} [status] Filter by delivery status (pending, processed, failed)
|
|
1662
1694
|
* @param {number} [limit] Page size (default 50, max 200)
|
|
1663
1695
|
* @param {string} [beforeUuid] Cursor: return rows older than the delivery with this UUID
|
|
1696
|
+
* @param {string} [since] Lower bound (inclusive) on received_at, RFC3339 / ISO-8601 (e.g. 2026-05-01T00:00:00Z)
|
|
1697
|
+
* @param {string} [until] Upper bound (exclusive) on received_at, RFC3339 / ISO-8601 (e.g. 2026-05-06T00:00:00Z)
|
|
1664
1698
|
* @param {*} [options] Override http request option.
|
|
1665
1699
|
* @throws {RequiredError}
|
|
1666
1700
|
*/
|
|
1667
|
-
adminConnectorsSourcesSourceUuidWebhooksDeliveriesGet: (sourceUuid_1, status_1, limit_1, beforeUuid_1, ...args_1) => __awaiter(this, [sourceUuid_1, status_1, limit_1, beforeUuid_1, ...args_1], void 0, function* (sourceUuid, status, limit, beforeUuid, options = {}) {
|
|
1701
|
+
adminConnectorsSourcesSourceUuidWebhooksDeliveriesGet: (sourceUuid_1, status_1, limit_1, beforeUuid_1, since_1, until_1, ...args_1) => __awaiter(this, [sourceUuid_1, status_1, limit_1, beforeUuid_1, since_1, until_1, ...args_1], void 0, function* (sourceUuid, status, limit, beforeUuid, since, until, options = {}) {
|
|
1668
1702
|
// verify required parameter 'sourceUuid' is not null or undefined
|
|
1669
1703
|
(0, common_1.assertParamExists)('adminConnectorsSourcesSourceUuidWebhooksDeliveriesGet', 'sourceUuid', sourceUuid);
|
|
1670
1704
|
const localVarPath = `/admin/connectors/sources/{source_uuid}/webhooks/deliveries`
|
|
@@ -1689,6 +1723,43 @@ const AdminConnectorWebhooksApiAxiosParamCreator = function (configuration) {
|
|
|
1689
1723
|
if (beforeUuid !== undefined) {
|
|
1690
1724
|
localVarQueryParameter['before_uuid'] = beforeUuid;
|
|
1691
1725
|
}
|
|
1726
|
+
if (since !== undefined) {
|
|
1727
|
+
localVarQueryParameter['since'] = since;
|
|
1728
|
+
}
|
|
1729
|
+
if (until !== undefined) {
|
|
1730
|
+
localVarQueryParameter['until'] = until;
|
|
1731
|
+
}
|
|
1732
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1733
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1734
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1735
|
+
return {
|
|
1736
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1737
|
+
options: localVarRequestOptions,
|
|
1738
|
+
};
|
|
1739
|
+
}),
|
|
1740
|
+
/**
|
|
1741
|
+
* Verify each active webhook subscription still exists on the provider; flip rows whose subscription is gone (404 from the provider) to status=\'stale\'. Read-only against the provider; UPDATE-only against our DB. Idempotent.
|
|
1742
|
+
* @summary Reconcile webhook subscriptions against the provider
|
|
1743
|
+
* @param {string} sourceUuid Connector source UUID
|
|
1744
|
+
* @param {*} [options] Override http request option.
|
|
1745
|
+
* @throws {RequiredError}
|
|
1746
|
+
*/
|
|
1747
|
+
adminConnectorsSourcesSourceUuidWebhooksReconcilePost: (sourceUuid_1, ...args_1) => __awaiter(this, [sourceUuid_1, ...args_1], void 0, function* (sourceUuid, options = {}) {
|
|
1748
|
+
// verify required parameter 'sourceUuid' is not null or undefined
|
|
1749
|
+
(0, common_1.assertParamExists)('adminConnectorsSourcesSourceUuidWebhooksReconcilePost', 'sourceUuid', sourceUuid);
|
|
1750
|
+
const localVarPath = `/admin/connectors/sources/{source_uuid}/webhooks/reconcile`
|
|
1751
|
+
.replace(`{${"source_uuid"}}`, encodeURIComponent(String(sourceUuid)));
|
|
1752
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1753
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1754
|
+
let baseOptions;
|
|
1755
|
+
if (configuration) {
|
|
1756
|
+
baseOptions = configuration.baseOptions;
|
|
1757
|
+
}
|
|
1758
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1759
|
+
const localVarHeaderParameter = {};
|
|
1760
|
+
const localVarQueryParameter = {};
|
|
1761
|
+
// authentication BearerAuth required
|
|
1762
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
1692
1763
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1693
1764
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1694
1765
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -1728,6 +1799,33 @@ const AdminConnectorWebhooksApiAxiosParamCreator = function (configuration) {
|
|
|
1728
1799
|
options: localVarRequestOptions,
|
|
1729
1800
|
};
|
|
1730
1801
|
}),
|
|
1802
|
+
/**
|
|
1803
|
+
* Iterates every active connector source in the org and runs the per-source webhook reconciliation pass. Marks subscriptions whose provider counterparts no longer exist as \'stale\'. Designed for cron-driven invocation; per-source errors are captured individually.
|
|
1804
|
+
* @summary Reconcile webhook subscriptions for every connector source
|
|
1805
|
+
* @param {*} [options] Override http request option.
|
|
1806
|
+
* @throws {RequiredError}
|
|
1807
|
+
*/
|
|
1808
|
+
adminConnectorsWebhooksReconcileAllPost: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
1809
|
+
const localVarPath = `/admin/connectors/webhooks/reconcile-all`;
|
|
1810
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1811
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1812
|
+
let baseOptions;
|
|
1813
|
+
if (configuration) {
|
|
1814
|
+
baseOptions = configuration.baseOptions;
|
|
1815
|
+
}
|
|
1816
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1817
|
+
const localVarHeaderParameter = {};
|
|
1818
|
+
const localVarQueryParameter = {};
|
|
1819
|
+
// authentication BearerAuth required
|
|
1820
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
1821
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1822
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1823
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1824
|
+
return {
|
|
1825
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1826
|
+
options: localVarRequestOptions,
|
|
1827
|
+
};
|
|
1828
|
+
}),
|
|
1731
1829
|
/**
|
|
1732
1830
|
* Iterates every active connector source in the org and re-runs register_webhooks for each. Per-source errors are captured individually — one failure does not block the others.
|
|
1733
1831
|
* @summary Resubscribe webhooks for every connector source
|
|
@@ -1765,6 +1863,22 @@ exports.AdminConnectorWebhooksApiAxiosParamCreator = AdminConnectorWebhooksApiAx
|
|
|
1765
1863
|
const AdminConnectorWebhooksApiFp = function (configuration) {
|
|
1766
1864
|
const localVarAxiosParamCreator = (0, exports.AdminConnectorWebhooksApiAxiosParamCreator)(configuration);
|
|
1767
1865
|
return {
|
|
1866
|
+
/**
|
|
1867
|
+
* Re-runs the manifest\'s DynamicSchemaLoader streams and upserts the resolved JSON Schemas into connector_provider_schemas. The next sync reads the fresh cache and (re)builds the Typesense collection from it.
|
|
1868
|
+
* @summary Regenerate provider schema cache for a connector source
|
|
1869
|
+
* @param {string} sourceUuid Connector source UUID
|
|
1870
|
+
* @param {*} [options] Override http request option.
|
|
1871
|
+
* @throws {RequiredError}
|
|
1872
|
+
*/
|
|
1873
|
+
adminConnectorsSourcesSourceUuidSchemaRegeneratePost(sourceUuid, options) {
|
|
1874
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1875
|
+
var _a, _b, _c;
|
|
1876
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminConnectorsSourcesSourceUuidSchemaRegeneratePost(sourceUuid, options);
|
|
1877
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1878
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AdminConnectorWebhooksApi.adminConnectorsSourcesSourceUuidSchemaRegeneratePost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1879
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1880
|
+
});
|
|
1881
|
+
},
|
|
1768
1882
|
/**
|
|
1769
1883
|
* Re-publish a previously recorded delivery through the forge.webhook exchange. A new external_id is minted so the worker processes the replay end-to-end.
|
|
1770
1884
|
* @summary Replay a recorded webhook delivery
|
|
@@ -1789,18 +1903,36 @@ const AdminConnectorWebhooksApiFp = function (configuration) {
|
|
|
1789
1903
|
* @param {string} [status] Filter by delivery status (pending, processed, failed)
|
|
1790
1904
|
* @param {number} [limit] Page size (default 50, max 200)
|
|
1791
1905
|
* @param {string} [beforeUuid] Cursor: return rows older than the delivery with this UUID
|
|
1906
|
+
* @param {string} [since] Lower bound (inclusive) on received_at, RFC3339 / ISO-8601 (e.g. 2026-05-01T00:00:00Z)
|
|
1907
|
+
* @param {string} [until] Upper bound (exclusive) on received_at, RFC3339 / ISO-8601 (e.g. 2026-05-06T00:00:00Z)
|
|
1792
1908
|
* @param {*} [options] Override http request option.
|
|
1793
1909
|
* @throws {RequiredError}
|
|
1794
1910
|
*/
|
|
1795
|
-
adminConnectorsSourcesSourceUuidWebhooksDeliveriesGet(sourceUuid, status, limit, beforeUuid, options) {
|
|
1911
|
+
adminConnectorsSourcesSourceUuidWebhooksDeliveriesGet(sourceUuid, status, limit, beforeUuid, since, until, options) {
|
|
1796
1912
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1797
1913
|
var _a, _b, _c;
|
|
1798
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminConnectorsSourcesSourceUuidWebhooksDeliveriesGet(sourceUuid, status, limit, beforeUuid, options);
|
|
1914
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminConnectorsSourcesSourceUuidWebhooksDeliveriesGet(sourceUuid, status, limit, beforeUuid, since, until, options);
|
|
1799
1915
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1800
1916
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AdminConnectorWebhooksApi.adminConnectorsSourcesSourceUuidWebhooksDeliveriesGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1801
1917
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1802
1918
|
});
|
|
1803
1919
|
},
|
|
1920
|
+
/**
|
|
1921
|
+
* Verify each active webhook subscription still exists on the provider; flip rows whose subscription is gone (404 from the provider) to status=\'stale\'. Read-only against the provider; UPDATE-only against our DB. Idempotent.
|
|
1922
|
+
* @summary Reconcile webhook subscriptions against the provider
|
|
1923
|
+
* @param {string} sourceUuid Connector source UUID
|
|
1924
|
+
* @param {*} [options] Override http request option.
|
|
1925
|
+
* @throws {RequiredError}
|
|
1926
|
+
*/
|
|
1927
|
+
adminConnectorsSourcesSourceUuidWebhooksReconcilePost(sourceUuid, options) {
|
|
1928
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1929
|
+
var _a, _b, _c;
|
|
1930
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminConnectorsSourcesSourceUuidWebhooksReconcilePost(sourceUuid, options);
|
|
1931
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1932
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AdminConnectorWebhooksApi.adminConnectorsSourcesSourceUuidWebhooksReconcilePost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1933
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1934
|
+
});
|
|
1935
|
+
},
|
|
1804
1936
|
/**
|
|
1805
1937
|
* Re-run the register_webhooks post-install hook for one connector source. Idempotent via ON CONFLICT (source_id, topic) DO UPDATE.
|
|
1806
1938
|
* @summary Resubscribe webhooks for a connector source
|
|
@@ -1817,6 +1949,21 @@ const AdminConnectorWebhooksApiFp = function (configuration) {
|
|
|
1817
1949
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1818
1950
|
});
|
|
1819
1951
|
},
|
|
1952
|
+
/**
|
|
1953
|
+
* Iterates every active connector source in the org and runs the per-source webhook reconciliation pass. Marks subscriptions whose provider counterparts no longer exist as \'stale\'. Designed for cron-driven invocation; per-source errors are captured individually.
|
|
1954
|
+
* @summary Reconcile webhook subscriptions for every connector source
|
|
1955
|
+
* @param {*} [options] Override http request option.
|
|
1956
|
+
* @throws {RequiredError}
|
|
1957
|
+
*/
|
|
1958
|
+
adminConnectorsWebhooksReconcileAllPost(options) {
|
|
1959
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1960
|
+
var _a, _b, _c;
|
|
1961
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminConnectorsWebhooksReconcileAllPost(options);
|
|
1962
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1963
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AdminConnectorWebhooksApi.adminConnectorsWebhooksReconcileAllPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1964
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1965
|
+
});
|
|
1966
|
+
},
|
|
1820
1967
|
/**
|
|
1821
1968
|
* Iterates every active connector source in the org and re-runs register_webhooks for each. Per-source errors are captured individually — one failure does not block the others.
|
|
1822
1969
|
* @summary Resubscribe webhooks for every connector source
|
|
@@ -1842,6 +1989,16 @@ exports.AdminConnectorWebhooksApiFp = AdminConnectorWebhooksApiFp;
|
|
|
1842
1989
|
const AdminConnectorWebhooksApiFactory = function (configuration, basePath, axios) {
|
|
1843
1990
|
const localVarFp = (0, exports.AdminConnectorWebhooksApiFp)(configuration);
|
|
1844
1991
|
return {
|
|
1992
|
+
/**
|
|
1993
|
+
* Re-runs the manifest\'s DynamicSchemaLoader streams and upserts the resolved JSON Schemas into connector_provider_schemas. The next sync reads the fresh cache and (re)builds the Typesense collection from it.
|
|
1994
|
+
* @summary Regenerate provider schema cache for a connector source
|
|
1995
|
+
* @param {string} sourceUuid Connector source UUID
|
|
1996
|
+
* @param {*} [options] Override http request option.
|
|
1997
|
+
* @throws {RequiredError}
|
|
1998
|
+
*/
|
|
1999
|
+
adminConnectorsSourcesSourceUuidSchemaRegeneratePost(sourceUuid, options) {
|
|
2000
|
+
return localVarFp.adminConnectorsSourcesSourceUuidSchemaRegeneratePost(sourceUuid, options).then((request) => request(axios, basePath));
|
|
2001
|
+
},
|
|
1845
2002
|
/**
|
|
1846
2003
|
* Re-publish a previously recorded delivery through the forge.webhook exchange. A new external_id is minted so the worker processes the replay end-to-end.
|
|
1847
2004
|
* @summary Replay a recorded webhook delivery
|
|
@@ -1860,11 +2017,23 @@ const AdminConnectorWebhooksApiFactory = function (configuration, basePath, axio
|
|
|
1860
2017
|
* @param {string} [status] Filter by delivery status (pending, processed, failed)
|
|
1861
2018
|
* @param {number} [limit] Page size (default 50, max 200)
|
|
1862
2019
|
* @param {string} [beforeUuid] Cursor: return rows older than the delivery with this UUID
|
|
2020
|
+
* @param {string} [since] Lower bound (inclusive) on received_at, RFC3339 / ISO-8601 (e.g. 2026-05-01T00:00:00Z)
|
|
2021
|
+
* @param {string} [until] Upper bound (exclusive) on received_at, RFC3339 / ISO-8601 (e.g. 2026-05-06T00:00:00Z)
|
|
2022
|
+
* @param {*} [options] Override http request option.
|
|
2023
|
+
* @throws {RequiredError}
|
|
2024
|
+
*/
|
|
2025
|
+
adminConnectorsSourcesSourceUuidWebhooksDeliveriesGet(sourceUuid, status, limit, beforeUuid, since, until, options) {
|
|
2026
|
+
return localVarFp.adminConnectorsSourcesSourceUuidWebhooksDeliveriesGet(sourceUuid, status, limit, beforeUuid, since, until, options).then((request) => request(axios, basePath));
|
|
2027
|
+
},
|
|
2028
|
+
/**
|
|
2029
|
+
* Verify each active webhook subscription still exists on the provider; flip rows whose subscription is gone (404 from the provider) to status=\'stale\'. Read-only against the provider; UPDATE-only against our DB. Idempotent.
|
|
2030
|
+
* @summary Reconcile webhook subscriptions against the provider
|
|
2031
|
+
* @param {string} sourceUuid Connector source UUID
|
|
1863
2032
|
* @param {*} [options] Override http request option.
|
|
1864
2033
|
* @throws {RequiredError}
|
|
1865
2034
|
*/
|
|
1866
|
-
|
|
1867
|
-
return localVarFp.
|
|
2035
|
+
adminConnectorsSourcesSourceUuidWebhooksReconcilePost(sourceUuid, options) {
|
|
2036
|
+
return localVarFp.adminConnectorsSourcesSourceUuidWebhooksReconcilePost(sourceUuid, options).then((request) => request(axios, basePath));
|
|
1868
2037
|
},
|
|
1869
2038
|
/**
|
|
1870
2039
|
* Re-run the register_webhooks post-install hook for one connector source. Idempotent via ON CONFLICT (source_id, topic) DO UPDATE.
|
|
@@ -1876,6 +2045,15 @@ const AdminConnectorWebhooksApiFactory = function (configuration, basePath, axio
|
|
|
1876
2045
|
adminConnectorsSourcesSourceUuidWebhooksResubscribePost(sourceUuid, options) {
|
|
1877
2046
|
return localVarFp.adminConnectorsSourcesSourceUuidWebhooksResubscribePost(sourceUuid, options).then((request) => request(axios, basePath));
|
|
1878
2047
|
},
|
|
2048
|
+
/**
|
|
2049
|
+
* Iterates every active connector source in the org and runs the per-source webhook reconciliation pass. Marks subscriptions whose provider counterparts no longer exist as \'stale\'. Designed for cron-driven invocation; per-source errors are captured individually.
|
|
2050
|
+
* @summary Reconcile webhook subscriptions for every connector source
|
|
2051
|
+
* @param {*} [options] Override http request option.
|
|
2052
|
+
* @throws {RequiredError}
|
|
2053
|
+
*/
|
|
2054
|
+
adminConnectorsWebhooksReconcileAllPost(options) {
|
|
2055
|
+
return localVarFp.adminConnectorsWebhooksReconcileAllPost(options).then((request) => request(axios, basePath));
|
|
2056
|
+
},
|
|
1879
2057
|
/**
|
|
1880
2058
|
* Iterates every active connector source in the org and re-runs register_webhooks for each. Per-source errors are captured individually — one failure does not block the others.
|
|
1881
2059
|
* @summary Resubscribe webhooks for every connector source
|
|
@@ -1895,6 +2073,17 @@ exports.AdminConnectorWebhooksApiFactory = AdminConnectorWebhooksApiFactory;
|
|
|
1895
2073
|
* @extends {BaseAPI}
|
|
1896
2074
|
*/
|
|
1897
2075
|
class AdminConnectorWebhooksApi extends base_1.BaseAPI {
|
|
2076
|
+
/**
|
|
2077
|
+
* Re-runs the manifest\'s DynamicSchemaLoader streams and upserts the resolved JSON Schemas into connector_provider_schemas. The next sync reads the fresh cache and (re)builds the Typesense collection from it.
|
|
2078
|
+
* @summary Regenerate provider schema cache for a connector source
|
|
2079
|
+
* @param {string} sourceUuid Connector source UUID
|
|
2080
|
+
* @param {*} [options] Override http request option.
|
|
2081
|
+
* @throws {RequiredError}
|
|
2082
|
+
* @memberof AdminConnectorWebhooksApi
|
|
2083
|
+
*/
|
|
2084
|
+
adminConnectorsSourcesSourceUuidSchemaRegeneratePost(sourceUuid, options) {
|
|
2085
|
+
return (0, exports.AdminConnectorWebhooksApiFp)(this.configuration).adminConnectorsSourcesSourceUuidSchemaRegeneratePost(sourceUuid, options).then((request) => request(this.axios, this.basePath));
|
|
2086
|
+
}
|
|
1898
2087
|
/**
|
|
1899
2088
|
* Re-publish a previously recorded delivery through the forge.webhook exchange. A new external_id is minted so the worker processes the replay end-to-end.
|
|
1900
2089
|
* @summary Replay a recorded webhook delivery
|
|
@@ -1914,12 +2103,25 @@ class AdminConnectorWebhooksApi extends base_1.BaseAPI {
|
|
|
1914
2103
|
* @param {string} [status] Filter by delivery status (pending, processed, failed)
|
|
1915
2104
|
* @param {number} [limit] Page size (default 50, max 200)
|
|
1916
2105
|
* @param {string} [beforeUuid] Cursor: return rows older than the delivery with this UUID
|
|
2106
|
+
* @param {string} [since] Lower bound (inclusive) on received_at, RFC3339 / ISO-8601 (e.g. 2026-05-01T00:00:00Z)
|
|
2107
|
+
* @param {string} [until] Upper bound (exclusive) on received_at, RFC3339 / ISO-8601 (e.g. 2026-05-06T00:00:00Z)
|
|
2108
|
+
* @param {*} [options] Override http request option.
|
|
2109
|
+
* @throws {RequiredError}
|
|
2110
|
+
* @memberof AdminConnectorWebhooksApi
|
|
2111
|
+
*/
|
|
2112
|
+
adminConnectorsSourcesSourceUuidWebhooksDeliveriesGet(sourceUuid, status, limit, beforeUuid, since, until, options) {
|
|
2113
|
+
return (0, exports.AdminConnectorWebhooksApiFp)(this.configuration).adminConnectorsSourcesSourceUuidWebhooksDeliveriesGet(sourceUuid, status, limit, beforeUuid, since, until, options).then((request) => request(this.axios, this.basePath));
|
|
2114
|
+
}
|
|
2115
|
+
/**
|
|
2116
|
+
* Verify each active webhook subscription still exists on the provider; flip rows whose subscription is gone (404 from the provider) to status=\'stale\'. Read-only against the provider; UPDATE-only against our DB. Idempotent.
|
|
2117
|
+
* @summary Reconcile webhook subscriptions against the provider
|
|
2118
|
+
* @param {string} sourceUuid Connector source UUID
|
|
1917
2119
|
* @param {*} [options] Override http request option.
|
|
1918
2120
|
* @throws {RequiredError}
|
|
1919
2121
|
* @memberof AdminConnectorWebhooksApi
|
|
1920
2122
|
*/
|
|
1921
|
-
|
|
1922
|
-
return (0, exports.AdminConnectorWebhooksApiFp)(this.configuration).
|
|
2123
|
+
adminConnectorsSourcesSourceUuidWebhooksReconcilePost(sourceUuid, options) {
|
|
2124
|
+
return (0, exports.AdminConnectorWebhooksApiFp)(this.configuration).adminConnectorsSourcesSourceUuidWebhooksReconcilePost(sourceUuid, options).then((request) => request(this.axios, this.basePath));
|
|
1923
2125
|
}
|
|
1924
2126
|
/**
|
|
1925
2127
|
* Re-run the register_webhooks post-install hook for one connector source. Idempotent via ON CONFLICT (source_id, topic) DO UPDATE.
|
|
@@ -1932,6 +2134,16 @@ class AdminConnectorWebhooksApi extends base_1.BaseAPI {
|
|
|
1932
2134
|
adminConnectorsSourcesSourceUuidWebhooksResubscribePost(sourceUuid, options) {
|
|
1933
2135
|
return (0, exports.AdminConnectorWebhooksApiFp)(this.configuration).adminConnectorsSourcesSourceUuidWebhooksResubscribePost(sourceUuid, options).then((request) => request(this.axios, this.basePath));
|
|
1934
2136
|
}
|
|
2137
|
+
/**
|
|
2138
|
+
* Iterates every active connector source in the org and runs the per-source webhook reconciliation pass. Marks subscriptions whose provider counterparts no longer exist as \'stale\'. Designed for cron-driven invocation; per-source errors are captured individually.
|
|
2139
|
+
* @summary Reconcile webhook subscriptions for every connector source
|
|
2140
|
+
* @param {*} [options] Override http request option.
|
|
2141
|
+
* @throws {RequiredError}
|
|
2142
|
+
* @memberof AdminConnectorWebhooksApi
|
|
2143
|
+
*/
|
|
2144
|
+
adminConnectorsWebhooksReconcileAllPost(options) {
|
|
2145
|
+
return (0, exports.AdminConnectorWebhooksApiFp)(this.configuration).adminConnectorsWebhooksReconcileAllPost(options).then((request) => request(this.axios, this.basePath));
|
|
2146
|
+
}
|
|
1935
2147
|
/**
|
|
1936
2148
|
* Iterates every active connector source in the org and re-runs register_webhooks for each. Per-source errors are captured individually — one failure does not block the others.
|
|
1937
2149
|
* @summary Resubscribe webhooks for every connector source
|
|
@@ -15098,6 +15310,60 @@ const BillingApiAxiosParamCreator = function (configuration) {
|
|
|
15098
15310
|
options: localVarRequestOptions,
|
|
15099
15311
|
};
|
|
15100
15312
|
}),
|
|
15313
|
+
/**
|
|
15314
|
+
*
|
|
15315
|
+
* @summary Resume a cancelled subscription with remaining tenure (entitlement grant only, no Shopify call)
|
|
15316
|
+
* @param {*} [options] Override http request option.
|
|
15317
|
+
* @throws {RequiredError}
|
|
15318
|
+
*/
|
|
15319
|
+
apiV1BillingResumeCancelledSubscriptionPost: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
15320
|
+
const localVarPath = `/api/v1/billing/resume-cancelled-subscription`;
|
|
15321
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15322
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
15323
|
+
let baseOptions;
|
|
15324
|
+
if (configuration) {
|
|
15325
|
+
baseOptions = configuration.baseOptions;
|
|
15326
|
+
}
|
|
15327
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
15328
|
+
const localVarHeaderParameter = {};
|
|
15329
|
+
const localVarQueryParameter = {};
|
|
15330
|
+
// authentication BearerAuth required
|
|
15331
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
15332
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
15333
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15334
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
15335
|
+
return {
|
|
15336
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
15337
|
+
options: localVarRequestOptions,
|
|
15338
|
+
};
|
|
15339
|
+
}),
|
|
15340
|
+
/**
|
|
15341
|
+
*
|
|
15342
|
+
* @summary Returning-merchant signal — does this org have a cancelled paid plan with remaining tenure?
|
|
15343
|
+
* @param {*} [options] Override http request option.
|
|
15344
|
+
* @throws {RequiredError}
|
|
15345
|
+
*/
|
|
15346
|
+
apiV1BillingReturningMerchantSignalGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
15347
|
+
const localVarPath = `/api/v1/billing/returning-merchant-signal`;
|
|
15348
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15349
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
15350
|
+
let baseOptions;
|
|
15351
|
+
if (configuration) {
|
|
15352
|
+
baseOptions = configuration.baseOptions;
|
|
15353
|
+
}
|
|
15354
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
15355
|
+
const localVarHeaderParameter = {};
|
|
15356
|
+
const localVarQueryParameter = {};
|
|
15357
|
+
// authentication BearerAuth required
|
|
15358
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
15359
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
15360
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15361
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
15362
|
+
return {
|
|
15363
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
15364
|
+
options: localVarRequestOptions,
|
|
15365
|
+
};
|
|
15366
|
+
}),
|
|
15101
15367
|
/**
|
|
15102
15368
|
*
|
|
15103
15369
|
* @summary Create a new subscription
|
|
@@ -15323,6 +15589,36 @@ const BillingApiFp = function (configuration) {
|
|
|
15323
15589
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15324
15590
|
});
|
|
15325
15591
|
},
|
|
15592
|
+
/**
|
|
15593
|
+
*
|
|
15594
|
+
* @summary Resume a cancelled subscription with remaining tenure (entitlement grant only, no Shopify call)
|
|
15595
|
+
* @param {*} [options] Override http request option.
|
|
15596
|
+
* @throws {RequiredError}
|
|
15597
|
+
*/
|
|
15598
|
+
apiV1BillingResumeCancelledSubscriptionPost(options) {
|
|
15599
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
15600
|
+
var _a, _b, _c;
|
|
15601
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV1BillingResumeCancelledSubscriptionPost(options);
|
|
15602
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
15603
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BillingApi.apiV1BillingResumeCancelledSubscriptionPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
15604
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15605
|
+
});
|
|
15606
|
+
},
|
|
15607
|
+
/**
|
|
15608
|
+
*
|
|
15609
|
+
* @summary Returning-merchant signal — does this org have a cancelled paid plan with remaining tenure?
|
|
15610
|
+
* @param {*} [options] Override http request option.
|
|
15611
|
+
* @throws {RequiredError}
|
|
15612
|
+
*/
|
|
15613
|
+
apiV1BillingReturningMerchantSignalGet(options) {
|
|
15614
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
15615
|
+
var _a, _b, _c;
|
|
15616
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV1BillingReturningMerchantSignalGet(options);
|
|
15617
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
15618
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BillingApi.apiV1BillingReturningMerchantSignalGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
15619
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15620
|
+
});
|
|
15621
|
+
},
|
|
15326
15622
|
/**
|
|
15327
15623
|
*
|
|
15328
15624
|
* @summary Create a new subscription
|
|
@@ -15455,6 +15751,24 @@ const BillingApiFactory = function (configuration, basePath, axios) {
|
|
|
15455
15751
|
apiV1BillingPlansGet(options) {
|
|
15456
15752
|
return localVarFp.apiV1BillingPlansGet(options).then((request) => request(axios, basePath));
|
|
15457
15753
|
},
|
|
15754
|
+
/**
|
|
15755
|
+
*
|
|
15756
|
+
* @summary Resume a cancelled subscription with remaining tenure (entitlement grant only, no Shopify call)
|
|
15757
|
+
* @param {*} [options] Override http request option.
|
|
15758
|
+
* @throws {RequiredError}
|
|
15759
|
+
*/
|
|
15760
|
+
apiV1BillingResumeCancelledSubscriptionPost(options) {
|
|
15761
|
+
return localVarFp.apiV1BillingResumeCancelledSubscriptionPost(options).then((request) => request(axios, basePath));
|
|
15762
|
+
},
|
|
15763
|
+
/**
|
|
15764
|
+
*
|
|
15765
|
+
* @summary Returning-merchant signal — does this org have a cancelled paid plan with remaining tenure?
|
|
15766
|
+
* @param {*} [options] Override http request option.
|
|
15767
|
+
* @throws {RequiredError}
|
|
15768
|
+
*/
|
|
15769
|
+
apiV1BillingReturningMerchantSignalGet(options) {
|
|
15770
|
+
return localVarFp.apiV1BillingReturningMerchantSignalGet(options).then((request) => request(axios, basePath));
|
|
15771
|
+
},
|
|
15458
15772
|
/**
|
|
15459
15773
|
*
|
|
15460
15774
|
* @summary Create a new subscription
|
|
@@ -15569,6 +15883,26 @@ class BillingApi extends base_1.BaseAPI {
|
|
|
15569
15883
|
apiV1BillingPlansGet(options) {
|
|
15570
15884
|
return (0, exports.BillingApiFp)(this.configuration).apiV1BillingPlansGet(options).then((request) => request(this.axios, this.basePath));
|
|
15571
15885
|
}
|
|
15886
|
+
/**
|
|
15887
|
+
*
|
|
15888
|
+
* @summary Resume a cancelled subscription with remaining tenure (entitlement grant only, no Shopify call)
|
|
15889
|
+
* @param {*} [options] Override http request option.
|
|
15890
|
+
* @throws {RequiredError}
|
|
15891
|
+
* @memberof BillingApi
|
|
15892
|
+
*/
|
|
15893
|
+
apiV1BillingResumeCancelledSubscriptionPost(options) {
|
|
15894
|
+
return (0, exports.BillingApiFp)(this.configuration).apiV1BillingResumeCancelledSubscriptionPost(options).then((request) => request(this.axios, this.basePath));
|
|
15895
|
+
}
|
|
15896
|
+
/**
|
|
15897
|
+
*
|
|
15898
|
+
* @summary Returning-merchant signal — does this org have a cancelled paid plan with remaining tenure?
|
|
15899
|
+
* @param {*} [options] Override http request option.
|
|
15900
|
+
* @throws {RequiredError}
|
|
15901
|
+
* @memberof BillingApi
|
|
15902
|
+
*/
|
|
15903
|
+
apiV1BillingReturningMerchantSignalGet(options) {
|
|
15904
|
+
return (0, exports.BillingApiFp)(this.configuration).apiV1BillingReturningMerchantSignalGet(options).then((request) => request(this.axios, this.basePath));
|
|
15905
|
+
}
|
|
15572
15906
|
/**
|
|
15573
15907
|
*
|
|
15574
15908
|
* @summary Create a new subscription
|
|
@@ -40350,6 +40684,105 @@ class InternalApi extends base_1.BaseAPI {
|
|
|
40350
40684
|
}
|
|
40351
40685
|
}
|
|
40352
40686
|
exports.InternalApi = InternalApi;
|
|
40687
|
+
/**
|
|
40688
|
+
* InternalConnectorWebhooksApi - axios parameter creator
|
|
40689
|
+
* @export
|
|
40690
|
+
*/
|
|
40691
|
+
const InternalConnectorWebhooksApiAxiosParamCreator = function (configuration) {
|
|
40692
|
+
return {
|
|
40693
|
+
/**
|
|
40694
|
+
* Walks every connector_authentications row whose org is soft-deleted and credentials_encrypted is still populated. For each, decrypts the credentials, invokes the registrar\'s RevokeAuthorization (Shopify implements this; other connectors return NoRevoker counted), and NULLs the blob on success. Idempotent — re-runs converge on the empty set.
|
|
40695
|
+
* @summary Revoke orphan connector authorizations
|
|
40696
|
+
* @param {*} [options] Override http request option.
|
|
40697
|
+
* @throws {RequiredError}
|
|
40698
|
+
*/
|
|
40699
|
+
internalConnectorWebhooksRevokeOrphanAuthorizationsPost: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
40700
|
+
const localVarPath = `/internal/connector-webhooks/revoke-orphan-authorizations`;
|
|
40701
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
40702
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
40703
|
+
let baseOptions;
|
|
40704
|
+
if (configuration) {
|
|
40705
|
+
baseOptions = configuration.baseOptions;
|
|
40706
|
+
}
|
|
40707
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
40708
|
+
const localVarHeaderParameter = {};
|
|
40709
|
+
const localVarQueryParameter = {};
|
|
40710
|
+
// authentication BearerAuth required
|
|
40711
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
40712
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
40713
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
40714
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
40715
|
+
return {
|
|
40716
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
40717
|
+
options: localVarRequestOptions,
|
|
40718
|
+
};
|
|
40719
|
+
}),
|
|
40720
|
+
};
|
|
40721
|
+
};
|
|
40722
|
+
exports.InternalConnectorWebhooksApiAxiosParamCreator = InternalConnectorWebhooksApiAxiosParamCreator;
|
|
40723
|
+
/**
|
|
40724
|
+
* InternalConnectorWebhooksApi - functional programming interface
|
|
40725
|
+
* @export
|
|
40726
|
+
*/
|
|
40727
|
+
const InternalConnectorWebhooksApiFp = function (configuration) {
|
|
40728
|
+
const localVarAxiosParamCreator = (0, exports.InternalConnectorWebhooksApiAxiosParamCreator)(configuration);
|
|
40729
|
+
return {
|
|
40730
|
+
/**
|
|
40731
|
+
* Walks every connector_authentications row whose org is soft-deleted and credentials_encrypted is still populated. For each, decrypts the credentials, invokes the registrar\'s RevokeAuthorization (Shopify implements this; other connectors return NoRevoker counted), and NULLs the blob on success. Idempotent — re-runs converge on the empty set.
|
|
40732
|
+
* @summary Revoke orphan connector authorizations
|
|
40733
|
+
* @param {*} [options] Override http request option.
|
|
40734
|
+
* @throws {RequiredError}
|
|
40735
|
+
*/
|
|
40736
|
+
internalConnectorWebhooksRevokeOrphanAuthorizationsPost(options) {
|
|
40737
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
40738
|
+
var _a, _b, _c;
|
|
40739
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.internalConnectorWebhooksRevokeOrphanAuthorizationsPost(options);
|
|
40740
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
40741
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['InternalConnectorWebhooksApi.internalConnectorWebhooksRevokeOrphanAuthorizationsPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
40742
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
40743
|
+
});
|
|
40744
|
+
},
|
|
40745
|
+
};
|
|
40746
|
+
};
|
|
40747
|
+
exports.InternalConnectorWebhooksApiFp = InternalConnectorWebhooksApiFp;
|
|
40748
|
+
/**
|
|
40749
|
+
* InternalConnectorWebhooksApi - factory interface
|
|
40750
|
+
* @export
|
|
40751
|
+
*/
|
|
40752
|
+
const InternalConnectorWebhooksApiFactory = function (configuration, basePath, axios) {
|
|
40753
|
+
const localVarFp = (0, exports.InternalConnectorWebhooksApiFp)(configuration);
|
|
40754
|
+
return {
|
|
40755
|
+
/**
|
|
40756
|
+
* Walks every connector_authentications row whose org is soft-deleted and credentials_encrypted is still populated. For each, decrypts the credentials, invokes the registrar\'s RevokeAuthorization (Shopify implements this; other connectors return NoRevoker counted), and NULLs the blob on success. Idempotent — re-runs converge on the empty set.
|
|
40757
|
+
* @summary Revoke orphan connector authorizations
|
|
40758
|
+
* @param {*} [options] Override http request option.
|
|
40759
|
+
* @throws {RequiredError}
|
|
40760
|
+
*/
|
|
40761
|
+
internalConnectorWebhooksRevokeOrphanAuthorizationsPost(options) {
|
|
40762
|
+
return localVarFp.internalConnectorWebhooksRevokeOrphanAuthorizationsPost(options).then((request) => request(axios, basePath));
|
|
40763
|
+
},
|
|
40764
|
+
};
|
|
40765
|
+
};
|
|
40766
|
+
exports.InternalConnectorWebhooksApiFactory = InternalConnectorWebhooksApiFactory;
|
|
40767
|
+
/**
|
|
40768
|
+
* InternalConnectorWebhooksApi - object-oriented interface
|
|
40769
|
+
* @export
|
|
40770
|
+
* @class InternalConnectorWebhooksApi
|
|
40771
|
+
* @extends {BaseAPI}
|
|
40772
|
+
*/
|
|
40773
|
+
class InternalConnectorWebhooksApi extends base_1.BaseAPI {
|
|
40774
|
+
/**
|
|
40775
|
+
* Walks every connector_authentications row whose org is soft-deleted and credentials_encrypted is still populated. For each, decrypts the credentials, invokes the registrar\'s RevokeAuthorization (Shopify implements this; other connectors return NoRevoker counted), and NULLs the blob on success. Idempotent — re-runs converge on the empty set.
|
|
40776
|
+
* @summary Revoke orphan connector authorizations
|
|
40777
|
+
* @param {*} [options] Override http request option.
|
|
40778
|
+
* @throws {RequiredError}
|
|
40779
|
+
* @memberof InternalConnectorWebhooksApi
|
|
40780
|
+
*/
|
|
40781
|
+
internalConnectorWebhooksRevokeOrphanAuthorizationsPost(options) {
|
|
40782
|
+
return (0, exports.InternalConnectorWebhooksApiFp)(this.configuration).internalConnectorWebhooksRevokeOrphanAuthorizationsPost(options).then((request) => request(this.axios, this.basePath));
|
|
40783
|
+
}
|
|
40784
|
+
}
|
|
40785
|
+
exports.InternalConnectorWebhooksApi = InternalConnectorWebhooksApi;
|
|
40353
40786
|
/**
|
|
40354
40787
|
* ItemAnalyticsApi - axios parameter creator
|
|
40355
40788
|
* @export
|
|
@@ -50307,6 +50740,119 @@ class PlansApi extends base_1.BaseAPI {
|
|
|
50307
50740
|
}
|
|
50308
50741
|
}
|
|
50309
50742
|
exports.PlansApi = PlansApi;
|
|
50743
|
+
/**
|
|
50744
|
+
* PlatformPublicConnectorRunsApi - axios parameter creator
|
|
50745
|
+
* @export
|
|
50746
|
+
*/
|
|
50747
|
+
const PlatformPublicConnectorRunsApiAxiosParamCreator = function (configuration) {
|
|
50748
|
+
return {
|
|
50749
|
+
/**
|
|
50750
|
+
* Accepts a batched envelope of run-lifecycle events (backfill_complete, backfill_failed, progress) signed via HMAC-SHA256 with the connector\'s API key. Per-event idempotency via connector_run_events_dedup. Successful events transition the run phase (B7).
|
|
50751
|
+
* @summary Submit control-plane lifecycle events for a connector run
|
|
50752
|
+
* @param {number} runId connector_runs.id
|
|
50753
|
+
* @param {string} xSeekoraSignature sha256=<hex(hmac_sha256(body, api_key))>
|
|
50754
|
+
* @param {*} [options] Override http request option.
|
|
50755
|
+
* @throws {RequiredError}
|
|
50756
|
+
*/
|
|
50757
|
+
v3PublicConnectorRunsRunIdEventsPost: (runId_1, xSeekoraSignature_1, ...args_1) => __awaiter(this, [runId_1, xSeekoraSignature_1, ...args_1], void 0, function* (runId, xSeekoraSignature, options = {}) {
|
|
50758
|
+
// verify required parameter 'runId' is not null or undefined
|
|
50759
|
+
(0, common_1.assertParamExists)('v3PublicConnectorRunsRunIdEventsPost', 'runId', runId);
|
|
50760
|
+
// verify required parameter 'xSeekoraSignature' is not null or undefined
|
|
50761
|
+
(0, common_1.assertParamExists)('v3PublicConnectorRunsRunIdEventsPost', 'xSeekoraSignature', xSeekoraSignature);
|
|
50762
|
+
const localVarPath = `/v3/public/connector-runs/{run_id}/events`
|
|
50763
|
+
.replace(`{${"run_id"}}`, encodeURIComponent(String(runId)));
|
|
50764
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
50765
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
50766
|
+
let baseOptions;
|
|
50767
|
+
if (configuration) {
|
|
50768
|
+
baseOptions = configuration.baseOptions;
|
|
50769
|
+
}
|
|
50770
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
50771
|
+
const localVarHeaderParameter = {};
|
|
50772
|
+
const localVarQueryParameter = {};
|
|
50773
|
+
if (xSeekoraSignature != null) {
|
|
50774
|
+
localVarHeaderParameter['X-Seekora-Signature'] = String(xSeekoraSignature);
|
|
50775
|
+
}
|
|
50776
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
50777
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
50778
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
50779
|
+
return {
|
|
50780
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
50781
|
+
options: localVarRequestOptions,
|
|
50782
|
+
};
|
|
50783
|
+
}),
|
|
50784
|
+
};
|
|
50785
|
+
};
|
|
50786
|
+
exports.PlatformPublicConnectorRunsApiAxiosParamCreator = PlatformPublicConnectorRunsApiAxiosParamCreator;
|
|
50787
|
+
/**
|
|
50788
|
+
* PlatformPublicConnectorRunsApi - functional programming interface
|
|
50789
|
+
* @export
|
|
50790
|
+
*/
|
|
50791
|
+
const PlatformPublicConnectorRunsApiFp = function (configuration) {
|
|
50792
|
+
const localVarAxiosParamCreator = (0, exports.PlatformPublicConnectorRunsApiAxiosParamCreator)(configuration);
|
|
50793
|
+
return {
|
|
50794
|
+
/**
|
|
50795
|
+
* Accepts a batched envelope of run-lifecycle events (backfill_complete, backfill_failed, progress) signed via HMAC-SHA256 with the connector\'s API key. Per-event idempotency via connector_run_events_dedup. Successful events transition the run phase (B7).
|
|
50796
|
+
* @summary Submit control-plane lifecycle events for a connector run
|
|
50797
|
+
* @param {number} runId connector_runs.id
|
|
50798
|
+
* @param {string} xSeekoraSignature sha256=<hex(hmac_sha256(body, api_key))>
|
|
50799
|
+
* @param {*} [options] Override http request option.
|
|
50800
|
+
* @throws {RequiredError}
|
|
50801
|
+
*/
|
|
50802
|
+
v3PublicConnectorRunsRunIdEventsPost(runId, xSeekoraSignature, options) {
|
|
50803
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
50804
|
+
var _a, _b, _c;
|
|
50805
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.v3PublicConnectorRunsRunIdEventsPost(runId, xSeekoraSignature, options);
|
|
50806
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
50807
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PlatformPublicConnectorRunsApi.v3PublicConnectorRunsRunIdEventsPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
50808
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
50809
|
+
});
|
|
50810
|
+
},
|
|
50811
|
+
};
|
|
50812
|
+
};
|
|
50813
|
+
exports.PlatformPublicConnectorRunsApiFp = PlatformPublicConnectorRunsApiFp;
|
|
50814
|
+
/**
|
|
50815
|
+
* PlatformPublicConnectorRunsApi - factory interface
|
|
50816
|
+
* @export
|
|
50817
|
+
*/
|
|
50818
|
+
const PlatformPublicConnectorRunsApiFactory = function (configuration, basePath, axios) {
|
|
50819
|
+
const localVarFp = (0, exports.PlatformPublicConnectorRunsApiFp)(configuration);
|
|
50820
|
+
return {
|
|
50821
|
+
/**
|
|
50822
|
+
* Accepts a batched envelope of run-lifecycle events (backfill_complete, backfill_failed, progress) signed via HMAC-SHA256 with the connector\'s API key. Per-event idempotency via connector_run_events_dedup. Successful events transition the run phase (B7).
|
|
50823
|
+
* @summary Submit control-plane lifecycle events for a connector run
|
|
50824
|
+
* @param {number} runId connector_runs.id
|
|
50825
|
+
* @param {string} xSeekoraSignature sha256=<hex(hmac_sha256(body, api_key))>
|
|
50826
|
+
* @param {*} [options] Override http request option.
|
|
50827
|
+
* @throws {RequiredError}
|
|
50828
|
+
*/
|
|
50829
|
+
v3PublicConnectorRunsRunIdEventsPost(runId, xSeekoraSignature, options) {
|
|
50830
|
+
return localVarFp.v3PublicConnectorRunsRunIdEventsPost(runId, xSeekoraSignature, options).then((request) => request(axios, basePath));
|
|
50831
|
+
},
|
|
50832
|
+
};
|
|
50833
|
+
};
|
|
50834
|
+
exports.PlatformPublicConnectorRunsApiFactory = PlatformPublicConnectorRunsApiFactory;
|
|
50835
|
+
/**
|
|
50836
|
+
* PlatformPublicConnectorRunsApi - object-oriented interface
|
|
50837
|
+
* @export
|
|
50838
|
+
* @class PlatformPublicConnectorRunsApi
|
|
50839
|
+
* @extends {BaseAPI}
|
|
50840
|
+
*/
|
|
50841
|
+
class PlatformPublicConnectorRunsApi extends base_1.BaseAPI {
|
|
50842
|
+
/**
|
|
50843
|
+
* Accepts a batched envelope of run-lifecycle events (backfill_complete, backfill_failed, progress) signed via HMAC-SHA256 with the connector\'s API key. Per-event idempotency via connector_run_events_dedup. Successful events transition the run phase (B7).
|
|
50844
|
+
* @summary Submit control-plane lifecycle events for a connector run
|
|
50845
|
+
* @param {number} runId connector_runs.id
|
|
50846
|
+
* @param {string} xSeekoraSignature sha256=<hex(hmac_sha256(body, api_key))>
|
|
50847
|
+
* @param {*} [options] Override http request option.
|
|
50848
|
+
* @throws {RequiredError}
|
|
50849
|
+
* @memberof PlatformPublicConnectorRunsApi
|
|
50850
|
+
*/
|
|
50851
|
+
v3PublicConnectorRunsRunIdEventsPost(runId, xSeekoraSignature, options) {
|
|
50852
|
+
return (0, exports.PlatformPublicConnectorRunsApiFp)(this.configuration).v3PublicConnectorRunsRunIdEventsPost(runId, xSeekoraSignature, options).then((request) => request(this.axios, this.basePath));
|
|
50853
|
+
}
|
|
50854
|
+
}
|
|
50855
|
+
exports.PlatformPublicConnectorRunsApi = PlatformPublicConnectorRunsApi;
|
|
50310
50856
|
/**
|
|
50311
50857
|
* PlatformPublicOnboardingApi - axios parameter creator
|
|
50312
50858
|
* @export
|
|
@@ -50426,6 +50972,118 @@ class PlatformPublicOnboardingApi extends base_1.BaseAPI {
|
|
|
50426
50972
|
}
|
|
50427
50973
|
}
|
|
50428
50974
|
exports.PlatformPublicOnboardingApi = PlatformPublicOnboardingApi;
|
|
50975
|
+
/**
|
|
50976
|
+
* PlatformPublicSessionApi - axios parameter creator
|
|
50977
|
+
* @export
|
|
50978
|
+
*/
|
|
50979
|
+
const PlatformPublicSessionApiAxiosParamCreator = function (configuration) {
|
|
50980
|
+
return {
|
|
50981
|
+
/**
|
|
50982
|
+
* Returns a Seekora JWT without running the full provisioning pipeline. Use this for token-refresh after the initial /onboarding/:provider call has provisioned the tenant. shopify-app\'s auto-mint helper hits this on every stale-localStorage page load.
|
|
50983
|
+
* @summary Mint a session JWT for an already-provisioned tenant
|
|
50984
|
+
* @param {string} provider Connector provider slug (e.g. shopify)
|
|
50985
|
+
* @param {OnboardingMintRequest} onboardingMintRequest Mint payload — external_id + access_token only
|
|
50986
|
+
* @param {*} [options] Override http request option.
|
|
50987
|
+
* @throws {RequiredError}
|
|
50988
|
+
*/
|
|
50989
|
+
v3PublicSessionProviderPost: (provider_1, onboardingMintRequest_1, ...args_1) => __awaiter(this, [provider_1, onboardingMintRequest_1, ...args_1], void 0, function* (provider, onboardingMintRequest, options = {}) {
|
|
50990
|
+
// verify required parameter 'provider' is not null or undefined
|
|
50991
|
+
(0, common_1.assertParamExists)('v3PublicSessionProviderPost', 'provider', provider);
|
|
50992
|
+
// verify required parameter 'onboardingMintRequest' is not null or undefined
|
|
50993
|
+
(0, common_1.assertParamExists)('v3PublicSessionProviderPost', 'onboardingMintRequest', onboardingMintRequest);
|
|
50994
|
+
const localVarPath = `/v3/public/session/{provider}`
|
|
50995
|
+
.replace(`{${"provider"}}`, encodeURIComponent(String(provider)));
|
|
50996
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
50997
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
50998
|
+
let baseOptions;
|
|
50999
|
+
if (configuration) {
|
|
51000
|
+
baseOptions = configuration.baseOptions;
|
|
51001
|
+
}
|
|
51002
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
51003
|
+
const localVarHeaderParameter = {};
|
|
51004
|
+
const localVarQueryParameter = {};
|
|
51005
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
51006
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
51007
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
51008
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
51009
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(onboardingMintRequest, localVarRequestOptions, configuration);
|
|
51010
|
+
return {
|
|
51011
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
51012
|
+
options: localVarRequestOptions,
|
|
51013
|
+
};
|
|
51014
|
+
}),
|
|
51015
|
+
};
|
|
51016
|
+
};
|
|
51017
|
+
exports.PlatformPublicSessionApiAxiosParamCreator = PlatformPublicSessionApiAxiosParamCreator;
|
|
51018
|
+
/**
|
|
51019
|
+
* PlatformPublicSessionApi - functional programming interface
|
|
51020
|
+
* @export
|
|
51021
|
+
*/
|
|
51022
|
+
const PlatformPublicSessionApiFp = function (configuration) {
|
|
51023
|
+
const localVarAxiosParamCreator = (0, exports.PlatformPublicSessionApiAxiosParamCreator)(configuration);
|
|
51024
|
+
return {
|
|
51025
|
+
/**
|
|
51026
|
+
* Returns a Seekora JWT without running the full provisioning pipeline. Use this for token-refresh after the initial /onboarding/:provider call has provisioned the tenant. shopify-app\'s auto-mint helper hits this on every stale-localStorage page load.
|
|
51027
|
+
* @summary Mint a session JWT for an already-provisioned tenant
|
|
51028
|
+
* @param {string} provider Connector provider slug (e.g. shopify)
|
|
51029
|
+
* @param {OnboardingMintRequest} onboardingMintRequest Mint payload — external_id + access_token only
|
|
51030
|
+
* @param {*} [options] Override http request option.
|
|
51031
|
+
* @throws {RequiredError}
|
|
51032
|
+
*/
|
|
51033
|
+
v3PublicSessionProviderPost(provider, onboardingMintRequest, options) {
|
|
51034
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
51035
|
+
var _a, _b, _c;
|
|
51036
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.v3PublicSessionProviderPost(provider, onboardingMintRequest, options);
|
|
51037
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
51038
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PlatformPublicSessionApi.v3PublicSessionProviderPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
51039
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
51040
|
+
});
|
|
51041
|
+
},
|
|
51042
|
+
};
|
|
51043
|
+
};
|
|
51044
|
+
exports.PlatformPublicSessionApiFp = PlatformPublicSessionApiFp;
|
|
51045
|
+
/**
|
|
51046
|
+
* PlatformPublicSessionApi - factory interface
|
|
51047
|
+
* @export
|
|
51048
|
+
*/
|
|
51049
|
+
const PlatformPublicSessionApiFactory = function (configuration, basePath, axios) {
|
|
51050
|
+
const localVarFp = (0, exports.PlatformPublicSessionApiFp)(configuration);
|
|
51051
|
+
return {
|
|
51052
|
+
/**
|
|
51053
|
+
* Returns a Seekora JWT without running the full provisioning pipeline. Use this for token-refresh after the initial /onboarding/:provider call has provisioned the tenant. shopify-app\'s auto-mint helper hits this on every stale-localStorage page load.
|
|
51054
|
+
* @summary Mint a session JWT for an already-provisioned tenant
|
|
51055
|
+
* @param {string} provider Connector provider slug (e.g. shopify)
|
|
51056
|
+
* @param {OnboardingMintRequest} onboardingMintRequest Mint payload — external_id + access_token only
|
|
51057
|
+
* @param {*} [options] Override http request option.
|
|
51058
|
+
* @throws {RequiredError}
|
|
51059
|
+
*/
|
|
51060
|
+
v3PublicSessionProviderPost(provider, onboardingMintRequest, options) {
|
|
51061
|
+
return localVarFp.v3PublicSessionProviderPost(provider, onboardingMintRequest, options).then((request) => request(axios, basePath));
|
|
51062
|
+
},
|
|
51063
|
+
};
|
|
51064
|
+
};
|
|
51065
|
+
exports.PlatformPublicSessionApiFactory = PlatformPublicSessionApiFactory;
|
|
51066
|
+
/**
|
|
51067
|
+
* PlatformPublicSessionApi - object-oriented interface
|
|
51068
|
+
* @export
|
|
51069
|
+
* @class PlatformPublicSessionApi
|
|
51070
|
+
* @extends {BaseAPI}
|
|
51071
|
+
*/
|
|
51072
|
+
class PlatformPublicSessionApi extends base_1.BaseAPI {
|
|
51073
|
+
/**
|
|
51074
|
+
* Returns a Seekora JWT without running the full provisioning pipeline. Use this for token-refresh after the initial /onboarding/:provider call has provisioned the tenant. shopify-app\'s auto-mint helper hits this on every stale-localStorage page load.
|
|
51075
|
+
* @summary Mint a session JWT for an already-provisioned tenant
|
|
51076
|
+
* @param {string} provider Connector provider slug (e.g. shopify)
|
|
51077
|
+
* @param {OnboardingMintRequest} onboardingMintRequest Mint payload — external_id + access_token only
|
|
51078
|
+
* @param {*} [options] Override http request option.
|
|
51079
|
+
* @throws {RequiredError}
|
|
51080
|
+
* @memberof PlatformPublicSessionApi
|
|
51081
|
+
*/
|
|
51082
|
+
v3PublicSessionProviderPost(provider, onboardingMintRequest, options) {
|
|
51083
|
+
return (0, exports.PlatformPublicSessionApiFp)(this.configuration).v3PublicSessionProviderPost(provider, onboardingMintRequest, options).then((request) => request(this.axios, this.basePath));
|
|
51084
|
+
}
|
|
51085
|
+
}
|
|
51086
|
+
exports.PlatformPublicSessionApi = PlatformPublicSessionApi;
|
|
50429
51087
|
/**
|
|
50430
51088
|
* PluralsDeclensionsApi - axios parameter creator
|
|
50431
51089
|
* @export
|