@membranehq/sdk 0.17.6 → 0.18.1
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 +17 -4
- package/dist/bundle.js +26 -5
- package/dist/bundle.js.map +1 -1
- package/dist/dts/agent/session.d.ts +2 -0
- package/dist/dts/alerts/types.d.ts +14 -0
- package/dist/dts/client-tokens/types.d.ts +5 -5
- package/dist/dts/orgs/types.d.ts +2 -0
- 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 -2
- package/dist/dts/workspace-elements/api/connectors-api.d.ts +1 -0
- package/dist/dts/workspace-elements/api/customers-api.d.ts +1 -0
- 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-apps-api.d.ts +1 -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/api/integrations-api.d.ts +1 -0
- package/dist/dts/workspace-elements/base/action-run-log-records/index.d.ts +1 -0
- package/dist/dts/workspace-elements/base/app-data-schemas/index.d.ts +4 -5
- package/dist/dts/workspace-elements/base/connectors/index.d.ts +7 -7
- package/dist/dts/workspace-elements/base/data-link-tables/index.d.ts +0 -1
- package/dist/dts/workspace-elements/base/data-sources/index.d.ts +0 -2
- 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/field-mappings/index.d.ts +0 -3
- package/dist/dts/workspace-elements/base/flow-runs/index.d.ts +1 -0
- package/dist/dts/workspace-elements/base/flows/index.d.ts +0 -2
- package/dist/dts/workspace-elements/base/integrations/index.d.ts +8 -10
- package/dist/dts/workspace-elements/types.d.ts +3 -0
- package/dist/dts/workspace-elements-catalog/index.d.ts +3 -0
- package/dist/dts/workspaces/types.d.ts +7 -1
- package/dist/index.browser.d.mts +99 -49
- package/dist/index.browser.d.ts +99 -49
- package/dist/index.browser.js +214 -17
- package/dist/index.browser.js.map +1 -1
- package/dist/index.browser.mjs +214 -17
- package/dist/index.browser.mjs.map +1 -1
- package/dist/index.node.d.mts +99 -49
- package/dist/index.node.d.ts +99 -49
- package/dist/index.node.js +214 -17
- package/dist/index.node.js.map +1 -1
- package/dist/index.node.mjs +214 -17
- 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),
|
|
@@ -3744,6 +3747,9 @@ const FieldMappingEditableProperties = BaseIntegrationLevelMembraneInterfaceEdit
|
|
|
3744
3747
|
}).extend(FieldMappingSpecificProperties.shape);
|
|
3745
3748
|
const FieldMappingExportProperties = BaseIntegrationLevelMembraneInterfaceExportProperties.extend(FieldMappingSpecificProperties.shape).omit({
|
|
3746
3749
|
connectionId: true,
|
|
3750
|
+
fieldMappingId: true,
|
|
3751
|
+
universalFieldMappingId: true,
|
|
3752
|
+
dataSourceId: true,
|
|
3747
3753
|
});
|
|
3748
3754
|
const FieldMappingReadOnlyProperties = BaseIntegrationLevelMembraneInterfaceReadOnlyProperties.extend({
|
|
3749
3755
|
...TenantLayerElement.partial().shape,
|
|
@@ -9106,6 +9112,7 @@ const GeneratedConnectorOption = z.object({
|
|
|
9106
9112
|
description: z.string().optional(),
|
|
9107
9113
|
inputSchema: DataSchema.optional(),
|
|
9108
9114
|
connectorParametersSchema: DataSchema.optional(),
|
|
9115
|
+
oAuthCallbackUri: z.string().optional(),
|
|
9109
9116
|
});
|
|
9110
9117
|
const ConnectorOptions = z.record(z.string(), ConnectorOption);
|
|
9111
9118
|
const WritableConnectorVersionData = ConnectorAuthWithFunctions.extend({
|
|
@@ -9152,6 +9159,8 @@ const WriteableConnectorFields = z
|
|
|
9152
9159
|
.extend(WritableConnectorVersionData.shape);
|
|
9153
9160
|
const ConnectorExportProperties = WriteableConnectorFields.extend({
|
|
9154
9161
|
uuid: z.string().optional(),
|
|
9162
|
+
}).omit({
|
|
9163
|
+
externalAppId: true,
|
|
9155
9164
|
});
|
|
9156
9165
|
const UpdateConnectorRequest = WriteableConnectorFields;
|
|
9157
9166
|
const CreateConnectorRequest = WriteableConnectorFields.extend({
|
|
@@ -9213,6 +9222,8 @@ const DataSourceExportProperties = BaseIntegrationLevelMembraneInterfaceExportPr
|
|
|
9213
9222
|
})
|
|
9214
9223
|
.omit({
|
|
9215
9224
|
connectionId: true,
|
|
9225
|
+
dataSourceId: true,
|
|
9226
|
+
universalDataSourceId: true,
|
|
9216
9227
|
});
|
|
9217
9228
|
const DataSourceReadOnlyProperties = BaseIntegrationLevelMembraneInterfaceReadOnlyProperties.extend({
|
|
9218
9229
|
...TenantLayerElement.partial().shape,
|
|
@@ -9703,6 +9714,8 @@ const FlowEditableProperties = BaseIntegrationLevelMembraneInterfaceEditableProp
|
|
|
9703
9714
|
}).extend(FlowSpecificProperties.shape);
|
|
9704
9715
|
const FlowExportProperties = BaseIntegrationLevelMembraneInterfaceExportProperties.extend(FlowSpecificProperties.shape).omit({
|
|
9705
9716
|
connectionId: true,
|
|
9717
|
+
flowId: true,
|
|
9718
|
+
universalFlowId: true,
|
|
9706
9719
|
});
|
|
9707
9720
|
const FlowReadOnlyProperties = BaseIntegrationLevelMembraneInterfaceReadOnlyProperties.extend({
|
|
9708
9721
|
...TenantLayerElement.partial().shape,
|
|
@@ -9824,7 +9837,10 @@ const IntegrationEditableProperties = BaseMembraneInterfaceEditableProperties.ex
|
|
|
9824
9837
|
parameters: z.record(z.string(), z.any()).optional(),
|
|
9825
9838
|
optionsConfig: IntegrationOptions.optional(),
|
|
9826
9839
|
});
|
|
9827
|
-
const IntegrationExportProperties = IntegrationEditableProperties
|
|
9840
|
+
const IntegrationExportProperties = IntegrationEditableProperties.omit({
|
|
9841
|
+
connectorId: true,
|
|
9842
|
+
externalAppId: true,
|
|
9843
|
+
});
|
|
9828
9844
|
const AppliedToIntegrations = (elementSchema) => z.array(z.object({
|
|
9829
9845
|
element: elementSchema,
|
|
9830
9846
|
integration: BaseIntegration,
|
|
@@ -9923,6 +9939,7 @@ const DataLinkTableSpecificProperties = z.object({
|
|
|
9923
9939
|
const DataLinkTableEditableProperties = BaseMembraneInterfaceEditableProperties.extend(DataLinkTableSpecificProperties.shape);
|
|
9924
9940
|
const DataLinkTableExportProperties = BaseMembraneInterfaceEditableProperties.extend(DataLinkTableSpecificProperties.shape).omit({
|
|
9925
9941
|
connectionId: true,
|
|
9942
|
+
dataLinkTableId: true,
|
|
9926
9943
|
});
|
|
9927
9944
|
const DataLinkTableReadOnlyProperties = BaseMembraneInterfaceReadOnlyProperties.extend({
|
|
9928
9945
|
...TenantLayerElement.partial().shape,
|
|
@@ -10020,7 +10037,9 @@ const AppDataSchemaSpecificProperties = z.object({
|
|
|
10020
10037
|
code: z.string().optional(),
|
|
10021
10038
|
});
|
|
10022
10039
|
const AppDataSchemaEditableProperties = BaseMembraneInterfaceEditableProperties.extend(AppDataSchemaSpecificProperties.shape);
|
|
10023
|
-
const AppDataSchemaExportProperties = AppDataSchemaEditableProperties.
|
|
10040
|
+
const AppDataSchemaExportProperties = AppDataSchemaEditableProperties.omit({
|
|
10041
|
+
appDataSchemaId: true,
|
|
10042
|
+
});
|
|
10024
10043
|
const AppDataSchemaReadOnlyProperties = BaseMembraneInterfaceReadOnlyProperties.extend({
|
|
10025
10044
|
...TenantLayerElement.partial().shape,
|
|
10026
10045
|
appDataSchemaRevision: z.string().optional(),
|
|
@@ -10258,6 +10277,9 @@ const FindActionRunLogsQuery = PaginationQuery.extend({
|
|
|
10258
10277
|
.meta({
|
|
10259
10278
|
filterTitle: 'Status',
|
|
10260
10279
|
}),
|
|
10280
|
+
externalAppId: z.string().optional().meta({
|
|
10281
|
+
hidden: true,
|
|
10282
|
+
}),
|
|
10261
10283
|
from: z
|
|
10262
10284
|
.string()
|
|
10263
10285
|
.optional()
|
|
@@ -10298,6 +10320,13 @@ const FindConnectionsQuery = PaginationQuery.merge(SearchQuery)
|
|
|
10298
10320
|
.meta({
|
|
10299
10321
|
filterTitle: 'Connector',
|
|
10300
10322
|
}),
|
|
10323
|
+
externalAppId: z
|
|
10324
|
+
.string()
|
|
10325
|
+
.optional()
|
|
10326
|
+
.meta({
|
|
10327
|
+
filterTitle: 'External App',
|
|
10328
|
+
referenceElementType: WorkspaceElementType.App,
|
|
10329
|
+
}),
|
|
10301
10330
|
disconnected: zodBooleanCoercion()
|
|
10302
10331
|
.optional()
|
|
10303
10332
|
.meta({
|
|
@@ -10318,10 +10347,6 @@ const FindConnectionsQuery = PaginationQuery.merge(SearchQuery)
|
|
|
10318
10347
|
.string()
|
|
10319
10348
|
.optional()
|
|
10320
10349
|
.meta({ hidden: true }),
|
|
10321
|
-
externalAppId: z.string().optional().meta({
|
|
10322
|
-
filterTitle: 'External App',
|
|
10323
|
-
referenceElementType: WorkspaceElementType.App,
|
|
10324
|
-
}),
|
|
10325
10350
|
integrationKey: z
|
|
10326
10351
|
.string()
|
|
10327
10352
|
.optional()
|
|
@@ -10344,6 +10369,7 @@ const ConnectionExportProperties = ConnectionEditableProperties.omit({
|
|
|
10344
10369
|
credentials: true,
|
|
10345
10370
|
connectorParameters: true,
|
|
10346
10371
|
input: true,
|
|
10372
|
+
externalAppId: true,
|
|
10347
10373
|
});
|
|
10348
10374
|
const ConnectionTestResponse = z.object({
|
|
10349
10375
|
success: z.boolean(),
|
|
@@ -10427,7 +10453,7 @@ const ConnectUIOptions = ConnectPayload.omit({ input: true, redirectUri: true })
|
|
|
10427
10453
|
theme: z.enum(['light', 'dark', 'auto']).optional(),
|
|
10428
10454
|
});
|
|
10429
10455
|
|
|
10430
|
-
const ListPublicConnectorsQuery = PaginationQuery.extend({
|
|
10456
|
+
const ListPublicConnectorsQuery = PaginationQuery.merge(IncludeArchivedQuery).extend({
|
|
10431
10457
|
search: z.string().optional(),
|
|
10432
10458
|
});
|
|
10433
10459
|
|
|
@@ -10444,6 +10470,13 @@ const DataSourceInstanceApiResponse = DataSourceApiResponse;
|
|
|
10444
10470
|
const FindDataSourcesQuery = FindIntegrationLevelMembraneInterfaceQuery.omit({ parentId: true }).extend({
|
|
10445
10471
|
dataSourceId: z.string().optional(),
|
|
10446
10472
|
universalDataSourceId: z.string().optional(),
|
|
10473
|
+
externalAppId: z
|
|
10474
|
+
.string()
|
|
10475
|
+
.optional()
|
|
10476
|
+
.meta({
|
|
10477
|
+
filterTitle: 'External App',
|
|
10478
|
+
referenceElementType: WorkspaceElementType.App,
|
|
10479
|
+
}),
|
|
10447
10480
|
});
|
|
10448
10481
|
const FindDataSourceInstancesQuery = FindDataSourcesQuery;
|
|
10449
10482
|
const CreateDataSourceRequest = DataSourceEditableProperties;
|
|
@@ -10498,7 +10531,7 @@ const FindDataSourceInstanceSyncsQuery = ListDataSourceInstancesForConnectionQue
|
|
|
10498
10531
|
dataSourceInstanceId: z.string().optional(),
|
|
10499
10532
|
});
|
|
10500
10533
|
|
|
10501
|
-
const ListExternalAppsQuery = PaginationQuery.extend({
|
|
10534
|
+
const ListExternalAppsQuery = PaginationQuery.merge(IncludeArchivedQuery).extend({
|
|
10502
10535
|
search: z.string().optional(),
|
|
10503
10536
|
category: z
|
|
10504
10537
|
.string()
|
|
@@ -10527,6 +10560,13 @@ const FlowInstanceApiResponse = FlowApiResponse;
|
|
|
10527
10560
|
const FindFlowsQuery = FindIntegrationLevelMembraneInterfaceQuery.omit({ parentId: true }).extend({
|
|
10528
10561
|
flowId: z.string().optional(),
|
|
10529
10562
|
universalFlowId: z.string().optional(),
|
|
10563
|
+
externalAppId: z
|
|
10564
|
+
.string()
|
|
10565
|
+
.optional()
|
|
10566
|
+
.meta({
|
|
10567
|
+
filterTitle: 'External App',
|
|
10568
|
+
referenceElementType: WorkspaceElementType.App,
|
|
10569
|
+
}),
|
|
10530
10570
|
});
|
|
10531
10571
|
const CreateFlowRequest = FlowEditableProperties;
|
|
10532
10572
|
const UpdateFlowRequest = CreateFlowRequest.extend({}).partial();
|
|
@@ -10604,6 +10644,9 @@ const FindFlowRunsQuery = PaginationQuery.extend({
|
|
|
10604
10644
|
filterTitle: 'Connection',
|
|
10605
10645
|
referenceElementType: WorkspaceElementType.Connection,
|
|
10606
10646
|
}),
|
|
10647
|
+
externalAppId: z.string().optional().meta({
|
|
10648
|
+
hidden: true,
|
|
10649
|
+
}),
|
|
10607
10650
|
from: z
|
|
10608
10651
|
.string()
|
|
10609
10652
|
.optional()
|
|
@@ -10641,7 +10684,8 @@ const FindIntegrationsQuery = z
|
|
|
10641
10684
|
appUuid: z.string().optional(),
|
|
10642
10685
|
})
|
|
10643
10686
|
.merge(PaginationQuery)
|
|
10644
|
-
.merge(SearchQuery)
|
|
10687
|
+
.merge(SearchQuery)
|
|
10688
|
+
.merge(IncludeArchivedQuery);
|
|
10645
10689
|
const IntegrationAuthUi = z.object({
|
|
10646
10690
|
schema: z.any().optional(),
|
|
10647
10691
|
helpUri: z.string().optional(),
|
|
@@ -10748,7 +10792,8 @@ const FindCustomersQuery = z
|
|
|
10748
10792
|
}),
|
|
10749
10793
|
})
|
|
10750
10794
|
.merge(PaginationQuery)
|
|
10751
|
-
.merge(SearchQuery)
|
|
10795
|
+
.merge(SearchQuery)
|
|
10796
|
+
.merge(IncludeArchivedQuery);
|
|
10752
10797
|
const CustomerSelector = z.object({ id: z.string() });
|
|
10753
10798
|
const CustomerApiResponse = BaseCustomer;
|
|
10754
10799
|
const TenantSelfResponse = BaseCustomer.extend({
|
|
@@ -10766,6 +10811,13 @@ const FieldMappingInstanceApiResponse = FieldMappingApiResponse;
|
|
|
10766
10811
|
const FindFieldMappingsQuery = FindIntegrationLevelMembraneInterfaceQuery.omit({ parentId: true }).extend({
|
|
10767
10812
|
fieldMappingId: z.string().optional(),
|
|
10768
10813
|
universalFieldMappingId: z.string().optional(),
|
|
10814
|
+
externalAppId: z
|
|
10815
|
+
.string()
|
|
10816
|
+
.optional()
|
|
10817
|
+
.meta({
|
|
10818
|
+
filterTitle: 'External App',
|
|
10819
|
+
referenceElementType: WorkspaceElementType.App,
|
|
10820
|
+
}),
|
|
10769
10821
|
});
|
|
10770
10822
|
const FindFieldMappingInstancesQuery = FindFieldMappingsQuery;
|
|
10771
10823
|
const CreateFieldMappingRequest = FieldMappingEditableProperties;
|
|
@@ -11037,6 +11089,9 @@ const ListExternalEventLogRecordsQuery = PaginationQuery.extend({
|
|
|
11037
11089
|
.meta({
|
|
11038
11090
|
filterTitle: 'Status',
|
|
11039
11091
|
}),
|
|
11092
|
+
externalAppId: z.string().optional().meta({
|
|
11093
|
+
hidden: true,
|
|
11094
|
+
}),
|
|
11040
11095
|
from: z
|
|
11041
11096
|
.string()
|
|
11042
11097
|
.optional()
|
|
@@ -11126,6 +11181,9 @@ const FindExternalEventPullsQuery = PaginationQuery.extend({
|
|
|
11126
11181
|
.meta({
|
|
11127
11182
|
filterTitle: 'Status',
|
|
11128
11183
|
}),
|
|
11184
|
+
externalAppId: z.string().optional().meta({
|
|
11185
|
+
hidden: true,
|
|
11186
|
+
}),
|
|
11129
11187
|
from: z
|
|
11130
11188
|
.string()
|
|
11131
11189
|
.optional()
|
|
@@ -11173,6 +11231,9 @@ const ListExternalEventSubscriptionsQuery = PaginationQuery.merge(IncludeArchive
|
|
|
11173
11231
|
filterTitle: 'Integration',
|
|
11174
11232
|
referenceElementType: WorkspaceElementType.Integration,
|
|
11175
11233
|
}),
|
|
11234
|
+
externalAppId: z.string().optional().meta({
|
|
11235
|
+
hidden: true,
|
|
11236
|
+
}),
|
|
11176
11237
|
});
|
|
11177
11238
|
const ExternalEventSubscriptionApiResponse = BaseExternalEventSubscription.extend({
|
|
11178
11239
|
user: BaseCustomer.optional(),
|
|
@@ -11255,6 +11316,9 @@ const ListExternalApiLogsQuery = PaginationQuery.extend({
|
|
|
11255
11316
|
filterTitle: 'Status',
|
|
11256
11317
|
isFlag: true,
|
|
11257
11318
|
}),
|
|
11319
|
+
externalAppId: z.string().optional().meta({
|
|
11320
|
+
hidden: true,
|
|
11321
|
+
}),
|
|
11258
11322
|
from: z
|
|
11259
11323
|
.string()
|
|
11260
11324
|
.optional()
|
|
@@ -11279,6 +11343,7 @@ const ExternalApiLogApiResponse = z.object({
|
|
|
11279
11343
|
customerId: z.string(),
|
|
11280
11344
|
integrationId: z.string(),
|
|
11281
11345
|
connectionId: z.string(),
|
|
11346
|
+
externalAppId: z.string().optional(),
|
|
11282
11347
|
statusCode: z.number(),
|
|
11283
11348
|
isSuccess: z.boolean(),
|
|
11284
11349
|
s3Uri: z.string(),
|
|
@@ -11318,6 +11383,9 @@ const ListIncomingWebhooksQuery = PaginationQuery.extend({
|
|
|
11318
11383
|
.meta({
|
|
11319
11384
|
filterTitle: 'Status',
|
|
11320
11385
|
}),
|
|
11386
|
+
externalAppId: z.string().optional().meta({
|
|
11387
|
+
hidden: true,
|
|
11388
|
+
}),
|
|
11321
11389
|
from: z
|
|
11322
11390
|
.string()
|
|
11323
11391
|
.optional()
|
|
@@ -11340,6 +11408,7 @@ const IncomingWebhookApiResponse = z.object({
|
|
|
11340
11408
|
customerId: z.string(),
|
|
11341
11409
|
integrationId: z.string(),
|
|
11342
11410
|
connectionId: z.string(),
|
|
11411
|
+
externalAppId: z.string().optional(),
|
|
11343
11412
|
subscriptionId: z.string(),
|
|
11344
11413
|
userId: z.string(),
|
|
11345
11414
|
uuid: z.string(),
|
|
@@ -11353,12 +11422,14 @@ const IncomingWebhookApiResponse = z.object({
|
|
|
11353
11422
|
|
|
11354
11423
|
const CreateConnectedProductRequest = z.object({
|
|
11355
11424
|
name: z.string(),
|
|
11425
|
+
key: z.string().optional(),
|
|
11356
11426
|
type: ConnectedProductType,
|
|
11357
11427
|
audience: ConnectedProductAudience.optional(),
|
|
11358
11428
|
parameters: AiAgentParameters.optional(),
|
|
11359
11429
|
});
|
|
11360
11430
|
const UpdateConnectedProductRequest = z.object({
|
|
11361
11431
|
name: z.string().optional(),
|
|
11432
|
+
key: z.string().optional(),
|
|
11362
11433
|
type: ConnectedProductType.optional(),
|
|
11363
11434
|
audience: ConnectedProductAudience.optional(),
|
|
11364
11435
|
parameters: AiAgentParameters.optional(),
|
|
@@ -11367,7 +11438,6 @@ const FindConnectedProductsQuery = z
|
|
|
11367
11438
|
.object({
|
|
11368
11439
|
type: ConnectedProductType.optional(),
|
|
11369
11440
|
audience: ConnectedProductAudience.optional(),
|
|
11370
|
-
key: z.string().optional(),
|
|
11371
11441
|
})
|
|
11372
11442
|
.merge(PaginationQuery)
|
|
11373
11443
|
.merge(SearchQuery)
|
|
@@ -11693,6 +11763,26 @@ const WorkspaceElementSpecs = {
|
|
|
11693
11763
|
apiPath: 'customers',
|
|
11694
11764
|
name: 'Customer',
|
|
11695
11765
|
namePlural: 'Customers',
|
|
11766
|
+
relatedIntegrationLayerElements: [
|
|
11767
|
+
WorkspaceElementType.Connection,
|
|
11768
|
+
WorkspaceElementType.Action,
|
|
11769
|
+
WorkspaceElementType.Flow,
|
|
11770
|
+
WorkspaceElementType.ExternalEventSubscription,
|
|
11771
|
+
WorkspaceElementType.AppEventSubscription,
|
|
11772
|
+
WorkspaceElementType.DataSource,
|
|
11773
|
+
WorkspaceElementType.FieldMapping,
|
|
11774
|
+
WorkspaceElementType.AppDataSchemaInstance,
|
|
11775
|
+
WorkspaceElementType.DataLinkTableInstance,
|
|
11776
|
+
],
|
|
11777
|
+
relatedActivityLogElements: [
|
|
11778
|
+
WorkspaceElementType.FlowRun,
|
|
11779
|
+
WorkspaceElementType.ActionRunLogRecord,
|
|
11780
|
+
WorkspaceElementType.ExternalApiLogRecord,
|
|
11781
|
+
WorkspaceElementType.IncomingWebhookLogRecord,
|
|
11782
|
+
WorkspaceElementType.ExternalEventLogRecord,
|
|
11783
|
+
WorkspaceElementType.ExternalEventPull,
|
|
11784
|
+
WorkspaceElementType.AppEventLogRecord,
|
|
11785
|
+
],
|
|
11696
11786
|
},
|
|
11697
11787
|
[WorkspaceElementType.App]: {
|
|
11698
11788
|
type: WorkspaceElementType.App,
|
|
@@ -11701,6 +11791,21 @@ const WorkspaceElementSpecs = {
|
|
|
11701
11791
|
namePlural: 'Apps',
|
|
11702
11792
|
hasKey: true,
|
|
11703
11793
|
hasPublicLayer: true,
|
|
11794
|
+
relatedIntegrationLayerElements: [
|
|
11795
|
+
WorkspaceElementType.Connection,
|
|
11796
|
+
WorkspaceElementType.Action,
|
|
11797
|
+
WorkspaceElementType.Flow,
|
|
11798
|
+
WorkspaceElementType.DataSource,
|
|
11799
|
+
WorkspaceElementType.FieldMapping,
|
|
11800
|
+
],
|
|
11801
|
+
relatedActivityLogElements: [
|
|
11802
|
+
WorkspaceElementType.FlowRun,
|
|
11803
|
+
WorkspaceElementType.ActionRunLogRecord,
|
|
11804
|
+
WorkspaceElementType.ExternalApiLogRecord,
|
|
11805
|
+
WorkspaceElementType.IncomingWebhookLogRecord,
|
|
11806
|
+
WorkspaceElementType.ExternalEventLogRecord,
|
|
11807
|
+
WorkspaceElementType.ExternalEventPull,
|
|
11808
|
+
],
|
|
11704
11809
|
},
|
|
11705
11810
|
[WorkspaceElementType.Integration]: {
|
|
11706
11811
|
type: WorkspaceElementType.Integration,
|
|
@@ -11710,6 +11815,27 @@ const WorkspaceElementSpecs = {
|
|
|
11710
11815
|
editablePropertiesSchema: IntegrationEditableProperties,
|
|
11711
11816
|
exportPropertiesSchema: IntegrationExportProperties,
|
|
11712
11817
|
hasKey: true,
|
|
11818
|
+
relatedIntegrationLayerElements: [
|
|
11819
|
+
WorkspaceElementType.Connection,
|
|
11820
|
+
WorkspaceElementType.Package,
|
|
11821
|
+
WorkspaceElementType.Action,
|
|
11822
|
+
WorkspaceElementType.Flow,
|
|
11823
|
+
WorkspaceElementType.ExternalEventSubscription,
|
|
11824
|
+
WorkspaceElementType.AppEventSubscription,
|
|
11825
|
+
WorkspaceElementType.DataSource,
|
|
11826
|
+
WorkspaceElementType.FieldMapping,
|
|
11827
|
+
WorkspaceElementType.AppDataSchemaInstance,
|
|
11828
|
+
WorkspaceElementType.DataLinkTableInstance,
|
|
11829
|
+
],
|
|
11830
|
+
relatedActivityLogElements: [
|
|
11831
|
+
WorkspaceElementType.FlowRun,
|
|
11832
|
+
WorkspaceElementType.ActionRunLogRecord,
|
|
11833
|
+
WorkspaceElementType.ExternalApiLogRecord,
|
|
11834
|
+
WorkspaceElementType.IncomingWebhookLogRecord,
|
|
11835
|
+
WorkspaceElementType.ExternalEventLogRecord,
|
|
11836
|
+
WorkspaceElementType.ExternalEventPull,
|
|
11837
|
+
WorkspaceElementType.AppEventLogRecord,
|
|
11838
|
+
],
|
|
11713
11839
|
},
|
|
11714
11840
|
[WorkspaceElementType.Connector]: {
|
|
11715
11841
|
type: WorkspaceElementType.Connector,
|
|
@@ -11728,6 +11854,26 @@ const WorkspaceElementSpecs = {
|
|
|
11728
11854
|
exportPropertiesSchema: ConnectionExportProperties,
|
|
11729
11855
|
hasKey: false,
|
|
11730
11856
|
hasUuid: false,
|
|
11857
|
+
statsKey: 'connections',
|
|
11858
|
+
relatedIntegrationLayerElements: [
|
|
11859
|
+
WorkspaceElementType.Action,
|
|
11860
|
+
WorkspaceElementType.Flow,
|
|
11861
|
+
WorkspaceElementType.ExternalEventSubscription,
|
|
11862
|
+
WorkspaceElementType.AppEventSubscription,
|
|
11863
|
+
WorkspaceElementType.DataSource,
|
|
11864
|
+
WorkspaceElementType.FieldMapping,
|
|
11865
|
+
WorkspaceElementType.AppDataSchemaInstance,
|
|
11866
|
+
WorkspaceElementType.DataLinkTableInstance,
|
|
11867
|
+
],
|
|
11868
|
+
relatedActivityLogElements: [
|
|
11869
|
+
WorkspaceElementType.FlowRun,
|
|
11870
|
+
WorkspaceElementType.ActionRunLogRecord,
|
|
11871
|
+
WorkspaceElementType.ExternalApiLogRecord,
|
|
11872
|
+
WorkspaceElementType.IncomingWebhookLogRecord,
|
|
11873
|
+
WorkspaceElementType.ExternalEventLogRecord,
|
|
11874
|
+
WorkspaceElementType.ExternalEventPull,
|
|
11875
|
+
WorkspaceElementType.AppEventLogRecord,
|
|
11876
|
+
],
|
|
11731
11877
|
},
|
|
11732
11878
|
[WorkspaceElementType.Package]: {
|
|
11733
11879
|
type: WorkspaceElementType.Package,
|
|
@@ -11744,6 +11890,7 @@ const WorkspaceElementSpecs = {
|
|
|
11744
11890
|
hasParentChildRelationship: true,
|
|
11745
11891
|
hasPublicLayer: true,
|
|
11746
11892
|
isProOnly: true,
|
|
11893
|
+
statsKey: 'packages',
|
|
11747
11894
|
},
|
|
11748
11895
|
[WorkspaceElementType.ActionInstance]: {
|
|
11749
11896
|
type: WorkspaceElementType.ActionInstance,
|
|
@@ -11770,12 +11917,14 @@ const WorkspaceElementSpecs = {
|
|
|
11770
11917
|
hasParentChildRelationship: true,
|
|
11771
11918
|
hasKey: true,
|
|
11772
11919
|
hasPublicLayer: true,
|
|
11920
|
+
statsKey: 'actions',
|
|
11773
11921
|
},
|
|
11774
11922
|
[WorkspaceElementType.ActionRunLogRecord]: {
|
|
11775
11923
|
type: WorkspaceElementType.ActionRunLogRecord,
|
|
11776
11924
|
apiPath: 'action-run-logs',
|
|
11777
11925
|
name: 'Action Run Log Record',
|
|
11778
11926
|
namePlural: 'Action Run Log Records',
|
|
11927
|
+
statsKey: 'actionRunLogs',
|
|
11779
11928
|
},
|
|
11780
11929
|
[WorkspaceElementType.Flow]: {
|
|
11781
11930
|
type: WorkspaceElementType.Flow,
|
|
@@ -11793,6 +11942,7 @@ const WorkspaceElementSpecs = {
|
|
|
11793
11942
|
hasParentChildRelationship: true,
|
|
11794
11943
|
hasKey: true,
|
|
11795
11944
|
isProOnly: true,
|
|
11945
|
+
statsKey: 'flows',
|
|
11796
11946
|
},
|
|
11797
11947
|
[WorkspaceElementType.FlowInstance]: {
|
|
11798
11948
|
type: WorkspaceElementType.FlowInstance,
|
|
@@ -11813,6 +11963,7 @@ const WorkspaceElementSpecs = {
|
|
|
11813
11963
|
name: 'Flow run',
|
|
11814
11964
|
namePlural: 'Flow runs',
|
|
11815
11965
|
isProOnly: true,
|
|
11966
|
+
statsKey: 'flowRuns',
|
|
11816
11967
|
},
|
|
11817
11968
|
[WorkspaceElementType.FieldMapping]: {
|
|
11818
11969
|
type: WorkspaceElementType.FieldMapping,
|
|
@@ -11830,6 +11981,7 @@ const WorkspaceElementSpecs = {
|
|
|
11830
11981
|
hasParentChildRelationship: true,
|
|
11831
11982
|
hasKey: true,
|
|
11832
11983
|
isProOnly: true,
|
|
11984
|
+
statsKey: 'fieldMappings',
|
|
11833
11985
|
},
|
|
11834
11986
|
[WorkspaceElementType.FieldMappingInstance]: {
|
|
11835
11987
|
type: WorkspaceElementType.FieldMappingInstance,
|
|
@@ -11859,6 +12011,7 @@ const WorkspaceElementSpecs = {
|
|
|
11859
12011
|
hasParentChildRelationship: true,
|
|
11860
12012
|
hasKey: true,
|
|
11861
12013
|
isProOnly: true,
|
|
12014
|
+
statsKey: 'dataSources',
|
|
11862
12015
|
},
|
|
11863
12016
|
[WorkspaceElementType.DataSourceInstance]: {
|
|
11864
12017
|
type: WorkspaceElementType.DataSourceInstance,
|
|
@@ -11893,6 +12046,7 @@ const WorkspaceElementSpecs = {
|
|
|
11893
12046
|
parentFieldKey: 'dataLinkTableId',
|
|
11894
12047
|
isMembraneInterface: true,
|
|
11895
12048
|
isProOnly: true,
|
|
12049
|
+
statsKey: 'dataLinkTableInstances',
|
|
11896
12050
|
},
|
|
11897
12051
|
[WorkspaceElementType.AppEventType]: {
|
|
11898
12052
|
type: WorkspaceElementType.AppEventType,
|
|
@@ -11913,6 +12067,7 @@ const WorkspaceElementSpecs = {
|
|
|
11913
12067
|
namePlural: 'App Event Subscriptions',
|
|
11914
12068
|
isMembraneInterface: true,
|
|
11915
12069
|
isProOnly: true,
|
|
12070
|
+
statsKey: 'appEventSubscriptions',
|
|
11916
12071
|
},
|
|
11917
12072
|
[WorkspaceElementType.AppEventLogRecord]: {
|
|
11918
12073
|
type: WorkspaceElementType.AppEventLogRecord,
|
|
@@ -11920,6 +12075,7 @@ const WorkspaceElementSpecs = {
|
|
|
11920
12075
|
name: 'App Event Log Record',
|
|
11921
12076
|
namePlural: 'App Event Log Records',
|
|
11922
12077
|
isProOnly: true,
|
|
12078
|
+
statsKey: 'appEvents',
|
|
11923
12079
|
},
|
|
11924
12080
|
[WorkspaceElementType.AppDataSchema]: {
|
|
11925
12081
|
type: WorkspaceElementType.AppDataSchema,
|
|
@@ -11941,6 +12097,7 @@ const WorkspaceElementSpecs = {
|
|
|
11941
12097
|
parentFieldKey: 'appDataSchemaId',
|
|
11942
12098
|
isMembraneInterface: true,
|
|
11943
12099
|
isProOnly: true,
|
|
12100
|
+
statsKey: 'appDataSchemaInstances',
|
|
11944
12101
|
},
|
|
11945
12102
|
[WorkspaceElementType.ExternalEventSubscription]: {
|
|
11946
12103
|
type: WorkspaceElementType.ExternalEventSubscription,
|
|
@@ -11949,6 +12106,7 @@ const WorkspaceElementSpecs = {
|
|
|
11949
12106
|
namePlural: 'External Event Subscriptions',
|
|
11950
12107
|
isMembraneInterface: true,
|
|
11951
12108
|
isProOnly: true,
|
|
12109
|
+
statsKey: 'externalEventSubscriptions',
|
|
11952
12110
|
},
|
|
11953
12111
|
[WorkspaceElementType.ExternalEventLogRecord]: {
|
|
11954
12112
|
type: WorkspaceElementType.ExternalEventLogRecord,
|
|
@@ -11956,6 +12114,7 @@ const WorkspaceElementSpecs = {
|
|
|
11956
12114
|
name: 'External Event Log Record',
|
|
11957
12115
|
namePlural: 'External Event Log Records',
|
|
11958
12116
|
isProOnly: true,
|
|
12117
|
+
statsKey: 'externalEvents',
|
|
11959
12118
|
},
|
|
11960
12119
|
[WorkspaceElementType.ExternalEventPull]: {
|
|
11961
12120
|
type: WorkspaceElementType.ExternalEventPull,
|
|
@@ -11963,6 +12122,21 @@ const WorkspaceElementSpecs = {
|
|
|
11963
12122
|
name: 'External Event Pull',
|
|
11964
12123
|
namePlural: 'External Event Pulls',
|
|
11965
12124
|
isProOnly: true,
|
|
12125
|
+
statsKey: 'externalEventPulls',
|
|
12126
|
+
},
|
|
12127
|
+
[WorkspaceElementType.ExternalApiLogRecord]: {
|
|
12128
|
+
type: WorkspaceElementType.ExternalApiLogRecord,
|
|
12129
|
+
apiPath: 'external-api-logs',
|
|
12130
|
+
name: 'External API Log Record',
|
|
12131
|
+
namePlural: 'External API Log Records',
|
|
12132
|
+
statsKey: 'externalApiLogs',
|
|
12133
|
+
},
|
|
12134
|
+
[WorkspaceElementType.IncomingWebhookLogRecord]: {
|
|
12135
|
+
type: WorkspaceElementType.IncomingWebhookLogRecord,
|
|
12136
|
+
apiPath: 'incoming-webhooks',
|
|
12137
|
+
name: 'Incoming Webhook Log Record',
|
|
12138
|
+
namePlural: 'Incoming Webhook Log Records',
|
|
12139
|
+
statsKey: 'externalWebhookLogs',
|
|
11966
12140
|
},
|
|
11967
12141
|
[WorkspaceElementType.Screen]: {
|
|
11968
12142
|
type: WorkspaceElementType.Screen,
|
|
@@ -12366,20 +12540,21 @@ const StatsFilterQuery = z.object({
|
|
|
12366
12540
|
tenantId: z.string().optional(),
|
|
12367
12541
|
integrationId: z.string().optional(),
|
|
12368
12542
|
connectionId: z.string().optional(),
|
|
12543
|
+
externalAppId: z.string().optional(),
|
|
12369
12544
|
});
|
|
12370
12545
|
const ActivityStatsQuery = StatsFilterQuery.extend({
|
|
12371
12546
|
startDatetime: z.string().datetime({ offset: true }),
|
|
12547
|
+
elementType: z.enum(WorkspaceElementType).optional(),
|
|
12548
|
+
});
|
|
12549
|
+
const IntegrationLayerStatsQuery = StatsFilterQuery.extend({
|
|
12550
|
+
elementType: z.enum(WorkspaceElementType).optional(),
|
|
12372
12551
|
});
|
|
12373
|
-
const IntegrationLayerStatsQuery = StatsFilterQuery;
|
|
12374
12552
|
const ActionRunsStatsQuery = z.object({
|
|
12375
|
-
actionId: z.string()
|
|
12376
|
-
connectionActionId: z.string().optional(),
|
|
12553
|
+
actionId: z.string(),
|
|
12377
12554
|
startDatetime: z.string().datetime({ offset: true }),
|
|
12378
12555
|
});
|
|
12379
12556
|
const FlowRunsStatsQuery = z.object({
|
|
12380
|
-
|
|
12381
|
-
connectionFlowId: z.string().optional(),
|
|
12382
|
-
universalFlowId: z.string().optional(),
|
|
12557
|
+
flowId: z.string(),
|
|
12383
12558
|
startDatetime: z.string().datetime({ offset: true }),
|
|
12384
12559
|
});
|
|
12385
12560
|
const WORKSPACE_ELEMENTS_STATS_COLLECTIONS = [
|
|
@@ -12584,6 +12759,8 @@ var AlertType;
|
|
|
12584
12759
|
AlertType["totalNumberOfWorkspaceElements"] = "totalNumberOfWorkspaceElements";
|
|
12585
12760
|
AlertType["instantTasksQueueSize"] = "instantTasksQueueSize";
|
|
12586
12761
|
AlertType["queuedTasksQueueSize"] = "queuedTasksQueueSize";
|
|
12762
|
+
AlertType["flowRunsQueueSizePerConnection"] = "flowRunsQueueSizePerConnection";
|
|
12763
|
+
AlertType["eventsProcessingQueueSizePerConnection"] = "eventsProcessingQueueSizePerConnection";
|
|
12587
12764
|
AlertType["parallelApiRequests"] = "parallelApiRequests";
|
|
12588
12765
|
AlertType["testAlert"] = "testAlert";
|
|
12589
12766
|
})(AlertType || (AlertType = {}));
|
|
@@ -12619,6 +12796,8 @@ const ALERT_TYPE_CATEGORIES = {
|
|
|
12619
12796
|
[AlertType.totalNumberOfWorkspaceElements]: AlertCategory.WORKSPACE_SIZE,
|
|
12620
12797
|
[AlertType.instantTasksQueueSize]: AlertCategory.WORKSPACE_SIZE,
|
|
12621
12798
|
[AlertType.queuedTasksQueueSize]: AlertCategory.WORKSPACE_SIZE,
|
|
12799
|
+
[AlertType.flowRunsQueueSizePerConnection]: AlertCategory.WORKSPACE_SIZE,
|
|
12800
|
+
[AlertType.eventsProcessingQueueSizePerConnection]: AlertCategory.WORKSPACE_SIZE,
|
|
12622
12801
|
[AlertType.parallelApiRequests]: AlertCategory.RATE_LIMIT,
|
|
12623
12802
|
};
|
|
12624
12803
|
const Alert = z.object({
|
|
@@ -12716,6 +12895,8 @@ function getAlertTypeDisplayName(alertType) {
|
|
|
12716
12895
|
[AlertType.totalNumberOfWorkspaceElements]: 'Total Number of Workspace Elements',
|
|
12717
12896
|
[AlertType.instantTasksQueueSize]: 'Instant Tasks Queue Size',
|
|
12718
12897
|
[AlertType.queuedTasksQueueSize]: 'Queued Tasks Queue Size',
|
|
12898
|
+
[AlertType.flowRunsQueueSizePerConnection]: 'Flow Runs Queue Size Per Connection',
|
|
12899
|
+
[AlertType.eventsProcessingQueueSizePerConnection]: 'Events Processing Queue Size Per Connection',
|
|
12719
12900
|
[AlertType.parallelApiRequests]: 'Parallel API Requests',
|
|
12720
12901
|
};
|
|
12721
12902
|
return names[alertType] || alertType;
|
|
@@ -12803,6 +12984,8 @@ var WorkspaceSizeLimits;
|
|
|
12803
12984
|
WorkspaceSizeLimits["TotalNumberOfWorkspaceElements"] = "totalNumberOfWorkspaceElements";
|
|
12804
12985
|
WorkspaceSizeLimits["InstantTasksQueueSize"] = "instantTasksQueueSize";
|
|
12805
12986
|
WorkspaceSizeLimits["QueuedTasksQueueSize"] = "queuedTasksQueueSize";
|
|
12987
|
+
WorkspaceSizeLimits["FlowRunsQueueSizePerConnection"] = "flowRunsQueueSizePerConnection";
|
|
12988
|
+
WorkspaceSizeLimits["EventsProcessingQueueSizePerConnection"] = "eventsProcessingQueueSizePerConnection";
|
|
12806
12989
|
})(WorkspaceSizeLimits || (WorkspaceSizeLimits = {}));
|
|
12807
12990
|
var CustomerLimits;
|
|
12808
12991
|
(function (CustomerLimits) {
|
|
@@ -12940,6 +13123,7 @@ const WORKSPACE_SIZE_LIMITS = [
|
|
|
12940
13123
|
const EDITABLE_LIMITS = [
|
|
12941
13124
|
'parallelApiRequestsPerCustomer',
|
|
12942
13125
|
'parallelBackgroundJobsPerCustomer',
|
|
13126
|
+
'parallelCustomCodeRunsPerCustomer',
|
|
12943
13127
|
'apiRequestsPerCustomerPerSecond',
|
|
12944
13128
|
'apiRequestsPerCustomerPerHour',
|
|
12945
13129
|
'externalEventsPerCustomerPerDay',
|
|
@@ -15313,6 +15497,7 @@ const AgentSession = z.object({
|
|
|
15313
15497
|
hasWorker: z.boolean(),
|
|
15314
15498
|
isExternal: z.boolean().optional(),
|
|
15315
15499
|
agentName: z.enum(AgentName).optional(),
|
|
15500
|
+
output: z.record(z.string(), z.unknown()).optional(),
|
|
15316
15501
|
createdAt: z.iso.datetime(),
|
|
15317
15502
|
updatedAt: z.iso.datetime(),
|
|
15318
15503
|
});
|
|
@@ -15340,6 +15525,7 @@ const PatchAgentSessionSchema = z.object({
|
|
|
15340
15525
|
cost: z.number().optional(),
|
|
15341
15526
|
error: ErrorDataSchema.optional(),
|
|
15342
15527
|
opencodeSessionUuid: z.string().optional(),
|
|
15528
|
+
output: z.record(z.string(), z.unknown()).optional(),
|
|
15343
15529
|
status: z.enum(AgentSessionStatus).optional(),
|
|
15344
15530
|
});
|
|
15345
15531
|
|
|
@@ -15740,6 +15926,17 @@ class UI {
|
|
|
15740
15926
|
});
|
|
15741
15927
|
});
|
|
15742
15928
|
}
|
|
15929
|
+
async UNSAFE_agentSession(options) {
|
|
15930
|
+
const { url, postData } = await this.client.getScreensPostData('agent-session', {
|
|
15931
|
+
sessionId: options.sessionId,
|
|
15932
|
+
theme: options.theme,
|
|
15933
|
+
});
|
|
15934
|
+
return new Promise((resolve) => {
|
|
15935
|
+
return openIframeWithPost(url, postData, {
|
|
15936
|
+
onClose: () => resolve(),
|
|
15937
|
+
});
|
|
15938
|
+
});
|
|
15939
|
+
}
|
|
15743
15940
|
}
|
|
15744
15941
|
|
|
15745
15942
|
class MembraneClient extends MembraneApiClient {
|