@membranehq/sdk 0.17.6 → 0.18.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 +15 -4
- package/dist/bundle.js +20 -4
- package/dist/bundle.js.map +1 -1
- package/dist/dts/agent/session.d.ts +2 -0
- package/dist/dts/client-tokens/types.d.ts +5 -5
- package/dist/dts/stats/index.d.ts +8 -5
- package/dist/dts/ui.d.ts +5 -0
- package/dist/dts/workspace-elements/api/action-run-log-records-api.d.ts +3 -0
- package/dist/dts/workspace-elements/api/connected-products-api.d.ts +2 -1
- package/dist/dts/workspace-elements/api/connections-api.d.ts +1 -1
- package/dist/dts/workspace-elements/api/data-sources-api.d.ts +2 -2
- package/dist/dts/workspace-elements/api/external-api-logs-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 +1 -0
- package/dist/dts/workspace-elements/api/external-events-api.d.ts +1 -0
- package/dist/dts/workspace-elements/api/field-mappings-api.d.ts +2 -2
- package/dist/dts/workspace-elements/api/flow-runs-api.d.ts +3 -0
- package/dist/dts/workspace-elements/api/flows-api.d.ts +1 -1
- package/dist/dts/workspace-elements/api/incoming-webhooks-api.d.ts +2 -0
- package/dist/dts/workspace-elements/base/action-run-log-records/index.d.ts +1 -0
- package/dist/dts/workspace-elements/base/connectors/index.d.ts +1 -0
- package/dist/dts/workspace-elements/base/external-event-log-records/index.d.ts +1 -0
- package/dist/dts/workspace-elements/base/external-event-pulls/index.d.ts +1 -0
- package/dist/dts/workspace-elements/base/flow-runs/index.d.ts +1 -0
- package/dist/dts/workspace-elements/types.d.ts +3 -0
- package/dist/dts/workspace-elements-catalog/index.d.ts +3 -0
- package/dist/index.browser.d.mts +54 -17
- package/dist/index.browser.d.ts +54 -17
- package/dist/index.browser.js +182 -11
- package/dist/index.browser.js.map +1 -1
- package/dist/index.browser.mjs +182 -11
- package/dist/index.browser.mjs.map +1 -1
- package/dist/index.node.d.mts +54 -17
- package/dist/index.node.d.ts +54 -17
- package/dist/index.node.js +182 -11
- package/dist/index.node.js.map +1 -1
- package/dist/index.node.mjs +182 -11
- package/dist/index.node.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.browser.mjs
CHANGED
|
@@ -3471,6 +3471,8 @@ var WorkspaceElementType;
|
|
|
3471
3471
|
WorkspaceElementType["ExternalEventPull"] = "external-event-pull";
|
|
3472
3472
|
WorkspaceElementType["Screen"] = "screen";
|
|
3473
3473
|
WorkspaceElementType["ActionRunLogRecord"] = "action-run-log-record";
|
|
3474
|
+
WorkspaceElementType["ExternalApiLogRecord"] = "external-api-log-record";
|
|
3475
|
+
WorkspaceElementType["IncomingWebhookLogRecord"] = "incoming-webhook-log-record";
|
|
3474
3476
|
WorkspaceElementType["ConnectedProduct"] = "connected-product";
|
|
3475
3477
|
})(WorkspaceElementType || (WorkspaceElementType = {}));
|
|
3476
3478
|
var WorkspaceEventType;
|
|
@@ -3669,6 +3671,7 @@ const ActivityLogRecord = TenantLayerElement.extend({
|
|
|
3669
3671
|
id: z.string(),
|
|
3670
3672
|
integrationId: z.string().optional(),
|
|
3671
3673
|
connectionId: z.string().optional(),
|
|
3674
|
+
externalAppId: z.string().optional(),
|
|
3672
3675
|
});
|
|
3673
3676
|
const WorkspaceElementSearchQuery = z.object({
|
|
3674
3677
|
q: z.string().min(1).max(200),
|
|
@@ -9104,6 +9107,7 @@ const GeneratedConnectorOption = z.object({
|
|
|
9104
9107
|
description: z.string().optional(),
|
|
9105
9108
|
inputSchema: DataSchema.optional(),
|
|
9106
9109
|
connectorParametersSchema: DataSchema.optional(),
|
|
9110
|
+
oAuthCallbackUri: z.string().optional(),
|
|
9107
9111
|
});
|
|
9108
9112
|
const ConnectorOptions = z.record(z.string(), ConnectorOption);
|
|
9109
9113
|
const WritableConnectorVersionData = ConnectorAuthWithFunctions.extend({
|
|
@@ -10256,6 +10260,9 @@ const FindActionRunLogsQuery = PaginationQuery.extend({
|
|
|
10256
10260
|
.meta({
|
|
10257
10261
|
filterTitle: 'Status',
|
|
10258
10262
|
}),
|
|
10263
|
+
externalAppId: z.string().optional().meta({
|
|
10264
|
+
hidden: true,
|
|
10265
|
+
}),
|
|
10259
10266
|
from: z
|
|
10260
10267
|
.string()
|
|
10261
10268
|
.optional()
|
|
@@ -10296,6 +10303,13 @@ const FindConnectionsQuery = PaginationQuery.merge(SearchQuery)
|
|
|
10296
10303
|
.meta({
|
|
10297
10304
|
filterTitle: 'Connector',
|
|
10298
10305
|
}),
|
|
10306
|
+
externalAppId: z
|
|
10307
|
+
.string()
|
|
10308
|
+
.optional()
|
|
10309
|
+
.meta({
|
|
10310
|
+
filterTitle: 'External App',
|
|
10311
|
+
referenceElementType: WorkspaceElementType.App,
|
|
10312
|
+
}),
|
|
10299
10313
|
disconnected: zodBooleanCoercion()
|
|
10300
10314
|
.optional()
|
|
10301
10315
|
.meta({
|
|
@@ -10316,10 +10330,6 @@ const FindConnectionsQuery = PaginationQuery.merge(SearchQuery)
|
|
|
10316
10330
|
.string()
|
|
10317
10331
|
.optional()
|
|
10318
10332
|
.meta({ hidden: true }),
|
|
10319
|
-
externalAppId: z.string().optional().meta({
|
|
10320
|
-
filterTitle: 'External App',
|
|
10321
|
-
referenceElementType: WorkspaceElementType.App,
|
|
10322
|
-
}),
|
|
10323
10333
|
integrationKey: z
|
|
10324
10334
|
.string()
|
|
10325
10335
|
.optional()
|
|
@@ -10442,6 +10452,13 @@ const DataSourceInstanceApiResponse = DataSourceApiResponse;
|
|
|
10442
10452
|
const FindDataSourcesQuery = FindIntegrationLevelMembraneInterfaceQuery.omit({ parentId: true }).extend({
|
|
10443
10453
|
dataSourceId: z.string().optional(),
|
|
10444
10454
|
universalDataSourceId: z.string().optional(),
|
|
10455
|
+
externalAppId: z
|
|
10456
|
+
.string()
|
|
10457
|
+
.optional()
|
|
10458
|
+
.meta({
|
|
10459
|
+
filterTitle: 'External App',
|
|
10460
|
+
referenceElementType: WorkspaceElementType.App,
|
|
10461
|
+
}),
|
|
10445
10462
|
});
|
|
10446
10463
|
const FindDataSourceInstancesQuery = FindDataSourcesQuery;
|
|
10447
10464
|
const CreateDataSourceRequest = DataSourceEditableProperties;
|
|
@@ -10525,6 +10542,13 @@ const FlowInstanceApiResponse = FlowApiResponse;
|
|
|
10525
10542
|
const FindFlowsQuery = FindIntegrationLevelMembraneInterfaceQuery.omit({ parentId: true }).extend({
|
|
10526
10543
|
flowId: z.string().optional(),
|
|
10527
10544
|
universalFlowId: z.string().optional(),
|
|
10545
|
+
externalAppId: z
|
|
10546
|
+
.string()
|
|
10547
|
+
.optional()
|
|
10548
|
+
.meta({
|
|
10549
|
+
filterTitle: 'External App',
|
|
10550
|
+
referenceElementType: WorkspaceElementType.App,
|
|
10551
|
+
}),
|
|
10528
10552
|
});
|
|
10529
10553
|
const CreateFlowRequest = FlowEditableProperties;
|
|
10530
10554
|
const UpdateFlowRequest = CreateFlowRequest.extend({}).partial();
|
|
@@ -10602,6 +10626,9 @@ const FindFlowRunsQuery = PaginationQuery.extend({
|
|
|
10602
10626
|
filterTitle: 'Connection',
|
|
10603
10627
|
referenceElementType: WorkspaceElementType.Connection,
|
|
10604
10628
|
}),
|
|
10629
|
+
externalAppId: z.string().optional().meta({
|
|
10630
|
+
hidden: true,
|
|
10631
|
+
}),
|
|
10605
10632
|
from: z
|
|
10606
10633
|
.string()
|
|
10607
10634
|
.optional()
|
|
@@ -10764,6 +10791,13 @@ const FieldMappingInstanceApiResponse = FieldMappingApiResponse;
|
|
|
10764
10791
|
const FindFieldMappingsQuery = FindIntegrationLevelMembraneInterfaceQuery.omit({ parentId: true }).extend({
|
|
10765
10792
|
fieldMappingId: z.string().optional(),
|
|
10766
10793
|
universalFieldMappingId: z.string().optional(),
|
|
10794
|
+
externalAppId: z
|
|
10795
|
+
.string()
|
|
10796
|
+
.optional()
|
|
10797
|
+
.meta({
|
|
10798
|
+
filterTitle: 'External App',
|
|
10799
|
+
referenceElementType: WorkspaceElementType.App,
|
|
10800
|
+
}),
|
|
10767
10801
|
});
|
|
10768
10802
|
const FindFieldMappingInstancesQuery = FindFieldMappingsQuery;
|
|
10769
10803
|
const CreateFieldMappingRequest = FieldMappingEditableProperties;
|
|
@@ -11035,6 +11069,9 @@ const ListExternalEventLogRecordsQuery = PaginationQuery.extend({
|
|
|
11035
11069
|
.meta({
|
|
11036
11070
|
filterTitle: 'Status',
|
|
11037
11071
|
}),
|
|
11072
|
+
externalAppId: z.string().optional().meta({
|
|
11073
|
+
hidden: true,
|
|
11074
|
+
}),
|
|
11038
11075
|
from: z
|
|
11039
11076
|
.string()
|
|
11040
11077
|
.optional()
|
|
@@ -11124,6 +11161,9 @@ const FindExternalEventPullsQuery = PaginationQuery.extend({
|
|
|
11124
11161
|
.meta({
|
|
11125
11162
|
filterTitle: 'Status',
|
|
11126
11163
|
}),
|
|
11164
|
+
externalAppId: z.string().optional().meta({
|
|
11165
|
+
hidden: true,
|
|
11166
|
+
}),
|
|
11127
11167
|
from: z
|
|
11128
11168
|
.string()
|
|
11129
11169
|
.optional()
|
|
@@ -11171,6 +11211,9 @@ const ListExternalEventSubscriptionsQuery = PaginationQuery.merge(IncludeArchive
|
|
|
11171
11211
|
filterTitle: 'Integration',
|
|
11172
11212
|
referenceElementType: WorkspaceElementType.Integration,
|
|
11173
11213
|
}),
|
|
11214
|
+
externalAppId: z.string().optional().meta({
|
|
11215
|
+
hidden: true,
|
|
11216
|
+
}),
|
|
11174
11217
|
});
|
|
11175
11218
|
const ExternalEventSubscriptionApiResponse = BaseExternalEventSubscription.extend({
|
|
11176
11219
|
user: BaseCustomer.optional(),
|
|
@@ -11253,6 +11296,9 @@ const ListExternalApiLogsQuery = PaginationQuery.extend({
|
|
|
11253
11296
|
filterTitle: 'Status',
|
|
11254
11297
|
isFlag: true,
|
|
11255
11298
|
}),
|
|
11299
|
+
externalAppId: z.string().optional().meta({
|
|
11300
|
+
hidden: true,
|
|
11301
|
+
}),
|
|
11256
11302
|
from: z
|
|
11257
11303
|
.string()
|
|
11258
11304
|
.optional()
|
|
@@ -11277,6 +11323,7 @@ const ExternalApiLogApiResponse = z.object({
|
|
|
11277
11323
|
customerId: z.string(),
|
|
11278
11324
|
integrationId: z.string(),
|
|
11279
11325
|
connectionId: z.string(),
|
|
11326
|
+
externalAppId: z.string().optional(),
|
|
11280
11327
|
statusCode: z.number(),
|
|
11281
11328
|
isSuccess: z.boolean(),
|
|
11282
11329
|
s3Uri: z.string(),
|
|
@@ -11316,6 +11363,9 @@ const ListIncomingWebhooksQuery = PaginationQuery.extend({
|
|
|
11316
11363
|
.meta({
|
|
11317
11364
|
filterTitle: 'Status',
|
|
11318
11365
|
}),
|
|
11366
|
+
externalAppId: z.string().optional().meta({
|
|
11367
|
+
hidden: true,
|
|
11368
|
+
}),
|
|
11319
11369
|
from: z
|
|
11320
11370
|
.string()
|
|
11321
11371
|
.optional()
|
|
@@ -11338,6 +11388,7 @@ const IncomingWebhookApiResponse = z.object({
|
|
|
11338
11388
|
customerId: z.string(),
|
|
11339
11389
|
integrationId: z.string(),
|
|
11340
11390
|
connectionId: z.string(),
|
|
11391
|
+
externalAppId: z.string().optional(),
|
|
11341
11392
|
subscriptionId: z.string(),
|
|
11342
11393
|
userId: z.string(),
|
|
11343
11394
|
uuid: z.string(),
|
|
@@ -11351,12 +11402,14 @@ const IncomingWebhookApiResponse = z.object({
|
|
|
11351
11402
|
|
|
11352
11403
|
const CreateConnectedProductRequest = z.object({
|
|
11353
11404
|
name: z.string(),
|
|
11405
|
+
key: z.string().optional(),
|
|
11354
11406
|
type: ConnectedProductType,
|
|
11355
11407
|
audience: ConnectedProductAudience.optional(),
|
|
11356
11408
|
parameters: AiAgentParameters.optional(),
|
|
11357
11409
|
});
|
|
11358
11410
|
const UpdateConnectedProductRequest = z.object({
|
|
11359
11411
|
name: z.string().optional(),
|
|
11412
|
+
key: z.string().optional(),
|
|
11360
11413
|
type: ConnectedProductType.optional(),
|
|
11361
11414
|
audience: ConnectedProductAudience.optional(),
|
|
11362
11415
|
parameters: AiAgentParameters.optional(),
|
|
@@ -11365,7 +11418,6 @@ const FindConnectedProductsQuery = z
|
|
|
11365
11418
|
.object({
|
|
11366
11419
|
type: ConnectedProductType.optional(),
|
|
11367
11420
|
audience: ConnectedProductAudience.optional(),
|
|
11368
|
-
key: z.string().optional(),
|
|
11369
11421
|
})
|
|
11370
11422
|
.merge(PaginationQuery)
|
|
11371
11423
|
.merge(SearchQuery)
|
|
@@ -11691,6 +11743,26 @@ const WorkspaceElementSpecs = {
|
|
|
11691
11743
|
apiPath: 'customers',
|
|
11692
11744
|
name: 'Customer',
|
|
11693
11745
|
namePlural: 'Customers',
|
|
11746
|
+
relatedIntegrationLayerElements: [
|
|
11747
|
+
WorkspaceElementType.Connection,
|
|
11748
|
+
WorkspaceElementType.Action,
|
|
11749
|
+
WorkspaceElementType.Flow,
|
|
11750
|
+
WorkspaceElementType.ExternalEventSubscription,
|
|
11751
|
+
WorkspaceElementType.AppEventSubscription,
|
|
11752
|
+
WorkspaceElementType.DataSource,
|
|
11753
|
+
WorkspaceElementType.FieldMapping,
|
|
11754
|
+
WorkspaceElementType.AppDataSchemaInstance,
|
|
11755
|
+
WorkspaceElementType.DataLinkTableInstance,
|
|
11756
|
+
],
|
|
11757
|
+
relatedActivityLogElements: [
|
|
11758
|
+
WorkspaceElementType.FlowRun,
|
|
11759
|
+
WorkspaceElementType.ActionRunLogRecord,
|
|
11760
|
+
WorkspaceElementType.ExternalApiLogRecord,
|
|
11761
|
+
WorkspaceElementType.IncomingWebhookLogRecord,
|
|
11762
|
+
WorkspaceElementType.ExternalEventLogRecord,
|
|
11763
|
+
WorkspaceElementType.ExternalEventPull,
|
|
11764
|
+
WorkspaceElementType.AppEventLogRecord,
|
|
11765
|
+
],
|
|
11694
11766
|
},
|
|
11695
11767
|
[WorkspaceElementType.App]: {
|
|
11696
11768
|
type: WorkspaceElementType.App,
|
|
@@ -11699,6 +11771,21 @@ const WorkspaceElementSpecs = {
|
|
|
11699
11771
|
namePlural: 'Apps',
|
|
11700
11772
|
hasKey: true,
|
|
11701
11773
|
hasPublicLayer: true,
|
|
11774
|
+
relatedIntegrationLayerElements: [
|
|
11775
|
+
WorkspaceElementType.Connection,
|
|
11776
|
+
WorkspaceElementType.Action,
|
|
11777
|
+
WorkspaceElementType.Flow,
|
|
11778
|
+
WorkspaceElementType.DataSource,
|
|
11779
|
+
WorkspaceElementType.FieldMapping,
|
|
11780
|
+
],
|
|
11781
|
+
relatedActivityLogElements: [
|
|
11782
|
+
WorkspaceElementType.FlowRun,
|
|
11783
|
+
WorkspaceElementType.ActionRunLogRecord,
|
|
11784
|
+
WorkspaceElementType.ExternalApiLogRecord,
|
|
11785
|
+
WorkspaceElementType.IncomingWebhookLogRecord,
|
|
11786
|
+
WorkspaceElementType.ExternalEventLogRecord,
|
|
11787
|
+
WorkspaceElementType.ExternalEventPull,
|
|
11788
|
+
],
|
|
11702
11789
|
},
|
|
11703
11790
|
[WorkspaceElementType.Integration]: {
|
|
11704
11791
|
type: WorkspaceElementType.Integration,
|
|
@@ -11708,6 +11795,27 @@ const WorkspaceElementSpecs = {
|
|
|
11708
11795
|
editablePropertiesSchema: IntegrationEditableProperties,
|
|
11709
11796
|
exportPropertiesSchema: IntegrationExportProperties,
|
|
11710
11797
|
hasKey: true,
|
|
11798
|
+
relatedIntegrationLayerElements: [
|
|
11799
|
+
WorkspaceElementType.Connection,
|
|
11800
|
+
WorkspaceElementType.Package,
|
|
11801
|
+
WorkspaceElementType.Action,
|
|
11802
|
+
WorkspaceElementType.Flow,
|
|
11803
|
+
WorkspaceElementType.ExternalEventSubscription,
|
|
11804
|
+
WorkspaceElementType.AppEventSubscription,
|
|
11805
|
+
WorkspaceElementType.DataSource,
|
|
11806
|
+
WorkspaceElementType.FieldMapping,
|
|
11807
|
+
WorkspaceElementType.AppDataSchemaInstance,
|
|
11808
|
+
WorkspaceElementType.DataLinkTableInstance,
|
|
11809
|
+
],
|
|
11810
|
+
relatedActivityLogElements: [
|
|
11811
|
+
WorkspaceElementType.FlowRun,
|
|
11812
|
+
WorkspaceElementType.ActionRunLogRecord,
|
|
11813
|
+
WorkspaceElementType.ExternalApiLogRecord,
|
|
11814
|
+
WorkspaceElementType.IncomingWebhookLogRecord,
|
|
11815
|
+
WorkspaceElementType.ExternalEventLogRecord,
|
|
11816
|
+
WorkspaceElementType.ExternalEventPull,
|
|
11817
|
+
WorkspaceElementType.AppEventLogRecord,
|
|
11818
|
+
],
|
|
11711
11819
|
},
|
|
11712
11820
|
[WorkspaceElementType.Connector]: {
|
|
11713
11821
|
type: WorkspaceElementType.Connector,
|
|
@@ -11726,6 +11834,26 @@ const WorkspaceElementSpecs = {
|
|
|
11726
11834
|
exportPropertiesSchema: ConnectionExportProperties,
|
|
11727
11835
|
hasKey: false,
|
|
11728
11836
|
hasUuid: false,
|
|
11837
|
+
statsKey: 'connections',
|
|
11838
|
+
relatedIntegrationLayerElements: [
|
|
11839
|
+
WorkspaceElementType.Action,
|
|
11840
|
+
WorkspaceElementType.Flow,
|
|
11841
|
+
WorkspaceElementType.ExternalEventSubscription,
|
|
11842
|
+
WorkspaceElementType.AppEventSubscription,
|
|
11843
|
+
WorkspaceElementType.DataSource,
|
|
11844
|
+
WorkspaceElementType.FieldMapping,
|
|
11845
|
+
WorkspaceElementType.AppDataSchemaInstance,
|
|
11846
|
+
WorkspaceElementType.DataLinkTableInstance,
|
|
11847
|
+
],
|
|
11848
|
+
relatedActivityLogElements: [
|
|
11849
|
+
WorkspaceElementType.FlowRun,
|
|
11850
|
+
WorkspaceElementType.ActionRunLogRecord,
|
|
11851
|
+
WorkspaceElementType.ExternalApiLogRecord,
|
|
11852
|
+
WorkspaceElementType.IncomingWebhookLogRecord,
|
|
11853
|
+
WorkspaceElementType.ExternalEventLogRecord,
|
|
11854
|
+
WorkspaceElementType.ExternalEventPull,
|
|
11855
|
+
WorkspaceElementType.AppEventLogRecord,
|
|
11856
|
+
],
|
|
11729
11857
|
},
|
|
11730
11858
|
[WorkspaceElementType.Package]: {
|
|
11731
11859
|
type: WorkspaceElementType.Package,
|
|
@@ -11742,6 +11870,7 @@ const WorkspaceElementSpecs = {
|
|
|
11742
11870
|
hasParentChildRelationship: true,
|
|
11743
11871
|
hasPublicLayer: true,
|
|
11744
11872
|
isProOnly: true,
|
|
11873
|
+
statsKey: 'packages',
|
|
11745
11874
|
},
|
|
11746
11875
|
[WorkspaceElementType.ActionInstance]: {
|
|
11747
11876
|
type: WorkspaceElementType.ActionInstance,
|
|
@@ -11768,12 +11897,14 @@ const WorkspaceElementSpecs = {
|
|
|
11768
11897
|
hasParentChildRelationship: true,
|
|
11769
11898
|
hasKey: true,
|
|
11770
11899
|
hasPublicLayer: true,
|
|
11900
|
+
statsKey: 'actions',
|
|
11771
11901
|
},
|
|
11772
11902
|
[WorkspaceElementType.ActionRunLogRecord]: {
|
|
11773
11903
|
type: WorkspaceElementType.ActionRunLogRecord,
|
|
11774
11904
|
apiPath: 'action-run-logs',
|
|
11775
11905
|
name: 'Action Run Log Record',
|
|
11776
11906
|
namePlural: 'Action Run Log Records',
|
|
11907
|
+
statsKey: 'actionRunLogs',
|
|
11777
11908
|
},
|
|
11778
11909
|
[WorkspaceElementType.Flow]: {
|
|
11779
11910
|
type: WorkspaceElementType.Flow,
|
|
@@ -11791,6 +11922,7 @@ const WorkspaceElementSpecs = {
|
|
|
11791
11922
|
hasParentChildRelationship: true,
|
|
11792
11923
|
hasKey: true,
|
|
11793
11924
|
isProOnly: true,
|
|
11925
|
+
statsKey: 'flows',
|
|
11794
11926
|
},
|
|
11795
11927
|
[WorkspaceElementType.FlowInstance]: {
|
|
11796
11928
|
type: WorkspaceElementType.FlowInstance,
|
|
@@ -11811,6 +11943,7 @@ const WorkspaceElementSpecs = {
|
|
|
11811
11943
|
name: 'Flow run',
|
|
11812
11944
|
namePlural: 'Flow runs',
|
|
11813
11945
|
isProOnly: true,
|
|
11946
|
+
statsKey: 'flowRuns',
|
|
11814
11947
|
},
|
|
11815
11948
|
[WorkspaceElementType.FieldMapping]: {
|
|
11816
11949
|
type: WorkspaceElementType.FieldMapping,
|
|
@@ -11828,6 +11961,7 @@ const WorkspaceElementSpecs = {
|
|
|
11828
11961
|
hasParentChildRelationship: true,
|
|
11829
11962
|
hasKey: true,
|
|
11830
11963
|
isProOnly: true,
|
|
11964
|
+
statsKey: 'fieldMappings',
|
|
11831
11965
|
},
|
|
11832
11966
|
[WorkspaceElementType.FieldMappingInstance]: {
|
|
11833
11967
|
type: WorkspaceElementType.FieldMappingInstance,
|
|
@@ -11857,6 +11991,7 @@ const WorkspaceElementSpecs = {
|
|
|
11857
11991
|
hasParentChildRelationship: true,
|
|
11858
11992
|
hasKey: true,
|
|
11859
11993
|
isProOnly: true,
|
|
11994
|
+
statsKey: 'dataSources',
|
|
11860
11995
|
},
|
|
11861
11996
|
[WorkspaceElementType.DataSourceInstance]: {
|
|
11862
11997
|
type: WorkspaceElementType.DataSourceInstance,
|
|
@@ -11891,6 +12026,7 @@ const WorkspaceElementSpecs = {
|
|
|
11891
12026
|
parentFieldKey: 'dataLinkTableId',
|
|
11892
12027
|
isMembraneInterface: true,
|
|
11893
12028
|
isProOnly: true,
|
|
12029
|
+
statsKey: 'dataLinkTableInstances',
|
|
11894
12030
|
},
|
|
11895
12031
|
[WorkspaceElementType.AppEventType]: {
|
|
11896
12032
|
type: WorkspaceElementType.AppEventType,
|
|
@@ -11911,6 +12047,7 @@ const WorkspaceElementSpecs = {
|
|
|
11911
12047
|
namePlural: 'App Event Subscriptions',
|
|
11912
12048
|
isMembraneInterface: true,
|
|
11913
12049
|
isProOnly: true,
|
|
12050
|
+
statsKey: 'appEventSubscriptions',
|
|
11914
12051
|
},
|
|
11915
12052
|
[WorkspaceElementType.AppEventLogRecord]: {
|
|
11916
12053
|
type: WorkspaceElementType.AppEventLogRecord,
|
|
@@ -11918,6 +12055,7 @@ const WorkspaceElementSpecs = {
|
|
|
11918
12055
|
name: 'App Event Log Record',
|
|
11919
12056
|
namePlural: 'App Event Log Records',
|
|
11920
12057
|
isProOnly: true,
|
|
12058
|
+
statsKey: 'appEvents',
|
|
11921
12059
|
},
|
|
11922
12060
|
[WorkspaceElementType.AppDataSchema]: {
|
|
11923
12061
|
type: WorkspaceElementType.AppDataSchema,
|
|
@@ -11939,6 +12077,7 @@ const WorkspaceElementSpecs = {
|
|
|
11939
12077
|
parentFieldKey: 'appDataSchemaId',
|
|
11940
12078
|
isMembraneInterface: true,
|
|
11941
12079
|
isProOnly: true,
|
|
12080
|
+
statsKey: 'appDataSchemaInstances',
|
|
11942
12081
|
},
|
|
11943
12082
|
[WorkspaceElementType.ExternalEventSubscription]: {
|
|
11944
12083
|
type: WorkspaceElementType.ExternalEventSubscription,
|
|
@@ -11947,6 +12086,7 @@ const WorkspaceElementSpecs = {
|
|
|
11947
12086
|
namePlural: 'External Event Subscriptions',
|
|
11948
12087
|
isMembraneInterface: true,
|
|
11949
12088
|
isProOnly: true,
|
|
12089
|
+
statsKey: 'externalEventSubscriptions',
|
|
11950
12090
|
},
|
|
11951
12091
|
[WorkspaceElementType.ExternalEventLogRecord]: {
|
|
11952
12092
|
type: WorkspaceElementType.ExternalEventLogRecord,
|
|
@@ -11954,6 +12094,7 @@ const WorkspaceElementSpecs = {
|
|
|
11954
12094
|
name: 'External Event Log Record',
|
|
11955
12095
|
namePlural: 'External Event Log Records',
|
|
11956
12096
|
isProOnly: true,
|
|
12097
|
+
statsKey: 'externalEvents',
|
|
11957
12098
|
},
|
|
11958
12099
|
[WorkspaceElementType.ExternalEventPull]: {
|
|
11959
12100
|
type: WorkspaceElementType.ExternalEventPull,
|
|
@@ -11961,6 +12102,21 @@ const WorkspaceElementSpecs = {
|
|
|
11961
12102
|
name: 'External Event Pull',
|
|
11962
12103
|
namePlural: 'External Event Pulls',
|
|
11963
12104
|
isProOnly: true,
|
|
12105
|
+
statsKey: 'externalEventPulls',
|
|
12106
|
+
},
|
|
12107
|
+
[WorkspaceElementType.ExternalApiLogRecord]: {
|
|
12108
|
+
type: WorkspaceElementType.ExternalApiLogRecord,
|
|
12109
|
+
apiPath: 'external-api-logs',
|
|
12110
|
+
name: 'External API Log Record',
|
|
12111
|
+
namePlural: 'External API Log Records',
|
|
12112
|
+
statsKey: 'externalApiLogs',
|
|
12113
|
+
},
|
|
12114
|
+
[WorkspaceElementType.IncomingWebhookLogRecord]: {
|
|
12115
|
+
type: WorkspaceElementType.IncomingWebhookLogRecord,
|
|
12116
|
+
apiPath: 'incoming-webhooks',
|
|
12117
|
+
name: 'Incoming Webhook Log Record',
|
|
12118
|
+
namePlural: 'Incoming Webhook Log Records',
|
|
12119
|
+
statsKey: 'externalWebhookLogs',
|
|
11964
12120
|
},
|
|
11965
12121
|
[WorkspaceElementType.Screen]: {
|
|
11966
12122
|
type: WorkspaceElementType.Screen,
|
|
@@ -12364,20 +12520,21 @@ const StatsFilterQuery = z.object({
|
|
|
12364
12520
|
tenantId: z.string().optional(),
|
|
12365
12521
|
integrationId: z.string().optional(),
|
|
12366
12522
|
connectionId: z.string().optional(),
|
|
12523
|
+
externalAppId: z.string().optional(),
|
|
12367
12524
|
});
|
|
12368
12525
|
const ActivityStatsQuery = StatsFilterQuery.extend({
|
|
12369
12526
|
startDatetime: z.string().datetime({ offset: true }),
|
|
12527
|
+
elementType: z.enum(WorkspaceElementType).optional(),
|
|
12528
|
+
});
|
|
12529
|
+
const IntegrationLayerStatsQuery = StatsFilterQuery.extend({
|
|
12530
|
+
elementType: z.enum(WorkspaceElementType).optional(),
|
|
12370
12531
|
});
|
|
12371
|
-
const IntegrationLayerStatsQuery = StatsFilterQuery;
|
|
12372
12532
|
const ActionRunsStatsQuery = z.object({
|
|
12373
|
-
actionId: z.string()
|
|
12374
|
-
connectionActionId: z.string().optional(),
|
|
12533
|
+
actionId: z.string(),
|
|
12375
12534
|
startDatetime: z.string().datetime({ offset: true }),
|
|
12376
12535
|
});
|
|
12377
12536
|
const FlowRunsStatsQuery = z.object({
|
|
12378
|
-
|
|
12379
|
-
connectionFlowId: z.string().optional(),
|
|
12380
|
-
universalFlowId: z.string().optional(),
|
|
12537
|
+
flowId: z.string(),
|
|
12381
12538
|
startDatetime: z.string().datetime({ offset: true }),
|
|
12382
12539
|
});
|
|
12383
12540
|
const WORKSPACE_ELEMENTS_STATS_COLLECTIONS = [
|
|
@@ -12938,6 +13095,7 @@ const WORKSPACE_SIZE_LIMITS = [
|
|
|
12938
13095
|
const EDITABLE_LIMITS = [
|
|
12939
13096
|
'parallelApiRequestsPerCustomer',
|
|
12940
13097
|
'parallelBackgroundJobsPerCustomer',
|
|
13098
|
+
'parallelCustomCodeRunsPerCustomer',
|
|
12941
13099
|
'apiRequestsPerCustomerPerSecond',
|
|
12942
13100
|
'apiRequestsPerCustomerPerHour',
|
|
12943
13101
|
'externalEventsPerCustomerPerDay',
|
|
@@ -15311,6 +15469,7 @@ const AgentSession = z.object({
|
|
|
15311
15469
|
hasWorker: z.boolean(),
|
|
15312
15470
|
isExternal: z.boolean().optional(),
|
|
15313
15471
|
agentName: z.enum(AgentName).optional(),
|
|
15472
|
+
output: z.record(z.string(), z.unknown()).optional(),
|
|
15314
15473
|
createdAt: z.iso.datetime(),
|
|
15315
15474
|
updatedAt: z.iso.datetime(),
|
|
15316
15475
|
});
|
|
@@ -15338,6 +15497,7 @@ const PatchAgentSessionSchema = z.object({
|
|
|
15338
15497
|
cost: z.number().optional(),
|
|
15339
15498
|
error: ErrorDataSchema.optional(),
|
|
15340
15499
|
opencodeSessionUuid: z.string().optional(),
|
|
15500
|
+
output: z.record(z.string(), z.unknown()).optional(),
|
|
15341
15501
|
status: z.enum(AgentSessionStatus).optional(),
|
|
15342
15502
|
});
|
|
15343
15503
|
|
|
@@ -15738,6 +15898,17 @@ class UI {
|
|
|
15738
15898
|
});
|
|
15739
15899
|
});
|
|
15740
15900
|
}
|
|
15901
|
+
async UNSAFE_agentSession(options) {
|
|
15902
|
+
const { url, postData } = await this.client.getScreensPostData('agent-session', {
|
|
15903
|
+
sessionId: options.sessionId,
|
|
15904
|
+
theme: options.theme,
|
|
15905
|
+
});
|
|
15906
|
+
return new Promise((resolve) => {
|
|
15907
|
+
return openIframeWithPost(url, postData, {
|
|
15908
|
+
onClose: () => resolve(),
|
|
15909
|
+
});
|
|
15910
|
+
});
|
|
15911
|
+
}
|
|
15741
15912
|
}
|
|
15742
15913
|
|
|
15743
15914
|
class MembraneClient extends MembraneApiClient {
|