@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.browser.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');
|
|
@@ -46,14 +46,14 @@ exports.ConcurrencyErrorKey = void 0;
|
|
|
46
46
|
(function (ConcurrencyErrorKey) {
|
|
47
47
|
ConcurrencyErrorKey["LOCK_TIMEOUT"] = "lock_timeout";
|
|
48
48
|
})(exports.ConcurrencyErrorKey || (exports.ConcurrencyErrorKey = {}));
|
|
49
|
-
const ErrorDataSchema =
|
|
50
|
-
type:
|
|
51
|
-
key:
|
|
52
|
-
message:
|
|
53
|
-
data:
|
|
54
|
-
stack:
|
|
55
|
-
causedByError:
|
|
56
|
-
logs:
|
|
49
|
+
const ErrorDataSchema = z.z.lazy(() => z.z.object({
|
|
50
|
+
type: z.z.enum(exports.ErrorType).optional(),
|
|
51
|
+
key: z.z.string().optional(),
|
|
52
|
+
message: z.z.string(),
|
|
53
|
+
data: z.z.any().optional(),
|
|
54
|
+
stack: z.z.any().optional(),
|
|
55
|
+
causedByError: z.z.lazy(() => ErrorDataSchema).optional(),
|
|
56
|
+
logs: z.z.array(z.z.any()).optional(),
|
|
57
57
|
}));
|
|
58
58
|
function isMembraneError(error) {
|
|
59
59
|
return error && error.isMembraneError;
|
|
@@ -184,6 +184,7 @@ class InsufficientCreditsError extends MembraneError {
|
|
|
184
184
|
this.data.type = exports.ErrorType.INSUFFICIENT_CREDIT;
|
|
185
185
|
}
|
|
186
186
|
}
|
|
187
|
+
const IntegrationAppError = MembraneError;
|
|
187
188
|
|
|
188
189
|
exports.DataBuilderFormulaType = void 0;
|
|
189
190
|
(function (DataBuilderFormulaType) {
|
|
@@ -1320,41 +1321,41 @@ function createSchemaForObject(obj) {
|
|
|
1320
1321
|
return schema;
|
|
1321
1322
|
}
|
|
1322
1323
|
|
|
1323
|
-
const DataSchema =
|
|
1324
|
+
const DataSchema = z.z.lazy(() => z.z
|
|
1324
1325
|
.object({
|
|
1325
|
-
title:
|
|
1326
|
-
description:
|
|
1327
|
-
type:
|
|
1328
|
-
format:
|
|
1329
|
-
properties:
|
|
1326
|
+
title: z.z.string().optional(),
|
|
1327
|
+
description: z.z.string().optional(),
|
|
1328
|
+
type: z.z.union([z.z.string(), z.z.array(z.z.string())]).optional(),
|
|
1329
|
+
format: z.z.string().optional(),
|
|
1330
|
+
properties: z.z.record(z.z.string(), DataSchema).optional(),
|
|
1330
1331
|
items: DataSchema.optional(),
|
|
1331
|
-
additionalProperties:
|
|
1332
|
-
enum:
|
|
1333
|
-
referenceRecords:
|
|
1334
|
-
referenceCollection:
|
|
1332
|
+
additionalProperties: z.z.union([z.z.boolean(), DataSchema]).optional(),
|
|
1333
|
+
enum: z.z.array(z.z.string()).optional(),
|
|
1334
|
+
referenceRecords: z.z.array(z.z.any()).optional(),
|
|
1335
|
+
referenceCollection: z.z
|
|
1335
1336
|
.object({
|
|
1336
|
-
key:
|
|
1337
|
-
parameters:
|
|
1337
|
+
key: z.z.any().optional(),
|
|
1338
|
+
parameters: z.z.record(z.z.string(), z.z.any()).optional(),
|
|
1338
1339
|
})
|
|
1339
1340
|
.optional(),
|
|
1340
|
-
referenceUdm:
|
|
1341
|
-
default:
|
|
1342
|
-
allowCustom:
|
|
1343
|
-
$ref:
|
|
1344
|
-
required:
|
|
1345
|
-
minLength:
|
|
1346
|
-
maxLength:
|
|
1347
|
-
minimum:
|
|
1348
|
-
maximum:
|
|
1349
|
-
maxItems:
|
|
1350
|
-
readOnly:
|
|
1351
|
-
writeOnly:
|
|
1352
|
-
examples:
|
|
1353
|
-
anyOf:
|
|
1354
|
-
isImplied:
|
|
1355
|
-
isSensitive:
|
|
1356
|
-
referenceCollectionPath:
|
|
1357
|
-
referenceCollectionUri:
|
|
1341
|
+
referenceUdm: z.z.string().optional(),
|
|
1342
|
+
default: z.z.any().optional(),
|
|
1343
|
+
allowCustom: z.z.boolean().optional(),
|
|
1344
|
+
$ref: z.z.string().optional(),
|
|
1345
|
+
required: z.z.array(z.z.string()).optional(),
|
|
1346
|
+
minLength: z.z.number().optional(),
|
|
1347
|
+
maxLength: z.z.number().optional(),
|
|
1348
|
+
minimum: z.z.number().optional(),
|
|
1349
|
+
maximum: z.z.number().optional(),
|
|
1350
|
+
maxItems: z.z.number().optional(),
|
|
1351
|
+
readOnly: z.z.boolean().optional(),
|
|
1352
|
+
writeOnly: z.z.boolean().optional(),
|
|
1353
|
+
examples: z.z.array(z.z.any()).optional(),
|
|
1354
|
+
anyOf: z.z.array(DataSchema).optional(),
|
|
1355
|
+
isImplied: z.z.boolean().optional(),
|
|
1356
|
+
isSensitive: z.z.boolean().optional(),
|
|
1357
|
+
referenceCollectionPath: z.z.string().optional(),
|
|
1358
|
+
referenceCollectionUri: z.z.string().optional(),
|
|
1358
1359
|
})
|
|
1359
1360
|
.passthrough());
|
|
1360
1361
|
|
|
@@ -3377,7 +3378,7 @@ function getFormula(value) {
|
|
|
3377
3378
|
return undefined;
|
|
3378
3379
|
}
|
|
3379
3380
|
|
|
3380
|
-
const zodBooleanCoercion = () =>
|
|
3381
|
+
const zodBooleanCoercion = () => z.z.preprocess((val) => {
|
|
3381
3382
|
if (typeof val === 'boolean')
|
|
3382
3383
|
return val;
|
|
3383
3384
|
if (typeof val === 'string') {
|
|
@@ -3391,27 +3392,27 @@ const zodBooleanCoercion = () => zod.z.preprocess((val) => {
|
|
|
3391
3392
|
if (typeof val === 'number')
|
|
3392
3393
|
return Boolean(val);
|
|
3393
3394
|
return Boolean(val);
|
|
3394
|
-
},
|
|
3395
|
+
}, z.z.boolean());
|
|
3395
3396
|
|
|
3396
|
-
const IncludeArchivedQuery =
|
|
3397
|
+
const IncludeArchivedQuery = z.z.object({
|
|
3397
3398
|
includeArchived: zodBooleanCoercion().optional(),
|
|
3398
3399
|
});
|
|
3399
|
-
const SearchQuery =
|
|
3400
|
-
search:
|
|
3400
|
+
const SearchQuery = z.z.object({
|
|
3401
|
+
search: z.z.string().optional(),
|
|
3401
3402
|
});
|
|
3402
|
-
const PaginationQuery =
|
|
3403
|
-
limit:
|
|
3404
|
-
cursor:
|
|
3403
|
+
const PaginationQuery = z.z.object({
|
|
3404
|
+
limit: z.z.coerce.number().int().min(1).max(1000).optional(),
|
|
3405
|
+
cursor: z.z.string().optional(),
|
|
3405
3406
|
});
|
|
3406
3407
|
const CommonListElementsQuery = SearchQuery.merge(PaginationQuery).merge(IncludeArchivedQuery);
|
|
3407
3408
|
const CommonInstancesListQuery = CommonListElementsQuery.extend({
|
|
3408
|
-
userId:
|
|
3409
|
-
instanceKey:
|
|
3409
|
+
userId: z.z.string().optional(),
|
|
3410
|
+
instanceKey: z.z.string().optional(),
|
|
3410
3411
|
});
|
|
3411
|
-
const CommonIntegrationOrConnectionQuery =
|
|
3412
|
-
connectionId:
|
|
3413
|
-
integrationId:
|
|
3414
|
-
integrationKey:
|
|
3412
|
+
const CommonIntegrationOrConnectionQuery = z.z.object({
|
|
3413
|
+
connectionId: z.z.string().optional(),
|
|
3414
|
+
integrationId: z.z.string().optional(),
|
|
3415
|
+
integrationKey: z.z.string().optional(),
|
|
3415
3416
|
});
|
|
3416
3417
|
class PaginationResponse {
|
|
3417
3418
|
}
|
|
@@ -3474,54 +3475,54 @@ exports.WorkspaceElementDependencyType = void 0;
|
|
|
3474
3475
|
WorkspaceElementDependencyType["Configuration"] = "CONFIGURATION";
|
|
3475
3476
|
WorkspaceElementDependencyType["Parent"] = "PARENT";
|
|
3476
3477
|
})(exports.WorkspaceElementDependencyType || (exports.WorkspaceElementDependencyType = {}));
|
|
3477
|
-
const BaseWorkspaceElement =
|
|
3478
|
-
id:
|
|
3479
|
-
name:
|
|
3480
|
-
});
|
|
3481
|
-
const BaseMembraneInterfaceEditableProperties =
|
|
3482
|
-
uuid:
|
|
3483
|
-
key:
|
|
3484
|
-
name:
|
|
3485
|
-
description:
|
|
3486
|
-
meta:
|
|
3487
|
-
});
|
|
3488
|
-
const BaseMembraneInterfaceReadOnlyProperties =
|
|
3489
|
-
name:
|
|
3490
|
-
state:
|
|
3491
|
-
errors:
|
|
3492
|
-
revision:
|
|
3493
|
-
createdAt:
|
|
3494
|
-
updatedAt:
|
|
3495
|
-
archivedAt:
|
|
3496
|
-
isDeactivated:
|
|
3478
|
+
const BaseWorkspaceElement = z.z.object({
|
|
3479
|
+
id: z.z.string(),
|
|
3480
|
+
name: z.z.string(),
|
|
3481
|
+
});
|
|
3482
|
+
const BaseMembraneInterfaceEditableProperties = z.z.object({
|
|
3483
|
+
uuid: z.z.string().optional(),
|
|
3484
|
+
key: z.z.string().optional(),
|
|
3485
|
+
name: z.z.string().optional(),
|
|
3486
|
+
description: z.z.string().optional(),
|
|
3487
|
+
meta: z.z.record(z.z.string(), z.z.any()).optional(),
|
|
3488
|
+
});
|
|
3489
|
+
const BaseMembraneInterfaceReadOnlyProperties = z.z.object({
|
|
3490
|
+
name: z.z.string(),
|
|
3491
|
+
state: z.z.enum(exports.WorkspaceElementState).optional(),
|
|
3492
|
+
errors: z.z.array(ErrorDataSchema).optional(),
|
|
3493
|
+
revision: z.z.string().optional(),
|
|
3494
|
+
createdAt: z.z.string().optional(),
|
|
3495
|
+
updatedAt: z.z.string().optional(),
|
|
3496
|
+
archivedAt: z.z.string().optional(),
|
|
3497
|
+
isDeactivated: z.z.boolean().optional(),
|
|
3497
3498
|
});
|
|
3498
3499
|
const BaseMembraneInterface = BaseWorkspaceElement.merge(BaseMembraneInterfaceEditableProperties).merge(BaseMembraneInterfaceReadOnlyProperties);
|
|
3499
3500
|
const BaseIntegrationLevelMembraneInterfaceEditableProperties = BaseMembraneInterfaceEditableProperties.extend({
|
|
3500
|
-
integrationId:
|
|
3501
|
-
integrationUuid:
|
|
3502
|
-
parentId:
|
|
3503
|
-
parentUuid:
|
|
3504
|
-
connectionId:
|
|
3505
|
-
instanceKey:
|
|
3501
|
+
integrationId: z.z.string().optional(),
|
|
3502
|
+
integrationUuid: z.z.string().optional(),
|
|
3503
|
+
parentId: z.z.string().optional(),
|
|
3504
|
+
parentUuid: z.z.string().optional(),
|
|
3505
|
+
connectionId: z.z.string().optional(),
|
|
3506
|
+
instanceKey: z.z.string().optional(),
|
|
3506
3507
|
});
|
|
3507
3508
|
const BaseIntegrationLevelMembraneInterfaceReadOnlyProperties = BaseMembraneInterfaceReadOnlyProperties.extend({
|
|
3508
|
-
isCustomized:
|
|
3509
|
+
isCustomized: z.z.boolean().optional(),
|
|
3509
3510
|
});
|
|
3510
3511
|
const BaseIntegrationLevelMembraneInterfaceExportProperties = BaseMembraneInterfaceEditableProperties.extend({
|
|
3511
|
-
integrationUuid:
|
|
3512
|
-
parentUuid:
|
|
3512
|
+
integrationUuid: z.z.string().optional(),
|
|
3513
|
+
parentUuid: z.z.string().optional(),
|
|
3513
3514
|
});
|
|
3514
|
-
const IntegrationLevelMembraneInterfaceSelectorQuery =
|
|
3515
|
-
layer:
|
|
3516
|
-
integrationKey:
|
|
3517
|
-
integrationId:
|
|
3518
|
-
connectionId:
|
|
3519
|
-
instanceKey:
|
|
3515
|
+
const IntegrationLevelMembraneInterfaceSelectorQuery = z.z.object({
|
|
3516
|
+
layer: z.z.enum(['universal', 'integration', 'connection']).optional(),
|
|
3517
|
+
integrationKey: z.z.string().optional(),
|
|
3518
|
+
integrationId: z.z.string().optional(),
|
|
3519
|
+
connectionId: z.z.string().optional(),
|
|
3520
|
+
instanceKey: z.z.string().optional(),
|
|
3520
3521
|
});
|
|
3521
3522
|
const FindIntegrationLevelMembraneInterfaceQuery = IntegrationLevelMembraneInterfaceSelectorQuery.extend(CommonListElementsQuery.shape).extend({
|
|
3522
|
-
parentId:
|
|
3523
|
-
universalParentId:
|
|
3524
|
-
userId:
|
|
3523
|
+
parentId: z.z.string().optional(),
|
|
3524
|
+
universalParentId: z.z.string().optional(),
|
|
3525
|
+
userId: z.z.string().optional(),
|
|
3525
3526
|
});
|
|
3526
3527
|
const BaseIntegrationLevelMembraneInterface = BaseMembraneInterface.merge(BaseIntegrationLevelMembraneInterfaceEditableProperties).merge(BaseIntegrationLevelMembraneInterfaceReadOnlyProperties);
|
|
3527
3528
|
|
|
@@ -3561,20 +3562,20 @@ exports.FieldMappingDirection = void 0;
|
|
|
3561
3562
|
FieldMappingDirection["EXPORT"] = "export";
|
|
3562
3563
|
FieldMappingDirection["BOTH"] = "both";
|
|
3563
3564
|
})(exports.FieldMappingDirection || (exports.FieldMappingDirection = {}));
|
|
3564
|
-
const FieldMappingSpecificProperties =
|
|
3565
|
-
connectionId:
|
|
3566
|
-
fieldMappingId:
|
|
3567
|
-
universalFieldMappingId:
|
|
3568
|
-
dataSourceKey:
|
|
3565
|
+
const FieldMappingSpecificProperties = z.z.object({
|
|
3566
|
+
connectionId: z.z.string().optional(),
|
|
3567
|
+
fieldMappingId: z.z.string().optional(),
|
|
3568
|
+
universalFieldMappingId: z.z.string().optional(),
|
|
3569
|
+
dataSourceKey: z.z.string().optional(),
|
|
3569
3570
|
appSchema: DataSchema.optional(),
|
|
3570
|
-
direction:
|
|
3571
|
-
defaultImportValue:
|
|
3572
|
-
defaultExportValue:
|
|
3573
|
-
importValue:
|
|
3574
|
-
exportValue:
|
|
3575
|
-
frozenImportFields:
|
|
3576
|
-
frozenExportFields:
|
|
3577
|
-
frozenUnifiedExportFields:
|
|
3571
|
+
direction: z.z.enum(exports.FieldMappingDirection).optional(),
|
|
3572
|
+
defaultImportValue: z.z.any().optional(),
|
|
3573
|
+
defaultExportValue: z.z.any().optional(),
|
|
3574
|
+
importValue: z.z.any().optional(),
|
|
3575
|
+
exportValue: z.z.any().optional(),
|
|
3576
|
+
frozenImportFields: z.z.any().optional(),
|
|
3577
|
+
frozenExportFields: z.z.any().optional(),
|
|
3578
|
+
frozenUnifiedExportFields: z.z.any().optional(),
|
|
3578
3579
|
});
|
|
3579
3580
|
const FieldMappingEditableProperties = BaseIntegrationLevelMembraneInterfaceEditableProperties.omit({
|
|
3580
3581
|
parentId: true,
|
|
@@ -3585,18 +3586,18 @@ const FieldMappingExportProperties = BaseIntegrationLevelMembraneInterfaceExport
|
|
|
3585
3586
|
universalFieldMappingId: true,
|
|
3586
3587
|
});
|
|
3587
3588
|
const FieldMappingReadOnlyProperties = BaseIntegrationLevelMembraneInterfaceReadOnlyProperties.extend({
|
|
3588
|
-
universalFieldMappingRevision:
|
|
3589
|
+
universalFieldMappingRevision: z.z.string().optional(),
|
|
3589
3590
|
});
|
|
3590
3591
|
const BaseFieldMapping = BaseMembraneInterface.merge(FieldMappingEditableProperties).merge(FieldMappingReadOnlyProperties);
|
|
3591
|
-
const FieldMappingUnitConfig =
|
|
3592
|
-
key:
|
|
3593
|
-
input:
|
|
3594
|
-
includeRawFields:
|
|
3595
|
-
importValue:
|
|
3596
|
-
exportValue:
|
|
3597
|
-
default:
|
|
3598
|
-
defaultUnifiedValue:
|
|
3599
|
-
defaultValue:
|
|
3592
|
+
const FieldMappingUnitConfig = z.z.object({
|
|
3593
|
+
key: z.z.string().optional(),
|
|
3594
|
+
input: z.z.any().optional(),
|
|
3595
|
+
includeRawFields: z.z.any().optional(),
|
|
3596
|
+
importValue: z.z.any().optional(),
|
|
3597
|
+
exportValue: z.z.any().optional(),
|
|
3598
|
+
default: z.z.any().optional(),
|
|
3599
|
+
defaultUnifiedValue: z.z.any().optional(),
|
|
3600
|
+
defaultValue: z.z.any().optional(),
|
|
3600
3601
|
appSchema: DataSchema.optional(),
|
|
3601
3602
|
});
|
|
3602
3603
|
|
|
@@ -3702,18 +3703,18 @@ exports.ActionDependencyType = void 0;
|
|
|
3702
3703
|
ActionDependencyType["FieldMapping"] = "FieldMapping";
|
|
3703
3704
|
ActionDependencyType["DataSource"] = "DataSource";
|
|
3704
3705
|
})(exports.ActionDependencyType || (exports.ActionDependencyType = {}));
|
|
3705
|
-
const ActionDependency =
|
|
3706
|
-
type:
|
|
3707
|
-
key:
|
|
3708
|
-
element:
|
|
3709
|
-
});
|
|
3710
|
-
const ActionSpecificProperties =
|
|
3711
|
-
connectionId:
|
|
3712
|
-
instanceKey:
|
|
3706
|
+
const ActionDependency = z.z.object({
|
|
3707
|
+
type: z.z.enum(exports.ActionDependencyType),
|
|
3708
|
+
key: z.z.string(),
|
|
3709
|
+
element: z.z.any().optional(),
|
|
3710
|
+
});
|
|
3711
|
+
const ActionSpecificProperties = z.z.object({
|
|
3712
|
+
connectionId: z.z.string().optional(),
|
|
3713
|
+
instanceKey: z.z.string().optional(),
|
|
3713
3714
|
inputSchema: DataSchema.optional(),
|
|
3714
|
-
type:
|
|
3715
|
-
config:
|
|
3716
|
-
outputMapping:
|
|
3715
|
+
type: z.z.enum(exports.ActionType).optional(),
|
|
3716
|
+
config: z.z.object({}).loose().optional(),
|
|
3717
|
+
outputMapping: z.z.any().optional(),
|
|
3717
3718
|
customOutputSchema: DataSchema.optional(),
|
|
3718
3719
|
});
|
|
3719
3720
|
const ActionEditableProperties = BaseIntegrationLevelMembraneInterfaceEditableProperties.extend(ActionSpecificProperties.shape);
|
|
@@ -3721,40 +3722,40 @@ const ActionExportProperties = BaseIntegrationLevelMembraneInterfaceExportProper
|
|
|
3721
3722
|
connectionId: true,
|
|
3722
3723
|
});
|
|
3723
3724
|
const ActionReadOnlyProperties = BaseIntegrationLevelMembraneInterfaceReadOnlyProperties.extend({
|
|
3724
|
-
universalParentId:
|
|
3725
|
-
userId:
|
|
3726
|
-
outputSchema:
|
|
3725
|
+
universalParentId: z.z.string().optional(),
|
|
3726
|
+
userId: z.z.string().optional(),
|
|
3727
|
+
outputSchema: z.z.any().optional(),
|
|
3727
3728
|
});
|
|
3728
3729
|
const BaseAction = BaseMembraneInterface.merge(ActionEditableProperties).merge(ActionReadOnlyProperties);
|
|
3729
3730
|
const BaseActionInstance = BaseAction;
|
|
3730
3731
|
|
|
3731
|
-
const ConnectionRequest =
|
|
3732
|
-
path:
|
|
3733
|
-
method:
|
|
3734
|
-
pathParameters:
|
|
3735
|
-
headers:
|
|
3736
|
-
query:
|
|
3737
|
-
data:
|
|
3732
|
+
const ConnectionRequest = z.z.object({
|
|
3733
|
+
path: z.z.any(),
|
|
3734
|
+
method: z.z.enum(['GET', 'POST', 'PUT', 'PATCH', 'DELETE']).optional(),
|
|
3735
|
+
pathParameters: z.z.record(z.z.string(), z.z.string()).optional(),
|
|
3736
|
+
headers: z.z.record(z.z.string(), z.z.string()).optional(),
|
|
3737
|
+
query: z.z.record(z.z.string(), z.z.string()).optional(),
|
|
3738
|
+
data: z.z.any().optional(),
|
|
3738
3739
|
});
|
|
3739
3740
|
const BaseConnection = BaseWorkspaceElement.extend({
|
|
3740
|
-
name:
|
|
3741
|
-
userId:
|
|
3742
|
-
isTest:
|
|
3743
|
-
disconnected:
|
|
3744
|
-
isDefunct:
|
|
3745
|
-
state:
|
|
3741
|
+
name: z.z.string(),
|
|
3742
|
+
userId: z.z.string(),
|
|
3743
|
+
isTest: z.z.boolean().optional(),
|
|
3744
|
+
disconnected: z.z.boolean().optional(),
|
|
3745
|
+
isDefunct: z.z.boolean().optional(),
|
|
3746
|
+
state: z.z.enum(exports.WorkspaceElementState).optional(),
|
|
3746
3747
|
error: ErrorDataSchema.optional(),
|
|
3747
|
-
integrationId:
|
|
3748
|
-
authOptionKey:
|
|
3749
|
-
createdAt:
|
|
3750
|
-
updatedAt:
|
|
3751
|
-
lastActiveAt:
|
|
3752
|
-
nextCredentialsRefreshAt:
|
|
3753
|
-
nextRetryTimestamp:
|
|
3754
|
-
retryAttempts:
|
|
3755
|
-
archivedAt:
|
|
3756
|
-
isDeactivated:
|
|
3757
|
-
meta:
|
|
3748
|
+
integrationId: z.z.string(),
|
|
3749
|
+
authOptionKey: z.z.string().optional(),
|
|
3750
|
+
createdAt: z.z.string(),
|
|
3751
|
+
updatedAt: z.z.string(),
|
|
3752
|
+
lastActiveAt: z.z.string().optional(),
|
|
3753
|
+
nextCredentialsRefreshAt: z.z.string().optional(),
|
|
3754
|
+
nextRetryTimestamp: z.z.string().optional(),
|
|
3755
|
+
retryAttempts: z.z.number().optional(),
|
|
3756
|
+
archivedAt: z.z.string().optional(),
|
|
3757
|
+
isDeactivated: z.z.boolean().optional(),
|
|
3758
|
+
meta: z.z.record(z.z.string(), z.z.any()).optional(),
|
|
3758
3759
|
});
|
|
3759
3760
|
class ConnectionSpec {
|
|
3760
3761
|
constructor(opts) {
|
|
@@ -4079,27 +4080,27 @@ exports.ConnectorStatus = void 0;
|
|
|
4079
4080
|
ConnectorStatus["beta"] = "beta";
|
|
4080
4081
|
ConnectorStatus["planned"] = "planned";
|
|
4081
4082
|
})(exports.ConnectorStatus || (exports.ConnectorStatus = {}));
|
|
4082
|
-
const MinimalConnector =
|
|
4083
|
-
id:
|
|
4084
|
-
key:
|
|
4085
|
-
name:
|
|
4086
|
-
logoUri:
|
|
4087
|
-
});
|
|
4088
|
-
|
|
4089
|
-
const DataRecordSchema =
|
|
4090
|
-
id:
|
|
4091
|
-
name:
|
|
4092
|
-
uri:
|
|
4093
|
-
iconUri:
|
|
4094
|
-
fields:
|
|
4095
|
-
udm:
|
|
4096
|
-
unifiedFields:
|
|
4097
|
-
rawFields:
|
|
4098
|
-
createdTime:
|
|
4099
|
-
updatedTime:
|
|
4100
|
-
deletedTime:
|
|
4101
|
-
createdById:
|
|
4102
|
-
updatedById:
|
|
4083
|
+
const MinimalConnector = z.z.object({
|
|
4084
|
+
id: z.z.string(),
|
|
4085
|
+
key: z.z.string(),
|
|
4086
|
+
name: z.z.string(),
|
|
4087
|
+
logoUri: z.z.string(),
|
|
4088
|
+
});
|
|
4089
|
+
|
|
4090
|
+
const DataRecordSchema = z.z.object({
|
|
4091
|
+
id: z.z.string(),
|
|
4092
|
+
name: z.z.string().optional(),
|
|
4093
|
+
uri: z.z.string().optional(),
|
|
4094
|
+
iconUri: z.z.string().optional(),
|
|
4095
|
+
fields: z.z.record(z.z.string(), z.z.any()).optional(),
|
|
4096
|
+
udm: z.z.string().optional(),
|
|
4097
|
+
unifiedFields: z.z.record(z.z.string(), z.z.any()).optional(),
|
|
4098
|
+
rawFields: z.z.record(z.z.string(), z.z.any()).optional(),
|
|
4099
|
+
createdTime: z.z.string().optional(),
|
|
4100
|
+
updatedTime: z.z.string().optional(),
|
|
4101
|
+
deletedTime: z.z.string().optional(),
|
|
4102
|
+
createdById: z.z.string().optional(),
|
|
4103
|
+
updatedById: z.z.string().optional(),
|
|
4103
4104
|
});
|
|
4104
4105
|
exports.DataCollectionEventType = void 0;
|
|
4105
4106
|
(function (DataCollectionEventType) {
|
|
@@ -8236,40 +8237,40 @@ const DataLocationTypeCollection = {
|
|
|
8236
8237
|
};
|
|
8237
8238
|
const ConnectorDataCollectionMethodKeys = Object.keys(DataLocationTypeCollection.methods);
|
|
8238
8239
|
|
|
8239
|
-
const ApiRequestSpec =
|
|
8240
|
-
path:
|
|
8241
|
-
method:
|
|
8240
|
+
const ApiRequestSpec = z.z.object({
|
|
8241
|
+
path: z.z.unknown(),
|
|
8242
|
+
method: z.z.unknown(),
|
|
8242
8243
|
});
|
|
8243
|
-
const DataCollectionMethodSpec =
|
|
8244
|
-
apiRequests:
|
|
8244
|
+
const DataCollectionMethodSpec = z.z.object({
|
|
8245
|
+
apiRequests: z.z.array(ApiRequestSpec).optional(),
|
|
8245
8246
|
});
|
|
8246
8247
|
const DataCollectionListSpec = DataCollectionMethodSpec.extend({
|
|
8247
|
-
filterFields:
|
|
8248
|
+
filterFields: z.z.array(z.z.string()).optional(),
|
|
8248
8249
|
});
|
|
8249
8250
|
const DataCollectionSearchSpec = DataCollectionMethodSpec.extend({});
|
|
8250
8251
|
const DataCollectionMatchSpec = DataCollectionMethodSpec.extend({
|
|
8251
|
-
fields:
|
|
8252
|
+
fields: z.z.array(z.z.string()).optional(),
|
|
8252
8253
|
});
|
|
8253
8254
|
const DataCollectionFindByIdSpec = DataCollectionMethodSpec.extend({});
|
|
8254
8255
|
const DataCollectionCreateSpec = DataCollectionMethodSpec.extend({
|
|
8255
|
-
fields:
|
|
8256
|
-
requiredFields:
|
|
8257
|
-
excludedFields:
|
|
8256
|
+
fields: z.z.array(z.z.string()).optional(),
|
|
8257
|
+
requiredFields: z.z.array(z.z.string()).optional(),
|
|
8258
|
+
excludedFields: z.z.array(z.z.string()).optional(),
|
|
8258
8259
|
});
|
|
8259
8260
|
const DataCollectionUpdateSpec = DataCollectionMethodSpec.extend({
|
|
8260
|
-
fields:
|
|
8261
|
-
excludedFields:
|
|
8261
|
+
fields: z.z.array(z.z.string()).optional(),
|
|
8262
|
+
excludedFields: z.z.array(z.z.string()).optional(),
|
|
8262
8263
|
});
|
|
8263
8264
|
const DataCollectionDeleteSpec = DataCollectionMethodSpec.extend({});
|
|
8264
8265
|
const DataCollectionFindSpec = DataCollectionMethodSpec.extend({
|
|
8265
|
-
queryFields:
|
|
8266
|
+
queryFields: z.z.array(z.z.string()).optional(),
|
|
8266
8267
|
});
|
|
8267
|
-
const DataCollectionEventTypeSpec =
|
|
8268
|
-
type:
|
|
8269
|
-
isFullScan:
|
|
8270
|
-
isIdOnly:
|
|
8268
|
+
const DataCollectionEventTypeSpec = z.z.object({
|
|
8269
|
+
type: z.z.enum(['push', 'pull']),
|
|
8270
|
+
isFullScan: z.z.boolean().optional(),
|
|
8271
|
+
isIdOnly: z.z.boolean().optional(),
|
|
8271
8272
|
});
|
|
8272
|
-
const DataCollectionEventsSpec =
|
|
8273
|
+
const DataCollectionEventsSpec = z.z
|
|
8273
8274
|
.object({
|
|
8274
8275
|
created: DataCollectionEventTypeSpec.optional(),
|
|
8275
8276
|
updated: DataCollectionEventTypeSpec.optional(),
|
|
@@ -8277,16 +8278,16 @@ const DataCollectionEventsSpec = zod.z
|
|
|
8277
8278
|
all: DataCollectionEventTypeSpec.optional(),
|
|
8278
8279
|
})
|
|
8279
8280
|
.catchall(DataCollectionEventTypeSpec);
|
|
8280
|
-
const DataCollectionUdmSpec =
|
|
8281
|
-
fields:
|
|
8282
|
-
extract:
|
|
8283
|
-
parse:
|
|
8284
|
-
});
|
|
8285
|
-
const DataCollectionUdmsSpec =
|
|
8286
|
-
const DataCollectionSpec =
|
|
8287
|
-
type:
|
|
8288
|
-
key:
|
|
8289
|
-
name:
|
|
8281
|
+
const DataCollectionUdmSpec = z.z.object({
|
|
8282
|
+
fields: z.z.array(z.z.string()).optional(),
|
|
8283
|
+
extract: z.z.record(z.z.string(), z.z.any()).optional(),
|
|
8284
|
+
parse: z.z.record(z.z.string(), z.z.any()).optional(),
|
|
8285
|
+
});
|
|
8286
|
+
const DataCollectionUdmsSpec = z.z.record(z.z.string(), DataCollectionUdmSpec);
|
|
8287
|
+
const DataCollectionSpec = z.z.object({
|
|
8288
|
+
type: z.z.literal('collection'),
|
|
8289
|
+
key: z.z.string().optional(),
|
|
8290
|
+
name: z.z.string(),
|
|
8290
8291
|
parametersSchema: DataSchema.optional(),
|
|
8291
8292
|
fieldsSchema: DataSchema.optional(),
|
|
8292
8293
|
list: DataCollectionListSpec.optional(),
|
|
@@ -8297,73 +8298,73 @@ const DataCollectionSpec = zod.z.object({
|
|
|
8297
8298
|
update: DataCollectionUpdateSpec.optional(),
|
|
8298
8299
|
delete: DataCollectionDeleteSpec.optional(),
|
|
8299
8300
|
events: DataCollectionEventsSpec.optional(),
|
|
8300
|
-
customFields:
|
|
8301
|
+
customFields: z.z.boolean().optional(),
|
|
8301
8302
|
udm: DataCollectionUdmsSpec.optional(),
|
|
8302
8303
|
find: DataCollectionFindSpec.optional(),
|
|
8303
8304
|
});
|
|
8304
|
-
const DataCollectionMethodRequest =
|
|
8305
|
-
parameters:
|
|
8305
|
+
const DataCollectionMethodRequest = z.z.object({
|
|
8306
|
+
parameters: z.z.record(z.z.string(), z.z.any()).optional(),
|
|
8306
8307
|
});
|
|
8307
|
-
const DataCollectionFindRequest =
|
|
8308
|
-
query:
|
|
8309
|
-
cursor:
|
|
8308
|
+
const DataCollectionFindRequest = z.z.object({
|
|
8309
|
+
query: z.z.any().optional(),
|
|
8310
|
+
cursor: z.z.string().optional(),
|
|
8310
8311
|
});
|
|
8311
|
-
const DataCollectionFindResponse =
|
|
8312
|
-
records:
|
|
8313
|
-
cursor:
|
|
8312
|
+
const DataCollectionFindResponse = z.z.object({
|
|
8313
|
+
records: z.z.array(DataRecordSchema),
|
|
8314
|
+
cursor: z.z.string().optional(),
|
|
8314
8315
|
});
|
|
8315
8316
|
const DataCollectionListRequest = DataCollectionMethodRequest.extend({
|
|
8316
|
-
filter:
|
|
8317
|
-
unifiedFilter:
|
|
8318
|
-
cursor:
|
|
8317
|
+
filter: z.z.any().optional(),
|
|
8318
|
+
unifiedFilter: z.z.any().optional(),
|
|
8319
|
+
cursor: z.z.string().optional(),
|
|
8319
8320
|
});
|
|
8320
|
-
const DataCollectionListResponseDrilldown =
|
|
8321
|
-
parameters:
|
|
8322
|
-
filter:
|
|
8321
|
+
const DataCollectionListResponseDrilldown = z.z.object({
|
|
8322
|
+
parameters: z.z.record(z.z.string(), z.z.any()).optional(),
|
|
8323
|
+
filter: z.z.record(z.z.string(), z.z.any()).optional(),
|
|
8323
8324
|
});
|
|
8324
|
-
const DataCollectionListResponse =
|
|
8325
|
-
records:
|
|
8326
|
-
drilldowns:
|
|
8327
|
-
cursor:
|
|
8325
|
+
const DataCollectionListResponse = z.z.object({
|
|
8326
|
+
records: z.z.array(DataRecordSchema),
|
|
8327
|
+
drilldowns: z.z.array(DataCollectionListResponseDrilldown).optional(),
|
|
8328
|
+
cursor: z.z.string().optional(),
|
|
8328
8329
|
});
|
|
8329
8330
|
const DataCollectionSearchRequest = DataCollectionMethodRequest.extend({
|
|
8330
|
-
query:
|
|
8331
|
-
cursor:
|
|
8331
|
+
query: z.z.string(),
|
|
8332
|
+
cursor: z.z.string().optional(),
|
|
8332
8333
|
});
|
|
8333
|
-
const DataCollectionSearchResponse =
|
|
8334
|
-
records:
|
|
8335
|
-
cursor:
|
|
8334
|
+
const DataCollectionSearchResponse = z.z.object({
|
|
8335
|
+
records: z.z.array(DataRecordSchema),
|
|
8336
|
+
cursor: z.z.string().optional(),
|
|
8336
8337
|
});
|
|
8337
8338
|
const DataCollectionFindByIdRequest = DataCollectionMethodRequest.extend({
|
|
8338
|
-
id:
|
|
8339
|
-
udm:
|
|
8339
|
+
id: z.z.string(),
|
|
8340
|
+
udm: z.z.string().optional(),
|
|
8340
8341
|
});
|
|
8341
|
-
const DataCollectionFindByIdResponse =
|
|
8342
|
+
const DataCollectionFindByIdResponse = z.z.object({
|
|
8342
8343
|
record: DataRecordSchema,
|
|
8343
8344
|
});
|
|
8344
8345
|
const DataCollectionMatchRequest = DataCollectionMethodRequest.extend({
|
|
8345
|
-
query:
|
|
8346
|
+
query: z.z.record(z.z.string(), z.z.any()),
|
|
8346
8347
|
});
|
|
8347
|
-
const DataCollectionMatchResponse =
|
|
8348
|
+
const DataCollectionMatchResponse = z.z.object({
|
|
8348
8349
|
record: DataRecordSchema.optional(),
|
|
8349
8350
|
});
|
|
8350
8351
|
const DataCollectionCreateRequest = DataCollectionMethodRequest.extend({
|
|
8351
|
-
fields:
|
|
8352
|
+
fields: z.z.record(z.z.string(), z.z.any()),
|
|
8352
8353
|
});
|
|
8353
|
-
const DataCollectionCreateResponse =
|
|
8354
|
-
id:
|
|
8354
|
+
const DataCollectionCreateResponse = z.z.object({
|
|
8355
|
+
id: z.z.string(),
|
|
8355
8356
|
});
|
|
8356
8357
|
const DataCollectionUpdateRequest = DataCollectionMethodRequest.extend({
|
|
8357
|
-
id:
|
|
8358
|
-
fields:
|
|
8358
|
+
id: z.z.string(),
|
|
8359
|
+
fields: z.z.record(z.z.string(), z.z.any()),
|
|
8359
8360
|
});
|
|
8360
|
-
const DataCollectionUpdateResponse =
|
|
8361
|
-
id:
|
|
8361
|
+
const DataCollectionUpdateResponse = z.z.object({
|
|
8362
|
+
id: z.z.string(),
|
|
8362
8363
|
});
|
|
8363
8364
|
const DataCollectionDeleteRequest = DataCollectionMethodRequest.extend({
|
|
8364
|
-
id:
|
|
8365
|
+
id: z.z.string(),
|
|
8365
8366
|
});
|
|
8366
|
-
const DataCollectionDeleteResponse =
|
|
8367
|
+
const DataCollectionDeleteResponse = z.z.object({});
|
|
8367
8368
|
const ConnectorDataLocationTypes = {
|
|
8368
8369
|
collection: DataLocationTypeCollection,
|
|
8369
8370
|
};
|
|
@@ -8430,22 +8431,22 @@ const DEFAULT_PULL_UPDATES_INTERVAL_SECONDS = 60 * 5;
|
|
|
8430
8431
|
const DEFAULT_FULL_SYNC_INTERVAL_SECONDS = 60 * 60 * 3;
|
|
8431
8432
|
const MIN_FULL_SYNC_INTERVAL_SECONDS = 1 * 60;
|
|
8432
8433
|
const MIN_PULL_UPDATES_INTERVAL_SECONDS = 1 * 60;
|
|
8433
|
-
const DataSourceSpecificProperties =
|
|
8434
|
-
connectionId:
|
|
8435
|
-
dataSourceId:
|
|
8436
|
-
universalDataSourceId:
|
|
8437
|
-
udm:
|
|
8438
|
-
pullUpdatesIntervalSeconds:
|
|
8439
|
-
fullSyncIntervalSeconds:
|
|
8440
|
-
collectionKey:
|
|
8441
|
-
collectionParameters:
|
|
8434
|
+
const DataSourceSpecificProperties = z.z.object({
|
|
8435
|
+
connectionId: z.z.string().optional(),
|
|
8436
|
+
dataSourceId: z.z.string().optional(),
|
|
8437
|
+
universalDataSourceId: z.z.string().optional(),
|
|
8438
|
+
udm: z.z.string().optional(),
|
|
8439
|
+
pullUpdatesIntervalSeconds: z.z.number().optional(),
|
|
8440
|
+
fullSyncIntervalSeconds: z.z.number().optional(),
|
|
8441
|
+
collectionKey: z.z.string().optional(),
|
|
8442
|
+
collectionParameters: z.z.any().optional(),
|
|
8442
8443
|
});
|
|
8443
8444
|
const DataSourceEditableProperties = BaseIntegrationLevelMembraneInterfaceEditableProperties.omit({
|
|
8444
8445
|
parentId: true,
|
|
8445
8446
|
}).extend(DataSourceSpecificProperties.shape);
|
|
8446
8447
|
const BackwardCompatibleDataSourceEditableProperties = DataSourceEditableProperties.extend({
|
|
8447
|
-
path:
|
|
8448
|
-
defaultPath:
|
|
8448
|
+
path: z.z.string().optional().meta({ deprecated: true }),
|
|
8449
|
+
defaultPath: z.z.string().optional().meta({ deprecated: true }),
|
|
8449
8450
|
});
|
|
8450
8451
|
const DataSourceExportProperties = BaseIntegrationLevelMembraneInterfaceExportProperties.extend(DataSourceSpecificProperties.shape).omit({
|
|
8451
8452
|
connectionId: true,
|
|
@@ -8453,39 +8454,39 @@ const DataSourceExportProperties = BaseIntegrationLevelMembraneInterfaceExportPr
|
|
|
8453
8454
|
universalDataSourceId: true,
|
|
8454
8455
|
});
|
|
8455
8456
|
const DataSourceReadOnlyProperties = BaseIntegrationLevelMembraneInterfaceReadOnlyProperties.extend({
|
|
8456
|
-
universalDataSourceRevision:
|
|
8457
|
+
universalDataSourceRevision: z.z.string().optional(),
|
|
8457
8458
|
});
|
|
8458
8459
|
const BaseDataSource = BaseMembraneInterface.merge(DataSourceEditableProperties).merge(DataSourceReadOnlyProperties);
|
|
8459
|
-
const DataSourceUnitConfig =
|
|
8460
|
-
key:
|
|
8461
|
-
collectionKey:
|
|
8462
|
-
collectionParameters:
|
|
8463
|
-
udm:
|
|
8464
|
-
pullUpdatesIntervalSeconds:
|
|
8465
|
-
fullSyncIntervalSeconds:
|
|
8466
|
-
path:
|
|
8467
|
-
defaultPath:
|
|
8460
|
+
const DataSourceUnitConfig = z.z.object({
|
|
8461
|
+
key: z.z.any().optional(),
|
|
8462
|
+
collectionKey: z.z.any().optional(),
|
|
8463
|
+
collectionParameters: z.z.any().optional(),
|
|
8464
|
+
udm: z.z.any().optional(),
|
|
8465
|
+
pullUpdatesIntervalSeconds: z.z.number().optional(),
|
|
8466
|
+
fullSyncIntervalSeconds: z.z.number().optional(),
|
|
8467
|
+
path: z.z.any().optional(),
|
|
8468
|
+
defaultPath: z.z.any().optional(),
|
|
8468
8469
|
});
|
|
8469
8470
|
|
|
8470
8471
|
const BaseDataSourceInstance = BaseMembraneInterface.extend({
|
|
8471
|
-
userId:
|
|
8472
|
-
revision:
|
|
8473
|
-
dataSourceRevision:
|
|
8474
|
-
dataSourceId:
|
|
8475
|
-
universalDataSourceId:
|
|
8476
|
-
udm:
|
|
8477
|
-
connectionId:
|
|
8478
|
-
integrationId:
|
|
8479
|
-
instanceKey:
|
|
8480
|
-
collectionKey:
|
|
8481
|
-
collectionParameters:
|
|
8482
|
-
defaultCollectionKey:
|
|
8483
|
-
defaultCollectionParameters:
|
|
8472
|
+
userId: z.z.string(),
|
|
8473
|
+
revision: z.z.string(),
|
|
8474
|
+
dataSourceRevision: z.z.string().optional(),
|
|
8475
|
+
dataSourceId: z.z.string().optional(),
|
|
8476
|
+
universalDataSourceId: z.z.string().optional(),
|
|
8477
|
+
udm: z.z.string().optional(),
|
|
8478
|
+
connectionId: z.z.string(),
|
|
8479
|
+
integrationId: z.z.string(),
|
|
8480
|
+
instanceKey: z.z.string().optional(),
|
|
8481
|
+
collectionKey: z.z.string().optional(),
|
|
8482
|
+
collectionParameters: z.z.any().optional(),
|
|
8483
|
+
defaultCollectionKey: z.z.string().optional(),
|
|
8484
|
+
defaultCollectionParameters: z.z.any().optional(),
|
|
8484
8485
|
collectionSpec: DataCollectionSpec.optional(),
|
|
8485
|
-
isCustomized:
|
|
8486
|
-
errors:
|
|
8487
|
-
pullUpdatesIntervalSeconds:
|
|
8488
|
-
fullSyncIntervalSeconds:
|
|
8486
|
+
isCustomized: z.z.boolean().optional(),
|
|
8487
|
+
errors: z.z.array(ErrorDataSchema).optional(),
|
|
8488
|
+
pullUpdatesIntervalSeconds: z.z.number().optional(),
|
|
8489
|
+
fullSyncIntervalSeconds: z.z.number().optional(),
|
|
8489
8490
|
});
|
|
8490
8491
|
|
|
8491
8492
|
exports.ExternalEventType = void 0;
|
|
@@ -8500,13 +8501,13 @@ exports.IncomingWebhooksState = void 0;
|
|
|
8500
8501
|
IncomingWebhooksState["SUCCESS"] = "success";
|
|
8501
8502
|
IncomingWebhooksState["ERROR"] = "error";
|
|
8502
8503
|
})(exports.IncomingWebhooksState || (exports.IncomingWebhooksState = {}));
|
|
8503
|
-
const ExternalEventUnitConfig =
|
|
8504
|
-
type:
|
|
8504
|
+
const ExternalEventUnitConfig = z.z.object({
|
|
8505
|
+
type: z.z.enum(exports.ExternalEventType),
|
|
8505
8506
|
dataSource: DataSourceUnitConfig.optional(),
|
|
8506
|
-
eventKey:
|
|
8507
|
-
eventParameters:
|
|
8507
|
+
eventKey: z.z.string().optional(),
|
|
8508
|
+
eventParameters: z.z.any().optional(),
|
|
8508
8509
|
});
|
|
8509
|
-
const BaseExternalEvent =
|
|
8510
|
+
const BaseExternalEvent = z.z.object({
|
|
8510
8511
|
config: ExternalEventUnitConfig.optional(),
|
|
8511
8512
|
});
|
|
8512
8513
|
|
|
@@ -8558,31 +8559,31 @@ exports.FlowRunLaunchedByTrigger = void 0;
|
|
|
8558
8559
|
FlowRunLaunchedByTrigger["DataSourceTrigger"] = "data-source-trigger";
|
|
8559
8560
|
FlowRunLaunchedByTrigger["ExternalEvent"] = "external-event";
|
|
8560
8561
|
})(exports.FlowRunLaunchedByTrigger || (exports.FlowRunLaunchedByTrigger = {}));
|
|
8561
|
-
const FlowRunLaunchedBy =
|
|
8562
|
-
type:
|
|
8563
|
-
ids:
|
|
8564
|
-
});
|
|
8565
|
-
const FlowRunNode =
|
|
8566
|
-
state:
|
|
8567
|
-
runs:
|
|
8568
|
-
erroredRuns:
|
|
8569
|
-
outputs:
|
|
8570
|
-
});
|
|
8571
|
-
const BaseFlowRun =
|
|
8572
|
-
id:
|
|
8573
|
-
name:
|
|
8574
|
-
flowInstanceId:
|
|
8575
|
-
universalFlowId:
|
|
8576
|
-
connectionId:
|
|
8577
|
-
integrationId:
|
|
8578
|
-
startNodeKey:
|
|
8579
|
-
userId:
|
|
8580
|
-
input:
|
|
8581
|
-
state:
|
|
8582
|
-
startTime:
|
|
8583
|
-
endTime:
|
|
8584
|
-
errors:
|
|
8585
|
-
nodes:
|
|
8562
|
+
const FlowRunLaunchedBy = z.z.object({
|
|
8563
|
+
type: z.z.enum(exports.FlowRunLaunchedByTrigger),
|
|
8564
|
+
ids: z.z.array(z.z.string()).optional(),
|
|
8565
|
+
});
|
|
8566
|
+
const FlowRunNode = z.z.object({
|
|
8567
|
+
state: z.z.enum(exports.FlowRunNodeState),
|
|
8568
|
+
runs: z.z.number().optional(),
|
|
8569
|
+
erroredRuns: z.z.number().optional(),
|
|
8570
|
+
outputs: z.z.number().optional(),
|
|
8571
|
+
});
|
|
8572
|
+
const BaseFlowRun = z.z.object({
|
|
8573
|
+
id: z.z.string(),
|
|
8574
|
+
name: z.z.string().optional(),
|
|
8575
|
+
flowInstanceId: z.z.string(),
|
|
8576
|
+
universalFlowId: z.z.string().optional(),
|
|
8577
|
+
connectionId: z.z.string().optional(),
|
|
8578
|
+
integrationId: z.z.string().optional(),
|
|
8579
|
+
startNodeKey: z.z.string(),
|
|
8580
|
+
userId: z.z.string(),
|
|
8581
|
+
input: z.z.any().optional(),
|
|
8582
|
+
state: z.z.enum(exports.FlowRunState),
|
|
8583
|
+
startTime: z.z.string(),
|
|
8584
|
+
endTime: z.z.string().optional(),
|
|
8585
|
+
errors: z.z.array(ErrorDataSchema).optional(),
|
|
8586
|
+
nodes: z.z.record(z.z.string(), FlowRunNode).optional(),
|
|
8586
8587
|
launchedBy: FlowRunLaunchedBy.optional(),
|
|
8587
8588
|
});
|
|
8588
8589
|
|
|
@@ -8592,69 +8593,69 @@ exports.FlowNodeRunStatus = void 0;
|
|
|
8592
8593
|
FlowNodeRunStatus["FAILED"] = "failed";
|
|
8593
8594
|
FlowNodeRunStatus["SKIPPED"] = "skipped";
|
|
8594
8595
|
})(exports.FlowNodeRunStatus || (exports.FlowNodeRunStatus = {}));
|
|
8595
|
-
const UpstreamFlowNodeRunSchema =
|
|
8596
|
-
nodeKey:
|
|
8597
|
-
runId:
|
|
8598
|
-
outputId:
|
|
8599
|
-
});
|
|
8600
|
-
const DownstreamFlowNodeRunSchema =
|
|
8601
|
-
runId:
|
|
8602
|
-
nodeKey:
|
|
8603
|
-
});
|
|
8604
|
-
const FlowNodeRunParametersSchema =
|
|
8605
|
-
id:
|
|
8606
|
-
upstreamRuns:
|
|
8607
|
-
input:
|
|
8608
|
-
});
|
|
8609
|
-
const FlowNodeRunOutputSchema =
|
|
8610
|
-
id:
|
|
8611
|
-
data:
|
|
8612
|
-
downstreamRuns:
|
|
8613
|
-
});
|
|
8614
|
-
const FlowNodeRunResultSchema =
|
|
8615
|
-
status:
|
|
8616
|
-
logs:
|
|
8617
|
-
outputs:
|
|
8618
|
-
errors:
|
|
8596
|
+
const UpstreamFlowNodeRunSchema = z.z.object({
|
|
8597
|
+
nodeKey: z.z.string(),
|
|
8598
|
+
runId: z.z.string(),
|
|
8599
|
+
outputId: z.z.string(),
|
|
8600
|
+
});
|
|
8601
|
+
const DownstreamFlowNodeRunSchema = z.z.object({
|
|
8602
|
+
runId: z.z.string(),
|
|
8603
|
+
nodeKey: z.z.string(),
|
|
8604
|
+
});
|
|
8605
|
+
const FlowNodeRunParametersSchema = z.z.object({
|
|
8606
|
+
id: z.z.string(),
|
|
8607
|
+
upstreamRuns: z.z.array(UpstreamFlowNodeRunSchema),
|
|
8608
|
+
input: z.z.any(),
|
|
8609
|
+
});
|
|
8610
|
+
const FlowNodeRunOutputSchema = z.z.object({
|
|
8611
|
+
id: z.z.string(),
|
|
8612
|
+
data: z.z.string(),
|
|
8613
|
+
downstreamRuns: z.z.array(DownstreamFlowNodeRunSchema),
|
|
8614
|
+
});
|
|
8615
|
+
const FlowNodeRunResultSchema = z.z.object({
|
|
8616
|
+
status: z.z.enum(exports.FlowNodeRunStatus),
|
|
8617
|
+
logs: z.z.array(z.z.any()),
|
|
8618
|
+
outputs: z.z.array(FlowNodeRunOutputSchema),
|
|
8619
|
+
errors: z.z.array(ErrorDataSchema),
|
|
8619
8620
|
});
|
|
8620
8621
|
const FlowNodeRunRecordSchema = FlowNodeRunParametersSchema.merge(FlowNodeRunResultSchema);
|
|
8621
|
-
const FlowNodeRunOutputWithoutDownstreamRunsSchema =
|
|
8622
|
-
id:
|
|
8623
|
-
data:
|
|
8624
|
-
});
|
|
8625
|
-
const FlowNodeRunOutputMetadataSchema =
|
|
8626
|
-
id:
|
|
8627
|
-
downstreamRuns:
|
|
8628
|
-
});
|
|
8629
|
-
const FlowNodeRunRecordWithoutOutputsDataSchema =
|
|
8630
|
-
id:
|
|
8631
|
-
upstreamRuns:
|
|
8632
|
-
input:
|
|
8633
|
-
status:
|
|
8634
|
-
logs:
|
|
8635
|
-
outputs:
|
|
8636
|
-
errors:
|
|
8637
|
-
});
|
|
8638
|
-
|
|
8639
|
-
const FlowNodeLink =
|
|
8640
|
-
key:
|
|
8641
|
-
filter:
|
|
8642
|
-
name:
|
|
8643
|
-
});
|
|
8644
|
-
const FlowNode =
|
|
8645
|
-
type:
|
|
8646
|
-
version:
|
|
8647
|
-
name:
|
|
8648
|
-
description:
|
|
8649
|
-
config:
|
|
8650
|
-
concurrency:
|
|
8651
|
-
onError:
|
|
8652
|
-
ui:
|
|
8653
|
-
inputSchema:
|
|
8654
|
-
outputSchema:
|
|
8655
|
-
outputExample:
|
|
8656
|
-
links:
|
|
8657
|
-
isCustomized:
|
|
8622
|
+
const FlowNodeRunOutputWithoutDownstreamRunsSchema = z.z.object({
|
|
8623
|
+
id: z.z.string(),
|
|
8624
|
+
data: z.z.string(),
|
|
8625
|
+
});
|
|
8626
|
+
const FlowNodeRunOutputMetadataSchema = z.z.object({
|
|
8627
|
+
id: z.z.string(),
|
|
8628
|
+
downstreamRuns: z.z.array(DownstreamFlowNodeRunSchema),
|
|
8629
|
+
});
|
|
8630
|
+
const FlowNodeRunRecordWithoutOutputsDataSchema = z.z.object({
|
|
8631
|
+
id: z.z.string(),
|
|
8632
|
+
upstreamRuns: z.z.array(UpstreamFlowNodeRunSchema),
|
|
8633
|
+
input: z.z.any(),
|
|
8634
|
+
status: z.z.enum(exports.FlowNodeRunStatus),
|
|
8635
|
+
logs: z.z.array(z.z.any()),
|
|
8636
|
+
outputs: z.z.array(FlowNodeRunOutputMetadataSchema),
|
|
8637
|
+
errors: z.z.array(ErrorDataSchema),
|
|
8638
|
+
});
|
|
8639
|
+
|
|
8640
|
+
const FlowNodeLink = z.z.object({
|
|
8641
|
+
key: z.z.string().optional(),
|
|
8642
|
+
filter: z.z.any().optional(),
|
|
8643
|
+
name: z.z.string().optional(),
|
|
8644
|
+
});
|
|
8645
|
+
const FlowNode = z.z.object({
|
|
8646
|
+
type: z.z.string().optional(),
|
|
8647
|
+
version: z.z.number().optional(),
|
|
8648
|
+
name: z.z.string().optional(),
|
|
8649
|
+
description: z.z.string().optional(),
|
|
8650
|
+
config: z.z.any().optional(),
|
|
8651
|
+
concurrency: z.z.number().optional(),
|
|
8652
|
+
onError: z.z.enum(['stop', 'continue']).optional(),
|
|
8653
|
+
ui: z.z.any().optional(),
|
|
8654
|
+
inputSchema: z.z.any().optional(),
|
|
8655
|
+
outputSchema: z.z.any().optional(),
|
|
8656
|
+
outputExample: z.z.any().optional(),
|
|
8657
|
+
links: z.z.array(FlowNodeLink).optional(),
|
|
8658
|
+
isCustomized: z.z.boolean().optional(),
|
|
8658
8659
|
});
|
|
8659
8660
|
class FlowNodeSpec {
|
|
8660
8661
|
constructor(args) {
|
|
@@ -8929,14 +8930,14 @@ const FLOW_NODE_SPECS = {
|
|
|
8929
8930
|
[exports.FlowNodeType.RunAction]: RunAction,
|
|
8930
8931
|
};
|
|
8931
8932
|
|
|
8932
|
-
const FlowSpecificProperties =
|
|
8933
|
-
flowId:
|
|
8934
|
-
universalFlowId:
|
|
8933
|
+
const FlowSpecificProperties = z.z.object({
|
|
8934
|
+
flowId: z.z.string().optional(),
|
|
8935
|
+
universalFlowId: z.z.string().optional(),
|
|
8935
8936
|
parametersSchema: DataSchema.optional(),
|
|
8936
|
-
parameters:
|
|
8937
|
-
enabled:
|
|
8938
|
-
nodes:
|
|
8939
|
-
autoCreateInstances:
|
|
8937
|
+
parameters: z.z.any().optional(),
|
|
8938
|
+
enabled: z.z.boolean().optional(),
|
|
8939
|
+
nodes: z.z.record(z.z.string(), FlowNode).optional(),
|
|
8940
|
+
autoCreateInstances: z.z.boolean().optional(),
|
|
8940
8941
|
});
|
|
8941
8942
|
const FlowEditableProperties = BaseIntegrationLevelMembraneInterfaceEditableProperties.omit({
|
|
8942
8943
|
parentId: true,
|
|
@@ -8946,41 +8947,41 @@ const FlowExportProperties = BaseIntegrationLevelMembraneInterfaceExportProperti
|
|
|
8946
8947
|
universalFlowId: true,
|
|
8947
8948
|
});
|
|
8948
8949
|
const FlowReadOnlyProperties = BaseIntegrationLevelMembraneInterfaceReadOnlyProperties.extend({
|
|
8949
|
-
universalFlowRevision:
|
|
8950
|
+
universalFlowRevision: z.z.string().optional(),
|
|
8950
8951
|
});
|
|
8951
8952
|
const BaseFlow = BaseMembraneInterface.merge(FlowEditableProperties).merge(FlowReadOnlyProperties);
|
|
8952
8953
|
|
|
8953
8954
|
const BaseIntegration = BaseMembraneInterface.extend({
|
|
8954
|
-
logoUri:
|
|
8955
|
-
connectorId:
|
|
8956
|
-
connectorVersion:
|
|
8957
|
-
oAuthCallbackUri:
|
|
8958
|
-
parameters:
|
|
8959
|
-
archivedAt:
|
|
8960
|
-
hasMissingParameters:
|
|
8961
|
-
hasDocumentation:
|
|
8962
|
-
hasOperations:
|
|
8963
|
-
operationsCount:
|
|
8964
|
-
hasData:
|
|
8965
|
-
dataCollectionsCount:
|
|
8966
|
-
hasEvents:
|
|
8967
|
-
eventsCount:
|
|
8968
|
-
hasGlobalWebhooks:
|
|
8969
|
-
hasUdm:
|
|
8970
|
-
isTest:
|
|
8971
|
-
appUuid:
|
|
8972
|
-
isDeactivated:
|
|
8973
|
-
authType:
|
|
8955
|
+
logoUri: z.z.string(),
|
|
8956
|
+
connectorId: z.z.string().optional(),
|
|
8957
|
+
connectorVersion: z.z.string().optional(),
|
|
8958
|
+
oAuthCallbackUri: z.z.string().optional(),
|
|
8959
|
+
parameters: z.z.any().optional(),
|
|
8960
|
+
archivedAt: z.z.string().optional(),
|
|
8961
|
+
hasMissingParameters: z.z.boolean().optional(),
|
|
8962
|
+
hasDocumentation: z.z.boolean().optional(),
|
|
8963
|
+
hasOperations: z.z.boolean().optional(),
|
|
8964
|
+
operationsCount: z.z.number().optional(),
|
|
8965
|
+
hasData: z.z.boolean().optional(),
|
|
8966
|
+
dataCollectionsCount: z.z.number().optional(),
|
|
8967
|
+
hasEvents: z.z.boolean().optional(),
|
|
8968
|
+
eventsCount: z.z.number().optional(),
|
|
8969
|
+
hasGlobalWebhooks: z.z.boolean().optional(),
|
|
8970
|
+
hasUdm: z.z.boolean().optional(),
|
|
8971
|
+
isTest: z.z.boolean().optional(),
|
|
8972
|
+
appUuid: z.z.string().optional(),
|
|
8973
|
+
isDeactivated: z.z.boolean().optional(),
|
|
8974
|
+
authType: z.z.enum(CONNECTOR_AUTH_TYPES).optional(),
|
|
8974
8975
|
});
|
|
8975
8976
|
const IntegrationExportProperties = BaseMembraneInterfaceEditableProperties.extend({
|
|
8976
|
-
logoUri:
|
|
8977
|
-
connectorUuid:
|
|
8978
|
-
connectorVersion:
|
|
8979
|
-
oAuthCallbackUri:
|
|
8980
|
-
parameters:
|
|
8981
|
-
appUuid:
|
|
8982
|
-
});
|
|
8983
|
-
const AppliedToIntegrations = (elementSchema) =>
|
|
8977
|
+
logoUri: z.z.string(),
|
|
8978
|
+
connectorUuid: z.z.string().optional(),
|
|
8979
|
+
connectorVersion: z.z.string().optional(),
|
|
8980
|
+
oAuthCallbackUri: z.z.string().optional(),
|
|
8981
|
+
parameters: z.z.any().optional(),
|
|
8982
|
+
appUuid: z.z.string().optional(),
|
|
8983
|
+
});
|
|
8984
|
+
const AppliedToIntegrations = (elementSchema) => z.z.array(z.z.object({
|
|
8984
8985
|
element: elementSchema,
|
|
8985
8986
|
integration: BaseIntegration,
|
|
8986
8987
|
}));
|
|
@@ -9005,27 +9006,27 @@ exports.IntegrationElementType = void 0;
|
|
|
9005
9006
|
IntegrationElementType["EXTERNAL_EVENT"] = "external-event";
|
|
9006
9007
|
})(exports.IntegrationElementType || (exports.IntegrationElementType = {}));
|
|
9007
9008
|
|
|
9008
|
-
const PackageElement =
|
|
9009
|
-
id:
|
|
9010
|
-
type:
|
|
9011
|
-
element:
|
|
9009
|
+
const PackageElement = z.z.object({
|
|
9010
|
+
id: z.z.string(),
|
|
9011
|
+
type: z.z.enum(exports.IntegrationElementType),
|
|
9012
|
+
element: z.z.any().optional(),
|
|
9012
9013
|
});
|
|
9013
|
-
const PackageElementExport =
|
|
9014
|
-
uuid:
|
|
9015
|
-
type:
|
|
9016
|
-
element:
|
|
9014
|
+
const PackageElementExport = z.z.object({
|
|
9015
|
+
uuid: z.z.string(),
|
|
9016
|
+
type: z.z.enum(exports.IntegrationElementType),
|
|
9017
|
+
element: z.z.any().optional(),
|
|
9017
9018
|
});
|
|
9018
9019
|
const PackageEditableProperties = BaseIntegrationLevelMembraneInterfaceEditableProperties.extend({
|
|
9019
|
-
scenarioTemplateId:
|
|
9020
|
-
elements:
|
|
9020
|
+
scenarioTemplateId: z.z.string().optional(),
|
|
9021
|
+
elements: z.z.array(PackageElement).optional(),
|
|
9021
9022
|
});
|
|
9022
9023
|
const PackageExportProperties = BaseIntegrationLevelMembraneInterfaceExportProperties.extend({
|
|
9023
|
-
elements:
|
|
9024
|
+
elements: z.z.array(PackageElementExport).optional(),
|
|
9024
9025
|
});
|
|
9025
|
-
const PackageCalculatedProperties =
|
|
9026
|
-
key:
|
|
9027
|
-
name:
|
|
9028
|
-
isCustomized:
|
|
9026
|
+
const PackageCalculatedProperties = z.z.object({
|
|
9027
|
+
key: z.z.string(),
|
|
9028
|
+
name: z.z.string(),
|
|
9029
|
+
isCustomized: z.z.boolean().optional(),
|
|
9029
9030
|
});
|
|
9030
9031
|
const BasePackage = BaseMembraneInterface.merge(PackageEditableProperties).merge(PackageCalculatedProperties);
|
|
9031
9032
|
|
|
@@ -9040,52 +9041,52 @@ exports.ScreenBlockType = void 0;
|
|
|
9040
9041
|
ScreenBlockType["DataSource"] = "data-source";
|
|
9041
9042
|
ScreenBlockType["Action"] = "action";
|
|
9042
9043
|
})(exports.ScreenBlockType || (exports.ScreenBlockType = {}));
|
|
9043
|
-
const ScreenBlock =
|
|
9044
|
+
const ScreenBlock = z.z
|
|
9044
9045
|
.object({
|
|
9045
|
-
type:
|
|
9046
|
+
type: z.z.enum(exports.ScreenBlockType),
|
|
9046
9047
|
})
|
|
9047
|
-
.and(
|
|
9048
|
+
.and(z.z.record(z.z.string(), z.z.any()));
|
|
9048
9049
|
const BaseScreen = BaseWorkspaceElement.extend({
|
|
9049
|
-
type:
|
|
9050
|
-
key:
|
|
9051
|
-
blocks:
|
|
9050
|
+
type: z.z.enum(exports.ScreenType),
|
|
9051
|
+
key: z.z.string().optional(),
|
|
9052
|
+
blocks: z.z.array(ScreenBlock),
|
|
9052
9053
|
});
|
|
9053
9054
|
|
|
9054
|
-
const BaseCustomer =
|
|
9055
|
-
id:
|
|
9056
|
-
name:
|
|
9057
|
-
meta:
|
|
9058
|
-
internalId:
|
|
9059
|
-
fields:
|
|
9060
|
-
credentials:
|
|
9061
|
-
lastActiveAt:
|
|
9062
|
-
isTest:
|
|
9063
|
-
isBillable:
|
|
9064
|
-
createdAt:
|
|
9065
|
-
archivedAt:
|
|
9055
|
+
const BaseCustomer = z.z.object({
|
|
9056
|
+
id: z.z.string(),
|
|
9057
|
+
name: z.z.string(),
|
|
9058
|
+
meta: z.z.record(z.z.string(), z.z.any()).optional(),
|
|
9059
|
+
internalId: z.z.string(),
|
|
9060
|
+
fields: z.z.record(z.z.string(), z.z.any()).optional(),
|
|
9061
|
+
credentials: z.z.any().optional(),
|
|
9062
|
+
lastActiveAt: z.z.string().optional(),
|
|
9063
|
+
isTest: z.z.boolean().optional(),
|
|
9064
|
+
isBillable: z.z.boolean().optional(),
|
|
9065
|
+
createdAt: z.z.string().optional(),
|
|
9066
|
+
archivedAt: z.z.string().optional(),
|
|
9066
9067
|
});
|
|
9067
9068
|
|
|
9068
9069
|
const BaseFlowInstance = BaseMembraneInterface.extend({
|
|
9069
|
-
userId:
|
|
9070
|
-
connectionId:
|
|
9071
|
-
flowId:
|
|
9072
|
-
universalFlowId:
|
|
9073
|
-
integrationId:
|
|
9074
|
-
instanceKey:
|
|
9075
|
-
parameters:
|
|
9070
|
+
userId: z.z.string(),
|
|
9071
|
+
connectionId: z.z.string().optional(),
|
|
9072
|
+
flowId: z.z.string().optional(),
|
|
9073
|
+
universalFlowId: z.z.string().optional(),
|
|
9074
|
+
integrationId: z.z.string(),
|
|
9075
|
+
instanceKey: z.z.string().optional(),
|
|
9076
|
+
parameters: z.z.any().optional(),
|
|
9076
9077
|
parametersSchema: DataSchema.optional(),
|
|
9077
|
-
nodes:
|
|
9078
|
-
enabled:
|
|
9079
|
-
createdAt:
|
|
9080
|
-
updatedAt:
|
|
9081
|
-
state:
|
|
9082
|
-
customized:
|
|
9078
|
+
nodes: z.z.record(z.z.string(), z.z.any()).optional(),
|
|
9079
|
+
enabled: z.z.boolean(),
|
|
9080
|
+
createdAt: z.z.string(),
|
|
9081
|
+
updatedAt: z.z.string(),
|
|
9082
|
+
state: z.z.enum(exports.WorkspaceElementState).optional(),
|
|
9083
|
+
customized: z.z
|
|
9083
9084
|
.object({
|
|
9084
|
-
name:
|
|
9085
|
-
nodes:
|
|
9085
|
+
name: z.z.boolean().optional(),
|
|
9086
|
+
nodes: z.z.boolean().optional(),
|
|
9086
9087
|
})
|
|
9087
9088
|
.optional(),
|
|
9088
|
-
dependencies:
|
|
9089
|
+
dependencies: z.z.array(z.z.any()).optional(),
|
|
9089
9090
|
});
|
|
9090
9091
|
exports.FlowInstanceNodeState = void 0;
|
|
9091
9092
|
(function (FlowInstanceNodeState) {
|
|
@@ -9093,92 +9094,92 @@ exports.FlowInstanceNodeState = void 0;
|
|
|
9093
9094
|
FlowInstanceNodeState["READY"] = "READY";
|
|
9094
9095
|
})(exports.FlowInstanceNodeState || (exports.FlowInstanceNodeState = {}));
|
|
9095
9096
|
const FlowInstanceNode = FlowNode.extend({
|
|
9096
|
-
state:
|
|
9097
|
-
errors:
|
|
9098
|
-
userConfig:
|
|
9099
|
-
testInput:
|
|
9100
|
-
dependencies:
|
|
9101
|
-
});
|
|
9102
|
-
|
|
9103
|
-
const flowNodeLinkSchema =
|
|
9104
|
-
key:
|
|
9105
|
-
filter:
|
|
9106
|
-
name:
|
|
9107
|
-
});
|
|
9108
|
-
const flowInstanceNodeCreateSchema =
|
|
9109
|
-
name:
|
|
9110
|
-
type:
|
|
9111
|
-
userConfig:
|
|
9112
|
-
config:
|
|
9113
|
-
onError:
|
|
9114
|
-
concurrency:
|
|
9115
|
-
ui:
|
|
9116
|
-
links:
|
|
9117
|
-
isCustomized:
|
|
9118
|
-
});
|
|
9119
|
-
const flowInstanceNodeUpdateSchema =
|
|
9120
|
-
name:
|
|
9121
|
-
type:
|
|
9122
|
-
userConfig:
|
|
9123
|
-
config:
|
|
9124
|
-
onError:
|
|
9125
|
-
links:
|
|
9126
|
-
concurrency:
|
|
9127
|
-
isCustomized:
|
|
9128
|
-
});
|
|
9129
|
-
const createFlowInstanceSchema =
|
|
9130
|
-
name:
|
|
9131
|
-
userId:
|
|
9132
|
-
flowId:
|
|
9133
|
-
connectionId:
|
|
9134
|
-
integrationId:
|
|
9135
|
-
instanceKey:
|
|
9136
|
-
parameters:
|
|
9137
|
-
nodes:
|
|
9138
|
-
enabled:
|
|
9139
|
-
customized:
|
|
9097
|
+
state: z.z.enum(exports.FlowInstanceNodeState).optional(),
|
|
9098
|
+
errors: z.z.array(ErrorDataSchema).optional(),
|
|
9099
|
+
userConfig: z.z.any().optional(),
|
|
9100
|
+
testInput: z.z.any().optional(),
|
|
9101
|
+
dependencies: z.z.array(z.z.any()).optional(),
|
|
9102
|
+
});
|
|
9103
|
+
|
|
9104
|
+
const flowNodeLinkSchema = z.z.object({
|
|
9105
|
+
key: z.z.string().optional(),
|
|
9106
|
+
filter: z.z.any().optional(),
|
|
9107
|
+
name: z.z.string().optional(),
|
|
9108
|
+
});
|
|
9109
|
+
const flowInstanceNodeCreateSchema = z.z.object({
|
|
9110
|
+
name: z.z.string().optional(),
|
|
9111
|
+
type: z.z.string().optional(),
|
|
9112
|
+
userConfig: z.z.any().optional(),
|
|
9113
|
+
config: z.z.any().optional(),
|
|
9114
|
+
onError: z.z.enum(['stop', 'continue']).optional(),
|
|
9115
|
+
concurrency: z.z.number().optional(),
|
|
9116
|
+
ui: z.z.any().optional(),
|
|
9117
|
+
links: z.z.array(flowNodeLinkSchema).optional(),
|
|
9118
|
+
isCustomized: z.z.boolean().optional(),
|
|
9119
|
+
});
|
|
9120
|
+
const flowInstanceNodeUpdateSchema = z.z.object({
|
|
9121
|
+
name: z.z.string().optional(),
|
|
9122
|
+
type: z.z.string().optional(),
|
|
9123
|
+
userConfig: z.z.any().optional(),
|
|
9124
|
+
config: z.z.any().optional(),
|
|
9125
|
+
onError: z.z.enum(['stop', 'continue']).optional(),
|
|
9126
|
+
links: z.z.array(flowNodeLinkSchema).optional(),
|
|
9127
|
+
concurrency: z.z.number().optional(),
|
|
9128
|
+
isCustomized: z.z.boolean().optional(),
|
|
9129
|
+
});
|
|
9130
|
+
const createFlowInstanceSchema = z.z.object({
|
|
9131
|
+
name: z.z.string().optional(),
|
|
9132
|
+
userId: z.z.string().optional(),
|
|
9133
|
+
flowId: z.z.string().optional(),
|
|
9134
|
+
connectionId: z.z.string().optional(),
|
|
9135
|
+
integrationId: z.z.string().optional(),
|
|
9136
|
+
instanceKey: z.z.string().optional(),
|
|
9137
|
+
parameters: z.z.any().optional(),
|
|
9138
|
+
nodes: z.z.record(z.z.string(), flowInstanceNodeCreateSchema).optional(),
|
|
9139
|
+
enabled: z.z.boolean().optional(),
|
|
9140
|
+
customized: z.z
|
|
9140
9141
|
.object({
|
|
9141
|
-
name:
|
|
9142
|
-
nodes:
|
|
9142
|
+
name: z.z.boolean().optional(),
|
|
9143
|
+
nodes: z.z.boolean().optional(),
|
|
9143
9144
|
})
|
|
9144
9145
|
.optional(),
|
|
9145
9146
|
});
|
|
9146
|
-
const updateFlowInstanceSchema =
|
|
9147
|
-
name:
|
|
9148
|
-
enabled:
|
|
9149
|
-
parameters:
|
|
9150
|
-
nodes:
|
|
9151
|
-
archivedAt:
|
|
9152
|
-
customized:
|
|
9147
|
+
const updateFlowInstanceSchema = z.z.object({
|
|
9148
|
+
name: z.z.string().optional(),
|
|
9149
|
+
enabled: z.z.boolean().optional(),
|
|
9150
|
+
parameters: z.z.any().optional(),
|
|
9151
|
+
nodes: z.z.record(z.z.string(), flowInstanceNodeUpdateSchema).optional(),
|
|
9152
|
+
archivedAt: z.z.string().optional(),
|
|
9153
|
+
customized: z.z
|
|
9153
9154
|
.object({
|
|
9154
|
-
name:
|
|
9155
|
-
nodes:
|
|
9155
|
+
name: z.z.boolean().optional(),
|
|
9156
|
+
nodes: z.z.boolean().optional(),
|
|
9156
9157
|
})
|
|
9157
9158
|
.optional(),
|
|
9158
9159
|
});
|
|
9159
9160
|
|
|
9160
9161
|
const BaseFieldMappingInstance = BaseMembraneInterface.extend({
|
|
9161
|
-
userId:
|
|
9162
|
-
revision:
|
|
9163
|
-
connectionId:
|
|
9164
|
-
integrationId:
|
|
9165
|
-
fieldMappingRevision:
|
|
9166
|
-
fieldMappingId:
|
|
9167
|
-
instanceKey:
|
|
9168
|
-
dataSourceInstanceId:
|
|
9162
|
+
userId: z.z.string(),
|
|
9163
|
+
revision: z.z.string(),
|
|
9164
|
+
connectionId: z.z.string(),
|
|
9165
|
+
integrationId: z.z.string(),
|
|
9166
|
+
fieldMappingRevision: z.z.string().optional(),
|
|
9167
|
+
fieldMappingId: z.z.string().optional(),
|
|
9168
|
+
instanceKey: z.z.string().optional(),
|
|
9169
|
+
dataSourceInstanceId: z.z.string().optional(),
|
|
9169
9170
|
dataSourceSchema: DataSchema.optional(),
|
|
9170
|
-
direction:
|
|
9171
|
+
direction: z.z.enum(exports.FieldMappingDirection).optional(),
|
|
9171
9172
|
appSchema: DataSchema.optional(),
|
|
9172
|
-
importValue:
|
|
9173
|
-
exportValue:
|
|
9174
|
-
isCustomized:
|
|
9175
|
-
unifiedExportValue:
|
|
9176
|
-
unifiedImportValue:
|
|
9177
|
-
frozenImportFields:
|
|
9178
|
-
frozenExportFields:
|
|
9179
|
-
state:
|
|
9173
|
+
importValue: z.z.any().optional(),
|
|
9174
|
+
exportValue: z.z.any().optional(),
|
|
9175
|
+
isCustomized: z.z.boolean().optional(),
|
|
9176
|
+
unifiedExportValue: z.z.any().optional(),
|
|
9177
|
+
unifiedImportValue: z.z.any().optional(),
|
|
9178
|
+
frozenImportFields: z.z.array(z.z.string()).optional(),
|
|
9179
|
+
frozenExportFields: z.z.array(z.z.string()).optional(),
|
|
9180
|
+
state: z.z.enum(exports.WorkspaceElementState).optional(),
|
|
9180
9181
|
error: ErrorDataSchema.optional(),
|
|
9181
|
-
externalSchema:
|
|
9182
|
+
externalSchema: z.z.any().optional(),
|
|
9182
9183
|
});
|
|
9183
9184
|
|
|
9184
9185
|
exports.DataLinkDirection = void 0;
|
|
@@ -9187,27 +9188,29 @@ exports.DataLinkDirection = void 0;
|
|
|
9187
9188
|
DataLinkDirection["EXPORT"] = "export";
|
|
9188
9189
|
DataLinkDirection["BOTH"] = "both";
|
|
9189
9190
|
})(exports.DataLinkDirection || (exports.DataLinkDirection = {}));
|
|
9190
|
-
const
|
|
9191
|
-
|
|
9192
|
-
|
|
9191
|
+
const DataLinkTableSpecificProperties = z.z.object({});
|
|
9192
|
+
const DataLinkTableEditableProperties = BaseMembraneInterfaceEditableProperties.extend(DataLinkTableSpecificProperties.shape);
|
|
9193
|
+
const DataLinkTableExportProperties = BaseMembraneInterfaceEditableProperties.extend(DataLinkTableSpecificProperties.shape);
|
|
9194
|
+
const DataLinkTableReadOnlyProperties = BaseMembraneInterfaceReadOnlyProperties.extend({});
|
|
9195
|
+
const BaseDataLinkTable = BaseMembraneInterface.merge(DataLinkTableEditableProperties).merge(DataLinkTableReadOnlyProperties);
|
|
9193
9196
|
|
|
9194
9197
|
const BaseDataLinkTableInstance = BaseMembraneInterface.extend({
|
|
9195
|
-
dataLinkTableId:
|
|
9196
|
-
connectionId:
|
|
9197
|
-
integrationId:
|
|
9198
|
-
instanceKey:
|
|
9199
|
-
userId:
|
|
9200
|
-
archivedAt:
|
|
9198
|
+
dataLinkTableId: z.z.string().optional(),
|
|
9199
|
+
connectionId: z.z.string().optional(),
|
|
9200
|
+
integrationId: z.z.string(),
|
|
9201
|
+
instanceKey: z.z.string().optional(),
|
|
9202
|
+
userId: z.z.string(),
|
|
9203
|
+
archivedAt: z.z.string().optional(),
|
|
9201
9204
|
});
|
|
9202
|
-
const DataLink =
|
|
9203
|
-
id:
|
|
9204
|
-
dataLinkTableInstanceId:
|
|
9205
|
-
externalRecordId:
|
|
9206
|
-
appRecordId:
|
|
9207
|
-
direction:
|
|
9205
|
+
const DataLink = z.z.object({
|
|
9206
|
+
id: z.z.string(),
|
|
9207
|
+
dataLinkTableInstanceId: z.z.string(),
|
|
9208
|
+
externalRecordId: z.z.string(),
|
|
9209
|
+
appRecordId: z.z.string(),
|
|
9210
|
+
direction: z.z.enum(exports.DataLinkDirection),
|
|
9208
9211
|
});
|
|
9209
|
-
const DataLinkTableConfig =
|
|
9210
|
-
key:
|
|
9212
|
+
const DataLinkTableConfig = z.z.object({
|
|
9213
|
+
key: z.z.string(),
|
|
9211
9214
|
});
|
|
9212
9215
|
|
|
9213
9216
|
exports.HttpRequestMethod = void 0;
|
|
@@ -9218,12 +9221,12 @@ exports.HttpRequestMethod = void 0;
|
|
|
9218
9221
|
HttpRequestMethod["PUT"] = "PUT";
|
|
9219
9222
|
HttpRequestMethod["DELETE"] = "DELETE";
|
|
9220
9223
|
})(exports.HttpRequestMethod || (exports.HttpRequestMethod = {}));
|
|
9221
|
-
const HttpRequestSpec =
|
|
9222
|
-
method:
|
|
9223
|
-
uri:
|
|
9224
|
-
headers:
|
|
9225
|
-
query:
|
|
9226
|
-
body:
|
|
9224
|
+
const HttpRequestSpec = z.z.object({
|
|
9225
|
+
method: z.z.string().toUpperCase().pipe(z.z.enum(exports.HttpRequestMethod)).optional(),
|
|
9226
|
+
uri: z.z.any(),
|
|
9227
|
+
headers: z.z.record(z.z.string(), z.z.any()).optional(),
|
|
9228
|
+
query: z.z.record(z.z.string(), z.z.any()).optional(),
|
|
9229
|
+
body: z.z.any().optional(),
|
|
9227
9230
|
});
|
|
9228
9231
|
const HTTP_REQUEST_SCHEMA = {
|
|
9229
9232
|
type: 'object',
|
|
@@ -9248,45 +9251,59 @@ const HTTP_REQUEST_SCHEMA = {
|
|
|
9248
9251
|
};
|
|
9249
9252
|
|
|
9250
9253
|
const BaseAppEventType = BaseMembraneInterface.extend({
|
|
9251
|
-
revision:
|
|
9252
|
-
archivedAt:
|
|
9254
|
+
revision: z.z.string(),
|
|
9255
|
+
archivedAt: z.z.string().optional(),
|
|
9256
|
+
webhookKey: z.z.string(),
|
|
9253
9257
|
subscribeRequest: HttpRequestSpec.optional(),
|
|
9254
|
-
example:
|
|
9258
|
+
example: z.z.any().optional(),
|
|
9259
|
+
schema: DataSchema.optional(),
|
|
9260
|
+
globalWebhookUri: z.z.string(),
|
|
9261
|
+
tenantIdFormula: z.z.any().optional(),
|
|
9262
|
+
userIdFormula: z.z.any().optional(),
|
|
9263
|
+
});
|
|
9264
|
+
const AppEventTypeEditableProperties = BaseMembraneInterfaceEditableProperties.extend({
|
|
9255
9265
|
schema: DataSchema.optional(),
|
|
9256
|
-
|
|
9257
|
-
tenantIdFormula:
|
|
9258
|
-
userIdFormula:
|
|
9266
|
+
example: z.z.any().optional(),
|
|
9267
|
+
tenantIdFormula: z.z.any().optional(),
|
|
9268
|
+
userIdFormula: z.z.any().optional(),
|
|
9269
|
+
subscribeRequest: HttpRequestSpec.optional(),
|
|
9259
9270
|
});
|
|
9271
|
+
const AppEventTypeExportProperties = BaseMembraneInterfaceEditableProperties.extend({});
|
|
9260
9272
|
|
|
9261
9273
|
const BaseAppEventSubscription = BaseMembraneInterface.extend({
|
|
9262
|
-
revision:
|
|
9263
|
-
appEventTypeId:
|
|
9264
|
-
userId:
|
|
9265
|
-
instanceKey:
|
|
9266
|
-
isSubscribed:
|
|
9274
|
+
revision: z.z.string(),
|
|
9275
|
+
appEventTypeId: z.z.string(),
|
|
9276
|
+
userId: z.z.string(),
|
|
9277
|
+
instanceKey: z.z.string().optional(),
|
|
9278
|
+
isSubscribed: z.z.boolean(),
|
|
9267
9279
|
schema: DataSchema.optional(),
|
|
9268
|
-
webhookUri:
|
|
9280
|
+
webhookUri: z.z.string(),
|
|
9269
9281
|
subscriptionRequest: HttpRequestSpec,
|
|
9270
|
-
subscriptionResponse:
|
|
9271
|
-
archivedAt:
|
|
9282
|
+
subscriptionResponse: z.z.any().optional(),
|
|
9283
|
+
archivedAt: z.z.string().optional(),
|
|
9272
9284
|
});
|
|
9273
9285
|
|
|
9274
9286
|
const BaseAppDataSchema = BaseMembraneInterface.extend({
|
|
9275
|
-
schema:
|
|
9276
|
-
code:
|
|
9277
|
-
archivedAt:
|
|
9278
|
-
revision:
|
|
9287
|
+
schema: z.z.any(),
|
|
9288
|
+
code: z.z.string().optional(),
|
|
9289
|
+
archivedAt: z.z.string().optional(),
|
|
9290
|
+
revision: z.z.string().optional(),
|
|
9291
|
+
});
|
|
9292
|
+
const AppDataSchemaEditableProperties = BaseMembraneInterfaceEditableProperties.extend({
|
|
9293
|
+
schema: z.z.any(),
|
|
9294
|
+
code: z.z.string().optional(),
|
|
9279
9295
|
});
|
|
9296
|
+
const AppDataSchemaExportProperties = AppDataSchemaEditableProperties.extend({});
|
|
9280
9297
|
|
|
9281
9298
|
const BaseAppDataSchemaInstance = BaseMembraneInterface.extend({
|
|
9282
|
-
appId:
|
|
9283
|
-
userId:
|
|
9284
|
-
appDataSchemaId:
|
|
9285
|
-
appDataSchemaRevision:
|
|
9286
|
-
instanceKey:
|
|
9287
|
-
schema:
|
|
9299
|
+
appId: z.z.string(),
|
|
9300
|
+
userId: z.z.string(),
|
|
9301
|
+
appDataSchemaId: z.z.string(),
|
|
9302
|
+
appDataSchemaRevision: z.z.string(),
|
|
9303
|
+
instanceKey: z.z.string().optional(),
|
|
9304
|
+
schema: z.z.any().optional(),
|
|
9288
9305
|
error: ErrorDataSchema.optional(),
|
|
9289
|
-
archivedAt:
|
|
9306
|
+
archivedAt: z.z.string().optional(),
|
|
9290
9307
|
});
|
|
9291
9308
|
|
|
9292
9309
|
exports.ExternalEventSubscriptionStatus = void 0;
|
|
@@ -9302,33 +9319,34 @@ exports.ExternalEventSubscriptionType = void 0;
|
|
|
9302
9319
|
ExternalEventSubscriptionType["DataRecordDeleted"] = "data-record-deleted";
|
|
9303
9320
|
ExternalEventSubscriptionType["ConnectorEvent"] = "connector-event";
|
|
9304
9321
|
})(exports.ExternalEventSubscriptionType || (exports.ExternalEventSubscriptionType = {}));
|
|
9305
|
-
const ExternalEventSubscriptionConfig =
|
|
9306
|
-
type:
|
|
9322
|
+
const ExternalEventSubscriptionConfig = z.z.object({
|
|
9323
|
+
type: z.z.enum(exports.ExternalEventSubscriptionType),
|
|
9307
9324
|
dataSource: DataSourceUnitConfig.optional(),
|
|
9308
|
-
eventKey:
|
|
9309
|
-
eventParameters:
|
|
9310
|
-
});
|
|
9311
|
-
const BaseExternalEventSubscription =
|
|
9312
|
-
id:
|
|
9313
|
-
name:
|
|
9314
|
-
userId:
|
|
9315
|
-
connectionId:
|
|
9316
|
-
integrationId:
|
|
9325
|
+
eventKey: z.z.string().optional(),
|
|
9326
|
+
eventParameters: z.z.any().optional(),
|
|
9327
|
+
});
|
|
9328
|
+
const BaseExternalEventSubscription = z.z.object({
|
|
9329
|
+
id: z.z.string(),
|
|
9330
|
+
name: z.z.string().optional(),
|
|
9331
|
+
userId: z.z.string(),
|
|
9332
|
+
connectionId: z.z.string(),
|
|
9333
|
+
integrationId: z.z.string(),
|
|
9317
9334
|
config: ExternalEventSubscriptionConfig.optional(),
|
|
9318
|
-
status:
|
|
9335
|
+
status: z.z.enum(exports.ExternalEventSubscriptionStatus).optional(),
|
|
9319
9336
|
error: ErrorDataSchema.optional(),
|
|
9320
|
-
isRealTime:
|
|
9321
|
-
requiresPull:
|
|
9322
|
-
requiresFullSync:
|
|
9323
|
-
createdAt:
|
|
9324
|
-
archivedAt:
|
|
9325
|
-
stateData:
|
|
9326
|
-
nextPullEventsTimestamp:
|
|
9327
|
-
pullUpdatesIntervalSeconds:
|
|
9328
|
-
fullSyncIntervalSeconds:
|
|
9329
|
-
nextRefreshTimestamp:
|
|
9330
|
-
globalWebhookKey:
|
|
9331
|
-
globalWebhookEventSelector:
|
|
9337
|
+
isRealTime: z.z.boolean().optional(),
|
|
9338
|
+
requiresPull: z.z.boolean().optional(),
|
|
9339
|
+
requiresFullSync: z.z.boolean().optional(),
|
|
9340
|
+
createdAt: z.z.string().optional(),
|
|
9341
|
+
archivedAt: z.z.string().optional(),
|
|
9342
|
+
stateData: z.z.any().optional(),
|
|
9343
|
+
nextPullEventsTimestamp: z.z.number().optional(),
|
|
9344
|
+
pullUpdatesIntervalSeconds: z.z.number().optional(),
|
|
9345
|
+
fullSyncIntervalSeconds: z.z.number().optional(),
|
|
9346
|
+
nextRefreshTimestamp: z.z.number().optional(),
|
|
9347
|
+
globalWebhookKey: z.z.string().optional(),
|
|
9348
|
+
globalWebhookEventSelector: z.z.string().optional(),
|
|
9349
|
+
webhookUri: z.z.string().optional(),
|
|
9332
9350
|
});
|
|
9333
9351
|
|
|
9334
9352
|
exports.ExternalEventLogStatus = void 0;
|
|
@@ -9337,16 +9355,16 @@ exports.ExternalEventLogStatus = void 0;
|
|
|
9337
9355
|
ExternalEventLogStatus["ERROR"] = "error";
|
|
9338
9356
|
ExternalEventLogStatus["SUCCESS"] = "success";
|
|
9339
9357
|
})(exports.ExternalEventLogStatus || (exports.ExternalEventLogStatus = {}));
|
|
9340
|
-
const BaseExternalEventLogRecord =
|
|
9341
|
-
id:
|
|
9342
|
-
userId:
|
|
9343
|
-
name:
|
|
9344
|
-
externalEventSubscriptionId:
|
|
9345
|
-
integrationId:
|
|
9346
|
-
connectionId:
|
|
9347
|
-
payload:
|
|
9348
|
-
launchedFlowRunIds:
|
|
9349
|
-
status:
|
|
9358
|
+
const BaseExternalEventLogRecord = z.z.object({
|
|
9359
|
+
id: z.z.string(),
|
|
9360
|
+
userId: z.z.string(),
|
|
9361
|
+
name: z.z.string().optional(),
|
|
9362
|
+
externalEventSubscriptionId: z.z.string(),
|
|
9363
|
+
integrationId: z.z.string(),
|
|
9364
|
+
connectionId: z.z.string(),
|
|
9365
|
+
payload: z.z.any().optional(),
|
|
9366
|
+
launchedFlowRunIds: z.z.array(z.z.string()).optional(),
|
|
9367
|
+
status: z.z.enum(exports.ExternalEventLogStatus),
|
|
9350
9368
|
error: ErrorDataSchema.optional(),
|
|
9351
9369
|
});
|
|
9352
9370
|
|
|
@@ -9357,18 +9375,18 @@ exports.ExternalEventPullStatus = void 0;
|
|
|
9357
9375
|
ExternalEventPullStatus["ERROR"] = "error";
|
|
9358
9376
|
ExternalEventPullStatus["QUEUED"] = "queued";
|
|
9359
9377
|
})(exports.ExternalEventPullStatus || (exports.ExternalEventPullStatus = {}));
|
|
9360
|
-
const BaseExternalEventPull =
|
|
9361
|
-
id:
|
|
9362
|
-
name:
|
|
9363
|
-
userId:
|
|
9364
|
-
externalEventSubscriptionId:
|
|
9365
|
-
integrationId:
|
|
9366
|
-
connectionId:
|
|
9367
|
-
startDatetime:
|
|
9368
|
-
endDatetime:
|
|
9369
|
-
isFullScan:
|
|
9370
|
-
status:
|
|
9371
|
-
collectedEventIds:
|
|
9378
|
+
const BaseExternalEventPull = z.z.object({
|
|
9379
|
+
id: z.z.string(),
|
|
9380
|
+
name: z.z.string().optional(),
|
|
9381
|
+
userId: z.z.string(),
|
|
9382
|
+
externalEventSubscriptionId: z.z.string(),
|
|
9383
|
+
integrationId: z.z.string(),
|
|
9384
|
+
connectionId: z.z.string(),
|
|
9385
|
+
startDatetime: z.z.string(),
|
|
9386
|
+
endDatetime: z.z.string(),
|
|
9387
|
+
isFullScan: z.z.boolean().optional(),
|
|
9388
|
+
status: z.z.enum(exports.ExternalEventPullStatus),
|
|
9389
|
+
collectedEventIds: z.z.array(z.z.string()),
|
|
9372
9390
|
error: ErrorDataSchema.optional(),
|
|
9373
9391
|
});
|
|
9374
9392
|
|
|
@@ -9378,17 +9396,17 @@ exports.ActionRunLogStatus = void 0;
|
|
|
9378
9396
|
ActionRunLogStatus["ERROR"] = "error";
|
|
9379
9397
|
})(exports.ActionRunLogStatus || (exports.ActionRunLogStatus = {}));
|
|
9380
9398
|
const BaseActionRunLogRecord = BaseWorkspaceElement.extend({
|
|
9381
|
-
actionId:
|
|
9382
|
-
actionInstanceId:
|
|
9383
|
-
integrationId:
|
|
9384
|
-
connectionId:
|
|
9385
|
-
input:
|
|
9386
|
-
output:
|
|
9387
|
-
status:
|
|
9388
|
-
createdAt:
|
|
9389
|
-
completedAt:
|
|
9399
|
+
actionId: z.z.string(),
|
|
9400
|
+
actionInstanceId: z.z.string(),
|
|
9401
|
+
integrationId: z.z.string(),
|
|
9402
|
+
connectionId: z.z.string(),
|
|
9403
|
+
input: z.z.any().optional(),
|
|
9404
|
+
output: z.z.any().optional(),
|
|
9405
|
+
status: z.z.enum(exports.ActionRunLogStatus),
|
|
9406
|
+
createdAt: z.z.string(),
|
|
9407
|
+
completedAt: z.z.string().optional(),
|
|
9390
9408
|
error: ErrorDataSchema.optional(),
|
|
9391
|
-
duration:
|
|
9409
|
+
duration: z.z.number().optional(),
|
|
9392
9410
|
});
|
|
9393
9411
|
|
|
9394
9412
|
const ActionApiResponse = BaseAction.extend({
|
|
@@ -9399,19 +9417,19 @@ const ActionApiResponse = BaseAction.extend({
|
|
|
9399
9417
|
defaultOutputSchema: DataSchema.optional(),
|
|
9400
9418
|
transformedOutputSchema: DataSchema.optional(),
|
|
9401
9419
|
outputSchema: DataSchema.optional(),
|
|
9402
|
-
dependencies:
|
|
9420
|
+
dependencies: z.z.array(z.z.any()).optional(),
|
|
9403
9421
|
});
|
|
9404
9422
|
const FindActionsQuery = FindIntegrationLevelMembraneInterfaceQuery;
|
|
9405
9423
|
const CreateActionRequest = ActionEditableProperties;
|
|
9406
9424
|
const UpdateActionRequest = CreateActionRequest.extend({}).partial();
|
|
9407
9425
|
const CreateActionInstanceRequest = CreateActionRequest;
|
|
9408
9426
|
const UpdateActionInstanceRequest = UpdateActionRequest;
|
|
9409
|
-
const RunActionRequest =
|
|
9410
|
-
input:
|
|
9427
|
+
const RunActionRequest = z.z.object({
|
|
9428
|
+
input: z.z.any().optional(),
|
|
9411
9429
|
});
|
|
9412
|
-
const ActionRunResponse =
|
|
9413
|
-
output:
|
|
9414
|
-
logs:
|
|
9430
|
+
const ActionRunResponse = z.z.object({
|
|
9431
|
+
output: z.z.any().optional(),
|
|
9432
|
+
logs: z.z.array(z.z.any()).optional(),
|
|
9415
9433
|
});
|
|
9416
9434
|
const ActionInstanceApiResponse = ActionApiResponse;
|
|
9417
9435
|
const ListActionInstancesForConnectionQuery = FindActionsQuery;
|
|
@@ -9423,54 +9441,54 @@ const ActionRunLogRecordApiResponse = BaseActionRunLogRecord.extend({
|
|
|
9423
9441
|
connection: BaseConnection.optional(),
|
|
9424
9442
|
});
|
|
9425
9443
|
|
|
9426
|
-
const FindConnectionsQuery =
|
|
9444
|
+
const FindConnectionsQuery = z.z
|
|
9427
9445
|
.object({
|
|
9428
|
-
userId:
|
|
9446
|
+
userId: z.z.string().optional(),
|
|
9429
9447
|
isTest: zodBooleanCoercion().optional(),
|
|
9430
|
-
integrationKey:
|
|
9431
|
-
integrationId:
|
|
9448
|
+
integrationKey: z.z.string().optional(),
|
|
9449
|
+
integrationId: z.z.string().optional(),
|
|
9432
9450
|
includeArchived: zodBooleanCoercion().optional(),
|
|
9433
9451
|
})
|
|
9434
9452
|
.merge(PaginationQuery);
|
|
9435
|
-
const CreateConnectionRequest =
|
|
9436
|
-
name:
|
|
9437
|
-
integrationId:
|
|
9438
|
-
credentials:
|
|
9453
|
+
const CreateConnectionRequest = z.z.object({
|
|
9454
|
+
name: z.z.string(),
|
|
9455
|
+
integrationId: z.z.string(),
|
|
9456
|
+
credentials: z.z.string().optional(),
|
|
9439
9457
|
});
|
|
9440
|
-
const UpdateConnectionRequest =
|
|
9441
|
-
name:
|
|
9442
|
-
credentials:
|
|
9443
|
-
accessToken:
|
|
9458
|
+
const UpdateConnectionRequest = z.z.object({
|
|
9459
|
+
name: z.z.string().optional(),
|
|
9460
|
+
credentials: z.z.string().optional(),
|
|
9461
|
+
accessToken: z.z.string().optional(),
|
|
9444
9462
|
});
|
|
9445
9463
|
class FindConnectionsResponse extends PaginationResponse {
|
|
9446
9464
|
}
|
|
9447
|
-
const ConnectionSelector =
|
|
9448
|
-
id:
|
|
9449
|
-
integrationKey:
|
|
9450
|
-
integrationId:
|
|
9451
|
-
connectionId:
|
|
9465
|
+
const ConnectionSelector = z.z.object({
|
|
9466
|
+
id: z.z.string().optional(),
|
|
9467
|
+
integrationKey: z.z.string().optional(),
|
|
9468
|
+
integrationId: z.z.string().optional(),
|
|
9469
|
+
connectionId: z.z.string().optional(),
|
|
9452
9470
|
});
|
|
9453
9471
|
const ConnectionApiResponse = BaseConnection.extend({
|
|
9454
9472
|
user: BaseCustomer.optional(),
|
|
9455
9473
|
integration: BaseIntegration.optional(),
|
|
9456
9474
|
});
|
|
9457
9475
|
const ConnectionApiResponseWithSecrets = ConnectionApiResponse.extend({
|
|
9458
|
-
credentials:
|
|
9459
|
-
parameters:
|
|
9460
|
-
connectorParameters:
|
|
9461
|
-
});
|
|
9462
|
-
const ConnectionMessagePayload =
|
|
9463
|
-
|
|
9464
|
-
source:
|
|
9465
|
-
requestId:
|
|
9466
|
-
type:
|
|
9476
|
+
credentials: z.z.unknown().optional(),
|
|
9477
|
+
parameters: z.z.unknown().optional(),
|
|
9478
|
+
connectorParameters: z.z.unknown().optional(),
|
|
9479
|
+
});
|
|
9480
|
+
const ConnectionMessagePayload = z.z.discriminatedUnion('type', [
|
|
9481
|
+
z.z.object({
|
|
9482
|
+
source: z.z.string(),
|
|
9483
|
+
requestId: z.z.string(),
|
|
9484
|
+
type: z.z.literal('newConnectionCreated'),
|
|
9467
9485
|
connection: ConnectionApiResponse,
|
|
9468
9486
|
}),
|
|
9469
|
-
|
|
9470
|
-
source:
|
|
9471
|
-
requestId:
|
|
9472
|
-
type:
|
|
9473
|
-
error:
|
|
9487
|
+
z.z.object({
|
|
9488
|
+
source: z.z.string(),
|
|
9489
|
+
requestId: z.z.string(),
|
|
9490
|
+
type: z.z.literal('newConnectionFailure'),
|
|
9491
|
+
error: z.z.string(),
|
|
9474
9492
|
errorData: ErrorDataSchema.optional(),
|
|
9475
9493
|
}),
|
|
9476
9494
|
]);
|
|
@@ -9478,72 +9496,72 @@ const ConnectionMessagePayload = zod.z.discriminatedUnion('type', [
|
|
|
9478
9496
|
const DataSourceApiResponse = BaseDataSource.extend({
|
|
9479
9497
|
integration: BaseIntegration.optional(),
|
|
9480
9498
|
appliedToIntegrations: AppliedToIntegrations(BaseDataSource).optional(),
|
|
9481
|
-
defaultPath:
|
|
9499
|
+
defaultPath: z.z.string().optional().meta({ deprecated: true }),
|
|
9482
9500
|
});
|
|
9483
9501
|
const FindDataSourcesQuery = FindIntegrationLevelMembraneInterfaceQuery.omit({ parentId: true }).extend({
|
|
9484
|
-
dataSourceId:
|
|
9485
|
-
universalDataSourceId:
|
|
9502
|
+
dataSourceId: z.z.string().optional(),
|
|
9503
|
+
universalDataSourceId: z.z.string().optional(),
|
|
9486
9504
|
});
|
|
9487
9505
|
const CreateDataSourceRequest = DataSourceEditableProperties;
|
|
9488
9506
|
const UpdateDataSourceRequest = CreateDataSourceRequest.extend({}).partial();
|
|
9489
|
-
const FindDataSourceInstancesQuery =
|
|
9507
|
+
const FindDataSourceInstancesQuery = z.z
|
|
9490
9508
|
.object({
|
|
9491
|
-
userId:
|
|
9492
|
-
dataSourceId:
|
|
9493
|
-
universalDataSourceId:
|
|
9494
|
-
connectionId:
|
|
9495
|
-
integrationKey:
|
|
9496
|
-
integrationId:
|
|
9509
|
+
userId: z.z.string().optional(),
|
|
9510
|
+
dataSourceId: z.z.string().optional(),
|
|
9511
|
+
universalDataSourceId: z.z.string().optional(),
|
|
9512
|
+
connectionId: z.z.string().optional(),
|
|
9513
|
+
integrationKey: z.z.string().optional(),
|
|
9514
|
+
integrationId: z.z.string().optional(),
|
|
9497
9515
|
})
|
|
9498
9516
|
.merge(PaginationQuery);
|
|
9499
|
-
const CreateDataSourceInstanceRequest =
|
|
9500
|
-
dataSourceId:
|
|
9501
|
-
connectionId:
|
|
9502
|
-
path:
|
|
9503
|
-
});
|
|
9504
|
-
const UpdateDataSourceInstanceRequest =
|
|
9505
|
-
path:
|
|
9506
|
-
collectionKey:
|
|
9507
|
-
collectionParameters:
|
|
9508
|
-
pullUpdatesIntervalSeconds:
|
|
9509
|
-
fullSyncIntervalSeconds:
|
|
9510
|
-
subscribedTo:
|
|
9517
|
+
const CreateDataSourceInstanceRequest = z.z.object({
|
|
9518
|
+
dataSourceId: z.z.string(),
|
|
9519
|
+
connectionId: z.z.string(),
|
|
9520
|
+
path: z.z.string().optional(),
|
|
9521
|
+
});
|
|
9522
|
+
const UpdateDataSourceInstanceRequest = z.z.object({
|
|
9523
|
+
path: z.z.string().optional(),
|
|
9524
|
+
collectionKey: z.z.string().optional(),
|
|
9525
|
+
collectionParameters: z.z.any().optional(),
|
|
9526
|
+
pullUpdatesIntervalSeconds: z.z.number().optional(),
|
|
9527
|
+
fullSyncIntervalSeconds: z.z.number().optional(),
|
|
9528
|
+
subscribedTo: z.z
|
|
9511
9529
|
.object({
|
|
9512
|
-
created:
|
|
9513
|
-
updated:
|
|
9514
|
-
deleted:
|
|
9530
|
+
created: z.z.boolean().optional(),
|
|
9531
|
+
updated: z.z.boolean().optional(),
|
|
9532
|
+
deleted: z.z.boolean().optional(),
|
|
9515
9533
|
})
|
|
9516
9534
|
.optional(),
|
|
9517
9535
|
});
|
|
9518
|
-
const FindDataSourceEventsQuery =
|
|
9536
|
+
const FindDataSourceEventsQuery = z.z
|
|
9519
9537
|
.object({
|
|
9520
|
-
userId:
|
|
9521
|
-
udm:
|
|
9522
|
-
dataSourceInstanceId:
|
|
9523
|
-
startDatetime:
|
|
9524
|
-
endDatetime:
|
|
9538
|
+
userId: z.z.string().optional(),
|
|
9539
|
+
udm: z.z.string().optional(),
|
|
9540
|
+
dataSourceInstanceId: z.z.string().optional(),
|
|
9541
|
+
startDatetime: z.z.string().optional(),
|
|
9542
|
+
endDatetime: z.z.string().optional(),
|
|
9525
9543
|
})
|
|
9526
9544
|
.merge(PaginationQuery);
|
|
9527
|
-
const FindDataSourceSyncsQuery =
|
|
9545
|
+
const FindDataSourceSyncsQuery = z.z
|
|
9528
9546
|
.object({
|
|
9529
|
-
userId:
|
|
9530
|
-
dataSourceId:
|
|
9531
|
-
dataSourceInstanceId:
|
|
9532
|
-
integrationId:
|
|
9533
|
-
connectionId:
|
|
9534
|
-
startedAfter:
|
|
9547
|
+
userId: z.z.string().optional(),
|
|
9548
|
+
dataSourceId: z.z.string().optional(),
|
|
9549
|
+
dataSourceInstanceId: z.z.string().optional(),
|
|
9550
|
+
integrationId: z.z.string().optional(),
|
|
9551
|
+
connectionId: z.z.string().optional(),
|
|
9552
|
+
startedAfter: z.z.string().optional(),
|
|
9535
9553
|
})
|
|
9536
9554
|
.merge(PaginationQuery);
|
|
9537
|
-
const ListDataSourceInstancesForConnectionQuery =
|
|
9555
|
+
const ListDataSourceInstancesForConnectionQuery = z.z
|
|
9538
9556
|
.object({
|
|
9539
|
-
dataSourceId:
|
|
9557
|
+
dataSourceId: z.z.string().optional(),
|
|
9540
9558
|
})
|
|
9541
9559
|
.merge(PaginationQuery);
|
|
9542
9560
|
const FindDataSourceInstanceSyncsQuery = ListDataSourceInstancesForConnectionQuery.extend({
|
|
9543
|
-
userId:
|
|
9544
|
-
connectionId:
|
|
9545
|
-
integrationId:
|
|
9546
|
-
dataSourceInstanceId:
|
|
9561
|
+
userId: z.z.string().optional(),
|
|
9562
|
+
connectionId: z.z.string().optional(),
|
|
9563
|
+
integrationId: z.z.string().optional(),
|
|
9564
|
+
dataSourceInstanceId: z.z.string().optional(),
|
|
9547
9565
|
});
|
|
9548
9566
|
|
|
9549
9567
|
const DataSourceInstanceApiResponse = BaseDataSourceInstance.extend({
|
|
@@ -9551,8 +9569,8 @@ const DataSourceInstanceApiResponse = BaseDataSourceInstance.extend({
|
|
|
9551
9569
|
dataSource: BaseDataSource.optional(),
|
|
9552
9570
|
connection: BaseConnection.optional(),
|
|
9553
9571
|
integration: BaseIntegration.optional(),
|
|
9554
|
-
path:
|
|
9555
|
-
defaultPath:
|
|
9572
|
+
path: z.z.string().optional().meta({ deprecated: true }),
|
|
9573
|
+
defaultPath: z.z.string().optional().meta({ deprecated: true }),
|
|
9556
9574
|
});
|
|
9557
9575
|
|
|
9558
9576
|
const ExternalEvent = BaseExternalEvent.extend({
|
|
@@ -9562,64 +9580,64 @@ const ExternalEvent = BaseExternalEvent.extend({
|
|
|
9562
9580
|
const FlowApiResponse = BaseFlow.extend({
|
|
9563
9581
|
integration: BaseIntegration.optional(),
|
|
9564
9582
|
appliedToIntegrations: AppliedToIntegrations(BaseFlow).optional(),
|
|
9565
|
-
dependencies:
|
|
9583
|
+
dependencies: z.z.array(z.z.any()).optional(),
|
|
9566
9584
|
});
|
|
9567
9585
|
const FindFlowsQuery = FindIntegrationLevelMembraneInterfaceQuery.omit({ parentId: true }).extend({
|
|
9568
|
-
flowId:
|
|
9569
|
-
universalFlowId:
|
|
9586
|
+
flowId: z.z.string().optional(),
|
|
9587
|
+
universalFlowId: z.z.string().optional(),
|
|
9570
9588
|
});
|
|
9571
9589
|
const CreateFlowRequest = FlowEditableProperties;
|
|
9572
9590
|
const UpdateFlowRequest = CreateFlowRequest.extend({}).partial();
|
|
9573
|
-
const ListFlowInstancesForConnectionQuery =
|
|
9591
|
+
const ListFlowInstancesForConnectionQuery = z.z
|
|
9574
9592
|
.object({
|
|
9575
|
-
flowId:
|
|
9576
|
-
flowKey:
|
|
9577
|
-
enabled:
|
|
9593
|
+
flowId: z.z.string().optional(),
|
|
9594
|
+
flowKey: z.z.string().optional(),
|
|
9595
|
+
enabled: z.z.boolean().optional(),
|
|
9578
9596
|
})
|
|
9579
9597
|
.merge(CommonInstancesListQuery);
|
|
9580
9598
|
const FindFlowInstancesQuery = ListFlowInstancesForConnectionQuery.merge(CommonIntegrationOrConnectionQuery);
|
|
9581
|
-
const ResetFlowInstanceOptions =
|
|
9582
|
-
name:
|
|
9583
|
-
nodes:
|
|
9584
|
-
allNodes:
|
|
9599
|
+
const ResetFlowInstanceOptions = z.z.object({
|
|
9600
|
+
name: z.z.boolean().optional(),
|
|
9601
|
+
nodes: z.z.record(z.z.string(), z.z.boolean()).optional(),
|
|
9602
|
+
allNodes: z.z.boolean().optional(),
|
|
9585
9603
|
});
|
|
9586
|
-
const RunFlowApiRequest =
|
|
9587
|
-
nodeKey:
|
|
9588
|
-
input:
|
|
9604
|
+
const RunFlowApiRequest = z.z.object({
|
|
9605
|
+
nodeKey: z.z.string().optional(),
|
|
9606
|
+
input: z.z.any().optional(),
|
|
9589
9607
|
});
|
|
9590
9608
|
const FlowInstanceApiResponse = BaseFlowInstance.extend({
|
|
9591
|
-
user:
|
|
9592
|
-
connection:
|
|
9593
|
-
flow:
|
|
9594
|
-
integration:
|
|
9609
|
+
user: z.z.lazy(() => z.z.any()).optional(),
|
|
9610
|
+
connection: z.z.lazy(() => z.z.any()).optional(),
|
|
9611
|
+
flow: z.z.lazy(() => FlowApiResponse).optional(),
|
|
9612
|
+
integration: z.z.lazy(() => z.z.any()).optional(),
|
|
9595
9613
|
});
|
|
9596
|
-
const CreateFlowNodeRequest =
|
|
9597
|
-
type:
|
|
9598
|
-
config:
|
|
9599
|
-
ui:
|
|
9600
|
-
links:
|
|
9614
|
+
const CreateFlowNodeRequest = z.z.object({
|
|
9615
|
+
type: z.z.string(),
|
|
9616
|
+
config: z.z.any().optional(),
|
|
9617
|
+
ui: z.z.any().optional(),
|
|
9618
|
+
links: z.z.array(z.z.lazy(() => z.z.any())).optional(),
|
|
9601
9619
|
});
|
|
9602
9620
|
|
|
9603
|
-
const CreateFlowRunRequest =
|
|
9604
|
-
flowInstanceId:
|
|
9605
|
-
nodeKey:
|
|
9606
|
-
input:
|
|
9621
|
+
const CreateFlowRunRequest = z.z.object({
|
|
9622
|
+
flowInstanceId: z.z.string(),
|
|
9623
|
+
nodeKey: z.z.string().optional(),
|
|
9624
|
+
input: z.z.any().optional(),
|
|
9607
9625
|
});
|
|
9608
9626
|
const FindFlowRunsQuery = PaginationQuery.extend({
|
|
9609
|
-
id:
|
|
9610
|
-
flowInstanceId:
|
|
9611
|
-
startNodeKey:
|
|
9612
|
-
flowId:
|
|
9613
|
-
universalFlowId:
|
|
9614
|
-
userId:
|
|
9615
|
-
state:
|
|
9616
|
-
integrationId:
|
|
9617
|
-
connectionId:
|
|
9618
|
-
startedAfter:
|
|
9619
|
-
});
|
|
9620
|
-
const FlowRunLaunchedByApi =
|
|
9621
|
-
type:
|
|
9622
|
-
ids:
|
|
9627
|
+
id: z.z.string().optional(),
|
|
9628
|
+
flowInstanceId: z.z.string().optional(),
|
|
9629
|
+
startNodeKey: z.z.string().optional(),
|
|
9630
|
+
flowId: z.z.string().optional(),
|
|
9631
|
+
universalFlowId: z.z.string().optional(),
|
|
9632
|
+
userId: z.z.string().optional(),
|
|
9633
|
+
state: z.z.enum(exports.FlowRunState).optional(),
|
|
9634
|
+
integrationId: z.z.string().optional(),
|
|
9635
|
+
connectionId: z.z.string().optional(),
|
|
9636
|
+
startedAfter: z.z.string().optional(),
|
|
9637
|
+
});
|
|
9638
|
+
const FlowRunLaunchedByApi = z.z.object({
|
|
9639
|
+
type: z.z.enum(exports.FlowRunLaunchedByTrigger),
|
|
9640
|
+
ids: z.z.array(z.z.string()).optional(),
|
|
9623
9641
|
});
|
|
9624
9642
|
const FlowRunApiResponse = BaseFlowRun.extend({
|
|
9625
9643
|
flowInstance: BaseFlowInstance.optional(),
|
|
@@ -9627,46 +9645,46 @@ const FlowRunApiResponse = BaseFlowRun.extend({
|
|
|
9627
9645
|
integration: BaseIntegration.optional(),
|
|
9628
9646
|
user: BaseCustomer.optional(),
|
|
9629
9647
|
});
|
|
9630
|
-
const FindFlowRunsResponse =
|
|
9631
|
-
items:
|
|
9632
|
-
cursor:
|
|
9633
|
-
});
|
|
9634
|
-
|
|
9635
|
-
const CreateIntegrationRequest =
|
|
9636
|
-
name:
|
|
9637
|
-
key:
|
|
9638
|
-
baseUri:
|
|
9639
|
-
logoUri:
|
|
9640
|
-
});
|
|
9641
|
-
const UpdateIntegrationRequest =
|
|
9642
|
-
name:
|
|
9643
|
-
key:
|
|
9644
|
-
baseUri:
|
|
9645
|
-
logoUri:
|
|
9646
|
-
});
|
|
9647
|
-
const FindIntegrationsQuery =
|
|
9648
|
-
const IntegrationAuthUi =
|
|
9649
|
-
schema:
|
|
9650
|
-
helpUri:
|
|
9651
|
-
});
|
|
9652
|
-
const IntegrationAuthOption =
|
|
9653
|
-
key:
|
|
9654
|
-
type:
|
|
9655
|
-
title:
|
|
9656
|
-
description:
|
|
9648
|
+
const FindFlowRunsResponse = z.z.object({
|
|
9649
|
+
items: z.z.array(FlowRunApiResponse),
|
|
9650
|
+
cursor: z.z.string().optional(),
|
|
9651
|
+
});
|
|
9652
|
+
|
|
9653
|
+
const CreateIntegrationRequest = z.z.object({
|
|
9654
|
+
name: z.z.string().optional(),
|
|
9655
|
+
key: z.z.string(),
|
|
9656
|
+
baseUri: z.z.string(),
|
|
9657
|
+
logoUri: z.z.string(),
|
|
9658
|
+
});
|
|
9659
|
+
const UpdateIntegrationRequest = z.z.object({
|
|
9660
|
+
name: z.z.string().optional(),
|
|
9661
|
+
key: z.z.string().optional(),
|
|
9662
|
+
baseUri: z.z.string().optional(),
|
|
9663
|
+
logoUri: z.z.string().optional(),
|
|
9664
|
+
});
|
|
9665
|
+
const FindIntegrationsQuery = z.z.object({}).merge(PaginationQuery).merge(SearchQuery);
|
|
9666
|
+
const IntegrationAuthUi = z.z.object({
|
|
9667
|
+
schema: z.z.any().optional(),
|
|
9668
|
+
helpUri: z.z.string().optional(),
|
|
9669
|
+
});
|
|
9670
|
+
const IntegrationAuthOption = z.z.object({
|
|
9671
|
+
key: z.z.string(),
|
|
9672
|
+
type: z.z.enum(CONNECTOR_AUTH_TYPES),
|
|
9673
|
+
title: z.z.string().optional(),
|
|
9674
|
+
description: z.z.string().optional(),
|
|
9657
9675
|
ui: IntegrationAuthUi.optional(),
|
|
9658
9676
|
});
|
|
9659
9677
|
const IntegrationApiResponse = BaseIntegration.extend({
|
|
9660
9678
|
connection: BaseConnection.optional(),
|
|
9661
|
-
spec:
|
|
9662
|
-
authOptions:
|
|
9679
|
+
spec: z.z.any().optional(),
|
|
9680
|
+
authOptions: z.z.array(IntegrationAuthOption).optional(),
|
|
9663
9681
|
parametersSchema: DataSchema.optional(),
|
|
9664
9682
|
});
|
|
9665
9683
|
|
|
9666
|
-
const PackageElementApi =
|
|
9667
|
-
id:
|
|
9668
|
-
type:
|
|
9669
|
-
element:
|
|
9684
|
+
const PackageElementApi = z.z.object({
|
|
9685
|
+
id: z.z.string(),
|
|
9686
|
+
type: z.z.enum(exports.IntegrationElementType),
|
|
9687
|
+
element: z.z.any().optional(),
|
|
9670
9688
|
});
|
|
9671
9689
|
const FindPackagesQuery = FindIntegrationLevelMembraneInterfaceQuery;
|
|
9672
9690
|
const CreatePackageRequest = PackageEditableProperties;
|
|
@@ -9677,25 +9695,25 @@ const PackageApiResponse = BasePackage.extend({
|
|
|
9677
9695
|
|
|
9678
9696
|
const ScreenApiResponse = BaseScreen;
|
|
9679
9697
|
|
|
9680
|
-
const CreateCustomerRequest =
|
|
9681
|
-
name:
|
|
9682
|
-
internalId:
|
|
9683
|
-
fields:
|
|
9684
|
-
credentials:
|
|
9698
|
+
const CreateCustomerRequest = z.z.object({
|
|
9699
|
+
name: z.z.string().optional(),
|
|
9700
|
+
internalId: z.z.string(),
|
|
9701
|
+
fields: z.z.any().optional(),
|
|
9702
|
+
credentials: z.z.any().optional(),
|
|
9685
9703
|
});
|
|
9686
|
-
const UpdateCustomerRequest =
|
|
9687
|
-
name:
|
|
9688
|
-
internalId:
|
|
9689
|
-
fields:
|
|
9690
|
-
credentials:
|
|
9704
|
+
const UpdateCustomerRequest = z.z.object({
|
|
9705
|
+
name: z.z.string().optional(),
|
|
9706
|
+
internalId: z.z.string().optional(),
|
|
9707
|
+
fields: z.z.any().optional(),
|
|
9708
|
+
credentials: z.z.any().optional(),
|
|
9691
9709
|
});
|
|
9692
|
-
const FindCustomersQuery =
|
|
9710
|
+
const FindCustomersQuery = z.z
|
|
9693
9711
|
.object({
|
|
9694
9712
|
isTest: zodBooleanCoercion().optional(),
|
|
9695
9713
|
})
|
|
9696
9714
|
.merge(PaginationQuery)
|
|
9697
9715
|
.merge(SearchQuery);
|
|
9698
|
-
const CustomerSelector =
|
|
9716
|
+
const CustomerSelector = z.z.object({ id: z.z.string() });
|
|
9699
9717
|
const CustomerApiResponse = BaseCustomer;
|
|
9700
9718
|
|
|
9701
9719
|
const FieldMappingApiResponse = BaseFieldMapping.extend({
|
|
@@ -9703,8 +9721,8 @@ const FieldMappingApiResponse = BaseFieldMapping.extend({
|
|
|
9703
9721
|
appliedToIntegrations: AppliedToIntegrations(BaseFieldMapping).optional(),
|
|
9704
9722
|
});
|
|
9705
9723
|
const FindFieldMappingsQuery = FindIntegrationLevelMembraneInterfaceQuery.omit({ parentId: true }).extend({
|
|
9706
|
-
fieldMappingId:
|
|
9707
|
-
universalFieldMappingId:
|
|
9724
|
+
fieldMappingId: z.z.string().optional(),
|
|
9725
|
+
universalFieldMappingId: z.z.string().optional(),
|
|
9708
9726
|
});
|
|
9709
9727
|
const CreateFieldMappingRequest = FieldMappingEditableProperties;
|
|
9710
9728
|
const UpdateFieldMappingRequest = CreateFieldMappingRequest.extend({}).partial();
|
|
@@ -9717,6 +9735,9 @@ const FieldMappingInstanceApiResponse = BaseFieldMappingInstance.extend({
|
|
|
9717
9735
|
dataSourceInstance: DataSourceInstanceApiResponse.optional(),
|
|
9718
9736
|
});
|
|
9719
9737
|
|
|
9738
|
+
const FindDataLinkTablesQuery = z.z.object(CommonListElementsQuery.shape);
|
|
9739
|
+
const CreateDataLinkTableRequest = DataLinkTableEditableProperties;
|
|
9740
|
+
const UpdateDataLinkTableRequest = CreateDataLinkTableRequest.partial();
|
|
9720
9741
|
const DataLinkTableApiResponse = BaseDataLinkTable;
|
|
9721
9742
|
|
|
9722
9743
|
const DataLinkTableInstanceApiResponse = BaseDataLinkTableInstance.extend({
|
|
@@ -9741,10 +9762,12 @@ const AppDataSchemaInstanceApiResponse = BaseAppDataSchemaInstance.extend({
|
|
|
9741
9762
|
});
|
|
9742
9763
|
|
|
9743
9764
|
const ListExternalEventLogRecordsQuery = CommonListElementsQuery.extend({
|
|
9744
|
-
|
|
9745
|
-
|
|
9746
|
-
|
|
9747
|
-
|
|
9765
|
+
userId: z.z.string().optional(),
|
|
9766
|
+
connectionId: z.z.string().optional(),
|
|
9767
|
+
integrationId: z.z.string().optional(),
|
|
9768
|
+
externalEventSubscriptionId: z.z.string().optional(),
|
|
9769
|
+
status: z.z.enum(exports.ExternalEventLogStatus).optional(),
|
|
9770
|
+
startedAfter: z.z.string().optional(),
|
|
9748
9771
|
});
|
|
9749
9772
|
const ExternalEventLogRecordApiResponse = BaseExternalEventLogRecord.extend({
|
|
9750
9773
|
user: BaseCustomer.optional(),
|
|
@@ -9754,10 +9777,10 @@ const ExternalEventLogRecordApiResponse = BaseExternalEventLogRecord.extend({
|
|
|
9754
9777
|
});
|
|
9755
9778
|
|
|
9756
9779
|
const ListExternalEventPullsQuery = CommonListElementsQuery.extend({
|
|
9757
|
-
connectionId:
|
|
9758
|
-
integrationId:
|
|
9759
|
-
externalEventSubscriptionId:
|
|
9760
|
-
status:
|
|
9780
|
+
connectionId: z.z.string().optional(),
|
|
9781
|
+
integrationId: z.z.string().optional(),
|
|
9782
|
+
externalEventSubscriptionId: z.z.string().optional(),
|
|
9783
|
+
status: z.z.enum(exports.ExternalEventPullStatus).optional(),
|
|
9761
9784
|
});
|
|
9762
9785
|
const ExternalEventPullApiResponse = BaseExternalEventPull.extend({
|
|
9763
9786
|
user: BaseCustomer.optional(),
|
|
@@ -9766,24 +9789,29 @@ const ExternalEventPullApiResponse = BaseExternalEventPull.extend({
|
|
|
9766
9789
|
connection: BaseConnection.optional(),
|
|
9767
9790
|
});
|
|
9768
9791
|
|
|
9792
|
+
const ListExternalEventSubscriptionsQuery = CommonListElementsQuery.extend({
|
|
9793
|
+
userId: z.z.string().optional(),
|
|
9794
|
+
connectionId: z.z.string().optional(),
|
|
9795
|
+
integrationId: z.z.string().optional(),
|
|
9796
|
+
});
|
|
9769
9797
|
const ExternalEventSubscriptionApiResponse = BaseExternalEventSubscription.extend({
|
|
9770
9798
|
user: BaseCustomer.optional(),
|
|
9771
9799
|
connection: BaseConnection.optional(),
|
|
9772
9800
|
integration: BaseIntegration.optional(),
|
|
9773
9801
|
});
|
|
9774
9802
|
|
|
9775
|
-
const AppEventLogRecordApiResponse =
|
|
9776
|
-
id:
|
|
9777
|
-
name:
|
|
9778
|
-
userId:
|
|
9803
|
+
const AppEventLogRecordApiResponse = z.z.object({
|
|
9804
|
+
id: z.z.string(),
|
|
9805
|
+
name: z.z.string().optional(),
|
|
9806
|
+
userId: z.z.string(),
|
|
9779
9807
|
user: BaseCustomer.optional(),
|
|
9780
|
-
appEventTypeId:
|
|
9808
|
+
appEventTypeId: z.z.string(),
|
|
9781
9809
|
appEventType: BaseAppEventType.optional(),
|
|
9782
|
-
appEventSubscriptionId:
|
|
9810
|
+
appEventSubscriptionId: z.z.string(),
|
|
9783
9811
|
appEventSubscription: BaseAppEventSubscription.optional(),
|
|
9784
|
-
event:
|
|
9785
|
-
datetime:
|
|
9786
|
-
launchedFlowRunIds:
|
|
9812
|
+
event: z.z.any(),
|
|
9813
|
+
datetime: z.z.string(),
|
|
9814
|
+
launchedFlowRunIds: z.z.array(z.z.string()),
|
|
9787
9815
|
});
|
|
9788
9816
|
|
|
9789
9817
|
class DependencyError extends MembraneError {
|
|
@@ -9925,71 +9953,6 @@ function hasCycles(nodes) {
|
|
|
9925
9953
|
return hasCycles;
|
|
9926
9954
|
}
|
|
9927
9955
|
|
|
9928
|
-
exports.WorkspaceElementChangeType = void 0;
|
|
9929
|
-
(function (WorkspaceElementChangeType) {
|
|
9930
|
-
WorkspaceElementChangeType["CREATE"] = "create";
|
|
9931
|
-
WorkspaceElementChangeType["UPDATE"] = "update";
|
|
9932
|
-
WorkspaceElementChangeType["DELETE"] = "delete";
|
|
9933
|
-
})(exports.WorkspaceElementChangeType || (exports.WorkspaceElementChangeType = {}));
|
|
9934
|
-
function compareWorkspaceExports(primaryExport, targetExport) {
|
|
9935
|
-
const changes = [];
|
|
9936
|
-
const result = {
|
|
9937
|
-
[exports.WorkspaceElementChangeType.CREATE]: new Set(),
|
|
9938
|
-
[exports.WorkspaceElementChangeType.UPDATE]: new Set(),
|
|
9939
|
-
[exports.WorkspaceElementChangeType.DELETE]: new Set(),
|
|
9940
|
-
};
|
|
9941
|
-
const primaryMap = new Map();
|
|
9942
|
-
const otherMap = new Map();
|
|
9943
|
-
const typeMap = new Map();
|
|
9944
|
-
const allElementTypes = new Set([...Object.keys(primaryExport), ...Object.keys(targetExport)]);
|
|
9945
|
-
for (const elementType of allElementTypes) {
|
|
9946
|
-
const type = elementType;
|
|
9947
|
-
const primaryElements = primaryExport[type] || [];
|
|
9948
|
-
for (const element of primaryElements) {
|
|
9949
|
-
primaryMap.set(element.uuid, element);
|
|
9950
|
-
typeMap.set(element.uuid, type);
|
|
9951
|
-
}
|
|
9952
|
-
const otherElements = targetExport[type] || [];
|
|
9953
|
-
for (const element of otherElements) {
|
|
9954
|
-
otherMap.set(element.uuid, element);
|
|
9955
|
-
typeMap.set(element.uuid, type);
|
|
9956
|
-
}
|
|
9957
|
-
}
|
|
9958
|
-
for (const [uuid] of typeMap) {
|
|
9959
|
-
const primaryElement = primaryMap.get(uuid);
|
|
9960
|
-
const otherElement = otherMap.get(uuid);
|
|
9961
|
-
const change = compareElementExports(primaryElement, otherElement);
|
|
9962
|
-
if (change) {
|
|
9963
|
-
changes.push(change);
|
|
9964
|
-
}
|
|
9965
|
-
}
|
|
9966
|
-
changes.forEach((change) => {
|
|
9967
|
-
result[change.type].add(change.uuid);
|
|
9968
|
-
});
|
|
9969
|
-
return result;
|
|
9970
|
-
}
|
|
9971
|
-
function compareElementExports(primaryElement, targetElement) {
|
|
9972
|
-
if (primaryElement && !targetElement) {
|
|
9973
|
-
return {
|
|
9974
|
-
type: exports.WorkspaceElementChangeType.CREATE,
|
|
9975
|
-
uuid: primaryElement.uuid,
|
|
9976
|
-
};
|
|
9977
|
-
}
|
|
9978
|
-
if (!primaryElement && targetElement) {
|
|
9979
|
-
return {
|
|
9980
|
-
type: exports.WorkspaceElementChangeType.DELETE,
|
|
9981
|
-
uuid: targetElement.uuid,
|
|
9982
|
-
};
|
|
9983
|
-
}
|
|
9984
|
-
if (primaryElement && targetElement && !deepEqual(primaryElement, targetElement)) {
|
|
9985
|
-
return {
|
|
9986
|
-
type: exports.WorkspaceElementChangeType.UPDATE,
|
|
9987
|
-
uuid: primaryElement.uuid,
|
|
9988
|
-
};
|
|
9989
|
-
}
|
|
9990
|
-
return undefined;
|
|
9991
|
-
}
|
|
9992
|
-
|
|
9993
9956
|
const WorkspaceElementSpecs = {
|
|
9994
9957
|
[exports.WorkspaceElementType.Customer]: {
|
|
9995
9958
|
type: exports.WorkspaceElementType.Customer,
|
|
@@ -10139,6 +10102,10 @@ const WorkspaceElementSpecs = {
|
|
|
10139
10102
|
apiPath: 'data-link-tables',
|
|
10140
10103
|
name: 'Data Link Table',
|
|
10141
10104
|
namePlural: 'Data Link Tables',
|
|
10105
|
+
editablePropertiesSchema: DataLinkTableEditableProperties,
|
|
10106
|
+
exportPropertiesSchema: DataLinkTableExportProperties,
|
|
10107
|
+
apiResponseSchema: DataLinkTableApiResponse,
|
|
10108
|
+
findQuerySchema: FindDataLinkTablesQuery,
|
|
10142
10109
|
isMembraneInterface: true,
|
|
10143
10110
|
},
|
|
10144
10111
|
[exports.WorkspaceElementType.DataLinkTableInstance]: {
|
|
@@ -10155,6 +10122,8 @@ const WorkspaceElementSpecs = {
|
|
|
10155
10122
|
name: 'App Event Type',
|
|
10156
10123
|
namePlural: 'App Event Types',
|
|
10157
10124
|
isMembraneInterface: true,
|
|
10125
|
+
exportPropertiesSchema: AppEventTypeExportProperties,
|
|
10126
|
+
editablePropertiesSchema: AppEventTypeEditableProperties,
|
|
10158
10127
|
},
|
|
10159
10128
|
[exports.WorkspaceElementType.AppEventSubscription]: {
|
|
10160
10129
|
type: exports.WorkspaceElementType.AppEventSubscription,
|
|
@@ -10175,6 +10144,8 @@ const WorkspaceElementSpecs = {
|
|
|
10175
10144
|
name: 'App Data Schema',
|
|
10176
10145
|
namePlural: 'App Data Schemas',
|
|
10177
10146
|
isMembraneInterface: true,
|
|
10147
|
+
exportPropertiesSchema: AppDataSchemaExportProperties,
|
|
10148
|
+
editablePropertiesSchema: AppDataSchemaEditableProperties,
|
|
10178
10149
|
},
|
|
10179
10150
|
[exports.WorkspaceElementType.AppDataSchemaInstance]: {
|
|
10180
10151
|
type: exports.WorkspaceElementType.AppDataSchemaInstance,
|
|
@@ -10401,7 +10372,7 @@ function extractMembraneErrorData(error) {
|
|
|
10401
10372
|
},
|
|
10402
10373
|
};
|
|
10403
10374
|
}
|
|
10404
|
-
if (error instanceof
|
|
10375
|
+
if (error instanceof z.ZodError) {
|
|
10405
10376
|
data.message = v4.fromError(error).toString();
|
|
10406
10377
|
}
|
|
10407
10378
|
return data;
|
|
@@ -10644,6 +10615,11 @@ function getFlowRunVariableSchema() {
|
|
|
10644
10615
|
};
|
|
10645
10616
|
}
|
|
10646
10617
|
|
|
10618
|
+
exports.WorkspaceType = void 0;
|
|
10619
|
+
(function (WorkspaceType) {
|
|
10620
|
+
WorkspaceType["PRODUCTION"] = "production";
|
|
10621
|
+
WorkspaceType["DEVELOPMENT"] = "development";
|
|
10622
|
+
})(exports.WorkspaceType || (exports.WorkspaceType = {}));
|
|
10647
10623
|
exports.WorkspaceOnboardingStep = void 0;
|
|
10648
10624
|
(function (WorkspaceOnboardingStep) {
|
|
10649
10625
|
WorkspaceOnboardingStep["AddConnectors"] = "add-connectors";
|
|
@@ -10663,11 +10639,83 @@ exports.LimitUnits = void 0;
|
|
|
10663
10639
|
LimitUnits["Msec"] = "msec";
|
|
10664
10640
|
LimitUnits["Mb"] = "Mb";
|
|
10665
10641
|
})(exports.LimitUnits || (exports.LimitUnits = {}));
|
|
10666
|
-
|
|
10667
|
-
|
|
10668
|
-
|
|
10669
|
-
|
|
10670
|
-
})
|
|
10642
|
+
const WorkspaceLimit = z.object({
|
|
10643
|
+
value: z.number().optional(),
|
|
10644
|
+
defaultValue: z.number().optional(),
|
|
10645
|
+
unit: z.nativeEnum(exports.LimitUnits),
|
|
10646
|
+
});
|
|
10647
|
+
const WorkspaceLimitsSchema = z.object({
|
|
10648
|
+
parallelEventPulls: WorkspaceLimit.optional(),
|
|
10649
|
+
parallelIncrementalEventPullsPerConnection: WorkspaceLimit.optional(),
|
|
10650
|
+
parallelFullSyncEventPullsPerConnection: WorkspaceLimit.optional(),
|
|
10651
|
+
parallelFlowRuns: WorkspaceLimit.optional(),
|
|
10652
|
+
parallelFlowRunsPerConnection: WorkspaceLimit.optional(),
|
|
10653
|
+
parallelApiRequests: WorkspaceLimit.optional(),
|
|
10654
|
+
parallelSseRequests: WorkspaceLimit.optional(),
|
|
10655
|
+
parallelBackgroundJobs: WorkspaceLimit.optional(),
|
|
10656
|
+
parallelEventLogs: WorkspaceLimit.optional(),
|
|
10657
|
+
parallelEventLogsPerConnection: WorkspaceLimit.optional(),
|
|
10658
|
+
ParallelWriteDatabaseRequests: WorkspaceLimit.optional(),
|
|
10659
|
+
fileUploadsMbPerHour: WorkspaceLimit.optional(),
|
|
10660
|
+
apiRequestsPerSecond: WorkspaceLimit.optional(),
|
|
10661
|
+
apiRequestsPerHour: WorkspaceLimit.optional(),
|
|
10662
|
+
webhookRequestsPerSecond: WorkspaceLimit.optional(),
|
|
10663
|
+
webhookRequestsPerHour: WorkspaceLimit.optional(),
|
|
10664
|
+
workspaceElementCreationsPerSecond: WorkspaceLimit.optional(),
|
|
10665
|
+
workspaceElementCreationsPerHour: WorkspaceLimit.optional(),
|
|
10666
|
+
createDatabaseRequestsPerSecond: WorkspaceLimit.optional(),
|
|
10667
|
+
totalNumberOfCustomers: WorkspaceLimit.optional(),
|
|
10668
|
+
totalNumberOfConnections: WorkspaceLimit.optional(),
|
|
10669
|
+
totalNumberOfWorkspaceElements: WorkspaceLimit.optional(),
|
|
10670
|
+
parallelApiRequestsPerCustomer: WorkspaceLimit.optional(),
|
|
10671
|
+
parallelBackgroundJobsPerCustomer: WorkspaceLimit.optional(),
|
|
10672
|
+
apiRequestsPerCustomerPerSecond: WorkspaceLimit.optional(),
|
|
10673
|
+
apiRequestsPerCustomerPerHour: WorkspaceLimit.optional(),
|
|
10674
|
+
webhookRequestsPerCustomerPerSecond: WorkspaceLimit.optional(),
|
|
10675
|
+
webhookRequestsPerCustomerPerHour: WorkspaceLimit.optional(),
|
|
10676
|
+
externalEventsPerCustomerPerDay: WorkspaceLimit.optional(),
|
|
10677
|
+
createDatabaseRequestsPerCustomerPerSecond: WorkspaceLimit.optional(),
|
|
10678
|
+
updateDatabaseRequestsPerCustomerPerSecond: WorkspaceLimit.optional(),
|
|
10679
|
+
parallelWriteDatabaseRequestsPerCustomer: WorkspaceLimit.optional(),
|
|
10680
|
+
});
|
|
10681
|
+
const EngineWorkspaceSettingsSchema = z.object({
|
|
10682
|
+
enableApiLogs: z.boolean().optional(),
|
|
10683
|
+
enableWebhookLogs: z.boolean().optional(),
|
|
10684
|
+
enableActionRunLogs: z.boolean().optional(),
|
|
10685
|
+
disableSecretKeyAuth: z.boolean().optional(),
|
|
10686
|
+
});
|
|
10687
|
+
const WorkspacePublicKey = z.object({
|
|
10688
|
+
name: z.string(),
|
|
10689
|
+
publicKey: z.string(),
|
|
10690
|
+
});
|
|
10691
|
+
const AppSchema = z.object({
|
|
10692
|
+
id: z.string(),
|
|
10693
|
+
key: z.string(),
|
|
10694
|
+
logoUri: z.string().optional(),
|
|
10695
|
+
userFieldsSchema: z.any().optional(),
|
|
10696
|
+
apiBaseUri: z.string().optional(),
|
|
10697
|
+
webhookUri: z.string().optional(),
|
|
10698
|
+
publicKey: z.string().optional(),
|
|
10699
|
+
publicKeys: z.array(WorkspacePublicKey).optional(),
|
|
10700
|
+
enabledWebhookEvents: z.array(z.string()).optional(),
|
|
10701
|
+
auth: z.any().optional(),
|
|
10702
|
+
credentialsSchema: z.any().optional(),
|
|
10703
|
+
apiClient: z.any().optional(),
|
|
10704
|
+
apiRequestHeaders: z.record(z.string(), z.any()).optional(),
|
|
10705
|
+
apiRequestQuery: z.record(z.string(), z.any()).optional(),
|
|
10706
|
+
isOnPrem: z.boolean().optional(),
|
|
10707
|
+
connectorBaseUri: z.string().optional(),
|
|
10708
|
+
connectorRevision: z.string().optional(),
|
|
10709
|
+
featureFlags: z.array(z.string()).optional(),
|
|
10710
|
+
limits: WorkspaceLimitsSchema.optional(),
|
|
10711
|
+
settings: EngineWorkspaceSettingsSchema.optional(),
|
|
10712
|
+
type: z.nativeEnum(exports.WorkspaceType).optional(),
|
|
10713
|
+
jwksUri: z.string().nullable().optional(),
|
|
10714
|
+
isTrial: z.boolean().optional(),
|
|
10715
|
+
isThrottled: z.boolean().optional(),
|
|
10716
|
+
isDisabled: z.boolean().optional(),
|
|
10717
|
+
isBackgroundJobsDisabled: z.boolean().optional(),
|
|
10718
|
+
});
|
|
10671
10719
|
|
|
10672
10720
|
const PARALLEL_EXECUTION_LIMITS = [
|
|
10673
10721
|
'parallelEventPulls',
|
|
@@ -10706,129 +10754,157 @@ const EDITABLE_LIMITS = [
|
|
|
10706
10754
|
'parallelFlowRunsPerConnection',
|
|
10707
10755
|
];
|
|
10708
10756
|
|
|
10709
|
-
const OrgWorkspaceSchema =
|
|
10710
|
-
id:
|
|
10711
|
-
name:
|
|
10712
|
-
orgId:
|
|
10713
|
-
apiBaseUri:
|
|
10714
|
-
key:
|
|
10715
|
-
secret:
|
|
10716
|
-
createdAt:
|
|
10717
|
-
updatedAt:
|
|
10718
|
-
engineAccessToken:
|
|
10719
|
-
onboardingStep:
|
|
10720
|
-
trialEndDate:
|
|
10721
|
-
featureFlags:
|
|
10722
|
-
logoUri:
|
|
10723
|
-
});
|
|
10724
|
-
const OrgWorkspaceUser =
|
|
10725
|
-
id:
|
|
10726
|
-
workspaceId:
|
|
10727
|
-
testCustomerId:
|
|
10728
|
-
userId:
|
|
10729
|
-
role:
|
|
10730
|
-
});
|
|
10731
|
-
|
|
10732
|
-
const WorkspaceLimit = zod.z.object({
|
|
10733
|
-
value: zod.z.number().optional(),
|
|
10734
|
-
defaultValue: zod.z.number().optional(),
|
|
10735
|
-
unit: zod.z.nativeEnum(exports.LimitUnits),
|
|
10736
|
-
});
|
|
10737
|
-
const WorkspaceLimitsSchema = zod.z.object({
|
|
10738
|
-
parallelEventPulls: WorkspaceLimit.optional(),
|
|
10739
|
-
parallelIncrementalEventPullsPerConnection: WorkspaceLimit.optional(),
|
|
10740
|
-
parallelFullSyncEventPullsPerConnection: WorkspaceLimit.optional(),
|
|
10741
|
-
parallelFlowRuns: WorkspaceLimit.optional(),
|
|
10742
|
-
parallelFlowRunsPerConnection: WorkspaceLimit.optional(),
|
|
10743
|
-
parallelApiRequests: WorkspaceLimit.optional(),
|
|
10744
|
-
parallelSseRequests: WorkspaceLimit.optional(),
|
|
10745
|
-
parallelBackgroundJobs: WorkspaceLimit.optional(),
|
|
10746
|
-
parallelEventLogs: WorkspaceLimit.optional(),
|
|
10747
|
-
parallelEventLogsPerConnection: WorkspaceLimit.optional(),
|
|
10748
|
-
ParallelWriteDatabaseRequests: WorkspaceLimit.optional(),
|
|
10749
|
-
fileUploadsMbPerHour: WorkspaceLimit.optional(),
|
|
10750
|
-
apiRequestsPerSecond: WorkspaceLimit.optional(),
|
|
10751
|
-
apiRequestsPerHour: WorkspaceLimit.optional(),
|
|
10752
|
-
webhookRequestsPerSecond: WorkspaceLimit.optional(),
|
|
10753
|
-
webhookRequestsPerHour: WorkspaceLimit.optional(),
|
|
10754
|
-
workspaceElementCreationsPerSecond: WorkspaceLimit.optional(),
|
|
10755
|
-
workspaceElementCreationsPerHour: WorkspaceLimit.optional(),
|
|
10756
|
-
createDatabaseRequestsPerSecond: WorkspaceLimit.optional(),
|
|
10757
|
-
totalNumberOfCustomers: WorkspaceLimit.optional(),
|
|
10758
|
-
totalNumberOfConnections: WorkspaceLimit.optional(),
|
|
10759
|
-
totalNumberOfWorkspaceElements: WorkspaceLimit.optional(),
|
|
10760
|
-
parallelApiRequestsPerCustomer: WorkspaceLimit.optional(),
|
|
10761
|
-
parallelBackgroundJobsPerCustomer: WorkspaceLimit.optional(),
|
|
10762
|
-
apiRequestsPerCustomerPerSecond: WorkspaceLimit.optional(),
|
|
10763
|
-
apiRequestsPerCustomerPerHour: WorkspaceLimit.optional(),
|
|
10764
|
-
webhookRequestsPerCustomerPerSecond: WorkspaceLimit.optional(),
|
|
10765
|
-
webhookRequestsPerCustomerPerHour: WorkspaceLimit.optional(),
|
|
10766
|
-
externalEventsPerCustomerPerDay: WorkspaceLimit.optional(),
|
|
10767
|
-
createDatabaseRequestsPerCustomerPerSecond: WorkspaceLimit.optional(),
|
|
10768
|
-
updateDatabaseRequestsPerCustomerPerSecond: WorkspaceLimit.optional(),
|
|
10769
|
-
parallelWriteDatabaseRequestsPerCustomer: WorkspaceLimit.optional(),
|
|
10757
|
+
const OrgWorkspaceSchema = z.z.object({
|
|
10758
|
+
id: z.z.string(),
|
|
10759
|
+
name: z.z.string(),
|
|
10760
|
+
orgId: z.z.string(),
|
|
10761
|
+
apiBaseUri: z.z.string().optional(),
|
|
10762
|
+
key: z.z.string(),
|
|
10763
|
+
secret: z.z.string(),
|
|
10764
|
+
createdAt: z.z.coerce.date(),
|
|
10765
|
+
updatedAt: z.z.coerce.date(),
|
|
10766
|
+
engineAccessToken: z.z.string().optional(),
|
|
10767
|
+
onboardingStep: z.z.nativeEnum(exports.WorkspaceOnboardingStep).optional(),
|
|
10768
|
+
trialEndDate: z.z.string().optional(),
|
|
10769
|
+
featureFlags: z.z.array(z.z.string()).optional(),
|
|
10770
|
+
logoUri: z.z.string().optional(),
|
|
10771
|
+
});
|
|
10772
|
+
const OrgWorkspaceUser = z.z.object({
|
|
10773
|
+
id: z.z.string(),
|
|
10774
|
+
workspaceId: z.z.string(),
|
|
10775
|
+
testCustomerId: z.z.string(),
|
|
10776
|
+
userId: z.z.string(),
|
|
10777
|
+
role: z.z.string(),
|
|
10770
10778
|
});
|
|
10771
|
-
|
|
10772
|
-
|
|
10773
|
-
|
|
10774
|
-
|
|
10775
|
-
|
|
10776
|
-
|
|
10777
|
-
|
|
10778
|
-
|
|
10779
|
-
|
|
10780
|
-
|
|
10781
|
-
|
|
10782
|
-
|
|
10783
|
-
|
|
10784
|
-
|
|
10785
|
-
|
|
10786
|
-
|
|
10787
|
-
|
|
10788
|
-
|
|
10789
|
-
|
|
10790
|
-
|
|
10791
|
-
|
|
10792
|
-
|
|
10793
|
-
|
|
10794
|
-
|
|
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
|
-
|
|
10779
|
+
|
|
10780
|
+
exports.WorkspaceElementChangeType = void 0;
|
|
10781
|
+
(function (WorkspaceElementChangeType) {
|
|
10782
|
+
WorkspaceElementChangeType["CREATE"] = "create";
|
|
10783
|
+
WorkspaceElementChangeType["UPDATE"] = "update";
|
|
10784
|
+
WorkspaceElementChangeType["DELETE"] = "delete";
|
|
10785
|
+
})(exports.WorkspaceElementChangeType || (exports.WorkspaceElementChangeType = {}));
|
|
10786
|
+
function compareWorkspaceExports(baseExport, targetExport) {
|
|
10787
|
+
const changes = [];
|
|
10788
|
+
const comparison = {
|
|
10789
|
+
[exports.WorkspaceElementChangeType.CREATE]: new Set(),
|
|
10790
|
+
[exports.WorkspaceElementChangeType.UPDATE]: new Set(),
|
|
10791
|
+
[exports.WorkspaceElementChangeType.DELETE]: new Set(),
|
|
10792
|
+
};
|
|
10793
|
+
const sourceUuidByTargetUuid = new Map();
|
|
10794
|
+
const integrationMap = buildIntegrationsMap([
|
|
10795
|
+
...(baseExport[exports.WorkspaceElementType.Integration] || []),
|
|
10796
|
+
...(targetExport[exports.WorkspaceElementType.Integration] || []),
|
|
10797
|
+
]);
|
|
10798
|
+
const baseMap = new Map();
|
|
10799
|
+
const targetMap = new Map();
|
|
10800
|
+
const allSelectors = new Set();
|
|
10801
|
+
const allElementTypes = new Set([...Object.keys(baseExport), ...Object.keys(targetExport)]);
|
|
10802
|
+
for (const elementType of allElementTypes) {
|
|
10803
|
+
const type = elementType;
|
|
10804
|
+
const baseElements = baseExport[type] || [];
|
|
10805
|
+
for (const element of baseElements) {
|
|
10806
|
+
const intIdentifier = getIntegrationIdentifier(element, integrationMap);
|
|
10807
|
+
const selector = getElementSelector(type, element.key, intIdentifier);
|
|
10808
|
+
baseMap.set(selector, element);
|
|
10809
|
+
allSelectors.add(selector);
|
|
10810
|
+
}
|
|
10811
|
+
const targetElements = targetExport[type] || [];
|
|
10812
|
+
for (const element of targetElements) {
|
|
10813
|
+
const intIdentifier = getIntegrationIdentifier(element, integrationMap);
|
|
10814
|
+
const selector = getElementSelector(type, element.key, intIdentifier);
|
|
10815
|
+
targetMap.set(selector, element);
|
|
10816
|
+
allSelectors.add(selector);
|
|
10817
|
+
}
|
|
10818
|
+
}
|
|
10819
|
+
for (const selector of allSelectors) {
|
|
10820
|
+
const baseElement = baseMap.get(selector);
|
|
10821
|
+
const targetElement = targetMap.get(selector);
|
|
10822
|
+
if (baseElement && targetElement && baseElement.uuid !== targetElement.uuid) {
|
|
10823
|
+
sourceUuidByTargetUuid.set(targetElement.uuid, baseElement.uuid);
|
|
10824
|
+
}
|
|
10825
|
+
const change = compareElementExports(baseElement, targetElement);
|
|
10826
|
+
if (change) {
|
|
10827
|
+
changes.push(change);
|
|
10828
|
+
}
|
|
10829
|
+
}
|
|
10830
|
+
changes.forEach((change) => {
|
|
10831
|
+
comparison[change.type].add(change.uuid);
|
|
10832
|
+
});
|
|
10833
|
+
return { comparison, sourceUuidByTargetUuid };
|
|
10834
|
+
}
|
|
10835
|
+
function compareElementExports(baseElement, targetElement) {
|
|
10836
|
+
if (baseElement && !targetElement) {
|
|
10837
|
+
return {
|
|
10838
|
+
type: exports.WorkspaceElementChangeType.DELETE,
|
|
10839
|
+
uuid: baseElement.uuid,
|
|
10840
|
+
};
|
|
10841
|
+
}
|
|
10842
|
+
if (!baseElement && targetElement) {
|
|
10843
|
+
return {
|
|
10844
|
+
type: exports.WorkspaceElementChangeType.CREATE,
|
|
10845
|
+
uuid: targetElement.uuid,
|
|
10846
|
+
};
|
|
10847
|
+
}
|
|
10848
|
+
if (baseElement && targetElement && !deepEqual(baseElement, targetElement)) {
|
|
10849
|
+
return {
|
|
10850
|
+
type: exports.WorkspaceElementChangeType.UPDATE,
|
|
10851
|
+
uuid: targetElement.uuid,
|
|
10852
|
+
};
|
|
10853
|
+
}
|
|
10854
|
+
return undefined;
|
|
10855
|
+
}
|
|
10856
|
+
function getIntegrationIdentifier(element, integrationMap) {
|
|
10857
|
+
let integrationIdentifier;
|
|
10858
|
+
if (element.integrationUuid) {
|
|
10859
|
+
integrationIdentifier = integrationMap.get(element.integrationUuid);
|
|
10860
|
+
}
|
|
10861
|
+
if (element.integrationId) {
|
|
10862
|
+
integrationIdentifier = integrationMap.get(element.integrationId);
|
|
10863
|
+
}
|
|
10864
|
+
return integrationIdentifier || element.integrationUuid || element.integrationId;
|
|
10865
|
+
}
|
|
10866
|
+
function getElementSelector(type, key, integrationIdentifier) {
|
|
10867
|
+
if (integrationIdentifier) {
|
|
10868
|
+
return `${type}:${key}:${integrationIdentifier}`;
|
|
10869
|
+
}
|
|
10870
|
+
return `${type}:${key}`;
|
|
10871
|
+
}
|
|
10872
|
+
function buildIntegrationsMap(integrations) {
|
|
10873
|
+
const map = new Map();
|
|
10874
|
+
for (const integration of integrations) {
|
|
10875
|
+
if (integration.uuid && integration.key) {
|
|
10876
|
+
map.set(integration.uuid, integration.key);
|
|
10877
|
+
continue;
|
|
10878
|
+
}
|
|
10879
|
+
if (integration.id && integration.key) {
|
|
10880
|
+
map.set(integration.id.toString(), integration.key);
|
|
10881
|
+
}
|
|
10882
|
+
}
|
|
10883
|
+
return map;
|
|
10884
|
+
}
|
|
10885
|
+
|
|
10886
|
+
const PlatformUserSchema = z.z.object({
|
|
10887
|
+
id: z.z.string(),
|
|
10888
|
+
email: z.z.string(),
|
|
10889
|
+
name: z.z.string(),
|
|
10890
|
+
trialRequested: z.z.boolean(),
|
|
10891
|
+
introVideoStatus: z.z.string().optional(),
|
|
10892
|
+
isEligible: z.z.boolean().optional(),
|
|
10893
|
+
emailVerified: z.z.boolean().optional(),
|
|
10894
|
+
});
|
|
10895
|
+
const FullPlatformUser = z.z.object({
|
|
10896
|
+
id: z.z.string(),
|
|
10897
|
+
auth0Id: z.z.string().optional(),
|
|
10898
|
+
email: z.z.string(),
|
|
10899
|
+
name: z.z.string(),
|
|
10900
|
+
defaultAccountId: z.z.string().optional(),
|
|
10901
|
+
defaultWorkspaceId: z.z.string().optional(),
|
|
10902
|
+
isAdmin: z.z.boolean().optional(),
|
|
10903
|
+
trialRequested: z.z.boolean(),
|
|
10904
|
+
pat: z.z.string().optional(),
|
|
10905
|
+
introVideoStatus: z.z.string().optional(),
|
|
10906
|
+
isEligible: z.z.boolean().optional(),
|
|
10907
|
+
emailVerified: z.z.boolean().optional(),
|
|
10832
10908
|
});
|
|
10833
10909
|
|
|
10834
10910
|
exports.OrgLimitsType = void 0;
|
|
@@ -10848,54 +10924,58 @@ exports.OrgUserStatus = void 0;
|
|
|
10848
10924
|
OrgUserStatus["Invited"] = "invited";
|
|
10849
10925
|
OrgUserStatus["Active"] = "active";
|
|
10850
10926
|
})(exports.OrgUserStatus || (exports.OrgUserStatus = {}));
|
|
10851
|
-
const OrgLimits =
|
|
10927
|
+
const OrgLimits = z.z
|
|
10852
10928
|
.object({
|
|
10853
|
-
numberOfWorkspaces:
|
|
10854
|
-
todayUsage:
|
|
10855
|
-
lastThirtyDayUsage:
|
|
10856
|
-
membraneAgentLastThirtyDaysUsage:
|
|
10857
|
-
membraneExpertCreditsCapPerMonth:
|
|
10929
|
+
numberOfWorkspaces: z.z.number().optional(),
|
|
10930
|
+
todayUsage: z.z.number().optional(),
|
|
10931
|
+
lastThirtyDayUsage: z.z.number().optional(),
|
|
10932
|
+
membraneAgentLastThirtyDaysUsage: z.z.number().optional(),
|
|
10933
|
+
membraneExpertCreditsCapPerMonth: z.z.number().nullable().optional(),
|
|
10858
10934
|
})
|
|
10859
10935
|
.optional();
|
|
10860
|
-
const MembraneAgentKey =
|
|
10936
|
+
const MembraneAgentKey = z.z
|
|
10861
10937
|
.object({
|
|
10862
|
-
key:
|
|
10863
|
-
expiresAt:
|
|
10938
|
+
key: z.z.string().optional(),
|
|
10939
|
+
expiresAt: z.z.string().optional(),
|
|
10864
10940
|
})
|
|
10865
10941
|
.optional();
|
|
10866
|
-
const OrgSchema =
|
|
10867
|
-
id:
|
|
10868
|
-
key:
|
|
10869
|
-
name:
|
|
10870
|
-
createdAt:
|
|
10871
|
-
updatedAt:
|
|
10872
|
-
trialEndDate:
|
|
10873
|
-
lastTrialExtensionDate:
|
|
10942
|
+
const OrgSchema = z.z.object({
|
|
10943
|
+
id: z.z.string(),
|
|
10944
|
+
key: z.z.string(),
|
|
10945
|
+
name: z.z.string(),
|
|
10946
|
+
createdAt: z.z.coerce.date(),
|
|
10947
|
+
updatedAt: z.z.coerce.date(),
|
|
10948
|
+
trialEndDate: z.z.string().optional(),
|
|
10949
|
+
lastTrialExtensionDate: z.z.string().optional(),
|
|
10874
10950
|
limits: OrgLimits,
|
|
10875
|
-
thirtyDayTotalCredits:
|
|
10876
|
-
lastThirtyDayUsagePercent:
|
|
10877
|
-
todayUsagePercent:
|
|
10878
|
-
domains:
|
|
10879
|
-
featureFlags:
|
|
10880
|
-
|
|
10881
|
-
paidAiCredits:
|
|
10882
|
-
stripeCustomerId:
|
|
10883
|
-
|
|
10884
|
-
|
|
10951
|
+
thirtyDayTotalCredits: z.z.number().optional(),
|
|
10952
|
+
lastThirtyDayUsagePercent: z.z.number().optional(),
|
|
10953
|
+
todayUsagePercent: z.z.number().optional(),
|
|
10954
|
+
domains: z.z.array(z.z.string()).optional(),
|
|
10955
|
+
featureFlags: z.z.array(z.z.string()).optional(),
|
|
10956
|
+
freeAiCredits: z.z.number().optional(),
|
|
10957
|
+
paidAiCredits: z.z.number().optional(),
|
|
10958
|
+
stripeCustomerId: z.z.string().optional(),
|
|
10959
|
+
autoChargeEnabled: z.z.boolean().optional(),
|
|
10960
|
+
autoChargeThreshold: z.z.number().optional(),
|
|
10961
|
+
autoChargePurchaseAmount: z.z.number().optional(),
|
|
10962
|
+
autoChargeMonthlyLimit: z.z.number().optional(),
|
|
10963
|
+
});
|
|
10964
|
+
const AccountResponse = z.z.object({
|
|
10885
10965
|
user: FullPlatformUser.optional(),
|
|
10886
10966
|
workspace: OrgWorkspaceSchema.optional(),
|
|
10887
|
-
workspaces:
|
|
10967
|
+
workspaces: z.z.array(OrgWorkspaceSchema).optional(),
|
|
10888
10968
|
workspaceUser: OrgWorkspaceUser.extend({
|
|
10889
|
-
testCustomerId:
|
|
10969
|
+
testCustomerId: z.z.string(),
|
|
10890
10970
|
}).optional(),
|
|
10891
10971
|
engineTestUser: BaseCustomer.optional(),
|
|
10892
10972
|
testCustomer: BaseCustomer.optional(),
|
|
10893
10973
|
engineApp: AppSchema.optional(),
|
|
10894
|
-
superAdminToken:
|
|
10895
|
-
orgs:
|
|
10896
|
-
permissions:
|
|
10897
|
-
message:
|
|
10898
|
-
error:
|
|
10974
|
+
superAdminToken: z.z.string().optional().nullable(),
|
|
10975
|
+
orgs: z.z.array(OrgSchema).optional(),
|
|
10976
|
+
permissions: z.z.array(z.z.string()).optional(),
|
|
10977
|
+
message: z.z.string().optional(),
|
|
10978
|
+
error: z.z.string().optional(),
|
|
10899
10979
|
});
|
|
10900
10980
|
|
|
10901
10981
|
exports.WebhookTypeEnum = void 0;
|
|
@@ -10906,6 +10986,7 @@ exports.WebhookTypeEnum = void 0;
|
|
|
10906
10986
|
WebhookTypeEnum["TASK_CREATED"] = "task-created";
|
|
10907
10987
|
WebhookTypeEnum["TASK_UPDATED"] = "task-updated";
|
|
10908
10988
|
WebhookTypeEnum["TASK_ACTIVITY_CREATED"] = "task-activity-created";
|
|
10989
|
+
WebhookTypeEnum["CONNECTOR_VERSION_PUBLISHED"] = "connector-version-published";
|
|
10909
10990
|
})(exports.WebhookTypeEnum || (exports.WebhookTypeEnum = {}));
|
|
10910
10991
|
|
|
10911
10992
|
exports.AlertStatus = void 0;
|
|
@@ -12577,6 +12658,7 @@ class ExternalEventSubscriptionAccessor {
|
|
|
12577
12658
|
exports.WorkspaceSyncEventType = void 0;
|
|
12578
12659
|
(function (WorkspaceSyncEventType) {
|
|
12579
12660
|
WorkspaceSyncEventType["ElementUpdate"] = "element-update";
|
|
12661
|
+
WorkspaceSyncEventType["Connected"] = "connected";
|
|
12580
12662
|
})(exports.WorkspaceSyncEventType || (exports.WorkspaceSyncEventType = {}));
|
|
12581
12663
|
exports.ConnectorFileUpdateType = void 0;
|
|
12582
12664
|
(function (ConnectorFileUpdateType) {
|
|
@@ -12594,44 +12676,44 @@ exports.ScenarioTemplateCategory = void 0;
|
|
|
12594
12676
|
ScenarioTemplateCategory["UnifiedApi"] = "unified-api";
|
|
12595
12677
|
ScenarioTemplateCategory["DataEnrichment"] = "data-enrichment";
|
|
12596
12678
|
})(exports.ScenarioTemplateCategory || (exports.ScenarioTemplateCategory = {}));
|
|
12597
|
-
const HandyScenarioTemplateElement =
|
|
12598
|
-
type:
|
|
12599
|
-
integration:
|
|
12600
|
-
integrations:
|
|
12601
|
-
fields:
|
|
12679
|
+
const HandyScenarioTemplateElement = z.z.object({
|
|
12680
|
+
type: z.z.string(),
|
|
12681
|
+
integration: z.z.object({ key: z.z.string(), connectorId: z.z.string() }).optional(),
|
|
12682
|
+
integrations: z.z.array(z.z.object({ key: z.z.string(), connectorId: z.z.string() })).optional(),
|
|
12683
|
+
fields: z.z
|
|
12602
12684
|
.object({
|
|
12603
|
-
key:
|
|
12604
|
-
name:
|
|
12685
|
+
key: z.z.string(),
|
|
12686
|
+
name: z.z.string(),
|
|
12605
12687
|
})
|
|
12606
|
-
.and(
|
|
12607
|
-
});
|
|
12608
|
-
const withIntegrationKeys = (schema) => schema.and(
|
|
12609
|
-
const ElementsExportFields =
|
|
12610
|
-
flows:
|
|
12611
|
-
actions:
|
|
12612
|
-
fieldMappings:
|
|
12613
|
-
dataSources:
|
|
12614
|
-
dataLinkTables:
|
|
12615
|
-
appEventTypes:
|
|
12616
|
-
appDataSchemas:
|
|
12617
|
-
});
|
|
12618
|
-
const ScenarioTemplateElements = ElementsExportFields.and(
|
|
12619
|
-
integrations:
|
|
12688
|
+
.and(z.z.record(z.z.string(), z.z.any())),
|
|
12689
|
+
});
|
|
12690
|
+
const withIntegrationKeys = (schema) => schema.and(z.z.object({ integrationKeys: z.z.array(z.z.string()).optional() }));
|
|
12691
|
+
const ElementsExportFields = z.z.object({
|
|
12692
|
+
flows: z.z.record(z.z.string(), withIntegrationKeys(z.z.any())).optional(),
|
|
12693
|
+
actions: z.z.record(z.z.string(), withIntegrationKeys(z.z.any())).optional(),
|
|
12694
|
+
fieldMappings: z.z.record(z.z.string(), withIntegrationKeys(z.z.any())).optional(),
|
|
12695
|
+
dataSources: z.z.record(z.z.string(), withIntegrationKeys(z.z.any())).optional(),
|
|
12696
|
+
dataLinkTables: z.z.record(z.z.string(), z.z.any()).optional(),
|
|
12697
|
+
appEventTypes: z.z.record(z.z.string(), z.z.any()).optional(),
|
|
12698
|
+
appDataSchemas: z.z.record(z.z.string(), z.z.any()).optional(),
|
|
12699
|
+
});
|
|
12700
|
+
const ScenarioTemplateElements = ElementsExportFields.and(z.z.object({
|
|
12701
|
+
integrations: z.z.record(z.z.string(), ElementsExportFields.and(z.z.object({ connectorId: z.z.string() }))).optional(),
|
|
12620
12702
|
}));
|
|
12621
|
-
const ScenarioTemplate =
|
|
12622
|
-
id:
|
|
12623
|
-
name:
|
|
12624
|
-
key:
|
|
12625
|
-
shortDescription:
|
|
12626
|
-
description:
|
|
12627
|
-
demoWorkspaceKey:
|
|
12628
|
-
demoAppUri:
|
|
12629
|
-
demoGithubRepo:
|
|
12630
|
-
demoVideoYoutubeUri:
|
|
12631
|
-
tags:
|
|
12703
|
+
const ScenarioTemplate = z.z.object({
|
|
12704
|
+
id: z.z.string(),
|
|
12705
|
+
name: z.z.string(),
|
|
12706
|
+
key: z.z.string(),
|
|
12707
|
+
shortDescription: z.z.string().optional(),
|
|
12708
|
+
description: z.z.string().optional(),
|
|
12709
|
+
demoWorkspaceKey: z.z.string().optional(),
|
|
12710
|
+
demoAppUri: z.z.string().optional(),
|
|
12711
|
+
demoGithubRepo: z.z.string().optional(),
|
|
12712
|
+
demoVideoYoutubeUri: z.z.string().optional(),
|
|
12713
|
+
tags: z.z.array(z.z.enum(exports.ScenarioTemplateCategory)).optional(),
|
|
12632
12714
|
elements: ScenarioTemplateElements.optional(),
|
|
12633
|
-
connectors:
|
|
12634
|
-
handyElements:
|
|
12715
|
+
connectors: z.z.array(MinimalConnector).optional(),
|
|
12716
|
+
handyElements: z.z.array(HandyScenarioTemplateElement).optional(),
|
|
12635
12717
|
});
|
|
12636
12718
|
|
|
12637
12719
|
exports.AgentSessionStatus = void 0;
|
|
@@ -12643,35 +12725,36 @@ exports.AgentSessionStatus = void 0;
|
|
|
12643
12725
|
AgentSessionStatus["FAILED"] = "failed";
|
|
12644
12726
|
AgentSessionStatus["CANCELLED"] = "cancelled";
|
|
12645
12727
|
})(exports.AgentSessionStatus || (exports.AgentSessionStatus = {}));
|
|
12646
|
-
const AgentSession =
|
|
12647
|
-
id:
|
|
12648
|
-
workspaceId:
|
|
12649
|
-
workspaceElementType:
|
|
12650
|
-
workspaceElementId:
|
|
12651
|
-
type:
|
|
12652
|
-
status:
|
|
12653
|
-
workerId:
|
|
12654
|
-
workerUrl:
|
|
12655
|
-
prompt:
|
|
12728
|
+
const AgentSession = z.z.object({
|
|
12729
|
+
id: z.z.string(),
|
|
12730
|
+
workspaceId: z.z.string(),
|
|
12731
|
+
workspaceElementType: z.z.enum(exports.WorkspaceElementType),
|
|
12732
|
+
workspaceElementId: z.z.string(),
|
|
12733
|
+
type: z.z.string(),
|
|
12734
|
+
status: z.z.enum(exports.AgentSessionStatus),
|
|
12735
|
+
workerId: z.z.string().optional(),
|
|
12736
|
+
workerUrl: z.z.string().url().optional(),
|
|
12737
|
+
prompt: z.z.string(),
|
|
12656
12738
|
error: ErrorDataSchema.optional(),
|
|
12657
|
-
createdBy:
|
|
12658
|
-
lastActivityAt:
|
|
12659
|
-
createdAt:
|
|
12660
|
-
updatedAt:
|
|
12661
|
-
storedMessagesUri:
|
|
12662
|
-
sessionFilesZipUri:
|
|
12663
|
-
logs:
|
|
12664
|
-
usage:
|
|
12665
|
-
|
|
12666
|
-
|
|
12667
|
-
|
|
12668
|
-
|
|
12669
|
-
|
|
12670
|
-
|
|
12671
|
-
|
|
12672
|
-
|
|
12673
|
-
|
|
12674
|
-
|
|
12739
|
+
createdBy: z.z.string(),
|
|
12740
|
+
lastActivityAt: z.z.iso.datetime(),
|
|
12741
|
+
createdAt: z.z.iso.datetime(),
|
|
12742
|
+
updatedAt: z.z.iso.datetime(),
|
|
12743
|
+
storedMessagesUri: z.z.string().url().optional(),
|
|
12744
|
+
sessionFilesZipUri: z.z.string().url().optional(),
|
|
12745
|
+
logs: z.z.array(z.z.any()).optional(),
|
|
12746
|
+
usage: z.z.number().optional(),
|
|
12747
|
+
summary: z.z.string().optional(),
|
|
12748
|
+
});
|
|
12749
|
+
const CreateAgentSession = z.z.object({
|
|
12750
|
+
workspaceElementType: z.z.enum(exports.WorkspaceElementType).optional(),
|
|
12751
|
+
workspaceElementId: z.z.string().min(1).optional(),
|
|
12752
|
+
prompt: z.z.string().min(1),
|
|
12753
|
+
testCustomerId: z.z.string().optional(),
|
|
12754
|
+
});
|
|
12755
|
+
const AgentSessionInputSchema = z.z.object({
|
|
12756
|
+
input: z.z.string().min(1),
|
|
12757
|
+
synthetic: z.z.boolean().optional(),
|
|
12675
12758
|
});
|
|
12676
12759
|
|
|
12677
12760
|
const API_VERSIONS = {
|
|
@@ -13004,6 +13087,8 @@ exports.AgentSessionInputSchema = AgentSessionInputSchema;
|
|
|
13004
13087
|
exports.ApiRequestSpec = ApiRequestSpec;
|
|
13005
13088
|
exports.AppDataSchemaAccessor = AppDataSchemaAccessor;
|
|
13006
13089
|
exports.AppDataSchemaApiResponse = AppDataSchemaApiResponse;
|
|
13090
|
+
exports.AppDataSchemaEditableProperties = AppDataSchemaEditableProperties;
|
|
13091
|
+
exports.AppDataSchemaExportProperties = AppDataSchemaExportProperties;
|
|
13007
13092
|
exports.AppDataSchemaInstanceAccessor = AppDataSchemaInstanceAccessor;
|
|
13008
13093
|
exports.AppDataSchemaInstanceApiResponse = AppDataSchemaInstanceApiResponse;
|
|
13009
13094
|
exports.AppDataSchemaInstancesAccessor = AppDataSchemaInstancesAccessor;
|
|
@@ -13014,8 +13099,9 @@ exports.AppEventSubscriptionApiResponse = AppEventSubscriptionApiResponse;
|
|
|
13014
13099
|
exports.AppEventSubscriptionsAccessor = AppEventSubscriptionsAccessor;
|
|
13015
13100
|
exports.AppEventTypeAccessor = AppEventTypeAccessor;
|
|
13016
13101
|
exports.AppEventTypeApiResponse = AppEventTypeApiResponse;
|
|
13102
|
+
exports.AppEventTypeEditableProperties = AppEventTypeEditableProperties;
|
|
13103
|
+
exports.AppEventTypeExportProperties = AppEventTypeExportProperties;
|
|
13017
13104
|
exports.AppEventTypesAccessor = AppEventTypesAccessor;
|
|
13018
|
-
exports.AppPublicKey = AppPublicKey;
|
|
13019
13105
|
exports.AppSchema = AppSchema;
|
|
13020
13106
|
exports.AppliedToIntegrations = AppliedToIntegrations;
|
|
13021
13107
|
exports.BackwardCompatibleDataSourceEditableProperties = BackwardCompatibleDataSourceEditableProperties;
|
|
@@ -13097,6 +13183,7 @@ exports.CreateActionRequest = CreateActionRequest;
|
|
|
13097
13183
|
exports.CreateAgentSession = CreateAgentSession;
|
|
13098
13184
|
exports.CreateConnectionRequest = CreateConnectionRequest;
|
|
13099
13185
|
exports.CreateCustomerRequest = CreateCustomerRequest;
|
|
13186
|
+
exports.CreateDataLinkTableRequest = CreateDataLinkTableRequest;
|
|
13100
13187
|
exports.CreateDataSourceInstanceRequest = CreateDataSourceInstanceRequest;
|
|
13101
13188
|
exports.CreateDataSourceRequest = CreateDataSourceRequest;
|
|
13102
13189
|
exports.CreateFieldMappingRequest = CreateFieldMappingRequest;
|
|
@@ -13151,6 +13238,8 @@ exports.DataLink = DataLink;
|
|
|
13151
13238
|
exports.DataLinkTableAccessor = DataLinkTableAccessor;
|
|
13152
13239
|
exports.DataLinkTableApiResponse = DataLinkTableApiResponse;
|
|
13153
13240
|
exports.DataLinkTableConfig = DataLinkTableConfig;
|
|
13241
|
+
exports.DataLinkTableEditableProperties = DataLinkTableEditableProperties;
|
|
13242
|
+
exports.DataLinkTableExportProperties = DataLinkTableExportProperties;
|
|
13154
13243
|
exports.DataLinkTableInstanceAccessor = DataLinkTableInstanceAccessor;
|
|
13155
13244
|
exports.DataLinkTableInstanceApiResponse = DataLinkTableInstanceApiResponse;
|
|
13156
13245
|
exports.DataLinkTableInstancesAccessor = DataLinkTableInstancesAccessor;
|
|
@@ -13205,6 +13294,7 @@ exports.FindActionsQuery = FindActionsQuery;
|
|
|
13205
13294
|
exports.FindConnectionsQuery = FindConnectionsQuery;
|
|
13206
13295
|
exports.FindConnectionsResponse = FindConnectionsResponse;
|
|
13207
13296
|
exports.FindCustomersQuery = FindCustomersQuery;
|
|
13297
|
+
exports.FindDataLinkTablesQuery = FindDataLinkTablesQuery;
|
|
13208
13298
|
exports.FindDataSourceEventsQuery = FindDataSourceEventsQuery;
|
|
13209
13299
|
exports.FindDataSourceInstanceSyncsQuery = FindDataSourceInstanceSyncsQuery;
|
|
13210
13300
|
exports.FindDataSourceInstancesQuery = FindDataSourceInstancesQuery;
|
|
@@ -13255,6 +13345,7 @@ exports.InsufficientCreditsError = InsufficientCreditsError;
|
|
|
13255
13345
|
exports.IntegrationAccessor = IntegrationAccessor;
|
|
13256
13346
|
exports.IntegrationApiResponse = IntegrationApiResponse;
|
|
13257
13347
|
exports.IntegrationAppClient = MembraneClient;
|
|
13348
|
+
exports.IntegrationAppError = IntegrationAppError;
|
|
13258
13349
|
exports.IntegrationAuthOption = IntegrationAuthOption;
|
|
13259
13350
|
exports.IntegrationAuthUi = IntegrationAuthUi;
|
|
13260
13351
|
exports.IntegrationExportProperties = IntegrationExportProperties;
|
|
@@ -13274,6 +13365,7 @@ exports.ListActionInstancesForConnectionQuery = ListActionInstancesForConnection
|
|
|
13274
13365
|
exports.ListDataSourceInstancesForConnectionQuery = ListDataSourceInstancesForConnectionQuery;
|
|
13275
13366
|
exports.ListExternalEventLogRecordsQuery = ListExternalEventLogRecordsQuery;
|
|
13276
13367
|
exports.ListExternalEventPullsQuery = ListExternalEventPullsQuery;
|
|
13368
|
+
exports.ListExternalEventSubscriptionsQuery = ListExternalEventSubscriptionsQuery;
|
|
13277
13369
|
exports.ListFlowInstancesForConnectionQuery = ListFlowInstancesForConnectionQuery;
|
|
13278
13370
|
exports.MEMBRANE_ELEMENT_CONFIG_FILE_NAME = MEMBRANE_ELEMENT_CONFIG_FILE_NAME;
|
|
13279
13371
|
exports.MIN_FULL_SYNC_INTERVAL_SECONDS = MIN_FULL_SYNC_INTERVAL_SECONDS;
|
|
@@ -13325,6 +13417,7 @@ exports.UpdateActionInstanceRequest = UpdateActionInstanceRequest;
|
|
|
13325
13417
|
exports.UpdateActionRequest = UpdateActionRequest;
|
|
13326
13418
|
exports.UpdateConnectionRequest = UpdateConnectionRequest;
|
|
13327
13419
|
exports.UpdateCustomerRequest = UpdateCustomerRequest;
|
|
13420
|
+
exports.UpdateDataLinkTableRequest = UpdateDataLinkTableRequest;
|
|
13328
13421
|
exports.UpdateDataSourceInstanceRequest = UpdateDataSourceInstanceRequest;
|
|
13329
13422
|
exports.UpdateDataSourceRequest = UpdateDataSourceRequest;
|
|
13330
13423
|
exports.UpdateFieldMappingRequest = UpdateFieldMappingRequest;
|
|
@@ -13337,6 +13430,7 @@ exports.UsersAccessor = UsersAccessor;
|
|
|
13337
13430
|
exports.WORKSPACE_SIZE_LIMITS = WORKSPACE_SIZE_LIMITS;
|
|
13338
13431
|
exports.WorkspaceElementSpecs = WorkspaceElementSpecs;
|
|
13339
13432
|
exports.WorkspaceLimitsSchema = WorkspaceLimitsSchema;
|
|
13433
|
+
exports.WorkspacePublicKey = WorkspacePublicKey;
|
|
13340
13434
|
exports.__resolveValue = __resolveValue;
|
|
13341
13435
|
exports.addRequiredFieldsToSchema = addRequiredFieldsToSchema;
|
|
13342
13436
|
exports.addUdmFallbackFields = addUdmFallbackFields;
|
|
@@ -13375,6 +13469,7 @@ exports.getDataCollectionCreateFields = getDataCollectionCreateFields;
|
|
|
13375
13469
|
exports.getDataCollectionUpdateFields = getDataCollectionUpdateFields;
|
|
13376
13470
|
exports.getDataLocationMethodPath = getDataLocationMethodPath;
|
|
13377
13471
|
exports.getDownstreamNodeKeys = getDownstreamNodeKeys;
|
|
13472
|
+
exports.getElementSelector = getElementSelector;
|
|
13378
13473
|
exports.getErrorFromData = getErrorFromData;
|
|
13379
13474
|
exports.getEventMethodFileKey = getEventMethodFileKey;
|
|
13380
13475
|
exports.getFilterFieldValuesByLocator = getFilterFieldValuesByLocator;
|