@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.js
CHANGED
|
@@ -3496,6 +3496,8 @@ exports.WorkspaceElementType = void 0;
|
|
|
3496
3496
|
WorkspaceElementType["ExternalEventPull"] = "external-event-pull";
|
|
3497
3497
|
WorkspaceElementType["Screen"] = "screen";
|
|
3498
3498
|
WorkspaceElementType["ActionRunLogRecord"] = "action-run-log-record";
|
|
3499
|
+
WorkspaceElementType["ExternalApiLogRecord"] = "external-api-log-record";
|
|
3500
|
+
WorkspaceElementType["IncomingWebhookLogRecord"] = "incoming-webhook-log-record";
|
|
3499
3501
|
WorkspaceElementType["ConnectedProduct"] = "connected-product";
|
|
3500
3502
|
})(exports.WorkspaceElementType || (exports.WorkspaceElementType = {}));
|
|
3501
3503
|
exports.WorkspaceEventType = void 0;
|
|
@@ -3694,6 +3696,7 @@ const ActivityLogRecord = TenantLayerElement.extend({
|
|
|
3694
3696
|
id: z.z.string(),
|
|
3695
3697
|
integrationId: z.z.string().optional(),
|
|
3696
3698
|
connectionId: z.z.string().optional(),
|
|
3699
|
+
externalAppId: z.z.string().optional(),
|
|
3697
3700
|
});
|
|
3698
3701
|
const WorkspaceElementSearchQuery = z.z.object({
|
|
3699
3702
|
q: z.z.string().min(1).max(200),
|
|
@@ -9129,6 +9132,7 @@ const GeneratedConnectorOption = z.z.object({
|
|
|
9129
9132
|
description: z.z.string().optional(),
|
|
9130
9133
|
inputSchema: DataSchema.optional(),
|
|
9131
9134
|
connectorParametersSchema: DataSchema.optional(),
|
|
9135
|
+
oAuthCallbackUri: z.z.string().optional(),
|
|
9132
9136
|
});
|
|
9133
9137
|
const ConnectorOptions = z.z.record(z.z.string(), ConnectorOption);
|
|
9134
9138
|
const WritableConnectorVersionData = ConnectorAuthWithFunctions.extend({
|
|
@@ -10281,6 +10285,9 @@ const FindActionRunLogsQuery = PaginationQuery.extend({
|
|
|
10281
10285
|
.meta({
|
|
10282
10286
|
filterTitle: 'Status',
|
|
10283
10287
|
}),
|
|
10288
|
+
externalAppId: z.z.string().optional().meta({
|
|
10289
|
+
hidden: true,
|
|
10290
|
+
}),
|
|
10284
10291
|
from: z.z
|
|
10285
10292
|
.string()
|
|
10286
10293
|
.optional()
|
|
@@ -10321,6 +10328,13 @@ const FindConnectionsQuery = PaginationQuery.merge(SearchQuery)
|
|
|
10321
10328
|
.meta({
|
|
10322
10329
|
filterTitle: 'Connector',
|
|
10323
10330
|
}),
|
|
10331
|
+
externalAppId: z.z
|
|
10332
|
+
.string()
|
|
10333
|
+
.optional()
|
|
10334
|
+
.meta({
|
|
10335
|
+
filterTitle: 'External App',
|
|
10336
|
+
referenceElementType: exports.WorkspaceElementType.App,
|
|
10337
|
+
}),
|
|
10324
10338
|
disconnected: zodBooleanCoercion()
|
|
10325
10339
|
.optional()
|
|
10326
10340
|
.meta({
|
|
@@ -10341,10 +10355,6 @@ const FindConnectionsQuery = PaginationQuery.merge(SearchQuery)
|
|
|
10341
10355
|
.string()
|
|
10342
10356
|
.optional()
|
|
10343
10357
|
.meta({ hidden: true }),
|
|
10344
|
-
externalAppId: z.z.string().optional().meta({
|
|
10345
|
-
filterTitle: 'External App',
|
|
10346
|
-
referenceElementType: exports.WorkspaceElementType.App,
|
|
10347
|
-
}),
|
|
10348
10358
|
integrationKey: z.z
|
|
10349
10359
|
.string()
|
|
10350
10360
|
.optional()
|
|
@@ -10467,6 +10477,13 @@ const DataSourceInstanceApiResponse = DataSourceApiResponse;
|
|
|
10467
10477
|
const FindDataSourcesQuery = FindIntegrationLevelMembraneInterfaceQuery.omit({ parentId: true }).extend({
|
|
10468
10478
|
dataSourceId: z.z.string().optional(),
|
|
10469
10479
|
universalDataSourceId: z.z.string().optional(),
|
|
10480
|
+
externalAppId: z.z
|
|
10481
|
+
.string()
|
|
10482
|
+
.optional()
|
|
10483
|
+
.meta({
|
|
10484
|
+
filterTitle: 'External App',
|
|
10485
|
+
referenceElementType: exports.WorkspaceElementType.App,
|
|
10486
|
+
}),
|
|
10470
10487
|
});
|
|
10471
10488
|
const FindDataSourceInstancesQuery = FindDataSourcesQuery;
|
|
10472
10489
|
const CreateDataSourceRequest = DataSourceEditableProperties;
|
|
@@ -10550,6 +10567,13 @@ const FlowInstanceApiResponse = FlowApiResponse;
|
|
|
10550
10567
|
const FindFlowsQuery = FindIntegrationLevelMembraneInterfaceQuery.omit({ parentId: true }).extend({
|
|
10551
10568
|
flowId: z.z.string().optional(),
|
|
10552
10569
|
universalFlowId: z.z.string().optional(),
|
|
10570
|
+
externalAppId: z.z
|
|
10571
|
+
.string()
|
|
10572
|
+
.optional()
|
|
10573
|
+
.meta({
|
|
10574
|
+
filterTitle: 'External App',
|
|
10575
|
+
referenceElementType: exports.WorkspaceElementType.App,
|
|
10576
|
+
}),
|
|
10553
10577
|
});
|
|
10554
10578
|
const CreateFlowRequest = FlowEditableProperties;
|
|
10555
10579
|
const UpdateFlowRequest = CreateFlowRequest.extend({}).partial();
|
|
@@ -10627,6 +10651,9 @@ const FindFlowRunsQuery = PaginationQuery.extend({
|
|
|
10627
10651
|
filterTitle: 'Connection',
|
|
10628
10652
|
referenceElementType: exports.WorkspaceElementType.Connection,
|
|
10629
10653
|
}),
|
|
10654
|
+
externalAppId: z.z.string().optional().meta({
|
|
10655
|
+
hidden: true,
|
|
10656
|
+
}),
|
|
10630
10657
|
from: z.z
|
|
10631
10658
|
.string()
|
|
10632
10659
|
.optional()
|
|
@@ -10789,6 +10816,13 @@ const FieldMappingInstanceApiResponse = FieldMappingApiResponse;
|
|
|
10789
10816
|
const FindFieldMappingsQuery = FindIntegrationLevelMembraneInterfaceQuery.omit({ parentId: true }).extend({
|
|
10790
10817
|
fieldMappingId: z.z.string().optional(),
|
|
10791
10818
|
universalFieldMappingId: z.z.string().optional(),
|
|
10819
|
+
externalAppId: z.z
|
|
10820
|
+
.string()
|
|
10821
|
+
.optional()
|
|
10822
|
+
.meta({
|
|
10823
|
+
filterTitle: 'External App',
|
|
10824
|
+
referenceElementType: exports.WorkspaceElementType.App,
|
|
10825
|
+
}),
|
|
10792
10826
|
});
|
|
10793
10827
|
const FindFieldMappingInstancesQuery = FindFieldMappingsQuery;
|
|
10794
10828
|
const CreateFieldMappingRequest = FieldMappingEditableProperties;
|
|
@@ -11060,6 +11094,9 @@ const ListExternalEventLogRecordsQuery = PaginationQuery.extend({
|
|
|
11060
11094
|
.meta({
|
|
11061
11095
|
filterTitle: 'Status',
|
|
11062
11096
|
}),
|
|
11097
|
+
externalAppId: z.z.string().optional().meta({
|
|
11098
|
+
hidden: true,
|
|
11099
|
+
}),
|
|
11063
11100
|
from: z.z
|
|
11064
11101
|
.string()
|
|
11065
11102
|
.optional()
|
|
@@ -11149,6 +11186,9 @@ const FindExternalEventPullsQuery = PaginationQuery.extend({
|
|
|
11149
11186
|
.meta({
|
|
11150
11187
|
filterTitle: 'Status',
|
|
11151
11188
|
}),
|
|
11189
|
+
externalAppId: z.z.string().optional().meta({
|
|
11190
|
+
hidden: true,
|
|
11191
|
+
}),
|
|
11152
11192
|
from: z.z
|
|
11153
11193
|
.string()
|
|
11154
11194
|
.optional()
|
|
@@ -11196,6 +11236,9 @@ const ListExternalEventSubscriptionsQuery = PaginationQuery.merge(IncludeArchive
|
|
|
11196
11236
|
filterTitle: 'Integration',
|
|
11197
11237
|
referenceElementType: exports.WorkspaceElementType.Integration,
|
|
11198
11238
|
}),
|
|
11239
|
+
externalAppId: z.z.string().optional().meta({
|
|
11240
|
+
hidden: true,
|
|
11241
|
+
}),
|
|
11199
11242
|
});
|
|
11200
11243
|
const ExternalEventSubscriptionApiResponse = BaseExternalEventSubscription.extend({
|
|
11201
11244
|
user: BaseCustomer.optional(),
|
|
@@ -11278,6 +11321,9 @@ const ListExternalApiLogsQuery = PaginationQuery.extend({
|
|
|
11278
11321
|
filterTitle: 'Status',
|
|
11279
11322
|
isFlag: true,
|
|
11280
11323
|
}),
|
|
11324
|
+
externalAppId: z.z.string().optional().meta({
|
|
11325
|
+
hidden: true,
|
|
11326
|
+
}),
|
|
11281
11327
|
from: z.z
|
|
11282
11328
|
.string()
|
|
11283
11329
|
.optional()
|
|
@@ -11302,6 +11348,7 @@ const ExternalApiLogApiResponse = z.z.object({
|
|
|
11302
11348
|
customerId: z.z.string(),
|
|
11303
11349
|
integrationId: z.z.string(),
|
|
11304
11350
|
connectionId: z.z.string(),
|
|
11351
|
+
externalAppId: z.z.string().optional(),
|
|
11305
11352
|
statusCode: z.z.number(),
|
|
11306
11353
|
isSuccess: z.z.boolean(),
|
|
11307
11354
|
s3Uri: z.z.string(),
|
|
@@ -11341,6 +11388,9 @@ const ListIncomingWebhooksQuery = PaginationQuery.extend({
|
|
|
11341
11388
|
.meta({
|
|
11342
11389
|
filterTitle: 'Status',
|
|
11343
11390
|
}),
|
|
11391
|
+
externalAppId: z.z.string().optional().meta({
|
|
11392
|
+
hidden: true,
|
|
11393
|
+
}),
|
|
11344
11394
|
from: z.z
|
|
11345
11395
|
.string()
|
|
11346
11396
|
.optional()
|
|
@@ -11363,6 +11413,7 @@ const IncomingWebhookApiResponse = z.z.object({
|
|
|
11363
11413
|
customerId: z.z.string(),
|
|
11364
11414
|
integrationId: z.z.string(),
|
|
11365
11415
|
connectionId: z.z.string(),
|
|
11416
|
+
externalAppId: z.z.string().optional(),
|
|
11366
11417
|
subscriptionId: z.z.string(),
|
|
11367
11418
|
userId: z.z.string(),
|
|
11368
11419
|
uuid: z.z.string(),
|
|
@@ -11376,12 +11427,14 @@ const IncomingWebhookApiResponse = z.z.object({
|
|
|
11376
11427
|
|
|
11377
11428
|
const CreateConnectedProductRequest = z.z.object({
|
|
11378
11429
|
name: z.z.string(),
|
|
11430
|
+
key: z.z.string().optional(),
|
|
11379
11431
|
type: ConnectedProductType,
|
|
11380
11432
|
audience: ConnectedProductAudience.optional(),
|
|
11381
11433
|
parameters: AiAgentParameters.optional(),
|
|
11382
11434
|
});
|
|
11383
11435
|
const UpdateConnectedProductRequest = z.z.object({
|
|
11384
11436
|
name: z.z.string().optional(),
|
|
11437
|
+
key: z.z.string().optional(),
|
|
11385
11438
|
type: ConnectedProductType.optional(),
|
|
11386
11439
|
audience: ConnectedProductAudience.optional(),
|
|
11387
11440
|
parameters: AiAgentParameters.optional(),
|
|
@@ -11390,7 +11443,6 @@ const FindConnectedProductsQuery = z.z
|
|
|
11390
11443
|
.object({
|
|
11391
11444
|
type: ConnectedProductType.optional(),
|
|
11392
11445
|
audience: ConnectedProductAudience.optional(),
|
|
11393
|
-
key: z.z.string().optional(),
|
|
11394
11446
|
})
|
|
11395
11447
|
.merge(PaginationQuery)
|
|
11396
11448
|
.merge(SearchQuery)
|
|
@@ -11716,6 +11768,26 @@ const WorkspaceElementSpecs = {
|
|
|
11716
11768
|
apiPath: 'customers',
|
|
11717
11769
|
name: 'Customer',
|
|
11718
11770
|
namePlural: 'Customers',
|
|
11771
|
+
relatedIntegrationLayerElements: [
|
|
11772
|
+
exports.WorkspaceElementType.Connection,
|
|
11773
|
+
exports.WorkspaceElementType.Action,
|
|
11774
|
+
exports.WorkspaceElementType.Flow,
|
|
11775
|
+
exports.WorkspaceElementType.ExternalEventSubscription,
|
|
11776
|
+
exports.WorkspaceElementType.AppEventSubscription,
|
|
11777
|
+
exports.WorkspaceElementType.DataSource,
|
|
11778
|
+
exports.WorkspaceElementType.FieldMapping,
|
|
11779
|
+
exports.WorkspaceElementType.AppDataSchemaInstance,
|
|
11780
|
+
exports.WorkspaceElementType.DataLinkTableInstance,
|
|
11781
|
+
],
|
|
11782
|
+
relatedActivityLogElements: [
|
|
11783
|
+
exports.WorkspaceElementType.FlowRun,
|
|
11784
|
+
exports.WorkspaceElementType.ActionRunLogRecord,
|
|
11785
|
+
exports.WorkspaceElementType.ExternalApiLogRecord,
|
|
11786
|
+
exports.WorkspaceElementType.IncomingWebhookLogRecord,
|
|
11787
|
+
exports.WorkspaceElementType.ExternalEventLogRecord,
|
|
11788
|
+
exports.WorkspaceElementType.ExternalEventPull,
|
|
11789
|
+
exports.WorkspaceElementType.AppEventLogRecord,
|
|
11790
|
+
],
|
|
11719
11791
|
},
|
|
11720
11792
|
[exports.WorkspaceElementType.App]: {
|
|
11721
11793
|
type: exports.WorkspaceElementType.App,
|
|
@@ -11724,6 +11796,21 @@ const WorkspaceElementSpecs = {
|
|
|
11724
11796
|
namePlural: 'Apps',
|
|
11725
11797
|
hasKey: true,
|
|
11726
11798
|
hasPublicLayer: true,
|
|
11799
|
+
relatedIntegrationLayerElements: [
|
|
11800
|
+
exports.WorkspaceElementType.Connection,
|
|
11801
|
+
exports.WorkspaceElementType.Action,
|
|
11802
|
+
exports.WorkspaceElementType.Flow,
|
|
11803
|
+
exports.WorkspaceElementType.DataSource,
|
|
11804
|
+
exports.WorkspaceElementType.FieldMapping,
|
|
11805
|
+
],
|
|
11806
|
+
relatedActivityLogElements: [
|
|
11807
|
+
exports.WorkspaceElementType.FlowRun,
|
|
11808
|
+
exports.WorkspaceElementType.ActionRunLogRecord,
|
|
11809
|
+
exports.WorkspaceElementType.ExternalApiLogRecord,
|
|
11810
|
+
exports.WorkspaceElementType.IncomingWebhookLogRecord,
|
|
11811
|
+
exports.WorkspaceElementType.ExternalEventLogRecord,
|
|
11812
|
+
exports.WorkspaceElementType.ExternalEventPull,
|
|
11813
|
+
],
|
|
11727
11814
|
},
|
|
11728
11815
|
[exports.WorkspaceElementType.Integration]: {
|
|
11729
11816
|
type: exports.WorkspaceElementType.Integration,
|
|
@@ -11733,6 +11820,27 @@ const WorkspaceElementSpecs = {
|
|
|
11733
11820
|
editablePropertiesSchema: IntegrationEditableProperties,
|
|
11734
11821
|
exportPropertiesSchema: IntegrationExportProperties,
|
|
11735
11822
|
hasKey: true,
|
|
11823
|
+
relatedIntegrationLayerElements: [
|
|
11824
|
+
exports.WorkspaceElementType.Connection,
|
|
11825
|
+
exports.WorkspaceElementType.Package,
|
|
11826
|
+
exports.WorkspaceElementType.Action,
|
|
11827
|
+
exports.WorkspaceElementType.Flow,
|
|
11828
|
+
exports.WorkspaceElementType.ExternalEventSubscription,
|
|
11829
|
+
exports.WorkspaceElementType.AppEventSubscription,
|
|
11830
|
+
exports.WorkspaceElementType.DataSource,
|
|
11831
|
+
exports.WorkspaceElementType.FieldMapping,
|
|
11832
|
+
exports.WorkspaceElementType.AppDataSchemaInstance,
|
|
11833
|
+
exports.WorkspaceElementType.DataLinkTableInstance,
|
|
11834
|
+
],
|
|
11835
|
+
relatedActivityLogElements: [
|
|
11836
|
+
exports.WorkspaceElementType.FlowRun,
|
|
11837
|
+
exports.WorkspaceElementType.ActionRunLogRecord,
|
|
11838
|
+
exports.WorkspaceElementType.ExternalApiLogRecord,
|
|
11839
|
+
exports.WorkspaceElementType.IncomingWebhookLogRecord,
|
|
11840
|
+
exports.WorkspaceElementType.ExternalEventLogRecord,
|
|
11841
|
+
exports.WorkspaceElementType.ExternalEventPull,
|
|
11842
|
+
exports.WorkspaceElementType.AppEventLogRecord,
|
|
11843
|
+
],
|
|
11736
11844
|
},
|
|
11737
11845
|
[exports.WorkspaceElementType.Connector]: {
|
|
11738
11846
|
type: exports.WorkspaceElementType.Connector,
|
|
@@ -11751,6 +11859,26 @@ const WorkspaceElementSpecs = {
|
|
|
11751
11859
|
exportPropertiesSchema: ConnectionExportProperties,
|
|
11752
11860
|
hasKey: false,
|
|
11753
11861
|
hasUuid: false,
|
|
11862
|
+
statsKey: 'connections',
|
|
11863
|
+
relatedIntegrationLayerElements: [
|
|
11864
|
+
exports.WorkspaceElementType.Action,
|
|
11865
|
+
exports.WorkspaceElementType.Flow,
|
|
11866
|
+
exports.WorkspaceElementType.ExternalEventSubscription,
|
|
11867
|
+
exports.WorkspaceElementType.AppEventSubscription,
|
|
11868
|
+
exports.WorkspaceElementType.DataSource,
|
|
11869
|
+
exports.WorkspaceElementType.FieldMapping,
|
|
11870
|
+
exports.WorkspaceElementType.AppDataSchemaInstance,
|
|
11871
|
+
exports.WorkspaceElementType.DataLinkTableInstance,
|
|
11872
|
+
],
|
|
11873
|
+
relatedActivityLogElements: [
|
|
11874
|
+
exports.WorkspaceElementType.FlowRun,
|
|
11875
|
+
exports.WorkspaceElementType.ActionRunLogRecord,
|
|
11876
|
+
exports.WorkspaceElementType.ExternalApiLogRecord,
|
|
11877
|
+
exports.WorkspaceElementType.IncomingWebhookLogRecord,
|
|
11878
|
+
exports.WorkspaceElementType.ExternalEventLogRecord,
|
|
11879
|
+
exports.WorkspaceElementType.ExternalEventPull,
|
|
11880
|
+
exports.WorkspaceElementType.AppEventLogRecord,
|
|
11881
|
+
],
|
|
11754
11882
|
},
|
|
11755
11883
|
[exports.WorkspaceElementType.Package]: {
|
|
11756
11884
|
type: exports.WorkspaceElementType.Package,
|
|
@@ -11767,6 +11895,7 @@ const WorkspaceElementSpecs = {
|
|
|
11767
11895
|
hasParentChildRelationship: true,
|
|
11768
11896
|
hasPublicLayer: true,
|
|
11769
11897
|
isProOnly: true,
|
|
11898
|
+
statsKey: 'packages',
|
|
11770
11899
|
},
|
|
11771
11900
|
[exports.WorkspaceElementType.ActionInstance]: {
|
|
11772
11901
|
type: exports.WorkspaceElementType.ActionInstance,
|
|
@@ -11793,12 +11922,14 @@ const WorkspaceElementSpecs = {
|
|
|
11793
11922
|
hasParentChildRelationship: true,
|
|
11794
11923
|
hasKey: true,
|
|
11795
11924
|
hasPublicLayer: true,
|
|
11925
|
+
statsKey: 'actions',
|
|
11796
11926
|
},
|
|
11797
11927
|
[exports.WorkspaceElementType.ActionRunLogRecord]: {
|
|
11798
11928
|
type: exports.WorkspaceElementType.ActionRunLogRecord,
|
|
11799
11929
|
apiPath: 'action-run-logs',
|
|
11800
11930
|
name: 'Action Run Log Record',
|
|
11801
11931
|
namePlural: 'Action Run Log Records',
|
|
11932
|
+
statsKey: 'actionRunLogs',
|
|
11802
11933
|
},
|
|
11803
11934
|
[exports.WorkspaceElementType.Flow]: {
|
|
11804
11935
|
type: exports.WorkspaceElementType.Flow,
|
|
@@ -11816,6 +11947,7 @@ const WorkspaceElementSpecs = {
|
|
|
11816
11947
|
hasParentChildRelationship: true,
|
|
11817
11948
|
hasKey: true,
|
|
11818
11949
|
isProOnly: true,
|
|
11950
|
+
statsKey: 'flows',
|
|
11819
11951
|
},
|
|
11820
11952
|
[exports.WorkspaceElementType.FlowInstance]: {
|
|
11821
11953
|
type: exports.WorkspaceElementType.FlowInstance,
|
|
@@ -11836,6 +11968,7 @@ const WorkspaceElementSpecs = {
|
|
|
11836
11968
|
name: 'Flow run',
|
|
11837
11969
|
namePlural: 'Flow runs',
|
|
11838
11970
|
isProOnly: true,
|
|
11971
|
+
statsKey: 'flowRuns',
|
|
11839
11972
|
},
|
|
11840
11973
|
[exports.WorkspaceElementType.FieldMapping]: {
|
|
11841
11974
|
type: exports.WorkspaceElementType.FieldMapping,
|
|
@@ -11853,6 +11986,7 @@ const WorkspaceElementSpecs = {
|
|
|
11853
11986
|
hasParentChildRelationship: true,
|
|
11854
11987
|
hasKey: true,
|
|
11855
11988
|
isProOnly: true,
|
|
11989
|
+
statsKey: 'fieldMappings',
|
|
11856
11990
|
},
|
|
11857
11991
|
[exports.WorkspaceElementType.FieldMappingInstance]: {
|
|
11858
11992
|
type: exports.WorkspaceElementType.FieldMappingInstance,
|
|
@@ -11882,6 +12016,7 @@ const WorkspaceElementSpecs = {
|
|
|
11882
12016
|
hasParentChildRelationship: true,
|
|
11883
12017
|
hasKey: true,
|
|
11884
12018
|
isProOnly: true,
|
|
12019
|
+
statsKey: 'dataSources',
|
|
11885
12020
|
},
|
|
11886
12021
|
[exports.WorkspaceElementType.DataSourceInstance]: {
|
|
11887
12022
|
type: exports.WorkspaceElementType.DataSourceInstance,
|
|
@@ -11916,6 +12051,7 @@ const WorkspaceElementSpecs = {
|
|
|
11916
12051
|
parentFieldKey: 'dataLinkTableId',
|
|
11917
12052
|
isMembraneInterface: true,
|
|
11918
12053
|
isProOnly: true,
|
|
12054
|
+
statsKey: 'dataLinkTableInstances',
|
|
11919
12055
|
},
|
|
11920
12056
|
[exports.WorkspaceElementType.AppEventType]: {
|
|
11921
12057
|
type: exports.WorkspaceElementType.AppEventType,
|
|
@@ -11936,6 +12072,7 @@ const WorkspaceElementSpecs = {
|
|
|
11936
12072
|
namePlural: 'App Event Subscriptions',
|
|
11937
12073
|
isMembraneInterface: true,
|
|
11938
12074
|
isProOnly: true,
|
|
12075
|
+
statsKey: 'appEventSubscriptions',
|
|
11939
12076
|
},
|
|
11940
12077
|
[exports.WorkspaceElementType.AppEventLogRecord]: {
|
|
11941
12078
|
type: exports.WorkspaceElementType.AppEventLogRecord,
|
|
@@ -11943,6 +12080,7 @@ const WorkspaceElementSpecs = {
|
|
|
11943
12080
|
name: 'App Event Log Record',
|
|
11944
12081
|
namePlural: 'App Event Log Records',
|
|
11945
12082
|
isProOnly: true,
|
|
12083
|
+
statsKey: 'appEvents',
|
|
11946
12084
|
},
|
|
11947
12085
|
[exports.WorkspaceElementType.AppDataSchema]: {
|
|
11948
12086
|
type: exports.WorkspaceElementType.AppDataSchema,
|
|
@@ -11964,6 +12102,7 @@ const WorkspaceElementSpecs = {
|
|
|
11964
12102
|
parentFieldKey: 'appDataSchemaId',
|
|
11965
12103
|
isMembraneInterface: true,
|
|
11966
12104
|
isProOnly: true,
|
|
12105
|
+
statsKey: 'appDataSchemaInstances',
|
|
11967
12106
|
},
|
|
11968
12107
|
[exports.WorkspaceElementType.ExternalEventSubscription]: {
|
|
11969
12108
|
type: exports.WorkspaceElementType.ExternalEventSubscription,
|
|
@@ -11972,6 +12111,7 @@ const WorkspaceElementSpecs = {
|
|
|
11972
12111
|
namePlural: 'External Event Subscriptions',
|
|
11973
12112
|
isMembraneInterface: true,
|
|
11974
12113
|
isProOnly: true,
|
|
12114
|
+
statsKey: 'externalEventSubscriptions',
|
|
11975
12115
|
},
|
|
11976
12116
|
[exports.WorkspaceElementType.ExternalEventLogRecord]: {
|
|
11977
12117
|
type: exports.WorkspaceElementType.ExternalEventLogRecord,
|
|
@@ -11979,6 +12119,7 @@ const WorkspaceElementSpecs = {
|
|
|
11979
12119
|
name: 'External Event Log Record',
|
|
11980
12120
|
namePlural: 'External Event Log Records',
|
|
11981
12121
|
isProOnly: true,
|
|
12122
|
+
statsKey: 'externalEvents',
|
|
11982
12123
|
},
|
|
11983
12124
|
[exports.WorkspaceElementType.ExternalEventPull]: {
|
|
11984
12125
|
type: exports.WorkspaceElementType.ExternalEventPull,
|
|
@@ -11986,6 +12127,21 @@ const WorkspaceElementSpecs = {
|
|
|
11986
12127
|
name: 'External Event Pull',
|
|
11987
12128
|
namePlural: 'External Event Pulls',
|
|
11988
12129
|
isProOnly: true,
|
|
12130
|
+
statsKey: 'externalEventPulls',
|
|
12131
|
+
},
|
|
12132
|
+
[exports.WorkspaceElementType.ExternalApiLogRecord]: {
|
|
12133
|
+
type: exports.WorkspaceElementType.ExternalApiLogRecord,
|
|
12134
|
+
apiPath: 'external-api-logs',
|
|
12135
|
+
name: 'External API Log Record',
|
|
12136
|
+
namePlural: 'External API Log Records',
|
|
12137
|
+
statsKey: 'externalApiLogs',
|
|
12138
|
+
},
|
|
12139
|
+
[exports.WorkspaceElementType.IncomingWebhookLogRecord]: {
|
|
12140
|
+
type: exports.WorkspaceElementType.IncomingWebhookLogRecord,
|
|
12141
|
+
apiPath: 'incoming-webhooks',
|
|
12142
|
+
name: 'Incoming Webhook Log Record',
|
|
12143
|
+
namePlural: 'Incoming Webhook Log Records',
|
|
12144
|
+
statsKey: 'externalWebhookLogs',
|
|
11989
12145
|
},
|
|
11990
12146
|
[exports.WorkspaceElementType.Screen]: {
|
|
11991
12147
|
type: exports.WorkspaceElementType.Screen,
|
|
@@ -12389,20 +12545,21 @@ const StatsFilterQuery = z.z.object({
|
|
|
12389
12545
|
tenantId: z.z.string().optional(),
|
|
12390
12546
|
integrationId: z.z.string().optional(),
|
|
12391
12547
|
connectionId: z.z.string().optional(),
|
|
12548
|
+
externalAppId: z.z.string().optional(),
|
|
12392
12549
|
});
|
|
12393
12550
|
const ActivityStatsQuery = StatsFilterQuery.extend({
|
|
12394
12551
|
startDatetime: z.z.string().datetime({ offset: true }),
|
|
12552
|
+
elementType: z.z.enum(exports.WorkspaceElementType).optional(),
|
|
12553
|
+
});
|
|
12554
|
+
const IntegrationLayerStatsQuery = StatsFilterQuery.extend({
|
|
12555
|
+
elementType: z.z.enum(exports.WorkspaceElementType).optional(),
|
|
12395
12556
|
});
|
|
12396
|
-
const IntegrationLayerStatsQuery = StatsFilterQuery;
|
|
12397
12557
|
const ActionRunsStatsQuery = z.z.object({
|
|
12398
|
-
actionId: z.z.string()
|
|
12399
|
-
connectionActionId: z.z.string().optional(),
|
|
12558
|
+
actionId: z.z.string(),
|
|
12400
12559
|
startDatetime: z.z.string().datetime({ offset: true }),
|
|
12401
12560
|
});
|
|
12402
12561
|
const FlowRunsStatsQuery = z.z.object({
|
|
12403
|
-
|
|
12404
|
-
connectionFlowId: z.z.string().optional(),
|
|
12405
|
-
universalFlowId: z.z.string().optional(),
|
|
12562
|
+
flowId: z.z.string(),
|
|
12406
12563
|
startDatetime: z.z.string().datetime({ offset: true }),
|
|
12407
12564
|
});
|
|
12408
12565
|
const WORKSPACE_ELEMENTS_STATS_COLLECTIONS = [
|
|
@@ -12963,6 +13120,7 @@ const WORKSPACE_SIZE_LIMITS = [
|
|
|
12963
13120
|
const EDITABLE_LIMITS = [
|
|
12964
13121
|
'parallelApiRequestsPerCustomer',
|
|
12965
13122
|
'parallelBackgroundJobsPerCustomer',
|
|
13123
|
+
'parallelCustomCodeRunsPerCustomer',
|
|
12966
13124
|
'apiRequestsPerCustomerPerSecond',
|
|
12967
13125
|
'apiRequestsPerCustomerPerHour',
|
|
12968
13126
|
'externalEventsPerCustomerPerDay',
|
|
@@ -15336,6 +15494,7 @@ const AgentSession = z.z.object({
|
|
|
15336
15494
|
hasWorker: z.z.boolean(),
|
|
15337
15495
|
isExternal: z.z.boolean().optional(),
|
|
15338
15496
|
agentName: z.z.enum(exports.AgentName).optional(),
|
|
15497
|
+
output: z.z.record(z.z.string(), z.z.unknown()).optional(),
|
|
15339
15498
|
createdAt: z.z.iso.datetime(),
|
|
15340
15499
|
updatedAt: z.z.iso.datetime(),
|
|
15341
15500
|
});
|
|
@@ -15363,6 +15522,7 @@ const PatchAgentSessionSchema = z.z.object({
|
|
|
15363
15522
|
cost: z.z.number().optional(),
|
|
15364
15523
|
error: ErrorDataSchema.optional(),
|
|
15365
15524
|
opencodeSessionUuid: z.z.string().optional(),
|
|
15525
|
+
output: z.z.record(z.z.string(), z.z.unknown()).optional(),
|
|
15366
15526
|
status: z.z.enum(exports.AgentSessionStatus).optional(),
|
|
15367
15527
|
});
|
|
15368
15528
|
|
|
@@ -15763,6 +15923,17 @@ class UI {
|
|
|
15763
15923
|
});
|
|
15764
15924
|
});
|
|
15765
15925
|
}
|
|
15926
|
+
async UNSAFE_agentSession(options) {
|
|
15927
|
+
const { url, postData } = await this.client.getScreensPostData('agent-session', {
|
|
15928
|
+
sessionId: options.sessionId,
|
|
15929
|
+
theme: options.theme,
|
|
15930
|
+
});
|
|
15931
|
+
return new Promise((resolve) => {
|
|
15932
|
+
return openIframeWithPost(url, postData, {
|
|
15933
|
+
onClose: () => resolve(),
|
|
15934
|
+
});
|
|
15935
|
+
});
|
|
15936
|
+
}
|
|
15766
15937
|
}
|
|
15767
15938
|
|
|
15768
15939
|
class MembraneClient extends MembraneApiClient {
|