@membranehq/sdk 0.9.3 → 0.9.5
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/LICENSE +1 -1
- package/README.md +3 -3
- package/dist/bundle.d.ts +28 -6
- package/dist/dts/agent/session.d.ts +3 -2
- package/dist/dts/apps/types.d.ts +2 -372
- package/dist/dts/auth/index.d.ts +2 -2
- package/dist/dts/errors/index.d.ts +1 -0
- package/dist/dts/orgs/types.d.ts +16 -3
- package/dist/dts/sse/workspace-elements.d.ts +9 -4
- package/dist/dts/webhooks/types.d.ts +3 -2
- package/dist/dts/workspace-elements/api/app-event-log-records-api.d.ts +1 -0
- package/dist/dts/workspace-elements/api/app-event-subscriptions-api.d.ts +1 -0
- package/dist/dts/workspace-elements/api/app-event-types-api.d.ts +1 -0
- package/dist/dts/workspace-elements/api/data-link-table-instances-api.d.ts +1 -1
- package/dist/dts/workspace-elements/api/data-link-tables-api.d.ts +24 -7
- package/dist/dts/workspace-elements/api/external-event-log-records-api.d.ts +3 -0
- package/dist/dts/workspace-elements/api/external-event-pulls-api.d.ts +1 -0
- package/dist/dts/workspace-elements/api/external-event-subscriptions-api.d.ts +11 -0
- package/dist/dts/workspace-elements/base/app-data-schemas/types.d.ts +20 -0
- package/dist/dts/workspace-elements/base/app-event-types/types.d.ts +28 -0
- package/dist/dts/workspace-elements/base/data-link-tables/types.d.ts +17 -1
- package/dist/dts/workspace-elements/base/external-event-subscriptions/types.d.ts +1 -0
- package/dist/dts/workspace-elements/index.d.ts +0 -1
- package/dist/dts/workspaces/compare.d.ts +22 -0
- package/dist/dts/workspaces/compare.test.d.ts +1 -0
- package/dist/dts/workspaces/index.d.ts +1 -0
- package/dist/dts/workspaces/types.d.ts +432 -63
- package/dist/index.browser.d.mts +1397 -1269
- package/dist/index.browser.d.ts +1397 -1269
- package/dist/index.browser.js +1203 -1108
- package/dist/index.browser.js.map +1 -1
- package/dist/index.browser.mjs +238 -155
- package/dist/index.browser.mjs.map +1 -1
- package/dist/index.node.d.mts +1397 -1269
- package/dist/index.node.d.ts +1397 -1269
- package/dist/index.node.js +1208 -1113
- package/dist/index.node.js.map +1 -1
- package/dist/index.node.mjs +238 -155
- package/dist/index.node.mjs.map +1 -1
- package/package.json +3 -3
- package/dist/dts/workspace-elements/compare.d.ts +0 -16
- /package/dist/dts/{workspace-elements/compare.test.d.ts → backward-compat.test.d.ts} +0 -0
package/dist/index.node.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var z = require('zod');
|
|
4
4
|
var jsConvertCase = require('js-convert-case');
|
|
5
5
|
var humanparser = require('humanparser');
|
|
6
6
|
var jsonata = require('jsonata');
|
|
@@ -70,14 +70,14 @@ exports.ConcurrencyErrorKey = void 0;
|
|
|
70
70
|
(function (ConcurrencyErrorKey) {
|
|
71
71
|
ConcurrencyErrorKey["LOCK_TIMEOUT"] = "lock_timeout";
|
|
72
72
|
})(exports.ConcurrencyErrorKey || (exports.ConcurrencyErrorKey = {}));
|
|
73
|
-
const ErrorDataSchema =
|
|
74
|
-
type:
|
|
75
|
-
key:
|
|
76
|
-
message:
|
|
77
|
-
data:
|
|
78
|
-
stack:
|
|
79
|
-
causedByError:
|
|
80
|
-
logs:
|
|
73
|
+
const ErrorDataSchema = z.z.lazy(() => z.z.object({
|
|
74
|
+
type: z.z.enum(exports.ErrorType).optional(),
|
|
75
|
+
key: z.z.string().optional(),
|
|
76
|
+
message: z.z.string(),
|
|
77
|
+
data: z.z.any().optional(),
|
|
78
|
+
stack: z.z.any().optional(),
|
|
79
|
+
causedByError: z.z.lazy(() => ErrorDataSchema).optional(),
|
|
80
|
+
logs: z.z.array(z.z.any()).optional(),
|
|
81
81
|
}));
|
|
82
82
|
function isMembraneError(error) {
|
|
83
83
|
return error && error.isMembraneError;
|
|
@@ -208,6 +208,7 @@ class InsufficientCreditsError extends MembraneError {
|
|
|
208
208
|
this.data.type = exports.ErrorType.INSUFFICIENT_CREDIT;
|
|
209
209
|
}
|
|
210
210
|
}
|
|
211
|
+
const IntegrationAppError = MembraneError;
|
|
211
212
|
|
|
212
213
|
exports.DataBuilderFormulaType = void 0;
|
|
213
214
|
(function (DataBuilderFormulaType) {
|
|
@@ -1344,41 +1345,41 @@ function createSchemaForObject(obj) {
|
|
|
1344
1345
|
return schema;
|
|
1345
1346
|
}
|
|
1346
1347
|
|
|
1347
|
-
const DataSchema =
|
|
1348
|
+
const DataSchema = z.z.lazy(() => z.z
|
|
1348
1349
|
.object({
|
|
1349
|
-
title:
|
|
1350
|
-
description:
|
|
1351
|
-
type:
|
|
1352
|
-
format:
|
|
1353
|
-
properties:
|
|
1350
|
+
title: z.z.string().optional(),
|
|
1351
|
+
description: z.z.string().optional(),
|
|
1352
|
+
type: z.z.union([z.z.string(), z.z.array(z.z.string())]).optional(),
|
|
1353
|
+
format: z.z.string().optional(),
|
|
1354
|
+
properties: z.z.record(z.z.string(), DataSchema).optional(),
|
|
1354
1355
|
items: DataSchema.optional(),
|
|
1355
|
-
additionalProperties:
|
|
1356
|
-
enum:
|
|
1357
|
-
referenceRecords:
|
|
1358
|
-
referenceCollection:
|
|
1356
|
+
additionalProperties: z.z.union([z.z.boolean(), DataSchema]).optional(),
|
|
1357
|
+
enum: z.z.array(z.z.string()).optional(),
|
|
1358
|
+
referenceRecords: z.z.array(z.z.any()).optional(),
|
|
1359
|
+
referenceCollection: z.z
|
|
1359
1360
|
.object({
|
|
1360
|
-
key:
|
|
1361
|
-
parameters:
|
|
1361
|
+
key: z.z.any().optional(),
|
|
1362
|
+
parameters: z.z.record(z.z.string(), z.z.any()).optional(),
|
|
1362
1363
|
})
|
|
1363
1364
|
.optional(),
|
|
1364
|
-
referenceUdm:
|
|
1365
|
-
default:
|
|
1366
|
-
allowCustom:
|
|
1367
|
-
$ref:
|
|
1368
|
-
required:
|
|
1369
|
-
minLength:
|
|
1370
|
-
maxLength:
|
|
1371
|
-
minimum:
|
|
1372
|
-
maximum:
|
|
1373
|
-
maxItems:
|
|
1374
|
-
readOnly:
|
|
1375
|
-
writeOnly:
|
|
1376
|
-
examples:
|
|
1377
|
-
anyOf:
|
|
1378
|
-
isImplied:
|
|
1379
|
-
isSensitive:
|
|
1380
|
-
referenceCollectionPath:
|
|
1381
|
-
referenceCollectionUri:
|
|
1365
|
+
referenceUdm: z.z.string().optional(),
|
|
1366
|
+
default: z.z.any().optional(),
|
|
1367
|
+
allowCustom: z.z.boolean().optional(),
|
|
1368
|
+
$ref: z.z.string().optional(),
|
|
1369
|
+
required: z.z.array(z.z.string()).optional(),
|
|
1370
|
+
minLength: z.z.number().optional(),
|
|
1371
|
+
maxLength: z.z.number().optional(),
|
|
1372
|
+
minimum: z.z.number().optional(),
|
|
1373
|
+
maximum: z.z.number().optional(),
|
|
1374
|
+
maxItems: z.z.number().optional(),
|
|
1375
|
+
readOnly: z.z.boolean().optional(),
|
|
1376
|
+
writeOnly: z.z.boolean().optional(),
|
|
1377
|
+
examples: z.z.array(z.z.any()).optional(),
|
|
1378
|
+
anyOf: z.z.array(DataSchema).optional(),
|
|
1379
|
+
isImplied: z.z.boolean().optional(),
|
|
1380
|
+
isSensitive: z.z.boolean().optional(),
|
|
1381
|
+
referenceCollectionPath: z.z.string().optional(),
|
|
1382
|
+
referenceCollectionUri: z.z.string().optional(),
|
|
1382
1383
|
})
|
|
1383
1384
|
.passthrough());
|
|
1384
1385
|
|
|
@@ -3401,7 +3402,7 @@ function getFormula(value) {
|
|
|
3401
3402
|
return undefined;
|
|
3402
3403
|
}
|
|
3403
3404
|
|
|
3404
|
-
const zodBooleanCoercion = () =>
|
|
3405
|
+
const zodBooleanCoercion = () => z.z.preprocess((val) => {
|
|
3405
3406
|
if (typeof val === 'boolean')
|
|
3406
3407
|
return val;
|
|
3407
3408
|
if (typeof val === 'string') {
|
|
@@ -3415,27 +3416,27 @@ const zodBooleanCoercion = () => zod.z.preprocess((val) => {
|
|
|
3415
3416
|
if (typeof val === 'number')
|
|
3416
3417
|
return Boolean(val);
|
|
3417
3418
|
return Boolean(val);
|
|
3418
|
-
},
|
|
3419
|
+
}, z.z.boolean());
|
|
3419
3420
|
|
|
3420
|
-
const IncludeArchivedQuery =
|
|
3421
|
+
const IncludeArchivedQuery = z.z.object({
|
|
3421
3422
|
includeArchived: zodBooleanCoercion().optional(),
|
|
3422
3423
|
});
|
|
3423
|
-
const SearchQuery =
|
|
3424
|
-
search:
|
|
3424
|
+
const SearchQuery = z.z.object({
|
|
3425
|
+
search: z.z.string().optional(),
|
|
3425
3426
|
});
|
|
3426
|
-
const PaginationQuery =
|
|
3427
|
-
limit:
|
|
3428
|
-
cursor:
|
|
3427
|
+
const PaginationQuery = z.z.object({
|
|
3428
|
+
limit: z.z.coerce.number().int().min(1).max(1000).optional(),
|
|
3429
|
+
cursor: z.z.string().optional(),
|
|
3429
3430
|
});
|
|
3430
3431
|
const CommonListElementsQuery = SearchQuery.merge(PaginationQuery).merge(IncludeArchivedQuery);
|
|
3431
3432
|
const CommonInstancesListQuery = CommonListElementsQuery.extend({
|
|
3432
|
-
userId:
|
|
3433
|
-
instanceKey:
|
|
3433
|
+
userId: z.z.string().optional(),
|
|
3434
|
+
instanceKey: z.z.string().optional(),
|
|
3434
3435
|
});
|
|
3435
|
-
const CommonIntegrationOrConnectionQuery =
|
|
3436
|
-
connectionId:
|
|
3437
|
-
integrationId:
|
|
3438
|
-
integrationKey:
|
|
3436
|
+
const CommonIntegrationOrConnectionQuery = z.z.object({
|
|
3437
|
+
connectionId: z.z.string().optional(),
|
|
3438
|
+
integrationId: z.z.string().optional(),
|
|
3439
|
+
integrationKey: z.z.string().optional(),
|
|
3439
3440
|
});
|
|
3440
3441
|
class PaginationResponse {
|
|
3441
3442
|
}
|
|
@@ -3498,54 +3499,54 @@ exports.WorkspaceElementDependencyType = void 0;
|
|
|
3498
3499
|
WorkspaceElementDependencyType["Configuration"] = "CONFIGURATION";
|
|
3499
3500
|
WorkspaceElementDependencyType["Parent"] = "PARENT";
|
|
3500
3501
|
})(exports.WorkspaceElementDependencyType || (exports.WorkspaceElementDependencyType = {}));
|
|
3501
|
-
const BaseWorkspaceElement =
|
|
3502
|
-
id:
|
|
3503
|
-
name:
|
|
3504
|
-
});
|
|
3505
|
-
const BaseMembraneInterfaceEditableProperties =
|
|
3506
|
-
uuid:
|
|
3507
|
-
key:
|
|
3508
|
-
name:
|
|
3509
|
-
description:
|
|
3510
|
-
meta:
|
|
3511
|
-
});
|
|
3512
|
-
const BaseMembraneInterfaceReadOnlyProperties =
|
|
3513
|
-
name:
|
|
3514
|
-
state:
|
|
3515
|
-
errors:
|
|
3516
|
-
revision:
|
|
3517
|
-
createdAt:
|
|
3518
|
-
updatedAt:
|
|
3519
|
-
archivedAt:
|
|
3520
|
-
isDeactivated:
|
|
3502
|
+
const BaseWorkspaceElement = z.z.object({
|
|
3503
|
+
id: z.z.string(),
|
|
3504
|
+
name: z.z.string(),
|
|
3505
|
+
});
|
|
3506
|
+
const BaseMembraneInterfaceEditableProperties = z.z.object({
|
|
3507
|
+
uuid: z.z.string().optional(),
|
|
3508
|
+
key: z.z.string().optional(),
|
|
3509
|
+
name: z.z.string().optional(),
|
|
3510
|
+
description: z.z.string().optional(),
|
|
3511
|
+
meta: z.z.record(z.z.string(), z.z.any()).optional(),
|
|
3512
|
+
});
|
|
3513
|
+
const BaseMembraneInterfaceReadOnlyProperties = z.z.object({
|
|
3514
|
+
name: z.z.string(),
|
|
3515
|
+
state: z.z.enum(exports.WorkspaceElementState).optional(),
|
|
3516
|
+
errors: z.z.array(ErrorDataSchema).optional(),
|
|
3517
|
+
revision: z.z.string().optional(),
|
|
3518
|
+
createdAt: z.z.string().optional(),
|
|
3519
|
+
updatedAt: z.z.string().optional(),
|
|
3520
|
+
archivedAt: z.z.string().optional(),
|
|
3521
|
+
isDeactivated: z.z.boolean().optional(),
|
|
3521
3522
|
});
|
|
3522
3523
|
const BaseMembraneInterface = BaseWorkspaceElement.merge(BaseMembraneInterfaceEditableProperties).merge(BaseMembraneInterfaceReadOnlyProperties);
|
|
3523
3524
|
const BaseIntegrationLevelMembraneInterfaceEditableProperties = BaseMembraneInterfaceEditableProperties.extend({
|
|
3524
|
-
integrationId:
|
|
3525
|
-
integrationUuid:
|
|
3526
|
-
parentId:
|
|
3527
|
-
parentUuid:
|
|
3528
|
-
connectionId:
|
|
3529
|
-
instanceKey:
|
|
3525
|
+
integrationId: z.z.string().optional(),
|
|
3526
|
+
integrationUuid: z.z.string().optional(),
|
|
3527
|
+
parentId: z.z.string().optional(),
|
|
3528
|
+
parentUuid: z.z.string().optional(),
|
|
3529
|
+
connectionId: z.z.string().optional(),
|
|
3530
|
+
instanceKey: z.z.string().optional(),
|
|
3530
3531
|
});
|
|
3531
3532
|
const BaseIntegrationLevelMembraneInterfaceReadOnlyProperties = BaseMembraneInterfaceReadOnlyProperties.extend({
|
|
3532
|
-
isCustomized:
|
|
3533
|
+
isCustomized: z.z.boolean().optional(),
|
|
3533
3534
|
});
|
|
3534
3535
|
const BaseIntegrationLevelMembraneInterfaceExportProperties = BaseMembraneInterfaceEditableProperties.extend({
|
|
3535
|
-
integrationUuid:
|
|
3536
|
-
parentUuid:
|
|
3536
|
+
integrationUuid: z.z.string().optional(),
|
|
3537
|
+
parentUuid: z.z.string().optional(),
|
|
3537
3538
|
});
|
|
3538
|
-
const IntegrationLevelMembraneInterfaceSelectorQuery =
|
|
3539
|
-
layer:
|
|
3540
|
-
integrationKey:
|
|
3541
|
-
integrationId:
|
|
3542
|
-
connectionId:
|
|
3543
|
-
instanceKey:
|
|
3539
|
+
const IntegrationLevelMembraneInterfaceSelectorQuery = z.z.object({
|
|
3540
|
+
layer: z.z.enum(['universal', 'integration', 'connection']).optional(),
|
|
3541
|
+
integrationKey: z.z.string().optional(),
|
|
3542
|
+
integrationId: z.z.string().optional(),
|
|
3543
|
+
connectionId: z.z.string().optional(),
|
|
3544
|
+
instanceKey: z.z.string().optional(),
|
|
3544
3545
|
});
|
|
3545
3546
|
const FindIntegrationLevelMembraneInterfaceQuery = IntegrationLevelMembraneInterfaceSelectorQuery.extend(CommonListElementsQuery.shape).extend({
|
|
3546
|
-
parentId:
|
|
3547
|
-
universalParentId:
|
|
3548
|
-
userId:
|
|
3547
|
+
parentId: z.z.string().optional(),
|
|
3548
|
+
universalParentId: z.z.string().optional(),
|
|
3549
|
+
userId: z.z.string().optional(),
|
|
3549
3550
|
});
|
|
3550
3551
|
const BaseIntegrationLevelMembraneInterface = BaseMembraneInterface.merge(BaseIntegrationLevelMembraneInterfaceEditableProperties).merge(BaseIntegrationLevelMembraneInterfaceReadOnlyProperties);
|
|
3551
3552
|
|
|
@@ -3585,20 +3586,20 @@ exports.FieldMappingDirection = void 0;
|
|
|
3585
3586
|
FieldMappingDirection["EXPORT"] = "export";
|
|
3586
3587
|
FieldMappingDirection["BOTH"] = "both";
|
|
3587
3588
|
})(exports.FieldMappingDirection || (exports.FieldMappingDirection = {}));
|
|
3588
|
-
const FieldMappingSpecificProperties =
|
|
3589
|
-
connectionId:
|
|
3590
|
-
fieldMappingId:
|
|
3591
|
-
universalFieldMappingId:
|
|
3592
|
-
dataSourceKey:
|
|
3589
|
+
const FieldMappingSpecificProperties = z.z.object({
|
|
3590
|
+
connectionId: z.z.string().optional(),
|
|
3591
|
+
fieldMappingId: z.z.string().optional(),
|
|
3592
|
+
universalFieldMappingId: z.z.string().optional(),
|
|
3593
|
+
dataSourceKey: z.z.string().optional(),
|
|
3593
3594
|
appSchema: DataSchema.optional(),
|
|
3594
|
-
direction:
|
|
3595
|
-
defaultImportValue:
|
|
3596
|
-
defaultExportValue:
|
|
3597
|
-
importValue:
|
|
3598
|
-
exportValue:
|
|
3599
|
-
frozenImportFields:
|
|
3600
|
-
frozenExportFields:
|
|
3601
|
-
frozenUnifiedExportFields:
|
|
3595
|
+
direction: z.z.enum(exports.FieldMappingDirection).optional(),
|
|
3596
|
+
defaultImportValue: z.z.any().optional(),
|
|
3597
|
+
defaultExportValue: z.z.any().optional(),
|
|
3598
|
+
importValue: z.z.any().optional(),
|
|
3599
|
+
exportValue: z.z.any().optional(),
|
|
3600
|
+
frozenImportFields: z.z.any().optional(),
|
|
3601
|
+
frozenExportFields: z.z.any().optional(),
|
|
3602
|
+
frozenUnifiedExportFields: z.z.any().optional(),
|
|
3602
3603
|
});
|
|
3603
3604
|
const FieldMappingEditableProperties = BaseIntegrationLevelMembraneInterfaceEditableProperties.omit({
|
|
3604
3605
|
parentId: true,
|
|
@@ -3609,18 +3610,18 @@ const FieldMappingExportProperties = BaseIntegrationLevelMembraneInterfaceExport
|
|
|
3609
3610
|
universalFieldMappingId: true,
|
|
3610
3611
|
});
|
|
3611
3612
|
const FieldMappingReadOnlyProperties = BaseIntegrationLevelMembraneInterfaceReadOnlyProperties.extend({
|
|
3612
|
-
universalFieldMappingRevision:
|
|
3613
|
+
universalFieldMappingRevision: z.z.string().optional(),
|
|
3613
3614
|
});
|
|
3614
3615
|
const BaseFieldMapping = BaseMembraneInterface.merge(FieldMappingEditableProperties).merge(FieldMappingReadOnlyProperties);
|
|
3615
|
-
const FieldMappingUnitConfig =
|
|
3616
|
-
key:
|
|
3617
|
-
input:
|
|
3618
|
-
includeRawFields:
|
|
3619
|
-
importValue:
|
|
3620
|
-
exportValue:
|
|
3621
|
-
default:
|
|
3622
|
-
defaultUnifiedValue:
|
|
3623
|
-
defaultValue:
|
|
3616
|
+
const FieldMappingUnitConfig = z.z.object({
|
|
3617
|
+
key: z.z.string().optional(),
|
|
3618
|
+
input: z.z.any().optional(),
|
|
3619
|
+
includeRawFields: z.z.any().optional(),
|
|
3620
|
+
importValue: z.z.any().optional(),
|
|
3621
|
+
exportValue: z.z.any().optional(),
|
|
3622
|
+
default: z.z.any().optional(),
|
|
3623
|
+
defaultUnifiedValue: z.z.any().optional(),
|
|
3624
|
+
defaultValue: z.z.any().optional(),
|
|
3624
3625
|
appSchema: DataSchema.optional(),
|
|
3625
3626
|
});
|
|
3626
3627
|
|
|
@@ -3726,18 +3727,18 @@ exports.ActionDependencyType = void 0;
|
|
|
3726
3727
|
ActionDependencyType["FieldMapping"] = "FieldMapping";
|
|
3727
3728
|
ActionDependencyType["DataSource"] = "DataSource";
|
|
3728
3729
|
})(exports.ActionDependencyType || (exports.ActionDependencyType = {}));
|
|
3729
|
-
const ActionDependency =
|
|
3730
|
-
type:
|
|
3731
|
-
key:
|
|
3732
|
-
element:
|
|
3733
|
-
});
|
|
3734
|
-
const ActionSpecificProperties =
|
|
3735
|
-
connectionId:
|
|
3736
|
-
instanceKey:
|
|
3730
|
+
const ActionDependency = z.z.object({
|
|
3731
|
+
type: z.z.enum(exports.ActionDependencyType),
|
|
3732
|
+
key: z.z.string(),
|
|
3733
|
+
element: z.z.any().optional(),
|
|
3734
|
+
});
|
|
3735
|
+
const ActionSpecificProperties = z.z.object({
|
|
3736
|
+
connectionId: z.z.string().optional(),
|
|
3737
|
+
instanceKey: z.z.string().optional(),
|
|
3737
3738
|
inputSchema: DataSchema.optional(),
|
|
3738
|
-
type:
|
|
3739
|
-
config:
|
|
3740
|
-
outputMapping:
|
|
3739
|
+
type: z.z.enum(exports.ActionType).optional(),
|
|
3740
|
+
config: z.z.object({}).loose().optional(),
|
|
3741
|
+
outputMapping: z.z.any().optional(),
|
|
3741
3742
|
customOutputSchema: DataSchema.optional(),
|
|
3742
3743
|
});
|
|
3743
3744
|
const ActionEditableProperties = BaseIntegrationLevelMembraneInterfaceEditableProperties.extend(ActionSpecificProperties.shape);
|
|
@@ -3745,40 +3746,40 @@ const ActionExportProperties = BaseIntegrationLevelMembraneInterfaceExportProper
|
|
|
3745
3746
|
connectionId: true,
|
|
3746
3747
|
});
|
|
3747
3748
|
const ActionReadOnlyProperties = BaseIntegrationLevelMembraneInterfaceReadOnlyProperties.extend({
|
|
3748
|
-
universalParentId:
|
|
3749
|
-
userId:
|
|
3750
|
-
outputSchema:
|
|
3749
|
+
universalParentId: z.z.string().optional(),
|
|
3750
|
+
userId: z.z.string().optional(),
|
|
3751
|
+
outputSchema: z.z.any().optional(),
|
|
3751
3752
|
});
|
|
3752
3753
|
const BaseAction = BaseMembraneInterface.merge(ActionEditableProperties).merge(ActionReadOnlyProperties);
|
|
3753
3754
|
const BaseActionInstance = BaseAction;
|
|
3754
3755
|
|
|
3755
|
-
const ConnectionRequest =
|
|
3756
|
-
path:
|
|
3757
|
-
method:
|
|
3758
|
-
pathParameters:
|
|
3759
|
-
headers:
|
|
3760
|
-
query:
|
|
3761
|
-
data:
|
|
3756
|
+
const ConnectionRequest = z.z.object({
|
|
3757
|
+
path: z.z.any(),
|
|
3758
|
+
method: z.z.enum(['GET', 'POST', 'PUT', 'PATCH', 'DELETE']).optional(),
|
|
3759
|
+
pathParameters: z.z.record(z.z.string(), z.z.string()).optional(),
|
|
3760
|
+
headers: z.z.record(z.z.string(), z.z.string()).optional(),
|
|
3761
|
+
query: z.z.record(z.z.string(), z.z.string()).optional(),
|
|
3762
|
+
data: z.z.any().optional(),
|
|
3762
3763
|
});
|
|
3763
3764
|
const BaseConnection = BaseWorkspaceElement.extend({
|
|
3764
|
-
name:
|
|
3765
|
-
userId:
|
|
3766
|
-
isTest:
|
|
3767
|
-
disconnected:
|
|
3768
|
-
isDefunct:
|
|
3769
|
-
state:
|
|
3765
|
+
name: z.z.string(),
|
|
3766
|
+
userId: z.z.string(),
|
|
3767
|
+
isTest: z.z.boolean().optional(),
|
|
3768
|
+
disconnected: z.z.boolean().optional(),
|
|
3769
|
+
isDefunct: z.z.boolean().optional(),
|
|
3770
|
+
state: z.z.enum(exports.WorkspaceElementState).optional(),
|
|
3770
3771
|
error: ErrorDataSchema.optional(),
|
|
3771
|
-
integrationId:
|
|
3772
|
-
authOptionKey:
|
|
3773
|
-
createdAt:
|
|
3774
|
-
updatedAt:
|
|
3775
|
-
lastActiveAt:
|
|
3776
|
-
nextCredentialsRefreshAt:
|
|
3777
|
-
nextRetryTimestamp:
|
|
3778
|
-
retryAttempts:
|
|
3779
|
-
archivedAt:
|
|
3780
|
-
isDeactivated:
|
|
3781
|
-
meta:
|
|
3772
|
+
integrationId: z.z.string(),
|
|
3773
|
+
authOptionKey: z.z.string().optional(),
|
|
3774
|
+
createdAt: z.z.string(),
|
|
3775
|
+
updatedAt: z.z.string(),
|
|
3776
|
+
lastActiveAt: z.z.string().optional(),
|
|
3777
|
+
nextCredentialsRefreshAt: z.z.string().optional(),
|
|
3778
|
+
nextRetryTimestamp: z.z.string().optional(),
|
|
3779
|
+
retryAttempts: z.z.number().optional(),
|
|
3780
|
+
archivedAt: z.z.string().optional(),
|
|
3781
|
+
isDeactivated: z.z.boolean().optional(),
|
|
3782
|
+
meta: z.z.record(z.z.string(), z.z.any()).optional(),
|
|
3782
3783
|
});
|
|
3783
3784
|
class ConnectionSpec {
|
|
3784
3785
|
constructor(opts) {
|
|
@@ -4103,27 +4104,27 @@ exports.ConnectorStatus = void 0;
|
|
|
4103
4104
|
ConnectorStatus["beta"] = "beta";
|
|
4104
4105
|
ConnectorStatus["planned"] = "planned";
|
|
4105
4106
|
})(exports.ConnectorStatus || (exports.ConnectorStatus = {}));
|
|
4106
|
-
const MinimalConnector =
|
|
4107
|
-
id:
|
|
4108
|
-
key:
|
|
4109
|
-
name:
|
|
4110
|
-
logoUri:
|
|
4111
|
-
});
|
|
4112
|
-
|
|
4113
|
-
const DataRecordSchema =
|
|
4114
|
-
id:
|
|
4115
|
-
name:
|
|
4116
|
-
uri:
|
|
4117
|
-
iconUri:
|
|
4118
|
-
fields:
|
|
4119
|
-
udm:
|
|
4120
|
-
unifiedFields:
|
|
4121
|
-
rawFields:
|
|
4122
|
-
createdTime:
|
|
4123
|
-
updatedTime:
|
|
4124
|
-
deletedTime:
|
|
4125
|
-
createdById:
|
|
4126
|
-
updatedById:
|
|
4107
|
+
const MinimalConnector = z.z.object({
|
|
4108
|
+
id: z.z.string(),
|
|
4109
|
+
key: z.z.string(),
|
|
4110
|
+
name: z.z.string(),
|
|
4111
|
+
logoUri: z.z.string(),
|
|
4112
|
+
});
|
|
4113
|
+
|
|
4114
|
+
const DataRecordSchema = z.z.object({
|
|
4115
|
+
id: z.z.string(),
|
|
4116
|
+
name: z.z.string().optional(),
|
|
4117
|
+
uri: z.z.string().optional(),
|
|
4118
|
+
iconUri: z.z.string().optional(),
|
|
4119
|
+
fields: z.z.record(z.z.string(), z.z.any()).optional(),
|
|
4120
|
+
udm: z.z.string().optional(),
|
|
4121
|
+
unifiedFields: z.z.record(z.z.string(), z.z.any()).optional(),
|
|
4122
|
+
rawFields: z.z.record(z.z.string(), z.z.any()).optional(),
|
|
4123
|
+
createdTime: z.z.string().optional(),
|
|
4124
|
+
updatedTime: z.z.string().optional(),
|
|
4125
|
+
deletedTime: z.z.string().optional(),
|
|
4126
|
+
createdById: z.z.string().optional(),
|
|
4127
|
+
updatedById: z.z.string().optional(),
|
|
4127
4128
|
});
|
|
4128
4129
|
exports.DataCollectionEventType = void 0;
|
|
4129
4130
|
(function (DataCollectionEventType) {
|
|
@@ -8260,40 +8261,40 @@ const DataLocationTypeCollection = {
|
|
|
8260
8261
|
};
|
|
8261
8262
|
const ConnectorDataCollectionMethodKeys = Object.keys(DataLocationTypeCollection.methods);
|
|
8262
8263
|
|
|
8263
|
-
const ApiRequestSpec =
|
|
8264
|
-
path:
|
|
8265
|
-
method:
|
|
8264
|
+
const ApiRequestSpec = z.z.object({
|
|
8265
|
+
path: z.z.unknown(),
|
|
8266
|
+
method: z.z.unknown(),
|
|
8266
8267
|
});
|
|
8267
|
-
const DataCollectionMethodSpec =
|
|
8268
|
-
apiRequests:
|
|
8268
|
+
const DataCollectionMethodSpec = z.z.object({
|
|
8269
|
+
apiRequests: z.z.array(ApiRequestSpec).optional(),
|
|
8269
8270
|
});
|
|
8270
8271
|
const DataCollectionListSpec = DataCollectionMethodSpec.extend({
|
|
8271
|
-
filterFields:
|
|
8272
|
+
filterFields: z.z.array(z.z.string()).optional(),
|
|
8272
8273
|
});
|
|
8273
8274
|
const DataCollectionSearchSpec = DataCollectionMethodSpec.extend({});
|
|
8274
8275
|
const DataCollectionMatchSpec = DataCollectionMethodSpec.extend({
|
|
8275
|
-
fields:
|
|
8276
|
+
fields: z.z.array(z.z.string()).optional(),
|
|
8276
8277
|
});
|
|
8277
8278
|
const DataCollectionFindByIdSpec = DataCollectionMethodSpec.extend({});
|
|
8278
8279
|
const DataCollectionCreateSpec = DataCollectionMethodSpec.extend({
|
|
8279
|
-
fields:
|
|
8280
|
-
requiredFields:
|
|
8281
|
-
excludedFields:
|
|
8280
|
+
fields: z.z.array(z.z.string()).optional(),
|
|
8281
|
+
requiredFields: z.z.array(z.z.string()).optional(),
|
|
8282
|
+
excludedFields: z.z.array(z.z.string()).optional(),
|
|
8282
8283
|
});
|
|
8283
8284
|
const DataCollectionUpdateSpec = DataCollectionMethodSpec.extend({
|
|
8284
|
-
fields:
|
|
8285
|
-
excludedFields:
|
|
8285
|
+
fields: z.z.array(z.z.string()).optional(),
|
|
8286
|
+
excludedFields: z.z.array(z.z.string()).optional(),
|
|
8286
8287
|
});
|
|
8287
8288
|
const DataCollectionDeleteSpec = DataCollectionMethodSpec.extend({});
|
|
8288
8289
|
const DataCollectionFindSpec = DataCollectionMethodSpec.extend({
|
|
8289
|
-
queryFields:
|
|
8290
|
+
queryFields: z.z.array(z.z.string()).optional(),
|
|
8290
8291
|
});
|
|
8291
|
-
const DataCollectionEventTypeSpec =
|
|
8292
|
-
type:
|
|
8293
|
-
isFullScan:
|
|
8294
|
-
isIdOnly:
|
|
8292
|
+
const DataCollectionEventTypeSpec = z.z.object({
|
|
8293
|
+
type: z.z.enum(['push', 'pull']),
|
|
8294
|
+
isFullScan: z.z.boolean().optional(),
|
|
8295
|
+
isIdOnly: z.z.boolean().optional(),
|
|
8295
8296
|
});
|
|
8296
|
-
const DataCollectionEventsSpec =
|
|
8297
|
+
const DataCollectionEventsSpec = z.z
|
|
8297
8298
|
.object({
|
|
8298
8299
|
created: DataCollectionEventTypeSpec.optional(),
|
|
8299
8300
|
updated: DataCollectionEventTypeSpec.optional(),
|
|
@@ -8301,16 +8302,16 @@ const DataCollectionEventsSpec = zod.z
|
|
|
8301
8302
|
all: DataCollectionEventTypeSpec.optional(),
|
|
8302
8303
|
})
|
|
8303
8304
|
.catchall(DataCollectionEventTypeSpec);
|
|
8304
|
-
const DataCollectionUdmSpec =
|
|
8305
|
-
fields:
|
|
8306
|
-
extract:
|
|
8307
|
-
parse:
|
|
8308
|
-
});
|
|
8309
|
-
const DataCollectionUdmsSpec =
|
|
8310
|
-
const DataCollectionSpec =
|
|
8311
|
-
type:
|
|
8312
|
-
key:
|
|
8313
|
-
name:
|
|
8305
|
+
const DataCollectionUdmSpec = z.z.object({
|
|
8306
|
+
fields: z.z.array(z.z.string()).optional(),
|
|
8307
|
+
extract: z.z.record(z.z.string(), z.z.any()).optional(),
|
|
8308
|
+
parse: z.z.record(z.z.string(), z.z.any()).optional(),
|
|
8309
|
+
});
|
|
8310
|
+
const DataCollectionUdmsSpec = z.z.record(z.z.string(), DataCollectionUdmSpec);
|
|
8311
|
+
const DataCollectionSpec = z.z.object({
|
|
8312
|
+
type: z.z.literal('collection'),
|
|
8313
|
+
key: z.z.string().optional(),
|
|
8314
|
+
name: z.z.string(),
|
|
8314
8315
|
parametersSchema: DataSchema.optional(),
|
|
8315
8316
|
fieldsSchema: DataSchema.optional(),
|
|
8316
8317
|
list: DataCollectionListSpec.optional(),
|
|
@@ -8321,73 +8322,73 @@ const DataCollectionSpec = zod.z.object({
|
|
|
8321
8322
|
update: DataCollectionUpdateSpec.optional(),
|
|
8322
8323
|
delete: DataCollectionDeleteSpec.optional(),
|
|
8323
8324
|
events: DataCollectionEventsSpec.optional(),
|
|
8324
|
-
customFields:
|
|
8325
|
+
customFields: z.z.boolean().optional(),
|
|
8325
8326
|
udm: DataCollectionUdmsSpec.optional(),
|
|
8326
8327
|
find: DataCollectionFindSpec.optional(),
|
|
8327
8328
|
});
|
|
8328
|
-
const DataCollectionMethodRequest =
|
|
8329
|
-
parameters:
|
|
8329
|
+
const DataCollectionMethodRequest = z.z.object({
|
|
8330
|
+
parameters: z.z.record(z.z.string(), z.z.any()).optional(),
|
|
8330
8331
|
});
|
|
8331
|
-
const DataCollectionFindRequest =
|
|
8332
|
-
query:
|
|
8333
|
-
cursor:
|
|
8332
|
+
const DataCollectionFindRequest = z.z.object({
|
|
8333
|
+
query: z.z.any().optional(),
|
|
8334
|
+
cursor: z.z.string().optional(),
|
|
8334
8335
|
});
|
|
8335
|
-
const DataCollectionFindResponse =
|
|
8336
|
-
records:
|
|
8337
|
-
cursor:
|
|
8336
|
+
const DataCollectionFindResponse = z.z.object({
|
|
8337
|
+
records: z.z.array(DataRecordSchema),
|
|
8338
|
+
cursor: z.z.string().optional(),
|
|
8338
8339
|
});
|
|
8339
8340
|
const DataCollectionListRequest = DataCollectionMethodRequest.extend({
|
|
8340
|
-
filter:
|
|
8341
|
-
unifiedFilter:
|
|
8342
|
-
cursor:
|
|
8341
|
+
filter: z.z.any().optional(),
|
|
8342
|
+
unifiedFilter: z.z.any().optional(),
|
|
8343
|
+
cursor: z.z.string().optional(),
|
|
8343
8344
|
});
|
|
8344
|
-
const DataCollectionListResponseDrilldown =
|
|
8345
|
-
parameters:
|
|
8346
|
-
filter:
|
|
8345
|
+
const DataCollectionListResponseDrilldown = z.z.object({
|
|
8346
|
+
parameters: z.z.record(z.z.string(), z.z.any()).optional(),
|
|
8347
|
+
filter: z.z.record(z.z.string(), z.z.any()).optional(),
|
|
8347
8348
|
});
|
|
8348
|
-
const DataCollectionListResponse =
|
|
8349
|
-
records:
|
|
8350
|
-
drilldowns:
|
|
8351
|
-
cursor:
|
|
8349
|
+
const DataCollectionListResponse = z.z.object({
|
|
8350
|
+
records: z.z.array(DataRecordSchema),
|
|
8351
|
+
drilldowns: z.z.array(DataCollectionListResponseDrilldown).optional(),
|
|
8352
|
+
cursor: z.z.string().optional(),
|
|
8352
8353
|
});
|
|
8353
8354
|
const DataCollectionSearchRequest = DataCollectionMethodRequest.extend({
|
|
8354
|
-
query:
|
|
8355
|
-
cursor:
|
|
8355
|
+
query: z.z.string(),
|
|
8356
|
+
cursor: z.z.string().optional(),
|
|
8356
8357
|
});
|
|
8357
|
-
const DataCollectionSearchResponse =
|
|
8358
|
-
records:
|
|
8359
|
-
cursor:
|
|
8358
|
+
const DataCollectionSearchResponse = z.z.object({
|
|
8359
|
+
records: z.z.array(DataRecordSchema),
|
|
8360
|
+
cursor: z.z.string().optional(),
|
|
8360
8361
|
});
|
|
8361
8362
|
const DataCollectionFindByIdRequest = DataCollectionMethodRequest.extend({
|
|
8362
|
-
id:
|
|
8363
|
-
udm:
|
|
8363
|
+
id: z.z.string(),
|
|
8364
|
+
udm: z.z.string().optional(),
|
|
8364
8365
|
});
|
|
8365
|
-
const DataCollectionFindByIdResponse =
|
|
8366
|
+
const DataCollectionFindByIdResponse = z.z.object({
|
|
8366
8367
|
record: DataRecordSchema,
|
|
8367
8368
|
});
|
|
8368
8369
|
const DataCollectionMatchRequest = DataCollectionMethodRequest.extend({
|
|
8369
|
-
query:
|
|
8370
|
+
query: z.z.record(z.z.string(), z.z.any()),
|
|
8370
8371
|
});
|
|
8371
|
-
const DataCollectionMatchResponse =
|
|
8372
|
+
const DataCollectionMatchResponse = z.z.object({
|
|
8372
8373
|
record: DataRecordSchema.optional(),
|
|
8373
8374
|
});
|
|
8374
8375
|
const DataCollectionCreateRequest = DataCollectionMethodRequest.extend({
|
|
8375
|
-
fields:
|
|
8376
|
+
fields: z.z.record(z.z.string(), z.z.any()),
|
|
8376
8377
|
});
|
|
8377
|
-
const DataCollectionCreateResponse =
|
|
8378
|
-
id:
|
|
8378
|
+
const DataCollectionCreateResponse = z.z.object({
|
|
8379
|
+
id: z.z.string(),
|
|
8379
8380
|
});
|
|
8380
8381
|
const DataCollectionUpdateRequest = DataCollectionMethodRequest.extend({
|
|
8381
|
-
id:
|
|
8382
|
-
fields:
|
|
8382
|
+
id: z.z.string(),
|
|
8383
|
+
fields: z.z.record(z.z.string(), z.z.any()),
|
|
8383
8384
|
});
|
|
8384
|
-
const DataCollectionUpdateResponse =
|
|
8385
|
-
id:
|
|
8385
|
+
const DataCollectionUpdateResponse = z.z.object({
|
|
8386
|
+
id: z.z.string(),
|
|
8386
8387
|
});
|
|
8387
8388
|
const DataCollectionDeleteRequest = DataCollectionMethodRequest.extend({
|
|
8388
|
-
id:
|
|
8389
|
+
id: z.z.string(),
|
|
8389
8390
|
});
|
|
8390
|
-
const DataCollectionDeleteResponse =
|
|
8391
|
+
const DataCollectionDeleteResponse = z.z.object({});
|
|
8391
8392
|
const ConnectorDataLocationTypes = {
|
|
8392
8393
|
collection: DataLocationTypeCollection,
|
|
8393
8394
|
};
|
|
@@ -8454,22 +8455,22 @@ const DEFAULT_PULL_UPDATES_INTERVAL_SECONDS = 60 * 5;
|
|
|
8454
8455
|
const DEFAULT_FULL_SYNC_INTERVAL_SECONDS = 60 * 60 * 3;
|
|
8455
8456
|
const MIN_FULL_SYNC_INTERVAL_SECONDS = 1 * 60;
|
|
8456
8457
|
const MIN_PULL_UPDATES_INTERVAL_SECONDS = 1 * 60;
|
|
8457
|
-
const DataSourceSpecificProperties =
|
|
8458
|
-
connectionId:
|
|
8459
|
-
dataSourceId:
|
|
8460
|
-
universalDataSourceId:
|
|
8461
|
-
udm:
|
|
8462
|
-
pullUpdatesIntervalSeconds:
|
|
8463
|
-
fullSyncIntervalSeconds:
|
|
8464
|
-
collectionKey:
|
|
8465
|
-
collectionParameters:
|
|
8458
|
+
const DataSourceSpecificProperties = z.z.object({
|
|
8459
|
+
connectionId: z.z.string().optional(),
|
|
8460
|
+
dataSourceId: z.z.string().optional(),
|
|
8461
|
+
universalDataSourceId: z.z.string().optional(),
|
|
8462
|
+
udm: z.z.string().optional(),
|
|
8463
|
+
pullUpdatesIntervalSeconds: z.z.number().optional(),
|
|
8464
|
+
fullSyncIntervalSeconds: z.z.number().optional(),
|
|
8465
|
+
collectionKey: z.z.string().optional(),
|
|
8466
|
+
collectionParameters: z.z.any().optional(),
|
|
8466
8467
|
});
|
|
8467
8468
|
const DataSourceEditableProperties = BaseIntegrationLevelMembraneInterfaceEditableProperties.omit({
|
|
8468
8469
|
parentId: true,
|
|
8469
8470
|
}).extend(DataSourceSpecificProperties.shape);
|
|
8470
8471
|
const BackwardCompatibleDataSourceEditableProperties = DataSourceEditableProperties.extend({
|
|
8471
|
-
path:
|
|
8472
|
-
defaultPath:
|
|
8472
|
+
path: z.z.string().optional().meta({ deprecated: true }),
|
|
8473
|
+
defaultPath: z.z.string().optional().meta({ deprecated: true }),
|
|
8473
8474
|
});
|
|
8474
8475
|
const DataSourceExportProperties = BaseIntegrationLevelMembraneInterfaceExportProperties.extend(DataSourceSpecificProperties.shape).omit({
|
|
8475
8476
|
connectionId: true,
|
|
@@ -8477,39 +8478,39 @@ const DataSourceExportProperties = BaseIntegrationLevelMembraneInterfaceExportPr
|
|
|
8477
8478
|
universalDataSourceId: true,
|
|
8478
8479
|
});
|
|
8479
8480
|
const DataSourceReadOnlyProperties = BaseIntegrationLevelMembraneInterfaceReadOnlyProperties.extend({
|
|
8480
|
-
universalDataSourceRevision:
|
|
8481
|
+
universalDataSourceRevision: z.z.string().optional(),
|
|
8481
8482
|
});
|
|
8482
8483
|
const BaseDataSource = BaseMembraneInterface.merge(DataSourceEditableProperties).merge(DataSourceReadOnlyProperties);
|
|
8483
|
-
const DataSourceUnitConfig =
|
|
8484
|
-
key:
|
|
8485
|
-
collectionKey:
|
|
8486
|
-
collectionParameters:
|
|
8487
|
-
udm:
|
|
8488
|
-
pullUpdatesIntervalSeconds:
|
|
8489
|
-
fullSyncIntervalSeconds:
|
|
8490
|
-
path:
|
|
8491
|
-
defaultPath:
|
|
8484
|
+
const DataSourceUnitConfig = z.z.object({
|
|
8485
|
+
key: z.z.any().optional(),
|
|
8486
|
+
collectionKey: z.z.any().optional(),
|
|
8487
|
+
collectionParameters: z.z.any().optional(),
|
|
8488
|
+
udm: z.z.any().optional(),
|
|
8489
|
+
pullUpdatesIntervalSeconds: z.z.number().optional(),
|
|
8490
|
+
fullSyncIntervalSeconds: z.z.number().optional(),
|
|
8491
|
+
path: z.z.any().optional(),
|
|
8492
|
+
defaultPath: z.z.any().optional(),
|
|
8492
8493
|
});
|
|
8493
8494
|
|
|
8494
8495
|
const BaseDataSourceInstance = BaseMembraneInterface.extend({
|
|
8495
|
-
userId:
|
|
8496
|
-
revision:
|
|
8497
|
-
dataSourceRevision:
|
|
8498
|
-
dataSourceId:
|
|
8499
|
-
universalDataSourceId:
|
|
8500
|
-
udm:
|
|
8501
|
-
connectionId:
|
|
8502
|
-
integrationId:
|
|
8503
|
-
instanceKey:
|
|
8504
|
-
collectionKey:
|
|
8505
|
-
collectionParameters:
|
|
8506
|
-
defaultCollectionKey:
|
|
8507
|
-
defaultCollectionParameters:
|
|
8496
|
+
userId: z.z.string(),
|
|
8497
|
+
revision: z.z.string(),
|
|
8498
|
+
dataSourceRevision: z.z.string().optional(),
|
|
8499
|
+
dataSourceId: z.z.string().optional(),
|
|
8500
|
+
universalDataSourceId: z.z.string().optional(),
|
|
8501
|
+
udm: z.z.string().optional(),
|
|
8502
|
+
connectionId: z.z.string(),
|
|
8503
|
+
integrationId: z.z.string(),
|
|
8504
|
+
instanceKey: z.z.string().optional(),
|
|
8505
|
+
collectionKey: z.z.string().optional(),
|
|
8506
|
+
collectionParameters: z.z.any().optional(),
|
|
8507
|
+
defaultCollectionKey: z.z.string().optional(),
|
|
8508
|
+
defaultCollectionParameters: z.z.any().optional(),
|
|
8508
8509
|
collectionSpec: DataCollectionSpec.optional(),
|
|
8509
|
-
isCustomized:
|
|
8510
|
-
errors:
|
|
8511
|
-
pullUpdatesIntervalSeconds:
|
|
8512
|
-
fullSyncIntervalSeconds:
|
|
8510
|
+
isCustomized: z.z.boolean().optional(),
|
|
8511
|
+
errors: z.z.array(ErrorDataSchema).optional(),
|
|
8512
|
+
pullUpdatesIntervalSeconds: z.z.number().optional(),
|
|
8513
|
+
fullSyncIntervalSeconds: z.z.number().optional(),
|
|
8513
8514
|
});
|
|
8514
8515
|
|
|
8515
8516
|
exports.ExternalEventType = void 0;
|
|
@@ -8524,13 +8525,13 @@ exports.IncomingWebhooksState = void 0;
|
|
|
8524
8525
|
IncomingWebhooksState["SUCCESS"] = "success";
|
|
8525
8526
|
IncomingWebhooksState["ERROR"] = "error";
|
|
8526
8527
|
})(exports.IncomingWebhooksState || (exports.IncomingWebhooksState = {}));
|
|
8527
|
-
const ExternalEventUnitConfig =
|
|
8528
|
-
type:
|
|
8528
|
+
const ExternalEventUnitConfig = z.z.object({
|
|
8529
|
+
type: z.z.enum(exports.ExternalEventType),
|
|
8529
8530
|
dataSource: DataSourceUnitConfig.optional(),
|
|
8530
|
-
eventKey:
|
|
8531
|
-
eventParameters:
|
|
8531
|
+
eventKey: z.z.string().optional(),
|
|
8532
|
+
eventParameters: z.z.any().optional(),
|
|
8532
8533
|
});
|
|
8533
|
-
const BaseExternalEvent =
|
|
8534
|
+
const BaseExternalEvent = z.z.object({
|
|
8534
8535
|
config: ExternalEventUnitConfig.optional(),
|
|
8535
8536
|
});
|
|
8536
8537
|
|
|
@@ -8582,31 +8583,31 @@ exports.FlowRunLaunchedByTrigger = void 0;
|
|
|
8582
8583
|
FlowRunLaunchedByTrigger["DataSourceTrigger"] = "data-source-trigger";
|
|
8583
8584
|
FlowRunLaunchedByTrigger["ExternalEvent"] = "external-event";
|
|
8584
8585
|
})(exports.FlowRunLaunchedByTrigger || (exports.FlowRunLaunchedByTrigger = {}));
|
|
8585
|
-
const FlowRunLaunchedBy =
|
|
8586
|
-
type:
|
|
8587
|
-
ids:
|
|
8588
|
-
});
|
|
8589
|
-
const FlowRunNode =
|
|
8590
|
-
state:
|
|
8591
|
-
runs:
|
|
8592
|
-
erroredRuns:
|
|
8593
|
-
outputs:
|
|
8594
|
-
});
|
|
8595
|
-
const BaseFlowRun =
|
|
8596
|
-
id:
|
|
8597
|
-
name:
|
|
8598
|
-
flowInstanceId:
|
|
8599
|
-
universalFlowId:
|
|
8600
|
-
connectionId:
|
|
8601
|
-
integrationId:
|
|
8602
|
-
startNodeKey:
|
|
8603
|
-
userId:
|
|
8604
|
-
input:
|
|
8605
|
-
state:
|
|
8606
|
-
startTime:
|
|
8607
|
-
endTime:
|
|
8608
|
-
errors:
|
|
8609
|
-
nodes:
|
|
8586
|
+
const FlowRunLaunchedBy = z.z.object({
|
|
8587
|
+
type: z.z.enum(exports.FlowRunLaunchedByTrigger),
|
|
8588
|
+
ids: z.z.array(z.z.string()).optional(),
|
|
8589
|
+
});
|
|
8590
|
+
const FlowRunNode = z.z.object({
|
|
8591
|
+
state: z.z.enum(exports.FlowRunNodeState),
|
|
8592
|
+
runs: z.z.number().optional(),
|
|
8593
|
+
erroredRuns: z.z.number().optional(),
|
|
8594
|
+
outputs: z.z.number().optional(),
|
|
8595
|
+
});
|
|
8596
|
+
const BaseFlowRun = z.z.object({
|
|
8597
|
+
id: z.z.string(),
|
|
8598
|
+
name: z.z.string().optional(),
|
|
8599
|
+
flowInstanceId: z.z.string(),
|
|
8600
|
+
universalFlowId: z.z.string().optional(),
|
|
8601
|
+
connectionId: z.z.string().optional(),
|
|
8602
|
+
integrationId: z.z.string().optional(),
|
|
8603
|
+
startNodeKey: z.z.string(),
|
|
8604
|
+
userId: z.z.string(),
|
|
8605
|
+
input: z.z.any().optional(),
|
|
8606
|
+
state: z.z.enum(exports.FlowRunState),
|
|
8607
|
+
startTime: z.z.string(),
|
|
8608
|
+
endTime: z.z.string().optional(),
|
|
8609
|
+
errors: z.z.array(ErrorDataSchema).optional(),
|
|
8610
|
+
nodes: z.z.record(z.z.string(), FlowRunNode).optional(),
|
|
8610
8611
|
launchedBy: FlowRunLaunchedBy.optional(),
|
|
8611
8612
|
});
|
|
8612
8613
|
|
|
@@ -8616,69 +8617,69 @@ exports.FlowNodeRunStatus = void 0;
|
|
|
8616
8617
|
FlowNodeRunStatus["FAILED"] = "failed";
|
|
8617
8618
|
FlowNodeRunStatus["SKIPPED"] = "skipped";
|
|
8618
8619
|
})(exports.FlowNodeRunStatus || (exports.FlowNodeRunStatus = {}));
|
|
8619
|
-
const UpstreamFlowNodeRunSchema =
|
|
8620
|
-
nodeKey:
|
|
8621
|
-
runId:
|
|
8622
|
-
outputId:
|
|
8623
|
-
});
|
|
8624
|
-
const DownstreamFlowNodeRunSchema =
|
|
8625
|
-
runId:
|
|
8626
|
-
nodeKey:
|
|
8627
|
-
});
|
|
8628
|
-
const FlowNodeRunParametersSchema =
|
|
8629
|
-
id:
|
|
8630
|
-
upstreamRuns:
|
|
8631
|
-
input:
|
|
8632
|
-
});
|
|
8633
|
-
const FlowNodeRunOutputSchema =
|
|
8634
|
-
id:
|
|
8635
|
-
data:
|
|
8636
|
-
downstreamRuns:
|
|
8637
|
-
});
|
|
8638
|
-
const FlowNodeRunResultSchema =
|
|
8639
|
-
status:
|
|
8640
|
-
logs:
|
|
8641
|
-
outputs:
|
|
8642
|
-
errors:
|
|
8620
|
+
const UpstreamFlowNodeRunSchema = z.z.object({
|
|
8621
|
+
nodeKey: z.z.string(),
|
|
8622
|
+
runId: z.z.string(),
|
|
8623
|
+
outputId: z.z.string(),
|
|
8624
|
+
});
|
|
8625
|
+
const DownstreamFlowNodeRunSchema = z.z.object({
|
|
8626
|
+
runId: z.z.string(),
|
|
8627
|
+
nodeKey: z.z.string(),
|
|
8628
|
+
});
|
|
8629
|
+
const FlowNodeRunParametersSchema = z.z.object({
|
|
8630
|
+
id: z.z.string(),
|
|
8631
|
+
upstreamRuns: z.z.array(UpstreamFlowNodeRunSchema),
|
|
8632
|
+
input: z.z.any(),
|
|
8633
|
+
});
|
|
8634
|
+
const FlowNodeRunOutputSchema = z.z.object({
|
|
8635
|
+
id: z.z.string(),
|
|
8636
|
+
data: z.z.string(),
|
|
8637
|
+
downstreamRuns: z.z.array(DownstreamFlowNodeRunSchema),
|
|
8638
|
+
});
|
|
8639
|
+
const FlowNodeRunResultSchema = z.z.object({
|
|
8640
|
+
status: z.z.enum(exports.FlowNodeRunStatus),
|
|
8641
|
+
logs: z.z.array(z.z.any()),
|
|
8642
|
+
outputs: z.z.array(FlowNodeRunOutputSchema),
|
|
8643
|
+
errors: z.z.array(ErrorDataSchema),
|
|
8643
8644
|
});
|
|
8644
8645
|
const FlowNodeRunRecordSchema = FlowNodeRunParametersSchema.merge(FlowNodeRunResultSchema);
|
|
8645
|
-
const FlowNodeRunOutputWithoutDownstreamRunsSchema =
|
|
8646
|
-
id:
|
|
8647
|
-
data:
|
|
8648
|
-
});
|
|
8649
|
-
const FlowNodeRunOutputMetadataSchema =
|
|
8650
|
-
id:
|
|
8651
|
-
downstreamRuns:
|
|
8652
|
-
});
|
|
8653
|
-
const FlowNodeRunRecordWithoutOutputsDataSchema =
|
|
8654
|
-
id:
|
|
8655
|
-
upstreamRuns:
|
|
8656
|
-
input:
|
|
8657
|
-
status:
|
|
8658
|
-
logs:
|
|
8659
|
-
outputs:
|
|
8660
|
-
errors:
|
|
8661
|
-
});
|
|
8662
|
-
|
|
8663
|
-
const FlowNodeLink =
|
|
8664
|
-
key:
|
|
8665
|
-
filter:
|
|
8666
|
-
name:
|
|
8667
|
-
});
|
|
8668
|
-
const FlowNode =
|
|
8669
|
-
type:
|
|
8670
|
-
version:
|
|
8671
|
-
name:
|
|
8672
|
-
description:
|
|
8673
|
-
config:
|
|
8674
|
-
concurrency:
|
|
8675
|
-
onError:
|
|
8676
|
-
ui:
|
|
8677
|
-
inputSchema:
|
|
8678
|
-
outputSchema:
|
|
8679
|
-
outputExample:
|
|
8680
|
-
links:
|
|
8681
|
-
isCustomized:
|
|
8646
|
+
const FlowNodeRunOutputWithoutDownstreamRunsSchema = z.z.object({
|
|
8647
|
+
id: z.z.string(),
|
|
8648
|
+
data: z.z.string(),
|
|
8649
|
+
});
|
|
8650
|
+
const FlowNodeRunOutputMetadataSchema = z.z.object({
|
|
8651
|
+
id: z.z.string(),
|
|
8652
|
+
downstreamRuns: z.z.array(DownstreamFlowNodeRunSchema),
|
|
8653
|
+
});
|
|
8654
|
+
const FlowNodeRunRecordWithoutOutputsDataSchema = z.z.object({
|
|
8655
|
+
id: z.z.string(),
|
|
8656
|
+
upstreamRuns: z.z.array(UpstreamFlowNodeRunSchema),
|
|
8657
|
+
input: z.z.any(),
|
|
8658
|
+
status: z.z.enum(exports.FlowNodeRunStatus),
|
|
8659
|
+
logs: z.z.array(z.z.any()),
|
|
8660
|
+
outputs: z.z.array(FlowNodeRunOutputMetadataSchema),
|
|
8661
|
+
errors: z.z.array(ErrorDataSchema),
|
|
8662
|
+
});
|
|
8663
|
+
|
|
8664
|
+
const FlowNodeLink = z.z.object({
|
|
8665
|
+
key: z.z.string().optional(),
|
|
8666
|
+
filter: z.z.any().optional(),
|
|
8667
|
+
name: z.z.string().optional(),
|
|
8668
|
+
});
|
|
8669
|
+
const FlowNode = z.z.object({
|
|
8670
|
+
type: z.z.string().optional(),
|
|
8671
|
+
version: z.z.number().optional(),
|
|
8672
|
+
name: z.z.string().optional(),
|
|
8673
|
+
description: z.z.string().optional(),
|
|
8674
|
+
config: z.z.any().optional(),
|
|
8675
|
+
concurrency: z.z.number().optional(),
|
|
8676
|
+
onError: z.z.enum(['stop', 'continue']).optional(),
|
|
8677
|
+
ui: z.z.any().optional(),
|
|
8678
|
+
inputSchema: z.z.any().optional(),
|
|
8679
|
+
outputSchema: z.z.any().optional(),
|
|
8680
|
+
outputExample: z.z.any().optional(),
|
|
8681
|
+
links: z.z.array(FlowNodeLink).optional(),
|
|
8682
|
+
isCustomized: z.z.boolean().optional(),
|
|
8682
8683
|
});
|
|
8683
8684
|
class FlowNodeSpec {
|
|
8684
8685
|
constructor(args) {
|
|
@@ -8953,14 +8954,14 @@ const FLOW_NODE_SPECS = {
|
|
|
8953
8954
|
[exports.FlowNodeType.RunAction]: RunAction,
|
|
8954
8955
|
};
|
|
8955
8956
|
|
|
8956
|
-
const FlowSpecificProperties =
|
|
8957
|
-
flowId:
|
|
8958
|
-
universalFlowId:
|
|
8957
|
+
const FlowSpecificProperties = z.z.object({
|
|
8958
|
+
flowId: z.z.string().optional(),
|
|
8959
|
+
universalFlowId: z.z.string().optional(),
|
|
8959
8960
|
parametersSchema: DataSchema.optional(),
|
|
8960
|
-
parameters:
|
|
8961
|
-
enabled:
|
|
8962
|
-
nodes:
|
|
8963
|
-
autoCreateInstances:
|
|
8961
|
+
parameters: z.z.any().optional(),
|
|
8962
|
+
enabled: z.z.boolean().optional(),
|
|
8963
|
+
nodes: z.z.record(z.z.string(), FlowNode).optional(),
|
|
8964
|
+
autoCreateInstances: z.z.boolean().optional(),
|
|
8964
8965
|
});
|
|
8965
8966
|
const FlowEditableProperties = BaseIntegrationLevelMembraneInterfaceEditableProperties.omit({
|
|
8966
8967
|
parentId: true,
|
|
@@ -8970,41 +8971,41 @@ const FlowExportProperties = BaseIntegrationLevelMembraneInterfaceExportProperti
|
|
|
8970
8971
|
universalFlowId: true,
|
|
8971
8972
|
});
|
|
8972
8973
|
const FlowReadOnlyProperties = BaseIntegrationLevelMembraneInterfaceReadOnlyProperties.extend({
|
|
8973
|
-
universalFlowRevision:
|
|
8974
|
+
universalFlowRevision: z.z.string().optional(),
|
|
8974
8975
|
});
|
|
8975
8976
|
const BaseFlow = BaseMembraneInterface.merge(FlowEditableProperties).merge(FlowReadOnlyProperties);
|
|
8976
8977
|
|
|
8977
8978
|
const BaseIntegration = BaseMembraneInterface.extend({
|
|
8978
|
-
logoUri:
|
|
8979
|
-
connectorId:
|
|
8980
|
-
connectorVersion:
|
|
8981
|
-
oAuthCallbackUri:
|
|
8982
|
-
parameters:
|
|
8983
|
-
archivedAt:
|
|
8984
|
-
hasMissingParameters:
|
|
8985
|
-
hasDocumentation:
|
|
8986
|
-
hasOperations:
|
|
8987
|
-
operationsCount:
|
|
8988
|
-
hasData:
|
|
8989
|
-
dataCollectionsCount:
|
|
8990
|
-
hasEvents:
|
|
8991
|
-
eventsCount:
|
|
8992
|
-
hasGlobalWebhooks:
|
|
8993
|
-
hasUdm:
|
|
8994
|
-
isTest:
|
|
8995
|
-
appUuid:
|
|
8996
|
-
isDeactivated:
|
|
8997
|
-
authType:
|
|
8979
|
+
logoUri: z.z.string(),
|
|
8980
|
+
connectorId: z.z.string().optional(),
|
|
8981
|
+
connectorVersion: z.z.string().optional(),
|
|
8982
|
+
oAuthCallbackUri: z.z.string().optional(),
|
|
8983
|
+
parameters: z.z.any().optional(),
|
|
8984
|
+
archivedAt: z.z.string().optional(),
|
|
8985
|
+
hasMissingParameters: z.z.boolean().optional(),
|
|
8986
|
+
hasDocumentation: z.z.boolean().optional(),
|
|
8987
|
+
hasOperations: z.z.boolean().optional(),
|
|
8988
|
+
operationsCount: z.z.number().optional(),
|
|
8989
|
+
hasData: z.z.boolean().optional(),
|
|
8990
|
+
dataCollectionsCount: z.z.number().optional(),
|
|
8991
|
+
hasEvents: z.z.boolean().optional(),
|
|
8992
|
+
eventsCount: z.z.number().optional(),
|
|
8993
|
+
hasGlobalWebhooks: z.z.boolean().optional(),
|
|
8994
|
+
hasUdm: z.z.boolean().optional(),
|
|
8995
|
+
isTest: z.z.boolean().optional(),
|
|
8996
|
+
appUuid: z.z.string().optional(),
|
|
8997
|
+
isDeactivated: z.z.boolean().optional(),
|
|
8998
|
+
authType: z.z.enum(CONNECTOR_AUTH_TYPES).optional(),
|
|
8998
8999
|
});
|
|
8999
9000
|
const IntegrationExportProperties = BaseMembraneInterfaceEditableProperties.extend({
|
|
9000
|
-
logoUri:
|
|
9001
|
-
connectorUuid:
|
|
9002
|
-
connectorVersion:
|
|
9003
|
-
oAuthCallbackUri:
|
|
9004
|
-
parameters:
|
|
9005
|
-
appUuid:
|
|
9006
|
-
});
|
|
9007
|
-
const AppliedToIntegrations = (elementSchema) =>
|
|
9001
|
+
logoUri: z.z.string(),
|
|
9002
|
+
connectorUuid: z.z.string().optional(),
|
|
9003
|
+
connectorVersion: z.z.string().optional(),
|
|
9004
|
+
oAuthCallbackUri: z.z.string().optional(),
|
|
9005
|
+
parameters: z.z.any().optional(),
|
|
9006
|
+
appUuid: z.z.string().optional(),
|
|
9007
|
+
});
|
|
9008
|
+
const AppliedToIntegrations = (elementSchema) => z.z.array(z.z.object({
|
|
9008
9009
|
element: elementSchema,
|
|
9009
9010
|
integration: BaseIntegration,
|
|
9010
9011
|
}));
|
|
@@ -9029,27 +9030,27 @@ exports.IntegrationElementType = void 0;
|
|
|
9029
9030
|
IntegrationElementType["EXTERNAL_EVENT"] = "external-event";
|
|
9030
9031
|
})(exports.IntegrationElementType || (exports.IntegrationElementType = {}));
|
|
9031
9032
|
|
|
9032
|
-
const PackageElement =
|
|
9033
|
-
id:
|
|
9034
|
-
type:
|
|
9035
|
-
element:
|
|
9033
|
+
const PackageElement = z.z.object({
|
|
9034
|
+
id: z.z.string(),
|
|
9035
|
+
type: z.z.enum(exports.IntegrationElementType),
|
|
9036
|
+
element: z.z.any().optional(),
|
|
9036
9037
|
});
|
|
9037
|
-
const PackageElementExport =
|
|
9038
|
-
uuid:
|
|
9039
|
-
type:
|
|
9040
|
-
element:
|
|
9038
|
+
const PackageElementExport = z.z.object({
|
|
9039
|
+
uuid: z.z.string(),
|
|
9040
|
+
type: z.z.enum(exports.IntegrationElementType),
|
|
9041
|
+
element: z.z.any().optional(),
|
|
9041
9042
|
});
|
|
9042
9043
|
const PackageEditableProperties = BaseIntegrationLevelMembraneInterfaceEditableProperties.extend({
|
|
9043
|
-
scenarioTemplateId:
|
|
9044
|
-
elements:
|
|
9044
|
+
scenarioTemplateId: z.z.string().optional(),
|
|
9045
|
+
elements: z.z.array(PackageElement).optional(),
|
|
9045
9046
|
});
|
|
9046
9047
|
const PackageExportProperties = BaseIntegrationLevelMembraneInterfaceExportProperties.extend({
|
|
9047
|
-
elements:
|
|
9048
|
+
elements: z.z.array(PackageElementExport).optional(),
|
|
9048
9049
|
});
|
|
9049
|
-
const PackageCalculatedProperties =
|
|
9050
|
-
key:
|
|
9051
|
-
name:
|
|
9052
|
-
isCustomized:
|
|
9050
|
+
const PackageCalculatedProperties = z.z.object({
|
|
9051
|
+
key: z.z.string(),
|
|
9052
|
+
name: z.z.string(),
|
|
9053
|
+
isCustomized: z.z.boolean().optional(),
|
|
9053
9054
|
});
|
|
9054
9055
|
const BasePackage = BaseMembraneInterface.merge(PackageEditableProperties).merge(PackageCalculatedProperties);
|
|
9055
9056
|
|
|
@@ -9064,52 +9065,52 @@ exports.ScreenBlockType = void 0;
|
|
|
9064
9065
|
ScreenBlockType["DataSource"] = "data-source";
|
|
9065
9066
|
ScreenBlockType["Action"] = "action";
|
|
9066
9067
|
})(exports.ScreenBlockType || (exports.ScreenBlockType = {}));
|
|
9067
|
-
const ScreenBlock =
|
|
9068
|
+
const ScreenBlock = z.z
|
|
9068
9069
|
.object({
|
|
9069
|
-
type:
|
|
9070
|
+
type: z.z.enum(exports.ScreenBlockType),
|
|
9070
9071
|
})
|
|
9071
|
-
.and(
|
|
9072
|
+
.and(z.z.record(z.z.string(), z.z.any()));
|
|
9072
9073
|
const BaseScreen = BaseWorkspaceElement.extend({
|
|
9073
|
-
type:
|
|
9074
|
-
key:
|
|
9075
|
-
blocks:
|
|
9074
|
+
type: z.z.enum(exports.ScreenType),
|
|
9075
|
+
key: z.z.string().optional(),
|
|
9076
|
+
blocks: z.z.array(ScreenBlock),
|
|
9076
9077
|
});
|
|
9077
9078
|
|
|
9078
|
-
const BaseCustomer =
|
|
9079
|
-
id:
|
|
9080
|
-
name:
|
|
9081
|
-
meta:
|
|
9082
|
-
internalId:
|
|
9083
|
-
fields:
|
|
9084
|
-
credentials:
|
|
9085
|
-
lastActiveAt:
|
|
9086
|
-
isTest:
|
|
9087
|
-
isBillable:
|
|
9088
|
-
createdAt:
|
|
9089
|
-
archivedAt:
|
|
9079
|
+
const BaseCustomer = z.z.object({
|
|
9080
|
+
id: z.z.string(),
|
|
9081
|
+
name: z.z.string(),
|
|
9082
|
+
meta: z.z.record(z.z.string(), z.z.any()).optional(),
|
|
9083
|
+
internalId: z.z.string(),
|
|
9084
|
+
fields: z.z.record(z.z.string(), z.z.any()).optional(),
|
|
9085
|
+
credentials: z.z.any().optional(),
|
|
9086
|
+
lastActiveAt: z.z.string().optional(),
|
|
9087
|
+
isTest: z.z.boolean().optional(),
|
|
9088
|
+
isBillable: z.z.boolean().optional(),
|
|
9089
|
+
createdAt: z.z.string().optional(),
|
|
9090
|
+
archivedAt: z.z.string().optional(),
|
|
9090
9091
|
});
|
|
9091
9092
|
|
|
9092
9093
|
const BaseFlowInstance = BaseMembraneInterface.extend({
|
|
9093
|
-
userId:
|
|
9094
|
-
connectionId:
|
|
9095
|
-
flowId:
|
|
9096
|
-
universalFlowId:
|
|
9097
|
-
integrationId:
|
|
9098
|
-
instanceKey:
|
|
9099
|
-
parameters:
|
|
9094
|
+
userId: z.z.string(),
|
|
9095
|
+
connectionId: z.z.string().optional(),
|
|
9096
|
+
flowId: z.z.string().optional(),
|
|
9097
|
+
universalFlowId: z.z.string().optional(),
|
|
9098
|
+
integrationId: z.z.string(),
|
|
9099
|
+
instanceKey: z.z.string().optional(),
|
|
9100
|
+
parameters: z.z.any().optional(),
|
|
9100
9101
|
parametersSchema: DataSchema.optional(),
|
|
9101
|
-
nodes:
|
|
9102
|
-
enabled:
|
|
9103
|
-
createdAt:
|
|
9104
|
-
updatedAt:
|
|
9105
|
-
state:
|
|
9106
|
-
customized:
|
|
9102
|
+
nodes: z.z.record(z.z.string(), z.z.any()).optional(),
|
|
9103
|
+
enabled: z.z.boolean(),
|
|
9104
|
+
createdAt: z.z.string(),
|
|
9105
|
+
updatedAt: z.z.string(),
|
|
9106
|
+
state: z.z.enum(exports.WorkspaceElementState).optional(),
|
|
9107
|
+
customized: z.z
|
|
9107
9108
|
.object({
|
|
9108
|
-
name:
|
|
9109
|
-
nodes:
|
|
9109
|
+
name: z.z.boolean().optional(),
|
|
9110
|
+
nodes: z.z.boolean().optional(),
|
|
9110
9111
|
})
|
|
9111
9112
|
.optional(),
|
|
9112
|
-
dependencies:
|
|
9113
|
+
dependencies: z.z.array(z.z.any()).optional(),
|
|
9113
9114
|
});
|
|
9114
9115
|
exports.FlowInstanceNodeState = void 0;
|
|
9115
9116
|
(function (FlowInstanceNodeState) {
|
|
@@ -9117,92 +9118,92 @@ exports.FlowInstanceNodeState = void 0;
|
|
|
9117
9118
|
FlowInstanceNodeState["READY"] = "READY";
|
|
9118
9119
|
})(exports.FlowInstanceNodeState || (exports.FlowInstanceNodeState = {}));
|
|
9119
9120
|
const FlowInstanceNode = FlowNode.extend({
|
|
9120
|
-
state:
|
|
9121
|
-
errors:
|
|
9122
|
-
userConfig:
|
|
9123
|
-
testInput:
|
|
9124
|
-
dependencies:
|
|
9125
|
-
});
|
|
9126
|
-
|
|
9127
|
-
const flowNodeLinkSchema =
|
|
9128
|
-
key:
|
|
9129
|
-
filter:
|
|
9130
|
-
name:
|
|
9131
|
-
});
|
|
9132
|
-
const flowInstanceNodeCreateSchema =
|
|
9133
|
-
name:
|
|
9134
|
-
type:
|
|
9135
|
-
userConfig:
|
|
9136
|
-
config:
|
|
9137
|
-
onError:
|
|
9138
|
-
concurrency:
|
|
9139
|
-
ui:
|
|
9140
|
-
links:
|
|
9141
|
-
isCustomized:
|
|
9142
|
-
});
|
|
9143
|
-
const flowInstanceNodeUpdateSchema =
|
|
9144
|
-
name:
|
|
9145
|
-
type:
|
|
9146
|
-
userConfig:
|
|
9147
|
-
config:
|
|
9148
|
-
onError:
|
|
9149
|
-
links:
|
|
9150
|
-
concurrency:
|
|
9151
|
-
isCustomized:
|
|
9152
|
-
});
|
|
9153
|
-
const createFlowInstanceSchema =
|
|
9154
|
-
name:
|
|
9155
|
-
userId:
|
|
9156
|
-
flowId:
|
|
9157
|
-
connectionId:
|
|
9158
|
-
integrationId:
|
|
9159
|
-
instanceKey:
|
|
9160
|
-
parameters:
|
|
9161
|
-
nodes:
|
|
9162
|
-
enabled:
|
|
9163
|
-
customized:
|
|
9121
|
+
state: z.z.enum(exports.FlowInstanceNodeState).optional(),
|
|
9122
|
+
errors: z.z.array(ErrorDataSchema).optional(),
|
|
9123
|
+
userConfig: z.z.any().optional(),
|
|
9124
|
+
testInput: z.z.any().optional(),
|
|
9125
|
+
dependencies: z.z.array(z.z.any()).optional(),
|
|
9126
|
+
});
|
|
9127
|
+
|
|
9128
|
+
const flowNodeLinkSchema = z.z.object({
|
|
9129
|
+
key: z.z.string().optional(),
|
|
9130
|
+
filter: z.z.any().optional(),
|
|
9131
|
+
name: z.z.string().optional(),
|
|
9132
|
+
});
|
|
9133
|
+
const flowInstanceNodeCreateSchema = z.z.object({
|
|
9134
|
+
name: z.z.string().optional(),
|
|
9135
|
+
type: z.z.string().optional(),
|
|
9136
|
+
userConfig: z.z.any().optional(),
|
|
9137
|
+
config: z.z.any().optional(),
|
|
9138
|
+
onError: z.z.enum(['stop', 'continue']).optional(),
|
|
9139
|
+
concurrency: z.z.number().optional(),
|
|
9140
|
+
ui: z.z.any().optional(),
|
|
9141
|
+
links: z.z.array(flowNodeLinkSchema).optional(),
|
|
9142
|
+
isCustomized: z.z.boolean().optional(),
|
|
9143
|
+
});
|
|
9144
|
+
const flowInstanceNodeUpdateSchema = z.z.object({
|
|
9145
|
+
name: z.z.string().optional(),
|
|
9146
|
+
type: z.z.string().optional(),
|
|
9147
|
+
userConfig: z.z.any().optional(),
|
|
9148
|
+
config: z.z.any().optional(),
|
|
9149
|
+
onError: z.z.enum(['stop', 'continue']).optional(),
|
|
9150
|
+
links: z.z.array(flowNodeLinkSchema).optional(),
|
|
9151
|
+
concurrency: z.z.number().optional(),
|
|
9152
|
+
isCustomized: z.z.boolean().optional(),
|
|
9153
|
+
});
|
|
9154
|
+
const createFlowInstanceSchema = z.z.object({
|
|
9155
|
+
name: z.z.string().optional(),
|
|
9156
|
+
userId: z.z.string().optional(),
|
|
9157
|
+
flowId: z.z.string().optional(),
|
|
9158
|
+
connectionId: z.z.string().optional(),
|
|
9159
|
+
integrationId: z.z.string().optional(),
|
|
9160
|
+
instanceKey: z.z.string().optional(),
|
|
9161
|
+
parameters: z.z.any().optional(),
|
|
9162
|
+
nodes: z.z.record(z.z.string(), flowInstanceNodeCreateSchema).optional(),
|
|
9163
|
+
enabled: z.z.boolean().optional(),
|
|
9164
|
+
customized: z.z
|
|
9164
9165
|
.object({
|
|
9165
|
-
name:
|
|
9166
|
-
nodes:
|
|
9166
|
+
name: z.z.boolean().optional(),
|
|
9167
|
+
nodes: z.z.boolean().optional(),
|
|
9167
9168
|
})
|
|
9168
9169
|
.optional(),
|
|
9169
9170
|
});
|
|
9170
|
-
const updateFlowInstanceSchema =
|
|
9171
|
-
name:
|
|
9172
|
-
enabled:
|
|
9173
|
-
parameters:
|
|
9174
|
-
nodes:
|
|
9175
|
-
archivedAt:
|
|
9176
|
-
customized:
|
|
9171
|
+
const updateFlowInstanceSchema = z.z.object({
|
|
9172
|
+
name: z.z.string().optional(),
|
|
9173
|
+
enabled: z.z.boolean().optional(),
|
|
9174
|
+
parameters: z.z.any().optional(),
|
|
9175
|
+
nodes: z.z.record(z.z.string(), flowInstanceNodeUpdateSchema).optional(),
|
|
9176
|
+
archivedAt: z.z.string().optional(),
|
|
9177
|
+
customized: z.z
|
|
9177
9178
|
.object({
|
|
9178
|
-
name:
|
|
9179
|
-
nodes:
|
|
9179
|
+
name: z.z.boolean().optional(),
|
|
9180
|
+
nodes: z.z.boolean().optional(),
|
|
9180
9181
|
})
|
|
9181
9182
|
.optional(),
|
|
9182
9183
|
});
|
|
9183
9184
|
|
|
9184
9185
|
const BaseFieldMappingInstance = BaseMembraneInterface.extend({
|
|
9185
|
-
userId:
|
|
9186
|
-
revision:
|
|
9187
|
-
connectionId:
|
|
9188
|
-
integrationId:
|
|
9189
|
-
fieldMappingRevision:
|
|
9190
|
-
fieldMappingId:
|
|
9191
|
-
instanceKey:
|
|
9192
|
-
dataSourceInstanceId:
|
|
9186
|
+
userId: z.z.string(),
|
|
9187
|
+
revision: z.z.string(),
|
|
9188
|
+
connectionId: z.z.string(),
|
|
9189
|
+
integrationId: z.z.string(),
|
|
9190
|
+
fieldMappingRevision: z.z.string().optional(),
|
|
9191
|
+
fieldMappingId: z.z.string().optional(),
|
|
9192
|
+
instanceKey: z.z.string().optional(),
|
|
9193
|
+
dataSourceInstanceId: z.z.string().optional(),
|
|
9193
9194
|
dataSourceSchema: DataSchema.optional(),
|
|
9194
|
-
direction:
|
|
9195
|
+
direction: z.z.enum(exports.FieldMappingDirection).optional(),
|
|
9195
9196
|
appSchema: DataSchema.optional(),
|
|
9196
|
-
importValue:
|
|
9197
|
-
exportValue:
|
|
9198
|
-
isCustomized:
|
|
9199
|
-
unifiedExportValue:
|
|
9200
|
-
unifiedImportValue:
|
|
9201
|
-
frozenImportFields:
|
|
9202
|
-
frozenExportFields:
|
|
9203
|
-
state:
|
|
9197
|
+
importValue: z.z.any().optional(),
|
|
9198
|
+
exportValue: z.z.any().optional(),
|
|
9199
|
+
isCustomized: z.z.boolean().optional(),
|
|
9200
|
+
unifiedExportValue: z.z.any().optional(),
|
|
9201
|
+
unifiedImportValue: z.z.any().optional(),
|
|
9202
|
+
frozenImportFields: z.z.array(z.z.string()).optional(),
|
|
9203
|
+
frozenExportFields: z.z.array(z.z.string()).optional(),
|
|
9204
|
+
state: z.z.enum(exports.WorkspaceElementState).optional(),
|
|
9204
9205
|
error: ErrorDataSchema.optional(),
|
|
9205
|
-
externalSchema:
|
|
9206
|
+
externalSchema: z.z.any().optional(),
|
|
9206
9207
|
});
|
|
9207
9208
|
|
|
9208
9209
|
exports.DataLinkDirection = void 0;
|
|
@@ -9211,27 +9212,29 @@ exports.DataLinkDirection = void 0;
|
|
|
9211
9212
|
DataLinkDirection["EXPORT"] = "export";
|
|
9212
9213
|
DataLinkDirection["BOTH"] = "both";
|
|
9213
9214
|
})(exports.DataLinkDirection || (exports.DataLinkDirection = {}));
|
|
9214
|
-
const
|
|
9215
|
-
|
|
9216
|
-
|
|
9215
|
+
const DataLinkTableSpecificProperties = z.z.object({});
|
|
9216
|
+
const DataLinkTableEditableProperties = BaseMembraneInterfaceEditableProperties.extend(DataLinkTableSpecificProperties.shape);
|
|
9217
|
+
const DataLinkTableExportProperties = BaseMembraneInterfaceEditableProperties.extend(DataLinkTableSpecificProperties.shape);
|
|
9218
|
+
const DataLinkTableReadOnlyProperties = BaseMembraneInterfaceReadOnlyProperties.extend({});
|
|
9219
|
+
const BaseDataLinkTable = BaseMembraneInterface.merge(DataLinkTableEditableProperties).merge(DataLinkTableReadOnlyProperties);
|
|
9217
9220
|
|
|
9218
9221
|
const BaseDataLinkTableInstance = BaseMembraneInterface.extend({
|
|
9219
|
-
dataLinkTableId:
|
|
9220
|
-
connectionId:
|
|
9221
|
-
integrationId:
|
|
9222
|
-
instanceKey:
|
|
9223
|
-
userId:
|
|
9224
|
-
archivedAt:
|
|
9222
|
+
dataLinkTableId: z.z.string().optional(),
|
|
9223
|
+
connectionId: z.z.string().optional(),
|
|
9224
|
+
integrationId: z.z.string(),
|
|
9225
|
+
instanceKey: z.z.string().optional(),
|
|
9226
|
+
userId: z.z.string(),
|
|
9227
|
+
archivedAt: z.z.string().optional(),
|
|
9225
9228
|
});
|
|
9226
|
-
const DataLink =
|
|
9227
|
-
id:
|
|
9228
|
-
dataLinkTableInstanceId:
|
|
9229
|
-
externalRecordId:
|
|
9230
|
-
appRecordId:
|
|
9231
|
-
direction:
|
|
9229
|
+
const DataLink = z.z.object({
|
|
9230
|
+
id: z.z.string(),
|
|
9231
|
+
dataLinkTableInstanceId: z.z.string(),
|
|
9232
|
+
externalRecordId: z.z.string(),
|
|
9233
|
+
appRecordId: z.z.string(),
|
|
9234
|
+
direction: z.z.enum(exports.DataLinkDirection),
|
|
9232
9235
|
});
|
|
9233
|
-
const DataLinkTableConfig =
|
|
9234
|
-
key:
|
|
9236
|
+
const DataLinkTableConfig = z.z.object({
|
|
9237
|
+
key: z.z.string(),
|
|
9235
9238
|
});
|
|
9236
9239
|
|
|
9237
9240
|
exports.HttpRequestMethod = void 0;
|
|
@@ -9242,12 +9245,12 @@ exports.HttpRequestMethod = void 0;
|
|
|
9242
9245
|
HttpRequestMethod["PUT"] = "PUT";
|
|
9243
9246
|
HttpRequestMethod["DELETE"] = "DELETE";
|
|
9244
9247
|
})(exports.HttpRequestMethod || (exports.HttpRequestMethod = {}));
|
|
9245
|
-
const HttpRequestSpec =
|
|
9246
|
-
method:
|
|
9247
|
-
uri:
|
|
9248
|
-
headers:
|
|
9249
|
-
query:
|
|
9250
|
-
body:
|
|
9248
|
+
const HttpRequestSpec = z.z.object({
|
|
9249
|
+
method: z.z.string().toUpperCase().pipe(z.z.enum(exports.HttpRequestMethod)).optional(),
|
|
9250
|
+
uri: z.z.any(),
|
|
9251
|
+
headers: z.z.record(z.z.string(), z.z.any()).optional(),
|
|
9252
|
+
query: z.z.record(z.z.string(), z.z.any()).optional(),
|
|
9253
|
+
body: z.z.any().optional(),
|
|
9251
9254
|
});
|
|
9252
9255
|
const HTTP_REQUEST_SCHEMA = {
|
|
9253
9256
|
type: 'object',
|
|
@@ -9272,45 +9275,59 @@ const HTTP_REQUEST_SCHEMA = {
|
|
|
9272
9275
|
};
|
|
9273
9276
|
|
|
9274
9277
|
const BaseAppEventType = BaseMembraneInterface.extend({
|
|
9275
|
-
revision:
|
|
9276
|
-
archivedAt:
|
|
9278
|
+
revision: z.z.string(),
|
|
9279
|
+
archivedAt: z.z.string().optional(),
|
|
9280
|
+
webhookKey: z.z.string(),
|
|
9277
9281
|
subscribeRequest: HttpRequestSpec.optional(),
|
|
9278
|
-
example:
|
|
9282
|
+
example: z.z.any().optional(),
|
|
9283
|
+
schema: DataSchema.optional(),
|
|
9284
|
+
globalWebhookUri: z.z.string(),
|
|
9285
|
+
tenantIdFormula: z.z.any().optional(),
|
|
9286
|
+
userIdFormula: z.z.any().optional(),
|
|
9287
|
+
});
|
|
9288
|
+
const AppEventTypeEditableProperties = BaseMembraneInterfaceEditableProperties.extend({
|
|
9279
9289
|
schema: DataSchema.optional(),
|
|
9280
|
-
|
|
9281
|
-
tenantIdFormula:
|
|
9282
|
-
userIdFormula:
|
|
9290
|
+
example: z.z.any().optional(),
|
|
9291
|
+
tenantIdFormula: z.z.any().optional(),
|
|
9292
|
+
userIdFormula: z.z.any().optional(),
|
|
9293
|
+
subscribeRequest: HttpRequestSpec.optional(),
|
|
9283
9294
|
});
|
|
9295
|
+
const AppEventTypeExportProperties = BaseMembraneInterfaceEditableProperties.extend({});
|
|
9284
9296
|
|
|
9285
9297
|
const BaseAppEventSubscription = BaseMembraneInterface.extend({
|
|
9286
|
-
revision:
|
|
9287
|
-
appEventTypeId:
|
|
9288
|
-
userId:
|
|
9289
|
-
instanceKey:
|
|
9290
|
-
isSubscribed:
|
|
9298
|
+
revision: z.z.string(),
|
|
9299
|
+
appEventTypeId: z.z.string(),
|
|
9300
|
+
userId: z.z.string(),
|
|
9301
|
+
instanceKey: z.z.string().optional(),
|
|
9302
|
+
isSubscribed: z.z.boolean(),
|
|
9291
9303
|
schema: DataSchema.optional(),
|
|
9292
|
-
webhookUri:
|
|
9304
|
+
webhookUri: z.z.string(),
|
|
9293
9305
|
subscriptionRequest: HttpRequestSpec,
|
|
9294
|
-
subscriptionResponse:
|
|
9295
|
-
archivedAt:
|
|
9306
|
+
subscriptionResponse: z.z.any().optional(),
|
|
9307
|
+
archivedAt: z.z.string().optional(),
|
|
9296
9308
|
});
|
|
9297
9309
|
|
|
9298
9310
|
const BaseAppDataSchema = BaseMembraneInterface.extend({
|
|
9299
|
-
schema:
|
|
9300
|
-
code:
|
|
9301
|
-
archivedAt:
|
|
9302
|
-
revision:
|
|
9311
|
+
schema: z.z.any(),
|
|
9312
|
+
code: z.z.string().optional(),
|
|
9313
|
+
archivedAt: z.z.string().optional(),
|
|
9314
|
+
revision: z.z.string().optional(),
|
|
9315
|
+
});
|
|
9316
|
+
const AppDataSchemaEditableProperties = BaseMembraneInterfaceEditableProperties.extend({
|
|
9317
|
+
schema: z.z.any(),
|
|
9318
|
+
code: z.z.string().optional(),
|
|
9303
9319
|
});
|
|
9320
|
+
const AppDataSchemaExportProperties = AppDataSchemaEditableProperties.extend({});
|
|
9304
9321
|
|
|
9305
9322
|
const BaseAppDataSchemaInstance = BaseMembraneInterface.extend({
|
|
9306
|
-
appId:
|
|
9307
|
-
userId:
|
|
9308
|
-
appDataSchemaId:
|
|
9309
|
-
appDataSchemaRevision:
|
|
9310
|
-
instanceKey:
|
|
9311
|
-
schema:
|
|
9323
|
+
appId: z.z.string(),
|
|
9324
|
+
userId: z.z.string(),
|
|
9325
|
+
appDataSchemaId: z.z.string(),
|
|
9326
|
+
appDataSchemaRevision: z.z.string(),
|
|
9327
|
+
instanceKey: z.z.string().optional(),
|
|
9328
|
+
schema: z.z.any().optional(),
|
|
9312
9329
|
error: ErrorDataSchema.optional(),
|
|
9313
|
-
archivedAt:
|
|
9330
|
+
archivedAt: z.z.string().optional(),
|
|
9314
9331
|
});
|
|
9315
9332
|
|
|
9316
9333
|
exports.ExternalEventSubscriptionStatus = void 0;
|
|
@@ -9326,33 +9343,34 @@ exports.ExternalEventSubscriptionType = void 0;
|
|
|
9326
9343
|
ExternalEventSubscriptionType["DataRecordDeleted"] = "data-record-deleted";
|
|
9327
9344
|
ExternalEventSubscriptionType["ConnectorEvent"] = "connector-event";
|
|
9328
9345
|
})(exports.ExternalEventSubscriptionType || (exports.ExternalEventSubscriptionType = {}));
|
|
9329
|
-
const ExternalEventSubscriptionConfig =
|
|
9330
|
-
type:
|
|
9346
|
+
const ExternalEventSubscriptionConfig = z.z.object({
|
|
9347
|
+
type: z.z.enum(exports.ExternalEventSubscriptionType),
|
|
9331
9348
|
dataSource: DataSourceUnitConfig.optional(),
|
|
9332
|
-
eventKey:
|
|
9333
|
-
eventParameters:
|
|
9334
|
-
});
|
|
9335
|
-
const BaseExternalEventSubscription =
|
|
9336
|
-
id:
|
|
9337
|
-
name:
|
|
9338
|
-
userId:
|
|
9339
|
-
connectionId:
|
|
9340
|
-
integrationId:
|
|
9349
|
+
eventKey: z.z.string().optional(),
|
|
9350
|
+
eventParameters: z.z.any().optional(),
|
|
9351
|
+
});
|
|
9352
|
+
const BaseExternalEventSubscription = z.z.object({
|
|
9353
|
+
id: z.z.string(),
|
|
9354
|
+
name: z.z.string().optional(),
|
|
9355
|
+
userId: z.z.string(),
|
|
9356
|
+
connectionId: z.z.string(),
|
|
9357
|
+
integrationId: z.z.string(),
|
|
9341
9358
|
config: ExternalEventSubscriptionConfig.optional(),
|
|
9342
|
-
status:
|
|
9359
|
+
status: z.z.enum(exports.ExternalEventSubscriptionStatus).optional(),
|
|
9343
9360
|
error: ErrorDataSchema.optional(),
|
|
9344
|
-
isRealTime:
|
|
9345
|
-
requiresPull:
|
|
9346
|
-
requiresFullSync:
|
|
9347
|
-
createdAt:
|
|
9348
|
-
archivedAt:
|
|
9349
|
-
stateData:
|
|
9350
|
-
nextPullEventsTimestamp:
|
|
9351
|
-
pullUpdatesIntervalSeconds:
|
|
9352
|
-
fullSyncIntervalSeconds:
|
|
9353
|
-
nextRefreshTimestamp:
|
|
9354
|
-
globalWebhookKey:
|
|
9355
|
-
globalWebhookEventSelector:
|
|
9361
|
+
isRealTime: z.z.boolean().optional(),
|
|
9362
|
+
requiresPull: z.z.boolean().optional(),
|
|
9363
|
+
requiresFullSync: z.z.boolean().optional(),
|
|
9364
|
+
createdAt: z.z.string().optional(),
|
|
9365
|
+
archivedAt: z.z.string().optional(),
|
|
9366
|
+
stateData: z.z.any().optional(),
|
|
9367
|
+
nextPullEventsTimestamp: z.z.number().optional(),
|
|
9368
|
+
pullUpdatesIntervalSeconds: z.z.number().optional(),
|
|
9369
|
+
fullSyncIntervalSeconds: z.z.number().optional(),
|
|
9370
|
+
nextRefreshTimestamp: z.z.number().optional(),
|
|
9371
|
+
globalWebhookKey: z.z.string().optional(),
|
|
9372
|
+
globalWebhookEventSelector: z.z.string().optional(),
|
|
9373
|
+
webhookUri: z.z.string().optional(),
|
|
9356
9374
|
});
|
|
9357
9375
|
|
|
9358
9376
|
exports.ExternalEventLogStatus = void 0;
|
|
@@ -9361,16 +9379,16 @@ exports.ExternalEventLogStatus = void 0;
|
|
|
9361
9379
|
ExternalEventLogStatus["ERROR"] = "error";
|
|
9362
9380
|
ExternalEventLogStatus["SUCCESS"] = "success";
|
|
9363
9381
|
})(exports.ExternalEventLogStatus || (exports.ExternalEventLogStatus = {}));
|
|
9364
|
-
const BaseExternalEventLogRecord =
|
|
9365
|
-
id:
|
|
9366
|
-
userId:
|
|
9367
|
-
name:
|
|
9368
|
-
externalEventSubscriptionId:
|
|
9369
|
-
integrationId:
|
|
9370
|
-
connectionId:
|
|
9371
|
-
payload:
|
|
9372
|
-
launchedFlowRunIds:
|
|
9373
|
-
status:
|
|
9382
|
+
const BaseExternalEventLogRecord = z.z.object({
|
|
9383
|
+
id: z.z.string(),
|
|
9384
|
+
userId: z.z.string(),
|
|
9385
|
+
name: z.z.string().optional(),
|
|
9386
|
+
externalEventSubscriptionId: z.z.string(),
|
|
9387
|
+
integrationId: z.z.string(),
|
|
9388
|
+
connectionId: z.z.string(),
|
|
9389
|
+
payload: z.z.any().optional(),
|
|
9390
|
+
launchedFlowRunIds: z.z.array(z.z.string()).optional(),
|
|
9391
|
+
status: z.z.enum(exports.ExternalEventLogStatus),
|
|
9374
9392
|
error: ErrorDataSchema.optional(),
|
|
9375
9393
|
});
|
|
9376
9394
|
|
|
@@ -9381,18 +9399,18 @@ exports.ExternalEventPullStatus = void 0;
|
|
|
9381
9399
|
ExternalEventPullStatus["ERROR"] = "error";
|
|
9382
9400
|
ExternalEventPullStatus["QUEUED"] = "queued";
|
|
9383
9401
|
})(exports.ExternalEventPullStatus || (exports.ExternalEventPullStatus = {}));
|
|
9384
|
-
const BaseExternalEventPull =
|
|
9385
|
-
id:
|
|
9386
|
-
name:
|
|
9387
|
-
userId:
|
|
9388
|
-
externalEventSubscriptionId:
|
|
9389
|
-
integrationId:
|
|
9390
|
-
connectionId:
|
|
9391
|
-
startDatetime:
|
|
9392
|
-
endDatetime:
|
|
9393
|
-
isFullScan:
|
|
9394
|
-
status:
|
|
9395
|
-
collectedEventIds:
|
|
9402
|
+
const BaseExternalEventPull = z.z.object({
|
|
9403
|
+
id: z.z.string(),
|
|
9404
|
+
name: z.z.string().optional(),
|
|
9405
|
+
userId: z.z.string(),
|
|
9406
|
+
externalEventSubscriptionId: z.z.string(),
|
|
9407
|
+
integrationId: z.z.string(),
|
|
9408
|
+
connectionId: z.z.string(),
|
|
9409
|
+
startDatetime: z.z.string(),
|
|
9410
|
+
endDatetime: z.z.string(),
|
|
9411
|
+
isFullScan: z.z.boolean().optional(),
|
|
9412
|
+
status: z.z.enum(exports.ExternalEventPullStatus),
|
|
9413
|
+
collectedEventIds: z.z.array(z.z.string()),
|
|
9396
9414
|
error: ErrorDataSchema.optional(),
|
|
9397
9415
|
});
|
|
9398
9416
|
|
|
@@ -9402,17 +9420,17 @@ exports.ActionRunLogStatus = void 0;
|
|
|
9402
9420
|
ActionRunLogStatus["ERROR"] = "error";
|
|
9403
9421
|
})(exports.ActionRunLogStatus || (exports.ActionRunLogStatus = {}));
|
|
9404
9422
|
const BaseActionRunLogRecord = BaseWorkspaceElement.extend({
|
|
9405
|
-
actionId:
|
|
9406
|
-
actionInstanceId:
|
|
9407
|
-
integrationId:
|
|
9408
|
-
connectionId:
|
|
9409
|
-
input:
|
|
9410
|
-
output:
|
|
9411
|
-
status:
|
|
9412
|
-
createdAt:
|
|
9413
|
-
completedAt:
|
|
9423
|
+
actionId: z.z.string(),
|
|
9424
|
+
actionInstanceId: z.z.string(),
|
|
9425
|
+
integrationId: z.z.string(),
|
|
9426
|
+
connectionId: z.z.string(),
|
|
9427
|
+
input: z.z.any().optional(),
|
|
9428
|
+
output: z.z.any().optional(),
|
|
9429
|
+
status: z.z.enum(exports.ActionRunLogStatus),
|
|
9430
|
+
createdAt: z.z.string(),
|
|
9431
|
+
completedAt: z.z.string().optional(),
|
|
9414
9432
|
error: ErrorDataSchema.optional(),
|
|
9415
|
-
duration:
|
|
9433
|
+
duration: z.z.number().optional(),
|
|
9416
9434
|
});
|
|
9417
9435
|
|
|
9418
9436
|
const ActionApiResponse = BaseAction.extend({
|
|
@@ -9423,19 +9441,19 @@ const ActionApiResponse = BaseAction.extend({
|
|
|
9423
9441
|
defaultOutputSchema: DataSchema.optional(),
|
|
9424
9442
|
transformedOutputSchema: DataSchema.optional(),
|
|
9425
9443
|
outputSchema: DataSchema.optional(),
|
|
9426
|
-
dependencies:
|
|
9444
|
+
dependencies: z.z.array(z.z.any()).optional(),
|
|
9427
9445
|
});
|
|
9428
9446
|
const FindActionsQuery = FindIntegrationLevelMembraneInterfaceQuery;
|
|
9429
9447
|
const CreateActionRequest = ActionEditableProperties;
|
|
9430
9448
|
const UpdateActionRequest = CreateActionRequest.extend({}).partial();
|
|
9431
9449
|
const CreateActionInstanceRequest = CreateActionRequest;
|
|
9432
9450
|
const UpdateActionInstanceRequest = UpdateActionRequest;
|
|
9433
|
-
const RunActionRequest =
|
|
9434
|
-
input:
|
|
9451
|
+
const RunActionRequest = z.z.object({
|
|
9452
|
+
input: z.z.any().optional(),
|
|
9435
9453
|
});
|
|
9436
|
-
const ActionRunResponse =
|
|
9437
|
-
output:
|
|
9438
|
-
logs:
|
|
9454
|
+
const ActionRunResponse = z.z.object({
|
|
9455
|
+
output: z.z.any().optional(),
|
|
9456
|
+
logs: z.z.array(z.z.any()).optional(),
|
|
9439
9457
|
});
|
|
9440
9458
|
const ActionInstanceApiResponse = ActionApiResponse;
|
|
9441
9459
|
const ListActionInstancesForConnectionQuery = FindActionsQuery;
|
|
@@ -9447,54 +9465,54 @@ const ActionRunLogRecordApiResponse = BaseActionRunLogRecord.extend({
|
|
|
9447
9465
|
connection: BaseConnection.optional(),
|
|
9448
9466
|
});
|
|
9449
9467
|
|
|
9450
|
-
const FindConnectionsQuery =
|
|
9468
|
+
const FindConnectionsQuery = z.z
|
|
9451
9469
|
.object({
|
|
9452
|
-
userId:
|
|
9470
|
+
userId: z.z.string().optional(),
|
|
9453
9471
|
isTest: zodBooleanCoercion().optional(),
|
|
9454
|
-
integrationKey:
|
|
9455
|
-
integrationId:
|
|
9472
|
+
integrationKey: z.z.string().optional(),
|
|
9473
|
+
integrationId: z.z.string().optional(),
|
|
9456
9474
|
includeArchived: zodBooleanCoercion().optional(),
|
|
9457
9475
|
})
|
|
9458
9476
|
.merge(PaginationQuery);
|
|
9459
|
-
const CreateConnectionRequest =
|
|
9460
|
-
name:
|
|
9461
|
-
integrationId:
|
|
9462
|
-
credentials:
|
|
9477
|
+
const CreateConnectionRequest = z.z.object({
|
|
9478
|
+
name: z.z.string(),
|
|
9479
|
+
integrationId: z.z.string(),
|
|
9480
|
+
credentials: z.z.string().optional(),
|
|
9463
9481
|
});
|
|
9464
|
-
const UpdateConnectionRequest =
|
|
9465
|
-
name:
|
|
9466
|
-
credentials:
|
|
9467
|
-
accessToken:
|
|
9482
|
+
const UpdateConnectionRequest = z.z.object({
|
|
9483
|
+
name: z.z.string().optional(),
|
|
9484
|
+
credentials: z.z.string().optional(),
|
|
9485
|
+
accessToken: z.z.string().optional(),
|
|
9468
9486
|
});
|
|
9469
9487
|
class FindConnectionsResponse extends PaginationResponse {
|
|
9470
9488
|
}
|
|
9471
|
-
const ConnectionSelector =
|
|
9472
|
-
id:
|
|
9473
|
-
integrationKey:
|
|
9474
|
-
integrationId:
|
|
9475
|
-
connectionId:
|
|
9489
|
+
const ConnectionSelector = z.z.object({
|
|
9490
|
+
id: z.z.string().optional(),
|
|
9491
|
+
integrationKey: z.z.string().optional(),
|
|
9492
|
+
integrationId: z.z.string().optional(),
|
|
9493
|
+
connectionId: z.z.string().optional(),
|
|
9476
9494
|
});
|
|
9477
9495
|
const ConnectionApiResponse = BaseConnection.extend({
|
|
9478
9496
|
user: BaseCustomer.optional(),
|
|
9479
9497
|
integration: BaseIntegration.optional(),
|
|
9480
9498
|
});
|
|
9481
9499
|
const ConnectionApiResponseWithSecrets = ConnectionApiResponse.extend({
|
|
9482
|
-
credentials:
|
|
9483
|
-
parameters:
|
|
9484
|
-
connectorParameters:
|
|
9485
|
-
});
|
|
9486
|
-
const ConnectionMessagePayload =
|
|
9487
|
-
|
|
9488
|
-
source:
|
|
9489
|
-
requestId:
|
|
9490
|
-
type:
|
|
9500
|
+
credentials: z.z.unknown().optional(),
|
|
9501
|
+
parameters: z.z.unknown().optional(),
|
|
9502
|
+
connectorParameters: z.z.unknown().optional(),
|
|
9503
|
+
});
|
|
9504
|
+
const ConnectionMessagePayload = z.z.discriminatedUnion('type', [
|
|
9505
|
+
z.z.object({
|
|
9506
|
+
source: z.z.string(),
|
|
9507
|
+
requestId: z.z.string(),
|
|
9508
|
+
type: z.z.literal('newConnectionCreated'),
|
|
9491
9509
|
connection: ConnectionApiResponse,
|
|
9492
9510
|
}),
|
|
9493
|
-
|
|
9494
|
-
source:
|
|
9495
|
-
requestId:
|
|
9496
|
-
type:
|
|
9497
|
-
error:
|
|
9511
|
+
z.z.object({
|
|
9512
|
+
source: z.z.string(),
|
|
9513
|
+
requestId: z.z.string(),
|
|
9514
|
+
type: z.z.literal('newConnectionFailure'),
|
|
9515
|
+
error: z.z.string(),
|
|
9498
9516
|
errorData: ErrorDataSchema.optional(),
|
|
9499
9517
|
}),
|
|
9500
9518
|
]);
|
|
@@ -9502,72 +9520,72 @@ const ConnectionMessagePayload = zod.z.discriminatedUnion('type', [
|
|
|
9502
9520
|
const DataSourceApiResponse = BaseDataSource.extend({
|
|
9503
9521
|
integration: BaseIntegration.optional(),
|
|
9504
9522
|
appliedToIntegrations: AppliedToIntegrations(BaseDataSource).optional(),
|
|
9505
|
-
defaultPath:
|
|
9523
|
+
defaultPath: z.z.string().optional().meta({ deprecated: true }),
|
|
9506
9524
|
});
|
|
9507
9525
|
const FindDataSourcesQuery = FindIntegrationLevelMembraneInterfaceQuery.omit({ parentId: true }).extend({
|
|
9508
|
-
dataSourceId:
|
|
9509
|
-
universalDataSourceId:
|
|
9526
|
+
dataSourceId: z.z.string().optional(),
|
|
9527
|
+
universalDataSourceId: z.z.string().optional(),
|
|
9510
9528
|
});
|
|
9511
9529
|
const CreateDataSourceRequest = DataSourceEditableProperties;
|
|
9512
9530
|
const UpdateDataSourceRequest = CreateDataSourceRequest.extend({}).partial();
|
|
9513
|
-
const FindDataSourceInstancesQuery =
|
|
9531
|
+
const FindDataSourceInstancesQuery = z.z
|
|
9514
9532
|
.object({
|
|
9515
|
-
userId:
|
|
9516
|
-
dataSourceId:
|
|
9517
|
-
universalDataSourceId:
|
|
9518
|
-
connectionId:
|
|
9519
|
-
integrationKey:
|
|
9520
|
-
integrationId:
|
|
9533
|
+
userId: z.z.string().optional(),
|
|
9534
|
+
dataSourceId: z.z.string().optional(),
|
|
9535
|
+
universalDataSourceId: z.z.string().optional(),
|
|
9536
|
+
connectionId: z.z.string().optional(),
|
|
9537
|
+
integrationKey: z.z.string().optional(),
|
|
9538
|
+
integrationId: z.z.string().optional(),
|
|
9521
9539
|
})
|
|
9522
9540
|
.merge(PaginationQuery);
|
|
9523
|
-
const CreateDataSourceInstanceRequest =
|
|
9524
|
-
dataSourceId:
|
|
9525
|
-
connectionId:
|
|
9526
|
-
path:
|
|
9527
|
-
});
|
|
9528
|
-
const UpdateDataSourceInstanceRequest =
|
|
9529
|
-
path:
|
|
9530
|
-
collectionKey:
|
|
9531
|
-
collectionParameters:
|
|
9532
|
-
pullUpdatesIntervalSeconds:
|
|
9533
|
-
fullSyncIntervalSeconds:
|
|
9534
|
-
subscribedTo:
|
|
9541
|
+
const CreateDataSourceInstanceRequest = z.z.object({
|
|
9542
|
+
dataSourceId: z.z.string(),
|
|
9543
|
+
connectionId: z.z.string(),
|
|
9544
|
+
path: z.z.string().optional(),
|
|
9545
|
+
});
|
|
9546
|
+
const UpdateDataSourceInstanceRequest = z.z.object({
|
|
9547
|
+
path: z.z.string().optional(),
|
|
9548
|
+
collectionKey: z.z.string().optional(),
|
|
9549
|
+
collectionParameters: z.z.any().optional(),
|
|
9550
|
+
pullUpdatesIntervalSeconds: z.z.number().optional(),
|
|
9551
|
+
fullSyncIntervalSeconds: z.z.number().optional(),
|
|
9552
|
+
subscribedTo: z.z
|
|
9535
9553
|
.object({
|
|
9536
|
-
created:
|
|
9537
|
-
updated:
|
|
9538
|
-
deleted:
|
|
9554
|
+
created: z.z.boolean().optional(),
|
|
9555
|
+
updated: z.z.boolean().optional(),
|
|
9556
|
+
deleted: z.z.boolean().optional(),
|
|
9539
9557
|
})
|
|
9540
9558
|
.optional(),
|
|
9541
9559
|
});
|
|
9542
|
-
const FindDataSourceEventsQuery =
|
|
9560
|
+
const FindDataSourceEventsQuery = z.z
|
|
9543
9561
|
.object({
|
|
9544
|
-
userId:
|
|
9545
|
-
udm:
|
|
9546
|
-
dataSourceInstanceId:
|
|
9547
|
-
startDatetime:
|
|
9548
|
-
endDatetime:
|
|
9562
|
+
userId: z.z.string().optional(),
|
|
9563
|
+
udm: z.z.string().optional(),
|
|
9564
|
+
dataSourceInstanceId: z.z.string().optional(),
|
|
9565
|
+
startDatetime: z.z.string().optional(),
|
|
9566
|
+
endDatetime: z.z.string().optional(),
|
|
9549
9567
|
})
|
|
9550
9568
|
.merge(PaginationQuery);
|
|
9551
|
-
const FindDataSourceSyncsQuery =
|
|
9569
|
+
const FindDataSourceSyncsQuery = z.z
|
|
9552
9570
|
.object({
|
|
9553
|
-
userId:
|
|
9554
|
-
dataSourceId:
|
|
9555
|
-
dataSourceInstanceId:
|
|
9556
|
-
integrationId:
|
|
9557
|
-
connectionId:
|
|
9558
|
-
startedAfter:
|
|
9571
|
+
userId: z.z.string().optional(),
|
|
9572
|
+
dataSourceId: z.z.string().optional(),
|
|
9573
|
+
dataSourceInstanceId: z.z.string().optional(),
|
|
9574
|
+
integrationId: z.z.string().optional(),
|
|
9575
|
+
connectionId: z.z.string().optional(),
|
|
9576
|
+
startedAfter: z.z.string().optional(),
|
|
9559
9577
|
})
|
|
9560
9578
|
.merge(PaginationQuery);
|
|
9561
|
-
const ListDataSourceInstancesForConnectionQuery =
|
|
9579
|
+
const ListDataSourceInstancesForConnectionQuery = z.z
|
|
9562
9580
|
.object({
|
|
9563
|
-
dataSourceId:
|
|
9581
|
+
dataSourceId: z.z.string().optional(),
|
|
9564
9582
|
})
|
|
9565
9583
|
.merge(PaginationQuery);
|
|
9566
9584
|
const FindDataSourceInstanceSyncsQuery = ListDataSourceInstancesForConnectionQuery.extend({
|
|
9567
|
-
userId:
|
|
9568
|
-
connectionId:
|
|
9569
|
-
integrationId:
|
|
9570
|
-
dataSourceInstanceId:
|
|
9585
|
+
userId: z.z.string().optional(),
|
|
9586
|
+
connectionId: z.z.string().optional(),
|
|
9587
|
+
integrationId: z.z.string().optional(),
|
|
9588
|
+
dataSourceInstanceId: z.z.string().optional(),
|
|
9571
9589
|
});
|
|
9572
9590
|
|
|
9573
9591
|
const DataSourceInstanceApiResponse = BaseDataSourceInstance.extend({
|
|
@@ -9575,8 +9593,8 @@ const DataSourceInstanceApiResponse = BaseDataSourceInstance.extend({
|
|
|
9575
9593
|
dataSource: BaseDataSource.optional(),
|
|
9576
9594
|
connection: BaseConnection.optional(),
|
|
9577
9595
|
integration: BaseIntegration.optional(),
|
|
9578
|
-
path:
|
|
9579
|
-
defaultPath:
|
|
9596
|
+
path: z.z.string().optional().meta({ deprecated: true }),
|
|
9597
|
+
defaultPath: z.z.string().optional().meta({ deprecated: true }),
|
|
9580
9598
|
});
|
|
9581
9599
|
|
|
9582
9600
|
const ExternalEvent = BaseExternalEvent.extend({
|
|
@@ -9586,64 +9604,64 @@ const ExternalEvent = BaseExternalEvent.extend({
|
|
|
9586
9604
|
const FlowApiResponse = BaseFlow.extend({
|
|
9587
9605
|
integration: BaseIntegration.optional(),
|
|
9588
9606
|
appliedToIntegrations: AppliedToIntegrations(BaseFlow).optional(),
|
|
9589
|
-
dependencies:
|
|
9607
|
+
dependencies: z.z.array(z.z.any()).optional(),
|
|
9590
9608
|
});
|
|
9591
9609
|
const FindFlowsQuery = FindIntegrationLevelMembraneInterfaceQuery.omit({ parentId: true }).extend({
|
|
9592
|
-
flowId:
|
|
9593
|
-
universalFlowId:
|
|
9610
|
+
flowId: z.z.string().optional(),
|
|
9611
|
+
universalFlowId: z.z.string().optional(),
|
|
9594
9612
|
});
|
|
9595
9613
|
const CreateFlowRequest = FlowEditableProperties;
|
|
9596
9614
|
const UpdateFlowRequest = CreateFlowRequest.extend({}).partial();
|
|
9597
|
-
const ListFlowInstancesForConnectionQuery =
|
|
9615
|
+
const ListFlowInstancesForConnectionQuery = z.z
|
|
9598
9616
|
.object({
|
|
9599
|
-
flowId:
|
|
9600
|
-
flowKey:
|
|
9601
|
-
enabled:
|
|
9617
|
+
flowId: z.z.string().optional(),
|
|
9618
|
+
flowKey: z.z.string().optional(),
|
|
9619
|
+
enabled: z.z.boolean().optional(),
|
|
9602
9620
|
})
|
|
9603
9621
|
.merge(CommonInstancesListQuery);
|
|
9604
9622
|
const FindFlowInstancesQuery = ListFlowInstancesForConnectionQuery.merge(CommonIntegrationOrConnectionQuery);
|
|
9605
|
-
const ResetFlowInstanceOptions =
|
|
9606
|
-
name:
|
|
9607
|
-
nodes:
|
|
9608
|
-
allNodes:
|
|
9623
|
+
const ResetFlowInstanceOptions = z.z.object({
|
|
9624
|
+
name: z.z.boolean().optional(),
|
|
9625
|
+
nodes: z.z.record(z.z.string(), z.z.boolean()).optional(),
|
|
9626
|
+
allNodes: z.z.boolean().optional(),
|
|
9609
9627
|
});
|
|
9610
|
-
const RunFlowApiRequest =
|
|
9611
|
-
nodeKey:
|
|
9612
|
-
input:
|
|
9628
|
+
const RunFlowApiRequest = z.z.object({
|
|
9629
|
+
nodeKey: z.z.string().optional(),
|
|
9630
|
+
input: z.z.any().optional(),
|
|
9613
9631
|
});
|
|
9614
9632
|
const FlowInstanceApiResponse = BaseFlowInstance.extend({
|
|
9615
|
-
user:
|
|
9616
|
-
connection:
|
|
9617
|
-
flow:
|
|
9618
|
-
integration:
|
|
9633
|
+
user: z.z.lazy(() => z.z.any()).optional(),
|
|
9634
|
+
connection: z.z.lazy(() => z.z.any()).optional(),
|
|
9635
|
+
flow: z.z.lazy(() => FlowApiResponse).optional(),
|
|
9636
|
+
integration: z.z.lazy(() => z.z.any()).optional(),
|
|
9619
9637
|
});
|
|
9620
|
-
const CreateFlowNodeRequest =
|
|
9621
|
-
type:
|
|
9622
|
-
config:
|
|
9623
|
-
ui:
|
|
9624
|
-
links:
|
|
9638
|
+
const CreateFlowNodeRequest = z.z.object({
|
|
9639
|
+
type: z.z.string(),
|
|
9640
|
+
config: z.z.any().optional(),
|
|
9641
|
+
ui: z.z.any().optional(),
|
|
9642
|
+
links: z.z.array(z.z.lazy(() => z.z.any())).optional(),
|
|
9625
9643
|
});
|
|
9626
9644
|
|
|
9627
|
-
const CreateFlowRunRequest =
|
|
9628
|
-
flowInstanceId:
|
|
9629
|
-
nodeKey:
|
|
9630
|
-
input:
|
|
9645
|
+
const CreateFlowRunRequest = z.z.object({
|
|
9646
|
+
flowInstanceId: z.z.string(),
|
|
9647
|
+
nodeKey: z.z.string().optional(),
|
|
9648
|
+
input: z.z.any().optional(),
|
|
9631
9649
|
});
|
|
9632
9650
|
const FindFlowRunsQuery = PaginationQuery.extend({
|
|
9633
|
-
id:
|
|
9634
|
-
flowInstanceId:
|
|
9635
|
-
startNodeKey:
|
|
9636
|
-
flowId:
|
|
9637
|
-
universalFlowId:
|
|
9638
|
-
userId:
|
|
9639
|
-
state:
|
|
9640
|
-
integrationId:
|
|
9641
|
-
connectionId:
|
|
9642
|
-
startedAfter:
|
|
9643
|
-
});
|
|
9644
|
-
const FlowRunLaunchedByApi =
|
|
9645
|
-
type:
|
|
9646
|
-
ids:
|
|
9651
|
+
id: z.z.string().optional(),
|
|
9652
|
+
flowInstanceId: z.z.string().optional(),
|
|
9653
|
+
startNodeKey: z.z.string().optional(),
|
|
9654
|
+
flowId: z.z.string().optional(),
|
|
9655
|
+
universalFlowId: z.z.string().optional(),
|
|
9656
|
+
userId: z.z.string().optional(),
|
|
9657
|
+
state: z.z.enum(exports.FlowRunState).optional(),
|
|
9658
|
+
integrationId: z.z.string().optional(),
|
|
9659
|
+
connectionId: z.z.string().optional(),
|
|
9660
|
+
startedAfter: z.z.string().optional(),
|
|
9661
|
+
});
|
|
9662
|
+
const FlowRunLaunchedByApi = z.z.object({
|
|
9663
|
+
type: z.z.enum(exports.FlowRunLaunchedByTrigger),
|
|
9664
|
+
ids: z.z.array(z.z.string()).optional(),
|
|
9647
9665
|
});
|
|
9648
9666
|
const FlowRunApiResponse = BaseFlowRun.extend({
|
|
9649
9667
|
flowInstance: BaseFlowInstance.optional(),
|
|
@@ -9651,46 +9669,46 @@ const FlowRunApiResponse = BaseFlowRun.extend({
|
|
|
9651
9669
|
integration: BaseIntegration.optional(),
|
|
9652
9670
|
user: BaseCustomer.optional(),
|
|
9653
9671
|
});
|
|
9654
|
-
const FindFlowRunsResponse =
|
|
9655
|
-
items:
|
|
9656
|
-
cursor:
|
|
9657
|
-
});
|
|
9658
|
-
|
|
9659
|
-
const CreateIntegrationRequest =
|
|
9660
|
-
name:
|
|
9661
|
-
key:
|
|
9662
|
-
baseUri:
|
|
9663
|
-
logoUri:
|
|
9664
|
-
});
|
|
9665
|
-
const UpdateIntegrationRequest =
|
|
9666
|
-
name:
|
|
9667
|
-
key:
|
|
9668
|
-
baseUri:
|
|
9669
|
-
logoUri:
|
|
9670
|
-
});
|
|
9671
|
-
const FindIntegrationsQuery =
|
|
9672
|
-
const IntegrationAuthUi =
|
|
9673
|
-
schema:
|
|
9674
|
-
helpUri:
|
|
9675
|
-
});
|
|
9676
|
-
const IntegrationAuthOption =
|
|
9677
|
-
key:
|
|
9678
|
-
type:
|
|
9679
|
-
title:
|
|
9680
|
-
description:
|
|
9672
|
+
const FindFlowRunsResponse = z.z.object({
|
|
9673
|
+
items: z.z.array(FlowRunApiResponse),
|
|
9674
|
+
cursor: z.z.string().optional(),
|
|
9675
|
+
});
|
|
9676
|
+
|
|
9677
|
+
const CreateIntegrationRequest = z.z.object({
|
|
9678
|
+
name: z.z.string().optional(),
|
|
9679
|
+
key: z.z.string(),
|
|
9680
|
+
baseUri: z.z.string(),
|
|
9681
|
+
logoUri: z.z.string(),
|
|
9682
|
+
});
|
|
9683
|
+
const UpdateIntegrationRequest = z.z.object({
|
|
9684
|
+
name: z.z.string().optional(),
|
|
9685
|
+
key: z.z.string().optional(),
|
|
9686
|
+
baseUri: z.z.string().optional(),
|
|
9687
|
+
logoUri: z.z.string().optional(),
|
|
9688
|
+
});
|
|
9689
|
+
const FindIntegrationsQuery = z.z.object({}).merge(PaginationQuery).merge(SearchQuery);
|
|
9690
|
+
const IntegrationAuthUi = z.z.object({
|
|
9691
|
+
schema: z.z.any().optional(),
|
|
9692
|
+
helpUri: z.z.string().optional(),
|
|
9693
|
+
});
|
|
9694
|
+
const IntegrationAuthOption = z.z.object({
|
|
9695
|
+
key: z.z.string(),
|
|
9696
|
+
type: z.z.enum(CONNECTOR_AUTH_TYPES),
|
|
9697
|
+
title: z.z.string().optional(),
|
|
9698
|
+
description: z.z.string().optional(),
|
|
9681
9699
|
ui: IntegrationAuthUi.optional(),
|
|
9682
9700
|
});
|
|
9683
9701
|
const IntegrationApiResponse = BaseIntegration.extend({
|
|
9684
9702
|
connection: BaseConnection.optional(),
|
|
9685
|
-
spec:
|
|
9686
|
-
authOptions:
|
|
9703
|
+
spec: z.z.any().optional(),
|
|
9704
|
+
authOptions: z.z.array(IntegrationAuthOption).optional(),
|
|
9687
9705
|
parametersSchema: DataSchema.optional(),
|
|
9688
9706
|
});
|
|
9689
9707
|
|
|
9690
|
-
const PackageElementApi =
|
|
9691
|
-
id:
|
|
9692
|
-
type:
|
|
9693
|
-
element:
|
|
9708
|
+
const PackageElementApi = z.z.object({
|
|
9709
|
+
id: z.z.string(),
|
|
9710
|
+
type: z.z.enum(exports.IntegrationElementType),
|
|
9711
|
+
element: z.z.any().optional(),
|
|
9694
9712
|
});
|
|
9695
9713
|
const FindPackagesQuery = FindIntegrationLevelMembraneInterfaceQuery;
|
|
9696
9714
|
const CreatePackageRequest = PackageEditableProperties;
|
|
@@ -9701,25 +9719,25 @@ const PackageApiResponse = BasePackage.extend({
|
|
|
9701
9719
|
|
|
9702
9720
|
const ScreenApiResponse = BaseScreen;
|
|
9703
9721
|
|
|
9704
|
-
const CreateCustomerRequest =
|
|
9705
|
-
name:
|
|
9706
|
-
internalId:
|
|
9707
|
-
fields:
|
|
9708
|
-
credentials:
|
|
9722
|
+
const CreateCustomerRequest = z.z.object({
|
|
9723
|
+
name: z.z.string().optional(),
|
|
9724
|
+
internalId: z.z.string(),
|
|
9725
|
+
fields: z.z.any().optional(),
|
|
9726
|
+
credentials: z.z.any().optional(),
|
|
9709
9727
|
});
|
|
9710
|
-
const UpdateCustomerRequest =
|
|
9711
|
-
name:
|
|
9712
|
-
internalId:
|
|
9713
|
-
fields:
|
|
9714
|
-
credentials:
|
|
9728
|
+
const UpdateCustomerRequest = z.z.object({
|
|
9729
|
+
name: z.z.string().optional(),
|
|
9730
|
+
internalId: z.z.string().optional(),
|
|
9731
|
+
fields: z.z.any().optional(),
|
|
9732
|
+
credentials: z.z.any().optional(),
|
|
9715
9733
|
});
|
|
9716
|
-
const FindCustomersQuery =
|
|
9734
|
+
const FindCustomersQuery = z.z
|
|
9717
9735
|
.object({
|
|
9718
9736
|
isTest: zodBooleanCoercion().optional(),
|
|
9719
9737
|
})
|
|
9720
9738
|
.merge(PaginationQuery)
|
|
9721
9739
|
.merge(SearchQuery);
|
|
9722
|
-
const CustomerSelector =
|
|
9740
|
+
const CustomerSelector = z.z.object({ id: z.z.string() });
|
|
9723
9741
|
const CustomerApiResponse = BaseCustomer;
|
|
9724
9742
|
|
|
9725
9743
|
const FieldMappingApiResponse = BaseFieldMapping.extend({
|
|
@@ -9727,8 +9745,8 @@ const FieldMappingApiResponse = BaseFieldMapping.extend({
|
|
|
9727
9745
|
appliedToIntegrations: AppliedToIntegrations(BaseFieldMapping).optional(),
|
|
9728
9746
|
});
|
|
9729
9747
|
const FindFieldMappingsQuery = FindIntegrationLevelMembraneInterfaceQuery.omit({ parentId: true }).extend({
|
|
9730
|
-
fieldMappingId:
|
|
9731
|
-
universalFieldMappingId:
|
|
9748
|
+
fieldMappingId: z.z.string().optional(),
|
|
9749
|
+
universalFieldMappingId: z.z.string().optional(),
|
|
9732
9750
|
});
|
|
9733
9751
|
const CreateFieldMappingRequest = FieldMappingEditableProperties;
|
|
9734
9752
|
const UpdateFieldMappingRequest = CreateFieldMappingRequest.extend({}).partial();
|
|
@@ -9741,6 +9759,9 @@ const FieldMappingInstanceApiResponse = BaseFieldMappingInstance.extend({
|
|
|
9741
9759
|
dataSourceInstance: DataSourceInstanceApiResponse.optional(),
|
|
9742
9760
|
});
|
|
9743
9761
|
|
|
9762
|
+
const FindDataLinkTablesQuery = z.z.object(CommonListElementsQuery.shape);
|
|
9763
|
+
const CreateDataLinkTableRequest = DataLinkTableEditableProperties;
|
|
9764
|
+
const UpdateDataLinkTableRequest = CreateDataLinkTableRequest.partial();
|
|
9744
9765
|
const DataLinkTableApiResponse = BaseDataLinkTable;
|
|
9745
9766
|
|
|
9746
9767
|
const DataLinkTableInstanceApiResponse = BaseDataLinkTableInstance.extend({
|
|
@@ -9765,10 +9786,12 @@ const AppDataSchemaInstanceApiResponse = BaseAppDataSchemaInstance.extend({
|
|
|
9765
9786
|
});
|
|
9766
9787
|
|
|
9767
9788
|
const ListExternalEventLogRecordsQuery = CommonListElementsQuery.extend({
|
|
9768
|
-
|
|
9769
|
-
|
|
9770
|
-
|
|
9771
|
-
|
|
9789
|
+
userId: z.z.string().optional(),
|
|
9790
|
+
connectionId: z.z.string().optional(),
|
|
9791
|
+
integrationId: z.z.string().optional(),
|
|
9792
|
+
externalEventSubscriptionId: z.z.string().optional(),
|
|
9793
|
+
status: z.z.enum(exports.ExternalEventLogStatus).optional(),
|
|
9794
|
+
startedAfter: z.z.string().optional(),
|
|
9772
9795
|
});
|
|
9773
9796
|
const ExternalEventLogRecordApiResponse = BaseExternalEventLogRecord.extend({
|
|
9774
9797
|
user: BaseCustomer.optional(),
|
|
@@ -9778,10 +9801,10 @@ const ExternalEventLogRecordApiResponse = BaseExternalEventLogRecord.extend({
|
|
|
9778
9801
|
});
|
|
9779
9802
|
|
|
9780
9803
|
const ListExternalEventPullsQuery = CommonListElementsQuery.extend({
|
|
9781
|
-
connectionId:
|
|
9782
|
-
integrationId:
|
|
9783
|
-
externalEventSubscriptionId:
|
|
9784
|
-
status:
|
|
9804
|
+
connectionId: z.z.string().optional(),
|
|
9805
|
+
integrationId: z.z.string().optional(),
|
|
9806
|
+
externalEventSubscriptionId: z.z.string().optional(),
|
|
9807
|
+
status: z.z.enum(exports.ExternalEventPullStatus).optional(),
|
|
9785
9808
|
});
|
|
9786
9809
|
const ExternalEventPullApiResponse = BaseExternalEventPull.extend({
|
|
9787
9810
|
user: BaseCustomer.optional(),
|
|
@@ -9790,24 +9813,29 @@ const ExternalEventPullApiResponse = BaseExternalEventPull.extend({
|
|
|
9790
9813
|
connection: BaseConnection.optional(),
|
|
9791
9814
|
});
|
|
9792
9815
|
|
|
9816
|
+
const ListExternalEventSubscriptionsQuery = CommonListElementsQuery.extend({
|
|
9817
|
+
userId: z.z.string().optional(),
|
|
9818
|
+
connectionId: z.z.string().optional(),
|
|
9819
|
+
integrationId: z.z.string().optional(),
|
|
9820
|
+
});
|
|
9793
9821
|
const ExternalEventSubscriptionApiResponse = BaseExternalEventSubscription.extend({
|
|
9794
9822
|
user: BaseCustomer.optional(),
|
|
9795
9823
|
connection: BaseConnection.optional(),
|
|
9796
9824
|
integration: BaseIntegration.optional(),
|
|
9797
9825
|
});
|
|
9798
9826
|
|
|
9799
|
-
const AppEventLogRecordApiResponse =
|
|
9800
|
-
id:
|
|
9801
|
-
name:
|
|
9802
|
-
userId:
|
|
9827
|
+
const AppEventLogRecordApiResponse = z.z.object({
|
|
9828
|
+
id: z.z.string(),
|
|
9829
|
+
name: z.z.string().optional(),
|
|
9830
|
+
userId: z.z.string(),
|
|
9803
9831
|
user: BaseCustomer.optional(),
|
|
9804
|
-
appEventTypeId:
|
|
9832
|
+
appEventTypeId: z.z.string(),
|
|
9805
9833
|
appEventType: BaseAppEventType.optional(),
|
|
9806
|
-
appEventSubscriptionId:
|
|
9834
|
+
appEventSubscriptionId: z.z.string(),
|
|
9807
9835
|
appEventSubscription: BaseAppEventSubscription.optional(),
|
|
9808
|
-
event:
|
|
9809
|
-
datetime:
|
|
9810
|
-
launchedFlowRunIds:
|
|
9836
|
+
event: z.z.any(),
|
|
9837
|
+
datetime: z.z.string(),
|
|
9838
|
+
launchedFlowRunIds: z.z.array(z.z.string()),
|
|
9811
9839
|
});
|
|
9812
9840
|
|
|
9813
9841
|
class DependencyError extends MembraneError {
|
|
@@ -9949,71 +9977,6 @@ function hasCycles(nodes) {
|
|
|
9949
9977
|
return hasCycles;
|
|
9950
9978
|
}
|
|
9951
9979
|
|
|
9952
|
-
exports.WorkspaceElementChangeType = void 0;
|
|
9953
|
-
(function (WorkspaceElementChangeType) {
|
|
9954
|
-
WorkspaceElementChangeType["CREATE"] = "create";
|
|
9955
|
-
WorkspaceElementChangeType["UPDATE"] = "update";
|
|
9956
|
-
WorkspaceElementChangeType["DELETE"] = "delete";
|
|
9957
|
-
})(exports.WorkspaceElementChangeType || (exports.WorkspaceElementChangeType = {}));
|
|
9958
|
-
function compareWorkspaceExports(primaryExport, targetExport) {
|
|
9959
|
-
const changes = [];
|
|
9960
|
-
const result = {
|
|
9961
|
-
[exports.WorkspaceElementChangeType.CREATE]: new Set(),
|
|
9962
|
-
[exports.WorkspaceElementChangeType.UPDATE]: new Set(),
|
|
9963
|
-
[exports.WorkspaceElementChangeType.DELETE]: new Set(),
|
|
9964
|
-
};
|
|
9965
|
-
const primaryMap = new Map();
|
|
9966
|
-
const otherMap = new Map();
|
|
9967
|
-
const typeMap = new Map();
|
|
9968
|
-
const allElementTypes = new Set([...Object.keys(primaryExport), ...Object.keys(targetExport)]);
|
|
9969
|
-
for (const elementType of allElementTypes) {
|
|
9970
|
-
const type = elementType;
|
|
9971
|
-
const primaryElements = primaryExport[type] || [];
|
|
9972
|
-
for (const element of primaryElements) {
|
|
9973
|
-
primaryMap.set(element.uuid, element);
|
|
9974
|
-
typeMap.set(element.uuid, type);
|
|
9975
|
-
}
|
|
9976
|
-
const otherElements = targetExport[type] || [];
|
|
9977
|
-
for (const element of otherElements) {
|
|
9978
|
-
otherMap.set(element.uuid, element);
|
|
9979
|
-
typeMap.set(element.uuid, type);
|
|
9980
|
-
}
|
|
9981
|
-
}
|
|
9982
|
-
for (const [uuid] of typeMap) {
|
|
9983
|
-
const primaryElement = primaryMap.get(uuid);
|
|
9984
|
-
const otherElement = otherMap.get(uuid);
|
|
9985
|
-
const change = compareElementExports(primaryElement, otherElement);
|
|
9986
|
-
if (change) {
|
|
9987
|
-
changes.push(change);
|
|
9988
|
-
}
|
|
9989
|
-
}
|
|
9990
|
-
changes.forEach((change) => {
|
|
9991
|
-
result[change.type].add(change.uuid);
|
|
9992
|
-
});
|
|
9993
|
-
return result;
|
|
9994
|
-
}
|
|
9995
|
-
function compareElementExports(primaryElement, targetElement) {
|
|
9996
|
-
if (primaryElement && !targetElement) {
|
|
9997
|
-
return {
|
|
9998
|
-
type: exports.WorkspaceElementChangeType.CREATE,
|
|
9999
|
-
uuid: primaryElement.uuid,
|
|
10000
|
-
};
|
|
10001
|
-
}
|
|
10002
|
-
if (!primaryElement && targetElement) {
|
|
10003
|
-
return {
|
|
10004
|
-
type: exports.WorkspaceElementChangeType.DELETE,
|
|
10005
|
-
uuid: targetElement.uuid,
|
|
10006
|
-
};
|
|
10007
|
-
}
|
|
10008
|
-
if (primaryElement && targetElement && !deepEqual(primaryElement, targetElement)) {
|
|
10009
|
-
return {
|
|
10010
|
-
type: exports.WorkspaceElementChangeType.UPDATE,
|
|
10011
|
-
uuid: primaryElement.uuid,
|
|
10012
|
-
};
|
|
10013
|
-
}
|
|
10014
|
-
return undefined;
|
|
10015
|
-
}
|
|
10016
|
-
|
|
10017
9980
|
const WorkspaceElementSpecs = {
|
|
10018
9981
|
[exports.WorkspaceElementType.Customer]: {
|
|
10019
9982
|
type: exports.WorkspaceElementType.Customer,
|
|
@@ -10163,6 +10126,10 @@ const WorkspaceElementSpecs = {
|
|
|
10163
10126
|
apiPath: 'data-link-tables',
|
|
10164
10127
|
name: 'Data Link Table',
|
|
10165
10128
|
namePlural: 'Data Link Tables',
|
|
10129
|
+
editablePropertiesSchema: DataLinkTableEditableProperties,
|
|
10130
|
+
exportPropertiesSchema: DataLinkTableExportProperties,
|
|
10131
|
+
apiResponseSchema: DataLinkTableApiResponse,
|
|
10132
|
+
findQuerySchema: FindDataLinkTablesQuery,
|
|
10166
10133
|
isMembraneInterface: true,
|
|
10167
10134
|
},
|
|
10168
10135
|
[exports.WorkspaceElementType.DataLinkTableInstance]: {
|
|
@@ -10179,6 +10146,8 @@ const WorkspaceElementSpecs = {
|
|
|
10179
10146
|
name: 'App Event Type',
|
|
10180
10147
|
namePlural: 'App Event Types',
|
|
10181
10148
|
isMembraneInterface: true,
|
|
10149
|
+
exportPropertiesSchema: AppEventTypeExportProperties,
|
|
10150
|
+
editablePropertiesSchema: AppEventTypeEditableProperties,
|
|
10182
10151
|
},
|
|
10183
10152
|
[exports.WorkspaceElementType.AppEventSubscription]: {
|
|
10184
10153
|
type: exports.WorkspaceElementType.AppEventSubscription,
|
|
@@ -10199,6 +10168,8 @@ const WorkspaceElementSpecs = {
|
|
|
10199
10168
|
name: 'App Data Schema',
|
|
10200
10169
|
namePlural: 'App Data Schemas',
|
|
10201
10170
|
isMembraneInterface: true,
|
|
10171
|
+
exportPropertiesSchema: AppDataSchemaExportProperties,
|
|
10172
|
+
editablePropertiesSchema: AppDataSchemaEditableProperties,
|
|
10202
10173
|
},
|
|
10203
10174
|
[exports.WorkspaceElementType.AppDataSchemaInstance]: {
|
|
10204
10175
|
type: exports.WorkspaceElementType.AppDataSchemaInstance,
|
|
@@ -10425,7 +10396,7 @@ function extractMembraneErrorData(error) {
|
|
|
10425
10396
|
},
|
|
10426
10397
|
};
|
|
10427
10398
|
}
|
|
10428
|
-
if (error instanceof
|
|
10399
|
+
if (error instanceof z.ZodError) {
|
|
10429
10400
|
data.message = v4.fromError(error).toString();
|
|
10430
10401
|
}
|
|
10431
10402
|
return data;
|
|
@@ -10668,6 +10639,11 @@ function getFlowRunVariableSchema() {
|
|
|
10668
10639
|
};
|
|
10669
10640
|
}
|
|
10670
10641
|
|
|
10642
|
+
exports.WorkspaceType = void 0;
|
|
10643
|
+
(function (WorkspaceType) {
|
|
10644
|
+
WorkspaceType["PRODUCTION"] = "production";
|
|
10645
|
+
WorkspaceType["DEVELOPMENT"] = "development";
|
|
10646
|
+
})(exports.WorkspaceType || (exports.WorkspaceType = {}));
|
|
10671
10647
|
exports.WorkspaceOnboardingStep = void 0;
|
|
10672
10648
|
(function (WorkspaceOnboardingStep) {
|
|
10673
10649
|
WorkspaceOnboardingStep["AddConnectors"] = "add-connectors";
|
|
@@ -10687,11 +10663,83 @@ exports.LimitUnits = void 0;
|
|
|
10687
10663
|
LimitUnits["Msec"] = "msec";
|
|
10688
10664
|
LimitUnits["Mb"] = "Mb";
|
|
10689
10665
|
})(exports.LimitUnits || (exports.LimitUnits = {}));
|
|
10690
|
-
|
|
10691
|
-
|
|
10692
|
-
|
|
10693
|
-
|
|
10694
|
-
})
|
|
10666
|
+
const WorkspaceLimit = z.object({
|
|
10667
|
+
value: z.number().optional(),
|
|
10668
|
+
defaultValue: z.number().optional(),
|
|
10669
|
+
unit: z.nativeEnum(exports.LimitUnits),
|
|
10670
|
+
});
|
|
10671
|
+
const WorkspaceLimitsSchema = z.object({
|
|
10672
|
+
parallelEventPulls: WorkspaceLimit.optional(),
|
|
10673
|
+
parallelIncrementalEventPullsPerConnection: WorkspaceLimit.optional(),
|
|
10674
|
+
parallelFullSyncEventPullsPerConnection: WorkspaceLimit.optional(),
|
|
10675
|
+
parallelFlowRuns: WorkspaceLimit.optional(),
|
|
10676
|
+
parallelFlowRunsPerConnection: WorkspaceLimit.optional(),
|
|
10677
|
+
parallelApiRequests: WorkspaceLimit.optional(),
|
|
10678
|
+
parallelSseRequests: WorkspaceLimit.optional(),
|
|
10679
|
+
parallelBackgroundJobs: WorkspaceLimit.optional(),
|
|
10680
|
+
parallelEventLogs: WorkspaceLimit.optional(),
|
|
10681
|
+
parallelEventLogsPerConnection: WorkspaceLimit.optional(),
|
|
10682
|
+
ParallelWriteDatabaseRequests: WorkspaceLimit.optional(),
|
|
10683
|
+
fileUploadsMbPerHour: WorkspaceLimit.optional(),
|
|
10684
|
+
apiRequestsPerSecond: WorkspaceLimit.optional(),
|
|
10685
|
+
apiRequestsPerHour: WorkspaceLimit.optional(),
|
|
10686
|
+
webhookRequestsPerSecond: WorkspaceLimit.optional(),
|
|
10687
|
+
webhookRequestsPerHour: WorkspaceLimit.optional(),
|
|
10688
|
+
workspaceElementCreationsPerSecond: WorkspaceLimit.optional(),
|
|
10689
|
+
workspaceElementCreationsPerHour: WorkspaceLimit.optional(),
|
|
10690
|
+
createDatabaseRequestsPerSecond: WorkspaceLimit.optional(),
|
|
10691
|
+
totalNumberOfCustomers: WorkspaceLimit.optional(),
|
|
10692
|
+
totalNumberOfConnections: WorkspaceLimit.optional(),
|
|
10693
|
+
totalNumberOfWorkspaceElements: WorkspaceLimit.optional(),
|
|
10694
|
+
parallelApiRequestsPerCustomer: WorkspaceLimit.optional(),
|
|
10695
|
+
parallelBackgroundJobsPerCustomer: WorkspaceLimit.optional(),
|
|
10696
|
+
apiRequestsPerCustomerPerSecond: WorkspaceLimit.optional(),
|
|
10697
|
+
apiRequestsPerCustomerPerHour: WorkspaceLimit.optional(),
|
|
10698
|
+
webhookRequestsPerCustomerPerSecond: WorkspaceLimit.optional(),
|
|
10699
|
+
webhookRequestsPerCustomerPerHour: WorkspaceLimit.optional(),
|
|
10700
|
+
externalEventsPerCustomerPerDay: WorkspaceLimit.optional(),
|
|
10701
|
+
createDatabaseRequestsPerCustomerPerSecond: WorkspaceLimit.optional(),
|
|
10702
|
+
updateDatabaseRequestsPerCustomerPerSecond: WorkspaceLimit.optional(),
|
|
10703
|
+
parallelWriteDatabaseRequestsPerCustomer: WorkspaceLimit.optional(),
|
|
10704
|
+
});
|
|
10705
|
+
const EngineWorkspaceSettingsSchema = z.object({
|
|
10706
|
+
enableApiLogs: z.boolean().optional(),
|
|
10707
|
+
enableWebhookLogs: z.boolean().optional(),
|
|
10708
|
+
enableActionRunLogs: z.boolean().optional(),
|
|
10709
|
+
disableSecretKeyAuth: z.boolean().optional(),
|
|
10710
|
+
});
|
|
10711
|
+
const WorkspacePublicKey = z.object({
|
|
10712
|
+
name: z.string(),
|
|
10713
|
+
publicKey: z.string(),
|
|
10714
|
+
});
|
|
10715
|
+
const AppSchema = z.object({
|
|
10716
|
+
id: z.string(),
|
|
10717
|
+
key: z.string(),
|
|
10718
|
+
logoUri: z.string().optional(),
|
|
10719
|
+
userFieldsSchema: z.any().optional(),
|
|
10720
|
+
apiBaseUri: z.string().optional(),
|
|
10721
|
+
webhookUri: z.string().optional(),
|
|
10722
|
+
publicKey: z.string().optional(),
|
|
10723
|
+
publicKeys: z.array(WorkspacePublicKey).optional(),
|
|
10724
|
+
enabledWebhookEvents: z.array(z.string()).optional(),
|
|
10725
|
+
auth: z.any().optional(),
|
|
10726
|
+
credentialsSchema: z.any().optional(),
|
|
10727
|
+
apiClient: z.any().optional(),
|
|
10728
|
+
apiRequestHeaders: z.record(z.string(), z.any()).optional(),
|
|
10729
|
+
apiRequestQuery: z.record(z.string(), z.any()).optional(),
|
|
10730
|
+
isOnPrem: z.boolean().optional(),
|
|
10731
|
+
connectorBaseUri: z.string().optional(),
|
|
10732
|
+
connectorRevision: z.string().optional(),
|
|
10733
|
+
featureFlags: z.array(z.string()).optional(),
|
|
10734
|
+
limits: WorkspaceLimitsSchema.optional(),
|
|
10735
|
+
settings: EngineWorkspaceSettingsSchema.optional(),
|
|
10736
|
+
type: z.nativeEnum(exports.WorkspaceType).optional(),
|
|
10737
|
+
jwksUri: z.string().nullable().optional(),
|
|
10738
|
+
isTrial: z.boolean().optional(),
|
|
10739
|
+
isThrottled: z.boolean().optional(),
|
|
10740
|
+
isDisabled: z.boolean().optional(),
|
|
10741
|
+
isBackgroundJobsDisabled: z.boolean().optional(),
|
|
10742
|
+
});
|
|
10695
10743
|
|
|
10696
10744
|
const PARALLEL_EXECUTION_LIMITS = [
|
|
10697
10745
|
'parallelEventPulls',
|
|
@@ -10730,129 +10778,157 @@ const EDITABLE_LIMITS = [
|
|
|
10730
10778
|
'parallelFlowRunsPerConnection',
|
|
10731
10779
|
];
|
|
10732
10780
|
|
|
10733
|
-
const OrgWorkspaceSchema =
|
|
10734
|
-
id:
|
|
10735
|
-
name:
|
|
10736
|
-
orgId:
|
|
10737
|
-
apiBaseUri:
|
|
10738
|
-
key:
|
|
10739
|
-
secret:
|
|
10740
|
-
createdAt:
|
|
10741
|
-
updatedAt:
|
|
10742
|
-
engineAccessToken:
|
|
10743
|
-
onboardingStep:
|
|
10744
|
-
trialEndDate:
|
|
10745
|
-
featureFlags:
|
|
10746
|
-
logoUri:
|
|
10747
|
-
});
|
|
10748
|
-
const OrgWorkspaceUser =
|
|
10749
|
-
id:
|
|
10750
|
-
workspaceId:
|
|
10751
|
-
testCustomerId:
|
|
10752
|
-
userId:
|
|
10753
|
-
role:
|
|
10754
|
-
});
|
|
10755
|
-
|
|
10756
|
-
const WorkspaceLimit = zod.z.object({
|
|
10757
|
-
value: zod.z.number().optional(),
|
|
10758
|
-
defaultValue: zod.z.number().optional(),
|
|
10759
|
-
unit: zod.z.nativeEnum(exports.LimitUnits),
|
|
10760
|
-
});
|
|
10761
|
-
const WorkspaceLimitsSchema = zod.z.object({
|
|
10762
|
-
parallelEventPulls: WorkspaceLimit.optional(),
|
|
10763
|
-
parallelIncrementalEventPullsPerConnection: WorkspaceLimit.optional(),
|
|
10764
|
-
parallelFullSyncEventPullsPerConnection: WorkspaceLimit.optional(),
|
|
10765
|
-
parallelFlowRuns: WorkspaceLimit.optional(),
|
|
10766
|
-
parallelFlowRunsPerConnection: WorkspaceLimit.optional(),
|
|
10767
|
-
parallelApiRequests: WorkspaceLimit.optional(),
|
|
10768
|
-
parallelSseRequests: WorkspaceLimit.optional(),
|
|
10769
|
-
parallelBackgroundJobs: WorkspaceLimit.optional(),
|
|
10770
|
-
parallelEventLogs: WorkspaceLimit.optional(),
|
|
10771
|
-
parallelEventLogsPerConnection: WorkspaceLimit.optional(),
|
|
10772
|
-
ParallelWriteDatabaseRequests: WorkspaceLimit.optional(),
|
|
10773
|
-
fileUploadsMbPerHour: WorkspaceLimit.optional(),
|
|
10774
|
-
apiRequestsPerSecond: WorkspaceLimit.optional(),
|
|
10775
|
-
apiRequestsPerHour: WorkspaceLimit.optional(),
|
|
10776
|
-
webhookRequestsPerSecond: WorkspaceLimit.optional(),
|
|
10777
|
-
webhookRequestsPerHour: WorkspaceLimit.optional(),
|
|
10778
|
-
workspaceElementCreationsPerSecond: WorkspaceLimit.optional(),
|
|
10779
|
-
workspaceElementCreationsPerHour: WorkspaceLimit.optional(),
|
|
10780
|
-
createDatabaseRequestsPerSecond: WorkspaceLimit.optional(),
|
|
10781
|
-
totalNumberOfCustomers: WorkspaceLimit.optional(),
|
|
10782
|
-
totalNumberOfConnections: WorkspaceLimit.optional(),
|
|
10783
|
-
totalNumberOfWorkspaceElements: WorkspaceLimit.optional(),
|
|
10784
|
-
parallelApiRequestsPerCustomer: WorkspaceLimit.optional(),
|
|
10785
|
-
parallelBackgroundJobsPerCustomer: WorkspaceLimit.optional(),
|
|
10786
|
-
apiRequestsPerCustomerPerSecond: WorkspaceLimit.optional(),
|
|
10787
|
-
apiRequestsPerCustomerPerHour: WorkspaceLimit.optional(),
|
|
10788
|
-
webhookRequestsPerCustomerPerSecond: WorkspaceLimit.optional(),
|
|
10789
|
-
webhookRequestsPerCustomerPerHour: WorkspaceLimit.optional(),
|
|
10790
|
-
externalEventsPerCustomerPerDay: WorkspaceLimit.optional(),
|
|
10791
|
-
createDatabaseRequestsPerCustomerPerSecond: WorkspaceLimit.optional(),
|
|
10792
|
-
updateDatabaseRequestsPerCustomerPerSecond: WorkspaceLimit.optional(),
|
|
10793
|
-
parallelWriteDatabaseRequestsPerCustomer: WorkspaceLimit.optional(),
|
|
10781
|
+
const OrgWorkspaceSchema = z.z.object({
|
|
10782
|
+
id: z.z.string(),
|
|
10783
|
+
name: z.z.string(),
|
|
10784
|
+
orgId: z.z.string(),
|
|
10785
|
+
apiBaseUri: z.z.string().optional(),
|
|
10786
|
+
key: z.z.string(),
|
|
10787
|
+
secret: z.z.string(),
|
|
10788
|
+
createdAt: z.z.coerce.date(),
|
|
10789
|
+
updatedAt: z.z.coerce.date(),
|
|
10790
|
+
engineAccessToken: z.z.string().optional(),
|
|
10791
|
+
onboardingStep: z.z.nativeEnum(exports.WorkspaceOnboardingStep).optional(),
|
|
10792
|
+
trialEndDate: z.z.string().optional(),
|
|
10793
|
+
featureFlags: z.z.array(z.z.string()).optional(),
|
|
10794
|
+
logoUri: z.z.string().optional(),
|
|
10795
|
+
});
|
|
10796
|
+
const OrgWorkspaceUser = z.z.object({
|
|
10797
|
+
id: z.z.string(),
|
|
10798
|
+
workspaceId: z.z.string(),
|
|
10799
|
+
testCustomerId: z.z.string(),
|
|
10800
|
+
userId: z.z.string(),
|
|
10801
|
+
role: z.z.string(),
|
|
10794
10802
|
});
|
|
10795
|
-
|
|
10796
|
-
|
|
10797
|
-
|
|
10798
|
-
|
|
10799
|
-
|
|
10800
|
-
|
|
10801
|
-
|
|
10802
|
-
|
|
10803
|
-
|
|
10804
|
-
|
|
10805
|
-
|
|
10806
|
-
|
|
10807
|
-
|
|
10808
|
-
|
|
10809
|
-
|
|
10810
|
-
|
|
10811
|
-
|
|
10812
|
-
|
|
10813
|
-
|
|
10814
|
-
|
|
10815
|
-
|
|
10816
|
-
|
|
10817
|
-
|
|
10818
|
-
|
|
10819
|
-
|
|
10820
|
-
|
|
10821
|
-
|
|
10822
|
-
|
|
10823
|
-
|
|
10824
|
-
|
|
10825
|
-
|
|
10826
|
-
|
|
10827
|
-
|
|
10828
|
-
|
|
10829
|
-
|
|
10830
|
-
|
|
10831
|
-
|
|
10832
|
-
|
|
10833
|
-
|
|
10834
|
-
|
|
10835
|
-
|
|
10836
|
-
|
|
10837
|
-
|
|
10838
|
-
|
|
10839
|
-
|
|
10840
|
-
|
|
10841
|
-
|
|
10842
|
-
|
|
10843
|
-
|
|
10844
|
-
|
|
10845
|
-
|
|
10846
|
-
|
|
10847
|
-
|
|
10848
|
-
|
|
10849
|
-
|
|
10850
|
-
|
|
10851
|
-
|
|
10852
|
-
|
|
10853
|
-
|
|
10854
|
-
|
|
10855
|
-
|
|
10803
|
+
|
|
10804
|
+
exports.WorkspaceElementChangeType = void 0;
|
|
10805
|
+
(function (WorkspaceElementChangeType) {
|
|
10806
|
+
WorkspaceElementChangeType["CREATE"] = "create";
|
|
10807
|
+
WorkspaceElementChangeType["UPDATE"] = "update";
|
|
10808
|
+
WorkspaceElementChangeType["DELETE"] = "delete";
|
|
10809
|
+
})(exports.WorkspaceElementChangeType || (exports.WorkspaceElementChangeType = {}));
|
|
10810
|
+
function compareWorkspaceExports(baseExport, targetExport) {
|
|
10811
|
+
const changes = [];
|
|
10812
|
+
const comparison = {
|
|
10813
|
+
[exports.WorkspaceElementChangeType.CREATE]: new Set(),
|
|
10814
|
+
[exports.WorkspaceElementChangeType.UPDATE]: new Set(),
|
|
10815
|
+
[exports.WorkspaceElementChangeType.DELETE]: new Set(),
|
|
10816
|
+
};
|
|
10817
|
+
const sourceUuidByTargetUuid = new Map();
|
|
10818
|
+
const integrationMap = buildIntegrationsMap([
|
|
10819
|
+
...(baseExport[exports.WorkspaceElementType.Integration] || []),
|
|
10820
|
+
...(targetExport[exports.WorkspaceElementType.Integration] || []),
|
|
10821
|
+
]);
|
|
10822
|
+
const baseMap = new Map();
|
|
10823
|
+
const targetMap = new Map();
|
|
10824
|
+
const allSelectors = new Set();
|
|
10825
|
+
const allElementTypes = new Set([...Object.keys(baseExport), ...Object.keys(targetExport)]);
|
|
10826
|
+
for (const elementType of allElementTypes) {
|
|
10827
|
+
const type = elementType;
|
|
10828
|
+
const baseElements = baseExport[type] || [];
|
|
10829
|
+
for (const element of baseElements) {
|
|
10830
|
+
const intIdentifier = getIntegrationIdentifier(element, integrationMap);
|
|
10831
|
+
const selector = getElementSelector(type, element.key, intIdentifier);
|
|
10832
|
+
baseMap.set(selector, element);
|
|
10833
|
+
allSelectors.add(selector);
|
|
10834
|
+
}
|
|
10835
|
+
const targetElements = targetExport[type] || [];
|
|
10836
|
+
for (const element of targetElements) {
|
|
10837
|
+
const intIdentifier = getIntegrationIdentifier(element, integrationMap);
|
|
10838
|
+
const selector = getElementSelector(type, element.key, intIdentifier);
|
|
10839
|
+
targetMap.set(selector, element);
|
|
10840
|
+
allSelectors.add(selector);
|
|
10841
|
+
}
|
|
10842
|
+
}
|
|
10843
|
+
for (const selector of allSelectors) {
|
|
10844
|
+
const baseElement = baseMap.get(selector);
|
|
10845
|
+
const targetElement = targetMap.get(selector);
|
|
10846
|
+
if (baseElement && targetElement && baseElement.uuid !== targetElement.uuid) {
|
|
10847
|
+
sourceUuidByTargetUuid.set(targetElement.uuid, baseElement.uuid);
|
|
10848
|
+
}
|
|
10849
|
+
const change = compareElementExports(baseElement, targetElement);
|
|
10850
|
+
if (change) {
|
|
10851
|
+
changes.push(change);
|
|
10852
|
+
}
|
|
10853
|
+
}
|
|
10854
|
+
changes.forEach((change) => {
|
|
10855
|
+
comparison[change.type].add(change.uuid);
|
|
10856
|
+
});
|
|
10857
|
+
return { comparison, sourceUuidByTargetUuid };
|
|
10858
|
+
}
|
|
10859
|
+
function compareElementExports(baseElement, targetElement) {
|
|
10860
|
+
if (baseElement && !targetElement) {
|
|
10861
|
+
return {
|
|
10862
|
+
type: exports.WorkspaceElementChangeType.DELETE,
|
|
10863
|
+
uuid: baseElement.uuid,
|
|
10864
|
+
};
|
|
10865
|
+
}
|
|
10866
|
+
if (!baseElement && targetElement) {
|
|
10867
|
+
return {
|
|
10868
|
+
type: exports.WorkspaceElementChangeType.CREATE,
|
|
10869
|
+
uuid: targetElement.uuid,
|
|
10870
|
+
};
|
|
10871
|
+
}
|
|
10872
|
+
if (baseElement && targetElement && !deepEqual(baseElement, targetElement)) {
|
|
10873
|
+
return {
|
|
10874
|
+
type: exports.WorkspaceElementChangeType.UPDATE,
|
|
10875
|
+
uuid: targetElement.uuid,
|
|
10876
|
+
};
|
|
10877
|
+
}
|
|
10878
|
+
return undefined;
|
|
10879
|
+
}
|
|
10880
|
+
function getIntegrationIdentifier(element, integrationMap) {
|
|
10881
|
+
let integrationIdentifier;
|
|
10882
|
+
if (element.integrationUuid) {
|
|
10883
|
+
integrationIdentifier = integrationMap.get(element.integrationUuid);
|
|
10884
|
+
}
|
|
10885
|
+
if (element.integrationId) {
|
|
10886
|
+
integrationIdentifier = integrationMap.get(element.integrationId);
|
|
10887
|
+
}
|
|
10888
|
+
return integrationIdentifier || element.integrationUuid || element.integrationId;
|
|
10889
|
+
}
|
|
10890
|
+
function getElementSelector(type, key, integrationIdentifier) {
|
|
10891
|
+
if (integrationIdentifier) {
|
|
10892
|
+
return `${type}:${key}:${integrationIdentifier}`;
|
|
10893
|
+
}
|
|
10894
|
+
return `${type}:${key}`;
|
|
10895
|
+
}
|
|
10896
|
+
function buildIntegrationsMap(integrations) {
|
|
10897
|
+
const map = new Map();
|
|
10898
|
+
for (const integration of integrations) {
|
|
10899
|
+
if (integration.uuid && integration.key) {
|
|
10900
|
+
map.set(integration.uuid, integration.key);
|
|
10901
|
+
continue;
|
|
10902
|
+
}
|
|
10903
|
+
if (integration.id && integration.key) {
|
|
10904
|
+
map.set(integration.id.toString(), integration.key);
|
|
10905
|
+
}
|
|
10906
|
+
}
|
|
10907
|
+
return map;
|
|
10908
|
+
}
|
|
10909
|
+
|
|
10910
|
+
const PlatformUserSchema = z.z.object({
|
|
10911
|
+
id: z.z.string(),
|
|
10912
|
+
email: z.z.string(),
|
|
10913
|
+
name: z.z.string(),
|
|
10914
|
+
trialRequested: z.z.boolean(),
|
|
10915
|
+
introVideoStatus: z.z.string().optional(),
|
|
10916
|
+
isEligible: z.z.boolean().optional(),
|
|
10917
|
+
emailVerified: z.z.boolean().optional(),
|
|
10918
|
+
});
|
|
10919
|
+
const FullPlatformUser = z.z.object({
|
|
10920
|
+
id: z.z.string(),
|
|
10921
|
+
auth0Id: z.z.string().optional(),
|
|
10922
|
+
email: z.z.string(),
|
|
10923
|
+
name: z.z.string(),
|
|
10924
|
+
defaultAccountId: z.z.string().optional(),
|
|
10925
|
+
defaultWorkspaceId: z.z.string().optional(),
|
|
10926
|
+
isAdmin: z.z.boolean().optional(),
|
|
10927
|
+
trialRequested: z.z.boolean(),
|
|
10928
|
+
pat: z.z.string().optional(),
|
|
10929
|
+
introVideoStatus: z.z.string().optional(),
|
|
10930
|
+
isEligible: z.z.boolean().optional(),
|
|
10931
|
+
emailVerified: z.z.boolean().optional(),
|
|
10856
10932
|
});
|
|
10857
10933
|
|
|
10858
10934
|
exports.OrgLimitsType = void 0;
|
|
@@ -10872,54 +10948,58 @@ exports.OrgUserStatus = void 0;
|
|
|
10872
10948
|
OrgUserStatus["Invited"] = "invited";
|
|
10873
10949
|
OrgUserStatus["Active"] = "active";
|
|
10874
10950
|
})(exports.OrgUserStatus || (exports.OrgUserStatus = {}));
|
|
10875
|
-
const OrgLimits =
|
|
10951
|
+
const OrgLimits = z.z
|
|
10876
10952
|
.object({
|
|
10877
|
-
numberOfWorkspaces:
|
|
10878
|
-
todayUsage:
|
|
10879
|
-
lastThirtyDayUsage:
|
|
10880
|
-
membraneAgentLastThirtyDaysUsage:
|
|
10881
|
-
membraneExpertCreditsCapPerMonth:
|
|
10953
|
+
numberOfWorkspaces: z.z.number().optional(),
|
|
10954
|
+
todayUsage: z.z.number().optional(),
|
|
10955
|
+
lastThirtyDayUsage: z.z.number().optional(),
|
|
10956
|
+
membraneAgentLastThirtyDaysUsage: z.z.number().optional(),
|
|
10957
|
+
membraneExpertCreditsCapPerMonth: z.z.number().nullable().optional(),
|
|
10882
10958
|
})
|
|
10883
10959
|
.optional();
|
|
10884
|
-
const MembraneAgentKey =
|
|
10960
|
+
const MembraneAgentKey = z.z
|
|
10885
10961
|
.object({
|
|
10886
|
-
key:
|
|
10887
|
-
expiresAt:
|
|
10962
|
+
key: z.z.string().optional(),
|
|
10963
|
+
expiresAt: z.z.string().optional(),
|
|
10888
10964
|
})
|
|
10889
10965
|
.optional();
|
|
10890
|
-
const OrgSchema =
|
|
10891
|
-
id:
|
|
10892
|
-
key:
|
|
10893
|
-
name:
|
|
10894
|
-
createdAt:
|
|
10895
|
-
updatedAt:
|
|
10896
|
-
trialEndDate:
|
|
10897
|
-
lastTrialExtensionDate:
|
|
10966
|
+
const OrgSchema = z.z.object({
|
|
10967
|
+
id: z.z.string(),
|
|
10968
|
+
key: z.z.string(),
|
|
10969
|
+
name: z.z.string(),
|
|
10970
|
+
createdAt: z.z.coerce.date(),
|
|
10971
|
+
updatedAt: z.z.coerce.date(),
|
|
10972
|
+
trialEndDate: z.z.string().optional(),
|
|
10973
|
+
lastTrialExtensionDate: z.z.string().optional(),
|
|
10898
10974
|
limits: OrgLimits,
|
|
10899
|
-
thirtyDayTotalCredits:
|
|
10900
|
-
lastThirtyDayUsagePercent:
|
|
10901
|
-
todayUsagePercent:
|
|
10902
|
-
domains:
|
|
10903
|
-
featureFlags:
|
|
10904
|
-
|
|
10905
|
-
paidAiCredits:
|
|
10906
|
-
stripeCustomerId:
|
|
10907
|
-
|
|
10908
|
-
|
|
10975
|
+
thirtyDayTotalCredits: z.z.number().optional(),
|
|
10976
|
+
lastThirtyDayUsagePercent: z.z.number().optional(),
|
|
10977
|
+
todayUsagePercent: z.z.number().optional(),
|
|
10978
|
+
domains: z.z.array(z.z.string()).optional(),
|
|
10979
|
+
featureFlags: z.z.array(z.z.string()).optional(),
|
|
10980
|
+
freeAiCredits: z.z.number().optional(),
|
|
10981
|
+
paidAiCredits: z.z.number().optional(),
|
|
10982
|
+
stripeCustomerId: z.z.string().optional(),
|
|
10983
|
+
autoChargeEnabled: z.z.boolean().optional(),
|
|
10984
|
+
autoChargeThreshold: z.z.number().optional(),
|
|
10985
|
+
autoChargePurchaseAmount: z.z.number().optional(),
|
|
10986
|
+
autoChargeMonthlyLimit: z.z.number().optional(),
|
|
10987
|
+
});
|
|
10988
|
+
const AccountResponse = z.z.object({
|
|
10909
10989
|
user: FullPlatformUser.optional(),
|
|
10910
10990
|
workspace: OrgWorkspaceSchema.optional(),
|
|
10911
|
-
workspaces:
|
|
10991
|
+
workspaces: z.z.array(OrgWorkspaceSchema).optional(),
|
|
10912
10992
|
workspaceUser: OrgWorkspaceUser.extend({
|
|
10913
|
-
testCustomerId:
|
|
10993
|
+
testCustomerId: z.z.string(),
|
|
10914
10994
|
}).optional(),
|
|
10915
10995
|
engineTestUser: BaseCustomer.optional(),
|
|
10916
10996
|
testCustomer: BaseCustomer.optional(),
|
|
10917
10997
|
engineApp: AppSchema.optional(),
|
|
10918
|
-
superAdminToken:
|
|
10919
|
-
orgs:
|
|
10920
|
-
permissions:
|
|
10921
|
-
message:
|
|
10922
|
-
error:
|
|
10998
|
+
superAdminToken: z.z.string().optional().nullable(),
|
|
10999
|
+
orgs: z.z.array(OrgSchema).optional(),
|
|
11000
|
+
permissions: z.z.array(z.z.string()).optional(),
|
|
11001
|
+
message: z.z.string().optional(),
|
|
11002
|
+
error: z.z.string().optional(),
|
|
10923
11003
|
});
|
|
10924
11004
|
|
|
10925
11005
|
exports.WebhookTypeEnum = void 0;
|
|
@@ -10930,6 +11010,7 @@ exports.WebhookTypeEnum = void 0;
|
|
|
10930
11010
|
WebhookTypeEnum["TASK_CREATED"] = "task-created";
|
|
10931
11011
|
WebhookTypeEnum["TASK_UPDATED"] = "task-updated";
|
|
10932
11012
|
WebhookTypeEnum["TASK_ACTIVITY_CREATED"] = "task-activity-created";
|
|
11013
|
+
WebhookTypeEnum["CONNECTOR_VERSION_PUBLISHED"] = "connector-version-published";
|
|
10933
11014
|
})(exports.WebhookTypeEnum || (exports.WebhookTypeEnum = {}));
|
|
10934
11015
|
|
|
10935
11016
|
exports.AlertStatus = void 0;
|
|
@@ -12601,6 +12682,7 @@ class ExternalEventSubscriptionAccessor {
|
|
|
12601
12682
|
exports.WorkspaceSyncEventType = void 0;
|
|
12602
12683
|
(function (WorkspaceSyncEventType) {
|
|
12603
12684
|
WorkspaceSyncEventType["ElementUpdate"] = "element-update";
|
|
12685
|
+
WorkspaceSyncEventType["Connected"] = "connected";
|
|
12604
12686
|
})(exports.WorkspaceSyncEventType || (exports.WorkspaceSyncEventType = {}));
|
|
12605
12687
|
exports.ConnectorFileUpdateType = void 0;
|
|
12606
12688
|
(function (ConnectorFileUpdateType) {
|
|
@@ -12618,44 +12700,44 @@ exports.ScenarioTemplateCategory = void 0;
|
|
|
12618
12700
|
ScenarioTemplateCategory["UnifiedApi"] = "unified-api";
|
|
12619
12701
|
ScenarioTemplateCategory["DataEnrichment"] = "data-enrichment";
|
|
12620
12702
|
})(exports.ScenarioTemplateCategory || (exports.ScenarioTemplateCategory = {}));
|
|
12621
|
-
const HandyScenarioTemplateElement =
|
|
12622
|
-
type:
|
|
12623
|
-
integration:
|
|
12624
|
-
integrations:
|
|
12625
|
-
fields:
|
|
12703
|
+
const HandyScenarioTemplateElement = z.z.object({
|
|
12704
|
+
type: z.z.string(),
|
|
12705
|
+
integration: z.z.object({ key: z.z.string(), connectorId: z.z.string() }).optional(),
|
|
12706
|
+
integrations: z.z.array(z.z.object({ key: z.z.string(), connectorId: z.z.string() })).optional(),
|
|
12707
|
+
fields: z.z
|
|
12626
12708
|
.object({
|
|
12627
|
-
key:
|
|
12628
|
-
name:
|
|
12709
|
+
key: z.z.string(),
|
|
12710
|
+
name: z.z.string(),
|
|
12629
12711
|
})
|
|
12630
|
-
.and(
|
|
12631
|
-
});
|
|
12632
|
-
const withIntegrationKeys = (schema) => schema.and(
|
|
12633
|
-
const ElementsExportFields =
|
|
12634
|
-
flows:
|
|
12635
|
-
actions:
|
|
12636
|
-
fieldMappings:
|
|
12637
|
-
dataSources:
|
|
12638
|
-
dataLinkTables:
|
|
12639
|
-
appEventTypes:
|
|
12640
|
-
appDataSchemas:
|
|
12641
|
-
});
|
|
12642
|
-
const ScenarioTemplateElements = ElementsExportFields.and(
|
|
12643
|
-
integrations:
|
|
12712
|
+
.and(z.z.record(z.z.string(), z.z.any())),
|
|
12713
|
+
});
|
|
12714
|
+
const withIntegrationKeys = (schema) => schema.and(z.z.object({ integrationKeys: z.z.array(z.z.string()).optional() }));
|
|
12715
|
+
const ElementsExportFields = z.z.object({
|
|
12716
|
+
flows: z.z.record(z.z.string(), withIntegrationKeys(z.z.any())).optional(),
|
|
12717
|
+
actions: z.z.record(z.z.string(), withIntegrationKeys(z.z.any())).optional(),
|
|
12718
|
+
fieldMappings: z.z.record(z.z.string(), withIntegrationKeys(z.z.any())).optional(),
|
|
12719
|
+
dataSources: z.z.record(z.z.string(), withIntegrationKeys(z.z.any())).optional(),
|
|
12720
|
+
dataLinkTables: z.z.record(z.z.string(), z.z.any()).optional(),
|
|
12721
|
+
appEventTypes: z.z.record(z.z.string(), z.z.any()).optional(),
|
|
12722
|
+
appDataSchemas: z.z.record(z.z.string(), z.z.any()).optional(),
|
|
12723
|
+
});
|
|
12724
|
+
const ScenarioTemplateElements = ElementsExportFields.and(z.z.object({
|
|
12725
|
+
integrations: z.z.record(z.z.string(), ElementsExportFields.and(z.z.object({ connectorId: z.z.string() }))).optional(),
|
|
12644
12726
|
}));
|
|
12645
|
-
const ScenarioTemplate =
|
|
12646
|
-
id:
|
|
12647
|
-
name:
|
|
12648
|
-
key:
|
|
12649
|
-
shortDescription:
|
|
12650
|
-
description:
|
|
12651
|
-
demoWorkspaceKey:
|
|
12652
|
-
demoAppUri:
|
|
12653
|
-
demoGithubRepo:
|
|
12654
|
-
demoVideoYoutubeUri:
|
|
12655
|
-
tags:
|
|
12727
|
+
const ScenarioTemplate = z.z.object({
|
|
12728
|
+
id: z.z.string(),
|
|
12729
|
+
name: z.z.string(),
|
|
12730
|
+
key: z.z.string(),
|
|
12731
|
+
shortDescription: z.z.string().optional(),
|
|
12732
|
+
description: z.z.string().optional(),
|
|
12733
|
+
demoWorkspaceKey: z.z.string().optional(),
|
|
12734
|
+
demoAppUri: z.z.string().optional(),
|
|
12735
|
+
demoGithubRepo: z.z.string().optional(),
|
|
12736
|
+
demoVideoYoutubeUri: z.z.string().optional(),
|
|
12737
|
+
tags: z.z.array(z.z.enum(exports.ScenarioTemplateCategory)).optional(),
|
|
12656
12738
|
elements: ScenarioTemplateElements.optional(),
|
|
12657
|
-
connectors:
|
|
12658
|
-
handyElements:
|
|
12739
|
+
connectors: z.z.array(MinimalConnector).optional(),
|
|
12740
|
+
handyElements: z.z.array(HandyScenarioTemplateElement).optional(),
|
|
12659
12741
|
});
|
|
12660
12742
|
|
|
12661
12743
|
exports.AgentSessionStatus = void 0;
|
|
@@ -12667,35 +12749,36 @@ exports.AgentSessionStatus = void 0;
|
|
|
12667
12749
|
AgentSessionStatus["FAILED"] = "failed";
|
|
12668
12750
|
AgentSessionStatus["CANCELLED"] = "cancelled";
|
|
12669
12751
|
})(exports.AgentSessionStatus || (exports.AgentSessionStatus = {}));
|
|
12670
|
-
const AgentSession =
|
|
12671
|
-
id:
|
|
12672
|
-
workspaceId:
|
|
12673
|
-
workspaceElementType:
|
|
12674
|
-
workspaceElementId:
|
|
12675
|
-
type:
|
|
12676
|
-
status:
|
|
12677
|
-
workerId:
|
|
12678
|
-
workerUrl:
|
|
12679
|
-
prompt:
|
|
12752
|
+
const AgentSession = z.z.object({
|
|
12753
|
+
id: z.z.string(),
|
|
12754
|
+
workspaceId: z.z.string(),
|
|
12755
|
+
workspaceElementType: z.z.enum(exports.WorkspaceElementType),
|
|
12756
|
+
workspaceElementId: z.z.string(),
|
|
12757
|
+
type: z.z.string(),
|
|
12758
|
+
status: z.z.enum(exports.AgentSessionStatus),
|
|
12759
|
+
workerId: z.z.string().optional(),
|
|
12760
|
+
workerUrl: z.z.string().url().optional(),
|
|
12761
|
+
prompt: z.z.string(),
|
|
12680
12762
|
error: ErrorDataSchema.optional(),
|
|
12681
|
-
createdBy:
|
|
12682
|
-
lastActivityAt:
|
|
12683
|
-
createdAt:
|
|
12684
|
-
updatedAt:
|
|
12685
|
-
storedMessagesUri:
|
|
12686
|
-
sessionFilesZipUri:
|
|
12687
|
-
logs:
|
|
12688
|
-
usage:
|
|
12689
|
-
|
|
12690
|
-
|
|
12691
|
-
|
|
12692
|
-
|
|
12693
|
-
|
|
12694
|
-
|
|
12695
|
-
|
|
12696
|
-
|
|
12697
|
-
|
|
12698
|
-
|
|
12763
|
+
createdBy: z.z.string(),
|
|
12764
|
+
lastActivityAt: z.z.iso.datetime(),
|
|
12765
|
+
createdAt: z.z.iso.datetime(),
|
|
12766
|
+
updatedAt: z.z.iso.datetime(),
|
|
12767
|
+
storedMessagesUri: z.z.string().url().optional(),
|
|
12768
|
+
sessionFilesZipUri: z.z.string().url().optional(),
|
|
12769
|
+
logs: z.z.array(z.z.any()).optional(),
|
|
12770
|
+
usage: z.z.number().optional(),
|
|
12771
|
+
summary: z.z.string().optional(),
|
|
12772
|
+
});
|
|
12773
|
+
const CreateAgentSession = z.z.object({
|
|
12774
|
+
workspaceElementType: z.z.enum(exports.WorkspaceElementType).optional(),
|
|
12775
|
+
workspaceElementId: z.z.string().min(1).optional(),
|
|
12776
|
+
prompt: z.z.string().min(1),
|
|
12777
|
+
testCustomerId: z.z.string().optional(),
|
|
12778
|
+
});
|
|
12779
|
+
const AgentSessionInputSchema = z.z.object({
|
|
12780
|
+
input: z.z.string().min(1),
|
|
12781
|
+
synthetic: z.z.boolean().optional(),
|
|
12699
12782
|
});
|
|
12700
12783
|
|
|
12701
12784
|
const API_VERSIONS = {
|
|
@@ -13008,11 +13091,11 @@ class MembraneClient extends MembraneApiClient {
|
|
|
13008
13091
|
injectFormulaCatalog(getFormula, isFormula, hasFormulas);
|
|
13009
13092
|
|
|
13010
13093
|
const CONFIG_FILE_NAME = 'membrane.config.yml';
|
|
13011
|
-
const membraneConfigSchema =
|
|
13012
|
-
workspaceKey:
|
|
13013
|
-
workspaceSecret:
|
|
13014
|
-
apiUri:
|
|
13015
|
-
testCustomerId:
|
|
13094
|
+
const membraneConfigSchema = z.z.object({
|
|
13095
|
+
workspaceKey: z.z.string(),
|
|
13096
|
+
workspaceSecret: z.z.string(),
|
|
13097
|
+
apiUri: z.z.string().optional(),
|
|
13098
|
+
testCustomerId: z.z.string().optional(),
|
|
13016
13099
|
});
|
|
13017
13100
|
class MembraneConfigLoader {
|
|
13018
13101
|
constructor(cwd = process.cwd()) {
|
|
@@ -13194,6 +13277,8 @@ exports.AgentSessionInputSchema = AgentSessionInputSchema;
|
|
|
13194
13277
|
exports.ApiRequestSpec = ApiRequestSpec;
|
|
13195
13278
|
exports.AppDataSchemaAccessor = AppDataSchemaAccessor;
|
|
13196
13279
|
exports.AppDataSchemaApiResponse = AppDataSchemaApiResponse;
|
|
13280
|
+
exports.AppDataSchemaEditableProperties = AppDataSchemaEditableProperties;
|
|
13281
|
+
exports.AppDataSchemaExportProperties = AppDataSchemaExportProperties;
|
|
13197
13282
|
exports.AppDataSchemaInstanceAccessor = AppDataSchemaInstanceAccessor;
|
|
13198
13283
|
exports.AppDataSchemaInstanceApiResponse = AppDataSchemaInstanceApiResponse;
|
|
13199
13284
|
exports.AppDataSchemaInstancesAccessor = AppDataSchemaInstancesAccessor;
|
|
@@ -13204,8 +13289,9 @@ exports.AppEventSubscriptionApiResponse = AppEventSubscriptionApiResponse;
|
|
|
13204
13289
|
exports.AppEventSubscriptionsAccessor = AppEventSubscriptionsAccessor;
|
|
13205
13290
|
exports.AppEventTypeAccessor = AppEventTypeAccessor;
|
|
13206
13291
|
exports.AppEventTypeApiResponse = AppEventTypeApiResponse;
|
|
13292
|
+
exports.AppEventTypeEditableProperties = AppEventTypeEditableProperties;
|
|
13293
|
+
exports.AppEventTypeExportProperties = AppEventTypeExportProperties;
|
|
13207
13294
|
exports.AppEventTypesAccessor = AppEventTypesAccessor;
|
|
13208
|
-
exports.AppPublicKey = AppPublicKey;
|
|
13209
13295
|
exports.AppSchema = AppSchema;
|
|
13210
13296
|
exports.AppliedToIntegrations = AppliedToIntegrations;
|
|
13211
13297
|
exports.BackwardCompatibleDataSourceEditableProperties = BackwardCompatibleDataSourceEditableProperties;
|
|
@@ -13288,6 +13374,7 @@ exports.CreateActionRequest = CreateActionRequest;
|
|
|
13288
13374
|
exports.CreateAgentSession = CreateAgentSession;
|
|
13289
13375
|
exports.CreateConnectionRequest = CreateConnectionRequest;
|
|
13290
13376
|
exports.CreateCustomerRequest = CreateCustomerRequest;
|
|
13377
|
+
exports.CreateDataLinkTableRequest = CreateDataLinkTableRequest;
|
|
13291
13378
|
exports.CreateDataSourceInstanceRequest = CreateDataSourceInstanceRequest;
|
|
13292
13379
|
exports.CreateDataSourceRequest = CreateDataSourceRequest;
|
|
13293
13380
|
exports.CreateFieldMappingRequest = CreateFieldMappingRequest;
|
|
@@ -13342,6 +13429,8 @@ exports.DataLink = DataLink;
|
|
|
13342
13429
|
exports.DataLinkTableAccessor = DataLinkTableAccessor;
|
|
13343
13430
|
exports.DataLinkTableApiResponse = DataLinkTableApiResponse;
|
|
13344
13431
|
exports.DataLinkTableConfig = DataLinkTableConfig;
|
|
13432
|
+
exports.DataLinkTableEditableProperties = DataLinkTableEditableProperties;
|
|
13433
|
+
exports.DataLinkTableExportProperties = DataLinkTableExportProperties;
|
|
13345
13434
|
exports.DataLinkTableInstanceAccessor = DataLinkTableInstanceAccessor;
|
|
13346
13435
|
exports.DataLinkTableInstanceApiResponse = DataLinkTableInstanceApiResponse;
|
|
13347
13436
|
exports.DataLinkTableInstancesAccessor = DataLinkTableInstancesAccessor;
|
|
@@ -13396,6 +13485,7 @@ exports.FindActionsQuery = FindActionsQuery;
|
|
|
13396
13485
|
exports.FindConnectionsQuery = FindConnectionsQuery;
|
|
13397
13486
|
exports.FindConnectionsResponse = FindConnectionsResponse;
|
|
13398
13487
|
exports.FindCustomersQuery = FindCustomersQuery;
|
|
13488
|
+
exports.FindDataLinkTablesQuery = FindDataLinkTablesQuery;
|
|
13399
13489
|
exports.FindDataSourceEventsQuery = FindDataSourceEventsQuery;
|
|
13400
13490
|
exports.FindDataSourceInstanceSyncsQuery = FindDataSourceInstanceSyncsQuery;
|
|
13401
13491
|
exports.FindDataSourceInstancesQuery = FindDataSourceInstancesQuery;
|
|
@@ -13446,6 +13536,7 @@ exports.InsufficientCreditsError = InsufficientCreditsError;
|
|
|
13446
13536
|
exports.IntegrationAccessor = IntegrationAccessor;
|
|
13447
13537
|
exports.IntegrationApiResponse = IntegrationApiResponse;
|
|
13448
13538
|
exports.IntegrationAppClient = MembraneClient;
|
|
13539
|
+
exports.IntegrationAppError = IntegrationAppError;
|
|
13449
13540
|
exports.IntegrationAuthOption = IntegrationAuthOption;
|
|
13450
13541
|
exports.IntegrationAuthUi = IntegrationAuthUi;
|
|
13451
13542
|
exports.IntegrationExportProperties = IntegrationExportProperties;
|
|
@@ -13465,6 +13556,7 @@ exports.ListActionInstancesForConnectionQuery = ListActionInstancesForConnection
|
|
|
13465
13556
|
exports.ListDataSourceInstancesForConnectionQuery = ListDataSourceInstancesForConnectionQuery;
|
|
13466
13557
|
exports.ListExternalEventLogRecordsQuery = ListExternalEventLogRecordsQuery;
|
|
13467
13558
|
exports.ListExternalEventPullsQuery = ListExternalEventPullsQuery;
|
|
13559
|
+
exports.ListExternalEventSubscriptionsQuery = ListExternalEventSubscriptionsQuery;
|
|
13468
13560
|
exports.ListFlowInstancesForConnectionQuery = ListFlowInstancesForConnectionQuery;
|
|
13469
13561
|
exports.MEMBRANE_ELEMENT_CONFIG_FILE_NAME = MEMBRANE_ELEMENT_CONFIG_FILE_NAME;
|
|
13470
13562
|
exports.MIN_FULL_SYNC_INTERVAL_SECONDS = MIN_FULL_SYNC_INTERVAL_SECONDS;
|
|
@@ -13517,6 +13609,7 @@ exports.UpdateActionInstanceRequest = UpdateActionInstanceRequest;
|
|
|
13517
13609
|
exports.UpdateActionRequest = UpdateActionRequest;
|
|
13518
13610
|
exports.UpdateConnectionRequest = UpdateConnectionRequest;
|
|
13519
13611
|
exports.UpdateCustomerRequest = UpdateCustomerRequest;
|
|
13612
|
+
exports.UpdateDataLinkTableRequest = UpdateDataLinkTableRequest;
|
|
13520
13613
|
exports.UpdateDataSourceInstanceRequest = UpdateDataSourceInstanceRequest;
|
|
13521
13614
|
exports.UpdateDataSourceRequest = UpdateDataSourceRequest;
|
|
13522
13615
|
exports.UpdateFieldMappingRequest = UpdateFieldMappingRequest;
|
|
@@ -13529,6 +13622,7 @@ exports.UsersAccessor = UsersAccessor;
|
|
|
13529
13622
|
exports.WORKSPACE_SIZE_LIMITS = WORKSPACE_SIZE_LIMITS;
|
|
13530
13623
|
exports.WorkspaceElementSpecs = WorkspaceElementSpecs;
|
|
13531
13624
|
exports.WorkspaceLimitsSchema = WorkspaceLimitsSchema;
|
|
13625
|
+
exports.WorkspacePublicKey = WorkspacePublicKey;
|
|
13532
13626
|
exports.__resolveValue = __resolveValue;
|
|
13533
13627
|
exports.addRequiredFieldsToSchema = addRequiredFieldsToSchema;
|
|
13534
13628
|
exports.addUdmFallbackFields = addUdmFallbackFields;
|
|
@@ -13568,6 +13662,7 @@ exports.getDataCollectionUpdateFields = getDataCollectionUpdateFields;
|
|
|
13568
13662
|
exports.getDataLocationMethodPath = getDataLocationMethodPath;
|
|
13569
13663
|
exports.getDefaultMembraneConfigLoader = getDefaultMembraneConfigLoader;
|
|
13570
13664
|
exports.getDownstreamNodeKeys = getDownstreamNodeKeys;
|
|
13665
|
+
exports.getElementSelector = getElementSelector;
|
|
13571
13666
|
exports.getErrorFromData = getErrorFromData;
|
|
13572
13667
|
exports.getEventMethodFileKey = getEventMethodFileKey;
|
|
13573
13668
|
exports.getFilterFieldValuesByLocator = getFilterFieldValuesByLocator;
|