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