@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.js
CHANGED
|
@@ -3492,6 +3492,8 @@ exports.WorkspaceElementType = void 0;
|
|
|
3492
3492
|
WorkspaceElementType["ExternalEventPull"] = "external-event-pull";
|
|
3493
3493
|
WorkspaceElementType["Screen"] = "screen";
|
|
3494
3494
|
WorkspaceElementType["ActionRunLogRecord"] = "action-run-log-record";
|
|
3495
|
+
WorkspaceElementType["ExternalApiLogRecord"] = "external-api-log-record";
|
|
3496
|
+
WorkspaceElementType["IncomingWebhookLogRecord"] = "incoming-webhook-log-record";
|
|
3495
3497
|
WorkspaceElementType["ConnectedProduct"] = "connected-product";
|
|
3496
3498
|
})(exports.WorkspaceElementType || (exports.WorkspaceElementType = {}));
|
|
3497
3499
|
exports.WorkspaceEventType = void 0;
|
|
@@ -3690,6 +3692,7 @@ const ActivityLogRecord = TenantLayerElement.extend({
|
|
|
3690
3692
|
id: z.z.string(),
|
|
3691
3693
|
integrationId: z.z.string().optional(),
|
|
3692
3694
|
connectionId: z.z.string().optional(),
|
|
3695
|
+
externalAppId: z.z.string().optional(),
|
|
3693
3696
|
});
|
|
3694
3697
|
const WorkspaceElementSearchQuery = z.z.object({
|
|
3695
3698
|
q: z.z.string().min(1).max(200),
|
|
@@ -9125,6 +9128,7 @@ const GeneratedConnectorOption = z.z.object({
|
|
|
9125
9128
|
description: z.z.string().optional(),
|
|
9126
9129
|
inputSchema: DataSchema.optional(),
|
|
9127
9130
|
connectorParametersSchema: DataSchema.optional(),
|
|
9131
|
+
oAuthCallbackUri: z.z.string().optional(),
|
|
9128
9132
|
});
|
|
9129
9133
|
const ConnectorOptions = z.z.record(z.z.string(), ConnectorOption);
|
|
9130
9134
|
const WritableConnectorVersionData = ConnectorAuthWithFunctions.extend({
|
|
@@ -10277,6 +10281,9 @@ const FindActionRunLogsQuery = PaginationQuery.extend({
|
|
|
10277
10281
|
.meta({
|
|
10278
10282
|
filterTitle: 'Status',
|
|
10279
10283
|
}),
|
|
10284
|
+
externalAppId: z.z.string().optional().meta({
|
|
10285
|
+
hidden: true,
|
|
10286
|
+
}),
|
|
10280
10287
|
from: z.z
|
|
10281
10288
|
.string()
|
|
10282
10289
|
.optional()
|
|
@@ -10317,6 +10324,13 @@ const FindConnectionsQuery = PaginationQuery.merge(SearchQuery)
|
|
|
10317
10324
|
.meta({
|
|
10318
10325
|
filterTitle: 'Connector',
|
|
10319
10326
|
}),
|
|
10327
|
+
externalAppId: z.z
|
|
10328
|
+
.string()
|
|
10329
|
+
.optional()
|
|
10330
|
+
.meta({
|
|
10331
|
+
filterTitle: 'External App',
|
|
10332
|
+
referenceElementType: exports.WorkspaceElementType.App,
|
|
10333
|
+
}),
|
|
10320
10334
|
disconnected: zodBooleanCoercion()
|
|
10321
10335
|
.optional()
|
|
10322
10336
|
.meta({
|
|
@@ -10337,10 +10351,6 @@ const FindConnectionsQuery = PaginationQuery.merge(SearchQuery)
|
|
|
10337
10351
|
.string()
|
|
10338
10352
|
.optional()
|
|
10339
10353
|
.meta({ hidden: true }),
|
|
10340
|
-
externalAppId: z.z.string().optional().meta({
|
|
10341
|
-
filterTitle: 'External App',
|
|
10342
|
-
referenceElementType: exports.WorkspaceElementType.App,
|
|
10343
|
-
}),
|
|
10344
10354
|
integrationKey: z.z
|
|
10345
10355
|
.string()
|
|
10346
10356
|
.optional()
|
|
@@ -10463,6 +10473,13 @@ const DataSourceInstanceApiResponse = DataSourceApiResponse;
|
|
|
10463
10473
|
const FindDataSourcesQuery = FindIntegrationLevelMembraneInterfaceQuery.omit({ parentId: true }).extend({
|
|
10464
10474
|
dataSourceId: z.z.string().optional(),
|
|
10465
10475
|
universalDataSourceId: z.z.string().optional(),
|
|
10476
|
+
externalAppId: z.z
|
|
10477
|
+
.string()
|
|
10478
|
+
.optional()
|
|
10479
|
+
.meta({
|
|
10480
|
+
filterTitle: 'External App',
|
|
10481
|
+
referenceElementType: exports.WorkspaceElementType.App,
|
|
10482
|
+
}),
|
|
10466
10483
|
});
|
|
10467
10484
|
const FindDataSourceInstancesQuery = FindDataSourcesQuery;
|
|
10468
10485
|
const CreateDataSourceRequest = DataSourceEditableProperties;
|
|
@@ -10546,6 +10563,13 @@ const FlowInstanceApiResponse = FlowApiResponse;
|
|
|
10546
10563
|
const FindFlowsQuery = FindIntegrationLevelMembraneInterfaceQuery.omit({ parentId: true }).extend({
|
|
10547
10564
|
flowId: z.z.string().optional(),
|
|
10548
10565
|
universalFlowId: z.z.string().optional(),
|
|
10566
|
+
externalAppId: z.z
|
|
10567
|
+
.string()
|
|
10568
|
+
.optional()
|
|
10569
|
+
.meta({
|
|
10570
|
+
filterTitle: 'External App',
|
|
10571
|
+
referenceElementType: exports.WorkspaceElementType.App,
|
|
10572
|
+
}),
|
|
10549
10573
|
});
|
|
10550
10574
|
const CreateFlowRequest = FlowEditableProperties;
|
|
10551
10575
|
const UpdateFlowRequest = CreateFlowRequest.extend({}).partial();
|
|
@@ -10623,6 +10647,9 @@ const FindFlowRunsQuery = PaginationQuery.extend({
|
|
|
10623
10647
|
filterTitle: 'Connection',
|
|
10624
10648
|
referenceElementType: exports.WorkspaceElementType.Connection,
|
|
10625
10649
|
}),
|
|
10650
|
+
externalAppId: z.z.string().optional().meta({
|
|
10651
|
+
hidden: true,
|
|
10652
|
+
}),
|
|
10626
10653
|
from: z.z
|
|
10627
10654
|
.string()
|
|
10628
10655
|
.optional()
|
|
@@ -10785,6 +10812,13 @@ const FieldMappingInstanceApiResponse = FieldMappingApiResponse;
|
|
|
10785
10812
|
const FindFieldMappingsQuery = FindIntegrationLevelMembraneInterfaceQuery.omit({ parentId: true }).extend({
|
|
10786
10813
|
fieldMappingId: z.z.string().optional(),
|
|
10787
10814
|
universalFieldMappingId: z.z.string().optional(),
|
|
10815
|
+
externalAppId: z.z
|
|
10816
|
+
.string()
|
|
10817
|
+
.optional()
|
|
10818
|
+
.meta({
|
|
10819
|
+
filterTitle: 'External App',
|
|
10820
|
+
referenceElementType: exports.WorkspaceElementType.App,
|
|
10821
|
+
}),
|
|
10788
10822
|
});
|
|
10789
10823
|
const FindFieldMappingInstancesQuery = FindFieldMappingsQuery;
|
|
10790
10824
|
const CreateFieldMappingRequest = FieldMappingEditableProperties;
|
|
@@ -11056,6 +11090,9 @@ const ListExternalEventLogRecordsQuery = PaginationQuery.extend({
|
|
|
11056
11090
|
.meta({
|
|
11057
11091
|
filterTitle: 'Status',
|
|
11058
11092
|
}),
|
|
11093
|
+
externalAppId: z.z.string().optional().meta({
|
|
11094
|
+
hidden: true,
|
|
11095
|
+
}),
|
|
11059
11096
|
from: z.z
|
|
11060
11097
|
.string()
|
|
11061
11098
|
.optional()
|
|
@@ -11145,6 +11182,9 @@ const FindExternalEventPullsQuery = PaginationQuery.extend({
|
|
|
11145
11182
|
.meta({
|
|
11146
11183
|
filterTitle: 'Status',
|
|
11147
11184
|
}),
|
|
11185
|
+
externalAppId: z.z.string().optional().meta({
|
|
11186
|
+
hidden: true,
|
|
11187
|
+
}),
|
|
11148
11188
|
from: z.z
|
|
11149
11189
|
.string()
|
|
11150
11190
|
.optional()
|
|
@@ -11192,6 +11232,9 @@ const ListExternalEventSubscriptionsQuery = PaginationQuery.merge(IncludeArchive
|
|
|
11192
11232
|
filterTitle: 'Integration',
|
|
11193
11233
|
referenceElementType: exports.WorkspaceElementType.Integration,
|
|
11194
11234
|
}),
|
|
11235
|
+
externalAppId: z.z.string().optional().meta({
|
|
11236
|
+
hidden: true,
|
|
11237
|
+
}),
|
|
11195
11238
|
});
|
|
11196
11239
|
const ExternalEventSubscriptionApiResponse = BaseExternalEventSubscription.extend({
|
|
11197
11240
|
user: BaseCustomer.optional(),
|
|
@@ -11274,6 +11317,9 @@ const ListExternalApiLogsQuery = PaginationQuery.extend({
|
|
|
11274
11317
|
filterTitle: 'Status',
|
|
11275
11318
|
isFlag: true,
|
|
11276
11319
|
}),
|
|
11320
|
+
externalAppId: z.z.string().optional().meta({
|
|
11321
|
+
hidden: true,
|
|
11322
|
+
}),
|
|
11277
11323
|
from: z.z
|
|
11278
11324
|
.string()
|
|
11279
11325
|
.optional()
|
|
@@ -11298,6 +11344,7 @@ const ExternalApiLogApiResponse = z.z.object({
|
|
|
11298
11344
|
customerId: z.z.string(),
|
|
11299
11345
|
integrationId: z.z.string(),
|
|
11300
11346
|
connectionId: z.z.string(),
|
|
11347
|
+
externalAppId: z.z.string().optional(),
|
|
11301
11348
|
statusCode: z.z.number(),
|
|
11302
11349
|
isSuccess: z.z.boolean(),
|
|
11303
11350
|
s3Uri: z.z.string(),
|
|
@@ -11337,6 +11384,9 @@ const ListIncomingWebhooksQuery = PaginationQuery.extend({
|
|
|
11337
11384
|
.meta({
|
|
11338
11385
|
filterTitle: 'Status',
|
|
11339
11386
|
}),
|
|
11387
|
+
externalAppId: z.z.string().optional().meta({
|
|
11388
|
+
hidden: true,
|
|
11389
|
+
}),
|
|
11340
11390
|
from: z.z
|
|
11341
11391
|
.string()
|
|
11342
11392
|
.optional()
|
|
@@ -11359,6 +11409,7 @@ const IncomingWebhookApiResponse = z.z.object({
|
|
|
11359
11409
|
customerId: z.z.string(),
|
|
11360
11410
|
integrationId: z.z.string(),
|
|
11361
11411
|
connectionId: z.z.string(),
|
|
11412
|
+
externalAppId: z.z.string().optional(),
|
|
11362
11413
|
subscriptionId: z.z.string(),
|
|
11363
11414
|
userId: z.z.string(),
|
|
11364
11415
|
uuid: z.z.string(),
|
|
@@ -11372,12 +11423,14 @@ const IncomingWebhookApiResponse = z.z.object({
|
|
|
11372
11423
|
|
|
11373
11424
|
const CreateConnectedProductRequest = z.z.object({
|
|
11374
11425
|
name: z.z.string(),
|
|
11426
|
+
key: z.z.string().optional(),
|
|
11375
11427
|
type: ConnectedProductType,
|
|
11376
11428
|
audience: ConnectedProductAudience.optional(),
|
|
11377
11429
|
parameters: AiAgentParameters.optional(),
|
|
11378
11430
|
});
|
|
11379
11431
|
const UpdateConnectedProductRequest = z.z.object({
|
|
11380
11432
|
name: z.z.string().optional(),
|
|
11433
|
+
key: z.z.string().optional(),
|
|
11381
11434
|
type: ConnectedProductType.optional(),
|
|
11382
11435
|
audience: ConnectedProductAudience.optional(),
|
|
11383
11436
|
parameters: AiAgentParameters.optional(),
|
|
@@ -11386,7 +11439,6 @@ const FindConnectedProductsQuery = z.z
|
|
|
11386
11439
|
.object({
|
|
11387
11440
|
type: ConnectedProductType.optional(),
|
|
11388
11441
|
audience: ConnectedProductAudience.optional(),
|
|
11389
|
-
key: z.z.string().optional(),
|
|
11390
11442
|
})
|
|
11391
11443
|
.merge(PaginationQuery)
|
|
11392
11444
|
.merge(SearchQuery)
|
|
@@ -11712,6 +11764,26 @@ const WorkspaceElementSpecs = {
|
|
|
11712
11764
|
apiPath: 'customers',
|
|
11713
11765
|
name: 'Customer',
|
|
11714
11766
|
namePlural: 'Customers',
|
|
11767
|
+
relatedIntegrationLayerElements: [
|
|
11768
|
+
exports.WorkspaceElementType.Connection,
|
|
11769
|
+
exports.WorkspaceElementType.Action,
|
|
11770
|
+
exports.WorkspaceElementType.Flow,
|
|
11771
|
+
exports.WorkspaceElementType.ExternalEventSubscription,
|
|
11772
|
+
exports.WorkspaceElementType.AppEventSubscription,
|
|
11773
|
+
exports.WorkspaceElementType.DataSource,
|
|
11774
|
+
exports.WorkspaceElementType.FieldMapping,
|
|
11775
|
+
exports.WorkspaceElementType.AppDataSchemaInstance,
|
|
11776
|
+
exports.WorkspaceElementType.DataLinkTableInstance,
|
|
11777
|
+
],
|
|
11778
|
+
relatedActivityLogElements: [
|
|
11779
|
+
exports.WorkspaceElementType.FlowRun,
|
|
11780
|
+
exports.WorkspaceElementType.ActionRunLogRecord,
|
|
11781
|
+
exports.WorkspaceElementType.ExternalApiLogRecord,
|
|
11782
|
+
exports.WorkspaceElementType.IncomingWebhookLogRecord,
|
|
11783
|
+
exports.WorkspaceElementType.ExternalEventLogRecord,
|
|
11784
|
+
exports.WorkspaceElementType.ExternalEventPull,
|
|
11785
|
+
exports.WorkspaceElementType.AppEventLogRecord,
|
|
11786
|
+
],
|
|
11715
11787
|
},
|
|
11716
11788
|
[exports.WorkspaceElementType.App]: {
|
|
11717
11789
|
type: exports.WorkspaceElementType.App,
|
|
@@ -11720,6 +11792,21 @@ const WorkspaceElementSpecs = {
|
|
|
11720
11792
|
namePlural: 'Apps',
|
|
11721
11793
|
hasKey: true,
|
|
11722
11794
|
hasPublicLayer: true,
|
|
11795
|
+
relatedIntegrationLayerElements: [
|
|
11796
|
+
exports.WorkspaceElementType.Connection,
|
|
11797
|
+
exports.WorkspaceElementType.Action,
|
|
11798
|
+
exports.WorkspaceElementType.Flow,
|
|
11799
|
+
exports.WorkspaceElementType.DataSource,
|
|
11800
|
+
exports.WorkspaceElementType.FieldMapping,
|
|
11801
|
+
],
|
|
11802
|
+
relatedActivityLogElements: [
|
|
11803
|
+
exports.WorkspaceElementType.FlowRun,
|
|
11804
|
+
exports.WorkspaceElementType.ActionRunLogRecord,
|
|
11805
|
+
exports.WorkspaceElementType.ExternalApiLogRecord,
|
|
11806
|
+
exports.WorkspaceElementType.IncomingWebhookLogRecord,
|
|
11807
|
+
exports.WorkspaceElementType.ExternalEventLogRecord,
|
|
11808
|
+
exports.WorkspaceElementType.ExternalEventPull,
|
|
11809
|
+
],
|
|
11723
11810
|
},
|
|
11724
11811
|
[exports.WorkspaceElementType.Integration]: {
|
|
11725
11812
|
type: exports.WorkspaceElementType.Integration,
|
|
@@ -11729,6 +11816,27 @@ const WorkspaceElementSpecs = {
|
|
|
11729
11816
|
editablePropertiesSchema: IntegrationEditableProperties,
|
|
11730
11817
|
exportPropertiesSchema: IntegrationExportProperties,
|
|
11731
11818
|
hasKey: true,
|
|
11819
|
+
relatedIntegrationLayerElements: [
|
|
11820
|
+
exports.WorkspaceElementType.Connection,
|
|
11821
|
+
exports.WorkspaceElementType.Package,
|
|
11822
|
+
exports.WorkspaceElementType.Action,
|
|
11823
|
+
exports.WorkspaceElementType.Flow,
|
|
11824
|
+
exports.WorkspaceElementType.ExternalEventSubscription,
|
|
11825
|
+
exports.WorkspaceElementType.AppEventSubscription,
|
|
11826
|
+
exports.WorkspaceElementType.DataSource,
|
|
11827
|
+
exports.WorkspaceElementType.FieldMapping,
|
|
11828
|
+
exports.WorkspaceElementType.AppDataSchemaInstance,
|
|
11829
|
+
exports.WorkspaceElementType.DataLinkTableInstance,
|
|
11830
|
+
],
|
|
11831
|
+
relatedActivityLogElements: [
|
|
11832
|
+
exports.WorkspaceElementType.FlowRun,
|
|
11833
|
+
exports.WorkspaceElementType.ActionRunLogRecord,
|
|
11834
|
+
exports.WorkspaceElementType.ExternalApiLogRecord,
|
|
11835
|
+
exports.WorkspaceElementType.IncomingWebhookLogRecord,
|
|
11836
|
+
exports.WorkspaceElementType.ExternalEventLogRecord,
|
|
11837
|
+
exports.WorkspaceElementType.ExternalEventPull,
|
|
11838
|
+
exports.WorkspaceElementType.AppEventLogRecord,
|
|
11839
|
+
],
|
|
11732
11840
|
},
|
|
11733
11841
|
[exports.WorkspaceElementType.Connector]: {
|
|
11734
11842
|
type: exports.WorkspaceElementType.Connector,
|
|
@@ -11747,6 +11855,26 @@ const WorkspaceElementSpecs = {
|
|
|
11747
11855
|
exportPropertiesSchema: ConnectionExportProperties,
|
|
11748
11856
|
hasKey: false,
|
|
11749
11857
|
hasUuid: false,
|
|
11858
|
+
statsKey: 'connections',
|
|
11859
|
+
relatedIntegrationLayerElements: [
|
|
11860
|
+
exports.WorkspaceElementType.Action,
|
|
11861
|
+
exports.WorkspaceElementType.Flow,
|
|
11862
|
+
exports.WorkspaceElementType.ExternalEventSubscription,
|
|
11863
|
+
exports.WorkspaceElementType.AppEventSubscription,
|
|
11864
|
+
exports.WorkspaceElementType.DataSource,
|
|
11865
|
+
exports.WorkspaceElementType.FieldMapping,
|
|
11866
|
+
exports.WorkspaceElementType.AppDataSchemaInstance,
|
|
11867
|
+
exports.WorkspaceElementType.DataLinkTableInstance,
|
|
11868
|
+
],
|
|
11869
|
+
relatedActivityLogElements: [
|
|
11870
|
+
exports.WorkspaceElementType.FlowRun,
|
|
11871
|
+
exports.WorkspaceElementType.ActionRunLogRecord,
|
|
11872
|
+
exports.WorkspaceElementType.ExternalApiLogRecord,
|
|
11873
|
+
exports.WorkspaceElementType.IncomingWebhookLogRecord,
|
|
11874
|
+
exports.WorkspaceElementType.ExternalEventLogRecord,
|
|
11875
|
+
exports.WorkspaceElementType.ExternalEventPull,
|
|
11876
|
+
exports.WorkspaceElementType.AppEventLogRecord,
|
|
11877
|
+
],
|
|
11750
11878
|
},
|
|
11751
11879
|
[exports.WorkspaceElementType.Package]: {
|
|
11752
11880
|
type: exports.WorkspaceElementType.Package,
|
|
@@ -11763,6 +11891,7 @@ const WorkspaceElementSpecs = {
|
|
|
11763
11891
|
hasParentChildRelationship: true,
|
|
11764
11892
|
hasPublicLayer: true,
|
|
11765
11893
|
isProOnly: true,
|
|
11894
|
+
statsKey: 'packages',
|
|
11766
11895
|
},
|
|
11767
11896
|
[exports.WorkspaceElementType.ActionInstance]: {
|
|
11768
11897
|
type: exports.WorkspaceElementType.ActionInstance,
|
|
@@ -11789,12 +11918,14 @@ const WorkspaceElementSpecs = {
|
|
|
11789
11918
|
hasParentChildRelationship: true,
|
|
11790
11919
|
hasKey: true,
|
|
11791
11920
|
hasPublicLayer: true,
|
|
11921
|
+
statsKey: 'actions',
|
|
11792
11922
|
},
|
|
11793
11923
|
[exports.WorkspaceElementType.ActionRunLogRecord]: {
|
|
11794
11924
|
type: exports.WorkspaceElementType.ActionRunLogRecord,
|
|
11795
11925
|
apiPath: 'action-run-logs',
|
|
11796
11926
|
name: 'Action Run Log Record',
|
|
11797
11927
|
namePlural: 'Action Run Log Records',
|
|
11928
|
+
statsKey: 'actionRunLogs',
|
|
11798
11929
|
},
|
|
11799
11930
|
[exports.WorkspaceElementType.Flow]: {
|
|
11800
11931
|
type: exports.WorkspaceElementType.Flow,
|
|
@@ -11812,6 +11943,7 @@ const WorkspaceElementSpecs = {
|
|
|
11812
11943
|
hasParentChildRelationship: true,
|
|
11813
11944
|
hasKey: true,
|
|
11814
11945
|
isProOnly: true,
|
|
11946
|
+
statsKey: 'flows',
|
|
11815
11947
|
},
|
|
11816
11948
|
[exports.WorkspaceElementType.FlowInstance]: {
|
|
11817
11949
|
type: exports.WorkspaceElementType.FlowInstance,
|
|
@@ -11832,6 +11964,7 @@ const WorkspaceElementSpecs = {
|
|
|
11832
11964
|
name: 'Flow run',
|
|
11833
11965
|
namePlural: 'Flow runs',
|
|
11834
11966
|
isProOnly: true,
|
|
11967
|
+
statsKey: 'flowRuns',
|
|
11835
11968
|
},
|
|
11836
11969
|
[exports.WorkspaceElementType.FieldMapping]: {
|
|
11837
11970
|
type: exports.WorkspaceElementType.FieldMapping,
|
|
@@ -11849,6 +11982,7 @@ const WorkspaceElementSpecs = {
|
|
|
11849
11982
|
hasParentChildRelationship: true,
|
|
11850
11983
|
hasKey: true,
|
|
11851
11984
|
isProOnly: true,
|
|
11985
|
+
statsKey: 'fieldMappings',
|
|
11852
11986
|
},
|
|
11853
11987
|
[exports.WorkspaceElementType.FieldMappingInstance]: {
|
|
11854
11988
|
type: exports.WorkspaceElementType.FieldMappingInstance,
|
|
@@ -11878,6 +12012,7 @@ const WorkspaceElementSpecs = {
|
|
|
11878
12012
|
hasParentChildRelationship: true,
|
|
11879
12013
|
hasKey: true,
|
|
11880
12014
|
isProOnly: true,
|
|
12015
|
+
statsKey: 'dataSources',
|
|
11881
12016
|
},
|
|
11882
12017
|
[exports.WorkspaceElementType.DataSourceInstance]: {
|
|
11883
12018
|
type: exports.WorkspaceElementType.DataSourceInstance,
|
|
@@ -11912,6 +12047,7 @@ const WorkspaceElementSpecs = {
|
|
|
11912
12047
|
parentFieldKey: 'dataLinkTableId',
|
|
11913
12048
|
isMembraneInterface: true,
|
|
11914
12049
|
isProOnly: true,
|
|
12050
|
+
statsKey: 'dataLinkTableInstances',
|
|
11915
12051
|
},
|
|
11916
12052
|
[exports.WorkspaceElementType.AppEventType]: {
|
|
11917
12053
|
type: exports.WorkspaceElementType.AppEventType,
|
|
@@ -11932,6 +12068,7 @@ const WorkspaceElementSpecs = {
|
|
|
11932
12068
|
namePlural: 'App Event Subscriptions',
|
|
11933
12069
|
isMembraneInterface: true,
|
|
11934
12070
|
isProOnly: true,
|
|
12071
|
+
statsKey: 'appEventSubscriptions',
|
|
11935
12072
|
},
|
|
11936
12073
|
[exports.WorkspaceElementType.AppEventLogRecord]: {
|
|
11937
12074
|
type: exports.WorkspaceElementType.AppEventLogRecord,
|
|
@@ -11939,6 +12076,7 @@ const WorkspaceElementSpecs = {
|
|
|
11939
12076
|
name: 'App Event Log Record',
|
|
11940
12077
|
namePlural: 'App Event Log Records',
|
|
11941
12078
|
isProOnly: true,
|
|
12079
|
+
statsKey: 'appEvents',
|
|
11942
12080
|
},
|
|
11943
12081
|
[exports.WorkspaceElementType.AppDataSchema]: {
|
|
11944
12082
|
type: exports.WorkspaceElementType.AppDataSchema,
|
|
@@ -11960,6 +12098,7 @@ const WorkspaceElementSpecs = {
|
|
|
11960
12098
|
parentFieldKey: 'appDataSchemaId',
|
|
11961
12099
|
isMembraneInterface: true,
|
|
11962
12100
|
isProOnly: true,
|
|
12101
|
+
statsKey: 'appDataSchemaInstances',
|
|
11963
12102
|
},
|
|
11964
12103
|
[exports.WorkspaceElementType.ExternalEventSubscription]: {
|
|
11965
12104
|
type: exports.WorkspaceElementType.ExternalEventSubscription,
|
|
@@ -11968,6 +12107,7 @@ const WorkspaceElementSpecs = {
|
|
|
11968
12107
|
namePlural: 'External Event Subscriptions',
|
|
11969
12108
|
isMembraneInterface: true,
|
|
11970
12109
|
isProOnly: true,
|
|
12110
|
+
statsKey: 'externalEventSubscriptions',
|
|
11971
12111
|
},
|
|
11972
12112
|
[exports.WorkspaceElementType.ExternalEventLogRecord]: {
|
|
11973
12113
|
type: exports.WorkspaceElementType.ExternalEventLogRecord,
|
|
@@ -11975,6 +12115,7 @@ const WorkspaceElementSpecs = {
|
|
|
11975
12115
|
name: 'External Event Log Record',
|
|
11976
12116
|
namePlural: 'External Event Log Records',
|
|
11977
12117
|
isProOnly: true,
|
|
12118
|
+
statsKey: 'externalEvents',
|
|
11978
12119
|
},
|
|
11979
12120
|
[exports.WorkspaceElementType.ExternalEventPull]: {
|
|
11980
12121
|
type: exports.WorkspaceElementType.ExternalEventPull,
|
|
@@ -11982,6 +12123,21 @@ const WorkspaceElementSpecs = {
|
|
|
11982
12123
|
name: 'External Event Pull',
|
|
11983
12124
|
namePlural: 'External Event Pulls',
|
|
11984
12125
|
isProOnly: true,
|
|
12126
|
+
statsKey: 'externalEventPulls',
|
|
12127
|
+
},
|
|
12128
|
+
[exports.WorkspaceElementType.ExternalApiLogRecord]: {
|
|
12129
|
+
type: exports.WorkspaceElementType.ExternalApiLogRecord,
|
|
12130
|
+
apiPath: 'external-api-logs',
|
|
12131
|
+
name: 'External API Log Record',
|
|
12132
|
+
namePlural: 'External API Log Records',
|
|
12133
|
+
statsKey: 'externalApiLogs',
|
|
12134
|
+
},
|
|
12135
|
+
[exports.WorkspaceElementType.IncomingWebhookLogRecord]: {
|
|
12136
|
+
type: exports.WorkspaceElementType.IncomingWebhookLogRecord,
|
|
12137
|
+
apiPath: 'incoming-webhooks',
|
|
12138
|
+
name: 'Incoming Webhook Log Record',
|
|
12139
|
+
namePlural: 'Incoming Webhook Log Records',
|
|
12140
|
+
statsKey: 'externalWebhookLogs',
|
|
11985
12141
|
},
|
|
11986
12142
|
[exports.WorkspaceElementType.Screen]: {
|
|
11987
12143
|
type: exports.WorkspaceElementType.Screen,
|
|
@@ -12385,20 +12541,21 @@ const StatsFilterQuery = z.z.object({
|
|
|
12385
12541
|
tenantId: z.z.string().optional(),
|
|
12386
12542
|
integrationId: z.z.string().optional(),
|
|
12387
12543
|
connectionId: z.z.string().optional(),
|
|
12544
|
+
externalAppId: z.z.string().optional(),
|
|
12388
12545
|
});
|
|
12389
12546
|
const ActivityStatsQuery = StatsFilterQuery.extend({
|
|
12390
12547
|
startDatetime: z.z.string().datetime({ offset: true }),
|
|
12548
|
+
elementType: z.z.enum(exports.WorkspaceElementType).optional(),
|
|
12549
|
+
});
|
|
12550
|
+
const IntegrationLayerStatsQuery = StatsFilterQuery.extend({
|
|
12551
|
+
elementType: z.z.enum(exports.WorkspaceElementType).optional(),
|
|
12391
12552
|
});
|
|
12392
|
-
const IntegrationLayerStatsQuery = StatsFilterQuery;
|
|
12393
12553
|
const ActionRunsStatsQuery = z.z.object({
|
|
12394
|
-
actionId: z.z.string()
|
|
12395
|
-
connectionActionId: z.z.string().optional(),
|
|
12554
|
+
actionId: z.z.string(),
|
|
12396
12555
|
startDatetime: z.z.string().datetime({ offset: true }),
|
|
12397
12556
|
});
|
|
12398
12557
|
const FlowRunsStatsQuery = z.z.object({
|
|
12399
|
-
|
|
12400
|
-
connectionFlowId: z.z.string().optional(),
|
|
12401
|
-
universalFlowId: z.z.string().optional(),
|
|
12558
|
+
flowId: z.z.string(),
|
|
12402
12559
|
startDatetime: z.z.string().datetime({ offset: true }),
|
|
12403
12560
|
});
|
|
12404
12561
|
const WORKSPACE_ELEMENTS_STATS_COLLECTIONS = [
|
|
@@ -12959,6 +13116,7 @@ const WORKSPACE_SIZE_LIMITS = [
|
|
|
12959
13116
|
const EDITABLE_LIMITS = [
|
|
12960
13117
|
'parallelApiRequestsPerCustomer',
|
|
12961
13118
|
'parallelBackgroundJobsPerCustomer',
|
|
13119
|
+
'parallelCustomCodeRunsPerCustomer',
|
|
12962
13120
|
'apiRequestsPerCustomerPerSecond',
|
|
12963
13121
|
'apiRequestsPerCustomerPerHour',
|
|
12964
13122
|
'externalEventsPerCustomerPerDay',
|
|
@@ -15332,6 +15490,7 @@ const AgentSession = z.z.object({
|
|
|
15332
15490
|
hasWorker: z.z.boolean(),
|
|
15333
15491
|
isExternal: z.z.boolean().optional(),
|
|
15334
15492
|
agentName: z.z.enum(exports.AgentName).optional(),
|
|
15493
|
+
output: z.z.record(z.z.string(), z.z.unknown()).optional(),
|
|
15335
15494
|
createdAt: z.z.iso.datetime(),
|
|
15336
15495
|
updatedAt: z.z.iso.datetime(),
|
|
15337
15496
|
});
|
|
@@ -15359,6 +15518,7 @@ const PatchAgentSessionSchema = z.z.object({
|
|
|
15359
15518
|
cost: z.z.number().optional(),
|
|
15360
15519
|
error: ErrorDataSchema.optional(),
|
|
15361
15520
|
opencodeSessionUuid: z.z.string().optional(),
|
|
15521
|
+
output: z.z.record(z.z.string(), z.z.unknown()).optional(),
|
|
15362
15522
|
status: z.z.enum(exports.AgentSessionStatus).optional(),
|
|
15363
15523
|
});
|
|
15364
15524
|
|
|
@@ -15759,6 +15919,17 @@ class UI {
|
|
|
15759
15919
|
});
|
|
15760
15920
|
});
|
|
15761
15921
|
}
|
|
15922
|
+
async UNSAFE_agentSession(options) {
|
|
15923
|
+
const { url, postData } = await this.client.getScreensPostData('agent-session', {
|
|
15924
|
+
sessionId: options.sessionId,
|
|
15925
|
+
theme: options.theme,
|
|
15926
|
+
});
|
|
15927
|
+
return new Promise((resolve) => {
|
|
15928
|
+
return openIframeWithPost(url, postData, {
|
|
15929
|
+
onClose: () => resolve(),
|
|
15930
|
+
});
|
|
15931
|
+
});
|
|
15932
|
+
}
|
|
15762
15933
|
}
|
|
15763
15934
|
|
|
15764
15935
|
class MembraneClient extends MembraneApiClient {
|