@membranehq/sdk 0.8.5 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundle.d.ts +118 -3
- package/dist/bundle.js +21 -0
- package/dist/bundle.js.map +1 -1
- package/dist/dts/accessors/connections-accessors.d.ts +2 -0
- package/dist/dts/accessors/integrations-accessors.d.ts +2 -0
- package/dist/dts/agent/index.d.ts +2 -0
- package/dist/dts/agent/mcp.d.ts +6 -0
- package/dist/dts/agent/session.d.ts +4 -1
- package/dist/dts/api-version.generated.d.ts +10 -0
- package/dist/dts/apps/types.d.ts +371 -0
- package/dist/dts/errors/index.d.ts +5 -1
- package/dist/dts/index.browser.d.ts +2 -1
- package/dist/dts/orgs/types.d.ts +341 -3
- package/dist/dts/platform-users.d.ts +24 -0
- package/dist/dts/workspace-elements/api/action-run-log-records-api.d.ts +4 -0
- package/dist/dts/workspace-elements/api/connections-api.d.ts +6 -0
- package/dist/dts/workspace-elements/api/data-link-table-instances-api.d.ts +2 -0
- package/dist/dts/workspace-elements/api/data-source-instances-api.d.ts +2 -0
- package/dist/dts/workspace-elements/api/external-event-log-records-api.d.ts +2 -0
- package/dist/dts/workspace-elements/api/external-event-pulls-api.d.ts +2 -0
- package/dist/dts/workspace-elements/api/external-event-subscriptions-api.d.ts +2 -0
- package/dist/dts/workspace-elements/api/field-mapping-instances-api.d.ts +4 -0
- package/dist/dts/workspace-elements/api/flow-runs-api.d.ts +4 -0
- package/dist/dts/workspace-elements/api/flows-api.d.ts +94 -2
- package/dist/dts/workspace-elements/api/integrations-api.d.ts +2 -0
- package/dist/dts/workspace-elements/base/action-run-log-records/types.d.ts +2 -0
- package/dist/dts/workspace-elements/base/connections/types.d.ts +2 -0
- package/dist/dts/workspace-elements/compare.d.ts +16 -0
- package/dist/dts/workspace-elements/compare.test.d.ts +1 -0
- package/dist/dts/workspace-elements/index.d.ts +1 -0
- package/dist/dts/workspaces/index.d.ts +1 -0
- package/dist/dts/workspaces/schemas.d.ts +24 -0
- package/dist/dts/workspaces/types.d.ts +3 -8
- package/dist/index.browser.d.mts +951 -44
- package/dist/index.browser.d.ts +951 -44
- package/dist/index.browser.js +293 -9
- package/dist/index.browser.js.map +1 -1
- package/dist/index.browser.mjs +280 -10
- package/dist/index.browser.mjs.map +1 -1
- package/dist/index.node.d.mts +951 -44
- package/dist/index.node.d.ts +951 -44
- package/dist/index.node.js +293 -9
- package/dist/index.node.js.map +1 -1
- package/dist/index.node.mjs +280 -10
- package/dist/index.node.mjs.map +1 -1
- package/package.json +2 -1
package/dist/bundle.d.ts
CHANGED
|
@@ -68,7 +68,8 @@ declare enum ErrorType {
|
|
|
68
68
|
ACTION_RUN = "action_run",
|
|
69
69
|
ACTION_INSTANCE_SETUP = "action_instance_setup",
|
|
70
70
|
UNIT_RUN = "unit_run",
|
|
71
|
-
CUSTOM_CODE = "custom_code"
|
|
71
|
+
CUSTOM_CODE = "custom_code",
|
|
72
|
+
INSUFFICIENT_CREDIT = "insufficient_credit"
|
|
72
73
|
}
|
|
73
74
|
interface ErrorDataSchema {
|
|
74
75
|
type?: ErrorType;
|
|
@@ -946,6 +947,8 @@ declare const IntegrationApiResponse: z.ZodObject<{
|
|
|
946
947
|
updatedAt: z.ZodString;
|
|
947
948
|
lastActiveAt: z.ZodOptional<z.ZodString>;
|
|
948
949
|
nextCredentialsRefreshAt: z.ZodOptional<z.ZodString>;
|
|
950
|
+
nextRetryTimestamp: z.ZodOptional<z.ZodString>;
|
|
951
|
+
retryAttempts: z.ZodOptional<z.ZodNumber>;
|
|
949
952
|
archivedAt: z.ZodOptional<z.ZodString>;
|
|
950
953
|
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
951
954
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
@@ -1369,6 +1372,8 @@ declare const DataSourceInstanceApiResponse: z.ZodObject<{
|
|
|
1369
1372
|
updatedAt: z.ZodString;
|
|
1370
1373
|
lastActiveAt: z.ZodOptional<z.ZodString>;
|
|
1371
1374
|
nextCredentialsRefreshAt: z.ZodOptional<z.ZodString>;
|
|
1375
|
+
nextRetryTimestamp: z.ZodOptional<z.ZodString>;
|
|
1376
|
+
retryAttempts: z.ZodOptional<z.ZodNumber>;
|
|
1372
1377
|
archivedAt: z.ZodOptional<z.ZodString>;
|
|
1373
1378
|
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
1374
1379
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
@@ -1507,6 +1512,8 @@ declare const FlowRunApiResponse: z.ZodObject<{
|
|
|
1507
1512
|
updatedAt: z.ZodString;
|
|
1508
1513
|
lastActiveAt: z.ZodOptional<z.ZodString>;
|
|
1509
1514
|
nextCredentialsRefreshAt: z.ZodOptional<z.ZodString>;
|
|
1515
|
+
nextRetryTimestamp: z.ZodOptional<z.ZodString>;
|
|
1516
|
+
retryAttempts: z.ZodOptional<z.ZodNumber>;
|
|
1510
1517
|
archivedAt: z.ZodOptional<z.ZodString>;
|
|
1511
1518
|
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
1512
1519
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
@@ -1636,6 +1643,8 @@ declare const FindFlowRunsResponse: z.ZodObject<{
|
|
|
1636
1643
|
updatedAt: z.ZodString;
|
|
1637
1644
|
lastActiveAt: z.ZodOptional<z.ZodString>;
|
|
1638
1645
|
nextCredentialsRefreshAt: z.ZodOptional<z.ZodString>;
|
|
1646
|
+
nextRetryTimestamp: z.ZodOptional<z.ZodString>;
|
|
1647
|
+
retryAttempts: z.ZodOptional<z.ZodNumber>;
|
|
1639
1648
|
archivedAt: z.ZodOptional<z.ZodString>;
|
|
1640
1649
|
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
1641
1650
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
@@ -1791,9 +1800,53 @@ declare const FlowApiResponse: z.ZodObject<{
|
|
|
1791
1800
|
appliedToIntegrations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1792
1801
|
element: z.ZodObject<{
|
|
1793
1802
|
id: z.ZodString;
|
|
1803
|
+
key: z.ZodOptional<z.ZodString>;
|
|
1804
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1805
|
+
instanceKey: z.ZodOptional<z.ZodString>;
|
|
1806
|
+
connectionId: z.ZodOptional<z.ZodString>;
|
|
1794
1807
|
integrationId: z.ZodOptional<z.ZodString>;
|
|
1795
|
-
|
|
1808
|
+
uuid: z.ZodOptional<z.ZodString>;
|
|
1809
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1810
|
+
integrationUuid: z.ZodOptional<z.ZodString>;
|
|
1811
|
+
parentUuid: z.ZodOptional<z.ZodString>;
|
|
1812
|
+
flowId: z.ZodOptional<z.ZodString>;
|
|
1796
1813
|
universalFlowId: z.ZodOptional<z.ZodString>;
|
|
1814
|
+
parametersSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
|
|
1815
|
+
parameters: z.ZodOptional<z.ZodAny>;
|
|
1816
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
1817
|
+
nodes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1818
|
+
type: z.ZodOptional<z.ZodString>;
|
|
1819
|
+
version: z.ZodOptional<z.ZodNumber>;
|
|
1820
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1821
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1822
|
+
config: z.ZodOptional<z.ZodAny>;
|
|
1823
|
+
concurrency: z.ZodOptional<z.ZodNumber>;
|
|
1824
|
+
onError: z.ZodOptional<z.ZodEnum<{
|
|
1825
|
+
continue: "continue";
|
|
1826
|
+
stop: "stop";
|
|
1827
|
+
}>>;
|
|
1828
|
+
ui: z.ZodOptional<z.ZodAny>;
|
|
1829
|
+
inputSchema: z.ZodOptional<z.ZodAny>;
|
|
1830
|
+
outputSchema: z.ZodOptional<z.ZodAny>;
|
|
1831
|
+
outputExample: z.ZodOptional<z.ZodAny>;
|
|
1832
|
+
links: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1833
|
+
key: z.ZodOptional<z.ZodString>;
|
|
1834
|
+
filter: z.ZodOptional<z.ZodAny>;
|
|
1835
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1836
|
+
}, z.core.$strip>>>;
|
|
1837
|
+
isCustomized: z.ZodOptional<z.ZodBoolean>;
|
|
1838
|
+
}, z.core.$strip>>>;
|
|
1839
|
+
autoCreateInstances: z.ZodOptional<z.ZodBoolean>;
|
|
1840
|
+
name: z.ZodString;
|
|
1841
|
+
state: z.ZodOptional<z.ZodEnum<typeof WorkspaceElementState>>;
|
|
1842
|
+
errors: z.ZodOptional<z.ZodArray<z.ZodType<ErrorDataSchema, unknown, z.core.$ZodTypeInternals<ErrorDataSchema, unknown>>>>;
|
|
1843
|
+
revision: z.ZodOptional<z.ZodString>;
|
|
1844
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
1845
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
1846
|
+
archivedAt: z.ZodOptional<z.ZodString>;
|
|
1847
|
+
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
1848
|
+
isCustomized: z.ZodOptional<z.ZodBoolean>;
|
|
1849
|
+
universalFlowRevision: z.ZodOptional<z.ZodString>;
|
|
1797
1850
|
}, z.core.$strip>;
|
|
1798
1851
|
integration: z.ZodObject<{
|
|
1799
1852
|
id: z.ZodString;
|
|
@@ -2059,6 +2112,8 @@ declare const FlowInstanceApiResponse: z.ZodObject<{
|
|
|
2059
2112
|
authOptionKey?: string | undefined;
|
|
2060
2113
|
lastActiveAt?: string | undefined;
|
|
2061
2114
|
nextCredentialsRefreshAt?: string | undefined;
|
|
2115
|
+
nextRetryTimestamp?: string | undefined;
|
|
2116
|
+
retryAttempts?: number | undefined;
|
|
2062
2117
|
archivedAt?: string | undefined;
|
|
2063
2118
|
isDeactivated?: boolean | undefined;
|
|
2064
2119
|
meta?: Record<string, any> | undefined;
|
|
@@ -2077,6 +2132,8 @@ declare const FlowInstanceApiResponse: z.ZodObject<{
|
|
|
2077
2132
|
authOptionKey?: string | undefined;
|
|
2078
2133
|
lastActiveAt?: string | undefined;
|
|
2079
2134
|
nextCredentialsRefreshAt?: string | undefined;
|
|
2135
|
+
nextRetryTimestamp?: string | undefined;
|
|
2136
|
+
retryAttempts?: number | undefined;
|
|
2080
2137
|
archivedAt?: string | undefined;
|
|
2081
2138
|
isDeactivated?: boolean | undefined;
|
|
2082
2139
|
meta?: Record<string, any> | undefined;
|
|
@@ -2173,9 +2230,53 @@ declare const FlowInstanceApiResponse: z.ZodObject<{
|
|
|
2173
2230
|
appliedToIntegrations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2174
2231
|
element: z.ZodObject<{
|
|
2175
2232
|
id: z.ZodString;
|
|
2233
|
+
key: z.ZodOptional<z.ZodString>;
|
|
2234
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2235
|
+
instanceKey: z.ZodOptional<z.ZodString>;
|
|
2236
|
+
connectionId: z.ZodOptional<z.ZodString>;
|
|
2176
2237
|
integrationId: z.ZodOptional<z.ZodString>;
|
|
2177
|
-
|
|
2238
|
+
uuid: z.ZodOptional<z.ZodString>;
|
|
2239
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
2240
|
+
integrationUuid: z.ZodOptional<z.ZodString>;
|
|
2241
|
+
parentUuid: z.ZodOptional<z.ZodString>;
|
|
2242
|
+
flowId: z.ZodOptional<z.ZodString>;
|
|
2178
2243
|
universalFlowId: z.ZodOptional<z.ZodString>;
|
|
2244
|
+
parametersSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
|
|
2245
|
+
parameters: z.ZodOptional<z.ZodAny>;
|
|
2246
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
2247
|
+
nodes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2248
|
+
type: z.ZodOptional<z.ZodString>;
|
|
2249
|
+
version: z.ZodOptional<z.ZodNumber>;
|
|
2250
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2251
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2252
|
+
config: z.ZodOptional<z.ZodAny>;
|
|
2253
|
+
concurrency: z.ZodOptional<z.ZodNumber>;
|
|
2254
|
+
onError: z.ZodOptional<z.ZodEnum<{
|
|
2255
|
+
continue: "continue";
|
|
2256
|
+
stop: "stop";
|
|
2257
|
+
}>>;
|
|
2258
|
+
ui: z.ZodOptional<z.ZodAny>;
|
|
2259
|
+
inputSchema: z.ZodOptional<z.ZodAny>;
|
|
2260
|
+
outputSchema: z.ZodOptional<z.ZodAny>;
|
|
2261
|
+
outputExample: z.ZodOptional<z.ZodAny>;
|
|
2262
|
+
links: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2263
|
+
key: z.ZodOptional<z.ZodString>;
|
|
2264
|
+
filter: z.ZodOptional<z.ZodAny>;
|
|
2265
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2266
|
+
}, z.core.$strip>>>;
|
|
2267
|
+
isCustomized: z.ZodOptional<z.ZodBoolean>;
|
|
2268
|
+
}, z.core.$strip>>>;
|
|
2269
|
+
autoCreateInstances: z.ZodOptional<z.ZodBoolean>;
|
|
2270
|
+
name: z.ZodString;
|
|
2271
|
+
state: z.ZodOptional<z.ZodEnum<typeof WorkspaceElementState>>;
|
|
2272
|
+
errors: z.ZodOptional<z.ZodArray<z.ZodType<ErrorDataSchema, unknown, z.core.$ZodTypeInternals<ErrorDataSchema, unknown>>>>;
|
|
2273
|
+
revision: z.ZodOptional<z.ZodString>;
|
|
2274
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
2275
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
2276
|
+
archivedAt: z.ZodOptional<z.ZodString>;
|
|
2277
|
+
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
2278
|
+
isCustomized: z.ZodOptional<z.ZodBoolean>;
|
|
2279
|
+
universalFlowRevision: z.ZodOptional<z.ZodString>;
|
|
2179
2280
|
}, z.core.$strip>;
|
|
2180
2281
|
integration: z.ZodObject<{
|
|
2181
2282
|
id: z.ZodString;
|
|
@@ -3012,6 +3113,8 @@ declare const FieldMappingInstanceApiResponse: z.ZodObject<{
|
|
|
3012
3113
|
updatedAt: z.ZodString;
|
|
3013
3114
|
lastActiveAt: z.ZodOptional<z.ZodString>;
|
|
3014
3115
|
nextCredentialsRefreshAt: z.ZodOptional<z.ZodString>;
|
|
3116
|
+
nextRetryTimestamp: z.ZodOptional<z.ZodString>;
|
|
3117
|
+
retryAttempts: z.ZodOptional<z.ZodNumber>;
|
|
3015
3118
|
archivedAt: z.ZodOptional<z.ZodString>;
|
|
3016
3119
|
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
3017
3120
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
@@ -3289,6 +3392,8 @@ declare const FieldMappingInstanceApiResponse: z.ZodObject<{
|
|
|
3289
3392
|
updatedAt: z.ZodString;
|
|
3290
3393
|
lastActiveAt: z.ZodOptional<z.ZodString>;
|
|
3291
3394
|
nextCredentialsRefreshAt: z.ZodOptional<z.ZodString>;
|
|
3395
|
+
nextRetryTimestamp: z.ZodOptional<z.ZodString>;
|
|
3396
|
+
retryAttempts: z.ZodOptional<z.ZodNumber>;
|
|
3292
3397
|
archivedAt: z.ZodOptional<z.ZodString>;
|
|
3293
3398
|
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
3294
3399
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
@@ -3421,6 +3526,8 @@ declare const DataLinkTableInstanceApiResponse: z.ZodObject<{
|
|
|
3421
3526
|
updatedAt: z.ZodString;
|
|
3422
3527
|
lastActiveAt: z.ZodOptional<z.ZodString>;
|
|
3423
3528
|
nextCredentialsRefreshAt: z.ZodOptional<z.ZodString>;
|
|
3529
|
+
nextRetryTimestamp: z.ZodOptional<z.ZodString>;
|
|
3530
|
+
retryAttempts: z.ZodOptional<z.ZodNumber>;
|
|
3424
3531
|
archivedAt: z.ZodOptional<z.ZodString>;
|
|
3425
3532
|
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
3426
3533
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
@@ -3735,6 +3842,8 @@ declare const ExternalEventSubscriptionApiResponse: z.ZodObject<{
|
|
|
3735
3842
|
updatedAt: z.ZodString;
|
|
3736
3843
|
lastActiveAt: z.ZodOptional<z.ZodString>;
|
|
3737
3844
|
nextCredentialsRefreshAt: z.ZodOptional<z.ZodString>;
|
|
3845
|
+
nextRetryTimestamp: z.ZodOptional<z.ZodString>;
|
|
3846
|
+
retryAttempts: z.ZodOptional<z.ZodNumber>;
|
|
3738
3847
|
archivedAt: z.ZodOptional<z.ZodString>;
|
|
3739
3848
|
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
3740
3849
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
@@ -3827,6 +3936,8 @@ declare const ConnectionApiResponse: z.ZodObject<{
|
|
|
3827
3936
|
updatedAt: z.ZodString;
|
|
3828
3937
|
lastActiveAt: z.ZodOptional<z.ZodString>;
|
|
3829
3938
|
nextCredentialsRefreshAt: z.ZodOptional<z.ZodString>;
|
|
3939
|
+
nextRetryTimestamp: z.ZodOptional<z.ZodString>;
|
|
3940
|
+
retryAttempts: z.ZodOptional<z.ZodNumber>;
|
|
3830
3941
|
archivedAt: z.ZodOptional<z.ZodString>;
|
|
3831
3942
|
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
3832
3943
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
@@ -4601,6 +4712,8 @@ declare class ConnectionAccessor {
|
|
|
4601
4712
|
authOptionKey?: string | undefined;
|
|
4602
4713
|
lastActiveAt?: string | undefined;
|
|
4603
4714
|
nextCredentialsRefreshAt?: string | undefined;
|
|
4715
|
+
nextRetryTimestamp?: string | undefined;
|
|
4716
|
+
retryAttempts?: number | undefined;
|
|
4604
4717
|
archivedAt?: string | undefined;
|
|
4605
4718
|
isDeactivated?: boolean | undefined;
|
|
4606
4719
|
meta?: Record<string, any> | undefined;
|
|
@@ -4809,6 +4922,8 @@ declare class IntegrationAccessor extends ElementAccessor<Integration, UpdateInt
|
|
|
4809
4922
|
authOptionKey?: string | undefined;
|
|
4810
4923
|
lastActiveAt?: string | undefined;
|
|
4811
4924
|
nextCredentialsRefreshAt?: string | undefined;
|
|
4925
|
+
nextRetryTimestamp?: string | undefined;
|
|
4926
|
+
retryAttempts?: number | undefined;
|
|
4812
4927
|
archivedAt?: string | undefined;
|
|
4813
4928
|
isDeactivated?: boolean | undefined;
|
|
4814
4929
|
meta?: Record<string, any> | undefined;
|
package/dist/bundle.js
CHANGED
|
@@ -10920,6 +10920,7 @@
|
|
|
10920
10920
|
ErrorType["ACTION_INSTANCE_SETUP"] = "action_instance_setup";
|
|
10921
10921
|
ErrorType["UNIT_RUN"] = "unit_run";
|
|
10922
10922
|
ErrorType["CUSTOM_CODE"] = "custom_code";
|
|
10923
|
+
ErrorType["INSUFFICIENT_CREDIT"] = "insufficient_credit";
|
|
10923
10924
|
})(ErrorType || (ErrorType = {}));
|
|
10924
10925
|
var BadRequestErrorKey;
|
|
10925
10926
|
(function (BadRequestErrorKey) {
|
|
@@ -11044,6 +11045,12 @@
|
|
|
11044
11045
|
this.data.type = ErrorType.CUSTOM_CODE;
|
|
11045
11046
|
}
|
|
11046
11047
|
}
|
|
11048
|
+
class InsufficientCreditsError extends MembraneError {
|
|
11049
|
+
constructor(arg) {
|
|
11050
|
+
super(arg);
|
|
11051
|
+
this.data.type = ErrorType.INSUFFICIENT_CREDIT;
|
|
11052
|
+
}
|
|
11053
|
+
}
|
|
11047
11054
|
|
|
11048
11055
|
var FlowRunNodeState;
|
|
11049
11056
|
(function (FlowRunNodeState) {
|
|
@@ -16146,6 +16153,18 @@
|
|
|
16146
16153
|
mergeConfig
|
|
16147
16154
|
} = axios$1$1;
|
|
16148
16155
|
|
|
16156
|
+
const API_VERSIONS = {
|
|
16157
|
+
LEGACY: 'legacy',
|
|
16158
|
+
'2025-10-21': '2025-10-21',
|
|
16159
|
+
};
|
|
16160
|
+
const AVAILABLE_VERSIONS = Object.values(API_VERSIONS);
|
|
16161
|
+
const CHRONOLOGICAL_VERSIONS = [
|
|
16162
|
+
API_VERSIONS.LEGACY,
|
|
16163
|
+
...[...AVAILABLE_VERSIONS].filter((v) => v !== API_VERSIONS.LEGACY).sort(),
|
|
16164
|
+
];
|
|
16165
|
+
const LATEST_API_VERSION = CHRONOLOGICAL_VERSIONS[CHRONOLOGICAL_VERSIONS.length - 1];
|
|
16166
|
+
const VERSION_HEADER = 'membrane-api-version';
|
|
16167
|
+
|
|
16149
16168
|
var LogRecordType;
|
|
16150
16169
|
(function (LogRecordType) {
|
|
16151
16170
|
LogRecordType["MSG"] = "message";
|
|
@@ -16177,6 +16196,7 @@
|
|
|
16177
16196
|
[ErrorType.ACTION_INSTANCE_SETUP]: ActionInstanceSetupError,
|
|
16178
16197
|
[ErrorType.UNIT_RUN]: UnitRunError,
|
|
16179
16198
|
[ErrorType.CUSTOM_CODE]: CustomCodeError,
|
|
16199
|
+
[ErrorType.INSUFFICIENT_CREDIT]: InsufficientCreditsError,
|
|
16180
16200
|
};
|
|
16181
16201
|
function getErrorFromData(data) {
|
|
16182
16202
|
if (typeof data === 'object' &&
|
|
@@ -16310,6 +16330,7 @@
|
|
|
16310
16330
|
params.headers = {
|
|
16311
16331
|
...(params.headers || {}),
|
|
16312
16332
|
Authorization: `Bearer ${token}`,
|
|
16333
|
+
[VERSION_HEADER]: LATEST_API_VERSION,
|
|
16313
16334
|
};
|
|
16314
16335
|
params.withCredentials = false;
|
|
16315
16336
|
let response;
|