@seekora-ai/admin-api 1.2.13 → 1.2.15-stage-20260517095154

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/dist/esm/api.js CHANGED
@@ -92,6 +92,10 @@ export const ConnectorUpdateTaskRequestWriteActionEnum = {
92
92
  InsertOnly: 'insert_only',
93
93
  UpdateOnly: 'update_only'
94
94
  };
95
+ export const ConnectorUpdateTransformationRequestTransformTypeEnum = {
96
+ Code: 'code',
97
+ Nocode: 'nocode'
98
+ };
95
99
  export const ConnectorsCreateConnectorRequestConnectorTypeEnum = {
96
100
  Import: 'import',
97
101
  Export: 'export'
@@ -1585,6 +1589,37 @@ export class AdminAnalyticsApi extends BaseAPI {
1585
1589
  */
1586
1590
  export const AdminConnectorWebhooksApiAxiosParamCreator = function (configuration) {
1587
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
+ }),
1588
1623
  /**
1589
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.
1590
1625
  * @summary Replay a recorded webhook delivery
@@ -1627,10 +1662,12 @@ export const AdminConnectorWebhooksApiAxiosParamCreator = function (configuratio
1627
1662
  * @param {string} [status] Filter by delivery status (pending, processed, failed)
1628
1663
  * @param {number} [limit] Page size (default 50, max 200)
1629
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)
1630
1667
  * @param {*} [options] Override http request option.
1631
1668
  * @throws {RequiredError}
1632
1669
  */
1633
- 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 = {}) {
1634
1671
  // verify required parameter 'sourceUuid' is not null or undefined
1635
1672
  assertParamExists('adminConnectorsSourcesSourceUuidWebhooksDeliveriesGet', 'sourceUuid', sourceUuid);
1636
1673
  const localVarPath = `/admin/connectors/sources/{source_uuid}/webhooks/deliveries`
@@ -1655,6 +1692,43 @@ export const AdminConnectorWebhooksApiAxiosParamCreator = function (configuratio
1655
1692
  if (beforeUuid !== undefined) {
1656
1693
  localVarQueryParameter['before_uuid'] = beforeUuid;
1657
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);
1658
1732
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1659
1733
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1660
1734
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -1694,6 +1768,33 @@ export const AdminConnectorWebhooksApiAxiosParamCreator = function (configuratio
1694
1768
  options: localVarRequestOptions,
1695
1769
  };
1696
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
+ }),
1697
1798
  /**
1698
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.
1699
1800
  * @summary Resubscribe webhooks for every connector source
@@ -1730,6 +1831,22 @@ export const AdminConnectorWebhooksApiAxiosParamCreator = function (configuratio
1730
1831
  export const AdminConnectorWebhooksApiFp = function (configuration) {
1731
1832
  const localVarAxiosParamCreator = AdminConnectorWebhooksApiAxiosParamCreator(configuration);
1732
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
+ },
1733
1850
  /**
1734
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.
1735
1852
  * @summary Replay a recorded webhook delivery
@@ -1754,18 +1871,36 @@ export const AdminConnectorWebhooksApiFp = function (configuration) {
1754
1871
  * @param {string} [status] Filter by delivery status (pending, processed, failed)
1755
1872
  * @param {number} [limit] Page size (default 50, max 200)
1756
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)
1757
1876
  * @param {*} [options] Override http request option.
1758
1877
  * @throws {RequiredError}
1759
1878
  */
1760
- adminConnectorsSourcesSourceUuidWebhooksDeliveriesGet(sourceUuid, status, limit, beforeUuid, options) {
1879
+ adminConnectorsSourcesSourceUuidWebhooksDeliveriesGet(sourceUuid, status, limit, beforeUuid, since, until, options) {
1761
1880
  return __awaiter(this, void 0, void 0, function* () {
1762
1881
  var _a, _b, _c;
1763
- const localVarAxiosArgs = yield localVarAxiosParamCreator.adminConnectorsSourcesSourceUuidWebhooksDeliveriesGet(sourceUuid, status, limit, beforeUuid, options);
1882
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminConnectorsSourcesSourceUuidWebhooksDeliveriesGet(sourceUuid, status, limit, beforeUuid, since, until, options);
1764
1883
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1765
1884
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AdminConnectorWebhooksApi.adminConnectorsSourcesSourceUuidWebhooksDeliveriesGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1766
1885
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1767
1886
  });
1768
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
+ },
1769
1904
  /**
1770
1905
  * Re-run the register_webhooks post-install hook for one connector source. Idempotent via ON CONFLICT (source_id, topic) DO UPDATE.
1771
1906
  * @summary Resubscribe webhooks for a connector source
@@ -1782,6 +1917,21 @@ export const AdminConnectorWebhooksApiFp = function (configuration) {
1782
1917
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1783
1918
  });
1784
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
+ },
1785
1935
  /**
1786
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.
1787
1937
  * @summary Resubscribe webhooks for every connector source
@@ -1806,6 +1956,16 @@ export const AdminConnectorWebhooksApiFp = function (configuration) {
1806
1956
  export const AdminConnectorWebhooksApiFactory = function (configuration, basePath, axios) {
1807
1957
  const localVarFp = AdminConnectorWebhooksApiFp(configuration);
1808
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
+ },
1809
1969
  /**
1810
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.
1811
1971
  * @summary Replay a recorded webhook delivery
@@ -1824,11 +1984,23 @@ export const AdminConnectorWebhooksApiFactory = function (configuration, basePat
1824
1984
  * @param {string} [status] Filter by delivery status (pending, processed, failed)
1825
1985
  * @param {number} [limit] Page size (default 50, max 200)
1826
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)
1827
1989
  * @param {*} [options] Override http request option.
1828
1990
  * @throws {RequiredError}
1829
1991
  */
1830
- adminConnectorsSourcesSourceUuidWebhooksDeliveriesGet(sourceUuid, status, limit, beforeUuid, options) {
1831
- return localVarFp.adminConnectorsSourcesSourceUuidWebhooksDeliveriesGet(sourceUuid, status, limit, beforeUuid, options).then((request) => request(axios, basePath));
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
1999
+ * @param {*} [options] Override http request option.
2000
+ * @throws {RequiredError}
2001
+ */
2002
+ adminConnectorsSourcesSourceUuidWebhooksReconcilePost(sourceUuid, options) {
2003
+ return localVarFp.adminConnectorsSourcesSourceUuidWebhooksReconcilePost(sourceUuid, options).then((request) => request(axios, basePath));
1832
2004
  },
1833
2005
  /**
1834
2006
  * Re-run the register_webhooks post-install hook for one connector source. Idempotent via ON CONFLICT (source_id, topic) DO UPDATE.
@@ -1840,6 +2012,15 @@ export const AdminConnectorWebhooksApiFactory = function (configuration, basePat
1840
2012
  adminConnectorsSourcesSourceUuidWebhooksResubscribePost(sourceUuid, options) {
1841
2013
  return localVarFp.adminConnectorsSourcesSourceUuidWebhooksResubscribePost(sourceUuid, options).then((request) => request(axios, basePath));
1842
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
+ },
1843
2024
  /**
1844
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.
1845
2026
  * @summary Resubscribe webhooks for every connector source
@@ -1858,6 +2039,17 @@ export const AdminConnectorWebhooksApiFactory = function (configuration, basePat
1858
2039
  * @extends {BaseAPI}
1859
2040
  */
1860
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
+ }
1861
2053
  /**
1862
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.
1863
2055
  * @summary Replay a recorded webhook delivery
@@ -1877,12 +2069,25 @@ export class AdminConnectorWebhooksApi extends BaseAPI {
1877
2069
  * @param {string} [status] Filter by delivery status (pending, processed, failed)
1878
2070
  * @param {number} [limit] Page size (default 50, max 200)
1879
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)
1880
2074
  * @param {*} [options] Override http request option.
1881
2075
  * @throws {RequiredError}
1882
2076
  * @memberof AdminConnectorWebhooksApi
1883
2077
  */
1884
- adminConnectorsSourcesSourceUuidWebhooksDeliveriesGet(sourceUuid, status, limit, beforeUuid, options) {
1885
- return AdminConnectorWebhooksApiFp(this.configuration).adminConnectorsSourcesSourceUuidWebhooksDeliveriesGet(sourceUuid, status, limit, beforeUuid, options).then((request) => request(this.axios, this.basePath));
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
2085
+ * @param {*} [options] Override http request option.
2086
+ * @throws {RequiredError}
2087
+ * @memberof AdminConnectorWebhooksApi
2088
+ */
2089
+ adminConnectorsSourcesSourceUuidWebhooksReconcilePost(sourceUuid, options) {
2090
+ return AdminConnectorWebhooksApiFp(this.configuration).adminConnectorsSourcesSourceUuidWebhooksReconcilePost(sourceUuid, options).then((request) => request(this.axios, this.basePath));
1886
2091
  }
1887
2092
  /**
1888
2093
  * Re-run the register_webhooks post-install hook for one connector source. Idempotent via ON CONFLICT (source_id, topic) DO UPDATE.
@@ -1895,6 +2100,16 @@ export class AdminConnectorWebhooksApi extends BaseAPI {
1895
2100
  adminConnectorsSourcesSourceUuidWebhooksResubscribePost(sourceUuid, options) {
1896
2101
  return AdminConnectorWebhooksApiFp(this.configuration).adminConnectorsSourcesSourceUuidWebhooksResubscribePost(sourceUuid, options).then((request) => request(this.axios, this.basePath));
1897
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
+ }
1898
2113
  /**
1899
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.
1900
2115
  * @summary Resubscribe webhooks for every connector source
@@ -14980,6 +15195,60 @@ export const BillingApiAxiosParamCreator = function (configuration) {
14980
15195
  options: localVarRequestOptions,
14981
15196
  };
14982
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
+ }),
14983
15252
  /**
14984
15253
  *
14985
15254
  * @summary Create a new subscription
@@ -15204,6 +15473,36 @@ export const BillingApiFp = function (configuration) {
15204
15473
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15205
15474
  });
15206
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
+ },
15207
15506
  /**
15208
15507
  *
15209
15508
  * @summary Create a new subscription
@@ -15335,6 +15634,24 @@ export const BillingApiFactory = function (configuration, basePath, axios) {
15335
15634
  apiV1BillingPlansGet(options) {
15336
15635
  return localVarFp.apiV1BillingPlansGet(options).then((request) => request(axios, basePath));
15337
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
+ },
15338
15655
  /**
15339
15656
  *
15340
15657
  * @summary Create a new subscription
@@ -15448,6 +15765,26 @@ export class BillingApi extends BaseAPI {
15448
15765
  apiV1BillingPlansGet(options) {
15449
15766
  return BillingApiFp(this.configuration).apiV1BillingPlansGet(options).then((request) => request(this.axios, this.basePath));
15450
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
+ }
15451
15788
  /**
15452
15789
  *
15453
15790
  * @summary Create a new subscription
@@ -20676,7 +21013,7 @@ export const ConnectorAdminAuthApiAxiosParamCreator = function (configuration) {
20676
21013
  };
20677
21014
  }),
20678
21015
  /**
20679
- * Decrypts and validates stored credentials. Updates is_valid and last_validated_at.
21016
+ * Runs a live provider probe (forge Source.Check) against stored credentials. Returns a structured CheckResult and persists the outcome to connector_authentications.
20680
21017
  * @summary Validate connector authentication credentials
20681
21018
  * @param {string} uuid Authentication UUID
20682
21019
  * @param {*} [options] Override http request option.
@@ -20796,7 +21133,7 @@ export const ConnectorAdminAuthApiFp = function (configuration) {
20796
21133
  });
20797
21134
  },
20798
21135
  /**
20799
- * Decrypts and validates stored credentials. Updates is_valid and last_validated_at.
21136
+ * Runs a live provider probe (forge Source.Check) against stored credentials. Returns a structured CheckResult and persists the outcome to connector_authentications.
20800
21137
  * @summary Validate connector authentication credentials
20801
21138
  * @param {string} uuid Authentication UUID
20802
21139
  * @param {*} [options] Override http request option.
@@ -20871,7 +21208,7 @@ export const ConnectorAdminAuthApiFactory = function (configuration, basePath, a
20871
21208
  return localVarFp.adminConnectorAuthUuidPut(uuid, connectorUpdateAuthRequest, options).then((request) => request(axios, basePath));
20872
21209
  },
20873
21210
  /**
20874
- * Decrypts and validates stored credentials. Updates is_valid and last_validated_at.
21211
+ * Runs a live provider probe (forge Source.Check) against stored credentials. Returns a structured CheckResult and persists the outcome to connector_authentications.
20875
21212
  * @summary Validate connector authentication credentials
20876
21213
  * @param {string} uuid Authentication UUID
20877
21214
  * @param {*} [options] Override http request option.
@@ -20945,7 +21282,7 @@ export class ConnectorAdminAuthApi extends BaseAPI {
20945
21282
  return ConnectorAdminAuthApiFp(this.configuration).adminConnectorAuthUuidPut(uuid, connectorUpdateAuthRequest, options).then((request) => request(this.axios, this.basePath));
20946
21283
  }
20947
21284
  /**
20948
- * Decrypts and validates stored credentials. Updates is_valid and last_validated_at.
21285
+ * Runs a live provider probe (forge Source.Check) against stored credentials. Returns a structured CheckResult and persists the outcome to connector_authentications.
20949
21286
  * @summary Validate connector authentication credentials
20950
21287
  * @param {string} uuid Authentication UUID
20951
21288
  * @param {*} [options] Override http request option.
@@ -22889,7 +23226,7 @@ export const ConnectorAdminSourcesApiAxiosParamCreator = function (configuration
22889
23226
  };
22890
23227
  }),
22891
23228
  /**
22892
- * Dispatches a connectivity check to the go-worker. Returns immediately with a job ID.
23229
+ * Runs a synchronous connection check against the source\'s stored config + credentials. Returns the forge check result directly — no polling required. Falls back to the legacy RabbitMQ dispatch path only when the check service is not wired.
22893
23230
  * @summary Check source connectivity
22894
23231
  * @param {string} uuid Source UUID
22895
23232
  * @param {*} [options] Override http request option.
@@ -22951,7 +23288,7 @@ export const ConnectorAdminSourcesApiAxiosParamCreator = function (configuration
22951
23288
  };
22952
23289
  }),
22953
23290
  /**
22954
- * Dispatches a catalog discovery job to the go-worker. Returns the pending catalog immediately.
23291
+ * Runs a synchronous schema discovery against the source\'s stored config + credentials. Persists the catalog to connector_sources.discovered_catalog and returns it directly. Falls back to the legacy RabbitMQ dispatch path only when the check service is not wired.
22955
23292
  * @summary Discover source stream catalog
22956
23293
  * @param {string} uuid Source UUID
22957
23294
  * @param {*} [options] Override http request option.
@@ -23140,7 +23477,7 @@ export const ConnectorAdminSourcesApiFp = function (configuration) {
23140
23477
  });
23141
23478
  },
23142
23479
  /**
23143
- * Dispatches a connectivity check to the go-worker. Returns immediately with a job ID.
23480
+ * Runs a synchronous connection check against the source\'s stored config + credentials. Returns the forge check result directly — no polling required. Falls back to the legacy RabbitMQ dispatch path only when the check service is not wired.
23144
23481
  * @summary Check source connectivity
23145
23482
  * @param {string} uuid Source UUID
23146
23483
  * @param {*} [options] Override http request option.
@@ -23172,7 +23509,7 @@ export const ConnectorAdminSourcesApiFp = function (configuration) {
23172
23509
  });
23173
23510
  },
23174
23511
  /**
23175
- * Dispatches a catalog discovery job to the go-worker. Returns the pending catalog immediately.
23512
+ * Runs a synchronous schema discovery against the source\'s stored config + credentials. Persists the catalog to connector_sources.discovered_catalog and returns it directly. Falls back to the legacy RabbitMQ dispatch path only when the check service is not wired.
23176
23513
  * @summary Discover source stream catalog
23177
23514
  * @param {string} uuid Source UUID
23178
23515
  * @param {*} [options] Override http request option.
@@ -23276,7 +23613,7 @@ export const ConnectorAdminSourcesApiFactory = function (configuration, basePath
23276
23613
  return localVarFp.adminConnectorSourcesTestConnectionPost(connectorTestConnectionRequest, options).then((request) => request(axios, basePath));
23277
23614
  },
23278
23615
  /**
23279
- * Dispatches a connectivity check to the go-worker. Returns immediately with a job ID.
23616
+ * Runs a synchronous connection check against the source\'s stored config + credentials. Returns the forge check result directly — no polling required. Falls back to the legacy RabbitMQ dispatch path only when the check service is not wired.
23280
23617
  * @summary Check source connectivity
23281
23618
  * @param {string} uuid Source UUID
23282
23619
  * @param {*} [options] Override http request option.
@@ -23296,7 +23633,7 @@ export const ConnectorAdminSourcesApiFactory = function (configuration, basePath
23296
23633
  return localVarFp.adminConnectorSourcesUuidDelete(uuid, options).then((request) => request(axios, basePath));
23297
23634
  },
23298
23635
  /**
23299
- * Dispatches a catalog discovery job to the go-worker. Returns the pending catalog immediately.
23636
+ * Runs a synchronous schema discovery against the source\'s stored config + credentials. Persists the catalog to connector_sources.discovered_catalog and returns it directly. Falls back to the legacy RabbitMQ dispatch path only when the check service is not wired.
23300
23637
  * @summary Discover source stream catalog
23301
23638
  * @param {string} uuid Source UUID
23302
23639
  * @param {*} [options] Override http request option.
@@ -23379,7 +23716,7 @@ export class ConnectorAdminSourcesApi extends BaseAPI {
23379
23716
  return ConnectorAdminSourcesApiFp(this.configuration).adminConnectorSourcesTestConnectionPost(connectorTestConnectionRequest, options).then((request) => request(this.axios, this.basePath));
23380
23717
  }
23381
23718
  /**
23382
- * Dispatches a connectivity check to the go-worker. Returns immediately with a job ID.
23719
+ * Runs a synchronous connection check against the source\'s stored config + credentials. Returns the forge check result directly — no polling required. Falls back to the legacy RabbitMQ dispatch path only when the check service is not wired.
23383
23720
  * @summary Check source connectivity
23384
23721
  * @param {string} uuid Source UUID
23385
23722
  * @param {*} [options] Override http request option.
@@ -23401,7 +23738,7 @@ export class ConnectorAdminSourcesApi extends BaseAPI {
23401
23738
  return ConnectorAdminSourcesApiFp(this.configuration).adminConnectorSourcesUuidDelete(uuid, options).then((request) => request(this.axios, this.basePath));
23402
23739
  }
23403
23740
  /**
23404
- * Dispatches a catalog discovery job to the go-worker. Returns the pending catalog immediately.
23741
+ * Runs a synchronous schema discovery against the source\'s stored config + credentials. Persists the catalog to connector_sources.discovered_catalog and returns it directly. Falls back to the legacy RabbitMQ dispatch path only when the check service is not wired.
23405
23742
  * @summary Discover source stream catalog
23406
23743
  * @param {string} uuid Source UUID
23407
23744
  * @param {*} [options] Override http request option.
@@ -29020,7 +29357,7 @@ export const ConnectorsApiAxiosParamCreator = function (configuration) {
29020
29357
  };
29021
29358
  }),
29022
29359
  /**
29023
- * Decrypts and validates stored credentials. Updates is_valid and last_validated_at.
29360
+ * Runs a live provider probe (forge Source.Check) against stored credentials. Returns a structured CheckResult and persists the outcome to connector_authentications.
29024
29361
  * @summary Validate connector authentication credentials
29025
29362
  * @param {string} uuid Authentication UUID
29026
29363
  * @param {*} [options] Override http request option.
@@ -30276,7 +30613,7 @@ export const ConnectorsApiFp = function (configuration) {
30276
30613
  });
30277
30614
  },
30278
30615
  /**
30279
- * Decrypts and validates stored credentials. Updates is_valid and last_validated_at.
30616
+ * Runs a live provider probe (forge Source.Check) against stored credentials. Returns a structured CheckResult and persists the outcome to connector_authentications.
30280
30617
  * @summary Validate connector authentication credentials
30281
30618
  * @param {string} uuid Authentication UUID
30282
30619
  * @param {*} [options] Override http request option.
@@ -30980,7 +31317,7 @@ export const ConnectorsApiFactory = function (configuration, basePath, axios) {
30980
31317
  return localVarFp.v1ConnectorsAuthUuidPut(uuid, connectorUpdateAuthRequest, options).then((request) => request(axios, basePath));
30981
31318
  },
30982
31319
  /**
30983
- * Decrypts and validates stored credentials. Updates is_valid and last_validated_at.
31320
+ * Runs a live provider probe (forge Source.Check) against stored credentials. Returns a structured CheckResult and persists the outcome to connector_authentications.
30984
31321
  * @summary Validate connector authentication credentials
30985
31322
  * @param {string} uuid Authentication UUID
30986
31323
  * @param {*} [options] Override http request option.
@@ -31500,7 +31837,7 @@ export class ConnectorsApi extends BaseAPI {
31500
31837
  return ConnectorsApiFp(this.configuration).v1ConnectorsAuthUuidPut(uuid, connectorUpdateAuthRequest, options).then((request) => request(this.axios, this.basePath));
31501
31838
  }
31502
31839
  /**
31503
- * Decrypts and validates stored credentials. Updates is_valid and last_validated_at.
31840
+ * Runs a live provider probe (forge Source.Check) against stored credentials. Returns a structured CheckResult and persists the outcome to connector_authentications.
31504
31841
  * @summary Validate connector authentication credentials
31505
31842
  * @param {string} uuid Authentication UUID
31506
31843
  * @param {*} [options] Override http request option.
@@ -40052,6 +40389,101 @@ export class InternalApi extends BaseAPI {
40052
40389
  return InternalApiFp(this.configuration).internalConnectorAuthUuidResolveGet(uuid, options).then((request) => request(this.axios, this.basePath));
40053
40390
  }
40054
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
+ }
40055
40487
  /**
40056
40488
  * ItemAnalyticsApi - axios parameter creator
40057
40489
  * @export
@@ -49937,6 +50369,115 @@ export class PlansApi extends BaseAPI {
49937
50369
  return PlansApiFp(this.configuration).miscPlansUpdateStatusPlanIDStatusPut(planID, status, options).then((request) => request(this.axios, this.basePath));
49938
50370
  }
49939
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
+ }
49940
50481
  /**
49941
50482
  * PlatformPublicOnboardingApi - axios parameter creator
49942
50483
  * @export
@@ -50052,6 +50593,114 @@ export class PlatformPublicOnboardingApi extends BaseAPI {
50052
50593
  return PlatformPublicOnboardingApiFp(this.configuration).v3PublicOnboardingProviderPost(provider, onboardingOnboardingRequest, xIdempotencyKey, options).then((request) => request(this.axios, this.basePath));
50053
50594
  }
50054
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
+ }
50055
50704
  /**
50056
50705
  * PluralsDeclensionsApi - axios parameter creator
50057
50706
  * @export