@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.node.mjs
CHANGED
|
@@ -3473,6 +3473,8 @@ var WorkspaceElementType;
|
|
|
3473
3473
|
WorkspaceElementType["ExternalEventPull"] = "external-event-pull";
|
|
3474
3474
|
WorkspaceElementType["Screen"] = "screen";
|
|
3475
3475
|
WorkspaceElementType["ActionRunLogRecord"] = "action-run-log-record";
|
|
3476
|
+
WorkspaceElementType["ExternalApiLogRecord"] = "external-api-log-record";
|
|
3477
|
+
WorkspaceElementType["IncomingWebhookLogRecord"] = "incoming-webhook-log-record";
|
|
3476
3478
|
WorkspaceElementType["ConnectedProduct"] = "connected-product";
|
|
3477
3479
|
})(WorkspaceElementType || (WorkspaceElementType = {}));
|
|
3478
3480
|
var WorkspaceEventType;
|
|
@@ -3671,6 +3673,7 @@ const ActivityLogRecord = TenantLayerElement.extend({
|
|
|
3671
3673
|
id: z.string(),
|
|
3672
3674
|
integrationId: z.string().optional(),
|
|
3673
3675
|
connectionId: z.string().optional(),
|
|
3676
|
+
externalAppId: z.string().optional(),
|
|
3674
3677
|
});
|
|
3675
3678
|
const WorkspaceElementSearchQuery = z.object({
|
|
3676
3679
|
q: z.string().min(1).max(200),
|
|
@@ -9106,6 +9109,7 @@ const GeneratedConnectorOption = z.object({
|
|
|
9106
9109
|
description: z.string().optional(),
|
|
9107
9110
|
inputSchema: DataSchema.optional(),
|
|
9108
9111
|
connectorParametersSchema: DataSchema.optional(),
|
|
9112
|
+
oAuthCallbackUri: z.string().optional(),
|
|
9109
9113
|
});
|
|
9110
9114
|
const ConnectorOptions = z.record(z.string(), ConnectorOption);
|
|
9111
9115
|
const WritableConnectorVersionData = ConnectorAuthWithFunctions.extend({
|
|
@@ -10258,6 +10262,9 @@ const FindActionRunLogsQuery = PaginationQuery.extend({
|
|
|
10258
10262
|
.meta({
|
|
10259
10263
|
filterTitle: 'Status',
|
|
10260
10264
|
}),
|
|
10265
|
+
externalAppId: z.string().optional().meta({
|
|
10266
|
+
hidden: true,
|
|
10267
|
+
}),
|
|
10261
10268
|
from: z
|
|
10262
10269
|
.string()
|
|
10263
10270
|
.optional()
|
|
@@ -10298,6 +10305,13 @@ const FindConnectionsQuery = PaginationQuery.merge(SearchQuery)
|
|
|
10298
10305
|
.meta({
|
|
10299
10306
|
filterTitle: 'Connector',
|
|
10300
10307
|
}),
|
|
10308
|
+
externalAppId: z
|
|
10309
|
+
.string()
|
|
10310
|
+
.optional()
|
|
10311
|
+
.meta({
|
|
10312
|
+
filterTitle: 'External App',
|
|
10313
|
+
referenceElementType: WorkspaceElementType.App,
|
|
10314
|
+
}),
|
|
10301
10315
|
disconnected: zodBooleanCoercion()
|
|
10302
10316
|
.optional()
|
|
10303
10317
|
.meta({
|
|
@@ -10318,10 +10332,6 @@ const FindConnectionsQuery = PaginationQuery.merge(SearchQuery)
|
|
|
10318
10332
|
.string()
|
|
10319
10333
|
.optional()
|
|
10320
10334
|
.meta({ hidden: true }),
|
|
10321
|
-
externalAppId: z.string().optional().meta({
|
|
10322
|
-
filterTitle: 'External App',
|
|
10323
|
-
referenceElementType: WorkspaceElementType.App,
|
|
10324
|
-
}),
|
|
10325
10335
|
integrationKey: z
|
|
10326
10336
|
.string()
|
|
10327
10337
|
.optional()
|
|
@@ -10444,6 +10454,13 @@ const DataSourceInstanceApiResponse = DataSourceApiResponse;
|
|
|
10444
10454
|
const FindDataSourcesQuery = FindIntegrationLevelMembraneInterfaceQuery.omit({ parentId: true }).extend({
|
|
10445
10455
|
dataSourceId: z.string().optional(),
|
|
10446
10456
|
universalDataSourceId: z.string().optional(),
|
|
10457
|
+
externalAppId: z
|
|
10458
|
+
.string()
|
|
10459
|
+
.optional()
|
|
10460
|
+
.meta({
|
|
10461
|
+
filterTitle: 'External App',
|
|
10462
|
+
referenceElementType: WorkspaceElementType.App,
|
|
10463
|
+
}),
|
|
10447
10464
|
});
|
|
10448
10465
|
const FindDataSourceInstancesQuery = FindDataSourcesQuery;
|
|
10449
10466
|
const CreateDataSourceRequest = DataSourceEditableProperties;
|
|
@@ -10527,6 +10544,13 @@ const FlowInstanceApiResponse = FlowApiResponse;
|
|
|
10527
10544
|
const FindFlowsQuery = FindIntegrationLevelMembraneInterfaceQuery.omit({ parentId: true }).extend({
|
|
10528
10545
|
flowId: z.string().optional(),
|
|
10529
10546
|
universalFlowId: z.string().optional(),
|
|
10547
|
+
externalAppId: z
|
|
10548
|
+
.string()
|
|
10549
|
+
.optional()
|
|
10550
|
+
.meta({
|
|
10551
|
+
filterTitle: 'External App',
|
|
10552
|
+
referenceElementType: WorkspaceElementType.App,
|
|
10553
|
+
}),
|
|
10530
10554
|
});
|
|
10531
10555
|
const CreateFlowRequest = FlowEditableProperties;
|
|
10532
10556
|
const UpdateFlowRequest = CreateFlowRequest.extend({}).partial();
|
|
@@ -10604,6 +10628,9 @@ const FindFlowRunsQuery = PaginationQuery.extend({
|
|
|
10604
10628
|
filterTitle: 'Connection',
|
|
10605
10629
|
referenceElementType: WorkspaceElementType.Connection,
|
|
10606
10630
|
}),
|
|
10631
|
+
externalAppId: z.string().optional().meta({
|
|
10632
|
+
hidden: true,
|
|
10633
|
+
}),
|
|
10607
10634
|
from: z
|
|
10608
10635
|
.string()
|
|
10609
10636
|
.optional()
|
|
@@ -10766,6 +10793,13 @@ const FieldMappingInstanceApiResponse = FieldMappingApiResponse;
|
|
|
10766
10793
|
const FindFieldMappingsQuery = FindIntegrationLevelMembraneInterfaceQuery.omit({ parentId: true }).extend({
|
|
10767
10794
|
fieldMappingId: z.string().optional(),
|
|
10768
10795
|
universalFieldMappingId: z.string().optional(),
|
|
10796
|
+
externalAppId: z
|
|
10797
|
+
.string()
|
|
10798
|
+
.optional()
|
|
10799
|
+
.meta({
|
|
10800
|
+
filterTitle: 'External App',
|
|
10801
|
+
referenceElementType: WorkspaceElementType.App,
|
|
10802
|
+
}),
|
|
10769
10803
|
});
|
|
10770
10804
|
const FindFieldMappingInstancesQuery = FindFieldMappingsQuery;
|
|
10771
10805
|
const CreateFieldMappingRequest = FieldMappingEditableProperties;
|
|
@@ -11037,6 +11071,9 @@ const ListExternalEventLogRecordsQuery = PaginationQuery.extend({
|
|
|
11037
11071
|
.meta({
|
|
11038
11072
|
filterTitle: 'Status',
|
|
11039
11073
|
}),
|
|
11074
|
+
externalAppId: z.string().optional().meta({
|
|
11075
|
+
hidden: true,
|
|
11076
|
+
}),
|
|
11040
11077
|
from: z
|
|
11041
11078
|
.string()
|
|
11042
11079
|
.optional()
|
|
@@ -11126,6 +11163,9 @@ const FindExternalEventPullsQuery = PaginationQuery.extend({
|
|
|
11126
11163
|
.meta({
|
|
11127
11164
|
filterTitle: 'Status',
|
|
11128
11165
|
}),
|
|
11166
|
+
externalAppId: z.string().optional().meta({
|
|
11167
|
+
hidden: true,
|
|
11168
|
+
}),
|
|
11129
11169
|
from: z
|
|
11130
11170
|
.string()
|
|
11131
11171
|
.optional()
|
|
@@ -11173,6 +11213,9 @@ const ListExternalEventSubscriptionsQuery = PaginationQuery.merge(IncludeArchive
|
|
|
11173
11213
|
filterTitle: 'Integration',
|
|
11174
11214
|
referenceElementType: WorkspaceElementType.Integration,
|
|
11175
11215
|
}),
|
|
11216
|
+
externalAppId: z.string().optional().meta({
|
|
11217
|
+
hidden: true,
|
|
11218
|
+
}),
|
|
11176
11219
|
});
|
|
11177
11220
|
const ExternalEventSubscriptionApiResponse = BaseExternalEventSubscription.extend({
|
|
11178
11221
|
user: BaseCustomer.optional(),
|
|
@@ -11255,6 +11298,9 @@ const ListExternalApiLogsQuery = PaginationQuery.extend({
|
|
|
11255
11298
|
filterTitle: 'Status',
|
|
11256
11299
|
isFlag: true,
|
|
11257
11300
|
}),
|
|
11301
|
+
externalAppId: z.string().optional().meta({
|
|
11302
|
+
hidden: true,
|
|
11303
|
+
}),
|
|
11258
11304
|
from: z
|
|
11259
11305
|
.string()
|
|
11260
11306
|
.optional()
|
|
@@ -11279,6 +11325,7 @@ const ExternalApiLogApiResponse = z.object({
|
|
|
11279
11325
|
customerId: z.string(),
|
|
11280
11326
|
integrationId: z.string(),
|
|
11281
11327
|
connectionId: z.string(),
|
|
11328
|
+
externalAppId: z.string().optional(),
|
|
11282
11329
|
statusCode: z.number(),
|
|
11283
11330
|
isSuccess: z.boolean(),
|
|
11284
11331
|
s3Uri: z.string(),
|
|
@@ -11318,6 +11365,9 @@ const ListIncomingWebhooksQuery = PaginationQuery.extend({
|
|
|
11318
11365
|
.meta({
|
|
11319
11366
|
filterTitle: 'Status',
|
|
11320
11367
|
}),
|
|
11368
|
+
externalAppId: z.string().optional().meta({
|
|
11369
|
+
hidden: true,
|
|
11370
|
+
}),
|
|
11321
11371
|
from: z
|
|
11322
11372
|
.string()
|
|
11323
11373
|
.optional()
|
|
@@ -11340,6 +11390,7 @@ const IncomingWebhookApiResponse = z.object({
|
|
|
11340
11390
|
customerId: z.string(),
|
|
11341
11391
|
integrationId: z.string(),
|
|
11342
11392
|
connectionId: z.string(),
|
|
11393
|
+
externalAppId: z.string().optional(),
|
|
11343
11394
|
subscriptionId: z.string(),
|
|
11344
11395
|
userId: z.string(),
|
|
11345
11396
|
uuid: z.string(),
|
|
@@ -11353,12 +11404,14 @@ const IncomingWebhookApiResponse = z.object({
|
|
|
11353
11404
|
|
|
11354
11405
|
const CreateConnectedProductRequest = z.object({
|
|
11355
11406
|
name: z.string(),
|
|
11407
|
+
key: z.string().optional(),
|
|
11356
11408
|
type: ConnectedProductType,
|
|
11357
11409
|
audience: ConnectedProductAudience.optional(),
|
|
11358
11410
|
parameters: AiAgentParameters.optional(),
|
|
11359
11411
|
});
|
|
11360
11412
|
const UpdateConnectedProductRequest = z.object({
|
|
11361
11413
|
name: z.string().optional(),
|
|
11414
|
+
key: z.string().optional(),
|
|
11362
11415
|
type: ConnectedProductType.optional(),
|
|
11363
11416
|
audience: ConnectedProductAudience.optional(),
|
|
11364
11417
|
parameters: AiAgentParameters.optional(),
|
|
@@ -11367,7 +11420,6 @@ const FindConnectedProductsQuery = z
|
|
|
11367
11420
|
.object({
|
|
11368
11421
|
type: ConnectedProductType.optional(),
|
|
11369
11422
|
audience: ConnectedProductAudience.optional(),
|
|
11370
|
-
key: z.string().optional(),
|
|
11371
11423
|
})
|
|
11372
11424
|
.merge(PaginationQuery)
|
|
11373
11425
|
.merge(SearchQuery)
|
|
@@ -11693,6 +11745,26 @@ const WorkspaceElementSpecs = {
|
|
|
11693
11745
|
apiPath: 'customers',
|
|
11694
11746
|
name: 'Customer',
|
|
11695
11747
|
namePlural: 'Customers',
|
|
11748
|
+
relatedIntegrationLayerElements: [
|
|
11749
|
+
WorkspaceElementType.Connection,
|
|
11750
|
+
WorkspaceElementType.Action,
|
|
11751
|
+
WorkspaceElementType.Flow,
|
|
11752
|
+
WorkspaceElementType.ExternalEventSubscription,
|
|
11753
|
+
WorkspaceElementType.AppEventSubscription,
|
|
11754
|
+
WorkspaceElementType.DataSource,
|
|
11755
|
+
WorkspaceElementType.FieldMapping,
|
|
11756
|
+
WorkspaceElementType.AppDataSchemaInstance,
|
|
11757
|
+
WorkspaceElementType.DataLinkTableInstance,
|
|
11758
|
+
],
|
|
11759
|
+
relatedActivityLogElements: [
|
|
11760
|
+
WorkspaceElementType.FlowRun,
|
|
11761
|
+
WorkspaceElementType.ActionRunLogRecord,
|
|
11762
|
+
WorkspaceElementType.ExternalApiLogRecord,
|
|
11763
|
+
WorkspaceElementType.IncomingWebhookLogRecord,
|
|
11764
|
+
WorkspaceElementType.ExternalEventLogRecord,
|
|
11765
|
+
WorkspaceElementType.ExternalEventPull,
|
|
11766
|
+
WorkspaceElementType.AppEventLogRecord,
|
|
11767
|
+
],
|
|
11696
11768
|
},
|
|
11697
11769
|
[WorkspaceElementType.App]: {
|
|
11698
11770
|
type: WorkspaceElementType.App,
|
|
@@ -11701,6 +11773,21 @@ const WorkspaceElementSpecs = {
|
|
|
11701
11773
|
namePlural: 'Apps',
|
|
11702
11774
|
hasKey: true,
|
|
11703
11775
|
hasPublicLayer: true,
|
|
11776
|
+
relatedIntegrationLayerElements: [
|
|
11777
|
+
WorkspaceElementType.Connection,
|
|
11778
|
+
WorkspaceElementType.Action,
|
|
11779
|
+
WorkspaceElementType.Flow,
|
|
11780
|
+
WorkspaceElementType.DataSource,
|
|
11781
|
+
WorkspaceElementType.FieldMapping,
|
|
11782
|
+
],
|
|
11783
|
+
relatedActivityLogElements: [
|
|
11784
|
+
WorkspaceElementType.FlowRun,
|
|
11785
|
+
WorkspaceElementType.ActionRunLogRecord,
|
|
11786
|
+
WorkspaceElementType.ExternalApiLogRecord,
|
|
11787
|
+
WorkspaceElementType.IncomingWebhookLogRecord,
|
|
11788
|
+
WorkspaceElementType.ExternalEventLogRecord,
|
|
11789
|
+
WorkspaceElementType.ExternalEventPull,
|
|
11790
|
+
],
|
|
11704
11791
|
},
|
|
11705
11792
|
[WorkspaceElementType.Integration]: {
|
|
11706
11793
|
type: WorkspaceElementType.Integration,
|
|
@@ -11710,6 +11797,27 @@ const WorkspaceElementSpecs = {
|
|
|
11710
11797
|
editablePropertiesSchema: IntegrationEditableProperties,
|
|
11711
11798
|
exportPropertiesSchema: IntegrationExportProperties,
|
|
11712
11799
|
hasKey: true,
|
|
11800
|
+
relatedIntegrationLayerElements: [
|
|
11801
|
+
WorkspaceElementType.Connection,
|
|
11802
|
+
WorkspaceElementType.Package,
|
|
11803
|
+
WorkspaceElementType.Action,
|
|
11804
|
+
WorkspaceElementType.Flow,
|
|
11805
|
+
WorkspaceElementType.ExternalEventSubscription,
|
|
11806
|
+
WorkspaceElementType.AppEventSubscription,
|
|
11807
|
+
WorkspaceElementType.DataSource,
|
|
11808
|
+
WorkspaceElementType.FieldMapping,
|
|
11809
|
+
WorkspaceElementType.AppDataSchemaInstance,
|
|
11810
|
+
WorkspaceElementType.DataLinkTableInstance,
|
|
11811
|
+
],
|
|
11812
|
+
relatedActivityLogElements: [
|
|
11813
|
+
WorkspaceElementType.FlowRun,
|
|
11814
|
+
WorkspaceElementType.ActionRunLogRecord,
|
|
11815
|
+
WorkspaceElementType.ExternalApiLogRecord,
|
|
11816
|
+
WorkspaceElementType.IncomingWebhookLogRecord,
|
|
11817
|
+
WorkspaceElementType.ExternalEventLogRecord,
|
|
11818
|
+
WorkspaceElementType.ExternalEventPull,
|
|
11819
|
+
WorkspaceElementType.AppEventLogRecord,
|
|
11820
|
+
],
|
|
11713
11821
|
},
|
|
11714
11822
|
[WorkspaceElementType.Connector]: {
|
|
11715
11823
|
type: WorkspaceElementType.Connector,
|
|
@@ -11728,6 +11836,26 @@ const WorkspaceElementSpecs = {
|
|
|
11728
11836
|
exportPropertiesSchema: ConnectionExportProperties,
|
|
11729
11837
|
hasKey: false,
|
|
11730
11838
|
hasUuid: false,
|
|
11839
|
+
statsKey: 'connections',
|
|
11840
|
+
relatedIntegrationLayerElements: [
|
|
11841
|
+
WorkspaceElementType.Action,
|
|
11842
|
+
WorkspaceElementType.Flow,
|
|
11843
|
+
WorkspaceElementType.ExternalEventSubscription,
|
|
11844
|
+
WorkspaceElementType.AppEventSubscription,
|
|
11845
|
+
WorkspaceElementType.DataSource,
|
|
11846
|
+
WorkspaceElementType.FieldMapping,
|
|
11847
|
+
WorkspaceElementType.AppDataSchemaInstance,
|
|
11848
|
+
WorkspaceElementType.DataLinkTableInstance,
|
|
11849
|
+
],
|
|
11850
|
+
relatedActivityLogElements: [
|
|
11851
|
+
WorkspaceElementType.FlowRun,
|
|
11852
|
+
WorkspaceElementType.ActionRunLogRecord,
|
|
11853
|
+
WorkspaceElementType.ExternalApiLogRecord,
|
|
11854
|
+
WorkspaceElementType.IncomingWebhookLogRecord,
|
|
11855
|
+
WorkspaceElementType.ExternalEventLogRecord,
|
|
11856
|
+
WorkspaceElementType.ExternalEventPull,
|
|
11857
|
+
WorkspaceElementType.AppEventLogRecord,
|
|
11858
|
+
],
|
|
11731
11859
|
},
|
|
11732
11860
|
[WorkspaceElementType.Package]: {
|
|
11733
11861
|
type: WorkspaceElementType.Package,
|
|
@@ -11744,6 +11872,7 @@ const WorkspaceElementSpecs = {
|
|
|
11744
11872
|
hasParentChildRelationship: true,
|
|
11745
11873
|
hasPublicLayer: true,
|
|
11746
11874
|
isProOnly: true,
|
|
11875
|
+
statsKey: 'packages',
|
|
11747
11876
|
},
|
|
11748
11877
|
[WorkspaceElementType.ActionInstance]: {
|
|
11749
11878
|
type: WorkspaceElementType.ActionInstance,
|
|
@@ -11770,12 +11899,14 @@ const WorkspaceElementSpecs = {
|
|
|
11770
11899
|
hasParentChildRelationship: true,
|
|
11771
11900
|
hasKey: true,
|
|
11772
11901
|
hasPublicLayer: true,
|
|
11902
|
+
statsKey: 'actions',
|
|
11773
11903
|
},
|
|
11774
11904
|
[WorkspaceElementType.ActionRunLogRecord]: {
|
|
11775
11905
|
type: WorkspaceElementType.ActionRunLogRecord,
|
|
11776
11906
|
apiPath: 'action-run-logs',
|
|
11777
11907
|
name: 'Action Run Log Record',
|
|
11778
11908
|
namePlural: 'Action Run Log Records',
|
|
11909
|
+
statsKey: 'actionRunLogs',
|
|
11779
11910
|
},
|
|
11780
11911
|
[WorkspaceElementType.Flow]: {
|
|
11781
11912
|
type: WorkspaceElementType.Flow,
|
|
@@ -11793,6 +11924,7 @@ const WorkspaceElementSpecs = {
|
|
|
11793
11924
|
hasParentChildRelationship: true,
|
|
11794
11925
|
hasKey: true,
|
|
11795
11926
|
isProOnly: true,
|
|
11927
|
+
statsKey: 'flows',
|
|
11796
11928
|
},
|
|
11797
11929
|
[WorkspaceElementType.FlowInstance]: {
|
|
11798
11930
|
type: WorkspaceElementType.FlowInstance,
|
|
@@ -11813,6 +11945,7 @@ const WorkspaceElementSpecs = {
|
|
|
11813
11945
|
name: 'Flow run',
|
|
11814
11946
|
namePlural: 'Flow runs',
|
|
11815
11947
|
isProOnly: true,
|
|
11948
|
+
statsKey: 'flowRuns',
|
|
11816
11949
|
},
|
|
11817
11950
|
[WorkspaceElementType.FieldMapping]: {
|
|
11818
11951
|
type: WorkspaceElementType.FieldMapping,
|
|
@@ -11830,6 +11963,7 @@ const WorkspaceElementSpecs = {
|
|
|
11830
11963
|
hasParentChildRelationship: true,
|
|
11831
11964
|
hasKey: true,
|
|
11832
11965
|
isProOnly: true,
|
|
11966
|
+
statsKey: 'fieldMappings',
|
|
11833
11967
|
},
|
|
11834
11968
|
[WorkspaceElementType.FieldMappingInstance]: {
|
|
11835
11969
|
type: WorkspaceElementType.FieldMappingInstance,
|
|
@@ -11859,6 +11993,7 @@ const WorkspaceElementSpecs = {
|
|
|
11859
11993
|
hasParentChildRelationship: true,
|
|
11860
11994
|
hasKey: true,
|
|
11861
11995
|
isProOnly: true,
|
|
11996
|
+
statsKey: 'dataSources',
|
|
11862
11997
|
},
|
|
11863
11998
|
[WorkspaceElementType.DataSourceInstance]: {
|
|
11864
11999
|
type: WorkspaceElementType.DataSourceInstance,
|
|
@@ -11893,6 +12028,7 @@ const WorkspaceElementSpecs = {
|
|
|
11893
12028
|
parentFieldKey: 'dataLinkTableId',
|
|
11894
12029
|
isMembraneInterface: true,
|
|
11895
12030
|
isProOnly: true,
|
|
12031
|
+
statsKey: 'dataLinkTableInstances',
|
|
11896
12032
|
},
|
|
11897
12033
|
[WorkspaceElementType.AppEventType]: {
|
|
11898
12034
|
type: WorkspaceElementType.AppEventType,
|
|
@@ -11913,6 +12049,7 @@ const WorkspaceElementSpecs = {
|
|
|
11913
12049
|
namePlural: 'App Event Subscriptions',
|
|
11914
12050
|
isMembraneInterface: true,
|
|
11915
12051
|
isProOnly: true,
|
|
12052
|
+
statsKey: 'appEventSubscriptions',
|
|
11916
12053
|
},
|
|
11917
12054
|
[WorkspaceElementType.AppEventLogRecord]: {
|
|
11918
12055
|
type: WorkspaceElementType.AppEventLogRecord,
|
|
@@ -11920,6 +12057,7 @@ const WorkspaceElementSpecs = {
|
|
|
11920
12057
|
name: 'App Event Log Record',
|
|
11921
12058
|
namePlural: 'App Event Log Records',
|
|
11922
12059
|
isProOnly: true,
|
|
12060
|
+
statsKey: 'appEvents',
|
|
11923
12061
|
},
|
|
11924
12062
|
[WorkspaceElementType.AppDataSchema]: {
|
|
11925
12063
|
type: WorkspaceElementType.AppDataSchema,
|
|
@@ -11941,6 +12079,7 @@ const WorkspaceElementSpecs = {
|
|
|
11941
12079
|
parentFieldKey: 'appDataSchemaId',
|
|
11942
12080
|
isMembraneInterface: true,
|
|
11943
12081
|
isProOnly: true,
|
|
12082
|
+
statsKey: 'appDataSchemaInstances',
|
|
11944
12083
|
},
|
|
11945
12084
|
[WorkspaceElementType.ExternalEventSubscription]: {
|
|
11946
12085
|
type: WorkspaceElementType.ExternalEventSubscription,
|
|
@@ -11949,6 +12088,7 @@ const WorkspaceElementSpecs = {
|
|
|
11949
12088
|
namePlural: 'External Event Subscriptions',
|
|
11950
12089
|
isMembraneInterface: true,
|
|
11951
12090
|
isProOnly: true,
|
|
12091
|
+
statsKey: 'externalEventSubscriptions',
|
|
11952
12092
|
},
|
|
11953
12093
|
[WorkspaceElementType.ExternalEventLogRecord]: {
|
|
11954
12094
|
type: WorkspaceElementType.ExternalEventLogRecord,
|
|
@@ -11956,6 +12096,7 @@ const WorkspaceElementSpecs = {
|
|
|
11956
12096
|
name: 'External Event Log Record',
|
|
11957
12097
|
namePlural: 'External Event Log Records',
|
|
11958
12098
|
isProOnly: true,
|
|
12099
|
+
statsKey: 'externalEvents',
|
|
11959
12100
|
},
|
|
11960
12101
|
[WorkspaceElementType.ExternalEventPull]: {
|
|
11961
12102
|
type: WorkspaceElementType.ExternalEventPull,
|
|
@@ -11963,6 +12104,21 @@ const WorkspaceElementSpecs = {
|
|
|
11963
12104
|
name: 'External Event Pull',
|
|
11964
12105
|
namePlural: 'External Event Pulls',
|
|
11965
12106
|
isProOnly: true,
|
|
12107
|
+
statsKey: 'externalEventPulls',
|
|
12108
|
+
},
|
|
12109
|
+
[WorkspaceElementType.ExternalApiLogRecord]: {
|
|
12110
|
+
type: WorkspaceElementType.ExternalApiLogRecord,
|
|
12111
|
+
apiPath: 'external-api-logs',
|
|
12112
|
+
name: 'External API Log Record',
|
|
12113
|
+
namePlural: 'External API Log Records',
|
|
12114
|
+
statsKey: 'externalApiLogs',
|
|
12115
|
+
},
|
|
12116
|
+
[WorkspaceElementType.IncomingWebhookLogRecord]: {
|
|
12117
|
+
type: WorkspaceElementType.IncomingWebhookLogRecord,
|
|
12118
|
+
apiPath: 'incoming-webhooks',
|
|
12119
|
+
name: 'Incoming Webhook Log Record',
|
|
12120
|
+
namePlural: 'Incoming Webhook Log Records',
|
|
12121
|
+
statsKey: 'externalWebhookLogs',
|
|
11966
12122
|
},
|
|
11967
12123
|
[WorkspaceElementType.Screen]: {
|
|
11968
12124
|
type: WorkspaceElementType.Screen,
|
|
@@ -12366,20 +12522,21 @@ const StatsFilterQuery = z.object({
|
|
|
12366
12522
|
tenantId: z.string().optional(),
|
|
12367
12523
|
integrationId: z.string().optional(),
|
|
12368
12524
|
connectionId: z.string().optional(),
|
|
12525
|
+
externalAppId: z.string().optional(),
|
|
12369
12526
|
});
|
|
12370
12527
|
const ActivityStatsQuery = StatsFilterQuery.extend({
|
|
12371
12528
|
startDatetime: z.string().datetime({ offset: true }),
|
|
12529
|
+
elementType: z.enum(WorkspaceElementType).optional(),
|
|
12530
|
+
});
|
|
12531
|
+
const IntegrationLayerStatsQuery = StatsFilterQuery.extend({
|
|
12532
|
+
elementType: z.enum(WorkspaceElementType).optional(),
|
|
12372
12533
|
});
|
|
12373
|
-
const IntegrationLayerStatsQuery = StatsFilterQuery;
|
|
12374
12534
|
const ActionRunsStatsQuery = z.object({
|
|
12375
|
-
actionId: z.string()
|
|
12376
|
-
connectionActionId: z.string().optional(),
|
|
12535
|
+
actionId: z.string(),
|
|
12377
12536
|
startDatetime: z.string().datetime({ offset: true }),
|
|
12378
12537
|
});
|
|
12379
12538
|
const FlowRunsStatsQuery = z.object({
|
|
12380
|
-
|
|
12381
|
-
connectionFlowId: z.string().optional(),
|
|
12382
|
-
universalFlowId: z.string().optional(),
|
|
12539
|
+
flowId: z.string(),
|
|
12383
12540
|
startDatetime: z.string().datetime({ offset: true }),
|
|
12384
12541
|
});
|
|
12385
12542
|
const WORKSPACE_ELEMENTS_STATS_COLLECTIONS = [
|
|
@@ -12940,6 +13097,7 @@ const WORKSPACE_SIZE_LIMITS = [
|
|
|
12940
13097
|
const EDITABLE_LIMITS = [
|
|
12941
13098
|
'parallelApiRequestsPerCustomer',
|
|
12942
13099
|
'parallelBackgroundJobsPerCustomer',
|
|
13100
|
+
'parallelCustomCodeRunsPerCustomer',
|
|
12943
13101
|
'apiRequestsPerCustomerPerSecond',
|
|
12944
13102
|
'apiRequestsPerCustomerPerHour',
|
|
12945
13103
|
'externalEventsPerCustomerPerDay',
|
|
@@ -15313,6 +15471,7 @@ const AgentSession = z.object({
|
|
|
15313
15471
|
hasWorker: z.boolean(),
|
|
15314
15472
|
isExternal: z.boolean().optional(),
|
|
15315
15473
|
agentName: z.enum(AgentName).optional(),
|
|
15474
|
+
output: z.record(z.string(), z.unknown()).optional(),
|
|
15316
15475
|
createdAt: z.iso.datetime(),
|
|
15317
15476
|
updatedAt: z.iso.datetime(),
|
|
15318
15477
|
});
|
|
@@ -15340,6 +15499,7 @@ const PatchAgentSessionSchema = z.object({
|
|
|
15340
15499
|
cost: z.number().optional(),
|
|
15341
15500
|
error: ErrorDataSchema.optional(),
|
|
15342
15501
|
opencodeSessionUuid: z.string().optional(),
|
|
15502
|
+
output: z.record(z.string(), z.unknown()).optional(),
|
|
15343
15503
|
status: z.enum(AgentSessionStatus).optional(),
|
|
15344
15504
|
});
|
|
15345
15505
|
|
|
@@ -15740,6 +15900,17 @@ class UI {
|
|
|
15740
15900
|
});
|
|
15741
15901
|
});
|
|
15742
15902
|
}
|
|
15903
|
+
async UNSAFE_agentSession(options) {
|
|
15904
|
+
const { url, postData } = await this.client.getScreensPostData('agent-session', {
|
|
15905
|
+
sessionId: options.sessionId,
|
|
15906
|
+
theme: options.theme,
|
|
15907
|
+
});
|
|
15908
|
+
return new Promise((resolve) => {
|
|
15909
|
+
return openIframeWithPost(url, postData, {
|
|
15910
|
+
onClose: () => resolve(),
|
|
15911
|
+
});
|
|
15912
|
+
});
|
|
15913
|
+
}
|
|
15743
15914
|
}
|
|
15744
15915
|
|
|
15745
15916
|
class MembraneClient extends MembraneApiClient {
|