@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.node.js
CHANGED
|
@@ -3749,7 +3749,7 @@ const FieldMappingSpecificProperties = z.z.object({
|
|
|
3749
3749
|
universalFieldMappingId: z.z.string().optional(),
|
|
3750
3750
|
dataSourceId: z.z.string().optional(),
|
|
3751
3751
|
dataSourceUuid: z.z.string().optional(),
|
|
3752
|
-
dataSourceKey: z.z.string().optional(),
|
|
3752
|
+
dataSourceKey: z.z.string().optional().describe('[INTERNAL] Deprecated: Use dataSourceId instead'),
|
|
3753
3753
|
appSchema: DataSchema.optional(),
|
|
3754
3754
|
direction: z.z.enum(exports.FieldMappingDirection).optional(),
|
|
3755
3755
|
defaultImportValue: z.z.any().optional(),
|
|
@@ -3959,6 +3959,7 @@ const CreateConnectionRequestPayload = z.z.object({
|
|
|
3959
3959
|
integrationId: z.z.string().optional(),
|
|
3960
3960
|
integrationKey: z.z.string().optional(),
|
|
3961
3961
|
connectorId: z.z.string().optional(),
|
|
3962
|
+
connectorKey: z.z.string().optional(),
|
|
3962
3963
|
connectorVersion: z.z.string().optional(),
|
|
3963
3964
|
connectionId: z.z.string().optional(),
|
|
3964
3965
|
name: z.z.string().optional(),
|
|
@@ -3972,6 +3973,7 @@ const ConnectionRequest = z.z.object({
|
|
|
3972
3973
|
integrationId: z.z.string().optional(),
|
|
3973
3974
|
integrationKey: z.z.string().optional(),
|
|
3974
3975
|
connectorId: z.z.string().optional(),
|
|
3976
|
+
connectorKey: z.z.string().optional(),
|
|
3975
3977
|
connectorVersion: z.z.string().optional(),
|
|
3976
3978
|
connectionId: z.z.string().optional(),
|
|
3977
3979
|
name: z.z.string().optional(),
|
|
@@ -3989,6 +3991,8 @@ const ConnectionEditableProperties = z.z.object({
|
|
|
3989
3991
|
name: z.z.string().optional(),
|
|
3990
3992
|
meta: z.z.record(z.z.string(), z.z.any()).optional(),
|
|
3991
3993
|
authOptionKey: z.z.string().optional(),
|
|
3994
|
+
externalAppId: z.z.string().optional(),
|
|
3995
|
+
externalAppUuid: z.z.string().optional(),
|
|
3992
3996
|
credentials: z.z.unknown().optional(),
|
|
3993
3997
|
connectorParameters: z.z.unknown().optional(),
|
|
3994
3998
|
input: z.z.unknown().optional(),
|
|
@@ -4003,6 +4007,7 @@ const BaseConnection = BaseWorkspaceElement.extend({
|
|
|
4003
4007
|
error: ErrorDataSchema.optional(),
|
|
4004
4008
|
integrationId: z.z.string().optional(),
|
|
4005
4009
|
connectorId: z.z.string().optional(),
|
|
4010
|
+
externalAppId: z.z.string().optional(),
|
|
4006
4011
|
connectorVersion: z.z.string().optional(),
|
|
4007
4012
|
authOptionKey: z.z.string().optional(),
|
|
4008
4013
|
createdAt: z.z.string(),
|
|
@@ -9386,8 +9391,11 @@ const FlowRunNode = z.z.object({
|
|
|
9386
9391
|
});
|
|
9387
9392
|
const BaseFlowRun = ActivityLogRecord.extend({
|
|
9388
9393
|
name: z.z.string().optional(),
|
|
9389
|
-
|
|
9394
|
+
connectionFlowId: z.z.string(),
|
|
9395
|
+
integrationFlowId: z.z.string().optional(),
|
|
9390
9396
|
universalFlowId: z.z.string().optional(),
|
|
9397
|
+
flowInstanceId: z.z.string().optional().describe('[INTERNAL] Deprecated: Use connectionFlowId instead'),
|
|
9398
|
+
flowId: z.z.string().optional().describe('[INTERNAL] Deprecated: Use integrationFlowId instead'),
|
|
9391
9399
|
startNodeKey: z.z.string(),
|
|
9392
9400
|
input: z.z.any().optional(),
|
|
9393
9401
|
state: z.z.enum(exports.FlowRunState),
|
|
@@ -10132,8 +10140,11 @@ exports.ActionRunLogStatus = void 0;
|
|
|
10132
10140
|
})(exports.ActionRunLogStatus || (exports.ActionRunLogStatus = {}));
|
|
10133
10141
|
const BaseActionRunLogRecord = ActivityLogRecord.extend({
|
|
10134
10142
|
name: z.z.string(),
|
|
10135
|
-
|
|
10136
|
-
|
|
10143
|
+
universalActionId: z.z.string().optional(),
|
|
10144
|
+
integrationActionId: z.z.string(),
|
|
10145
|
+
connectionActionId: z.z.string().optional(),
|
|
10146
|
+
actionId: z.z.string().optional().describe('[INTERNAL] Deprecated: Use integrationActionId instead'),
|
|
10147
|
+
actionInstanceId: z.z.string().optional().describe('[INTERNAL] Deprecated: Use connectionActionId instead'),
|
|
10137
10148
|
integrationId: z.z.string(),
|
|
10138
10149
|
connectionId: z.z.string(),
|
|
10139
10150
|
input: z.z.any().optional(),
|
|
@@ -10229,20 +10240,17 @@ const ActionRunLogRecordApiResponse = BaseActionRunLogRecord.extend({
|
|
|
10229
10240
|
user: BaseCustomer.optional(),
|
|
10230
10241
|
});
|
|
10231
10242
|
const FindActionRunLogsQuery = PaginationQuery.extend({
|
|
10232
|
-
actionInstanceId: z.z
|
|
10233
|
-
.string()
|
|
10234
|
-
.optional()
|
|
10235
|
-
.meta({
|
|
10236
|
-
filterTitle: 'Action Instance',
|
|
10237
|
-
referenceElementType: exports.WorkspaceElementType.ActionInstance,
|
|
10238
|
-
}),
|
|
10239
10243
|
actionId: z.z
|
|
10240
10244
|
.string()
|
|
10241
10245
|
.optional()
|
|
10242
10246
|
.meta({
|
|
10243
10247
|
filterTitle: 'Action',
|
|
10244
10248
|
referenceElementType: exports.WorkspaceElementType.Action,
|
|
10249
|
+
useWorkspaceSearch: true,
|
|
10245
10250
|
}),
|
|
10251
|
+
universalActionId: z.z.string().optional().meta({ hidden: true }),
|
|
10252
|
+
integrationActionId: z.z.string().optional().meta({ hidden: true }),
|
|
10253
|
+
connectionActionId: z.z.string().optional().meta({ hidden: true }),
|
|
10246
10254
|
integrationId: z.z
|
|
10247
10255
|
.string()
|
|
10248
10256
|
.optional()
|
|
@@ -10273,8 +10281,19 @@ const FindActionRunLogsQuery = PaginationQuery.extend({
|
|
|
10273
10281
|
.meta({
|
|
10274
10282
|
filterTitle: 'Status',
|
|
10275
10283
|
}),
|
|
10276
|
-
|
|
10277
|
-
|
|
10284
|
+
from: z.z
|
|
10285
|
+
.string()
|
|
10286
|
+
.optional()
|
|
10287
|
+
.meta({
|
|
10288
|
+
filterTitle: 'From',
|
|
10289
|
+
isDatetime: true,
|
|
10290
|
+
}),
|
|
10291
|
+
to: z.z
|
|
10292
|
+
.string()
|
|
10293
|
+
.optional()
|
|
10294
|
+
.meta({
|
|
10295
|
+
filterTitle: 'To',
|
|
10296
|
+
isDatetime: true,
|
|
10278
10297
|
}),
|
|
10279
10298
|
});
|
|
10280
10299
|
const FindActionRunLogsResponse = createPaginationResponseSchema(ActionRunLogRecordApiResponse);
|
|
@@ -10322,6 +10341,10 @@ const FindConnectionsQuery = PaginationQuery.merge(SearchQuery)
|
|
|
10322
10341
|
.string()
|
|
10323
10342
|
.optional()
|
|
10324
10343
|
.meta({ hidden: true }),
|
|
10344
|
+
externalAppId: z.z.string().optional().meta({
|
|
10345
|
+
filterTitle: 'External App',
|
|
10346
|
+
referenceElementType: exports.WorkspaceElementType.App,
|
|
10347
|
+
}),
|
|
10325
10348
|
integrationKey: z.z
|
|
10326
10349
|
.string()
|
|
10327
10350
|
.optional()
|
|
@@ -10332,9 +10355,12 @@ const FindConnectionsQuery = PaginationQuery.merge(SearchQuery)
|
|
|
10332
10355
|
});
|
|
10333
10356
|
const CreateConnectionRequest = ConnectionEditableProperties.extend({
|
|
10334
10357
|
integrationId: z.z.string().optional(),
|
|
10358
|
+
integrationUuid: z.z.string().optional(),
|
|
10359
|
+
integrationKey: z.z.string().optional(),
|
|
10335
10360
|
connectorId: z.z.string().optional(),
|
|
10361
|
+
connectorUuid: z.z.string().optional(),
|
|
10362
|
+
connectorKey: z.z.string().optional(),
|
|
10336
10363
|
connectorVersion: z.z.string().optional(),
|
|
10337
|
-
externalAppId: z.z.string().optional(),
|
|
10338
10364
|
});
|
|
10339
10365
|
const UpdateConnectionRequest = ConnectionEditableProperties;
|
|
10340
10366
|
const ConnectionExportProperties = ConnectionEditableProperties.omit({
|
|
@@ -10397,6 +10423,7 @@ const GenerateOptionsRequest = z.z.object({
|
|
|
10397
10423
|
integrationId: z.z.string().optional(),
|
|
10398
10424
|
integrationKey: z.z.string().optional(),
|
|
10399
10425
|
connectorId: z.z.string().optional(),
|
|
10426
|
+
connectorKey: z.z.string().optional(),
|
|
10400
10427
|
connectionId: z.z.string().optional(),
|
|
10401
10428
|
connectorParameters: z.z.any().optional(),
|
|
10402
10429
|
connectorVersion: z.z.string().optional(),
|
|
@@ -10406,6 +10433,7 @@ const ConnectPayload = z.z.object({
|
|
|
10406
10433
|
integrationKey: z.z.string().optional(),
|
|
10407
10434
|
integrationId: z.z.string().optional(),
|
|
10408
10435
|
connectorId: z.z.string().optional(),
|
|
10436
|
+
connectorKey: z.z.string().optional(),
|
|
10409
10437
|
connectorVersion: z.z.string().optional(),
|
|
10410
10438
|
connectionId: z.z.string().optional(),
|
|
10411
10439
|
name: z.z.string().optional(),
|
|
@@ -10558,23 +10586,17 @@ const CreateFlowRunRequest = z.z.object({
|
|
|
10558
10586
|
meta: z.z.record(z.z.string(), z.z.any()).optional(),
|
|
10559
10587
|
});
|
|
10560
10588
|
const FindFlowRunsQuery = PaginationQuery.extend({
|
|
10561
|
-
flowInstanceId: z.z
|
|
10562
|
-
.string()
|
|
10563
|
-
.optional()
|
|
10564
|
-
.meta({
|
|
10565
|
-
filterTitle: 'Flow Instance',
|
|
10566
|
-
referenceElementType: exports.WorkspaceElementType.FlowInstance,
|
|
10567
|
-
}),
|
|
10568
10589
|
flowId: z.z
|
|
10569
10590
|
.string()
|
|
10570
10591
|
.optional()
|
|
10571
10592
|
.meta({
|
|
10572
10593
|
filterTitle: 'Flow',
|
|
10573
10594
|
referenceElementType: exports.WorkspaceElementType.Flow,
|
|
10595
|
+
useWorkspaceSearch: true,
|
|
10574
10596
|
}),
|
|
10575
|
-
universalFlowId: z.z.string().optional().meta({
|
|
10576
|
-
|
|
10577
|
-
}),
|
|
10597
|
+
universalFlowId: z.z.string().optional().meta({ hidden: true }),
|
|
10598
|
+
integrationFlowId: z.z.string().optional().meta({ hidden: true }),
|
|
10599
|
+
connectionFlowId: z.z.string().optional().meta({ hidden: true }),
|
|
10578
10600
|
tenantId: z.z
|
|
10579
10601
|
.string()
|
|
10580
10602
|
.optional()
|
|
@@ -10605,8 +10627,19 @@ const FindFlowRunsQuery = PaginationQuery.extend({
|
|
|
10605
10627
|
filterTitle: 'Connection',
|
|
10606
10628
|
referenceElementType: exports.WorkspaceElementType.Connection,
|
|
10607
10629
|
}),
|
|
10608
|
-
|
|
10609
|
-
|
|
10630
|
+
from: z.z
|
|
10631
|
+
.string()
|
|
10632
|
+
.optional()
|
|
10633
|
+
.meta({
|
|
10634
|
+
filterTitle: 'From',
|
|
10635
|
+
isDatetime: true,
|
|
10636
|
+
}),
|
|
10637
|
+
to: z.z
|
|
10638
|
+
.string()
|
|
10639
|
+
.optional()
|
|
10640
|
+
.meta({
|
|
10641
|
+
filterTitle: 'To',
|
|
10642
|
+
isDatetime: true,
|
|
10610
10643
|
}),
|
|
10611
10644
|
});
|
|
10612
10645
|
const FlowRunLaunchedByApi = z.z.object({
|
|
@@ -11027,8 +11060,19 @@ const ListExternalEventLogRecordsQuery = PaginationQuery.extend({
|
|
|
11027
11060
|
.meta({
|
|
11028
11061
|
filterTitle: 'Status',
|
|
11029
11062
|
}),
|
|
11030
|
-
|
|
11031
|
-
|
|
11063
|
+
from: z.z
|
|
11064
|
+
.string()
|
|
11065
|
+
.optional()
|
|
11066
|
+
.meta({
|
|
11067
|
+
filterTitle: 'From',
|
|
11068
|
+
isDatetime: true,
|
|
11069
|
+
}),
|
|
11070
|
+
to: z.z
|
|
11071
|
+
.string()
|
|
11072
|
+
.optional()
|
|
11073
|
+
.meta({
|
|
11074
|
+
filterTitle: 'To',
|
|
11075
|
+
isDatetime: true,
|
|
11032
11076
|
}),
|
|
11033
11077
|
});
|
|
11034
11078
|
const ExternalEventLogRecordApiResponse = BaseExternalEventLogRecord.extend({
|
|
@@ -11105,8 +11149,19 @@ const FindExternalEventPullsQuery = PaginationQuery.extend({
|
|
|
11105
11149
|
.meta({
|
|
11106
11150
|
filterTitle: 'Status',
|
|
11107
11151
|
}),
|
|
11108
|
-
|
|
11109
|
-
|
|
11152
|
+
from: z.z
|
|
11153
|
+
.string()
|
|
11154
|
+
.optional()
|
|
11155
|
+
.meta({
|
|
11156
|
+
filterTitle: 'From',
|
|
11157
|
+
isDatetime: true,
|
|
11158
|
+
}),
|
|
11159
|
+
to: z.z
|
|
11160
|
+
.string()
|
|
11161
|
+
.optional()
|
|
11162
|
+
.meta({
|
|
11163
|
+
filterTitle: 'To',
|
|
11164
|
+
isDatetime: true,
|
|
11110
11165
|
}),
|
|
11111
11166
|
});
|
|
11112
11167
|
const ExternalEventPullApiResponse = BaseExternalEventPull.extend({
|
|
@@ -11166,11 +11221,19 @@ const ListAppEventLogRecordsQuery = CommonListElementsQuery.extend({
|
|
|
11166
11221
|
filterTitle: 'Event Type',
|
|
11167
11222
|
referenceElementType: exports.WorkspaceElementType.AppEventType,
|
|
11168
11223
|
}),
|
|
11169
|
-
|
|
11170
|
-
|
|
11224
|
+
from: z.z
|
|
11225
|
+
.string()
|
|
11226
|
+
.optional()
|
|
11227
|
+
.meta({
|
|
11228
|
+
filterTitle: 'From',
|
|
11229
|
+
isDatetime: true,
|
|
11171
11230
|
}),
|
|
11172
|
-
|
|
11173
|
-
|
|
11231
|
+
to: z.z
|
|
11232
|
+
.string()
|
|
11233
|
+
.optional()
|
|
11234
|
+
.meta({
|
|
11235
|
+
filterTitle: 'To',
|
|
11236
|
+
isDatetime: true,
|
|
11174
11237
|
}),
|
|
11175
11238
|
});
|
|
11176
11239
|
const AppEventLogRecordApiResponse = z.z.object({
|
|
@@ -11215,11 +11278,19 @@ const ListExternalApiLogsQuery = PaginationQuery.extend({
|
|
|
11215
11278
|
filterTitle: 'Status',
|
|
11216
11279
|
isFlag: true,
|
|
11217
11280
|
}),
|
|
11218
|
-
|
|
11219
|
-
|
|
11281
|
+
from: z.z
|
|
11282
|
+
.string()
|
|
11283
|
+
.optional()
|
|
11284
|
+
.meta({
|
|
11285
|
+
filterTitle: 'From',
|
|
11286
|
+
isDatetime: true,
|
|
11220
11287
|
}),
|
|
11221
|
-
|
|
11222
|
-
|
|
11288
|
+
to: z.z
|
|
11289
|
+
.string()
|
|
11290
|
+
.optional()
|
|
11291
|
+
.meta({
|
|
11292
|
+
filterTitle: 'To',
|
|
11293
|
+
isDatetime: true,
|
|
11223
11294
|
}),
|
|
11224
11295
|
sortOrder: z.z.enum(['asc', 'desc']).optional().meta({
|
|
11225
11296
|
hidden: true,
|
|
@@ -11270,8 +11341,19 @@ const ListIncomingWebhooksQuery = PaginationQuery.extend({
|
|
|
11270
11341
|
.meta({
|
|
11271
11342
|
filterTitle: 'Status',
|
|
11272
11343
|
}),
|
|
11273
|
-
|
|
11274
|
-
|
|
11344
|
+
from: z.z
|
|
11345
|
+
.string()
|
|
11346
|
+
.optional()
|
|
11347
|
+
.meta({
|
|
11348
|
+
filterTitle: 'From',
|
|
11349
|
+
isDatetime: true,
|
|
11350
|
+
}),
|
|
11351
|
+
to: z.z
|
|
11352
|
+
.string()
|
|
11353
|
+
.optional()
|
|
11354
|
+
.meta({
|
|
11355
|
+
filterTitle: 'To',
|
|
11356
|
+
isDatetime: true,
|
|
11275
11357
|
}),
|
|
11276
11358
|
});
|
|
11277
11359
|
const IncomingWebhookApiResponse = z.z.object({
|
|
@@ -11641,6 +11723,7 @@ const WorkspaceElementSpecs = {
|
|
|
11641
11723
|
name: 'App',
|
|
11642
11724
|
namePlural: 'Apps',
|
|
11643
11725
|
hasKey: true,
|
|
11726
|
+
hasPublicLayer: true,
|
|
11644
11727
|
},
|
|
11645
11728
|
[exports.WorkspaceElementType.Integration]: {
|
|
11646
11729
|
type: exports.WorkspaceElementType.Integration,
|
|
@@ -11658,6 +11741,7 @@ const WorkspaceElementSpecs = {
|
|
|
11658
11741
|
namePlural: 'Connectors',
|
|
11659
11742
|
exportPropertiesSchema: ConnectorExportProperties,
|
|
11660
11743
|
hasKey: true,
|
|
11744
|
+
hasPublicLayer: true,
|
|
11661
11745
|
},
|
|
11662
11746
|
[exports.WorkspaceElementType.Connection]: {
|
|
11663
11747
|
type: exports.WorkspaceElementType.Connection,
|
|
@@ -11681,6 +11765,7 @@ const WorkspaceElementSpecs = {
|
|
|
11681
11765
|
isIntegrationLevel: true,
|
|
11682
11766
|
hasKey: true,
|
|
11683
11767
|
hasParentChildRelationship: true,
|
|
11768
|
+
hasPublicLayer: true,
|
|
11684
11769
|
isProOnly: true,
|
|
11685
11770
|
},
|
|
11686
11771
|
[exports.WorkspaceElementType.ActionInstance]: {
|
|
@@ -11707,6 +11792,7 @@ const WorkspaceElementSpecs = {
|
|
|
11707
11792
|
canBeAddedToPackage: true,
|
|
11708
11793
|
hasParentChildRelationship: true,
|
|
11709
11794
|
hasKey: true,
|
|
11795
|
+
hasPublicLayer: true,
|
|
11710
11796
|
},
|
|
11711
11797
|
[exports.WorkspaceElementType.ActionRunLogRecord]: {
|
|
11712
11798
|
type: exports.WorkspaceElementType.ActionRunLogRecord,
|
|
@@ -12310,12 +12396,12 @@ const ActivityStatsQuery = StatsFilterQuery.extend({
|
|
|
12310
12396
|
const IntegrationLayerStatsQuery = StatsFilterQuery;
|
|
12311
12397
|
const ActionRunsStatsQuery = z.z.object({
|
|
12312
12398
|
actionId: z.z.string().optional(),
|
|
12313
|
-
|
|
12399
|
+
connectionActionId: z.z.string().optional(),
|
|
12314
12400
|
startDatetime: z.z.string().datetime({ offset: true }),
|
|
12315
12401
|
});
|
|
12316
12402
|
const FlowRunsStatsQuery = z.z.object({
|
|
12317
|
-
|
|
12318
|
-
|
|
12403
|
+
integrationFlowId: z.z.string().optional(),
|
|
12404
|
+
connectionFlowId: z.z.string().optional(),
|
|
12319
12405
|
universalFlowId: z.z.string().optional(),
|
|
12320
12406
|
startDatetime: z.z.string().datetime({ offset: true }),
|
|
12321
12407
|
});
|
|
@@ -14192,7 +14278,7 @@ class FlowRunAccessor {
|
|
|
14192
14278
|
throw new BadRequestError('Cannot repeat a running flow run.');
|
|
14193
14279
|
}
|
|
14194
14280
|
return this.client.post(`/flow-runs`, {
|
|
14195
|
-
flowInstanceId: flowRun.flowInstanceId,
|
|
14281
|
+
flowInstanceId: flowRun.connectionFlowId || flowRun.flowInstanceId,
|
|
14196
14282
|
startNodeKey: flowRun.startNodeKey,
|
|
14197
14283
|
input: flowRun.input,
|
|
14198
14284
|
});
|
|
@@ -15380,6 +15466,35 @@ const OAuthTokenResponse = z.z.object({
|
|
|
15380
15466
|
|
|
15381
15467
|
const CONSOLE_ACCOUNT_API_TOKEN_PATH = 'settings/account/api-token';
|
|
15382
15468
|
|
|
15469
|
+
const PendingQueueCountSchema = z.z.object({
|
|
15470
|
+
pending: z.z.number().nullable().describe('Number of pending tasks, or null if the queue is unavailable.'),
|
|
15471
|
+
error: z.z.string().optional().describe('Error message if the queue count could not be retrieved.'),
|
|
15472
|
+
});
|
|
15473
|
+
const DbBackedCountsSchema = z.z.object({
|
|
15474
|
+
flowRuns: PendingQueueCountSchema.describe('Queued/running flow runs in MongoDB.'),
|
|
15475
|
+
eventPulls: PendingQueueCountSchema.describe('Queued/running external event pulls in MongoDB.'),
|
|
15476
|
+
eventLogs: PendingQueueCountSchema.describe('Created external event log records in MongoDB.'),
|
|
15477
|
+
});
|
|
15478
|
+
const PendingTasksSummarySchema = z.z.object({
|
|
15479
|
+
instant: PendingQueueCountSchema.optional().describe('Instant (BullMQ) queue counts.'),
|
|
15480
|
+
queued: PendingQueueCountSchema.optional().describe('Slow (Redis-backed) queue counts.'),
|
|
15481
|
+
dbBacked: DbBackedCountsSchema.optional().describe('DB-backed job counts from MongoDB (source of truth).'),
|
|
15482
|
+
total: z.z.number().describe('Sum of available pending task counts. Excludes unavailable queues.'),
|
|
15483
|
+
});
|
|
15484
|
+
|
|
15485
|
+
const Cluster = z.z.object({
|
|
15486
|
+
id: z.z.string(),
|
|
15487
|
+
name: z.z.string(),
|
|
15488
|
+
apiBaseUri: z.z.string(),
|
|
15489
|
+
consoleBaseUri: z.z.string().optional(),
|
|
15490
|
+
});
|
|
15491
|
+
const CreateClusterRequest = z.z.object({
|
|
15492
|
+
name: z.z.string().min(1),
|
|
15493
|
+
apiBaseUri: z.z.string().min(1),
|
|
15494
|
+
consoleBaseUri: z.z.string().min(1).optional(),
|
|
15495
|
+
});
|
|
15496
|
+
const ListClustersQuery = PaginationQuery;
|
|
15497
|
+
|
|
15383
15498
|
class UI {
|
|
15384
15499
|
constructor(client) {
|
|
15385
15500
|
this.client = client;
|
|
@@ -16024,6 +16139,7 @@ exports.Alert = Alert;
|
|
|
16024
16139
|
exports.AlertDeliverySettingsSchema = AlertDeliverySettingsSchema;
|
|
16025
16140
|
exports.AlertSchema = AlertSchema;
|
|
16026
16141
|
exports.AlertTypeDeliverySettingsSchema = AlertTypeDeliverySettingsSchema;
|
|
16142
|
+
exports.And = And;
|
|
16027
16143
|
exports.ApiRequestSpec = ApiRequestSpec;
|
|
16028
16144
|
exports.AppDataSchemaAccessor = AppDataSchemaAccessor;
|
|
16029
16145
|
exports.AppDataSchemaApiResponse = AppDataSchemaApiResponse;
|
|
@@ -16106,6 +16222,7 @@ exports.CheckpointDiffResponseSchema = CheckpointDiffResponseSchema;
|
|
|
16106
16222
|
exports.ClientToken = ClientToken;
|
|
16107
16223
|
exports.ClientTokenGrantType = ClientTokenGrantType;
|
|
16108
16224
|
exports.ClientTokenListResponse = ClientTokenListResponse;
|
|
16225
|
+
exports.Cluster = Cluster;
|
|
16109
16226
|
exports.CommonFindElementsQuery = CommonFindElementsQuery;
|
|
16110
16227
|
exports.CommonFindInstancesQuery = CommonFindInstancesQuery;
|
|
16111
16228
|
exports.CommonInstancesListQuery = CommonInstancesListQuery;
|
|
@@ -16188,6 +16305,7 @@ exports.CreateAgentSession = CreateAgentSession;
|
|
|
16188
16305
|
exports.CreateAlert = CreateAlert;
|
|
16189
16306
|
exports.CreateClientTokenRequest = CreateClientTokenRequest;
|
|
16190
16307
|
exports.CreateClientTokenResponse = CreateClientTokenResponse;
|
|
16308
|
+
exports.CreateClusterRequest = CreateClusterRequest;
|
|
16191
16309
|
exports.CreateConnectedProductRequest = CreateConnectedProductRequest;
|
|
16192
16310
|
exports.CreateConnectionRequest = CreateConnectionRequest;
|
|
16193
16311
|
exports.CreateConnectionRequestPayload = CreateConnectionRequestPayload;
|
|
@@ -16219,6 +16337,23 @@ exports.DEFAULT_ALERT_DELIVERY_SETTINGS = DEFAULT_ALERT_DELIVERY_SETTINGS;
|
|
|
16219
16337
|
exports.DEFAULT_ALERT_TYPE_DELIVERY_SETTINGS = DEFAULT_ALERT_TYPE_DELIVERY_SETTINGS;
|
|
16220
16338
|
exports.DEFAULT_FULL_SYNC_INTERVAL_SECONDS = DEFAULT_FULL_SYNC_INTERVAL_SECONDS;
|
|
16221
16339
|
exports.DEFAULT_PULL_UPDATES_INTERVAL_SECONDS = DEFAULT_PULL_UPDATES_INTERVAL_SECONDS;
|
|
16340
|
+
exports.DataBuilderFormulaBase = DataBuilderFormulaBase;
|
|
16341
|
+
exports.DataBuilderFormulaCase = DataBuilderFormulaCase;
|
|
16342
|
+
exports.DataBuilderFormulaConcat = DataBuilderFormulaConcat;
|
|
16343
|
+
exports.DataBuilderFormulaCopy = DataBuilderFormulaCopy;
|
|
16344
|
+
exports.DataBuilderFormulaExtractDate = DataBuilderFormulaExtractDate;
|
|
16345
|
+
exports.DataBuilderFormulaExtractTime = DataBuilderFormulaExtractTime;
|
|
16346
|
+
exports.DataBuilderFormulaFindAppRecordId = DataBuilderFormulaFindAppRecordId;
|
|
16347
|
+
exports.DataBuilderFormulaFindExternalRecordId = DataBuilderFormulaFindExternalRecordId;
|
|
16348
|
+
exports.DataBuilderFormulaFirstName = DataBuilderFormulaFirstName;
|
|
16349
|
+
exports.DataBuilderFormulaIterate = DataBuilderFormulaIterate;
|
|
16350
|
+
exports.DataBuilderFormulaLastName = DataBuilderFormulaLastName;
|
|
16351
|
+
exports.DataBuilderFormulaLookup = DataBuilderFormulaLookup;
|
|
16352
|
+
exports.DataBuilderFormulaMap = DataBuilderFormulaMap;
|
|
16353
|
+
exports.DataBuilderFormulaPlain = DataBuilderFormulaPlain;
|
|
16354
|
+
exports.DataBuilderFormulaRecord = DataBuilderFormulaRecord;
|
|
16355
|
+
exports.DataBuilderFormulaTpl = DataBuilderFormulaTpl;
|
|
16356
|
+
exports.DataBuilderFormulaVar = DataBuilderFormulaVar;
|
|
16222
16357
|
exports.DataCollectionCreateRequest = DataCollectionCreateRequest;
|
|
16223
16358
|
exports.DataCollectionCreateResponse = DataCollectionCreateResponse;
|
|
16224
16359
|
exports.DataCollectionCreateSpec = DataCollectionCreateSpec;
|
|
@@ -16272,6 +16407,7 @@ exports.DataLocatorStepArrayItem = DataLocatorStepArrayItem;
|
|
|
16272
16407
|
exports.DataLocatorStepObjectProperty = DataLocatorStepObjectProperty;
|
|
16273
16408
|
exports.DataRecordSchema = DataRecordSchema;
|
|
16274
16409
|
exports.DataSchema = DataSchema;
|
|
16410
|
+
exports.DataSchemaRef = DataSchemaRef;
|
|
16275
16411
|
exports.DataSourceAccessor = DataSourceAccessor;
|
|
16276
16412
|
exports.DataSourceApiResponse = DataSourceApiResponse;
|
|
16277
16413
|
exports.DataSourceEditableProperties = DataSourceEditableProperties;
|
|
@@ -16281,7 +16417,9 @@ exports.DataSourceInstanceApiResponse = DataSourceInstanceApiResponse;
|
|
|
16281
16417
|
exports.DataSourceInstancesAccessor = DataSourceInstancesAccessor;
|
|
16282
16418
|
exports.DataSourceUnitConfig = DataSourceUnitConfig;
|
|
16283
16419
|
exports.DataSourcesAccessor = DataSourcesAccessor;
|
|
16420
|
+
exports.DbBackedCountsSchema = DbBackedCountsSchema;
|
|
16284
16421
|
exports.DependencyError = DependencyError;
|
|
16422
|
+
exports.DomainFromEmail = DomainFromEmail;
|
|
16285
16423
|
exports.DownstreamFlowNodeRunSchema = DownstreamFlowNodeRunSchema;
|
|
16286
16424
|
exports.EDITABLE_LIMITS = EDITABLE_LIMITS;
|
|
16287
16425
|
exports.ElementAccessor = ElementAccessor;
|
|
@@ -16293,6 +16431,7 @@ exports.EngineCreditsProjectionResponse = EngineCreditsProjectionResponse;
|
|
|
16293
16431
|
exports.EngineWorkspaceSettingsSchema = EngineWorkspaceSettingsSchema;
|
|
16294
16432
|
exports.ErrorData = ErrorData;
|
|
16295
16433
|
exports.ErrorDataSchema = ErrorDataSchema;
|
|
16434
|
+
exports.Eval = Eval;
|
|
16296
16435
|
exports.ExternalApiLogApiResponse = ExternalApiLogApiResponse;
|
|
16297
16436
|
exports.ExternalEvent = ExternalEvent;
|
|
16298
16437
|
exports.ExternalEventLogRecordApiResponse = ExternalEventLogRecordApiResponse;
|
|
@@ -16350,6 +16489,7 @@ exports.FindOrgWorkspacesQuery = FindOrgWorkspacesQuery;
|
|
|
16350
16489
|
exports.FindOrgsQuery = FindOrgsQuery;
|
|
16351
16490
|
exports.FindPackagesQuery = FindPackagesQuery;
|
|
16352
16491
|
exports.FindScreensQuery = FindScreensQuery;
|
|
16492
|
+
exports.FirstNotEmpty = FirstNotEmpty;
|
|
16353
16493
|
exports.FlowAccessor = FlowAccessor;
|
|
16354
16494
|
exports.FlowApiResponse = FlowApiResponse;
|
|
16355
16495
|
exports.FlowEditableProperties = FlowEditableProperties;
|
|
@@ -16378,6 +16518,7 @@ exports.FlowRunsAccessor = FlowRunsAccessor;
|
|
|
16378
16518
|
exports.FlowRunsStatsQuery = FlowRunsStatsQuery;
|
|
16379
16519
|
exports.FlowsAccessor = FlowsAccessor;
|
|
16380
16520
|
exports.Formula = Formula;
|
|
16521
|
+
exports.FormulaFormula = FormulaFormula;
|
|
16381
16522
|
exports.FullOrgUser = FullOrgUser;
|
|
16382
16523
|
exports.FullPlatformUser = FullPlatformUser;
|
|
16383
16524
|
exports.FunctionDefinition = FunctionDefinition;
|
|
@@ -16418,8 +16559,10 @@ exports.IntegrationsAccessor = IntegrationsAccessor;
|
|
|
16418
16559
|
exports.InternalError = InternalError;
|
|
16419
16560
|
exports.InvalidLocatorError = InvalidLocatorError;
|
|
16420
16561
|
exports.JavascriptFunction = JavascriptFunction;
|
|
16562
|
+
exports.JsonataFormula = JsonataFormula;
|
|
16421
16563
|
exports.ListActionInstancesForConnectionQuery = ListActionInstancesForConnectionQuery;
|
|
16422
16564
|
exports.ListAppEventLogRecordsQuery = ListAppEventLogRecordsQuery;
|
|
16565
|
+
exports.ListClustersQuery = ListClustersQuery;
|
|
16423
16566
|
exports.ListDataSourceInstancesForConnectionQuery = ListDataSourceInstancesForConnectionQuery;
|
|
16424
16567
|
exports.ListExternalApiLogsQuery = ListExternalApiLogsQuery;
|
|
16425
16568
|
exports.ListExternalAppsQuery = ListExternalAppsQuery;
|
|
@@ -16442,6 +16585,7 @@ exports.MembraneClient = MembraneClient;
|
|
|
16442
16585
|
exports.MembraneConfigLoader = MembraneConfigLoader;
|
|
16443
16586
|
exports.MembraneElementLayer = MembraneElementLayer;
|
|
16444
16587
|
exports.MembraneError = MembraneError;
|
|
16588
|
+
exports.MergeObjects = MergeObjects;
|
|
16445
16589
|
exports.MinimalConnector = MinimalConnector;
|
|
16446
16590
|
exports.NotAuthenticatedError = NotAuthenticatedError;
|
|
16447
16591
|
exports.NotFoundError = NotFoundError;
|
|
@@ -16455,6 +16599,7 @@ exports.OpenRouterNotConfiguredError = OpenRouterNotConfiguredError;
|
|
|
16455
16599
|
exports.OpenapiMappingSchema = OpenapiMappingSchema;
|
|
16456
16600
|
exports.OperationMappingFunction = OperationMappingFunction;
|
|
16457
16601
|
exports.OperationMappingSchema = OperationMappingSchema;
|
|
16602
|
+
exports.Or = Or;
|
|
16458
16603
|
exports.Org = Org;
|
|
16459
16604
|
exports.OrgInvitation = OrgInvitation;
|
|
16460
16605
|
exports.OrgLimits = OrgLimits;
|
|
@@ -16477,6 +16622,8 @@ exports.PackagesAccessor = PackagesAccessor;
|
|
|
16477
16622
|
exports.PaginationQuery = PaginationQuery;
|
|
16478
16623
|
exports.PaginationResponse = PaginationResponse;
|
|
16479
16624
|
exports.PatchAgentSessionSchema = PatchAgentSessionSchema;
|
|
16625
|
+
exports.PendingQueueCountSchema = PendingQueueCountSchema;
|
|
16626
|
+
exports.PendingTasksSummarySchema = PendingTasksSummarySchema;
|
|
16480
16627
|
exports.PlatformUser = PlatformUser;
|
|
16481
16628
|
exports.RATE_LIMITS = RATE_LIMITS;
|
|
16482
16629
|
exports.REFERENCE_ELEMENT_TYPE_SELF = REFERENCE_ELEMENT_TYPE_SELF;
|