@membranehq/sdk 0.17.3 → 0.17.5
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 +33 -5
- package/dist/bundle.js +18 -3
- package/dist/bundle.js.map +1 -1
- package/dist/dts/accessors/connections-accessors.d.ts +1 -0
- package/dist/dts/accessors/integrations-accessors.d.ts +1 -0
- package/dist/dts/agent/worker-contracts.d.ts +1 -0
- package/dist/dts/clusters/types.d.ts +19 -0
- package/dist/dts/formulas/index.d.ts +26 -4
- package/dist/dts/index.browser.d.ts +2 -0
- package/dist/dts/pending-tasks/index.d.ts +1 -0
- package/dist/dts/pending-tasks/types.d.ts +48 -0
- package/dist/dts/stats/index.d.ts +3 -3
- package/dist/dts/workspace-elements/api/action-run-log-records-api.d.ts +17 -6
- package/dist/dts/workspace-elements/api/app-event-log-records-api.d.ts +2 -2
- package/dist/dts/workspace-elements/api/connections-api.d.ts +17 -1
- package/dist/dts/workspace-elements/api/data-link-table-instances-api.d.ts +1 -0
- package/dist/dts/workspace-elements/api/data-sources-api.d.ts +2 -0
- package/dist/dts/workspace-elements/api/external-api-logs-api.d.ts +3 -2
- package/dist/dts/workspace-elements/api/external-event-log-records-api.d.ts +3 -1
- package/dist/dts/workspace-elements/api/external-event-pulls-api.d.ts +3 -1
- package/dist/dts/workspace-elements/api/external-event-subscriptions-api.d.ts +1 -0
- package/dist/dts/workspace-elements/api/external-events-api.d.ts +2 -1
- package/dist/dts/workspace-elements/api/field-mappings-api.d.ts +2 -0
- package/dist/dts/workspace-elements/api/flow-runs-api.d.ts +14 -4
- package/dist/dts/workspace-elements/api/flows-api.d.ts +2 -0
- package/dist/dts/workspace-elements/api/incoming-webhooks-api.d.ts +3 -1
- package/dist/dts/workspace-elements/api/integrations-api.d.ts +1 -0
- package/dist/dts/workspace-elements/base/action-run-log-records/index.d.ts +5 -2
- package/dist/dts/workspace-elements/base/connection-requests/index.d.ts +2 -0
- package/dist/dts/workspace-elements/base/connections/index.d.ts +3 -0
- package/dist/dts/workspace-elements/base/external-events/api.d.ts +4 -2
- package/dist/dts/workspace-elements/base/flow-runs/index.d.ts +4 -1
- package/dist/dts/workspace-elements/filter-meta.d.ts +2 -0
- package/dist/dts/workspace-elements-catalog/index.d.ts +1 -0
- package/dist/index.browser.d.mts +165 -27
- package/dist/index.browser.d.ts +165 -27
- package/dist/index.browser.js +191 -44
- package/dist/index.browser.js.map +1 -1
- package/dist/index.browser.mjs +160 -45
- package/dist/index.browser.mjs.map +1 -1
- package/dist/index.node.d.mts +165 -27
- package/dist/index.node.d.ts +165 -27
- package/dist/index.node.js +191 -44
- package/dist/index.node.js.map +1 -1
- package/dist/index.node.mjs +160 -45
- package/dist/index.node.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.browser.js
CHANGED
|
@@ -3745,7 +3745,7 @@ const FieldMappingSpecificProperties = z.z.object({
|
|
|
3745
3745
|
universalFieldMappingId: z.z.string().optional(),
|
|
3746
3746
|
dataSourceId: z.z.string().optional(),
|
|
3747
3747
|
dataSourceUuid: z.z.string().optional(),
|
|
3748
|
-
dataSourceKey: z.z.string().optional(),
|
|
3748
|
+
dataSourceKey: z.z.string().optional().describe('[INTERNAL] Deprecated: Use dataSourceId instead'),
|
|
3749
3749
|
appSchema: DataSchema.optional(),
|
|
3750
3750
|
direction: z.z.enum(exports.FieldMappingDirection).optional(),
|
|
3751
3751
|
defaultImportValue: z.z.any().optional(),
|
|
@@ -3955,6 +3955,7 @@ const CreateConnectionRequestPayload = z.z.object({
|
|
|
3955
3955
|
integrationId: z.z.string().optional(),
|
|
3956
3956
|
integrationKey: z.z.string().optional(),
|
|
3957
3957
|
connectorId: z.z.string().optional(),
|
|
3958
|
+
connectorKey: z.z.string().optional(),
|
|
3958
3959
|
connectorVersion: z.z.string().optional(),
|
|
3959
3960
|
connectionId: z.z.string().optional(),
|
|
3960
3961
|
name: z.z.string().optional(),
|
|
@@ -3968,6 +3969,7 @@ const ConnectionRequest = z.z.object({
|
|
|
3968
3969
|
integrationId: z.z.string().optional(),
|
|
3969
3970
|
integrationKey: z.z.string().optional(),
|
|
3970
3971
|
connectorId: z.z.string().optional(),
|
|
3972
|
+
connectorKey: z.z.string().optional(),
|
|
3971
3973
|
connectorVersion: z.z.string().optional(),
|
|
3972
3974
|
connectionId: z.z.string().optional(),
|
|
3973
3975
|
name: z.z.string().optional(),
|
|
@@ -3985,6 +3987,8 @@ const ConnectionEditableProperties = z.z.object({
|
|
|
3985
3987
|
name: z.z.string().optional(),
|
|
3986
3988
|
meta: z.z.record(z.z.string(), z.z.any()).optional(),
|
|
3987
3989
|
authOptionKey: z.z.string().optional(),
|
|
3990
|
+
externalAppId: z.z.string().optional(),
|
|
3991
|
+
externalAppUuid: z.z.string().optional(),
|
|
3988
3992
|
credentials: z.z.unknown().optional(),
|
|
3989
3993
|
connectorParameters: z.z.unknown().optional(),
|
|
3990
3994
|
input: z.z.unknown().optional(),
|
|
@@ -3999,6 +4003,7 @@ const BaseConnection = BaseWorkspaceElement.extend({
|
|
|
3999
4003
|
error: ErrorDataSchema.optional(),
|
|
4000
4004
|
integrationId: z.z.string().optional(),
|
|
4001
4005
|
connectorId: z.z.string().optional(),
|
|
4006
|
+
externalAppId: z.z.string().optional(),
|
|
4002
4007
|
connectorVersion: z.z.string().optional(),
|
|
4003
4008
|
authOptionKey: z.z.string().optional(),
|
|
4004
4009
|
createdAt: z.z.string(),
|
|
@@ -9382,8 +9387,11 @@ const FlowRunNode = z.z.object({
|
|
|
9382
9387
|
});
|
|
9383
9388
|
const BaseFlowRun = ActivityLogRecord.extend({
|
|
9384
9389
|
name: z.z.string().optional(),
|
|
9385
|
-
|
|
9390
|
+
connectionFlowId: z.z.string(),
|
|
9391
|
+
integrationFlowId: z.z.string().optional(),
|
|
9386
9392
|
universalFlowId: z.z.string().optional(),
|
|
9393
|
+
flowInstanceId: z.z.string().optional().describe('[INTERNAL] Deprecated: Use connectionFlowId instead'),
|
|
9394
|
+
flowId: z.z.string().optional().describe('[INTERNAL] Deprecated: Use integrationFlowId instead'),
|
|
9387
9395
|
startNodeKey: z.z.string(),
|
|
9388
9396
|
input: z.z.any().optional(),
|
|
9389
9397
|
state: z.z.enum(exports.FlowRunState),
|
|
@@ -10128,8 +10136,11 @@ exports.ActionRunLogStatus = void 0;
|
|
|
10128
10136
|
})(exports.ActionRunLogStatus || (exports.ActionRunLogStatus = {}));
|
|
10129
10137
|
const BaseActionRunLogRecord = ActivityLogRecord.extend({
|
|
10130
10138
|
name: z.z.string(),
|
|
10131
|
-
|
|
10132
|
-
|
|
10139
|
+
universalActionId: z.z.string().optional(),
|
|
10140
|
+
integrationActionId: z.z.string(),
|
|
10141
|
+
connectionActionId: z.z.string().optional(),
|
|
10142
|
+
actionId: z.z.string().optional().describe('[INTERNAL] Deprecated: Use integrationActionId instead'),
|
|
10143
|
+
actionInstanceId: z.z.string().optional().describe('[INTERNAL] Deprecated: Use connectionActionId instead'),
|
|
10133
10144
|
integrationId: z.z.string(),
|
|
10134
10145
|
connectionId: z.z.string(),
|
|
10135
10146
|
input: z.z.any().optional(),
|
|
@@ -10225,20 +10236,17 @@ const ActionRunLogRecordApiResponse = BaseActionRunLogRecord.extend({
|
|
|
10225
10236
|
user: BaseCustomer.optional(),
|
|
10226
10237
|
});
|
|
10227
10238
|
const FindActionRunLogsQuery = PaginationQuery.extend({
|
|
10228
|
-
actionInstanceId: z.z
|
|
10229
|
-
.string()
|
|
10230
|
-
.optional()
|
|
10231
|
-
.meta({
|
|
10232
|
-
filterTitle: 'Action Instance',
|
|
10233
|
-
referenceElementType: exports.WorkspaceElementType.ActionInstance,
|
|
10234
|
-
}),
|
|
10235
10239
|
actionId: z.z
|
|
10236
10240
|
.string()
|
|
10237
10241
|
.optional()
|
|
10238
10242
|
.meta({
|
|
10239
10243
|
filterTitle: 'Action',
|
|
10240
10244
|
referenceElementType: exports.WorkspaceElementType.Action,
|
|
10245
|
+
useWorkspaceSearch: true,
|
|
10241
10246
|
}),
|
|
10247
|
+
universalActionId: z.z.string().optional().meta({ hidden: true }),
|
|
10248
|
+
integrationActionId: z.z.string().optional().meta({ hidden: true }),
|
|
10249
|
+
connectionActionId: z.z.string().optional().meta({ hidden: true }),
|
|
10242
10250
|
integrationId: z.z
|
|
10243
10251
|
.string()
|
|
10244
10252
|
.optional()
|
|
@@ -10269,8 +10277,19 @@ const FindActionRunLogsQuery = PaginationQuery.extend({
|
|
|
10269
10277
|
.meta({
|
|
10270
10278
|
filterTitle: 'Status',
|
|
10271
10279
|
}),
|
|
10272
|
-
|
|
10273
|
-
|
|
10280
|
+
from: z.z
|
|
10281
|
+
.string()
|
|
10282
|
+
.optional()
|
|
10283
|
+
.meta({
|
|
10284
|
+
filterTitle: 'From',
|
|
10285
|
+
isDatetime: true,
|
|
10286
|
+
}),
|
|
10287
|
+
to: z.z
|
|
10288
|
+
.string()
|
|
10289
|
+
.optional()
|
|
10290
|
+
.meta({
|
|
10291
|
+
filterTitle: 'To',
|
|
10292
|
+
isDatetime: true,
|
|
10274
10293
|
}),
|
|
10275
10294
|
});
|
|
10276
10295
|
const FindActionRunLogsResponse = createPaginationResponseSchema(ActionRunLogRecordApiResponse);
|
|
@@ -10318,6 +10337,10 @@ const FindConnectionsQuery = PaginationQuery.merge(SearchQuery)
|
|
|
10318
10337
|
.string()
|
|
10319
10338
|
.optional()
|
|
10320
10339
|
.meta({ hidden: true }),
|
|
10340
|
+
externalAppId: z.z.string().optional().meta({
|
|
10341
|
+
filterTitle: 'External App',
|
|
10342
|
+
referenceElementType: exports.WorkspaceElementType.App,
|
|
10343
|
+
}),
|
|
10321
10344
|
integrationKey: z.z
|
|
10322
10345
|
.string()
|
|
10323
10346
|
.optional()
|
|
@@ -10328,9 +10351,12 @@ const FindConnectionsQuery = PaginationQuery.merge(SearchQuery)
|
|
|
10328
10351
|
});
|
|
10329
10352
|
const CreateConnectionRequest = ConnectionEditableProperties.extend({
|
|
10330
10353
|
integrationId: z.z.string().optional(),
|
|
10354
|
+
integrationUuid: z.z.string().optional(),
|
|
10355
|
+
integrationKey: z.z.string().optional(),
|
|
10331
10356
|
connectorId: z.z.string().optional(),
|
|
10357
|
+
connectorUuid: z.z.string().optional(),
|
|
10358
|
+
connectorKey: z.z.string().optional(),
|
|
10332
10359
|
connectorVersion: z.z.string().optional(),
|
|
10333
|
-
externalAppId: z.z.string().optional(),
|
|
10334
10360
|
});
|
|
10335
10361
|
const UpdateConnectionRequest = ConnectionEditableProperties;
|
|
10336
10362
|
const ConnectionExportProperties = ConnectionEditableProperties.omit({
|
|
@@ -10393,6 +10419,7 @@ const GenerateOptionsRequest = z.z.object({
|
|
|
10393
10419
|
integrationId: z.z.string().optional(),
|
|
10394
10420
|
integrationKey: z.z.string().optional(),
|
|
10395
10421
|
connectorId: z.z.string().optional(),
|
|
10422
|
+
connectorKey: z.z.string().optional(),
|
|
10396
10423
|
connectionId: z.z.string().optional(),
|
|
10397
10424
|
connectorParameters: z.z.any().optional(),
|
|
10398
10425
|
connectorVersion: z.z.string().optional(),
|
|
@@ -10402,6 +10429,7 @@ const ConnectPayload = z.z.object({
|
|
|
10402
10429
|
integrationKey: z.z.string().optional(),
|
|
10403
10430
|
integrationId: z.z.string().optional(),
|
|
10404
10431
|
connectorId: z.z.string().optional(),
|
|
10432
|
+
connectorKey: z.z.string().optional(),
|
|
10405
10433
|
connectorVersion: z.z.string().optional(),
|
|
10406
10434
|
connectionId: z.z.string().optional(),
|
|
10407
10435
|
name: z.z.string().optional(),
|
|
@@ -10554,23 +10582,17 @@ const CreateFlowRunRequest = z.z.object({
|
|
|
10554
10582
|
meta: z.z.record(z.z.string(), z.z.any()).optional(),
|
|
10555
10583
|
});
|
|
10556
10584
|
const FindFlowRunsQuery = PaginationQuery.extend({
|
|
10557
|
-
flowInstanceId: z.z
|
|
10558
|
-
.string()
|
|
10559
|
-
.optional()
|
|
10560
|
-
.meta({
|
|
10561
|
-
filterTitle: 'Flow Instance',
|
|
10562
|
-
referenceElementType: exports.WorkspaceElementType.FlowInstance,
|
|
10563
|
-
}),
|
|
10564
10585
|
flowId: z.z
|
|
10565
10586
|
.string()
|
|
10566
10587
|
.optional()
|
|
10567
10588
|
.meta({
|
|
10568
10589
|
filterTitle: 'Flow',
|
|
10569
10590
|
referenceElementType: exports.WorkspaceElementType.Flow,
|
|
10591
|
+
useWorkspaceSearch: true,
|
|
10570
10592
|
}),
|
|
10571
|
-
universalFlowId: z.z.string().optional().meta({
|
|
10572
|
-
|
|
10573
|
-
}),
|
|
10593
|
+
universalFlowId: z.z.string().optional().meta({ hidden: true }),
|
|
10594
|
+
integrationFlowId: z.z.string().optional().meta({ hidden: true }),
|
|
10595
|
+
connectionFlowId: z.z.string().optional().meta({ hidden: true }),
|
|
10574
10596
|
tenantId: z.z
|
|
10575
10597
|
.string()
|
|
10576
10598
|
.optional()
|
|
@@ -10601,8 +10623,19 @@ const FindFlowRunsQuery = PaginationQuery.extend({
|
|
|
10601
10623
|
filterTitle: 'Connection',
|
|
10602
10624
|
referenceElementType: exports.WorkspaceElementType.Connection,
|
|
10603
10625
|
}),
|
|
10604
|
-
|
|
10605
|
-
|
|
10626
|
+
from: z.z
|
|
10627
|
+
.string()
|
|
10628
|
+
.optional()
|
|
10629
|
+
.meta({
|
|
10630
|
+
filterTitle: 'From',
|
|
10631
|
+
isDatetime: true,
|
|
10632
|
+
}),
|
|
10633
|
+
to: z.z
|
|
10634
|
+
.string()
|
|
10635
|
+
.optional()
|
|
10636
|
+
.meta({
|
|
10637
|
+
filterTitle: 'To',
|
|
10638
|
+
isDatetime: true,
|
|
10606
10639
|
}),
|
|
10607
10640
|
});
|
|
10608
10641
|
const FlowRunLaunchedByApi = z.z.object({
|
|
@@ -11023,8 +11056,19 @@ const ListExternalEventLogRecordsQuery = PaginationQuery.extend({
|
|
|
11023
11056
|
.meta({
|
|
11024
11057
|
filterTitle: 'Status',
|
|
11025
11058
|
}),
|
|
11026
|
-
|
|
11027
|
-
|
|
11059
|
+
from: z.z
|
|
11060
|
+
.string()
|
|
11061
|
+
.optional()
|
|
11062
|
+
.meta({
|
|
11063
|
+
filterTitle: 'From',
|
|
11064
|
+
isDatetime: true,
|
|
11065
|
+
}),
|
|
11066
|
+
to: z.z
|
|
11067
|
+
.string()
|
|
11068
|
+
.optional()
|
|
11069
|
+
.meta({
|
|
11070
|
+
filterTitle: 'To',
|
|
11071
|
+
isDatetime: true,
|
|
11028
11072
|
}),
|
|
11029
11073
|
});
|
|
11030
11074
|
const ExternalEventLogRecordApiResponse = BaseExternalEventLogRecord.extend({
|
|
@@ -11101,8 +11145,19 @@ const FindExternalEventPullsQuery = PaginationQuery.extend({
|
|
|
11101
11145
|
.meta({
|
|
11102
11146
|
filterTitle: 'Status',
|
|
11103
11147
|
}),
|
|
11104
|
-
|
|
11105
|
-
|
|
11148
|
+
from: z.z
|
|
11149
|
+
.string()
|
|
11150
|
+
.optional()
|
|
11151
|
+
.meta({
|
|
11152
|
+
filterTitle: 'From',
|
|
11153
|
+
isDatetime: true,
|
|
11154
|
+
}),
|
|
11155
|
+
to: z.z
|
|
11156
|
+
.string()
|
|
11157
|
+
.optional()
|
|
11158
|
+
.meta({
|
|
11159
|
+
filterTitle: 'To',
|
|
11160
|
+
isDatetime: true,
|
|
11106
11161
|
}),
|
|
11107
11162
|
});
|
|
11108
11163
|
const ExternalEventPullApiResponse = BaseExternalEventPull.extend({
|
|
@@ -11162,11 +11217,19 @@ const ListAppEventLogRecordsQuery = CommonListElementsQuery.extend({
|
|
|
11162
11217
|
filterTitle: 'Event Type',
|
|
11163
11218
|
referenceElementType: exports.WorkspaceElementType.AppEventType,
|
|
11164
11219
|
}),
|
|
11165
|
-
|
|
11166
|
-
|
|
11220
|
+
from: z.z
|
|
11221
|
+
.string()
|
|
11222
|
+
.optional()
|
|
11223
|
+
.meta({
|
|
11224
|
+
filterTitle: 'From',
|
|
11225
|
+
isDatetime: true,
|
|
11167
11226
|
}),
|
|
11168
|
-
|
|
11169
|
-
|
|
11227
|
+
to: z.z
|
|
11228
|
+
.string()
|
|
11229
|
+
.optional()
|
|
11230
|
+
.meta({
|
|
11231
|
+
filterTitle: 'To',
|
|
11232
|
+
isDatetime: true,
|
|
11170
11233
|
}),
|
|
11171
11234
|
});
|
|
11172
11235
|
const AppEventLogRecordApiResponse = z.z.object({
|
|
@@ -11211,11 +11274,19 @@ const ListExternalApiLogsQuery = PaginationQuery.extend({
|
|
|
11211
11274
|
filterTitle: 'Status',
|
|
11212
11275
|
isFlag: true,
|
|
11213
11276
|
}),
|
|
11214
|
-
|
|
11215
|
-
|
|
11277
|
+
from: z.z
|
|
11278
|
+
.string()
|
|
11279
|
+
.optional()
|
|
11280
|
+
.meta({
|
|
11281
|
+
filterTitle: 'From',
|
|
11282
|
+
isDatetime: true,
|
|
11216
11283
|
}),
|
|
11217
|
-
|
|
11218
|
-
|
|
11284
|
+
to: z.z
|
|
11285
|
+
.string()
|
|
11286
|
+
.optional()
|
|
11287
|
+
.meta({
|
|
11288
|
+
filterTitle: 'To',
|
|
11289
|
+
isDatetime: true,
|
|
11219
11290
|
}),
|
|
11220
11291
|
sortOrder: z.z.enum(['asc', 'desc']).optional().meta({
|
|
11221
11292
|
hidden: true,
|
|
@@ -11266,8 +11337,19 @@ const ListIncomingWebhooksQuery = PaginationQuery.extend({
|
|
|
11266
11337
|
.meta({
|
|
11267
11338
|
filterTitle: 'Status',
|
|
11268
11339
|
}),
|
|
11269
|
-
|
|
11270
|
-
|
|
11340
|
+
from: z.z
|
|
11341
|
+
.string()
|
|
11342
|
+
.optional()
|
|
11343
|
+
.meta({
|
|
11344
|
+
filterTitle: 'From',
|
|
11345
|
+
isDatetime: true,
|
|
11346
|
+
}),
|
|
11347
|
+
to: z.z
|
|
11348
|
+
.string()
|
|
11349
|
+
.optional()
|
|
11350
|
+
.meta({
|
|
11351
|
+
filterTitle: 'To',
|
|
11352
|
+
isDatetime: true,
|
|
11271
11353
|
}),
|
|
11272
11354
|
});
|
|
11273
11355
|
const IncomingWebhookApiResponse = z.z.object({
|
|
@@ -11637,6 +11719,7 @@ const WorkspaceElementSpecs = {
|
|
|
11637
11719
|
name: 'App',
|
|
11638
11720
|
namePlural: 'Apps',
|
|
11639
11721
|
hasKey: true,
|
|
11722
|
+
hasPublicLayer: true,
|
|
11640
11723
|
},
|
|
11641
11724
|
[exports.WorkspaceElementType.Integration]: {
|
|
11642
11725
|
type: exports.WorkspaceElementType.Integration,
|
|
@@ -11654,6 +11737,7 @@ const WorkspaceElementSpecs = {
|
|
|
11654
11737
|
namePlural: 'Connectors',
|
|
11655
11738
|
exportPropertiesSchema: ConnectorExportProperties,
|
|
11656
11739
|
hasKey: true,
|
|
11740
|
+
hasPublicLayer: true,
|
|
11657
11741
|
},
|
|
11658
11742
|
[exports.WorkspaceElementType.Connection]: {
|
|
11659
11743
|
type: exports.WorkspaceElementType.Connection,
|
|
@@ -11677,6 +11761,7 @@ const WorkspaceElementSpecs = {
|
|
|
11677
11761
|
isIntegrationLevel: true,
|
|
11678
11762
|
hasKey: true,
|
|
11679
11763
|
hasParentChildRelationship: true,
|
|
11764
|
+
hasPublicLayer: true,
|
|
11680
11765
|
isProOnly: true,
|
|
11681
11766
|
},
|
|
11682
11767
|
[exports.WorkspaceElementType.ActionInstance]: {
|
|
@@ -11703,6 +11788,7 @@ const WorkspaceElementSpecs = {
|
|
|
11703
11788
|
canBeAddedToPackage: true,
|
|
11704
11789
|
hasParentChildRelationship: true,
|
|
11705
11790
|
hasKey: true,
|
|
11791
|
+
hasPublicLayer: true,
|
|
11706
11792
|
},
|
|
11707
11793
|
[exports.WorkspaceElementType.ActionRunLogRecord]: {
|
|
11708
11794
|
type: exports.WorkspaceElementType.ActionRunLogRecord,
|
|
@@ -12306,12 +12392,12 @@ const ActivityStatsQuery = StatsFilterQuery.extend({
|
|
|
12306
12392
|
const IntegrationLayerStatsQuery = StatsFilterQuery;
|
|
12307
12393
|
const ActionRunsStatsQuery = z.z.object({
|
|
12308
12394
|
actionId: z.z.string().optional(),
|
|
12309
|
-
|
|
12395
|
+
connectionActionId: z.z.string().optional(),
|
|
12310
12396
|
startDatetime: z.z.string().datetime({ offset: true }),
|
|
12311
12397
|
});
|
|
12312
12398
|
const FlowRunsStatsQuery = z.z.object({
|
|
12313
|
-
|
|
12314
|
-
|
|
12399
|
+
integrationFlowId: z.z.string().optional(),
|
|
12400
|
+
connectionFlowId: z.z.string().optional(),
|
|
12315
12401
|
universalFlowId: z.z.string().optional(),
|
|
12316
12402
|
startDatetime: z.z.string().datetime({ offset: true }),
|
|
12317
12403
|
});
|
|
@@ -14188,7 +14274,7 @@ class FlowRunAccessor {
|
|
|
14188
14274
|
throw new BadRequestError('Cannot repeat a running flow run.');
|
|
14189
14275
|
}
|
|
14190
14276
|
return this.client.post(`/flow-runs`, {
|
|
14191
|
-
flowInstanceId: flowRun.flowInstanceId,
|
|
14277
|
+
flowInstanceId: flowRun.connectionFlowId || flowRun.flowInstanceId,
|
|
14192
14278
|
startNodeKey: flowRun.startNodeKey,
|
|
14193
14279
|
input: flowRun.input,
|
|
14194
14280
|
});
|
|
@@ -15376,6 +15462,35 @@ const OAuthTokenResponse = z.z.object({
|
|
|
15376
15462
|
|
|
15377
15463
|
const CONSOLE_ACCOUNT_API_TOKEN_PATH = 'settings/account/api-token';
|
|
15378
15464
|
|
|
15465
|
+
const PendingQueueCountSchema = z.z.object({
|
|
15466
|
+
pending: z.z.number().nullable().describe('Number of pending tasks, or null if the queue is unavailable.'),
|
|
15467
|
+
error: z.z.string().optional().describe('Error message if the queue count could not be retrieved.'),
|
|
15468
|
+
});
|
|
15469
|
+
const DbBackedCountsSchema = z.z.object({
|
|
15470
|
+
flowRuns: PendingQueueCountSchema.describe('Queued/running flow runs in MongoDB.'),
|
|
15471
|
+
eventPulls: PendingQueueCountSchema.describe('Queued/running external event pulls in MongoDB.'),
|
|
15472
|
+
eventLogs: PendingQueueCountSchema.describe('Created external event log records in MongoDB.'),
|
|
15473
|
+
});
|
|
15474
|
+
const PendingTasksSummarySchema = z.z.object({
|
|
15475
|
+
instant: PendingQueueCountSchema.optional().describe('Instant (BullMQ) queue counts.'),
|
|
15476
|
+
queued: PendingQueueCountSchema.optional().describe('Slow (Redis-backed) queue counts.'),
|
|
15477
|
+
dbBacked: DbBackedCountsSchema.optional().describe('DB-backed job counts from MongoDB (source of truth).'),
|
|
15478
|
+
total: z.z.number().describe('Sum of available pending task counts. Excludes unavailable queues.'),
|
|
15479
|
+
});
|
|
15480
|
+
|
|
15481
|
+
const Cluster = z.z.object({
|
|
15482
|
+
id: z.z.string(),
|
|
15483
|
+
name: z.z.string(),
|
|
15484
|
+
apiBaseUri: z.z.string(),
|
|
15485
|
+
consoleBaseUri: z.z.string().optional(),
|
|
15486
|
+
});
|
|
15487
|
+
const CreateClusterRequest = z.z.object({
|
|
15488
|
+
name: z.z.string().min(1),
|
|
15489
|
+
apiBaseUri: z.z.string().min(1),
|
|
15490
|
+
consoleBaseUri: z.z.string().min(1).optional(),
|
|
15491
|
+
});
|
|
15492
|
+
const ListClustersQuery = PaginationQuery;
|
|
15493
|
+
|
|
15379
15494
|
class UI {
|
|
15380
15495
|
constructor(client) {
|
|
15381
15496
|
this.client = client;
|
|
@@ -15840,6 +15955,7 @@ exports.Alert = Alert;
|
|
|
15840
15955
|
exports.AlertDeliverySettingsSchema = AlertDeliverySettingsSchema;
|
|
15841
15956
|
exports.AlertSchema = AlertSchema;
|
|
15842
15957
|
exports.AlertTypeDeliverySettingsSchema = AlertTypeDeliverySettingsSchema;
|
|
15958
|
+
exports.And = And;
|
|
15843
15959
|
exports.ApiRequestSpec = ApiRequestSpec;
|
|
15844
15960
|
exports.AppDataSchemaAccessor = AppDataSchemaAccessor;
|
|
15845
15961
|
exports.AppDataSchemaApiResponse = AppDataSchemaApiResponse;
|
|
@@ -15921,6 +16037,7 @@ exports.CheckpointDiffResponseSchema = CheckpointDiffResponseSchema;
|
|
|
15921
16037
|
exports.ClientToken = ClientToken;
|
|
15922
16038
|
exports.ClientTokenGrantType = ClientTokenGrantType;
|
|
15923
16039
|
exports.ClientTokenListResponse = ClientTokenListResponse;
|
|
16040
|
+
exports.Cluster = Cluster;
|
|
15924
16041
|
exports.CommonFindElementsQuery = CommonFindElementsQuery;
|
|
15925
16042
|
exports.CommonFindInstancesQuery = CommonFindInstancesQuery;
|
|
15926
16043
|
exports.CommonInstancesListQuery = CommonInstancesListQuery;
|
|
@@ -16003,6 +16120,7 @@ exports.CreateAgentSession = CreateAgentSession;
|
|
|
16003
16120
|
exports.CreateAlert = CreateAlert;
|
|
16004
16121
|
exports.CreateClientTokenRequest = CreateClientTokenRequest;
|
|
16005
16122
|
exports.CreateClientTokenResponse = CreateClientTokenResponse;
|
|
16123
|
+
exports.CreateClusterRequest = CreateClusterRequest;
|
|
16006
16124
|
exports.CreateConnectedProductRequest = CreateConnectedProductRequest;
|
|
16007
16125
|
exports.CreateConnectionRequest = CreateConnectionRequest;
|
|
16008
16126
|
exports.CreateConnectionRequestPayload = CreateConnectionRequestPayload;
|
|
@@ -16034,6 +16152,23 @@ exports.DEFAULT_ALERT_DELIVERY_SETTINGS = DEFAULT_ALERT_DELIVERY_SETTINGS;
|
|
|
16034
16152
|
exports.DEFAULT_ALERT_TYPE_DELIVERY_SETTINGS = DEFAULT_ALERT_TYPE_DELIVERY_SETTINGS;
|
|
16035
16153
|
exports.DEFAULT_FULL_SYNC_INTERVAL_SECONDS = DEFAULT_FULL_SYNC_INTERVAL_SECONDS;
|
|
16036
16154
|
exports.DEFAULT_PULL_UPDATES_INTERVAL_SECONDS = DEFAULT_PULL_UPDATES_INTERVAL_SECONDS;
|
|
16155
|
+
exports.DataBuilderFormulaBase = DataBuilderFormulaBase;
|
|
16156
|
+
exports.DataBuilderFormulaCase = DataBuilderFormulaCase;
|
|
16157
|
+
exports.DataBuilderFormulaConcat = DataBuilderFormulaConcat;
|
|
16158
|
+
exports.DataBuilderFormulaCopy = DataBuilderFormulaCopy;
|
|
16159
|
+
exports.DataBuilderFormulaExtractDate = DataBuilderFormulaExtractDate;
|
|
16160
|
+
exports.DataBuilderFormulaExtractTime = DataBuilderFormulaExtractTime;
|
|
16161
|
+
exports.DataBuilderFormulaFindAppRecordId = DataBuilderFormulaFindAppRecordId;
|
|
16162
|
+
exports.DataBuilderFormulaFindExternalRecordId = DataBuilderFormulaFindExternalRecordId;
|
|
16163
|
+
exports.DataBuilderFormulaFirstName = DataBuilderFormulaFirstName;
|
|
16164
|
+
exports.DataBuilderFormulaIterate = DataBuilderFormulaIterate;
|
|
16165
|
+
exports.DataBuilderFormulaLastName = DataBuilderFormulaLastName;
|
|
16166
|
+
exports.DataBuilderFormulaLookup = DataBuilderFormulaLookup;
|
|
16167
|
+
exports.DataBuilderFormulaMap = DataBuilderFormulaMap;
|
|
16168
|
+
exports.DataBuilderFormulaPlain = DataBuilderFormulaPlain;
|
|
16169
|
+
exports.DataBuilderFormulaRecord = DataBuilderFormulaRecord;
|
|
16170
|
+
exports.DataBuilderFormulaTpl = DataBuilderFormulaTpl;
|
|
16171
|
+
exports.DataBuilderFormulaVar = DataBuilderFormulaVar;
|
|
16037
16172
|
exports.DataCollectionCreateRequest = DataCollectionCreateRequest;
|
|
16038
16173
|
exports.DataCollectionCreateResponse = DataCollectionCreateResponse;
|
|
16039
16174
|
exports.DataCollectionCreateSpec = DataCollectionCreateSpec;
|
|
@@ -16087,6 +16222,7 @@ exports.DataLocatorStepArrayItem = DataLocatorStepArrayItem;
|
|
|
16087
16222
|
exports.DataLocatorStepObjectProperty = DataLocatorStepObjectProperty;
|
|
16088
16223
|
exports.DataRecordSchema = DataRecordSchema;
|
|
16089
16224
|
exports.DataSchema = DataSchema;
|
|
16225
|
+
exports.DataSchemaRef = DataSchemaRef;
|
|
16090
16226
|
exports.DataSourceAccessor = DataSourceAccessor;
|
|
16091
16227
|
exports.DataSourceApiResponse = DataSourceApiResponse;
|
|
16092
16228
|
exports.DataSourceEditableProperties = DataSourceEditableProperties;
|
|
@@ -16096,7 +16232,9 @@ exports.DataSourceInstanceApiResponse = DataSourceInstanceApiResponse;
|
|
|
16096
16232
|
exports.DataSourceInstancesAccessor = DataSourceInstancesAccessor;
|
|
16097
16233
|
exports.DataSourceUnitConfig = DataSourceUnitConfig;
|
|
16098
16234
|
exports.DataSourcesAccessor = DataSourcesAccessor;
|
|
16235
|
+
exports.DbBackedCountsSchema = DbBackedCountsSchema;
|
|
16099
16236
|
exports.DependencyError = DependencyError;
|
|
16237
|
+
exports.DomainFromEmail = DomainFromEmail;
|
|
16100
16238
|
exports.DownstreamFlowNodeRunSchema = DownstreamFlowNodeRunSchema;
|
|
16101
16239
|
exports.EDITABLE_LIMITS = EDITABLE_LIMITS;
|
|
16102
16240
|
exports.ElementAccessor = ElementAccessor;
|
|
@@ -16108,6 +16246,7 @@ exports.EngineCreditsProjectionResponse = EngineCreditsProjectionResponse;
|
|
|
16108
16246
|
exports.EngineWorkspaceSettingsSchema = EngineWorkspaceSettingsSchema;
|
|
16109
16247
|
exports.ErrorData = ErrorData;
|
|
16110
16248
|
exports.ErrorDataSchema = ErrorDataSchema;
|
|
16249
|
+
exports.Eval = Eval;
|
|
16111
16250
|
exports.ExternalApiLogApiResponse = ExternalApiLogApiResponse;
|
|
16112
16251
|
exports.ExternalEvent = ExternalEvent;
|
|
16113
16252
|
exports.ExternalEventLogRecordApiResponse = ExternalEventLogRecordApiResponse;
|
|
@@ -16165,6 +16304,7 @@ exports.FindOrgWorkspacesQuery = FindOrgWorkspacesQuery;
|
|
|
16165
16304
|
exports.FindOrgsQuery = FindOrgsQuery;
|
|
16166
16305
|
exports.FindPackagesQuery = FindPackagesQuery;
|
|
16167
16306
|
exports.FindScreensQuery = FindScreensQuery;
|
|
16307
|
+
exports.FirstNotEmpty = FirstNotEmpty;
|
|
16168
16308
|
exports.FlowAccessor = FlowAccessor;
|
|
16169
16309
|
exports.FlowApiResponse = FlowApiResponse;
|
|
16170
16310
|
exports.FlowEditableProperties = FlowEditableProperties;
|
|
@@ -16193,6 +16333,7 @@ exports.FlowRunsAccessor = FlowRunsAccessor;
|
|
|
16193
16333
|
exports.FlowRunsStatsQuery = FlowRunsStatsQuery;
|
|
16194
16334
|
exports.FlowsAccessor = FlowsAccessor;
|
|
16195
16335
|
exports.Formula = Formula;
|
|
16336
|
+
exports.FormulaFormula = FormulaFormula;
|
|
16196
16337
|
exports.FullOrgUser = FullOrgUser;
|
|
16197
16338
|
exports.FullPlatformUser = FullPlatformUser;
|
|
16198
16339
|
exports.FunctionDefinition = FunctionDefinition;
|
|
@@ -16233,8 +16374,10 @@ exports.IntegrationsAccessor = IntegrationsAccessor;
|
|
|
16233
16374
|
exports.InternalError = InternalError;
|
|
16234
16375
|
exports.InvalidLocatorError = InvalidLocatorError;
|
|
16235
16376
|
exports.JavascriptFunction = JavascriptFunction;
|
|
16377
|
+
exports.JsonataFormula = JsonataFormula;
|
|
16236
16378
|
exports.ListActionInstancesForConnectionQuery = ListActionInstancesForConnectionQuery;
|
|
16237
16379
|
exports.ListAppEventLogRecordsQuery = ListAppEventLogRecordsQuery;
|
|
16380
|
+
exports.ListClustersQuery = ListClustersQuery;
|
|
16238
16381
|
exports.ListDataSourceInstancesForConnectionQuery = ListDataSourceInstancesForConnectionQuery;
|
|
16239
16382
|
exports.ListExternalApiLogsQuery = ListExternalApiLogsQuery;
|
|
16240
16383
|
exports.ListExternalAppsQuery = ListExternalAppsQuery;
|
|
@@ -16256,6 +16399,7 @@ exports.MembraneAxiosInstance = axios;
|
|
|
16256
16399
|
exports.MembraneClient = MembraneClient;
|
|
16257
16400
|
exports.MembraneElementLayer = MembraneElementLayer;
|
|
16258
16401
|
exports.MembraneError = MembraneError;
|
|
16402
|
+
exports.MergeObjects = MergeObjects;
|
|
16259
16403
|
exports.MinimalConnector = MinimalConnector;
|
|
16260
16404
|
exports.NotAuthenticatedError = NotAuthenticatedError;
|
|
16261
16405
|
exports.NotFoundError = NotFoundError;
|
|
@@ -16269,6 +16413,7 @@ exports.OpenRouterNotConfiguredError = OpenRouterNotConfiguredError;
|
|
|
16269
16413
|
exports.OpenapiMappingSchema = OpenapiMappingSchema;
|
|
16270
16414
|
exports.OperationMappingFunction = OperationMappingFunction;
|
|
16271
16415
|
exports.OperationMappingSchema = OperationMappingSchema;
|
|
16416
|
+
exports.Or = Or;
|
|
16272
16417
|
exports.Org = Org;
|
|
16273
16418
|
exports.OrgInvitation = OrgInvitation;
|
|
16274
16419
|
exports.OrgLimits = OrgLimits;
|
|
@@ -16291,6 +16436,8 @@ exports.PackagesAccessor = PackagesAccessor;
|
|
|
16291
16436
|
exports.PaginationQuery = PaginationQuery;
|
|
16292
16437
|
exports.PaginationResponse = PaginationResponse;
|
|
16293
16438
|
exports.PatchAgentSessionSchema = PatchAgentSessionSchema;
|
|
16439
|
+
exports.PendingQueueCountSchema = PendingQueueCountSchema;
|
|
16440
|
+
exports.PendingTasksSummarySchema = PendingTasksSummarySchema;
|
|
16294
16441
|
exports.PlatformUser = PlatformUser;
|
|
16295
16442
|
exports.RATE_LIMITS = RATE_LIMITS;
|
|
16296
16443
|
exports.REFERENCE_ELEMENT_TYPE_SELF = REFERENCE_ELEMENT_TYPE_SELF;
|