@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.browser.mjs
CHANGED
|
@@ -3471,6 +3471,8 @@ var WorkspaceElementType;
|
|
|
3471
3471
|
WorkspaceElementType["ExternalEventPull"] = "external-event-pull";
|
|
3472
3472
|
WorkspaceElementType["Screen"] = "screen";
|
|
3473
3473
|
WorkspaceElementType["ActionRunLogRecord"] = "action-run-log-record";
|
|
3474
|
+
WorkspaceElementType["ExternalApiLogRecord"] = "external-api-log-record";
|
|
3475
|
+
WorkspaceElementType["IncomingWebhookLogRecord"] = "incoming-webhook-log-record";
|
|
3474
3476
|
WorkspaceElementType["ConnectedProduct"] = "connected-product";
|
|
3475
3477
|
})(WorkspaceElementType || (WorkspaceElementType = {}));
|
|
3476
3478
|
var WorkspaceEventType;
|
|
@@ -3669,6 +3671,7 @@ const ActivityLogRecord = TenantLayerElement.extend({
|
|
|
3669
3671
|
id: z.string(),
|
|
3670
3672
|
integrationId: z.string().optional(),
|
|
3671
3673
|
connectionId: z.string().optional(),
|
|
3674
|
+
externalAppId: z.string().optional(),
|
|
3672
3675
|
});
|
|
3673
3676
|
const WorkspaceElementSearchQuery = z.object({
|
|
3674
3677
|
q: z.string().min(1).max(200),
|
|
@@ -3742,6 +3745,9 @@ const FieldMappingEditableProperties = BaseIntegrationLevelMembraneInterfaceEdit
|
|
|
3742
3745
|
}).extend(FieldMappingSpecificProperties.shape);
|
|
3743
3746
|
const FieldMappingExportProperties = BaseIntegrationLevelMembraneInterfaceExportProperties.extend(FieldMappingSpecificProperties.shape).omit({
|
|
3744
3747
|
connectionId: true,
|
|
3748
|
+
fieldMappingId: true,
|
|
3749
|
+
universalFieldMappingId: true,
|
|
3750
|
+
dataSourceId: true,
|
|
3745
3751
|
});
|
|
3746
3752
|
const FieldMappingReadOnlyProperties = BaseIntegrationLevelMembraneInterfaceReadOnlyProperties.extend({
|
|
3747
3753
|
...TenantLayerElement.partial().shape,
|
|
@@ -9104,6 +9110,7 @@ const GeneratedConnectorOption = z.object({
|
|
|
9104
9110
|
description: z.string().optional(),
|
|
9105
9111
|
inputSchema: DataSchema.optional(),
|
|
9106
9112
|
connectorParametersSchema: DataSchema.optional(),
|
|
9113
|
+
oAuthCallbackUri: z.string().optional(),
|
|
9107
9114
|
});
|
|
9108
9115
|
const ConnectorOptions = z.record(z.string(), ConnectorOption);
|
|
9109
9116
|
const WritableConnectorVersionData = ConnectorAuthWithFunctions.extend({
|
|
@@ -9150,6 +9157,8 @@ const WriteableConnectorFields = z
|
|
|
9150
9157
|
.extend(WritableConnectorVersionData.shape);
|
|
9151
9158
|
const ConnectorExportProperties = WriteableConnectorFields.extend({
|
|
9152
9159
|
uuid: z.string().optional(),
|
|
9160
|
+
}).omit({
|
|
9161
|
+
externalAppId: true,
|
|
9153
9162
|
});
|
|
9154
9163
|
const UpdateConnectorRequest = WriteableConnectorFields;
|
|
9155
9164
|
const CreateConnectorRequest = WriteableConnectorFields.extend({
|
|
@@ -9211,6 +9220,8 @@ const DataSourceExportProperties = BaseIntegrationLevelMembraneInterfaceExportPr
|
|
|
9211
9220
|
})
|
|
9212
9221
|
.omit({
|
|
9213
9222
|
connectionId: true,
|
|
9223
|
+
dataSourceId: true,
|
|
9224
|
+
universalDataSourceId: true,
|
|
9214
9225
|
});
|
|
9215
9226
|
const DataSourceReadOnlyProperties = BaseIntegrationLevelMembraneInterfaceReadOnlyProperties.extend({
|
|
9216
9227
|
...TenantLayerElement.partial().shape,
|
|
@@ -9701,6 +9712,8 @@ const FlowEditableProperties = BaseIntegrationLevelMembraneInterfaceEditableProp
|
|
|
9701
9712
|
}).extend(FlowSpecificProperties.shape);
|
|
9702
9713
|
const FlowExportProperties = BaseIntegrationLevelMembraneInterfaceExportProperties.extend(FlowSpecificProperties.shape).omit({
|
|
9703
9714
|
connectionId: true,
|
|
9715
|
+
flowId: true,
|
|
9716
|
+
universalFlowId: true,
|
|
9704
9717
|
});
|
|
9705
9718
|
const FlowReadOnlyProperties = BaseIntegrationLevelMembraneInterfaceReadOnlyProperties.extend({
|
|
9706
9719
|
...TenantLayerElement.partial().shape,
|
|
@@ -9822,7 +9835,10 @@ const IntegrationEditableProperties = BaseMembraneInterfaceEditableProperties.ex
|
|
|
9822
9835
|
parameters: z.record(z.string(), z.any()).optional(),
|
|
9823
9836
|
optionsConfig: IntegrationOptions.optional(),
|
|
9824
9837
|
});
|
|
9825
|
-
const IntegrationExportProperties = IntegrationEditableProperties
|
|
9838
|
+
const IntegrationExportProperties = IntegrationEditableProperties.omit({
|
|
9839
|
+
connectorId: true,
|
|
9840
|
+
externalAppId: true,
|
|
9841
|
+
});
|
|
9826
9842
|
const AppliedToIntegrations = (elementSchema) => z.array(z.object({
|
|
9827
9843
|
element: elementSchema,
|
|
9828
9844
|
integration: BaseIntegration,
|
|
@@ -9921,6 +9937,7 @@ const DataLinkTableSpecificProperties = z.object({
|
|
|
9921
9937
|
const DataLinkTableEditableProperties = BaseMembraneInterfaceEditableProperties.extend(DataLinkTableSpecificProperties.shape);
|
|
9922
9938
|
const DataLinkTableExportProperties = BaseMembraneInterfaceEditableProperties.extend(DataLinkTableSpecificProperties.shape).omit({
|
|
9923
9939
|
connectionId: true,
|
|
9940
|
+
dataLinkTableId: true,
|
|
9924
9941
|
});
|
|
9925
9942
|
const DataLinkTableReadOnlyProperties = BaseMembraneInterfaceReadOnlyProperties.extend({
|
|
9926
9943
|
...TenantLayerElement.partial().shape,
|
|
@@ -10018,7 +10035,9 @@ const AppDataSchemaSpecificProperties = z.object({
|
|
|
10018
10035
|
code: z.string().optional(),
|
|
10019
10036
|
});
|
|
10020
10037
|
const AppDataSchemaEditableProperties = BaseMembraneInterfaceEditableProperties.extend(AppDataSchemaSpecificProperties.shape);
|
|
10021
|
-
const AppDataSchemaExportProperties = AppDataSchemaEditableProperties.
|
|
10038
|
+
const AppDataSchemaExportProperties = AppDataSchemaEditableProperties.omit({
|
|
10039
|
+
appDataSchemaId: true,
|
|
10040
|
+
});
|
|
10022
10041
|
const AppDataSchemaReadOnlyProperties = BaseMembraneInterfaceReadOnlyProperties.extend({
|
|
10023
10042
|
...TenantLayerElement.partial().shape,
|
|
10024
10043
|
appDataSchemaRevision: z.string().optional(),
|
|
@@ -10256,6 +10275,9 @@ const FindActionRunLogsQuery = PaginationQuery.extend({
|
|
|
10256
10275
|
.meta({
|
|
10257
10276
|
filterTitle: 'Status',
|
|
10258
10277
|
}),
|
|
10278
|
+
externalAppId: z.string().optional().meta({
|
|
10279
|
+
hidden: true,
|
|
10280
|
+
}),
|
|
10259
10281
|
from: z
|
|
10260
10282
|
.string()
|
|
10261
10283
|
.optional()
|
|
@@ -10296,6 +10318,13 @@ const FindConnectionsQuery = PaginationQuery.merge(SearchQuery)
|
|
|
10296
10318
|
.meta({
|
|
10297
10319
|
filterTitle: 'Connector',
|
|
10298
10320
|
}),
|
|
10321
|
+
externalAppId: z
|
|
10322
|
+
.string()
|
|
10323
|
+
.optional()
|
|
10324
|
+
.meta({
|
|
10325
|
+
filterTitle: 'External App',
|
|
10326
|
+
referenceElementType: WorkspaceElementType.App,
|
|
10327
|
+
}),
|
|
10299
10328
|
disconnected: zodBooleanCoercion()
|
|
10300
10329
|
.optional()
|
|
10301
10330
|
.meta({
|
|
@@ -10316,10 +10345,6 @@ const FindConnectionsQuery = PaginationQuery.merge(SearchQuery)
|
|
|
10316
10345
|
.string()
|
|
10317
10346
|
.optional()
|
|
10318
10347
|
.meta({ hidden: true }),
|
|
10319
|
-
externalAppId: z.string().optional().meta({
|
|
10320
|
-
filterTitle: 'External App',
|
|
10321
|
-
referenceElementType: WorkspaceElementType.App,
|
|
10322
|
-
}),
|
|
10323
10348
|
integrationKey: z
|
|
10324
10349
|
.string()
|
|
10325
10350
|
.optional()
|
|
@@ -10342,6 +10367,7 @@ const ConnectionExportProperties = ConnectionEditableProperties.omit({
|
|
|
10342
10367
|
credentials: true,
|
|
10343
10368
|
connectorParameters: true,
|
|
10344
10369
|
input: true,
|
|
10370
|
+
externalAppId: true,
|
|
10345
10371
|
});
|
|
10346
10372
|
const ConnectionTestResponse = z.object({
|
|
10347
10373
|
success: z.boolean(),
|
|
@@ -10425,7 +10451,7 @@ const ConnectUIOptions = ConnectPayload.omit({ input: true, redirectUri: true })
|
|
|
10425
10451
|
theme: z.enum(['light', 'dark', 'auto']).optional(),
|
|
10426
10452
|
});
|
|
10427
10453
|
|
|
10428
|
-
const ListPublicConnectorsQuery = PaginationQuery.extend({
|
|
10454
|
+
const ListPublicConnectorsQuery = PaginationQuery.merge(IncludeArchivedQuery).extend({
|
|
10429
10455
|
search: z.string().optional(),
|
|
10430
10456
|
});
|
|
10431
10457
|
|
|
@@ -10442,6 +10468,13 @@ const DataSourceInstanceApiResponse = DataSourceApiResponse;
|
|
|
10442
10468
|
const FindDataSourcesQuery = FindIntegrationLevelMembraneInterfaceQuery.omit({ parentId: true }).extend({
|
|
10443
10469
|
dataSourceId: z.string().optional(),
|
|
10444
10470
|
universalDataSourceId: z.string().optional(),
|
|
10471
|
+
externalAppId: z
|
|
10472
|
+
.string()
|
|
10473
|
+
.optional()
|
|
10474
|
+
.meta({
|
|
10475
|
+
filterTitle: 'External App',
|
|
10476
|
+
referenceElementType: WorkspaceElementType.App,
|
|
10477
|
+
}),
|
|
10445
10478
|
});
|
|
10446
10479
|
const FindDataSourceInstancesQuery = FindDataSourcesQuery;
|
|
10447
10480
|
const CreateDataSourceRequest = DataSourceEditableProperties;
|
|
@@ -10496,7 +10529,7 @@ const FindDataSourceInstanceSyncsQuery = ListDataSourceInstancesForConnectionQue
|
|
|
10496
10529
|
dataSourceInstanceId: z.string().optional(),
|
|
10497
10530
|
});
|
|
10498
10531
|
|
|
10499
|
-
const ListExternalAppsQuery = PaginationQuery.extend({
|
|
10532
|
+
const ListExternalAppsQuery = PaginationQuery.merge(IncludeArchivedQuery).extend({
|
|
10500
10533
|
search: z.string().optional(),
|
|
10501
10534
|
category: z
|
|
10502
10535
|
.string()
|
|
@@ -10525,6 +10558,13 @@ const FlowInstanceApiResponse = FlowApiResponse;
|
|
|
10525
10558
|
const FindFlowsQuery = FindIntegrationLevelMembraneInterfaceQuery.omit({ parentId: true }).extend({
|
|
10526
10559
|
flowId: z.string().optional(),
|
|
10527
10560
|
universalFlowId: z.string().optional(),
|
|
10561
|
+
externalAppId: z
|
|
10562
|
+
.string()
|
|
10563
|
+
.optional()
|
|
10564
|
+
.meta({
|
|
10565
|
+
filterTitle: 'External App',
|
|
10566
|
+
referenceElementType: WorkspaceElementType.App,
|
|
10567
|
+
}),
|
|
10528
10568
|
});
|
|
10529
10569
|
const CreateFlowRequest = FlowEditableProperties;
|
|
10530
10570
|
const UpdateFlowRequest = CreateFlowRequest.extend({}).partial();
|
|
@@ -10602,6 +10642,9 @@ const FindFlowRunsQuery = PaginationQuery.extend({
|
|
|
10602
10642
|
filterTitle: 'Connection',
|
|
10603
10643
|
referenceElementType: WorkspaceElementType.Connection,
|
|
10604
10644
|
}),
|
|
10645
|
+
externalAppId: z.string().optional().meta({
|
|
10646
|
+
hidden: true,
|
|
10647
|
+
}),
|
|
10605
10648
|
from: z
|
|
10606
10649
|
.string()
|
|
10607
10650
|
.optional()
|
|
@@ -10639,7 +10682,8 @@ const FindIntegrationsQuery = z
|
|
|
10639
10682
|
appUuid: z.string().optional(),
|
|
10640
10683
|
})
|
|
10641
10684
|
.merge(PaginationQuery)
|
|
10642
|
-
.merge(SearchQuery)
|
|
10685
|
+
.merge(SearchQuery)
|
|
10686
|
+
.merge(IncludeArchivedQuery);
|
|
10643
10687
|
const IntegrationAuthUi = z.object({
|
|
10644
10688
|
schema: z.any().optional(),
|
|
10645
10689
|
helpUri: z.string().optional(),
|
|
@@ -10746,7 +10790,8 @@ const FindCustomersQuery = z
|
|
|
10746
10790
|
}),
|
|
10747
10791
|
})
|
|
10748
10792
|
.merge(PaginationQuery)
|
|
10749
|
-
.merge(SearchQuery)
|
|
10793
|
+
.merge(SearchQuery)
|
|
10794
|
+
.merge(IncludeArchivedQuery);
|
|
10750
10795
|
const CustomerSelector = z.object({ id: z.string() });
|
|
10751
10796
|
const CustomerApiResponse = BaseCustomer;
|
|
10752
10797
|
const TenantSelfResponse = BaseCustomer.extend({
|
|
@@ -10764,6 +10809,13 @@ const FieldMappingInstanceApiResponse = FieldMappingApiResponse;
|
|
|
10764
10809
|
const FindFieldMappingsQuery = FindIntegrationLevelMembraneInterfaceQuery.omit({ parentId: true }).extend({
|
|
10765
10810
|
fieldMappingId: z.string().optional(),
|
|
10766
10811
|
universalFieldMappingId: z.string().optional(),
|
|
10812
|
+
externalAppId: z
|
|
10813
|
+
.string()
|
|
10814
|
+
.optional()
|
|
10815
|
+
.meta({
|
|
10816
|
+
filterTitle: 'External App',
|
|
10817
|
+
referenceElementType: WorkspaceElementType.App,
|
|
10818
|
+
}),
|
|
10767
10819
|
});
|
|
10768
10820
|
const FindFieldMappingInstancesQuery = FindFieldMappingsQuery;
|
|
10769
10821
|
const CreateFieldMappingRequest = FieldMappingEditableProperties;
|
|
@@ -11035,6 +11087,9 @@ const ListExternalEventLogRecordsQuery = PaginationQuery.extend({
|
|
|
11035
11087
|
.meta({
|
|
11036
11088
|
filterTitle: 'Status',
|
|
11037
11089
|
}),
|
|
11090
|
+
externalAppId: z.string().optional().meta({
|
|
11091
|
+
hidden: true,
|
|
11092
|
+
}),
|
|
11038
11093
|
from: z
|
|
11039
11094
|
.string()
|
|
11040
11095
|
.optional()
|
|
@@ -11124,6 +11179,9 @@ const FindExternalEventPullsQuery = PaginationQuery.extend({
|
|
|
11124
11179
|
.meta({
|
|
11125
11180
|
filterTitle: 'Status',
|
|
11126
11181
|
}),
|
|
11182
|
+
externalAppId: z.string().optional().meta({
|
|
11183
|
+
hidden: true,
|
|
11184
|
+
}),
|
|
11127
11185
|
from: z
|
|
11128
11186
|
.string()
|
|
11129
11187
|
.optional()
|
|
@@ -11171,6 +11229,9 @@ const ListExternalEventSubscriptionsQuery = PaginationQuery.merge(IncludeArchive
|
|
|
11171
11229
|
filterTitle: 'Integration',
|
|
11172
11230
|
referenceElementType: WorkspaceElementType.Integration,
|
|
11173
11231
|
}),
|
|
11232
|
+
externalAppId: z.string().optional().meta({
|
|
11233
|
+
hidden: true,
|
|
11234
|
+
}),
|
|
11174
11235
|
});
|
|
11175
11236
|
const ExternalEventSubscriptionApiResponse = BaseExternalEventSubscription.extend({
|
|
11176
11237
|
user: BaseCustomer.optional(),
|
|
@@ -11253,6 +11314,9 @@ const ListExternalApiLogsQuery = PaginationQuery.extend({
|
|
|
11253
11314
|
filterTitle: 'Status',
|
|
11254
11315
|
isFlag: true,
|
|
11255
11316
|
}),
|
|
11317
|
+
externalAppId: z.string().optional().meta({
|
|
11318
|
+
hidden: true,
|
|
11319
|
+
}),
|
|
11256
11320
|
from: z
|
|
11257
11321
|
.string()
|
|
11258
11322
|
.optional()
|
|
@@ -11277,6 +11341,7 @@ const ExternalApiLogApiResponse = z.object({
|
|
|
11277
11341
|
customerId: z.string(),
|
|
11278
11342
|
integrationId: z.string(),
|
|
11279
11343
|
connectionId: z.string(),
|
|
11344
|
+
externalAppId: z.string().optional(),
|
|
11280
11345
|
statusCode: z.number(),
|
|
11281
11346
|
isSuccess: z.boolean(),
|
|
11282
11347
|
s3Uri: z.string(),
|
|
@@ -11316,6 +11381,9 @@ const ListIncomingWebhooksQuery = PaginationQuery.extend({
|
|
|
11316
11381
|
.meta({
|
|
11317
11382
|
filterTitle: 'Status',
|
|
11318
11383
|
}),
|
|
11384
|
+
externalAppId: z.string().optional().meta({
|
|
11385
|
+
hidden: true,
|
|
11386
|
+
}),
|
|
11319
11387
|
from: z
|
|
11320
11388
|
.string()
|
|
11321
11389
|
.optional()
|
|
@@ -11338,6 +11406,7 @@ const IncomingWebhookApiResponse = z.object({
|
|
|
11338
11406
|
customerId: z.string(),
|
|
11339
11407
|
integrationId: z.string(),
|
|
11340
11408
|
connectionId: z.string(),
|
|
11409
|
+
externalAppId: z.string().optional(),
|
|
11341
11410
|
subscriptionId: z.string(),
|
|
11342
11411
|
userId: z.string(),
|
|
11343
11412
|
uuid: z.string(),
|
|
@@ -11351,12 +11420,14 @@ const IncomingWebhookApiResponse = z.object({
|
|
|
11351
11420
|
|
|
11352
11421
|
const CreateConnectedProductRequest = z.object({
|
|
11353
11422
|
name: z.string(),
|
|
11423
|
+
key: z.string().optional(),
|
|
11354
11424
|
type: ConnectedProductType,
|
|
11355
11425
|
audience: ConnectedProductAudience.optional(),
|
|
11356
11426
|
parameters: AiAgentParameters.optional(),
|
|
11357
11427
|
});
|
|
11358
11428
|
const UpdateConnectedProductRequest = z.object({
|
|
11359
11429
|
name: z.string().optional(),
|
|
11430
|
+
key: z.string().optional(),
|
|
11360
11431
|
type: ConnectedProductType.optional(),
|
|
11361
11432
|
audience: ConnectedProductAudience.optional(),
|
|
11362
11433
|
parameters: AiAgentParameters.optional(),
|
|
@@ -11365,7 +11436,6 @@ const FindConnectedProductsQuery = z
|
|
|
11365
11436
|
.object({
|
|
11366
11437
|
type: ConnectedProductType.optional(),
|
|
11367
11438
|
audience: ConnectedProductAudience.optional(),
|
|
11368
|
-
key: z.string().optional(),
|
|
11369
11439
|
})
|
|
11370
11440
|
.merge(PaginationQuery)
|
|
11371
11441
|
.merge(SearchQuery)
|
|
@@ -11691,6 +11761,26 @@ const WorkspaceElementSpecs = {
|
|
|
11691
11761
|
apiPath: 'customers',
|
|
11692
11762
|
name: 'Customer',
|
|
11693
11763
|
namePlural: 'Customers',
|
|
11764
|
+
relatedIntegrationLayerElements: [
|
|
11765
|
+
WorkspaceElementType.Connection,
|
|
11766
|
+
WorkspaceElementType.Action,
|
|
11767
|
+
WorkspaceElementType.Flow,
|
|
11768
|
+
WorkspaceElementType.ExternalEventSubscription,
|
|
11769
|
+
WorkspaceElementType.AppEventSubscription,
|
|
11770
|
+
WorkspaceElementType.DataSource,
|
|
11771
|
+
WorkspaceElementType.FieldMapping,
|
|
11772
|
+
WorkspaceElementType.AppDataSchemaInstance,
|
|
11773
|
+
WorkspaceElementType.DataLinkTableInstance,
|
|
11774
|
+
],
|
|
11775
|
+
relatedActivityLogElements: [
|
|
11776
|
+
WorkspaceElementType.FlowRun,
|
|
11777
|
+
WorkspaceElementType.ActionRunLogRecord,
|
|
11778
|
+
WorkspaceElementType.ExternalApiLogRecord,
|
|
11779
|
+
WorkspaceElementType.IncomingWebhookLogRecord,
|
|
11780
|
+
WorkspaceElementType.ExternalEventLogRecord,
|
|
11781
|
+
WorkspaceElementType.ExternalEventPull,
|
|
11782
|
+
WorkspaceElementType.AppEventLogRecord,
|
|
11783
|
+
],
|
|
11694
11784
|
},
|
|
11695
11785
|
[WorkspaceElementType.App]: {
|
|
11696
11786
|
type: WorkspaceElementType.App,
|
|
@@ -11699,6 +11789,21 @@ const WorkspaceElementSpecs = {
|
|
|
11699
11789
|
namePlural: 'Apps',
|
|
11700
11790
|
hasKey: true,
|
|
11701
11791
|
hasPublicLayer: true,
|
|
11792
|
+
relatedIntegrationLayerElements: [
|
|
11793
|
+
WorkspaceElementType.Connection,
|
|
11794
|
+
WorkspaceElementType.Action,
|
|
11795
|
+
WorkspaceElementType.Flow,
|
|
11796
|
+
WorkspaceElementType.DataSource,
|
|
11797
|
+
WorkspaceElementType.FieldMapping,
|
|
11798
|
+
],
|
|
11799
|
+
relatedActivityLogElements: [
|
|
11800
|
+
WorkspaceElementType.FlowRun,
|
|
11801
|
+
WorkspaceElementType.ActionRunLogRecord,
|
|
11802
|
+
WorkspaceElementType.ExternalApiLogRecord,
|
|
11803
|
+
WorkspaceElementType.IncomingWebhookLogRecord,
|
|
11804
|
+
WorkspaceElementType.ExternalEventLogRecord,
|
|
11805
|
+
WorkspaceElementType.ExternalEventPull,
|
|
11806
|
+
],
|
|
11702
11807
|
},
|
|
11703
11808
|
[WorkspaceElementType.Integration]: {
|
|
11704
11809
|
type: WorkspaceElementType.Integration,
|
|
@@ -11708,6 +11813,27 @@ const WorkspaceElementSpecs = {
|
|
|
11708
11813
|
editablePropertiesSchema: IntegrationEditableProperties,
|
|
11709
11814
|
exportPropertiesSchema: IntegrationExportProperties,
|
|
11710
11815
|
hasKey: true,
|
|
11816
|
+
relatedIntegrationLayerElements: [
|
|
11817
|
+
WorkspaceElementType.Connection,
|
|
11818
|
+
WorkspaceElementType.Package,
|
|
11819
|
+
WorkspaceElementType.Action,
|
|
11820
|
+
WorkspaceElementType.Flow,
|
|
11821
|
+
WorkspaceElementType.ExternalEventSubscription,
|
|
11822
|
+
WorkspaceElementType.AppEventSubscription,
|
|
11823
|
+
WorkspaceElementType.DataSource,
|
|
11824
|
+
WorkspaceElementType.FieldMapping,
|
|
11825
|
+
WorkspaceElementType.AppDataSchemaInstance,
|
|
11826
|
+
WorkspaceElementType.DataLinkTableInstance,
|
|
11827
|
+
],
|
|
11828
|
+
relatedActivityLogElements: [
|
|
11829
|
+
WorkspaceElementType.FlowRun,
|
|
11830
|
+
WorkspaceElementType.ActionRunLogRecord,
|
|
11831
|
+
WorkspaceElementType.ExternalApiLogRecord,
|
|
11832
|
+
WorkspaceElementType.IncomingWebhookLogRecord,
|
|
11833
|
+
WorkspaceElementType.ExternalEventLogRecord,
|
|
11834
|
+
WorkspaceElementType.ExternalEventPull,
|
|
11835
|
+
WorkspaceElementType.AppEventLogRecord,
|
|
11836
|
+
],
|
|
11711
11837
|
},
|
|
11712
11838
|
[WorkspaceElementType.Connector]: {
|
|
11713
11839
|
type: WorkspaceElementType.Connector,
|
|
@@ -11726,6 +11852,26 @@ const WorkspaceElementSpecs = {
|
|
|
11726
11852
|
exportPropertiesSchema: ConnectionExportProperties,
|
|
11727
11853
|
hasKey: false,
|
|
11728
11854
|
hasUuid: false,
|
|
11855
|
+
statsKey: 'connections',
|
|
11856
|
+
relatedIntegrationLayerElements: [
|
|
11857
|
+
WorkspaceElementType.Action,
|
|
11858
|
+
WorkspaceElementType.Flow,
|
|
11859
|
+
WorkspaceElementType.ExternalEventSubscription,
|
|
11860
|
+
WorkspaceElementType.AppEventSubscription,
|
|
11861
|
+
WorkspaceElementType.DataSource,
|
|
11862
|
+
WorkspaceElementType.FieldMapping,
|
|
11863
|
+
WorkspaceElementType.AppDataSchemaInstance,
|
|
11864
|
+
WorkspaceElementType.DataLinkTableInstance,
|
|
11865
|
+
],
|
|
11866
|
+
relatedActivityLogElements: [
|
|
11867
|
+
WorkspaceElementType.FlowRun,
|
|
11868
|
+
WorkspaceElementType.ActionRunLogRecord,
|
|
11869
|
+
WorkspaceElementType.ExternalApiLogRecord,
|
|
11870
|
+
WorkspaceElementType.IncomingWebhookLogRecord,
|
|
11871
|
+
WorkspaceElementType.ExternalEventLogRecord,
|
|
11872
|
+
WorkspaceElementType.ExternalEventPull,
|
|
11873
|
+
WorkspaceElementType.AppEventLogRecord,
|
|
11874
|
+
],
|
|
11729
11875
|
},
|
|
11730
11876
|
[WorkspaceElementType.Package]: {
|
|
11731
11877
|
type: WorkspaceElementType.Package,
|
|
@@ -11742,6 +11888,7 @@ const WorkspaceElementSpecs = {
|
|
|
11742
11888
|
hasParentChildRelationship: true,
|
|
11743
11889
|
hasPublicLayer: true,
|
|
11744
11890
|
isProOnly: true,
|
|
11891
|
+
statsKey: 'packages',
|
|
11745
11892
|
},
|
|
11746
11893
|
[WorkspaceElementType.ActionInstance]: {
|
|
11747
11894
|
type: WorkspaceElementType.ActionInstance,
|
|
@@ -11768,12 +11915,14 @@ const WorkspaceElementSpecs = {
|
|
|
11768
11915
|
hasParentChildRelationship: true,
|
|
11769
11916
|
hasKey: true,
|
|
11770
11917
|
hasPublicLayer: true,
|
|
11918
|
+
statsKey: 'actions',
|
|
11771
11919
|
},
|
|
11772
11920
|
[WorkspaceElementType.ActionRunLogRecord]: {
|
|
11773
11921
|
type: WorkspaceElementType.ActionRunLogRecord,
|
|
11774
11922
|
apiPath: 'action-run-logs',
|
|
11775
11923
|
name: 'Action Run Log Record',
|
|
11776
11924
|
namePlural: 'Action Run Log Records',
|
|
11925
|
+
statsKey: 'actionRunLogs',
|
|
11777
11926
|
},
|
|
11778
11927
|
[WorkspaceElementType.Flow]: {
|
|
11779
11928
|
type: WorkspaceElementType.Flow,
|
|
@@ -11791,6 +11940,7 @@ const WorkspaceElementSpecs = {
|
|
|
11791
11940
|
hasParentChildRelationship: true,
|
|
11792
11941
|
hasKey: true,
|
|
11793
11942
|
isProOnly: true,
|
|
11943
|
+
statsKey: 'flows',
|
|
11794
11944
|
},
|
|
11795
11945
|
[WorkspaceElementType.FlowInstance]: {
|
|
11796
11946
|
type: WorkspaceElementType.FlowInstance,
|
|
@@ -11811,6 +11961,7 @@ const WorkspaceElementSpecs = {
|
|
|
11811
11961
|
name: 'Flow run',
|
|
11812
11962
|
namePlural: 'Flow runs',
|
|
11813
11963
|
isProOnly: true,
|
|
11964
|
+
statsKey: 'flowRuns',
|
|
11814
11965
|
},
|
|
11815
11966
|
[WorkspaceElementType.FieldMapping]: {
|
|
11816
11967
|
type: WorkspaceElementType.FieldMapping,
|
|
@@ -11828,6 +11979,7 @@ const WorkspaceElementSpecs = {
|
|
|
11828
11979
|
hasParentChildRelationship: true,
|
|
11829
11980
|
hasKey: true,
|
|
11830
11981
|
isProOnly: true,
|
|
11982
|
+
statsKey: 'fieldMappings',
|
|
11831
11983
|
},
|
|
11832
11984
|
[WorkspaceElementType.FieldMappingInstance]: {
|
|
11833
11985
|
type: WorkspaceElementType.FieldMappingInstance,
|
|
@@ -11857,6 +12009,7 @@ const WorkspaceElementSpecs = {
|
|
|
11857
12009
|
hasParentChildRelationship: true,
|
|
11858
12010
|
hasKey: true,
|
|
11859
12011
|
isProOnly: true,
|
|
12012
|
+
statsKey: 'dataSources',
|
|
11860
12013
|
},
|
|
11861
12014
|
[WorkspaceElementType.DataSourceInstance]: {
|
|
11862
12015
|
type: WorkspaceElementType.DataSourceInstance,
|
|
@@ -11891,6 +12044,7 @@ const WorkspaceElementSpecs = {
|
|
|
11891
12044
|
parentFieldKey: 'dataLinkTableId',
|
|
11892
12045
|
isMembraneInterface: true,
|
|
11893
12046
|
isProOnly: true,
|
|
12047
|
+
statsKey: 'dataLinkTableInstances',
|
|
11894
12048
|
},
|
|
11895
12049
|
[WorkspaceElementType.AppEventType]: {
|
|
11896
12050
|
type: WorkspaceElementType.AppEventType,
|
|
@@ -11911,6 +12065,7 @@ const WorkspaceElementSpecs = {
|
|
|
11911
12065
|
namePlural: 'App Event Subscriptions',
|
|
11912
12066
|
isMembraneInterface: true,
|
|
11913
12067
|
isProOnly: true,
|
|
12068
|
+
statsKey: 'appEventSubscriptions',
|
|
11914
12069
|
},
|
|
11915
12070
|
[WorkspaceElementType.AppEventLogRecord]: {
|
|
11916
12071
|
type: WorkspaceElementType.AppEventLogRecord,
|
|
@@ -11918,6 +12073,7 @@ const WorkspaceElementSpecs = {
|
|
|
11918
12073
|
name: 'App Event Log Record',
|
|
11919
12074
|
namePlural: 'App Event Log Records',
|
|
11920
12075
|
isProOnly: true,
|
|
12076
|
+
statsKey: 'appEvents',
|
|
11921
12077
|
},
|
|
11922
12078
|
[WorkspaceElementType.AppDataSchema]: {
|
|
11923
12079
|
type: WorkspaceElementType.AppDataSchema,
|
|
@@ -11939,6 +12095,7 @@ const WorkspaceElementSpecs = {
|
|
|
11939
12095
|
parentFieldKey: 'appDataSchemaId',
|
|
11940
12096
|
isMembraneInterface: true,
|
|
11941
12097
|
isProOnly: true,
|
|
12098
|
+
statsKey: 'appDataSchemaInstances',
|
|
11942
12099
|
},
|
|
11943
12100
|
[WorkspaceElementType.ExternalEventSubscription]: {
|
|
11944
12101
|
type: WorkspaceElementType.ExternalEventSubscription,
|
|
@@ -11947,6 +12104,7 @@ const WorkspaceElementSpecs = {
|
|
|
11947
12104
|
namePlural: 'External Event Subscriptions',
|
|
11948
12105
|
isMembraneInterface: true,
|
|
11949
12106
|
isProOnly: true,
|
|
12107
|
+
statsKey: 'externalEventSubscriptions',
|
|
11950
12108
|
},
|
|
11951
12109
|
[WorkspaceElementType.ExternalEventLogRecord]: {
|
|
11952
12110
|
type: WorkspaceElementType.ExternalEventLogRecord,
|
|
@@ -11954,6 +12112,7 @@ const WorkspaceElementSpecs = {
|
|
|
11954
12112
|
name: 'External Event Log Record',
|
|
11955
12113
|
namePlural: 'External Event Log Records',
|
|
11956
12114
|
isProOnly: true,
|
|
12115
|
+
statsKey: 'externalEvents',
|
|
11957
12116
|
},
|
|
11958
12117
|
[WorkspaceElementType.ExternalEventPull]: {
|
|
11959
12118
|
type: WorkspaceElementType.ExternalEventPull,
|
|
@@ -11961,6 +12120,21 @@ const WorkspaceElementSpecs = {
|
|
|
11961
12120
|
name: 'External Event Pull',
|
|
11962
12121
|
namePlural: 'External Event Pulls',
|
|
11963
12122
|
isProOnly: true,
|
|
12123
|
+
statsKey: 'externalEventPulls',
|
|
12124
|
+
},
|
|
12125
|
+
[WorkspaceElementType.ExternalApiLogRecord]: {
|
|
12126
|
+
type: WorkspaceElementType.ExternalApiLogRecord,
|
|
12127
|
+
apiPath: 'external-api-logs',
|
|
12128
|
+
name: 'External API Log Record',
|
|
12129
|
+
namePlural: 'External API Log Records',
|
|
12130
|
+
statsKey: 'externalApiLogs',
|
|
12131
|
+
},
|
|
12132
|
+
[WorkspaceElementType.IncomingWebhookLogRecord]: {
|
|
12133
|
+
type: WorkspaceElementType.IncomingWebhookLogRecord,
|
|
12134
|
+
apiPath: 'incoming-webhooks',
|
|
12135
|
+
name: 'Incoming Webhook Log Record',
|
|
12136
|
+
namePlural: 'Incoming Webhook Log Records',
|
|
12137
|
+
statsKey: 'externalWebhookLogs',
|
|
11964
12138
|
},
|
|
11965
12139
|
[WorkspaceElementType.Screen]: {
|
|
11966
12140
|
type: WorkspaceElementType.Screen,
|
|
@@ -12364,20 +12538,21 @@ const StatsFilterQuery = z.object({
|
|
|
12364
12538
|
tenantId: z.string().optional(),
|
|
12365
12539
|
integrationId: z.string().optional(),
|
|
12366
12540
|
connectionId: z.string().optional(),
|
|
12541
|
+
externalAppId: z.string().optional(),
|
|
12367
12542
|
});
|
|
12368
12543
|
const ActivityStatsQuery = StatsFilterQuery.extend({
|
|
12369
12544
|
startDatetime: z.string().datetime({ offset: true }),
|
|
12545
|
+
elementType: z.enum(WorkspaceElementType).optional(),
|
|
12546
|
+
});
|
|
12547
|
+
const IntegrationLayerStatsQuery = StatsFilterQuery.extend({
|
|
12548
|
+
elementType: z.enum(WorkspaceElementType).optional(),
|
|
12370
12549
|
});
|
|
12371
|
-
const IntegrationLayerStatsQuery = StatsFilterQuery;
|
|
12372
12550
|
const ActionRunsStatsQuery = z.object({
|
|
12373
|
-
actionId: z.string()
|
|
12374
|
-
connectionActionId: z.string().optional(),
|
|
12551
|
+
actionId: z.string(),
|
|
12375
12552
|
startDatetime: z.string().datetime({ offset: true }),
|
|
12376
12553
|
});
|
|
12377
12554
|
const FlowRunsStatsQuery = z.object({
|
|
12378
|
-
|
|
12379
|
-
connectionFlowId: z.string().optional(),
|
|
12380
|
-
universalFlowId: z.string().optional(),
|
|
12555
|
+
flowId: z.string(),
|
|
12381
12556
|
startDatetime: z.string().datetime({ offset: true }),
|
|
12382
12557
|
});
|
|
12383
12558
|
const WORKSPACE_ELEMENTS_STATS_COLLECTIONS = [
|
|
@@ -12582,6 +12757,8 @@ var AlertType;
|
|
|
12582
12757
|
AlertType["totalNumberOfWorkspaceElements"] = "totalNumberOfWorkspaceElements";
|
|
12583
12758
|
AlertType["instantTasksQueueSize"] = "instantTasksQueueSize";
|
|
12584
12759
|
AlertType["queuedTasksQueueSize"] = "queuedTasksQueueSize";
|
|
12760
|
+
AlertType["flowRunsQueueSizePerConnection"] = "flowRunsQueueSizePerConnection";
|
|
12761
|
+
AlertType["eventsProcessingQueueSizePerConnection"] = "eventsProcessingQueueSizePerConnection";
|
|
12585
12762
|
AlertType["parallelApiRequests"] = "parallelApiRequests";
|
|
12586
12763
|
AlertType["testAlert"] = "testAlert";
|
|
12587
12764
|
})(AlertType || (AlertType = {}));
|
|
@@ -12617,6 +12794,8 @@ const ALERT_TYPE_CATEGORIES = {
|
|
|
12617
12794
|
[AlertType.totalNumberOfWorkspaceElements]: AlertCategory.WORKSPACE_SIZE,
|
|
12618
12795
|
[AlertType.instantTasksQueueSize]: AlertCategory.WORKSPACE_SIZE,
|
|
12619
12796
|
[AlertType.queuedTasksQueueSize]: AlertCategory.WORKSPACE_SIZE,
|
|
12797
|
+
[AlertType.flowRunsQueueSizePerConnection]: AlertCategory.WORKSPACE_SIZE,
|
|
12798
|
+
[AlertType.eventsProcessingQueueSizePerConnection]: AlertCategory.WORKSPACE_SIZE,
|
|
12620
12799
|
[AlertType.parallelApiRequests]: AlertCategory.RATE_LIMIT,
|
|
12621
12800
|
};
|
|
12622
12801
|
const Alert = z.object({
|
|
@@ -12714,6 +12893,8 @@ function getAlertTypeDisplayName(alertType) {
|
|
|
12714
12893
|
[AlertType.totalNumberOfWorkspaceElements]: 'Total Number of Workspace Elements',
|
|
12715
12894
|
[AlertType.instantTasksQueueSize]: 'Instant Tasks Queue Size',
|
|
12716
12895
|
[AlertType.queuedTasksQueueSize]: 'Queued Tasks Queue Size',
|
|
12896
|
+
[AlertType.flowRunsQueueSizePerConnection]: 'Flow Runs Queue Size Per Connection',
|
|
12897
|
+
[AlertType.eventsProcessingQueueSizePerConnection]: 'Events Processing Queue Size Per Connection',
|
|
12717
12898
|
[AlertType.parallelApiRequests]: 'Parallel API Requests',
|
|
12718
12899
|
};
|
|
12719
12900
|
return names[alertType] || alertType;
|
|
@@ -12801,6 +12982,8 @@ var WorkspaceSizeLimits;
|
|
|
12801
12982
|
WorkspaceSizeLimits["TotalNumberOfWorkspaceElements"] = "totalNumberOfWorkspaceElements";
|
|
12802
12983
|
WorkspaceSizeLimits["InstantTasksQueueSize"] = "instantTasksQueueSize";
|
|
12803
12984
|
WorkspaceSizeLimits["QueuedTasksQueueSize"] = "queuedTasksQueueSize";
|
|
12985
|
+
WorkspaceSizeLimits["FlowRunsQueueSizePerConnection"] = "flowRunsQueueSizePerConnection";
|
|
12986
|
+
WorkspaceSizeLimits["EventsProcessingQueueSizePerConnection"] = "eventsProcessingQueueSizePerConnection";
|
|
12804
12987
|
})(WorkspaceSizeLimits || (WorkspaceSizeLimits = {}));
|
|
12805
12988
|
var CustomerLimits;
|
|
12806
12989
|
(function (CustomerLimits) {
|
|
@@ -12938,6 +13121,7 @@ const WORKSPACE_SIZE_LIMITS = [
|
|
|
12938
13121
|
const EDITABLE_LIMITS = [
|
|
12939
13122
|
'parallelApiRequestsPerCustomer',
|
|
12940
13123
|
'parallelBackgroundJobsPerCustomer',
|
|
13124
|
+
'parallelCustomCodeRunsPerCustomer',
|
|
12941
13125
|
'apiRequestsPerCustomerPerSecond',
|
|
12942
13126
|
'apiRequestsPerCustomerPerHour',
|
|
12943
13127
|
'externalEventsPerCustomerPerDay',
|
|
@@ -15311,6 +15495,7 @@ const AgentSession = z.object({
|
|
|
15311
15495
|
hasWorker: z.boolean(),
|
|
15312
15496
|
isExternal: z.boolean().optional(),
|
|
15313
15497
|
agentName: z.enum(AgentName).optional(),
|
|
15498
|
+
output: z.record(z.string(), z.unknown()).optional(),
|
|
15314
15499
|
createdAt: z.iso.datetime(),
|
|
15315
15500
|
updatedAt: z.iso.datetime(),
|
|
15316
15501
|
});
|
|
@@ -15338,6 +15523,7 @@ const PatchAgentSessionSchema = z.object({
|
|
|
15338
15523
|
cost: z.number().optional(),
|
|
15339
15524
|
error: ErrorDataSchema.optional(),
|
|
15340
15525
|
opencodeSessionUuid: z.string().optional(),
|
|
15526
|
+
output: z.record(z.string(), z.unknown()).optional(),
|
|
15341
15527
|
status: z.enum(AgentSessionStatus).optional(),
|
|
15342
15528
|
});
|
|
15343
15529
|
|
|
@@ -15738,6 +15924,17 @@ class UI {
|
|
|
15738
15924
|
});
|
|
15739
15925
|
});
|
|
15740
15926
|
}
|
|
15927
|
+
async UNSAFE_agentSession(options) {
|
|
15928
|
+
const { url, postData } = await this.client.getScreensPostData('agent-session', {
|
|
15929
|
+
sessionId: options.sessionId,
|
|
15930
|
+
theme: options.theme,
|
|
15931
|
+
});
|
|
15932
|
+
return new Promise((resolve) => {
|
|
15933
|
+
return openIframeWithPost(url, postData, {
|
|
15934
|
+
onClose: () => resolve(),
|
|
15935
|
+
});
|
|
15936
|
+
});
|
|
15937
|
+
}
|
|
15741
15938
|
}
|
|
15742
15939
|
|
|
15743
15940
|
class MembraneClient extends MembraneApiClient {
|