@membranehq/sdk 0.9.3 → 0.9.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundle.d.ts +27 -6
- package/dist/dts/agent/session.d.ts +2 -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 +13 -0
- 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/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/index.d.ts +0 -1
- package/dist/dts/{workspace-elements → workspaces}/compare.d.ts +4 -2
- 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 +1378 -1271
- package/dist/index.browser.d.ts +1378 -1271
- package/dist/index.browser.js +1189 -1108
- package/dist/index.browser.js.map +1 -1
- package/dist/index.browser.mjs +224 -154
- package/dist/index.browser.mjs.map +1 -1
- package/dist/index.node.d.mts +1378 -1271
- package/dist/index.node.d.ts +1378 -1271
- package/dist/index.node.js +1194 -1113
- package/dist/index.node.js.map +1 -1
- package/dist/index.node.mjs +224 -154
- package/dist/index.node.mjs.map +1 -1
- package/package.json +1 -1
- /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,33 @@ 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(),
|
|
9332
9349
|
});
|
|
9333
9350
|
|
|
9334
9351
|
exports.ExternalEventLogStatus = void 0;
|
|
@@ -9337,16 +9354,16 @@ exports.ExternalEventLogStatus = void 0;
|
|
|
9337
9354
|
ExternalEventLogStatus["ERROR"] = "error";
|
|
9338
9355
|
ExternalEventLogStatus["SUCCESS"] = "success";
|
|
9339
9356
|
})(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:
|
|
9357
|
+
const BaseExternalEventLogRecord = z.z.object({
|
|
9358
|
+
id: z.z.string(),
|
|
9359
|
+
userId: z.z.string(),
|
|
9360
|
+
name: z.z.string().optional(),
|
|
9361
|
+
externalEventSubscriptionId: z.z.string(),
|
|
9362
|
+
integrationId: z.z.string(),
|
|
9363
|
+
connectionId: z.z.string(),
|
|
9364
|
+
payload: z.z.any().optional(),
|
|
9365
|
+
launchedFlowRunIds: z.z.array(z.z.string()).optional(),
|
|
9366
|
+
status: z.z.enum(exports.ExternalEventLogStatus),
|
|
9350
9367
|
error: ErrorDataSchema.optional(),
|
|
9351
9368
|
});
|
|
9352
9369
|
|
|
@@ -9357,18 +9374,18 @@ exports.ExternalEventPullStatus = void 0;
|
|
|
9357
9374
|
ExternalEventPullStatus["ERROR"] = "error";
|
|
9358
9375
|
ExternalEventPullStatus["QUEUED"] = "queued";
|
|
9359
9376
|
})(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:
|
|
9377
|
+
const BaseExternalEventPull = z.z.object({
|
|
9378
|
+
id: z.z.string(),
|
|
9379
|
+
name: z.z.string().optional(),
|
|
9380
|
+
userId: z.z.string(),
|
|
9381
|
+
externalEventSubscriptionId: z.z.string(),
|
|
9382
|
+
integrationId: z.z.string(),
|
|
9383
|
+
connectionId: z.z.string(),
|
|
9384
|
+
startDatetime: z.z.string(),
|
|
9385
|
+
endDatetime: z.z.string(),
|
|
9386
|
+
isFullScan: z.z.boolean().optional(),
|
|
9387
|
+
status: z.z.enum(exports.ExternalEventPullStatus),
|
|
9388
|
+
collectedEventIds: z.z.array(z.z.string()),
|
|
9372
9389
|
error: ErrorDataSchema.optional(),
|
|
9373
9390
|
});
|
|
9374
9391
|
|
|
@@ -9378,17 +9395,17 @@ exports.ActionRunLogStatus = void 0;
|
|
|
9378
9395
|
ActionRunLogStatus["ERROR"] = "error";
|
|
9379
9396
|
})(exports.ActionRunLogStatus || (exports.ActionRunLogStatus = {}));
|
|
9380
9397
|
const BaseActionRunLogRecord = BaseWorkspaceElement.extend({
|
|
9381
|
-
actionId:
|
|
9382
|
-
actionInstanceId:
|
|
9383
|
-
integrationId:
|
|
9384
|
-
connectionId:
|
|
9385
|
-
input:
|
|
9386
|
-
output:
|
|
9387
|
-
status:
|
|
9388
|
-
createdAt:
|
|
9389
|
-
completedAt:
|
|
9398
|
+
actionId: z.z.string(),
|
|
9399
|
+
actionInstanceId: z.z.string(),
|
|
9400
|
+
integrationId: z.z.string(),
|
|
9401
|
+
connectionId: z.z.string(),
|
|
9402
|
+
input: z.z.any().optional(),
|
|
9403
|
+
output: z.z.any().optional(),
|
|
9404
|
+
status: z.z.enum(exports.ActionRunLogStatus),
|
|
9405
|
+
createdAt: z.z.string(),
|
|
9406
|
+
completedAt: z.z.string().optional(),
|
|
9390
9407
|
error: ErrorDataSchema.optional(),
|
|
9391
|
-
duration:
|
|
9408
|
+
duration: z.z.number().optional(),
|
|
9392
9409
|
});
|
|
9393
9410
|
|
|
9394
9411
|
const ActionApiResponse = BaseAction.extend({
|
|
@@ -9399,19 +9416,19 @@ const ActionApiResponse = BaseAction.extend({
|
|
|
9399
9416
|
defaultOutputSchema: DataSchema.optional(),
|
|
9400
9417
|
transformedOutputSchema: DataSchema.optional(),
|
|
9401
9418
|
outputSchema: DataSchema.optional(),
|
|
9402
|
-
dependencies:
|
|
9419
|
+
dependencies: z.z.array(z.z.any()).optional(),
|
|
9403
9420
|
});
|
|
9404
9421
|
const FindActionsQuery = FindIntegrationLevelMembraneInterfaceQuery;
|
|
9405
9422
|
const CreateActionRequest = ActionEditableProperties;
|
|
9406
9423
|
const UpdateActionRequest = CreateActionRequest.extend({}).partial();
|
|
9407
9424
|
const CreateActionInstanceRequest = CreateActionRequest;
|
|
9408
9425
|
const UpdateActionInstanceRequest = UpdateActionRequest;
|
|
9409
|
-
const RunActionRequest =
|
|
9410
|
-
input:
|
|
9426
|
+
const RunActionRequest = z.z.object({
|
|
9427
|
+
input: z.z.any().optional(),
|
|
9411
9428
|
});
|
|
9412
|
-
const ActionRunResponse =
|
|
9413
|
-
output:
|
|
9414
|
-
logs:
|
|
9429
|
+
const ActionRunResponse = z.z.object({
|
|
9430
|
+
output: z.z.any().optional(),
|
|
9431
|
+
logs: z.z.array(z.z.any()).optional(),
|
|
9415
9432
|
});
|
|
9416
9433
|
const ActionInstanceApiResponse = ActionApiResponse;
|
|
9417
9434
|
const ListActionInstancesForConnectionQuery = FindActionsQuery;
|
|
@@ -9423,54 +9440,54 @@ const ActionRunLogRecordApiResponse = BaseActionRunLogRecord.extend({
|
|
|
9423
9440
|
connection: BaseConnection.optional(),
|
|
9424
9441
|
});
|
|
9425
9442
|
|
|
9426
|
-
const FindConnectionsQuery =
|
|
9443
|
+
const FindConnectionsQuery = z.z
|
|
9427
9444
|
.object({
|
|
9428
|
-
userId:
|
|
9445
|
+
userId: z.z.string().optional(),
|
|
9429
9446
|
isTest: zodBooleanCoercion().optional(),
|
|
9430
|
-
integrationKey:
|
|
9431
|
-
integrationId:
|
|
9447
|
+
integrationKey: z.z.string().optional(),
|
|
9448
|
+
integrationId: z.z.string().optional(),
|
|
9432
9449
|
includeArchived: zodBooleanCoercion().optional(),
|
|
9433
9450
|
})
|
|
9434
9451
|
.merge(PaginationQuery);
|
|
9435
|
-
const CreateConnectionRequest =
|
|
9436
|
-
name:
|
|
9437
|
-
integrationId:
|
|
9438
|
-
credentials:
|
|
9452
|
+
const CreateConnectionRequest = z.z.object({
|
|
9453
|
+
name: z.z.string(),
|
|
9454
|
+
integrationId: z.z.string(),
|
|
9455
|
+
credentials: z.z.string().optional(),
|
|
9439
9456
|
});
|
|
9440
|
-
const UpdateConnectionRequest =
|
|
9441
|
-
name:
|
|
9442
|
-
credentials:
|
|
9443
|
-
accessToken:
|
|
9457
|
+
const UpdateConnectionRequest = z.z.object({
|
|
9458
|
+
name: z.z.string().optional(),
|
|
9459
|
+
credentials: z.z.string().optional(),
|
|
9460
|
+
accessToken: z.z.string().optional(),
|
|
9444
9461
|
});
|
|
9445
9462
|
class FindConnectionsResponse extends PaginationResponse {
|
|
9446
9463
|
}
|
|
9447
|
-
const ConnectionSelector =
|
|
9448
|
-
id:
|
|
9449
|
-
integrationKey:
|
|
9450
|
-
integrationId:
|
|
9451
|
-
connectionId:
|
|
9464
|
+
const ConnectionSelector = z.z.object({
|
|
9465
|
+
id: z.z.string().optional(),
|
|
9466
|
+
integrationKey: z.z.string().optional(),
|
|
9467
|
+
integrationId: z.z.string().optional(),
|
|
9468
|
+
connectionId: z.z.string().optional(),
|
|
9452
9469
|
});
|
|
9453
9470
|
const ConnectionApiResponse = BaseConnection.extend({
|
|
9454
9471
|
user: BaseCustomer.optional(),
|
|
9455
9472
|
integration: BaseIntegration.optional(),
|
|
9456
9473
|
});
|
|
9457
9474
|
const ConnectionApiResponseWithSecrets = ConnectionApiResponse.extend({
|
|
9458
|
-
credentials:
|
|
9459
|
-
parameters:
|
|
9460
|
-
connectorParameters:
|
|
9461
|
-
});
|
|
9462
|
-
const ConnectionMessagePayload =
|
|
9463
|
-
|
|
9464
|
-
source:
|
|
9465
|
-
requestId:
|
|
9466
|
-
type:
|
|
9475
|
+
credentials: z.z.unknown().optional(),
|
|
9476
|
+
parameters: z.z.unknown().optional(),
|
|
9477
|
+
connectorParameters: z.z.unknown().optional(),
|
|
9478
|
+
});
|
|
9479
|
+
const ConnectionMessagePayload = z.z.discriminatedUnion('type', [
|
|
9480
|
+
z.z.object({
|
|
9481
|
+
source: z.z.string(),
|
|
9482
|
+
requestId: z.z.string(),
|
|
9483
|
+
type: z.z.literal('newConnectionCreated'),
|
|
9467
9484
|
connection: ConnectionApiResponse,
|
|
9468
9485
|
}),
|
|
9469
|
-
|
|
9470
|
-
source:
|
|
9471
|
-
requestId:
|
|
9472
|
-
type:
|
|
9473
|
-
error:
|
|
9486
|
+
z.z.object({
|
|
9487
|
+
source: z.z.string(),
|
|
9488
|
+
requestId: z.z.string(),
|
|
9489
|
+
type: z.z.literal('newConnectionFailure'),
|
|
9490
|
+
error: z.z.string(),
|
|
9474
9491
|
errorData: ErrorDataSchema.optional(),
|
|
9475
9492
|
}),
|
|
9476
9493
|
]);
|
|
@@ -9478,72 +9495,72 @@ const ConnectionMessagePayload = zod.z.discriminatedUnion('type', [
|
|
|
9478
9495
|
const DataSourceApiResponse = BaseDataSource.extend({
|
|
9479
9496
|
integration: BaseIntegration.optional(),
|
|
9480
9497
|
appliedToIntegrations: AppliedToIntegrations(BaseDataSource).optional(),
|
|
9481
|
-
defaultPath:
|
|
9498
|
+
defaultPath: z.z.string().optional().meta({ deprecated: true }),
|
|
9482
9499
|
});
|
|
9483
9500
|
const FindDataSourcesQuery = FindIntegrationLevelMembraneInterfaceQuery.omit({ parentId: true }).extend({
|
|
9484
|
-
dataSourceId:
|
|
9485
|
-
universalDataSourceId:
|
|
9501
|
+
dataSourceId: z.z.string().optional(),
|
|
9502
|
+
universalDataSourceId: z.z.string().optional(),
|
|
9486
9503
|
});
|
|
9487
9504
|
const CreateDataSourceRequest = DataSourceEditableProperties;
|
|
9488
9505
|
const UpdateDataSourceRequest = CreateDataSourceRequest.extend({}).partial();
|
|
9489
|
-
const FindDataSourceInstancesQuery =
|
|
9506
|
+
const FindDataSourceInstancesQuery = z.z
|
|
9490
9507
|
.object({
|
|
9491
|
-
userId:
|
|
9492
|
-
dataSourceId:
|
|
9493
|
-
universalDataSourceId:
|
|
9494
|
-
connectionId:
|
|
9495
|
-
integrationKey:
|
|
9496
|
-
integrationId:
|
|
9508
|
+
userId: z.z.string().optional(),
|
|
9509
|
+
dataSourceId: z.z.string().optional(),
|
|
9510
|
+
universalDataSourceId: z.z.string().optional(),
|
|
9511
|
+
connectionId: z.z.string().optional(),
|
|
9512
|
+
integrationKey: z.z.string().optional(),
|
|
9513
|
+
integrationId: z.z.string().optional(),
|
|
9497
9514
|
})
|
|
9498
9515
|
.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:
|
|
9516
|
+
const CreateDataSourceInstanceRequest = z.z.object({
|
|
9517
|
+
dataSourceId: z.z.string(),
|
|
9518
|
+
connectionId: z.z.string(),
|
|
9519
|
+
path: z.z.string().optional(),
|
|
9520
|
+
});
|
|
9521
|
+
const UpdateDataSourceInstanceRequest = z.z.object({
|
|
9522
|
+
path: z.z.string().optional(),
|
|
9523
|
+
collectionKey: z.z.string().optional(),
|
|
9524
|
+
collectionParameters: z.z.any().optional(),
|
|
9525
|
+
pullUpdatesIntervalSeconds: z.z.number().optional(),
|
|
9526
|
+
fullSyncIntervalSeconds: z.z.number().optional(),
|
|
9527
|
+
subscribedTo: z.z
|
|
9511
9528
|
.object({
|
|
9512
|
-
created:
|
|
9513
|
-
updated:
|
|
9514
|
-
deleted:
|
|
9529
|
+
created: z.z.boolean().optional(),
|
|
9530
|
+
updated: z.z.boolean().optional(),
|
|
9531
|
+
deleted: z.z.boolean().optional(),
|
|
9515
9532
|
})
|
|
9516
9533
|
.optional(),
|
|
9517
9534
|
});
|
|
9518
|
-
const FindDataSourceEventsQuery =
|
|
9535
|
+
const FindDataSourceEventsQuery = z.z
|
|
9519
9536
|
.object({
|
|
9520
|
-
userId:
|
|
9521
|
-
udm:
|
|
9522
|
-
dataSourceInstanceId:
|
|
9523
|
-
startDatetime:
|
|
9524
|
-
endDatetime:
|
|
9537
|
+
userId: z.z.string().optional(),
|
|
9538
|
+
udm: z.z.string().optional(),
|
|
9539
|
+
dataSourceInstanceId: z.z.string().optional(),
|
|
9540
|
+
startDatetime: z.z.string().optional(),
|
|
9541
|
+
endDatetime: z.z.string().optional(),
|
|
9525
9542
|
})
|
|
9526
9543
|
.merge(PaginationQuery);
|
|
9527
|
-
const FindDataSourceSyncsQuery =
|
|
9544
|
+
const FindDataSourceSyncsQuery = z.z
|
|
9528
9545
|
.object({
|
|
9529
|
-
userId:
|
|
9530
|
-
dataSourceId:
|
|
9531
|
-
dataSourceInstanceId:
|
|
9532
|
-
integrationId:
|
|
9533
|
-
connectionId:
|
|
9534
|
-
startedAfter:
|
|
9546
|
+
userId: z.z.string().optional(),
|
|
9547
|
+
dataSourceId: z.z.string().optional(),
|
|
9548
|
+
dataSourceInstanceId: z.z.string().optional(),
|
|
9549
|
+
integrationId: z.z.string().optional(),
|
|
9550
|
+
connectionId: z.z.string().optional(),
|
|
9551
|
+
startedAfter: z.z.string().optional(),
|
|
9535
9552
|
})
|
|
9536
9553
|
.merge(PaginationQuery);
|
|
9537
|
-
const ListDataSourceInstancesForConnectionQuery =
|
|
9554
|
+
const ListDataSourceInstancesForConnectionQuery = z.z
|
|
9538
9555
|
.object({
|
|
9539
|
-
dataSourceId:
|
|
9556
|
+
dataSourceId: z.z.string().optional(),
|
|
9540
9557
|
})
|
|
9541
9558
|
.merge(PaginationQuery);
|
|
9542
9559
|
const FindDataSourceInstanceSyncsQuery = ListDataSourceInstancesForConnectionQuery.extend({
|
|
9543
|
-
userId:
|
|
9544
|
-
connectionId:
|
|
9545
|
-
integrationId:
|
|
9546
|
-
dataSourceInstanceId:
|
|
9560
|
+
userId: z.z.string().optional(),
|
|
9561
|
+
connectionId: z.z.string().optional(),
|
|
9562
|
+
integrationId: z.z.string().optional(),
|
|
9563
|
+
dataSourceInstanceId: z.z.string().optional(),
|
|
9547
9564
|
});
|
|
9548
9565
|
|
|
9549
9566
|
const DataSourceInstanceApiResponse = BaseDataSourceInstance.extend({
|
|
@@ -9551,8 +9568,8 @@ const DataSourceInstanceApiResponse = BaseDataSourceInstance.extend({
|
|
|
9551
9568
|
dataSource: BaseDataSource.optional(),
|
|
9552
9569
|
connection: BaseConnection.optional(),
|
|
9553
9570
|
integration: BaseIntegration.optional(),
|
|
9554
|
-
path:
|
|
9555
|
-
defaultPath:
|
|
9571
|
+
path: z.z.string().optional().meta({ deprecated: true }),
|
|
9572
|
+
defaultPath: z.z.string().optional().meta({ deprecated: true }),
|
|
9556
9573
|
});
|
|
9557
9574
|
|
|
9558
9575
|
const ExternalEvent = BaseExternalEvent.extend({
|
|
@@ -9562,64 +9579,64 @@ const ExternalEvent = BaseExternalEvent.extend({
|
|
|
9562
9579
|
const FlowApiResponse = BaseFlow.extend({
|
|
9563
9580
|
integration: BaseIntegration.optional(),
|
|
9564
9581
|
appliedToIntegrations: AppliedToIntegrations(BaseFlow).optional(),
|
|
9565
|
-
dependencies:
|
|
9582
|
+
dependencies: z.z.array(z.z.any()).optional(),
|
|
9566
9583
|
});
|
|
9567
9584
|
const FindFlowsQuery = FindIntegrationLevelMembraneInterfaceQuery.omit({ parentId: true }).extend({
|
|
9568
|
-
flowId:
|
|
9569
|
-
universalFlowId:
|
|
9585
|
+
flowId: z.z.string().optional(),
|
|
9586
|
+
universalFlowId: z.z.string().optional(),
|
|
9570
9587
|
});
|
|
9571
9588
|
const CreateFlowRequest = FlowEditableProperties;
|
|
9572
9589
|
const UpdateFlowRequest = CreateFlowRequest.extend({}).partial();
|
|
9573
|
-
const ListFlowInstancesForConnectionQuery =
|
|
9590
|
+
const ListFlowInstancesForConnectionQuery = z.z
|
|
9574
9591
|
.object({
|
|
9575
|
-
flowId:
|
|
9576
|
-
flowKey:
|
|
9577
|
-
enabled:
|
|
9592
|
+
flowId: z.z.string().optional(),
|
|
9593
|
+
flowKey: z.z.string().optional(),
|
|
9594
|
+
enabled: z.z.boolean().optional(),
|
|
9578
9595
|
})
|
|
9579
9596
|
.merge(CommonInstancesListQuery);
|
|
9580
9597
|
const FindFlowInstancesQuery = ListFlowInstancesForConnectionQuery.merge(CommonIntegrationOrConnectionQuery);
|
|
9581
|
-
const ResetFlowInstanceOptions =
|
|
9582
|
-
name:
|
|
9583
|
-
nodes:
|
|
9584
|
-
allNodes:
|
|
9598
|
+
const ResetFlowInstanceOptions = z.z.object({
|
|
9599
|
+
name: z.z.boolean().optional(),
|
|
9600
|
+
nodes: z.z.record(z.z.string(), z.z.boolean()).optional(),
|
|
9601
|
+
allNodes: z.z.boolean().optional(),
|
|
9585
9602
|
});
|
|
9586
|
-
const RunFlowApiRequest =
|
|
9587
|
-
nodeKey:
|
|
9588
|
-
input:
|
|
9603
|
+
const RunFlowApiRequest = z.z.object({
|
|
9604
|
+
nodeKey: z.z.string().optional(),
|
|
9605
|
+
input: z.z.any().optional(),
|
|
9589
9606
|
});
|
|
9590
9607
|
const FlowInstanceApiResponse = BaseFlowInstance.extend({
|
|
9591
|
-
user:
|
|
9592
|
-
connection:
|
|
9593
|
-
flow:
|
|
9594
|
-
integration:
|
|
9608
|
+
user: z.z.lazy(() => z.z.any()).optional(),
|
|
9609
|
+
connection: z.z.lazy(() => z.z.any()).optional(),
|
|
9610
|
+
flow: z.z.lazy(() => FlowApiResponse).optional(),
|
|
9611
|
+
integration: z.z.lazy(() => z.z.any()).optional(),
|
|
9595
9612
|
});
|
|
9596
|
-
const CreateFlowNodeRequest =
|
|
9597
|
-
type:
|
|
9598
|
-
config:
|
|
9599
|
-
ui:
|
|
9600
|
-
links:
|
|
9613
|
+
const CreateFlowNodeRequest = z.z.object({
|
|
9614
|
+
type: z.z.string(),
|
|
9615
|
+
config: z.z.any().optional(),
|
|
9616
|
+
ui: z.z.any().optional(),
|
|
9617
|
+
links: z.z.array(z.z.lazy(() => z.z.any())).optional(),
|
|
9601
9618
|
});
|
|
9602
9619
|
|
|
9603
|
-
const CreateFlowRunRequest =
|
|
9604
|
-
flowInstanceId:
|
|
9605
|
-
nodeKey:
|
|
9606
|
-
input:
|
|
9620
|
+
const CreateFlowRunRequest = z.z.object({
|
|
9621
|
+
flowInstanceId: z.z.string(),
|
|
9622
|
+
nodeKey: z.z.string().optional(),
|
|
9623
|
+
input: z.z.any().optional(),
|
|
9607
9624
|
});
|
|
9608
9625
|
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:
|
|
9626
|
+
id: z.z.string().optional(),
|
|
9627
|
+
flowInstanceId: z.z.string().optional(),
|
|
9628
|
+
startNodeKey: z.z.string().optional(),
|
|
9629
|
+
flowId: z.z.string().optional(),
|
|
9630
|
+
universalFlowId: z.z.string().optional(),
|
|
9631
|
+
userId: z.z.string().optional(),
|
|
9632
|
+
state: z.z.enum(exports.FlowRunState).optional(),
|
|
9633
|
+
integrationId: z.z.string().optional(),
|
|
9634
|
+
connectionId: z.z.string().optional(),
|
|
9635
|
+
startedAfter: z.z.string().optional(),
|
|
9636
|
+
});
|
|
9637
|
+
const FlowRunLaunchedByApi = z.z.object({
|
|
9638
|
+
type: z.z.enum(exports.FlowRunLaunchedByTrigger),
|
|
9639
|
+
ids: z.z.array(z.z.string()).optional(),
|
|
9623
9640
|
});
|
|
9624
9641
|
const FlowRunApiResponse = BaseFlowRun.extend({
|
|
9625
9642
|
flowInstance: BaseFlowInstance.optional(),
|
|
@@ -9627,46 +9644,46 @@ const FlowRunApiResponse = BaseFlowRun.extend({
|
|
|
9627
9644
|
integration: BaseIntegration.optional(),
|
|
9628
9645
|
user: BaseCustomer.optional(),
|
|
9629
9646
|
});
|
|
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:
|
|
9647
|
+
const FindFlowRunsResponse = z.z.object({
|
|
9648
|
+
items: z.z.array(FlowRunApiResponse),
|
|
9649
|
+
cursor: z.z.string().optional(),
|
|
9650
|
+
});
|
|
9651
|
+
|
|
9652
|
+
const CreateIntegrationRequest = z.z.object({
|
|
9653
|
+
name: z.z.string().optional(),
|
|
9654
|
+
key: z.z.string(),
|
|
9655
|
+
baseUri: z.z.string(),
|
|
9656
|
+
logoUri: z.z.string(),
|
|
9657
|
+
});
|
|
9658
|
+
const UpdateIntegrationRequest = z.z.object({
|
|
9659
|
+
name: z.z.string().optional(),
|
|
9660
|
+
key: z.z.string().optional(),
|
|
9661
|
+
baseUri: z.z.string().optional(),
|
|
9662
|
+
logoUri: z.z.string().optional(),
|
|
9663
|
+
});
|
|
9664
|
+
const FindIntegrationsQuery = z.z.object({}).merge(PaginationQuery).merge(SearchQuery);
|
|
9665
|
+
const IntegrationAuthUi = z.z.object({
|
|
9666
|
+
schema: z.z.any().optional(),
|
|
9667
|
+
helpUri: z.z.string().optional(),
|
|
9668
|
+
});
|
|
9669
|
+
const IntegrationAuthOption = z.z.object({
|
|
9670
|
+
key: z.z.string(),
|
|
9671
|
+
type: z.z.enum(CONNECTOR_AUTH_TYPES),
|
|
9672
|
+
title: z.z.string().optional(),
|
|
9673
|
+
description: z.z.string().optional(),
|
|
9657
9674
|
ui: IntegrationAuthUi.optional(),
|
|
9658
9675
|
});
|
|
9659
9676
|
const IntegrationApiResponse = BaseIntegration.extend({
|
|
9660
9677
|
connection: BaseConnection.optional(),
|
|
9661
|
-
spec:
|
|
9662
|
-
authOptions:
|
|
9678
|
+
spec: z.z.any().optional(),
|
|
9679
|
+
authOptions: z.z.array(IntegrationAuthOption).optional(),
|
|
9663
9680
|
parametersSchema: DataSchema.optional(),
|
|
9664
9681
|
});
|
|
9665
9682
|
|
|
9666
|
-
const PackageElementApi =
|
|
9667
|
-
id:
|
|
9668
|
-
type:
|
|
9669
|
-
element:
|
|
9683
|
+
const PackageElementApi = z.z.object({
|
|
9684
|
+
id: z.z.string(),
|
|
9685
|
+
type: z.z.enum(exports.IntegrationElementType),
|
|
9686
|
+
element: z.z.any().optional(),
|
|
9670
9687
|
});
|
|
9671
9688
|
const FindPackagesQuery = FindIntegrationLevelMembraneInterfaceQuery;
|
|
9672
9689
|
const CreatePackageRequest = PackageEditableProperties;
|
|
@@ -9677,25 +9694,25 @@ const PackageApiResponse = BasePackage.extend({
|
|
|
9677
9694
|
|
|
9678
9695
|
const ScreenApiResponse = BaseScreen;
|
|
9679
9696
|
|
|
9680
|
-
const CreateCustomerRequest =
|
|
9681
|
-
name:
|
|
9682
|
-
internalId:
|
|
9683
|
-
fields:
|
|
9684
|
-
credentials:
|
|
9697
|
+
const CreateCustomerRequest = z.z.object({
|
|
9698
|
+
name: z.z.string().optional(),
|
|
9699
|
+
internalId: z.z.string(),
|
|
9700
|
+
fields: z.z.any().optional(),
|
|
9701
|
+
credentials: z.z.any().optional(),
|
|
9685
9702
|
});
|
|
9686
|
-
const UpdateCustomerRequest =
|
|
9687
|
-
name:
|
|
9688
|
-
internalId:
|
|
9689
|
-
fields:
|
|
9690
|
-
credentials:
|
|
9703
|
+
const UpdateCustomerRequest = z.z.object({
|
|
9704
|
+
name: z.z.string().optional(),
|
|
9705
|
+
internalId: z.z.string().optional(),
|
|
9706
|
+
fields: z.z.any().optional(),
|
|
9707
|
+
credentials: z.z.any().optional(),
|
|
9691
9708
|
});
|
|
9692
|
-
const FindCustomersQuery =
|
|
9709
|
+
const FindCustomersQuery = z.z
|
|
9693
9710
|
.object({
|
|
9694
9711
|
isTest: zodBooleanCoercion().optional(),
|
|
9695
9712
|
})
|
|
9696
9713
|
.merge(PaginationQuery)
|
|
9697
9714
|
.merge(SearchQuery);
|
|
9698
|
-
const CustomerSelector =
|
|
9715
|
+
const CustomerSelector = z.z.object({ id: z.z.string() });
|
|
9699
9716
|
const CustomerApiResponse = BaseCustomer;
|
|
9700
9717
|
|
|
9701
9718
|
const FieldMappingApiResponse = BaseFieldMapping.extend({
|
|
@@ -9703,8 +9720,8 @@ const FieldMappingApiResponse = BaseFieldMapping.extend({
|
|
|
9703
9720
|
appliedToIntegrations: AppliedToIntegrations(BaseFieldMapping).optional(),
|
|
9704
9721
|
});
|
|
9705
9722
|
const FindFieldMappingsQuery = FindIntegrationLevelMembraneInterfaceQuery.omit({ parentId: true }).extend({
|
|
9706
|
-
fieldMappingId:
|
|
9707
|
-
universalFieldMappingId:
|
|
9723
|
+
fieldMappingId: z.z.string().optional(),
|
|
9724
|
+
universalFieldMappingId: z.z.string().optional(),
|
|
9708
9725
|
});
|
|
9709
9726
|
const CreateFieldMappingRequest = FieldMappingEditableProperties;
|
|
9710
9727
|
const UpdateFieldMappingRequest = CreateFieldMappingRequest.extend({}).partial();
|
|
@@ -9717,6 +9734,9 @@ const FieldMappingInstanceApiResponse = BaseFieldMappingInstance.extend({
|
|
|
9717
9734
|
dataSourceInstance: DataSourceInstanceApiResponse.optional(),
|
|
9718
9735
|
});
|
|
9719
9736
|
|
|
9737
|
+
const FindDataLinkTablesQuery = z.z.object(CommonListElementsQuery.shape);
|
|
9738
|
+
const CreateDataLinkTableRequest = DataLinkTableEditableProperties;
|
|
9739
|
+
const UpdateDataLinkTableRequest = CreateDataLinkTableRequest.partial();
|
|
9720
9740
|
const DataLinkTableApiResponse = BaseDataLinkTable;
|
|
9721
9741
|
|
|
9722
9742
|
const DataLinkTableInstanceApiResponse = BaseDataLinkTableInstance.extend({
|
|
@@ -9741,10 +9761,10 @@ const AppDataSchemaInstanceApiResponse = BaseAppDataSchemaInstance.extend({
|
|
|
9741
9761
|
});
|
|
9742
9762
|
|
|
9743
9763
|
const ListExternalEventLogRecordsQuery = CommonListElementsQuery.extend({
|
|
9744
|
-
connectionId:
|
|
9745
|
-
integrationId:
|
|
9746
|
-
externalEventSubscriptionId:
|
|
9747
|
-
status:
|
|
9764
|
+
connectionId: z.z.string().optional(),
|
|
9765
|
+
integrationId: z.z.string().optional(),
|
|
9766
|
+
externalEventSubscriptionId: z.z.string().optional(),
|
|
9767
|
+
status: z.z.enum(exports.ExternalEventLogStatus).optional(),
|
|
9748
9768
|
});
|
|
9749
9769
|
const ExternalEventLogRecordApiResponse = BaseExternalEventLogRecord.extend({
|
|
9750
9770
|
user: BaseCustomer.optional(),
|
|
@@ -9754,10 +9774,10 @@ const ExternalEventLogRecordApiResponse = BaseExternalEventLogRecord.extend({
|
|
|
9754
9774
|
});
|
|
9755
9775
|
|
|
9756
9776
|
const ListExternalEventPullsQuery = CommonListElementsQuery.extend({
|
|
9757
|
-
connectionId:
|
|
9758
|
-
integrationId:
|
|
9759
|
-
externalEventSubscriptionId:
|
|
9760
|
-
status:
|
|
9777
|
+
connectionId: z.z.string().optional(),
|
|
9778
|
+
integrationId: z.z.string().optional(),
|
|
9779
|
+
externalEventSubscriptionId: z.z.string().optional(),
|
|
9780
|
+
status: z.z.enum(exports.ExternalEventPullStatus).optional(),
|
|
9761
9781
|
});
|
|
9762
9782
|
const ExternalEventPullApiResponse = BaseExternalEventPull.extend({
|
|
9763
9783
|
user: BaseCustomer.optional(),
|
|
@@ -9772,18 +9792,18 @@ const ExternalEventSubscriptionApiResponse = BaseExternalEventSubscription.exten
|
|
|
9772
9792
|
integration: BaseIntegration.optional(),
|
|
9773
9793
|
});
|
|
9774
9794
|
|
|
9775
|
-
const AppEventLogRecordApiResponse =
|
|
9776
|
-
id:
|
|
9777
|
-
name:
|
|
9778
|
-
userId:
|
|
9795
|
+
const AppEventLogRecordApiResponse = z.z.object({
|
|
9796
|
+
id: z.z.string(),
|
|
9797
|
+
name: z.z.string().optional(),
|
|
9798
|
+
userId: z.z.string(),
|
|
9779
9799
|
user: BaseCustomer.optional(),
|
|
9780
|
-
appEventTypeId:
|
|
9800
|
+
appEventTypeId: z.z.string(),
|
|
9781
9801
|
appEventType: BaseAppEventType.optional(),
|
|
9782
|
-
appEventSubscriptionId:
|
|
9802
|
+
appEventSubscriptionId: z.z.string(),
|
|
9783
9803
|
appEventSubscription: BaseAppEventSubscription.optional(),
|
|
9784
|
-
event:
|
|
9785
|
-
datetime:
|
|
9786
|
-
launchedFlowRunIds:
|
|
9804
|
+
event: z.z.any(),
|
|
9805
|
+
datetime: z.z.string(),
|
|
9806
|
+
launchedFlowRunIds: z.z.array(z.z.string()),
|
|
9787
9807
|
});
|
|
9788
9808
|
|
|
9789
9809
|
class DependencyError extends MembraneError {
|
|
@@ -9925,71 +9945,6 @@ function hasCycles(nodes) {
|
|
|
9925
9945
|
return hasCycles;
|
|
9926
9946
|
}
|
|
9927
9947
|
|
|
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
9948
|
const WorkspaceElementSpecs = {
|
|
9994
9949
|
[exports.WorkspaceElementType.Customer]: {
|
|
9995
9950
|
type: exports.WorkspaceElementType.Customer,
|
|
@@ -10139,6 +10094,10 @@ const WorkspaceElementSpecs = {
|
|
|
10139
10094
|
apiPath: 'data-link-tables',
|
|
10140
10095
|
name: 'Data Link Table',
|
|
10141
10096
|
namePlural: 'Data Link Tables',
|
|
10097
|
+
editablePropertiesSchema: DataLinkTableEditableProperties,
|
|
10098
|
+
exportPropertiesSchema: DataLinkTableExportProperties,
|
|
10099
|
+
apiResponseSchema: DataLinkTableApiResponse,
|
|
10100
|
+
findQuerySchema: FindDataLinkTablesQuery,
|
|
10142
10101
|
isMembraneInterface: true,
|
|
10143
10102
|
},
|
|
10144
10103
|
[exports.WorkspaceElementType.DataLinkTableInstance]: {
|
|
@@ -10155,6 +10114,8 @@ const WorkspaceElementSpecs = {
|
|
|
10155
10114
|
name: 'App Event Type',
|
|
10156
10115
|
namePlural: 'App Event Types',
|
|
10157
10116
|
isMembraneInterface: true,
|
|
10117
|
+
exportPropertiesSchema: AppEventTypeExportProperties,
|
|
10118
|
+
editablePropertiesSchema: AppEventTypeEditableProperties,
|
|
10158
10119
|
},
|
|
10159
10120
|
[exports.WorkspaceElementType.AppEventSubscription]: {
|
|
10160
10121
|
type: exports.WorkspaceElementType.AppEventSubscription,
|
|
@@ -10175,6 +10136,8 @@ const WorkspaceElementSpecs = {
|
|
|
10175
10136
|
name: 'App Data Schema',
|
|
10176
10137
|
namePlural: 'App Data Schemas',
|
|
10177
10138
|
isMembraneInterface: true,
|
|
10139
|
+
exportPropertiesSchema: AppDataSchemaExportProperties,
|
|
10140
|
+
editablePropertiesSchema: AppDataSchemaEditableProperties,
|
|
10178
10141
|
},
|
|
10179
10142
|
[exports.WorkspaceElementType.AppDataSchemaInstance]: {
|
|
10180
10143
|
type: exports.WorkspaceElementType.AppDataSchemaInstance,
|
|
@@ -10401,7 +10364,7 @@ function extractMembraneErrorData(error) {
|
|
|
10401
10364
|
},
|
|
10402
10365
|
};
|
|
10403
10366
|
}
|
|
10404
|
-
if (error instanceof
|
|
10367
|
+
if (error instanceof z.ZodError) {
|
|
10405
10368
|
data.message = v4.fromError(error).toString();
|
|
10406
10369
|
}
|
|
10407
10370
|
return data;
|
|
@@ -10644,6 +10607,11 @@ function getFlowRunVariableSchema() {
|
|
|
10644
10607
|
};
|
|
10645
10608
|
}
|
|
10646
10609
|
|
|
10610
|
+
exports.WorkspaceType = void 0;
|
|
10611
|
+
(function (WorkspaceType) {
|
|
10612
|
+
WorkspaceType["PRODUCTION"] = "production";
|
|
10613
|
+
WorkspaceType["DEVELOPMENT"] = "development";
|
|
10614
|
+
})(exports.WorkspaceType || (exports.WorkspaceType = {}));
|
|
10647
10615
|
exports.WorkspaceOnboardingStep = void 0;
|
|
10648
10616
|
(function (WorkspaceOnboardingStep) {
|
|
10649
10617
|
WorkspaceOnboardingStep["AddConnectors"] = "add-connectors";
|
|
@@ -10663,11 +10631,83 @@ exports.LimitUnits = void 0;
|
|
|
10663
10631
|
LimitUnits["Msec"] = "msec";
|
|
10664
10632
|
LimitUnits["Mb"] = "Mb";
|
|
10665
10633
|
})(exports.LimitUnits || (exports.LimitUnits = {}));
|
|
10666
|
-
|
|
10667
|
-
|
|
10668
|
-
|
|
10669
|
-
|
|
10670
|
-
})
|
|
10634
|
+
const WorkspaceLimit = z.object({
|
|
10635
|
+
value: z.number().optional(),
|
|
10636
|
+
defaultValue: z.number().optional(),
|
|
10637
|
+
unit: z.nativeEnum(exports.LimitUnits),
|
|
10638
|
+
});
|
|
10639
|
+
const WorkspaceLimitsSchema = z.object({
|
|
10640
|
+
parallelEventPulls: WorkspaceLimit.optional(),
|
|
10641
|
+
parallelIncrementalEventPullsPerConnection: WorkspaceLimit.optional(),
|
|
10642
|
+
parallelFullSyncEventPullsPerConnection: WorkspaceLimit.optional(),
|
|
10643
|
+
parallelFlowRuns: WorkspaceLimit.optional(),
|
|
10644
|
+
parallelFlowRunsPerConnection: WorkspaceLimit.optional(),
|
|
10645
|
+
parallelApiRequests: WorkspaceLimit.optional(),
|
|
10646
|
+
parallelSseRequests: WorkspaceLimit.optional(),
|
|
10647
|
+
parallelBackgroundJobs: WorkspaceLimit.optional(),
|
|
10648
|
+
parallelEventLogs: WorkspaceLimit.optional(),
|
|
10649
|
+
parallelEventLogsPerConnection: WorkspaceLimit.optional(),
|
|
10650
|
+
ParallelWriteDatabaseRequests: WorkspaceLimit.optional(),
|
|
10651
|
+
fileUploadsMbPerHour: WorkspaceLimit.optional(),
|
|
10652
|
+
apiRequestsPerSecond: WorkspaceLimit.optional(),
|
|
10653
|
+
apiRequestsPerHour: WorkspaceLimit.optional(),
|
|
10654
|
+
webhookRequestsPerSecond: WorkspaceLimit.optional(),
|
|
10655
|
+
webhookRequestsPerHour: WorkspaceLimit.optional(),
|
|
10656
|
+
workspaceElementCreationsPerSecond: WorkspaceLimit.optional(),
|
|
10657
|
+
workspaceElementCreationsPerHour: WorkspaceLimit.optional(),
|
|
10658
|
+
createDatabaseRequestsPerSecond: WorkspaceLimit.optional(),
|
|
10659
|
+
totalNumberOfCustomers: WorkspaceLimit.optional(),
|
|
10660
|
+
totalNumberOfConnections: WorkspaceLimit.optional(),
|
|
10661
|
+
totalNumberOfWorkspaceElements: WorkspaceLimit.optional(),
|
|
10662
|
+
parallelApiRequestsPerCustomer: WorkspaceLimit.optional(),
|
|
10663
|
+
parallelBackgroundJobsPerCustomer: WorkspaceLimit.optional(),
|
|
10664
|
+
apiRequestsPerCustomerPerSecond: WorkspaceLimit.optional(),
|
|
10665
|
+
apiRequestsPerCustomerPerHour: WorkspaceLimit.optional(),
|
|
10666
|
+
webhookRequestsPerCustomerPerSecond: WorkspaceLimit.optional(),
|
|
10667
|
+
webhookRequestsPerCustomerPerHour: WorkspaceLimit.optional(),
|
|
10668
|
+
externalEventsPerCustomerPerDay: WorkspaceLimit.optional(),
|
|
10669
|
+
createDatabaseRequestsPerCustomerPerSecond: WorkspaceLimit.optional(),
|
|
10670
|
+
updateDatabaseRequestsPerCustomerPerSecond: WorkspaceLimit.optional(),
|
|
10671
|
+
parallelWriteDatabaseRequestsPerCustomer: WorkspaceLimit.optional(),
|
|
10672
|
+
});
|
|
10673
|
+
const EngineWorkspaceSettingsSchema = z.object({
|
|
10674
|
+
enableApiLogs: z.boolean().optional(),
|
|
10675
|
+
enableWebhookLogs: z.boolean().optional(),
|
|
10676
|
+
enableActionRunLogs: z.boolean().optional(),
|
|
10677
|
+
disableSecretKeyAuth: z.boolean().optional(),
|
|
10678
|
+
});
|
|
10679
|
+
const WorkspacePublicKey = z.object({
|
|
10680
|
+
name: z.string(),
|
|
10681
|
+
publicKey: z.string(),
|
|
10682
|
+
});
|
|
10683
|
+
const AppSchema = z.object({
|
|
10684
|
+
id: z.string(),
|
|
10685
|
+
key: z.string(),
|
|
10686
|
+
logoUri: z.string().optional(),
|
|
10687
|
+
userFieldsSchema: z.any().optional(),
|
|
10688
|
+
apiBaseUri: z.string().optional(),
|
|
10689
|
+
webhookUri: z.string().optional(),
|
|
10690
|
+
publicKey: z.string().optional(),
|
|
10691
|
+
publicKeys: z.array(WorkspacePublicKey).optional(),
|
|
10692
|
+
enabledWebhookEvents: z.array(z.string()).optional(),
|
|
10693
|
+
auth: z.any().optional(),
|
|
10694
|
+
credentialsSchema: z.any().optional(),
|
|
10695
|
+
apiClient: z.any().optional(),
|
|
10696
|
+
apiRequestHeaders: z.record(z.string(), z.any()).optional(),
|
|
10697
|
+
apiRequestQuery: z.record(z.string(), z.any()).optional(),
|
|
10698
|
+
isOnPrem: z.boolean().optional(),
|
|
10699
|
+
connectorBaseUri: z.string().optional(),
|
|
10700
|
+
connectorRevision: z.string().optional(),
|
|
10701
|
+
featureFlags: z.array(z.string()).optional(),
|
|
10702
|
+
limits: WorkspaceLimitsSchema.optional(),
|
|
10703
|
+
settings: EngineWorkspaceSettingsSchema.optional(),
|
|
10704
|
+
type: z.nativeEnum(exports.WorkspaceType).optional(),
|
|
10705
|
+
jwksUri: z.string().nullable().optional(),
|
|
10706
|
+
isTrial: z.boolean().optional(),
|
|
10707
|
+
isThrottled: z.boolean().optional(),
|
|
10708
|
+
isDisabled: z.boolean().optional(),
|
|
10709
|
+
isBackgroundJobsDisabled: z.boolean().optional(),
|
|
10710
|
+
});
|
|
10671
10711
|
|
|
10672
10712
|
const PARALLEL_EXECUTION_LIMITS = [
|
|
10673
10713
|
'parallelEventPulls',
|
|
@@ -10706,129 +10746,153 @@ const EDITABLE_LIMITS = [
|
|
|
10706
10746
|
'parallelFlowRunsPerConnection',
|
|
10707
10747
|
];
|
|
10708
10748
|
|
|
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(),
|
|
10749
|
+
const OrgWorkspaceSchema = z.z.object({
|
|
10750
|
+
id: z.z.string(),
|
|
10751
|
+
name: z.z.string(),
|
|
10752
|
+
orgId: z.z.string(),
|
|
10753
|
+
apiBaseUri: z.z.string().optional(),
|
|
10754
|
+
key: z.z.string(),
|
|
10755
|
+
secret: z.z.string(),
|
|
10756
|
+
createdAt: z.z.coerce.date(),
|
|
10757
|
+
updatedAt: z.z.coerce.date(),
|
|
10758
|
+
engineAccessToken: z.z.string().optional(),
|
|
10759
|
+
onboardingStep: z.z.nativeEnum(exports.WorkspaceOnboardingStep).optional(),
|
|
10760
|
+
trialEndDate: z.z.string().optional(),
|
|
10761
|
+
featureFlags: z.z.array(z.z.string()).optional(),
|
|
10762
|
+
logoUri: z.z.string().optional(),
|
|
10763
|
+
});
|
|
10764
|
+
const OrgWorkspaceUser = z.z.object({
|
|
10765
|
+
id: z.z.string(),
|
|
10766
|
+
workspaceId: z.z.string(),
|
|
10767
|
+
testCustomerId: z.z.string(),
|
|
10768
|
+
userId: z.z.string(),
|
|
10769
|
+
role: z.z.string(),
|
|
10770
10770
|
});
|
|
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
|
-
const
|
|
10811
|
-
|
|
10812
|
-
|
|
10813
|
-
|
|
10814
|
-
|
|
10815
|
-
|
|
10816
|
-
|
|
10817
|
-
|
|
10818
|
-
|
|
10819
|
-
|
|
10820
|
-
|
|
10821
|
-
|
|
10822
|
-
|
|
10823
|
-
|
|
10824
|
-
|
|
10825
|
-
|
|
10826
|
-
|
|
10827
|
-
|
|
10828
|
-
|
|
10829
|
-
|
|
10830
|
-
|
|
10831
|
-
|
|
10771
|
+
|
|
10772
|
+
exports.WorkspaceElementChangeType = void 0;
|
|
10773
|
+
(function (WorkspaceElementChangeType) {
|
|
10774
|
+
WorkspaceElementChangeType["CREATE"] = "create";
|
|
10775
|
+
WorkspaceElementChangeType["UPDATE"] = "update";
|
|
10776
|
+
WorkspaceElementChangeType["DELETE"] = "delete";
|
|
10777
|
+
})(exports.WorkspaceElementChangeType || (exports.WorkspaceElementChangeType = {}));
|
|
10778
|
+
function compareWorkspaceExports(baseExport, targetExport) {
|
|
10779
|
+
const changes = [];
|
|
10780
|
+
const result = {
|
|
10781
|
+
[exports.WorkspaceElementChangeType.CREATE]: new Set(),
|
|
10782
|
+
[exports.WorkspaceElementChangeType.UPDATE]: new Set(),
|
|
10783
|
+
[exports.WorkspaceElementChangeType.DELETE]: new Set(),
|
|
10784
|
+
};
|
|
10785
|
+
const integrationMap = buildIntegrationsMap([
|
|
10786
|
+
...(baseExport[exports.WorkspaceElementType.Integration] || []),
|
|
10787
|
+
...(targetExport[exports.WorkspaceElementType.Integration] || []),
|
|
10788
|
+
]);
|
|
10789
|
+
const baseMap = new Map();
|
|
10790
|
+
const targetMap = new Map();
|
|
10791
|
+
const allSelectors = new Set();
|
|
10792
|
+
const allElementTypes = new Set([...Object.keys(baseExport), ...Object.keys(targetExport)]);
|
|
10793
|
+
for (const elementType of allElementTypes) {
|
|
10794
|
+
const type = elementType;
|
|
10795
|
+
const baseElements = baseExport[type] || [];
|
|
10796
|
+
for (const element of baseElements) {
|
|
10797
|
+
const intIdentifier = getIntegrationIdentifier(element, integrationMap);
|
|
10798
|
+
const selector = getElementSelector(type, element.key, intIdentifier);
|
|
10799
|
+
baseMap.set(selector, element);
|
|
10800
|
+
allSelectors.add(selector);
|
|
10801
|
+
}
|
|
10802
|
+
const targetElements = targetExport[type] || [];
|
|
10803
|
+
for (const element of targetElements) {
|
|
10804
|
+
const intIdentifier = getIntegrationIdentifier(element, integrationMap);
|
|
10805
|
+
const selector = getElementSelector(type, element.key, intIdentifier);
|
|
10806
|
+
targetMap.set(selector, element);
|
|
10807
|
+
allSelectors.add(selector);
|
|
10808
|
+
}
|
|
10809
|
+
}
|
|
10810
|
+
for (const selector of allSelectors) {
|
|
10811
|
+
const baseElement = baseMap.get(selector);
|
|
10812
|
+
const targetElement = targetMap.get(selector);
|
|
10813
|
+
const change = compareElementExports(baseElement, targetElement);
|
|
10814
|
+
if (change) {
|
|
10815
|
+
changes.push(change);
|
|
10816
|
+
}
|
|
10817
|
+
}
|
|
10818
|
+
changes.forEach((change) => {
|
|
10819
|
+
result[change.type].add(change.uuid);
|
|
10820
|
+
});
|
|
10821
|
+
return result;
|
|
10822
|
+
}
|
|
10823
|
+
function compareElementExports(baseElement, targetElement) {
|
|
10824
|
+
if (baseElement && !targetElement) {
|
|
10825
|
+
return {
|
|
10826
|
+
type: exports.WorkspaceElementChangeType.DELETE,
|
|
10827
|
+
uuid: baseElement.uuid,
|
|
10828
|
+
};
|
|
10829
|
+
}
|
|
10830
|
+
if (!baseElement && targetElement) {
|
|
10831
|
+
return {
|
|
10832
|
+
type: exports.WorkspaceElementChangeType.CREATE,
|
|
10833
|
+
uuid: targetElement.uuid,
|
|
10834
|
+
};
|
|
10835
|
+
}
|
|
10836
|
+
if (baseElement && targetElement && !deepEqual(baseElement, targetElement)) {
|
|
10837
|
+
return {
|
|
10838
|
+
type: exports.WorkspaceElementChangeType.UPDATE,
|
|
10839
|
+
uuid: targetElement.uuid,
|
|
10840
|
+
};
|
|
10841
|
+
}
|
|
10842
|
+
return undefined;
|
|
10843
|
+
}
|
|
10844
|
+
function getIntegrationIdentifier(element, integrationMap) {
|
|
10845
|
+
let integrationIdentifier;
|
|
10846
|
+
if (element.integrationUuid) {
|
|
10847
|
+
integrationIdentifier = integrationMap.get(element.integrationUuid);
|
|
10848
|
+
}
|
|
10849
|
+
if (element.integrationId) {
|
|
10850
|
+
integrationIdentifier = integrationMap.get(element.integrationId);
|
|
10851
|
+
}
|
|
10852
|
+
return integrationIdentifier || element.integrationUuid || element.integrationId;
|
|
10853
|
+
}
|
|
10854
|
+
function getElementSelector(type, key, integrationIdentifier) {
|
|
10855
|
+
if (integrationIdentifier) {
|
|
10856
|
+
return `${type}:${key}:${integrationIdentifier}`;
|
|
10857
|
+
}
|
|
10858
|
+
return `${type}:${key}`;
|
|
10859
|
+
}
|
|
10860
|
+
function buildIntegrationsMap(integrations) {
|
|
10861
|
+
const map = new Map();
|
|
10862
|
+
for (const integration of integrations) {
|
|
10863
|
+
if (integration.uuid && integration.key) {
|
|
10864
|
+
map.set(integration.uuid, integration.key);
|
|
10865
|
+
continue;
|
|
10866
|
+
}
|
|
10867
|
+
if (integration.id && integration.key) {
|
|
10868
|
+
map.set(integration.id.toString(), integration.key);
|
|
10869
|
+
}
|
|
10870
|
+
}
|
|
10871
|
+
return map;
|
|
10872
|
+
}
|
|
10873
|
+
|
|
10874
|
+
const PlatformUserSchema = z.z.object({
|
|
10875
|
+
id: z.z.string(),
|
|
10876
|
+
email: z.z.string(),
|
|
10877
|
+
name: z.z.string(),
|
|
10878
|
+
trialRequested: z.z.boolean(),
|
|
10879
|
+
introVideoStatus: z.z.string().optional(),
|
|
10880
|
+
isEligible: z.z.boolean().optional(),
|
|
10881
|
+
emailVerified: z.z.boolean().optional(),
|
|
10882
|
+
});
|
|
10883
|
+
const FullPlatformUser = z.z.object({
|
|
10884
|
+
id: z.z.string(),
|
|
10885
|
+
auth0Id: z.z.string().optional(),
|
|
10886
|
+
email: z.z.string(),
|
|
10887
|
+
name: z.z.string(),
|
|
10888
|
+
defaultAccountId: z.z.string().optional(),
|
|
10889
|
+
defaultWorkspaceId: z.z.string().optional(),
|
|
10890
|
+
isAdmin: z.z.boolean().optional(),
|
|
10891
|
+
trialRequested: z.z.boolean(),
|
|
10892
|
+
pat: z.z.string().optional(),
|
|
10893
|
+
introVideoStatus: z.z.string().optional(),
|
|
10894
|
+
isEligible: z.z.boolean().optional(),
|
|
10895
|
+
emailVerified: z.z.boolean().optional(),
|
|
10832
10896
|
});
|
|
10833
10897
|
|
|
10834
10898
|
exports.OrgLimitsType = void 0;
|
|
@@ -10848,54 +10912,58 @@ exports.OrgUserStatus = void 0;
|
|
|
10848
10912
|
OrgUserStatus["Invited"] = "invited";
|
|
10849
10913
|
OrgUserStatus["Active"] = "active";
|
|
10850
10914
|
})(exports.OrgUserStatus || (exports.OrgUserStatus = {}));
|
|
10851
|
-
const OrgLimits =
|
|
10915
|
+
const OrgLimits = z.z
|
|
10852
10916
|
.object({
|
|
10853
|
-
numberOfWorkspaces:
|
|
10854
|
-
todayUsage:
|
|
10855
|
-
lastThirtyDayUsage:
|
|
10856
|
-
membraneAgentLastThirtyDaysUsage:
|
|
10857
|
-
membraneExpertCreditsCapPerMonth:
|
|
10917
|
+
numberOfWorkspaces: z.z.number().optional(),
|
|
10918
|
+
todayUsage: z.z.number().optional(),
|
|
10919
|
+
lastThirtyDayUsage: z.z.number().optional(),
|
|
10920
|
+
membraneAgentLastThirtyDaysUsage: z.z.number().optional(),
|
|
10921
|
+
membraneExpertCreditsCapPerMonth: z.z.number().nullable().optional(),
|
|
10858
10922
|
})
|
|
10859
10923
|
.optional();
|
|
10860
|
-
const MembraneAgentKey =
|
|
10924
|
+
const MembraneAgentKey = z.z
|
|
10861
10925
|
.object({
|
|
10862
|
-
key:
|
|
10863
|
-
expiresAt:
|
|
10926
|
+
key: z.z.string().optional(),
|
|
10927
|
+
expiresAt: z.z.string().optional(),
|
|
10864
10928
|
})
|
|
10865
10929
|
.optional();
|
|
10866
|
-
const OrgSchema =
|
|
10867
|
-
id:
|
|
10868
|
-
key:
|
|
10869
|
-
name:
|
|
10870
|
-
createdAt:
|
|
10871
|
-
updatedAt:
|
|
10872
|
-
trialEndDate:
|
|
10873
|
-
lastTrialExtensionDate:
|
|
10930
|
+
const OrgSchema = z.z.object({
|
|
10931
|
+
id: z.z.string(),
|
|
10932
|
+
key: z.z.string(),
|
|
10933
|
+
name: z.z.string(),
|
|
10934
|
+
createdAt: z.z.coerce.date(),
|
|
10935
|
+
updatedAt: z.z.coerce.date(),
|
|
10936
|
+
trialEndDate: z.z.string().optional(),
|
|
10937
|
+
lastTrialExtensionDate: z.z.string().optional(),
|
|
10874
10938
|
limits: OrgLimits,
|
|
10875
|
-
thirtyDayTotalCredits:
|
|
10876
|
-
lastThirtyDayUsagePercent:
|
|
10877
|
-
todayUsagePercent:
|
|
10878
|
-
domains:
|
|
10879
|
-
featureFlags:
|
|
10880
|
-
freeAiMonthlyCredits:
|
|
10881
|
-
paidAiCredits:
|
|
10882
|
-
stripeCustomerId:
|
|
10883
|
-
|
|
10884
|
-
|
|
10939
|
+
thirtyDayTotalCredits: z.z.number().optional(),
|
|
10940
|
+
lastThirtyDayUsagePercent: z.z.number().optional(),
|
|
10941
|
+
todayUsagePercent: z.z.number().optional(),
|
|
10942
|
+
domains: z.z.array(z.z.string()).optional(),
|
|
10943
|
+
featureFlags: z.z.array(z.z.string()).optional(),
|
|
10944
|
+
freeAiMonthlyCredits: z.z.number().optional(),
|
|
10945
|
+
paidAiCredits: z.z.number().optional(),
|
|
10946
|
+
stripeCustomerId: z.z.string().optional(),
|
|
10947
|
+
autoChargeEnabled: z.z.boolean().optional(),
|
|
10948
|
+
autoChargeThreshold: z.z.number().optional(),
|
|
10949
|
+
autoChargePurchaseAmount: z.z.number().optional(),
|
|
10950
|
+
autoChargeMonthlyLimit: z.z.number().optional(),
|
|
10951
|
+
});
|
|
10952
|
+
const AccountResponse = z.z.object({
|
|
10885
10953
|
user: FullPlatformUser.optional(),
|
|
10886
10954
|
workspace: OrgWorkspaceSchema.optional(),
|
|
10887
|
-
workspaces:
|
|
10955
|
+
workspaces: z.z.array(OrgWorkspaceSchema).optional(),
|
|
10888
10956
|
workspaceUser: OrgWorkspaceUser.extend({
|
|
10889
|
-
testCustomerId:
|
|
10957
|
+
testCustomerId: z.z.string(),
|
|
10890
10958
|
}).optional(),
|
|
10891
10959
|
engineTestUser: BaseCustomer.optional(),
|
|
10892
10960
|
testCustomer: BaseCustomer.optional(),
|
|
10893
10961
|
engineApp: AppSchema.optional(),
|
|
10894
|
-
superAdminToken:
|
|
10895
|
-
orgs:
|
|
10896
|
-
permissions:
|
|
10897
|
-
message:
|
|
10898
|
-
error:
|
|
10962
|
+
superAdminToken: z.z.string().optional().nullable(),
|
|
10963
|
+
orgs: z.z.array(OrgSchema).optional(),
|
|
10964
|
+
permissions: z.z.array(z.z.string()).optional(),
|
|
10965
|
+
message: z.z.string().optional(),
|
|
10966
|
+
error: z.z.string().optional(),
|
|
10899
10967
|
});
|
|
10900
10968
|
|
|
10901
10969
|
exports.WebhookTypeEnum = void 0;
|
|
@@ -10906,6 +10974,7 @@ exports.WebhookTypeEnum = void 0;
|
|
|
10906
10974
|
WebhookTypeEnum["TASK_CREATED"] = "task-created";
|
|
10907
10975
|
WebhookTypeEnum["TASK_UPDATED"] = "task-updated";
|
|
10908
10976
|
WebhookTypeEnum["TASK_ACTIVITY_CREATED"] = "task-activity-created";
|
|
10977
|
+
WebhookTypeEnum["CONNECTOR_VERSION_PUBLISHED"] = "connector-version-published";
|
|
10909
10978
|
})(exports.WebhookTypeEnum || (exports.WebhookTypeEnum = {}));
|
|
10910
10979
|
|
|
10911
10980
|
exports.AlertStatus = void 0;
|
|
@@ -12577,6 +12646,7 @@ class ExternalEventSubscriptionAccessor {
|
|
|
12577
12646
|
exports.WorkspaceSyncEventType = void 0;
|
|
12578
12647
|
(function (WorkspaceSyncEventType) {
|
|
12579
12648
|
WorkspaceSyncEventType["ElementUpdate"] = "element-update";
|
|
12649
|
+
WorkspaceSyncEventType["Connected"] = "connected";
|
|
12580
12650
|
})(exports.WorkspaceSyncEventType || (exports.WorkspaceSyncEventType = {}));
|
|
12581
12651
|
exports.ConnectorFileUpdateType = void 0;
|
|
12582
12652
|
(function (ConnectorFileUpdateType) {
|
|
@@ -12594,44 +12664,44 @@ exports.ScenarioTemplateCategory = void 0;
|
|
|
12594
12664
|
ScenarioTemplateCategory["UnifiedApi"] = "unified-api";
|
|
12595
12665
|
ScenarioTemplateCategory["DataEnrichment"] = "data-enrichment";
|
|
12596
12666
|
})(exports.ScenarioTemplateCategory || (exports.ScenarioTemplateCategory = {}));
|
|
12597
|
-
const HandyScenarioTemplateElement =
|
|
12598
|
-
type:
|
|
12599
|
-
integration:
|
|
12600
|
-
integrations:
|
|
12601
|
-
fields:
|
|
12667
|
+
const HandyScenarioTemplateElement = z.z.object({
|
|
12668
|
+
type: z.z.string(),
|
|
12669
|
+
integration: z.z.object({ key: z.z.string(), connectorId: z.z.string() }).optional(),
|
|
12670
|
+
integrations: z.z.array(z.z.object({ key: z.z.string(), connectorId: z.z.string() })).optional(),
|
|
12671
|
+
fields: z.z
|
|
12602
12672
|
.object({
|
|
12603
|
-
key:
|
|
12604
|
-
name:
|
|
12673
|
+
key: z.z.string(),
|
|
12674
|
+
name: z.z.string(),
|
|
12605
12675
|
})
|
|
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:
|
|
12676
|
+
.and(z.z.record(z.z.string(), z.z.any())),
|
|
12677
|
+
});
|
|
12678
|
+
const withIntegrationKeys = (schema) => schema.and(z.z.object({ integrationKeys: z.z.array(z.z.string()).optional() }));
|
|
12679
|
+
const ElementsExportFields = z.z.object({
|
|
12680
|
+
flows: z.z.record(z.z.string(), withIntegrationKeys(z.z.any())).optional(),
|
|
12681
|
+
actions: z.z.record(z.z.string(), withIntegrationKeys(z.z.any())).optional(),
|
|
12682
|
+
fieldMappings: z.z.record(z.z.string(), withIntegrationKeys(z.z.any())).optional(),
|
|
12683
|
+
dataSources: z.z.record(z.z.string(), withIntegrationKeys(z.z.any())).optional(),
|
|
12684
|
+
dataLinkTables: z.z.record(z.z.string(), z.z.any()).optional(),
|
|
12685
|
+
appEventTypes: z.z.record(z.z.string(), z.z.any()).optional(),
|
|
12686
|
+
appDataSchemas: z.z.record(z.z.string(), z.z.any()).optional(),
|
|
12687
|
+
});
|
|
12688
|
+
const ScenarioTemplateElements = ElementsExportFields.and(z.z.object({
|
|
12689
|
+
integrations: z.z.record(z.z.string(), ElementsExportFields.and(z.z.object({ connectorId: z.z.string() }))).optional(),
|
|
12620
12690
|
}));
|
|
12621
|
-
const ScenarioTemplate =
|
|
12622
|
-
id:
|
|
12623
|
-
name:
|
|
12624
|
-
key:
|
|
12625
|
-
shortDescription:
|
|
12626
|
-
description:
|
|
12627
|
-
demoWorkspaceKey:
|
|
12628
|
-
demoAppUri:
|
|
12629
|
-
demoGithubRepo:
|
|
12630
|
-
demoVideoYoutubeUri:
|
|
12631
|
-
tags:
|
|
12691
|
+
const ScenarioTemplate = z.z.object({
|
|
12692
|
+
id: z.z.string(),
|
|
12693
|
+
name: z.z.string(),
|
|
12694
|
+
key: z.z.string(),
|
|
12695
|
+
shortDescription: z.z.string().optional(),
|
|
12696
|
+
description: z.z.string().optional(),
|
|
12697
|
+
demoWorkspaceKey: z.z.string().optional(),
|
|
12698
|
+
demoAppUri: z.z.string().optional(),
|
|
12699
|
+
demoGithubRepo: z.z.string().optional(),
|
|
12700
|
+
demoVideoYoutubeUri: z.z.string().optional(),
|
|
12701
|
+
tags: z.z.array(z.z.enum(exports.ScenarioTemplateCategory)).optional(),
|
|
12632
12702
|
elements: ScenarioTemplateElements.optional(),
|
|
12633
|
-
connectors:
|
|
12634
|
-
handyElements:
|
|
12703
|
+
connectors: z.z.array(MinimalConnector).optional(),
|
|
12704
|
+
handyElements: z.z.array(HandyScenarioTemplateElement).optional(),
|
|
12635
12705
|
});
|
|
12636
12706
|
|
|
12637
12707
|
exports.AgentSessionStatus = void 0;
|
|
@@ -12643,35 +12713,35 @@ exports.AgentSessionStatus = void 0;
|
|
|
12643
12713
|
AgentSessionStatus["FAILED"] = "failed";
|
|
12644
12714
|
AgentSessionStatus["CANCELLED"] = "cancelled";
|
|
12645
12715
|
})(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:
|
|
12716
|
+
const AgentSession = z.z.object({
|
|
12717
|
+
id: z.z.string(),
|
|
12718
|
+
workspaceId: z.z.string(),
|
|
12719
|
+
workspaceElementType: z.z.enum(exports.WorkspaceElementType),
|
|
12720
|
+
workspaceElementId: z.z.string(),
|
|
12721
|
+
type: z.z.string(),
|
|
12722
|
+
status: z.z.enum(exports.AgentSessionStatus),
|
|
12723
|
+
workerId: z.z.string().optional(),
|
|
12724
|
+
workerUrl: z.z.string().url().optional(),
|
|
12725
|
+
prompt: z.z.string(),
|
|
12656
12726
|
error: ErrorDataSchema.optional(),
|
|
12657
|
-
createdBy:
|
|
12658
|
-
lastActivityAt:
|
|
12659
|
-
createdAt:
|
|
12660
|
-
updatedAt:
|
|
12661
|
-
storedMessagesUri:
|
|
12662
|
-
sessionFilesZipUri:
|
|
12663
|
-
logs:
|
|
12664
|
-
usage:
|
|
12665
|
-
});
|
|
12666
|
-
const CreateAgentSession =
|
|
12667
|
-
workspaceElementType:
|
|
12668
|
-
workspaceElementId:
|
|
12669
|
-
prompt:
|
|
12670
|
-
testCustomerId:
|
|
12671
|
-
});
|
|
12672
|
-
const AgentSessionInputSchema =
|
|
12673
|
-
input:
|
|
12674
|
-
synthetic:
|
|
12727
|
+
createdBy: z.z.string(),
|
|
12728
|
+
lastActivityAt: z.z.iso.datetime(),
|
|
12729
|
+
createdAt: z.z.iso.datetime(),
|
|
12730
|
+
updatedAt: z.z.iso.datetime(),
|
|
12731
|
+
storedMessagesUri: z.z.string().url().optional(),
|
|
12732
|
+
sessionFilesZipUri: z.z.string().url().optional(),
|
|
12733
|
+
logs: z.z.array(z.z.any()).optional(),
|
|
12734
|
+
usage: z.z.number().optional(),
|
|
12735
|
+
});
|
|
12736
|
+
const CreateAgentSession = z.z.object({
|
|
12737
|
+
workspaceElementType: z.z.enum(exports.WorkspaceElementType).optional(),
|
|
12738
|
+
workspaceElementId: z.z.string().min(1).optional(),
|
|
12739
|
+
prompt: z.z.string().min(1),
|
|
12740
|
+
testCustomerId: z.z.string().optional(),
|
|
12741
|
+
});
|
|
12742
|
+
const AgentSessionInputSchema = z.z.object({
|
|
12743
|
+
input: z.z.string().min(1),
|
|
12744
|
+
synthetic: z.z.boolean().optional(),
|
|
12675
12745
|
});
|
|
12676
12746
|
|
|
12677
12747
|
const API_VERSIONS = {
|
|
@@ -13004,6 +13074,8 @@ exports.AgentSessionInputSchema = AgentSessionInputSchema;
|
|
|
13004
13074
|
exports.ApiRequestSpec = ApiRequestSpec;
|
|
13005
13075
|
exports.AppDataSchemaAccessor = AppDataSchemaAccessor;
|
|
13006
13076
|
exports.AppDataSchemaApiResponse = AppDataSchemaApiResponse;
|
|
13077
|
+
exports.AppDataSchemaEditableProperties = AppDataSchemaEditableProperties;
|
|
13078
|
+
exports.AppDataSchemaExportProperties = AppDataSchemaExportProperties;
|
|
13007
13079
|
exports.AppDataSchemaInstanceAccessor = AppDataSchemaInstanceAccessor;
|
|
13008
13080
|
exports.AppDataSchemaInstanceApiResponse = AppDataSchemaInstanceApiResponse;
|
|
13009
13081
|
exports.AppDataSchemaInstancesAccessor = AppDataSchemaInstancesAccessor;
|
|
@@ -13014,8 +13086,9 @@ exports.AppEventSubscriptionApiResponse = AppEventSubscriptionApiResponse;
|
|
|
13014
13086
|
exports.AppEventSubscriptionsAccessor = AppEventSubscriptionsAccessor;
|
|
13015
13087
|
exports.AppEventTypeAccessor = AppEventTypeAccessor;
|
|
13016
13088
|
exports.AppEventTypeApiResponse = AppEventTypeApiResponse;
|
|
13089
|
+
exports.AppEventTypeEditableProperties = AppEventTypeEditableProperties;
|
|
13090
|
+
exports.AppEventTypeExportProperties = AppEventTypeExportProperties;
|
|
13017
13091
|
exports.AppEventTypesAccessor = AppEventTypesAccessor;
|
|
13018
|
-
exports.AppPublicKey = AppPublicKey;
|
|
13019
13092
|
exports.AppSchema = AppSchema;
|
|
13020
13093
|
exports.AppliedToIntegrations = AppliedToIntegrations;
|
|
13021
13094
|
exports.BackwardCompatibleDataSourceEditableProperties = BackwardCompatibleDataSourceEditableProperties;
|
|
@@ -13097,6 +13170,7 @@ exports.CreateActionRequest = CreateActionRequest;
|
|
|
13097
13170
|
exports.CreateAgentSession = CreateAgentSession;
|
|
13098
13171
|
exports.CreateConnectionRequest = CreateConnectionRequest;
|
|
13099
13172
|
exports.CreateCustomerRequest = CreateCustomerRequest;
|
|
13173
|
+
exports.CreateDataLinkTableRequest = CreateDataLinkTableRequest;
|
|
13100
13174
|
exports.CreateDataSourceInstanceRequest = CreateDataSourceInstanceRequest;
|
|
13101
13175
|
exports.CreateDataSourceRequest = CreateDataSourceRequest;
|
|
13102
13176
|
exports.CreateFieldMappingRequest = CreateFieldMappingRequest;
|
|
@@ -13151,6 +13225,8 @@ exports.DataLink = DataLink;
|
|
|
13151
13225
|
exports.DataLinkTableAccessor = DataLinkTableAccessor;
|
|
13152
13226
|
exports.DataLinkTableApiResponse = DataLinkTableApiResponse;
|
|
13153
13227
|
exports.DataLinkTableConfig = DataLinkTableConfig;
|
|
13228
|
+
exports.DataLinkTableEditableProperties = DataLinkTableEditableProperties;
|
|
13229
|
+
exports.DataLinkTableExportProperties = DataLinkTableExportProperties;
|
|
13154
13230
|
exports.DataLinkTableInstanceAccessor = DataLinkTableInstanceAccessor;
|
|
13155
13231
|
exports.DataLinkTableInstanceApiResponse = DataLinkTableInstanceApiResponse;
|
|
13156
13232
|
exports.DataLinkTableInstancesAccessor = DataLinkTableInstancesAccessor;
|
|
@@ -13205,6 +13281,7 @@ exports.FindActionsQuery = FindActionsQuery;
|
|
|
13205
13281
|
exports.FindConnectionsQuery = FindConnectionsQuery;
|
|
13206
13282
|
exports.FindConnectionsResponse = FindConnectionsResponse;
|
|
13207
13283
|
exports.FindCustomersQuery = FindCustomersQuery;
|
|
13284
|
+
exports.FindDataLinkTablesQuery = FindDataLinkTablesQuery;
|
|
13208
13285
|
exports.FindDataSourceEventsQuery = FindDataSourceEventsQuery;
|
|
13209
13286
|
exports.FindDataSourceInstanceSyncsQuery = FindDataSourceInstanceSyncsQuery;
|
|
13210
13287
|
exports.FindDataSourceInstancesQuery = FindDataSourceInstancesQuery;
|
|
@@ -13255,6 +13332,7 @@ exports.InsufficientCreditsError = InsufficientCreditsError;
|
|
|
13255
13332
|
exports.IntegrationAccessor = IntegrationAccessor;
|
|
13256
13333
|
exports.IntegrationApiResponse = IntegrationApiResponse;
|
|
13257
13334
|
exports.IntegrationAppClient = MembraneClient;
|
|
13335
|
+
exports.IntegrationAppError = IntegrationAppError;
|
|
13258
13336
|
exports.IntegrationAuthOption = IntegrationAuthOption;
|
|
13259
13337
|
exports.IntegrationAuthUi = IntegrationAuthUi;
|
|
13260
13338
|
exports.IntegrationExportProperties = IntegrationExportProperties;
|
|
@@ -13325,6 +13403,7 @@ exports.UpdateActionInstanceRequest = UpdateActionInstanceRequest;
|
|
|
13325
13403
|
exports.UpdateActionRequest = UpdateActionRequest;
|
|
13326
13404
|
exports.UpdateConnectionRequest = UpdateConnectionRequest;
|
|
13327
13405
|
exports.UpdateCustomerRequest = UpdateCustomerRequest;
|
|
13406
|
+
exports.UpdateDataLinkTableRequest = UpdateDataLinkTableRequest;
|
|
13328
13407
|
exports.UpdateDataSourceInstanceRequest = UpdateDataSourceInstanceRequest;
|
|
13329
13408
|
exports.UpdateDataSourceRequest = UpdateDataSourceRequest;
|
|
13330
13409
|
exports.UpdateFieldMappingRequest = UpdateFieldMappingRequest;
|
|
@@ -13337,6 +13416,7 @@ exports.UsersAccessor = UsersAccessor;
|
|
|
13337
13416
|
exports.WORKSPACE_SIZE_LIMITS = WORKSPACE_SIZE_LIMITS;
|
|
13338
13417
|
exports.WorkspaceElementSpecs = WorkspaceElementSpecs;
|
|
13339
13418
|
exports.WorkspaceLimitsSchema = WorkspaceLimitsSchema;
|
|
13419
|
+
exports.WorkspacePublicKey = WorkspacePublicKey;
|
|
13340
13420
|
exports.__resolveValue = __resolveValue;
|
|
13341
13421
|
exports.addRequiredFieldsToSchema = addRequiredFieldsToSchema;
|
|
13342
13422
|
exports.addUdmFallbackFields = addUdmFallbackFields;
|
|
@@ -13375,6 +13455,7 @@ exports.getDataCollectionCreateFields = getDataCollectionCreateFields;
|
|
|
13375
13455
|
exports.getDataCollectionUpdateFields = getDataCollectionUpdateFields;
|
|
13376
13456
|
exports.getDataLocationMethodPath = getDataLocationMethodPath;
|
|
13377
13457
|
exports.getDownstreamNodeKeys = getDownstreamNodeKeys;
|
|
13458
|
+
exports.getElementSelector = getElementSelector;
|
|
13378
13459
|
exports.getErrorFromData = getErrorFromData;
|
|
13379
13460
|
exports.getEventMethodFileKey = getEventMethodFileKey;
|
|
13380
13461
|
exports.getFilterFieldValuesByLocator = getFilterFieldValuesByLocator;
|