@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/esm/api.js
CHANGED
|
@@ -1589,6 +1589,37 @@ export class AdminAnalyticsApi extends BaseAPI {
|
|
|
1589
1589
|
*/
|
|
1590
1590
|
export const AdminConnectorWebhooksApiAxiosParamCreator = function (configuration) {
|
|
1591
1591
|
return {
|
|
1592
|
+
/**
|
|
1593
|
+
* 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.
|
|
1594
|
+
* @summary Regenerate provider schema cache for a connector source
|
|
1595
|
+
* @param {string} sourceUuid Connector source UUID
|
|
1596
|
+
* @param {*} [options] Override http request option.
|
|
1597
|
+
* @throws {RequiredError}
|
|
1598
|
+
*/
|
|
1599
|
+
adminConnectorsSourcesSourceUuidSchemaRegeneratePost: (sourceUuid_1, ...args_1) => __awaiter(this, [sourceUuid_1, ...args_1], void 0, function* (sourceUuid, options = {}) {
|
|
1600
|
+
// verify required parameter 'sourceUuid' is not null or undefined
|
|
1601
|
+
assertParamExists('adminConnectorsSourcesSourceUuidSchemaRegeneratePost', 'sourceUuid', sourceUuid);
|
|
1602
|
+
const localVarPath = `/admin/connectors/sources/{source_uuid}/schema/regenerate`
|
|
1603
|
+
.replace(`{${"source_uuid"}}`, encodeURIComponent(String(sourceUuid)));
|
|
1604
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1605
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1606
|
+
let baseOptions;
|
|
1607
|
+
if (configuration) {
|
|
1608
|
+
baseOptions = configuration.baseOptions;
|
|
1609
|
+
}
|
|
1610
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1611
|
+
const localVarHeaderParameter = {};
|
|
1612
|
+
const localVarQueryParameter = {};
|
|
1613
|
+
// authentication BearerAuth required
|
|
1614
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
1615
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1616
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1617
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1618
|
+
return {
|
|
1619
|
+
url: toPathString(localVarUrlObj),
|
|
1620
|
+
options: localVarRequestOptions,
|
|
1621
|
+
};
|
|
1622
|
+
}),
|
|
1592
1623
|
/**
|
|
1593
1624
|
* 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.
|
|
1594
1625
|
* @summary Replay a recorded webhook delivery
|
|
@@ -1631,10 +1662,12 @@ export const AdminConnectorWebhooksApiAxiosParamCreator = function (configuratio
|
|
|
1631
1662
|
* @param {string} [status] Filter by delivery status (pending, processed, failed)
|
|
1632
1663
|
* @param {number} [limit] Page size (default 50, max 200)
|
|
1633
1664
|
* @param {string} [beforeUuid] Cursor: return rows older than the delivery with this UUID
|
|
1665
|
+
* @param {string} [since] Lower bound (inclusive) on received_at, RFC3339 / ISO-8601 (e.g. 2026-05-01T00:00:00Z)
|
|
1666
|
+
* @param {string} [until] Upper bound (exclusive) on received_at, RFC3339 / ISO-8601 (e.g. 2026-05-06T00:00:00Z)
|
|
1634
1667
|
* @param {*} [options] Override http request option.
|
|
1635
1668
|
* @throws {RequiredError}
|
|
1636
1669
|
*/
|
|
1637
|
-
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 = {}) {
|
|
1670
|
+
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 = {}) {
|
|
1638
1671
|
// verify required parameter 'sourceUuid' is not null or undefined
|
|
1639
1672
|
assertParamExists('adminConnectorsSourcesSourceUuidWebhooksDeliveriesGet', 'sourceUuid', sourceUuid);
|
|
1640
1673
|
const localVarPath = `/admin/connectors/sources/{source_uuid}/webhooks/deliveries`
|
|
@@ -1659,6 +1692,43 @@ export const AdminConnectorWebhooksApiAxiosParamCreator = function (configuratio
|
|
|
1659
1692
|
if (beforeUuid !== undefined) {
|
|
1660
1693
|
localVarQueryParameter['before_uuid'] = beforeUuid;
|
|
1661
1694
|
}
|
|
1695
|
+
if (since !== undefined) {
|
|
1696
|
+
localVarQueryParameter['since'] = since;
|
|
1697
|
+
}
|
|
1698
|
+
if (until !== undefined) {
|
|
1699
|
+
localVarQueryParameter['until'] = until;
|
|
1700
|
+
}
|
|
1701
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1702
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1703
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1704
|
+
return {
|
|
1705
|
+
url: toPathString(localVarUrlObj),
|
|
1706
|
+
options: localVarRequestOptions,
|
|
1707
|
+
};
|
|
1708
|
+
}),
|
|
1709
|
+
/**
|
|
1710
|
+
* 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.
|
|
1711
|
+
* @summary Reconcile webhook subscriptions against the provider
|
|
1712
|
+
* @param {string} sourceUuid Connector source UUID
|
|
1713
|
+
* @param {*} [options] Override http request option.
|
|
1714
|
+
* @throws {RequiredError}
|
|
1715
|
+
*/
|
|
1716
|
+
adminConnectorsSourcesSourceUuidWebhooksReconcilePost: (sourceUuid_1, ...args_1) => __awaiter(this, [sourceUuid_1, ...args_1], void 0, function* (sourceUuid, options = {}) {
|
|
1717
|
+
// verify required parameter 'sourceUuid' is not null or undefined
|
|
1718
|
+
assertParamExists('adminConnectorsSourcesSourceUuidWebhooksReconcilePost', 'sourceUuid', sourceUuid);
|
|
1719
|
+
const localVarPath = `/admin/connectors/sources/{source_uuid}/webhooks/reconcile`
|
|
1720
|
+
.replace(`{${"source_uuid"}}`, encodeURIComponent(String(sourceUuid)));
|
|
1721
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1722
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1723
|
+
let baseOptions;
|
|
1724
|
+
if (configuration) {
|
|
1725
|
+
baseOptions = configuration.baseOptions;
|
|
1726
|
+
}
|
|
1727
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1728
|
+
const localVarHeaderParameter = {};
|
|
1729
|
+
const localVarQueryParameter = {};
|
|
1730
|
+
// authentication BearerAuth required
|
|
1731
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
1662
1732
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1663
1733
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1664
1734
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -1698,6 +1768,33 @@ export const AdminConnectorWebhooksApiAxiosParamCreator = function (configuratio
|
|
|
1698
1768
|
options: localVarRequestOptions,
|
|
1699
1769
|
};
|
|
1700
1770
|
}),
|
|
1771
|
+
/**
|
|
1772
|
+
* 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.
|
|
1773
|
+
* @summary Reconcile webhook subscriptions for every connector source
|
|
1774
|
+
* @param {*} [options] Override http request option.
|
|
1775
|
+
* @throws {RequiredError}
|
|
1776
|
+
*/
|
|
1777
|
+
adminConnectorsWebhooksReconcileAllPost: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
1778
|
+
const localVarPath = `/admin/connectors/webhooks/reconcile-all`;
|
|
1779
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1780
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1781
|
+
let baseOptions;
|
|
1782
|
+
if (configuration) {
|
|
1783
|
+
baseOptions = configuration.baseOptions;
|
|
1784
|
+
}
|
|
1785
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1786
|
+
const localVarHeaderParameter = {};
|
|
1787
|
+
const localVarQueryParameter = {};
|
|
1788
|
+
// authentication BearerAuth required
|
|
1789
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
1790
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1791
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1792
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1793
|
+
return {
|
|
1794
|
+
url: toPathString(localVarUrlObj),
|
|
1795
|
+
options: localVarRequestOptions,
|
|
1796
|
+
};
|
|
1797
|
+
}),
|
|
1701
1798
|
/**
|
|
1702
1799
|
* 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.
|
|
1703
1800
|
* @summary Resubscribe webhooks for every connector source
|
|
@@ -1734,6 +1831,22 @@ export const AdminConnectorWebhooksApiAxiosParamCreator = function (configuratio
|
|
|
1734
1831
|
export const AdminConnectorWebhooksApiFp = function (configuration) {
|
|
1735
1832
|
const localVarAxiosParamCreator = AdminConnectorWebhooksApiAxiosParamCreator(configuration);
|
|
1736
1833
|
return {
|
|
1834
|
+
/**
|
|
1835
|
+
* 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.
|
|
1836
|
+
* @summary Regenerate provider schema cache for a connector source
|
|
1837
|
+
* @param {string} sourceUuid Connector source UUID
|
|
1838
|
+
* @param {*} [options] Override http request option.
|
|
1839
|
+
* @throws {RequiredError}
|
|
1840
|
+
*/
|
|
1841
|
+
adminConnectorsSourcesSourceUuidSchemaRegeneratePost(sourceUuid, options) {
|
|
1842
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1843
|
+
var _a, _b, _c;
|
|
1844
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminConnectorsSourcesSourceUuidSchemaRegeneratePost(sourceUuid, options);
|
|
1845
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1846
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AdminConnectorWebhooksApi.adminConnectorsSourcesSourceUuidSchemaRegeneratePost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1847
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1848
|
+
});
|
|
1849
|
+
},
|
|
1737
1850
|
/**
|
|
1738
1851
|
* 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.
|
|
1739
1852
|
* @summary Replay a recorded webhook delivery
|
|
@@ -1758,18 +1871,36 @@ export const AdminConnectorWebhooksApiFp = function (configuration) {
|
|
|
1758
1871
|
* @param {string} [status] Filter by delivery status (pending, processed, failed)
|
|
1759
1872
|
* @param {number} [limit] Page size (default 50, max 200)
|
|
1760
1873
|
* @param {string} [beforeUuid] Cursor: return rows older than the delivery with this UUID
|
|
1874
|
+
* @param {string} [since] Lower bound (inclusive) on received_at, RFC3339 / ISO-8601 (e.g. 2026-05-01T00:00:00Z)
|
|
1875
|
+
* @param {string} [until] Upper bound (exclusive) on received_at, RFC3339 / ISO-8601 (e.g. 2026-05-06T00:00:00Z)
|
|
1761
1876
|
* @param {*} [options] Override http request option.
|
|
1762
1877
|
* @throws {RequiredError}
|
|
1763
1878
|
*/
|
|
1764
|
-
adminConnectorsSourcesSourceUuidWebhooksDeliveriesGet(sourceUuid, status, limit, beforeUuid, options) {
|
|
1879
|
+
adminConnectorsSourcesSourceUuidWebhooksDeliveriesGet(sourceUuid, status, limit, beforeUuid, since, until, options) {
|
|
1765
1880
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1766
1881
|
var _a, _b, _c;
|
|
1767
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminConnectorsSourcesSourceUuidWebhooksDeliveriesGet(sourceUuid, status, limit, beforeUuid, options);
|
|
1882
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminConnectorsSourcesSourceUuidWebhooksDeliveriesGet(sourceUuid, status, limit, beforeUuid, since, until, options);
|
|
1768
1883
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1769
1884
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AdminConnectorWebhooksApi.adminConnectorsSourcesSourceUuidWebhooksDeliveriesGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1770
1885
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1771
1886
|
});
|
|
1772
1887
|
},
|
|
1888
|
+
/**
|
|
1889
|
+
* 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.
|
|
1890
|
+
* @summary Reconcile webhook subscriptions against the provider
|
|
1891
|
+
* @param {string} sourceUuid Connector source UUID
|
|
1892
|
+
* @param {*} [options] Override http request option.
|
|
1893
|
+
* @throws {RequiredError}
|
|
1894
|
+
*/
|
|
1895
|
+
adminConnectorsSourcesSourceUuidWebhooksReconcilePost(sourceUuid, options) {
|
|
1896
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1897
|
+
var _a, _b, _c;
|
|
1898
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminConnectorsSourcesSourceUuidWebhooksReconcilePost(sourceUuid, options);
|
|
1899
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1900
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AdminConnectorWebhooksApi.adminConnectorsSourcesSourceUuidWebhooksReconcilePost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1901
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1902
|
+
});
|
|
1903
|
+
},
|
|
1773
1904
|
/**
|
|
1774
1905
|
* Re-run the register_webhooks post-install hook for one connector source. Idempotent via ON CONFLICT (source_id, topic) DO UPDATE.
|
|
1775
1906
|
* @summary Resubscribe webhooks for a connector source
|
|
@@ -1786,6 +1917,21 @@ export const AdminConnectorWebhooksApiFp = function (configuration) {
|
|
|
1786
1917
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1787
1918
|
});
|
|
1788
1919
|
},
|
|
1920
|
+
/**
|
|
1921
|
+
* 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.
|
|
1922
|
+
* @summary Reconcile webhook subscriptions for every connector source
|
|
1923
|
+
* @param {*} [options] Override http request option.
|
|
1924
|
+
* @throws {RequiredError}
|
|
1925
|
+
*/
|
|
1926
|
+
adminConnectorsWebhooksReconcileAllPost(options) {
|
|
1927
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1928
|
+
var _a, _b, _c;
|
|
1929
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminConnectorsWebhooksReconcileAllPost(options);
|
|
1930
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1931
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AdminConnectorWebhooksApi.adminConnectorsWebhooksReconcileAllPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1932
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1933
|
+
});
|
|
1934
|
+
},
|
|
1789
1935
|
/**
|
|
1790
1936
|
* 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.
|
|
1791
1937
|
* @summary Resubscribe webhooks for every connector source
|
|
@@ -1810,6 +1956,16 @@ export const AdminConnectorWebhooksApiFp = function (configuration) {
|
|
|
1810
1956
|
export const AdminConnectorWebhooksApiFactory = function (configuration, basePath, axios) {
|
|
1811
1957
|
const localVarFp = AdminConnectorWebhooksApiFp(configuration);
|
|
1812
1958
|
return {
|
|
1959
|
+
/**
|
|
1960
|
+
* 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.
|
|
1961
|
+
* @summary Regenerate provider schema cache for a connector source
|
|
1962
|
+
* @param {string} sourceUuid Connector source UUID
|
|
1963
|
+
* @param {*} [options] Override http request option.
|
|
1964
|
+
* @throws {RequiredError}
|
|
1965
|
+
*/
|
|
1966
|
+
adminConnectorsSourcesSourceUuidSchemaRegeneratePost(sourceUuid, options) {
|
|
1967
|
+
return localVarFp.adminConnectorsSourcesSourceUuidSchemaRegeneratePost(sourceUuid, options).then((request) => request(axios, basePath));
|
|
1968
|
+
},
|
|
1813
1969
|
/**
|
|
1814
1970
|
* 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.
|
|
1815
1971
|
* @summary Replay a recorded webhook delivery
|
|
@@ -1828,11 +1984,23 @@ export const AdminConnectorWebhooksApiFactory = function (configuration, basePat
|
|
|
1828
1984
|
* @param {string} [status] Filter by delivery status (pending, processed, failed)
|
|
1829
1985
|
* @param {number} [limit] Page size (default 50, max 200)
|
|
1830
1986
|
* @param {string} [beforeUuid] Cursor: return rows older than the delivery with this UUID
|
|
1987
|
+
* @param {string} [since] Lower bound (inclusive) on received_at, RFC3339 / ISO-8601 (e.g. 2026-05-01T00:00:00Z)
|
|
1988
|
+
* @param {string} [until] Upper bound (exclusive) on received_at, RFC3339 / ISO-8601 (e.g. 2026-05-06T00:00:00Z)
|
|
1989
|
+
* @param {*} [options] Override http request option.
|
|
1990
|
+
* @throws {RequiredError}
|
|
1991
|
+
*/
|
|
1992
|
+
adminConnectorsSourcesSourceUuidWebhooksDeliveriesGet(sourceUuid, status, limit, beforeUuid, since, until, options) {
|
|
1993
|
+
return localVarFp.adminConnectorsSourcesSourceUuidWebhooksDeliveriesGet(sourceUuid, status, limit, beforeUuid, since, until, options).then((request) => request(axios, basePath));
|
|
1994
|
+
},
|
|
1995
|
+
/**
|
|
1996
|
+
* 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.
|
|
1997
|
+
* @summary Reconcile webhook subscriptions against the provider
|
|
1998
|
+
* @param {string} sourceUuid Connector source UUID
|
|
1831
1999
|
* @param {*} [options] Override http request option.
|
|
1832
2000
|
* @throws {RequiredError}
|
|
1833
2001
|
*/
|
|
1834
|
-
|
|
1835
|
-
return localVarFp.
|
|
2002
|
+
adminConnectorsSourcesSourceUuidWebhooksReconcilePost(sourceUuid, options) {
|
|
2003
|
+
return localVarFp.adminConnectorsSourcesSourceUuidWebhooksReconcilePost(sourceUuid, options).then((request) => request(axios, basePath));
|
|
1836
2004
|
},
|
|
1837
2005
|
/**
|
|
1838
2006
|
* Re-run the register_webhooks post-install hook for one connector source. Idempotent via ON CONFLICT (source_id, topic) DO UPDATE.
|
|
@@ -1844,6 +2012,15 @@ export const AdminConnectorWebhooksApiFactory = function (configuration, basePat
|
|
|
1844
2012
|
adminConnectorsSourcesSourceUuidWebhooksResubscribePost(sourceUuid, options) {
|
|
1845
2013
|
return localVarFp.adminConnectorsSourcesSourceUuidWebhooksResubscribePost(sourceUuid, options).then((request) => request(axios, basePath));
|
|
1846
2014
|
},
|
|
2015
|
+
/**
|
|
2016
|
+
* 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.
|
|
2017
|
+
* @summary Reconcile webhook subscriptions for every connector source
|
|
2018
|
+
* @param {*} [options] Override http request option.
|
|
2019
|
+
* @throws {RequiredError}
|
|
2020
|
+
*/
|
|
2021
|
+
adminConnectorsWebhooksReconcileAllPost(options) {
|
|
2022
|
+
return localVarFp.adminConnectorsWebhooksReconcileAllPost(options).then((request) => request(axios, basePath));
|
|
2023
|
+
},
|
|
1847
2024
|
/**
|
|
1848
2025
|
* 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.
|
|
1849
2026
|
* @summary Resubscribe webhooks for every connector source
|
|
@@ -1862,6 +2039,17 @@ export const AdminConnectorWebhooksApiFactory = function (configuration, basePat
|
|
|
1862
2039
|
* @extends {BaseAPI}
|
|
1863
2040
|
*/
|
|
1864
2041
|
export class AdminConnectorWebhooksApi extends BaseAPI {
|
|
2042
|
+
/**
|
|
2043
|
+
* 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.
|
|
2044
|
+
* @summary Regenerate provider schema cache for a connector source
|
|
2045
|
+
* @param {string} sourceUuid Connector source UUID
|
|
2046
|
+
* @param {*} [options] Override http request option.
|
|
2047
|
+
* @throws {RequiredError}
|
|
2048
|
+
* @memberof AdminConnectorWebhooksApi
|
|
2049
|
+
*/
|
|
2050
|
+
adminConnectorsSourcesSourceUuidSchemaRegeneratePost(sourceUuid, options) {
|
|
2051
|
+
return AdminConnectorWebhooksApiFp(this.configuration).adminConnectorsSourcesSourceUuidSchemaRegeneratePost(sourceUuid, options).then((request) => request(this.axios, this.basePath));
|
|
2052
|
+
}
|
|
1865
2053
|
/**
|
|
1866
2054
|
* 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.
|
|
1867
2055
|
* @summary Replay a recorded webhook delivery
|
|
@@ -1881,12 +2069,25 @@ export class AdminConnectorWebhooksApi extends BaseAPI {
|
|
|
1881
2069
|
* @param {string} [status] Filter by delivery status (pending, processed, failed)
|
|
1882
2070
|
* @param {number} [limit] Page size (default 50, max 200)
|
|
1883
2071
|
* @param {string} [beforeUuid] Cursor: return rows older than the delivery with this UUID
|
|
2072
|
+
* @param {string} [since] Lower bound (inclusive) on received_at, RFC3339 / ISO-8601 (e.g. 2026-05-01T00:00:00Z)
|
|
2073
|
+
* @param {string} [until] Upper bound (exclusive) on received_at, RFC3339 / ISO-8601 (e.g. 2026-05-06T00:00:00Z)
|
|
2074
|
+
* @param {*} [options] Override http request option.
|
|
2075
|
+
* @throws {RequiredError}
|
|
2076
|
+
* @memberof AdminConnectorWebhooksApi
|
|
2077
|
+
*/
|
|
2078
|
+
adminConnectorsSourcesSourceUuidWebhooksDeliveriesGet(sourceUuid, status, limit, beforeUuid, since, until, options) {
|
|
2079
|
+
return AdminConnectorWebhooksApiFp(this.configuration).adminConnectorsSourcesSourceUuidWebhooksDeliveriesGet(sourceUuid, status, limit, beforeUuid, since, until, options).then((request) => request(this.axios, this.basePath));
|
|
2080
|
+
}
|
|
2081
|
+
/**
|
|
2082
|
+
* 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.
|
|
2083
|
+
* @summary Reconcile webhook subscriptions against the provider
|
|
2084
|
+
* @param {string} sourceUuid Connector source UUID
|
|
1884
2085
|
* @param {*} [options] Override http request option.
|
|
1885
2086
|
* @throws {RequiredError}
|
|
1886
2087
|
* @memberof AdminConnectorWebhooksApi
|
|
1887
2088
|
*/
|
|
1888
|
-
|
|
1889
|
-
return AdminConnectorWebhooksApiFp(this.configuration).
|
|
2089
|
+
adminConnectorsSourcesSourceUuidWebhooksReconcilePost(sourceUuid, options) {
|
|
2090
|
+
return AdminConnectorWebhooksApiFp(this.configuration).adminConnectorsSourcesSourceUuidWebhooksReconcilePost(sourceUuid, options).then((request) => request(this.axios, this.basePath));
|
|
1890
2091
|
}
|
|
1891
2092
|
/**
|
|
1892
2093
|
* Re-run the register_webhooks post-install hook for one connector source. Idempotent via ON CONFLICT (source_id, topic) DO UPDATE.
|
|
@@ -1899,6 +2100,16 @@ export class AdminConnectorWebhooksApi extends BaseAPI {
|
|
|
1899
2100
|
adminConnectorsSourcesSourceUuidWebhooksResubscribePost(sourceUuid, options) {
|
|
1900
2101
|
return AdminConnectorWebhooksApiFp(this.configuration).adminConnectorsSourcesSourceUuidWebhooksResubscribePost(sourceUuid, options).then((request) => request(this.axios, this.basePath));
|
|
1901
2102
|
}
|
|
2103
|
+
/**
|
|
2104
|
+
* 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.
|
|
2105
|
+
* @summary Reconcile webhook subscriptions for every connector source
|
|
2106
|
+
* @param {*} [options] Override http request option.
|
|
2107
|
+
* @throws {RequiredError}
|
|
2108
|
+
* @memberof AdminConnectorWebhooksApi
|
|
2109
|
+
*/
|
|
2110
|
+
adminConnectorsWebhooksReconcileAllPost(options) {
|
|
2111
|
+
return AdminConnectorWebhooksApiFp(this.configuration).adminConnectorsWebhooksReconcileAllPost(options).then((request) => request(this.axios, this.basePath));
|
|
2112
|
+
}
|
|
1902
2113
|
/**
|
|
1903
2114
|
* 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.
|
|
1904
2115
|
* @summary Resubscribe webhooks for every connector source
|
|
@@ -14984,6 +15195,60 @@ export const BillingApiAxiosParamCreator = function (configuration) {
|
|
|
14984
15195
|
options: localVarRequestOptions,
|
|
14985
15196
|
};
|
|
14986
15197
|
}),
|
|
15198
|
+
/**
|
|
15199
|
+
*
|
|
15200
|
+
* @summary Resume a cancelled subscription with remaining tenure (entitlement grant only, no Shopify call)
|
|
15201
|
+
* @param {*} [options] Override http request option.
|
|
15202
|
+
* @throws {RequiredError}
|
|
15203
|
+
*/
|
|
15204
|
+
apiV1BillingResumeCancelledSubscriptionPost: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
15205
|
+
const localVarPath = `/api/v1/billing/resume-cancelled-subscription`;
|
|
15206
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15207
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
15208
|
+
let baseOptions;
|
|
15209
|
+
if (configuration) {
|
|
15210
|
+
baseOptions = configuration.baseOptions;
|
|
15211
|
+
}
|
|
15212
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
15213
|
+
const localVarHeaderParameter = {};
|
|
15214
|
+
const localVarQueryParameter = {};
|
|
15215
|
+
// authentication BearerAuth required
|
|
15216
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
15217
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
15218
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15219
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
15220
|
+
return {
|
|
15221
|
+
url: toPathString(localVarUrlObj),
|
|
15222
|
+
options: localVarRequestOptions,
|
|
15223
|
+
};
|
|
15224
|
+
}),
|
|
15225
|
+
/**
|
|
15226
|
+
*
|
|
15227
|
+
* @summary Returning-merchant signal — does this org have a cancelled paid plan with remaining tenure?
|
|
15228
|
+
* @param {*} [options] Override http request option.
|
|
15229
|
+
* @throws {RequiredError}
|
|
15230
|
+
*/
|
|
15231
|
+
apiV1BillingReturningMerchantSignalGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
15232
|
+
const localVarPath = `/api/v1/billing/returning-merchant-signal`;
|
|
15233
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15234
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
15235
|
+
let baseOptions;
|
|
15236
|
+
if (configuration) {
|
|
15237
|
+
baseOptions = configuration.baseOptions;
|
|
15238
|
+
}
|
|
15239
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
15240
|
+
const localVarHeaderParameter = {};
|
|
15241
|
+
const localVarQueryParameter = {};
|
|
15242
|
+
// authentication BearerAuth required
|
|
15243
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
15244
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
15245
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15246
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
15247
|
+
return {
|
|
15248
|
+
url: toPathString(localVarUrlObj),
|
|
15249
|
+
options: localVarRequestOptions,
|
|
15250
|
+
};
|
|
15251
|
+
}),
|
|
14987
15252
|
/**
|
|
14988
15253
|
*
|
|
14989
15254
|
* @summary Create a new subscription
|
|
@@ -15208,6 +15473,36 @@ export const BillingApiFp = function (configuration) {
|
|
|
15208
15473
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15209
15474
|
});
|
|
15210
15475
|
},
|
|
15476
|
+
/**
|
|
15477
|
+
*
|
|
15478
|
+
* @summary Resume a cancelled subscription with remaining tenure (entitlement grant only, no Shopify call)
|
|
15479
|
+
* @param {*} [options] Override http request option.
|
|
15480
|
+
* @throws {RequiredError}
|
|
15481
|
+
*/
|
|
15482
|
+
apiV1BillingResumeCancelledSubscriptionPost(options) {
|
|
15483
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
15484
|
+
var _a, _b, _c;
|
|
15485
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV1BillingResumeCancelledSubscriptionPost(options);
|
|
15486
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
15487
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BillingApi.apiV1BillingResumeCancelledSubscriptionPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
15488
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15489
|
+
});
|
|
15490
|
+
},
|
|
15491
|
+
/**
|
|
15492
|
+
*
|
|
15493
|
+
* @summary Returning-merchant signal — does this org have a cancelled paid plan with remaining tenure?
|
|
15494
|
+
* @param {*} [options] Override http request option.
|
|
15495
|
+
* @throws {RequiredError}
|
|
15496
|
+
*/
|
|
15497
|
+
apiV1BillingReturningMerchantSignalGet(options) {
|
|
15498
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
15499
|
+
var _a, _b, _c;
|
|
15500
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV1BillingReturningMerchantSignalGet(options);
|
|
15501
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
15502
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BillingApi.apiV1BillingReturningMerchantSignalGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
15503
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15504
|
+
});
|
|
15505
|
+
},
|
|
15211
15506
|
/**
|
|
15212
15507
|
*
|
|
15213
15508
|
* @summary Create a new subscription
|
|
@@ -15339,6 +15634,24 @@ export const BillingApiFactory = function (configuration, basePath, axios) {
|
|
|
15339
15634
|
apiV1BillingPlansGet(options) {
|
|
15340
15635
|
return localVarFp.apiV1BillingPlansGet(options).then((request) => request(axios, basePath));
|
|
15341
15636
|
},
|
|
15637
|
+
/**
|
|
15638
|
+
*
|
|
15639
|
+
* @summary Resume a cancelled subscription with remaining tenure (entitlement grant only, no Shopify call)
|
|
15640
|
+
* @param {*} [options] Override http request option.
|
|
15641
|
+
* @throws {RequiredError}
|
|
15642
|
+
*/
|
|
15643
|
+
apiV1BillingResumeCancelledSubscriptionPost(options) {
|
|
15644
|
+
return localVarFp.apiV1BillingResumeCancelledSubscriptionPost(options).then((request) => request(axios, basePath));
|
|
15645
|
+
},
|
|
15646
|
+
/**
|
|
15647
|
+
*
|
|
15648
|
+
* @summary Returning-merchant signal — does this org have a cancelled paid plan with remaining tenure?
|
|
15649
|
+
* @param {*} [options] Override http request option.
|
|
15650
|
+
* @throws {RequiredError}
|
|
15651
|
+
*/
|
|
15652
|
+
apiV1BillingReturningMerchantSignalGet(options) {
|
|
15653
|
+
return localVarFp.apiV1BillingReturningMerchantSignalGet(options).then((request) => request(axios, basePath));
|
|
15654
|
+
},
|
|
15342
15655
|
/**
|
|
15343
15656
|
*
|
|
15344
15657
|
* @summary Create a new subscription
|
|
@@ -15452,6 +15765,26 @@ export class BillingApi extends BaseAPI {
|
|
|
15452
15765
|
apiV1BillingPlansGet(options) {
|
|
15453
15766
|
return BillingApiFp(this.configuration).apiV1BillingPlansGet(options).then((request) => request(this.axios, this.basePath));
|
|
15454
15767
|
}
|
|
15768
|
+
/**
|
|
15769
|
+
*
|
|
15770
|
+
* @summary Resume a cancelled subscription with remaining tenure (entitlement grant only, no Shopify call)
|
|
15771
|
+
* @param {*} [options] Override http request option.
|
|
15772
|
+
* @throws {RequiredError}
|
|
15773
|
+
* @memberof BillingApi
|
|
15774
|
+
*/
|
|
15775
|
+
apiV1BillingResumeCancelledSubscriptionPost(options) {
|
|
15776
|
+
return BillingApiFp(this.configuration).apiV1BillingResumeCancelledSubscriptionPost(options).then((request) => request(this.axios, this.basePath));
|
|
15777
|
+
}
|
|
15778
|
+
/**
|
|
15779
|
+
*
|
|
15780
|
+
* @summary Returning-merchant signal — does this org have a cancelled paid plan with remaining tenure?
|
|
15781
|
+
* @param {*} [options] Override http request option.
|
|
15782
|
+
* @throws {RequiredError}
|
|
15783
|
+
* @memberof BillingApi
|
|
15784
|
+
*/
|
|
15785
|
+
apiV1BillingReturningMerchantSignalGet(options) {
|
|
15786
|
+
return BillingApiFp(this.configuration).apiV1BillingReturningMerchantSignalGet(options).then((request) => request(this.axios, this.basePath));
|
|
15787
|
+
}
|
|
15455
15788
|
/**
|
|
15456
15789
|
*
|
|
15457
15790
|
* @summary Create a new subscription
|
|
@@ -40056,6 +40389,101 @@ export class InternalApi extends BaseAPI {
|
|
|
40056
40389
|
return InternalApiFp(this.configuration).internalConnectorAuthUuidResolveGet(uuid, options).then((request) => request(this.axios, this.basePath));
|
|
40057
40390
|
}
|
|
40058
40391
|
}
|
|
40392
|
+
/**
|
|
40393
|
+
* InternalConnectorWebhooksApi - axios parameter creator
|
|
40394
|
+
* @export
|
|
40395
|
+
*/
|
|
40396
|
+
export const InternalConnectorWebhooksApiAxiosParamCreator = function (configuration) {
|
|
40397
|
+
return {
|
|
40398
|
+
/**
|
|
40399
|
+
* 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.
|
|
40400
|
+
* @summary Revoke orphan connector authorizations
|
|
40401
|
+
* @param {*} [options] Override http request option.
|
|
40402
|
+
* @throws {RequiredError}
|
|
40403
|
+
*/
|
|
40404
|
+
internalConnectorWebhooksRevokeOrphanAuthorizationsPost: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
40405
|
+
const localVarPath = `/internal/connector-webhooks/revoke-orphan-authorizations`;
|
|
40406
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
40407
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
40408
|
+
let baseOptions;
|
|
40409
|
+
if (configuration) {
|
|
40410
|
+
baseOptions = configuration.baseOptions;
|
|
40411
|
+
}
|
|
40412
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
40413
|
+
const localVarHeaderParameter = {};
|
|
40414
|
+
const localVarQueryParameter = {};
|
|
40415
|
+
// authentication BearerAuth required
|
|
40416
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
40417
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
40418
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
40419
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
40420
|
+
return {
|
|
40421
|
+
url: toPathString(localVarUrlObj),
|
|
40422
|
+
options: localVarRequestOptions,
|
|
40423
|
+
};
|
|
40424
|
+
}),
|
|
40425
|
+
};
|
|
40426
|
+
};
|
|
40427
|
+
/**
|
|
40428
|
+
* InternalConnectorWebhooksApi - functional programming interface
|
|
40429
|
+
* @export
|
|
40430
|
+
*/
|
|
40431
|
+
export const InternalConnectorWebhooksApiFp = function (configuration) {
|
|
40432
|
+
const localVarAxiosParamCreator = InternalConnectorWebhooksApiAxiosParamCreator(configuration);
|
|
40433
|
+
return {
|
|
40434
|
+
/**
|
|
40435
|
+
* 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.
|
|
40436
|
+
* @summary Revoke orphan connector authorizations
|
|
40437
|
+
* @param {*} [options] Override http request option.
|
|
40438
|
+
* @throws {RequiredError}
|
|
40439
|
+
*/
|
|
40440
|
+
internalConnectorWebhooksRevokeOrphanAuthorizationsPost(options) {
|
|
40441
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
40442
|
+
var _a, _b, _c;
|
|
40443
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.internalConnectorWebhooksRevokeOrphanAuthorizationsPost(options);
|
|
40444
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
40445
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['InternalConnectorWebhooksApi.internalConnectorWebhooksRevokeOrphanAuthorizationsPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
40446
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
40447
|
+
});
|
|
40448
|
+
},
|
|
40449
|
+
};
|
|
40450
|
+
};
|
|
40451
|
+
/**
|
|
40452
|
+
* InternalConnectorWebhooksApi - factory interface
|
|
40453
|
+
* @export
|
|
40454
|
+
*/
|
|
40455
|
+
export const InternalConnectorWebhooksApiFactory = function (configuration, basePath, axios) {
|
|
40456
|
+
const localVarFp = InternalConnectorWebhooksApiFp(configuration);
|
|
40457
|
+
return {
|
|
40458
|
+
/**
|
|
40459
|
+
* 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.
|
|
40460
|
+
* @summary Revoke orphan connector authorizations
|
|
40461
|
+
* @param {*} [options] Override http request option.
|
|
40462
|
+
* @throws {RequiredError}
|
|
40463
|
+
*/
|
|
40464
|
+
internalConnectorWebhooksRevokeOrphanAuthorizationsPost(options) {
|
|
40465
|
+
return localVarFp.internalConnectorWebhooksRevokeOrphanAuthorizationsPost(options).then((request) => request(axios, basePath));
|
|
40466
|
+
},
|
|
40467
|
+
};
|
|
40468
|
+
};
|
|
40469
|
+
/**
|
|
40470
|
+
* InternalConnectorWebhooksApi - object-oriented interface
|
|
40471
|
+
* @export
|
|
40472
|
+
* @class InternalConnectorWebhooksApi
|
|
40473
|
+
* @extends {BaseAPI}
|
|
40474
|
+
*/
|
|
40475
|
+
export class InternalConnectorWebhooksApi extends BaseAPI {
|
|
40476
|
+
/**
|
|
40477
|
+
* 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.
|
|
40478
|
+
* @summary Revoke orphan connector authorizations
|
|
40479
|
+
* @param {*} [options] Override http request option.
|
|
40480
|
+
* @throws {RequiredError}
|
|
40481
|
+
* @memberof InternalConnectorWebhooksApi
|
|
40482
|
+
*/
|
|
40483
|
+
internalConnectorWebhooksRevokeOrphanAuthorizationsPost(options) {
|
|
40484
|
+
return InternalConnectorWebhooksApiFp(this.configuration).internalConnectorWebhooksRevokeOrphanAuthorizationsPost(options).then((request) => request(this.axios, this.basePath));
|
|
40485
|
+
}
|
|
40486
|
+
}
|
|
40059
40487
|
/**
|
|
40060
40488
|
* ItemAnalyticsApi - axios parameter creator
|
|
40061
40489
|
* @export
|
|
@@ -49941,6 +50369,115 @@ export class PlansApi extends BaseAPI {
|
|
|
49941
50369
|
return PlansApiFp(this.configuration).miscPlansUpdateStatusPlanIDStatusPut(planID, status, options).then((request) => request(this.axios, this.basePath));
|
|
49942
50370
|
}
|
|
49943
50371
|
}
|
|
50372
|
+
/**
|
|
50373
|
+
* PlatformPublicConnectorRunsApi - axios parameter creator
|
|
50374
|
+
* @export
|
|
50375
|
+
*/
|
|
50376
|
+
export const PlatformPublicConnectorRunsApiAxiosParamCreator = function (configuration) {
|
|
50377
|
+
return {
|
|
50378
|
+
/**
|
|
50379
|
+
* 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).
|
|
50380
|
+
* @summary Submit control-plane lifecycle events for a connector run
|
|
50381
|
+
* @param {number} runId connector_runs.id
|
|
50382
|
+
* @param {string} xSeekoraSignature sha256=<hex(hmac_sha256(body, api_key))>
|
|
50383
|
+
* @param {*} [options] Override http request option.
|
|
50384
|
+
* @throws {RequiredError}
|
|
50385
|
+
*/
|
|
50386
|
+
v3PublicConnectorRunsRunIdEventsPost: (runId_1, xSeekoraSignature_1, ...args_1) => __awaiter(this, [runId_1, xSeekoraSignature_1, ...args_1], void 0, function* (runId, xSeekoraSignature, options = {}) {
|
|
50387
|
+
// verify required parameter 'runId' is not null or undefined
|
|
50388
|
+
assertParamExists('v3PublicConnectorRunsRunIdEventsPost', 'runId', runId);
|
|
50389
|
+
// verify required parameter 'xSeekoraSignature' is not null or undefined
|
|
50390
|
+
assertParamExists('v3PublicConnectorRunsRunIdEventsPost', 'xSeekoraSignature', xSeekoraSignature);
|
|
50391
|
+
const localVarPath = `/v3/public/connector-runs/{run_id}/events`
|
|
50392
|
+
.replace(`{${"run_id"}}`, encodeURIComponent(String(runId)));
|
|
50393
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
50394
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
50395
|
+
let baseOptions;
|
|
50396
|
+
if (configuration) {
|
|
50397
|
+
baseOptions = configuration.baseOptions;
|
|
50398
|
+
}
|
|
50399
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
50400
|
+
const localVarHeaderParameter = {};
|
|
50401
|
+
const localVarQueryParameter = {};
|
|
50402
|
+
if (xSeekoraSignature != null) {
|
|
50403
|
+
localVarHeaderParameter['X-Seekora-Signature'] = String(xSeekoraSignature);
|
|
50404
|
+
}
|
|
50405
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
50406
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
50407
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
50408
|
+
return {
|
|
50409
|
+
url: toPathString(localVarUrlObj),
|
|
50410
|
+
options: localVarRequestOptions,
|
|
50411
|
+
};
|
|
50412
|
+
}),
|
|
50413
|
+
};
|
|
50414
|
+
};
|
|
50415
|
+
/**
|
|
50416
|
+
* PlatformPublicConnectorRunsApi - functional programming interface
|
|
50417
|
+
* @export
|
|
50418
|
+
*/
|
|
50419
|
+
export const PlatformPublicConnectorRunsApiFp = function (configuration) {
|
|
50420
|
+
const localVarAxiosParamCreator = PlatformPublicConnectorRunsApiAxiosParamCreator(configuration);
|
|
50421
|
+
return {
|
|
50422
|
+
/**
|
|
50423
|
+
* 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).
|
|
50424
|
+
* @summary Submit control-plane lifecycle events for a connector run
|
|
50425
|
+
* @param {number} runId connector_runs.id
|
|
50426
|
+
* @param {string} xSeekoraSignature sha256=<hex(hmac_sha256(body, api_key))>
|
|
50427
|
+
* @param {*} [options] Override http request option.
|
|
50428
|
+
* @throws {RequiredError}
|
|
50429
|
+
*/
|
|
50430
|
+
v3PublicConnectorRunsRunIdEventsPost(runId, xSeekoraSignature, options) {
|
|
50431
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
50432
|
+
var _a, _b, _c;
|
|
50433
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.v3PublicConnectorRunsRunIdEventsPost(runId, xSeekoraSignature, options);
|
|
50434
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
50435
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PlatformPublicConnectorRunsApi.v3PublicConnectorRunsRunIdEventsPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
50436
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
50437
|
+
});
|
|
50438
|
+
},
|
|
50439
|
+
};
|
|
50440
|
+
};
|
|
50441
|
+
/**
|
|
50442
|
+
* PlatformPublicConnectorRunsApi - factory interface
|
|
50443
|
+
* @export
|
|
50444
|
+
*/
|
|
50445
|
+
export const PlatformPublicConnectorRunsApiFactory = function (configuration, basePath, axios) {
|
|
50446
|
+
const localVarFp = PlatformPublicConnectorRunsApiFp(configuration);
|
|
50447
|
+
return {
|
|
50448
|
+
/**
|
|
50449
|
+
* 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).
|
|
50450
|
+
* @summary Submit control-plane lifecycle events for a connector run
|
|
50451
|
+
* @param {number} runId connector_runs.id
|
|
50452
|
+
* @param {string} xSeekoraSignature sha256=<hex(hmac_sha256(body, api_key))>
|
|
50453
|
+
* @param {*} [options] Override http request option.
|
|
50454
|
+
* @throws {RequiredError}
|
|
50455
|
+
*/
|
|
50456
|
+
v3PublicConnectorRunsRunIdEventsPost(runId, xSeekoraSignature, options) {
|
|
50457
|
+
return localVarFp.v3PublicConnectorRunsRunIdEventsPost(runId, xSeekoraSignature, options).then((request) => request(axios, basePath));
|
|
50458
|
+
},
|
|
50459
|
+
};
|
|
50460
|
+
};
|
|
50461
|
+
/**
|
|
50462
|
+
* PlatformPublicConnectorRunsApi - object-oriented interface
|
|
50463
|
+
* @export
|
|
50464
|
+
* @class PlatformPublicConnectorRunsApi
|
|
50465
|
+
* @extends {BaseAPI}
|
|
50466
|
+
*/
|
|
50467
|
+
export class PlatformPublicConnectorRunsApi extends BaseAPI {
|
|
50468
|
+
/**
|
|
50469
|
+
* 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).
|
|
50470
|
+
* @summary Submit control-plane lifecycle events for a connector run
|
|
50471
|
+
* @param {number} runId connector_runs.id
|
|
50472
|
+
* @param {string} xSeekoraSignature sha256=<hex(hmac_sha256(body, api_key))>
|
|
50473
|
+
* @param {*} [options] Override http request option.
|
|
50474
|
+
* @throws {RequiredError}
|
|
50475
|
+
* @memberof PlatformPublicConnectorRunsApi
|
|
50476
|
+
*/
|
|
50477
|
+
v3PublicConnectorRunsRunIdEventsPost(runId, xSeekoraSignature, options) {
|
|
50478
|
+
return PlatformPublicConnectorRunsApiFp(this.configuration).v3PublicConnectorRunsRunIdEventsPost(runId, xSeekoraSignature, options).then((request) => request(this.axios, this.basePath));
|
|
50479
|
+
}
|
|
50480
|
+
}
|
|
49944
50481
|
/**
|
|
49945
50482
|
* PlatformPublicOnboardingApi - axios parameter creator
|
|
49946
50483
|
* @export
|
|
@@ -50056,6 +50593,114 @@ export class PlatformPublicOnboardingApi extends BaseAPI {
|
|
|
50056
50593
|
return PlatformPublicOnboardingApiFp(this.configuration).v3PublicOnboardingProviderPost(provider, onboardingOnboardingRequest, xIdempotencyKey, options).then((request) => request(this.axios, this.basePath));
|
|
50057
50594
|
}
|
|
50058
50595
|
}
|
|
50596
|
+
/**
|
|
50597
|
+
* PlatformPublicSessionApi - axios parameter creator
|
|
50598
|
+
* @export
|
|
50599
|
+
*/
|
|
50600
|
+
export const PlatformPublicSessionApiAxiosParamCreator = function (configuration) {
|
|
50601
|
+
return {
|
|
50602
|
+
/**
|
|
50603
|
+
* 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.
|
|
50604
|
+
* @summary Mint a session JWT for an already-provisioned tenant
|
|
50605
|
+
* @param {string} provider Connector provider slug (e.g. shopify)
|
|
50606
|
+
* @param {OnboardingMintRequest} onboardingMintRequest Mint payload — external_id + access_token only
|
|
50607
|
+
* @param {*} [options] Override http request option.
|
|
50608
|
+
* @throws {RequiredError}
|
|
50609
|
+
*/
|
|
50610
|
+
v3PublicSessionProviderPost: (provider_1, onboardingMintRequest_1, ...args_1) => __awaiter(this, [provider_1, onboardingMintRequest_1, ...args_1], void 0, function* (provider, onboardingMintRequest, options = {}) {
|
|
50611
|
+
// verify required parameter 'provider' is not null or undefined
|
|
50612
|
+
assertParamExists('v3PublicSessionProviderPost', 'provider', provider);
|
|
50613
|
+
// verify required parameter 'onboardingMintRequest' is not null or undefined
|
|
50614
|
+
assertParamExists('v3PublicSessionProviderPost', 'onboardingMintRequest', onboardingMintRequest);
|
|
50615
|
+
const localVarPath = `/v3/public/session/{provider}`
|
|
50616
|
+
.replace(`{${"provider"}}`, encodeURIComponent(String(provider)));
|
|
50617
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
50618
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
50619
|
+
let baseOptions;
|
|
50620
|
+
if (configuration) {
|
|
50621
|
+
baseOptions = configuration.baseOptions;
|
|
50622
|
+
}
|
|
50623
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
50624
|
+
const localVarHeaderParameter = {};
|
|
50625
|
+
const localVarQueryParameter = {};
|
|
50626
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
50627
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
50628
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
50629
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
50630
|
+
localVarRequestOptions.data = serializeDataIfNeeded(onboardingMintRequest, localVarRequestOptions, configuration);
|
|
50631
|
+
return {
|
|
50632
|
+
url: toPathString(localVarUrlObj),
|
|
50633
|
+
options: localVarRequestOptions,
|
|
50634
|
+
};
|
|
50635
|
+
}),
|
|
50636
|
+
};
|
|
50637
|
+
};
|
|
50638
|
+
/**
|
|
50639
|
+
* PlatformPublicSessionApi - functional programming interface
|
|
50640
|
+
* @export
|
|
50641
|
+
*/
|
|
50642
|
+
export const PlatformPublicSessionApiFp = function (configuration) {
|
|
50643
|
+
const localVarAxiosParamCreator = PlatformPublicSessionApiAxiosParamCreator(configuration);
|
|
50644
|
+
return {
|
|
50645
|
+
/**
|
|
50646
|
+
* 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.
|
|
50647
|
+
* @summary Mint a session JWT for an already-provisioned tenant
|
|
50648
|
+
* @param {string} provider Connector provider slug (e.g. shopify)
|
|
50649
|
+
* @param {OnboardingMintRequest} onboardingMintRequest Mint payload — external_id + access_token only
|
|
50650
|
+
* @param {*} [options] Override http request option.
|
|
50651
|
+
* @throws {RequiredError}
|
|
50652
|
+
*/
|
|
50653
|
+
v3PublicSessionProviderPost(provider, onboardingMintRequest, options) {
|
|
50654
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
50655
|
+
var _a, _b, _c;
|
|
50656
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.v3PublicSessionProviderPost(provider, onboardingMintRequest, options);
|
|
50657
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
50658
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PlatformPublicSessionApi.v3PublicSessionProviderPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
50659
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
50660
|
+
});
|
|
50661
|
+
},
|
|
50662
|
+
};
|
|
50663
|
+
};
|
|
50664
|
+
/**
|
|
50665
|
+
* PlatformPublicSessionApi - factory interface
|
|
50666
|
+
* @export
|
|
50667
|
+
*/
|
|
50668
|
+
export const PlatformPublicSessionApiFactory = function (configuration, basePath, axios) {
|
|
50669
|
+
const localVarFp = PlatformPublicSessionApiFp(configuration);
|
|
50670
|
+
return {
|
|
50671
|
+
/**
|
|
50672
|
+
* 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.
|
|
50673
|
+
* @summary Mint a session JWT for an already-provisioned tenant
|
|
50674
|
+
* @param {string} provider Connector provider slug (e.g. shopify)
|
|
50675
|
+
* @param {OnboardingMintRequest} onboardingMintRequest Mint payload — external_id + access_token only
|
|
50676
|
+
* @param {*} [options] Override http request option.
|
|
50677
|
+
* @throws {RequiredError}
|
|
50678
|
+
*/
|
|
50679
|
+
v3PublicSessionProviderPost(provider, onboardingMintRequest, options) {
|
|
50680
|
+
return localVarFp.v3PublicSessionProviderPost(provider, onboardingMintRequest, options).then((request) => request(axios, basePath));
|
|
50681
|
+
},
|
|
50682
|
+
};
|
|
50683
|
+
};
|
|
50684
|
+
/**
|
|
50685
|
+
* PlatformPublicSessionApi - object-oriented interface
|
|
50686
|
+
* @export
|
|
50687
|
+
* @class PlatformPublicSessionApi
|
|
50688
|
+
* @extends {BaseAPI}
|
|
50689
|
+
*/
|
|
50690
|
+
export class PlatformPublicSessionApi extends BaseAPI {
|
|
50691
|
+
/**
|
|
50692
|
+
* 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.
|
|
50693
|
+
* @summary Mint a session JWT for an already-provisioned tenant
|
|
50694
|
+
* @param {string} provider Connector provider slug (e.g. shopify)
|
|
50695
|
+
* @param {OnboardingMintRequest} onboardingMintRequest Mint payload — external_id + access_token only
|
|
50696
|
+
* @param {*} [options] Override http request option.
|
|
50697
|
+
* @throws {RequiredError}
|
|
50698
|
+
* @memberof PlatformPublicSessionApi
|
|
50699
|
+
*/
|
|
50700
|
+
v3PublicSessionProviderPost(provider, onboardingMintRequest, options) {
|
|
50701
|
+
return PlatformPublicSessionApiFp(this.configuration).v3PublicSessionProviderPost(provider, onboardingMintRequest, options).then((request) => request(this.axios, this.basePath));
|
|
50702
|
+
}
|
|
50703
|
+
}
|
|
50059
50704
|
/**
|
|
50060
50705
|
* PluralsDeclensionsApi - axios parameter creator
|
|
50061
50706
|
* @export
|