@seekora-ai/admin-api 1.2.11 → 1.2.13

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
@@ -1579,6 +1579,333 @@ export class AdminAnalyticsApi extends BaseAPI {
1579
1579
  return AdminAnalyticsApiFp(this.configuration).v1AdminAnalyticsTestModePost(body, options).then((request) => request(this.axios, this.basePath));
1580
1580
  }
1581
1581
  }
1582
+ /**
1583
+ * AdminConnectorWebhooksApi - axios parameter creator
1584
+ * @export
1585
+ */
1586
+ export const AdminConnectorWebhooksApiAxiosParamCreator = function (configuration) {
1587
+ return {
1588
+ /**
1589
+ * 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
+ * @summary Replay a recorded webhook delivery
1591
+ * @param {string} sourceUuid Connector source UUID
1592
+ * @param {string} deliveryUuid Delivery UUID to replay
1593
+ * @param {*} [options] Override http request option.
1594
+ * @throws {RequiredError}
1595
+ */
1596
+ adminConnectorsSourcesSourceUuidWebhooksDeliveriesDeliveryUuidReplayPost: (sourceUuid_1, deliveryUuid_1, ...args_1) => __awaiter(this, [sourceUuid_1, deliveryUuid_1, ...args_1], void 0, function* (sourceUuid, deliveryUuid, options = {}) {
1597
+ // verify required parameter 'sourceUuid' is not null or undefined
1598
+ assertParamExists('adminConnectorsSourcesSourceUuidWebhooksDeliveriesDeliveryUuidReplayPost', 'sourceUuid', sourceUuid);
1599
+ // verify required parameter 'deliveryUuid' is not null or undefined
1600
+ assertParamExists('adminConnectorsSourcesSourceUuidWebhooksDeliveriesDeliveryUuidReplayPost', 'deliveryUuid', deliveryUuid);
1601
+ const localVarPath = `/admin/connectors/sources/{source_uuid}/webhooks/deliveries/{delivery_uuid}/replay`
1602
+ .replace(`{${"source_uuid"}}`, encodeURIComponent(String(sourceUuid)))
1603
+ .replace(`{${"delivery_uuid"}}`, encodeURIComponent(String(deliveryUuid)));
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
+ }),
1623
+ /**
1624
+ * Paginated list of recent webhook deliveries for a connector source. body_base64 is redacted; use replay to send a delivery through the pipeline again.
1625
+ * @summary List recent webhook deliveries
1626
+ * @param {string} sourceUuid Connector source UUID
1627
+ * @param {string} [status] Filter by delivery status (pending, processed, failed)
1628
+ * @param {number} [limit] Page size (default 50, max 200)
1629
+ * @param {string} [beforeUuid] Cursor: return rows older than the delivery with this UUID
1630
+ * @param {*} [options] Override http request option.
1631
+ * @throws {RequiredError}
1632
+ */
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 = {}) {
1634
+ // verify required parameter 'sourceUuid' is not null or undefined
1635
+ assertParamExists('adminConnectorsSourcesSourceUuidWebhooksDeliveriesGet', 'sourceUuid', sourceUuid);
1636
+ const localVarPath = `/admin/connectors/sources/{source_uuid}/webhooks/deliveries`
1637
+ .replace(`{${"source_uuid"}}`, encodeURIComponent(String(sourceUuid)));
1638
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1639
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1640
+ let baseOptions;
1641
+ if (configuration) {
1642
+ baseOptions = configuration.baseOptions;
1643
+ }
1644
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1645
+ const localVarHeaderParameter = {};
1646
+ const localVarQueryParameter = {};
1647
+ // authentication BearerAuth required
1648
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
1649
+ if (status !== undefined) {
1650
+ localVarQueryParameter['status'] = status;
1651
+ }
1652
+ if (limit !== undefined) {
1653
+ localVarQueryParameter['limit'] = limit;
1654
+ }
1655
+ if (beforeUuid !== undefined) {
1656
+ localVarQueryParameter['before_uuid'] = beforeUuid;
1657
+ }
1658
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1659
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1660
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1661
+ return {
1662
+ url: toPathString(localVarUrlObj),
1663
+ options: localVarRequestOptions,
1664
+ };
1665
+ }),
1666
+ /**
1667
+ * Re-run the register_webhooks post-install hook for one connector source. Idempotent via ON CONFLICT (source_id, topic) DO UPDATE.
1668
+ * @summary Resubscribe webhooks for a connector source
1669
+ * @param {string} sourceUuid Connector source UUID
1670
+ * @param {*} [options] Override http request option.
1671
+ * @throws {RequiredError}
1672
+ */
1673
+ adminConnectorsSourcesSourceUuidWebhooksResubscribePost: (sourceUuid_1, ...args_1) => __awaiter(this, [sourceUuid_1, ...args_1], void 0, function* (sourceUuid, options = {}) {
1674
+ // verify required parameter 'sourceUuid' is not null or undefined
1675
+ assertParamExists('adminConnectorsSourcesSourceUuidWebhooksResubscribePost', 'sourceUuid', sourceUuid);
1676
+ const localVarPath = `/admin/connectors/sources/{source_uuid}/webhooks/resubscribe`
1677
+ .replace(`{${"source_uuid"}}`, encodeURIComponent(String(sourceUuid)));
1678
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1679
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1680
+ let baseOptions;
1681
+ if (configuration) {
1682
+ baseOptions = configuration.baseOptions;
1683
+ }
1684
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1685
+ const localVarHeaderParameter = {};
1686
+ const localVarQueryParameter = {};
1687
+ // authentication BearerAuth required
1688
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
1689
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1690
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1691
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1692
+ return {
1693
+ url: toPathString(localVarUrlObj),
1694
+ options: localVarRequestOptions,
1695
+ };
1696
+ }),
1697
+ /**
1698
+ * 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
+ * @summary Resubscribe webhooks for every connector source
1700
+ * @param {*} [options] Override http request option.
1701
+ * @throws {RequiredError}
1702
+ */
1703
+ adminConnectorsWebhooksResubscribeAllPost: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
1704
+ const localVarPath = `/admin/connectors/webhooks/resubscribe-all`;
1705
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1706
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1707
+ let baseOptions;
1708
+ if (configuration) {
1709
+ baseOptions = configuration.baseOptions;
1710
+ }
1711
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1712
+ const localVarHeaderParameter = {};
1713
+ const localVarQueryParameter = {};
1714
+ // authentication BearerAuth required
1715
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
1716
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1717
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1718
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1719
+ return {
1720
+ url: toPathString(localVarUrlObj),
1721
+ options: localVarRequestOptions,
1722
+ };
1723
+ }),
1724
+ };
1725
+ };
1726
+ /**
1727
+ * AdminConnectorWebhooksApi - functional programming interface
1728
+ * @export
1729
+ */
1730
+ export const AdminConnectorWebhooksApiFp = function (configuration) {
1731
+ const localVarAxiosParamCreator = AdminConnectorWebhooksApiAxiosParamCreator(configuration);
1732
+ return {
1733
+ /**
1734
+ * 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
+ * @summary Replay a recorded webhook delivery
1736
+ * @param {string} sourceUuid Connector source UUID
1737
+ * @param {string} deliveryUuid Delivery UUID to replay
1738
+ * @param {*} [options] Override http request option.
1739
+ * @throws {RequiredError}
1740
+ */
1741
+ adminConnectorsSourcesSourceUuidWebhooksDeliveriesDeliveryUuidReplayPost(sourceUuid, deliveryUuid, options) {
1742
+ return __awaiter(this, void 0, void 0, function* () {
1743
+ var _a, _b, _c;
1744
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminConnectorsSourcesSourceUuidWebhooksDeliveriesDeliveryUuidReplayPost(sourceUuid, deliveryUuid, options);
1745
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1746
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AdminConnectorWebhooksApi.adminConnectorsSourcesSourceUuidWebhooksDeliveriesDeliveryUuidReplayPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1747
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1748
+ });
1749
+ },
1750
+ /**
1751
+ * Paginated list of recent webhook deliveries for a connector source. body_base64 is redacted; use replay to send a delivery through the pipeline again.
1752
+ * @summary List recent webhook deliveries
1753
+ * @param {string} sourceUuid Connector source UUID
1754
+ * @param {string} [status] Filter by delivery status (pending, processed, failed)
1755
+ * @param {number} [limit] Page size (default 50, max 200)
1756
+ * @param {string} [beforeUuid] Cursor: return rows older than the delivery with this UUID
1757
+ * @param {*} [options] Override http request option.
1758
+ * @throws {RequiredError}
1759
+ */
1760
+ adminConnectorsSourcesSourceUuidWebhooksDeliveriesGet(sourceUuid, status, limit, beforeUuid, options) {
1761
+ return __awaiter(this, void 0, void 0, function* () {
1762
+ var _a, _b, _c;
1763
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminConnectorsSourcesSourceUuidWebhooksDeliveriesGet(sourceUuid, status, limit, beforeUuid, options);
1764
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1765
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AdminConnectorWebhooksApi.adminConnectorsSourcesSourceUuidWebhooksDeliveriesGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1766
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1767
+ });
1768
+ },
1769
+ /**
1770
+ * Re-run the register_webhooks post-install hook for one connector source. Idempotent via ON CONFLICT (source_id, topic) DO UPDATE.
1771
+ * @summary Resubscribe webhooks for a connector source
1772
+ * @param {string} sourceUuid Connector source UUID
1773
+ * @param {*} [options] Override http request option.
1774
+ * @throws {RequiredError}
1775
+ */
1776
+ adminConnectorsSourcesSourceUuidWebhooksResubscribePost(sourceUuid, options) {
1777
+ return __awaiter(this, void 0, void 0, function* () {
1778
+ var _a, _b, _c;
1779
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminConnectorsSourcesSourceUuidWebhooksResubscribePost(sourceUuid, options);
1780
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1781
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AdminConnectorWebhooksApi.adminConnectorsSourcesSourceUuidWebhooksResubscribePost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1782
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1783
+ });
1784
+ },
1785
+ /**
1786
+ * 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
+ * @summary Resubscribe webhooks for every connector source
1788
+ * @param {*} [options] Override http request option.
1789
+ * @throws {RequiredError}
1790
+ */
1791
+ adminConnectorsWebhooksResubscribeAllPost(options) {
1792
+ return __awaiter(this, void 0, void 0, function* () {
1793
+ var _a, _b, _c;
1794
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminConnectorsWebhooksResubscribeAllPost(options);
1795
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1796
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AdminConnectorWebhooksApi.adminConnectorsWebhooksResubscribeAllPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1797
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1798
+ });
1799
+ },
1800
+ };
1801
+ };
1802
+ /**
1803
+ * AdminConnectorWebhooksApi - factory interface
1804
+ * @export
1805
+ */
1806
+ export const AdminConnectorWebhooksApiFactory = function (configuration, basePath, axios) {
1807
+ const localVarFp = AdminConnectorWebhooksApiFp(configuration);
1808
+ return {
1809
+ /**
1810
+ * 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
+ * @summary Replay a recorded webhook delivery
1812
+ * @param {string} sourceUuid Connector source UUID
1813
+ * @param {string} deliveryUuid Delivery UUID to replay
1814
+ * @param {*} [options] Override http request option.
1815
+ * @throws {RequiredError}
1816
+ */
1817
+ adminConnectorsSourcesSourceUuidWebhooksDeliveriesDeliveryUuidReplayPost(sourceUuid, deliveryUuid, options) {
1818
+ return localVarFp.adminConnectorsSourcesSourceUuidWebhooksDeliveriesDeliveryUuidReplayPost(sourceUuid, deliveryUuid, options).then((request) => request(axios, basePath));
1819
+ },
1820
+ /**
1821
+ * Paginated list of recent webhook deliveries for a connector source. body_base64 is redacted; use replay to send a delivery through the pipeline again.
1822
+ * @summary List recent webhook deliveries
1823
+ * @param {string} sourceUuid Connector source UUID
1824
+ * @param {string} [status] Filter by delivery status (pending, processed, failed)
1825
+ * @param {number} [limit] Page size (default 50, max 200)
1826
+ * @param {string} [beforeUuid] Cursor: return rows older than the delivery with this UUID
1827
+ * @param {*} [options] Override http request option.
1828
+ * @throws {RequiredError}
1829
+ */
1830
+ adminConnectorsSourcesSourceUuidWebhooksDeliveriesGet(sourceUuid, status, limit, beforeUuid, options) {
1831
+ return localVarFp.adminConnectorsSourcesSourceUuidWebhooksDeliveriesGet(sourceUuid, status, limit, beforeUuid, options).then((request) => request(axios, basePath));
1832
+ },
1833
+ /**
1834
+ * Re-run the register_webhooks post-install hook for one connector source. Idempotent via ON CONFLICT (source_id, topic) DO UPDATE.
1835
+ * @summary Resubscribe webhooks for a connector source
1836
+ * @param {string} sourceUuid Connector source UUID
1837
+ * @param {*} [options] Override http request option.
1838
+ * @throws {RequiredError}
1839
+ */
1840
+ adminConnectorsSourcesSourceUuidWebhooksResubscribePost(sourceUuid, options) {
1841
+ return localVarFp.adminConnectorsSourcesSourceUuidWebhooksResubscribePost(sourceUuid, options).then((request) => request(axios, basePath));
1842
+ },
1843
+ /**
1844
+ * 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
+ * @summary Resubscribe webhooks for every connector source
1846
+ * @param {*} [options] Override http request option.
1847
+ * @throws {RequiredError}
1848
+ */
1849
+ adminConnectorsWebhooksResubscribeAllPost(options) {
1850
+ return localVarFp.adminConnectorsWebhooksResubscribeAllPost(options).then((request) => request(axios, basePath));
1851
+ },
1852
+ };
1853
+ };
1854
+ /**
1855
+ * AdminConnectorWebhooksApi - object-oriented interface
1856
+ * @export
1857
+ * @class AdminConnectorWebhooksApi
1858
+ * @extends {BaseAPI}
1859
+ */
1860
+ export class AdminConnectorWebhooksApi extends BaseAPI {
1861
+ /**
1862
+ * 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
+ * @summary Replay a recorded webhook delivery
1864
+ * @param {string} sourceUuid Connector source UUID
1865
+ * @param {string} deliveryUuid Delivery UUID to replay
1866
+ * @param {*} [options] Override http request option.
1867
+ * @throws {RequiredError}
1868
+ * @memberof AdminConnectorWebhooksApi
1869
+ */
1870
+ adminConnectorsSourcesSourceUuidWebhooksDeliveriesDeliveryUuidReplayPost(sourceUuid, deliveryUuid, options) {
1871
+ return AdminConnectorWebhooksApiFp(this.configuration).adminConnectorsSourcesSourceUuidWebhooksDeliveriesDeliveryUuidReplayPost(sourceUuid, deliveryUuid, options).then((request) => request(this.axios, this.basePath));
1872
+ }
1873
+ /**
1874
+ * Paginated list of recent webhook deliveries for a connector source. body_base64 is redacted; use replay to send a delivery through the pipeline again.
1875
+ * @summary List recent webhook deliveries
1876
+ * @param {string} sourceUuid Connector source UUID
1877
+ * @param {string} [status] Filter by delivery status (pending, processed, failed)
1878
+ * @param {number} [limit] Page size (default 50, max 200)
1879
+ * @param {string} [beforeUuid] Cursor: return rows older than the delivery with this UUID
1880
+ * @param {*} [options] Override http request option.
1881
+ * @throws {RequiredError}
1882
+ * @memberof AdminConnectorWebhooksApi
1883
+ */
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));
1886
+ }
1887
+ /**
1888
+ * Re-run the register_webhooks post-install hook for one connector source. Idempotent via ON CONFLICT (source_id, topic) DO UPDATE.
1889
+ * @summary Resubscribe webhooks for a connector source
1890
+ * @param {string} sourceUuid Connector source UUID
1891
+ * @param {*} [options] Override http request option.
1892
+ * @throws {RequiredError}
1893
+ * @memberof AdminConnectorWebhooksApi
1894
+ */
1895
+ adminConnectorsSourcesSourceUuidWebhooksResubscribePost(sourceUuid, options) {
1896
+ return AdminConnectorWebhooksApiFp(this.configuration).adminConnectorsSourcesSourceUuidWebhooksResubscribePost(sourceUuid, options).then((request) => request(this.axios, this.basePath));
1897
+ }
1898
+ /**
1899
+ * 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
+ * @summary Resubscribe webhooks for every connector source
1901
+ * @param {*} [options] Override http request option.
1902
+ * @throws {RequiredError}
1903
+ * @memberof AdminConnectorWebhooksApi
1904
+ */
1905
+ adminConnectorsWebhooksResubscribeAllPost(options) {
1906
+ return AdminConnectorWebhooksApiFp(this.configuration).adminConnectorsWebhooksResubscribeAllPost(options).then((request) => request(this.axios, this.basePath));
1907
+ }
1908
+ }
1582
1909
  /**
1583
1910
  * AdminNotificationTemplatesApi - axios parameter creator
1584
1911
  * @export
@@ -37161,6 +37488,40 @@ export class ExternalAPINotificationsApi extends BaseAPI {
37161
37488
  */
37162
37489
  export const FeatureFlagsApiAxiosParamCreator = function (configuration) {
37163
37490
  return {
37491
+ /**
37492
+ * Flip a flag for many orgs in a single call. Either pass org_ids=[...] or all_orgs=true.
37493
+ * @summary Bulk update a feature flag across many orgs
37494
+ * @param {string} flagName Flag name
37495
+ * @param {FeatureFlagsSetFlagBulkRequest} featureFlagsSetFlagBulkRequest Bulk flag update
37496
+ * @param {*} [options] Override http request option.
37497
+ * @throws {RequiredError}
37498
+ */
37499
+ internalV1FeatureFlagsFlagNameBulkPut: (flagName_1, featureFlagsSetFlagBulkRequest_1, ...args_1) => __awaiter(this, [flagName_1, featureFlagsSetFlagBulkRequest_1, ...args_1], void 0, function* (flagName, featureFlagsSetFlagBulkRequest, options = {}) {
37500
+ // verify required parameter 'flagName' is not null or undefined
37501
+ assertParamExists('internalV1FeatureFlagsFlagNameBulkPut', 'flagName', flagName);
37502
+ // verify required parameter 'featureFlagsSetFlagBulkRequest' is not null or undefined
37503
+ assertParamExists('internalV1FeatureFlagsFlagNameBulkPut', 'featureFlagsSetFlagBulkRequest', featureFlagsSetFlagBulkRequest);
37504
+ const localVarPath = `/internal/v1/feature-flags/{flagName}/bulk`
37505
+ .replace(`{${"flagName"}}`, encodeURIComponent(String(flagName)));
37506
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
37507
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
37508
+ let baseOptions;
37509
+ if (configuration) {
37510
+ baseOptions = configuration.baseOptions;
37511
+ }
37512
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
37513
+ const localVarHeaderParameter = {};
37514
+ const localVarQueryParameter = {};
37515
+ localVarHeaderParameter['Content-Type'] = 'application/json';
37516
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
37517
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
37518
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
37519
+ localVarRequestOptions.data = serializeDataIfNeeded(featureFlagsSetFlagBulkRequest, localVarRequestOptions, configuration);
37520
+ return {
37521
+ url: toPathString(localVarUrlObj),
37522
+ options: localVarRequestOptions,
37523
+ };
37524
+ }),
37164
37525
  /**
37165
37526
  * Returns the enabled/disabled status of one feature flag for the caller\'s org
37166
37527
  * @summary Get a specific feature flag
@@ -37258,6 +37619,23 @@ export const FeatureFlagsApiAxiosParamCreator = function (configuration) {
37258
37619
  export const FeatureFlagsApiFp = function (configuration) {
37259
37620
  const localVarAxiosParamCreator = FeatureFlagsApiAxiosParamCreator(configuration);
37260
37621
  return {
37622
+ /**
37623
+ * Flip a flag for many orgs in a single call. Either pass org_ids=[...] or all_orgs=true.
37624
+ * @summary Bulk update a feature flag across many orgs
37625
+ * @param {string} flagName Flag name
37626
+ * @param {FeatureFlagsSetFlagBulkRequest} featureFlagsSetFlagBulkRequest Bulk flag update
37627
+ * @param {*} [options] Override http request option.
37628
+ * @throws {RequiredError}
37629
+ */
37630
+ internalV1FeatureFlagsFlagNameBulkPut(flagName, featureFlagsSetFlagBulkRequest, options) {
37631
+ return __awaiter(this, void 0, void 0, function* () {
37632
+ var _a, _b, _c;
37633
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.internalV1FeatureFlagsFlagNameBulkPut(flagName, featureFlagsSetFlagBulkRequest, options);
37634
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
37635
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['FeatureFlagsApi.internalV1FeatureFlagsFlagNameBulkPut']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
37636
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
37637
+ });
37638
+ },
37261
37639
  /**
37262
37640
  * Returns the enabled/disabled status of one feature flag for the caller\'s org
37263
37641
  * @summary Get a specific feature flag
@@ -37315,6 +37693,17 @@ export const FeatureFlagsApiFp = function (configuration) {
37315
37693
  export const FeatureFlagsApiFactory = function (configuration, basePath, axios) {
37316
37694
  const localVarFp = FeatureFlagsApiFp(configuration);
37317
37695
  return {
37696
+ /**
37697
+ * Flip a flag for many orgs in a single call. Either pass org_ids=[...] or all_orgs=true.
37698
+ * @summary Bulk update a feature flag across many orgs
37699
+ * @param {string} flagName Flag name
37700
+ * @param {FeatureFlagsSetFlagBulkRequest} featureFlagsSetFlagBulkRequest Bulk flag update
37701
+ * @param {*} [options] Override http request option.
37702
+ * @throws {RequiredError}
37703
+ */
37704
+ internalV1FeatureFlagsFlagNameBulkPut(flagName, featureFlagsSetFlagBulkRequest, options) {
37705
+ return localVarFp.internalV1FeatureFlagsFlagNameBulkPut(flagName, featureFlagsSetFlagBulkRequest, options).then((request) => request(axios, basePath));
37706
+ },
37318
37707
  /**
37319
37708
  * Returns the enabled/disabled status of one feature flag for the caller\'s org
37320
37709
  * @summary Get a specific feature flag
@@ -37354,6 +37743,18 @@ export const FeatureFlagsApiFactory = function (configuration, basePath, axios)
37354
37743
  * @extends {BaseAPI}
37355
37744
  */
37356
37745
  export class FeatureFlagsApi extends BaseAPI {
37746
+ /**
37747
+ * Flip a flag for many orgs in a single call. Either pass org_ids=[...] or all_orgs=true.
37748
+ * @summary Bulk update a feature flag across many orgs
37749
+ * @param {string} flagName Flag name
37750
+ * @param {FeatureFlagsSetFlagBulkRequest} featureFlagsSetFlagBulkRequest Bulk flag update
37751
+ * @param {*} [options] Override http request option.
37752
+ * @throws {RequiredError}
37753
+ * @memberof FeatureFlagsApi
37754
+ */
37755
+ internalV1FeatureFlagsFlagNameBulkPut(flagName, featureFlagsSetFlagBulkRequest, options) {
37756
+ return FeatureFlagsApiFp(this.configuration).internalV1FeatureFlagsFlagNameBulkPut(flagName, featureFlagsSetFlagBulkRequest, options).then((request) => request(this.axios, this.basePath));
37757
+ }
37357
37758
  /**
37358
37759
  * Returns the enabled/disabled status of one feature flag for the caller\'s org
37359
37760
  * @summary Get a specific feature flag
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seekora-ai/admin-api",
3
- "version": "1.2.11",
3
+ "version": "1.2.13",
4
4
  "description": "OpenAPI client for @seekora-ai/admin-api",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {
Binary file
Binary file