@membranehq/sdk 0.9.11 → 0.11.0
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 +75 -34
- package/dist/bundle.js +34 -17
- package/dist/bundle.js.map +1 -1
- package/dist/dts/accessors/connections-accessors.d.ts +18 -12
- package/dist/dts/accessors/integrations-accessors.d.ts +15 -11
- package/dist/dts/agent/session.d.ts +10 -0
- package/dist/dts/alerts/index.d.ts +1 -0
- package/dist/dts/alerts/types.d.ts +106 -13
- package/dist/dts/alerts/utils.d.ts +8 -0
- package/dist/dts/config/index.d.ts +1 -0
- package/dist/dts/dto/index.d.ts +3 -0
- package/dist/dts/functions/base.d.ts +2 -2
- package/dist/dts/index.browser.d.ts +1 -0
- package/dist/dts/logging/index.d.ts +9 -0
- package/dist/dts/orgs/types.d.ts +68 -1
- package/dist/dts/platform-users.d.ts +17 -2
- package/dist/dts/usage/types.d.ts +1 -0
- package/dist/dts/webhooks/types.d.ts +4 -2
- package/dist/dts/workspace-elements/api/action-run-log-records-api.d.ts +6 -2
- package/dist/dts/workspace-elements/api/connections-api.d.ts +19 -4
- package/dist/dts/workspace-elements/api/data-link-table-instances-api.d.ts +3 -1
- package/dist/dts/workspace-elements/api/data-source-instances-api.d.ts +3 -1
- package/dist/dts/workspace-elements/api/external-event-log-records-api.d.ts +3 -1
- package/dist/dts/workspace-elements/api/external-event-pulls-api.d.ts +3 -1
- package/dist/dts/workspace-elements/api/external-event-subscriptions-api.d.ts +3 -1
- package/dist/dts/workspace-elements/api/field-mapping-instances-api.d.ts +6 -2
- package/dist/dts/workspace-elements/api/flow-runs-api.d.ts +6 -2
- package/dist/dts/workspace-elements/api/flows-api.d.ts +6 -2
- package/dist/dts/workspace-elements/api/integrations-api.d.ts +5 -4
- package/dist/dts/workspace-elements/api/packages-api.d.ts +2 -0
- package/dist/dts/workspace-elements/base/actions/index.d.ts +1 -1
- package/dist/dts/workspace-elements/base/connections/types.d.ts +3 -1
- package/dist/dts/workspace-elements/base/connectors/auth.d.ts +20 -0
- package/dist/dts/workspace-elements/base/connectors/functions.d.ts +12 -490
- package/dist/dts/workspace-elements/base/connectors/functions.test.d.ts +1 -0
- package/dist/dts/workspace-elements/base/connectors/index.d.ts +1 -0
- package/dist/dts/workspace-elements/base/connectors/types.d.ts +922 -478
- package/dist/dts/workspace-elements/base/data-collections/data-locations/collections/methods/base.d.ts +1 -2
- package/dist/dts/workspace-elements/base/integrations/index.d.ts +0 -2
- package/dist/dts/workspace-elements/base/packages/index.d.ts +2 -0
- package/dist/dts/workspace-elements/element-utils.d.ts +2 -0
- package/dist/dts/workspace-elements/element-utils.test.d.ts +1 -0
- package/dist/dts/workspace-elements/index.d.ts +1 -0
- package/dist/dts/workspace-elements/types.d.ts +9 -3
- package/dist/dts/workspaces/types.d.ts +39 -1
- package/dist/index.browser.d.mts +1420 -641
- package/dist/index.browser.d.ts +1420 -641
- package/dist/index.browser.js +608 -122
- package/dist/index.browser.js.map +1 -1
- package/dist/index.browser.mjs +584 -123
- package/dist/index.browser.mjs.map +1 -1
- package/dist/index.node.d.mts +1370 -590
- package/dist/index.node.d.ts +1370 -590
- package/dist/index.node.js +615 -122
- package/dist/index.node.js.map +1 -1
- package/dist/index.node.mjs +591 -123
- package/dist/index.node.mjs.map +1 -1
- package/package.json +2 -1
package/dist/index.node.js
CHANGED
|
@@ -3501,6 +3501,7 @@ exports.WorkspaceEventType = void 0;
|
|
|
3501
3501
|
WorkspaceEventType["FlowRunCompleted"] = "flowRun.completed";
|
|
3502
3502
|
WorkspaceEventType["FlowRunFailed"] = "flowRun.failed";
|
|
3503
3503
|
WorkspaceEventType["FlowRunStopped"] = "flowRun.stopped";
|
|
3504
|
+
WorkspaceEventType["AlertCreated"] = "alert.created";
|
|
3504
3505
|
})(exports.WorkspaceEventType || (exports.WorkspaceEventType = {}));
|
|
3505
3506
|
exports.WorkspaceElementState = void 0;
|
|
3506
3507
|
(function (WorkspaceElementState) {
|
|
@@ -3551,8 +3552,9 @@ const BaseIntegrationLevelMembraneInterfaceExportProperties = BaseMembraneInterf
|
|
|
3551
3552
|
parentUuid: z.z.string().optional(),
|
|
3552
3553
|
isCustomized: z.z.boolean().optional(),
|
|
3553
3554
|
});
|
|
3555
|
+
const MembraneElementLayer = z.z.enum(['universal', 'integration', 'connection']);
|
|
3554
3556
|
const IntegrationLevelMembraneInterfaceSelectorQuery = z.z.object({
|
|
3555
|
-
layer:
|
|
3557
|
+
layer: MembraneElementLayer.optional(),
|
|
3556
3558
|
integrationKey: z.z.string().optional(),
|
|
3557
3559
|
integrationId: z.z.string().optional(),
|
|
3558
3560
|
connectionId: z.z.string().optional(),
|
|
@@ -3572,8 +3574,7 @@ const WorkspaceElementSearchQuery = z.z.object({
|
|
|
3572
3574
|
});
|
|
3573
3575
|
const WorkspaceElementSearchResult = z.z.object({
|
|
3574
3576
|
elementType: z.z.enum(exports.WorkspaceElementType),
|
|
3575
|
-
|
|
3576
|
-
name: z.z.string(),
|
|
3577
|
+
element: z.z.any(),
|
|
3577
3578
|
});
|
|
3578
3579
|
|
|
3579
3580
|
function mergeWithFormulas(a, b) {
|
|
@@ -3795,7 +3796,9 @@ const BaseConnection = BaseWorkspaceElement.extend({
|
|
|
3795
3796
|
isDefunct: z.z.boolean().optional(),
|
|
3796
3797
|
state: z.z.enum(exports.WorkspaceElementState).optional(),
|
|
3797
3798
|
error: ErrorDataSchema.optional(),
|
|
3798
|
-
integrationId: z.z.string(),
|
|
3799
|
+
integrationId: z.z.string().optional(),
|
|
3800
|
+
connectorId: z.z.string().optional(),
|
|
3801
|
+
connectorVersion: z.z.string().optional(),
|
|
3799
3802
|
authOptionKey: z.z.string().optional(),
|
|
3800
3803
|
createdAt: z.z.string(),
|
|
3801
3804
|
updatedAt: z.z.string(),
|
|
@@ -3881,6 +3884,7 @@ const ConnectorAuthSpec = z.z.object({
|
|
|
3881
3884
|
title: z.z.string().optional(),
|
|
3882
3885
|
description: z.z.string().optional(),
|
|
3883
3886
|
type: z.z.enum(CONNECTOR_AUTH_TYPES),
|
|
3887
|
+
inputSchema: DataSchema.optional(),
|
|
3884
3888
|
ui: z.z
|
|
3885
3889
|
.object({
|
|
3886
3890
|
schema: DataSchema.optional(),
|
|
@@ -3910,11 +3914,12 @@ function getAuthSpec(spec, authOptionKey) {
|
|
|
3910
3914
|
const getDefaultAuthInputSchema = (args) => {
|
|
3911
3915
|
var _a, _b, _c, _d, _e, _f;
|
|
3912
3916
|
const authSpec = getAuthSpec(args.connectorSpec, args.authOptionKey);
|
|
3917
|
+
const inputSchema = (_b = (_a = authSpec === null || authSpec === void 0 ? void 0 : authSpec.ui) === null || _a === void 0 ? void 0 : _a.schema) !== null && _b !== void 0 ? _b : (_d = (_c = args.connectorSpec) === null || _c === void 0 ? void 0 : _c.ui) === null || _d === void 0 ? void 0 : _d.schema;
|
|
3913
3918
|
return {
|
|
3914
3919
|
type: 'object',
|
|
3915
3920
|
properties: {
|
|
3916
|
-
connectorParameters: (
|
|
3917
|
-
|
|
3921
|
+
connectorParameters: (_f = (_e = args.connectorSpec) === null || _e === void 0 ? void 0 : _e.parametersSchema) !== null && _f !== void 0 ? _f : {},
|
|
3922
|
+
connectionInput: inputSchema,
|
|
3918
3923
|
},
|
|
3919
3924
|
};
|
|
3920
3925
|
};
|
|
@@ -4015,7 +4020,7 @@ const ConnectorAuthMethodTypes = {
|
|
|
4015
4020
|
},
|
|
4016
4021
|
};
|
|
4017
4022
|
},
|
|
4018
|
-
getOutputSchema: () => REST_API_CLIENT_SCHEMA,
|
|
4023
|
+
getOutputSchema: () => REST_API_CLIENT_SCHEMA$1,
|
|
4019
4024
|
isRequired: true,
|
|
4020
4025
|
},
|
|
4021
4026
|
test: {
|
|
@@ -4170,7 +4175,7 @@ const REST_API_CLIENT_RESPONSE_HANDLERS_SCHEMA = {
|
|
|
4170
4175
|
},
|
|
4171
4176
|
},
|
|
4172
4177
|
};
|
|
4173
|
-
const REST_API_CLIENT_SCHEMA = {
|
|
4178
|
+
const REST_API_CLIENT_SCHEMA$1 = {
|
|
4174
4179
|
type: 'object',
|
|
4175
4180
|
properties: {
|
|
4176
4181
|
args: {
|
|
@@ -4208,11 +4213,6 @@ const CONNECTOR_DOCS_DIR = 'docs';
|
|
|
4208
4213
|
const CONNECTOR_GLOBAL_WEBHOOKS_DIR = 'global-webhooks';
|
|
4209
4214
|
const CONNECTOR_EVENTS_DIR = 'events';
|
|
4210
4215
|
|
|
4211
|
-
const ConnectorOperationMethodImplementationTypes = [
|
|
4212
|
-
exports.ConnectorMethodImplementationType.restApiMapping,
|
|
4213
|
-
exports.ConnectorMethodImplementationType.javascript,
|
|
4214
|
-
];
|
|
4215
|
-
|
|
4216
4216
|
exports.FunctionType = void 0;
|
|
4217
4217
|
(function (FunctionType) {
|
|
4218
4218
|
FunctionType["mapping"] = "mapping";
|
|
@@ -4232,10 +4232,157 @@ const BaseFunctionDefinition = z.z.object({
|
|
|
4232
4232
|
});
|
|
4233
4233
|
const GenericFunctionDefinition = z.z
|
|
4234
4234
|
.object({
|
|
4235
|
-
type: z.z.enum(['mapping', 'operation-mapping', 'rest-api-mapping', 'graphql-api-mapping', 'javascript']),
|
|
4235
|
+
type: z.z.enum(['mapping', 'operation-mapping', 'rest-api-mapping', 'graphql-api-mapping', 'javascript']).optional(),
|
|
4236
4236
|
})
|
|
4237
4237
|
.loose();
|
|
4238
4238
|
|
|
4239
|
+
function getEffectiveConnectorOption(connector, optionKey) {
|
|
4240
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
4241
|
+
const option = (_a = connector.options) === null || _a === void 0 ? void 0 : _a[optionKey];
|
|
4242
|
+
const connectorInputSchema = (_b = connector.inputSchema) !== null && _b !== void 0 ? _b : (_c = connector.ui) === null || _c === void 0 ? void 0 : _c.schema;
|
|
4243
|
+
const optionInputSchema = (_d = option === null || option === void 0 ? void 0 : option.inputSchema) !== null && _d !== void 0 ? _d : (_e = option === null || option === void 0 ? void 0 : option.ui) === null || _e === void 0 ? void 0 : _e.schema;
|
|
4244
|
+
return {
|
|
4245
|
+
...connector,
|
|
4246
|
+
...option,
|
|
4247
|
+
inputSchema: mergeSchemas([connectorInputSchema, optionInputSchema]),
|
|
4248
|
+
parametersSchema: mergeSchemas([connector.parametersSchema, option === null || option === void 0 ? void 0 : option.parametersSchema]),
|
|
4249
|
+
credentialsSchema: mergeSchemas([connector.credentialsSchema, option === null || option === void 0 ? void 0 : option.credentialsSchema]),
|
|
4250
|
+
makeApiClient: (_f = option === null || option === void 0 ? void 0 : option.makeApiClient) !== null && _f !== void 0 ? _f : connector.makeApiClient,
|
|
4251
|
+
test: (_g = option === null || option === void 0 ? void 0 : option.test) !== null && _g !== void 0 ? _g : connector.test,
|
|
4252
|
+
};
|
|
4253
|
+
}
|
|
4254
|
+
const getDefaultInputSchema = (authConfig) => {
|
|
4255
|
+
var _a, _b, _c;
|
|
4256
|
+
const inputSchema = (_a = authConfig === null || authConfig === void 0 ? void 0 : authConfig.inputSchema) !== null && _a !== void 0 ? _a : (_b = authConfig === null || authConfig === void 0 ? void 0 : authConfig.ui) === null || _b === void 0 ? void 0 : _b.schema;
|
|
4257
|
+
return {
|
|
4258
|
+
type: 'object',
|
|
4259
|
+
properties: {
|
|
4260
|
+
connectorParameters: (_c = authConfig === null || authConfig === void 0 ? void 0 : authConfig.parametersSchema) !== null && _c !== void 0 ? _c : {},
|
|
4261
|
+
...(inputSchema && { connectionInput: inputSchema }),
|
|
4262
|
+
},
|
|
4263
|
+
};
|
|
4264
|
+
};
|
|
4265
|
+
const REST_API_CLIENT_SCHEMA = {
|
|
4266
|
+
type: 'object',
|
|
4267
|
+
properties: {
|
|
4268
|
+
args: {
|
|
4269
|
+
type: 'object',
|
|
4270
|
+
properties: {
|
|
4271
|
+
baseUri: {
|
|
4272
|
+
type: 'string',
|
|
4273
|
+
description: 'This prefix will be added to all relative API requests.',
|
|
4274
|
+
},
|
|
4275
|
+
query: {
|
|
4276
|
+
type: 'object',
|
|
4277
|
+
additionalProperties: true,
|
|
4278
|
+
},
|
|
4279
|
+
headers: {
|
|
4280
|
+
type: 'object',
|
|
4281
|
+
additionalProperties: true,
|
|
4282
|
+
},
|
|
4283
|
+
auth: {
|
|
4284
|
+
type: 'object',
|
|
4285
|
+
description: 'Basic authentication',
|
|
4286
|
+
properties: {
|
|
4287
|
+
username: { type: 'string' },
|
|
4288
|
+
password: { type: 'string' },
|
|
4289
|
+
},
|
|
4290
|
+
},
|
|
4291
|
+
},
|
|
4292
|
+
},
|
|
4293
|
+
},
|
|
4294
|
+
};
|
|
4295
|
+
const ConnectorFunctionSpecs = {
|
|
4296
|
+
getOAuthConfig: {
|
|
4297
|
+
authTypes: ['oauth2', 'oauth1'],
|
|
4298
|
+
supportedFunctionTypes: [exports.FunctionType.mapping, exports.FunctionType.javascript],
|
|
4299
|
+
getInputSchema: (authConfig) => {
|
|
4300
|
+
const schema = getDefaultInputSchema(authConfig);
|
|
4301
|
+
return {
|
|
4302
|
+
...schema,
|
|
4303
|
+
properties: {
|
|
4304
|
+
...schema.properties,
|
|
4305
|
+
redirectUri: { type: 'string' },
|
|
4306
|
+
state: { type: 'string' },
|
|
4307
|
+
},
|
|
4308
|
+
};
|
|
4309
|
+
},
|
|
4310
|
+
getOutputSchema: (authConfig) => {
|
|
4311
|
+
return (authConfig === null || authConfig === void 0 ? void 0 : authConfig.type) === 'oauth1' ? OAUTH1_CONFIG_SCHEMA : OAUTH_CONFIG_SCHEMA;
|
|
4312
|
+
},
|
|
4313
|
+
isRequired: true,
|
|
4314
|
+
},
|
|
4315
|
+
getTokenData: {
|
|
4316
|
+
authTypes: ['oauth2'],
|
|
4317
|
+
supportedFunctionTypes: [exports.FunctionType.mapping, exports.FunctionType.javascript],
|
|
4318
|
+
getInputSchema: getDefaultInputSchema,
|
|
4319
|
+
getOutputSchema: (authConfig) => {
|
|
4320
|
+
var _a;
|
|
4321
|
+
return (_a = authConfig === null || authConfig === void 0 ? void 0 : authConfig.customCredentialsSchema) !== null && _a !== void 0 ? _a : authConfig === null || authConfig === void 0 ? void 0 : authConfig.credentialsSchema;
|
|
4322
|
+
},
|
|
4323
|
+
isRequired: false,
|
|
4324
|
+
},
|
|
4325
|
+
getCredentialsFromAccessTokenResponse: {
|
|
4326
|
+
authTypes: ['oauth2'],
|
|
4327
|
+
supportedFunctionTypes: [exports.FunctionType.mapping, exports.FunctionType.javascript],
|
|
4328
|
+
isRequired: false,
|
|
4329
|
+
},
|
|
4330
|
+
getCredentialsFromRefreshTokenResponse: {
|
|
4331
|
+
authTypes: ['oauth2'],
|
|
4332
|
+
supportedFunctionTypes: [exports.FunctionType.mapping, exports.FunctionType.javascript],
|
|
4333
|
+
isRequired: false,
|
|
4334
|
+
},
|
|
4335
|
+
getCredentialsFromConnectionParameters: {
|
|
4336
|
+
authTypes: ['client-credentials', 'oauth2'],
|
|
4337
|
+
getInputSchema: getDefaultInputSchema,
|
|
4338
|
+
getOutputSchema: (authConfig) => {
|
|
4339
|
+
return authConfig === null || authConfig === void 0 ? void 0 : authConfig.credentialsSchema;
|
|
4340
|
+
},
|
|
4341
|
+
supportedFunctionTypes: [exports.FunctionType.mapping, exports.FunctionType.javascript],
|
|
4342
|
+
isRequired: false,
|
|
4343
|
+
},
|
|
4344
|
+
refreshCredentials: {
|
|
4345
|
+
authTypes: ['oauth2', 'oauth1', 'client-credentials'],
|
|
4346
|
+
getInputSchema: getDefaultInputSchema,
|
|
4347
|
+
getOutputSchema: (authConfig) => {
|
|
4348
|
+
return authConfig === null || authConfig === void 0 ? void 0 : authConfig.credentialsSchema;
|
|
4349
|
+
},
|
|
4350
|
+
supportedFunctionTypes: [exports.FunctionType.javascript],
|
|
4351
|
+
isRequired: false,
|
|
4352
|
+
},
|
|
4353
|
+
makeApiClient: {
|
|
4354
|
+
supportedFunctionTypes: [exports.FunctionType.mapping, exports.FunctionType.javascript],
|
|
4355
|
+
getInputSchema: (authConfig) => {
|
|
4356
|
+
var _a, _b, _c;
|
|
4357
|
+
return {
|
|
4358
|
+
type: 'object',
|
|
4359
|
+
properties: {
|
|
4360
|
+
credentials: mergeSchemas([
|
|
4361
|
+
((_a = authConfig === null || authConfig === void 0 ? void 0 : authConfig.customCredentialsSchema) !== null && _a !== void 0 ? _a : authConfig === null || authConfig === void 0 ? void 0 : authConfig.credentialsSchema),
|
|
4362
|
+
(_b = authConfig === null || authConfig === void 0 ? void 0 : authConfig.inputSchema) !== null && _b !== void 0 ? _b : (_c = authConfig === null || authConfig === void 0 ? void 0 : authConfig.ui) === null || _c === void 0 ? void 0 : _c.schema,
|
|
4363
|
+
]),
|
|
4364
|
+
},
|
|
4365
|
+
};
|
|
4366
|
+
},
|
|
4367
|
+
getOutputSchema: () => REST_API_CLIENT_SCHEMA,
|
|
4368
|
+
isRequired: true,
|
|
4369
|
+
},
|
|
4370
|
+
test: {
|
|
4371
|
+
supportedFunctionTypes: [exports.FunctionType.operationMapping, exports.FunctionType.restApiMapping, exports.FunctionType.javascript],
|
|
4372
|
+
getOutputSchema: () => ({
|
|
4373
|
+
title: 'Success Criteria',
|
|
4374
|
+
description: 'If this value is truthy, the test is considered a success.',
|
|
4375
|
+
type: 'boolean',
|
|
4376
|
+
}),
|
|
4377
|
+
isRequired: true,
|
|
4378
|
+
},
|
|
4379
|
+
};
|
|
4380
|
+
|
|
4381
|
+
const ConnectorOperationMethodImplementationTypes = [
|
|
4382
|
+
exports.ConnectorMethodImplementationType.restApiMapping,
|
|
4383
|
+
exports.ConnectorMethodImplementationType.javascript,
|
|
4384
|
+
];
|
|
4385
|
+
|
|
4239
4386
|
const GraphQLFieldMappingSchema = z.z.lazy(() => z.z.object({
|
|
4240
4387
|
field: z.z.string(),
|
|
4241
4388
|
args: z.z.record(z.z.string(), z.z.any()).optional(),
|
|
@@ -4345,7 +4492,8 @@ const ConnectorSpec = z.z.object({
|
|
|
4345
4492
|
type: z.z.enum(['openapi', 'graphql']),
|
|
4346
4493
|
})
|
|
4347
4494
|
.optional(),
|
|
4348
|
-
ui: ConnectorUiSpec.optional(),
|
|
4495
|
+
ui: ConnectorUiSpec.optional().describe('[INTERNAL] Deprecated: Use inputSchema instead'),
|
|
4496
|
+
inputSchema: DataSchema.optional(),
|
|
4349
4497
|
auth: ConnectorAuth.optional(),
|
|
4350
4498
|
parametersSchema: DataSchema.optional(),
|
|
4351
4499
|
udms: z.z.array(z.z.string()).optional(),
|
|
@@ -4368,14 +4516,10 @@ const ConnectorAuthWithFunctions = z.z.object({
|
|
|
4368
4516
|
type: z.z
|
|
4369
4517
|
.enum(['integration-app-token', 'membrane-token', 'oauth2', 'oauth1', 'client-credentials', 'proxy'])
|
|
4370
4518
|
.optional(),
|
|
4519
|
+
credentialsSchema: DataSchema.optional(),
|
|
4371
4520
|
customCredentialsSchema: DataSchema.optional(),
|
|
4372
|
-
|
|
4373
|
-
|
|
4374
|
-
schema: DataSchema.optional(),
|
|
4375
|
-
description: z.z.string().optional(),
|
|
4376
|
-
helpUri: z.z.string().optional(),
|
|
4377
|
-
})
|
|
4378
|
-
.optional(),
|
|
4521
|
+
inputSchema: DataSchema.optional(),
|
|
4522
|
+
parametersSchema: DataSchema.optional(),
|
|
4379
4523
|
getCredentialsFromConnectionParameters: GenericFunctionDefinition.optional(),
|
|
4380
4524
|
refreshCredentials: GenericFunctionDefinition.optional(),
|
|
4381
4525
|
makeApiClient: GenericFunctionDefinition.optional(),
|
|
@@ -4383,18 +4527,40 @@ const ConnectorAuthWithFunctions = z.z.object({
|
|
|
4383
4527
|
getTokenData: GenericFunctionDefinition.optional(),
|
|
4384
4528
|
getCredentialsFromAccessTokenResponse: GenericFunctionDefinition.optional(),
|
|
4385
4529
|
getCredentialsFromRefreshTokenResponse: GenericFunctionDefinition.optional(),
|
|
4530
|
+
test: GenericFunctionDefinition.optional(),
|
|
4386
4531
|
proxyKey: z.z.string().optional(),
|
|
4532
|
+
ui: z.z
|
|
4533
|
+
.object({
|
|
4534
|
+
schema: DataSchema.optional(),
|
|
4535
|
+
description: z.z.string().optional(),
|
|
4536
|
+
helpUri: z.z.string().optional(),
|
|
4537
|
+
})
|
|
4538
|
+
.optional()
|
|
4539
|
+
.describe('[INTERNAL] Deprecated: Use inputSchema instead'),
|
|
4387
4540
|
});
|
|
4388
|
-
const
|
|
4541
|
+
const WriteableConnectorOption = ConnectorAuthWithFunctions.extend({
|
|
4389
4542
|
title: z.z.string().optional(),
|
|
4390
4543
|
description: z.z.string().optional(),
|
|
4391
4544
|
enabled: z.z.any().optional(),
|
|
4545
|
+
}).omit({
|
|
4546
|
+
credentialsSchema: true,
|
|
4547
|
+
});
|
|
4548
|
+
const ConnectorOption = WriteableConnectorOption.extend({
|
|
4549
|
+
credentialsSchema: DataSchema.optional(),
|
|
4550
|
+
});
|
|
4551
|
+
const GeneratedConnectorOption = z.z.object({
|
|
4552
|
+
key: z.z.string(),
|
|
4553
|
+
type: z.z.enum(CONNECTOR_AUTH_TYPES),
|
|
4554
|
+
title: z.z.string().optional(),
|
|
4555
|
+
description: z.z.string().optional(),
|
|
4556
|
+
inputSchema: DataSchema.optional(),
|
|
4392
4557
|
});
|
|
4393
4558
|
const ConnectorOptions = z.z.record(z.z.string(), ConnectorOption);
|
|
4394
4559
|
const WritableConnectorVersionData = ConnectorAuthWithFunctions.extend({
|
|
4395
4560
|
parametersSchema: DataSchema.optional(),
|
|
4396
|
-
|
|
4397
|
-
|
|
4561
|
+
options: z.z.record(z.z.string(), WriteableConnectorOption).optional(),
|
|
4562
|
+
}).omit({
|
|
4563
|
+
credentialsSchema: true,
|
|
4398
4564
|
});
|
|
4399
4565
|
const ConnectorVersionData = z.z
|
|
4400
4566
|
.object({
|
|
@@ -4412,7 +4578,10 @@ const ConnectorVersionData = z.z
|
|
|
4412
4578
|
version: z.z.string(),
|
|
4413
4579
|
credentialsSchema: DataSchema.optional(),
|
|
4414
4580
|
})
|
|
4415
|
-
.extend(WritableConnectorVersionData.shape)
|
|
4581
|
+
.extend(WritableConnectorVersionData.shape)
|
|
4582
|
+
.extend({
|
|
4583
|
+
options: ConnectorOptions.optional(),
|
|
4584
|
+
});
|
|
4416
4585
|
const ConnectorVersion = ConnectorVersionData.extend({
|
|
4417
4586
|
id: z.z.string(),
|
|
4418
4587
|
connectorId: z.z.string(),
|
|
@@ -4427,6 +4596,7 @@ const WriteableConnectorFields = z.z
|
|
|
4427
4596
|
categories: z.z.array(z.z.string()).optional(),
|
|
4428
4597
|
})
|
|
4429
4598
|
.extend(WritableConnectorVersionData.shape);
|
|
4599
|
+
const ConnectorExportProperties = WriteableConnectorFields;
|
|
4430
4600
|
const UpdateConnectorRequest = WriteableConnectorFields;
|
|
4431
4601
|
const CreateConnectorRequest = WriteableConnectorFields.extend({
|
|
4432
4602
|
name: z.z.string(),
|
|
@@ -4436,16 +4606,12 @@ const BaseConnector = z.z.object({
|
|
|
4436
4606
|
id: z.z.string(),
|
|
4437
4607
|
key: z.z.string(),
|
|
4438
4608
|
uuid: z.z.string(),
|
|
4609
|
+
appUuid: z.z.string().optional(),
|
|
4439
4610
|
name: z.z.string(),
|
|
4440
4611
|
logoUri: z.z.string(),
|
|
4441
|
-
appUri: z.z.string(),
|
|
4442
|
-
apiDocsUri: z.z.string(),
|
|
4443
|
-
hasReadme: z.z.boolean(),
|
|
4444
|
-
status: z.z.string().optional(),
|
|
4445
4612
|
categories: z.z.array(z.z.string()).optional(),
|
|
4446
4613
|
isPublic: z.z.boolean().optional(),
|
|
4447
4614
|
popularity: z.z.number().optional(),
|
|
4448
|
-
appUuid: z.z.string().optional(),
|
|
4449
4615
|
});
|
|
4450
4616
|
const Connector = z.z
|
|
4451
4617
|
.object({})
|
|
@@ -4509,8 +4675,8 @@ const DataCollectionMethodCreate = {
|
|
|
4509
4675
|
},
|
|
4510
4676
|
};
|
|
4511
4677
|
},
|
|
4512
|
-
getInputSchema: ({ collectionSpec, method,
|
|
4513
|
-
var _a
|
|
4678
|
+
getInputSchema: ({ collectionSpec, method, credentialsSchema }) => {
|
|
4679
|
+
var _a;
|
|
4514
4680
|
let fieldsSchema = collectionSpec === null || collectionSpec === void 0 ? void 0 : collectionSpec.fieldsSchema;
|
|
4515
4681
|
if (method === null || method === void 0 ? void 0 : method.fields) {
|
|
4516
4682
|
fieldsSchema = pickFieldsFromSchema(fieldsSchema, method.fields);
|
|
@@ -4520,12 +4686,12 @@ const DataCollectionMethodCreate = {
|
|
|
4520
4686
|
}
|
|
4521
4687
|
return {
|
|
4522
4688
|
type: 'object',
|
|
4523
|
-
properties: {
|
|
4689
|
+
properties: nonEmptyObjectProperties({
|
|
4524
4690
|
fields: (_a = transformVariablesWith(fieldsSchema, (locator) => `fields.${locatorToField(locator)}`)) !== null && _a !== void 0 ? _a : {
|
|
4525
4691
|
type: 'object',
|
|
4526
4692
|
},
|
|
4527
|
-
credentials:
|
|
4528
|
-
},
|
|
4693
|
+
credentials: credentialsSchema,
|
|
4694
|
+
}),
|
|
4529
4695
|
};
|
|
4530
4696
|
},
|
|
4531
4697
|
getOutputSchema: ({}) => ({
|
|
@@ -4540,17 +4706,16 @@ const DataCollectionMethodCreate = {
|
|
|
4540
4706
|
const DataCollectionMethodDelete = {
|
|
4541
4707
|
name: 'Delete',
|
|
4542
4708
|
description: 'Delete a data record from the collection by id',
|
|
4543
|
-
getInputSchema: ({ collectionHandler, parameters,
|
|
4544
|
-
var _a;
|
|
4709
|
+
getInputSchema: ({ collectionHandler, parameters, credentialsSchema }) => {
|
|
4545
4710
|
return {
|
|
4546
4711
|
type: 'object',
|
|
4547
|
-
properties: {
|
|
4712
|
+
properties: nonEmptyObjectProperties({
|
|
4548
4713
|
id: {
|
|
4549
4714
|
type: 'string',
|
|
4550
4715
|
referenceCollection: { key: collectionHandler === null || collectionHandler === void 0 ? void 0 : collectionHandler.key, parameters },
|
|
4551
4716
|
},
|
|
4552
|
-
credentials:
|
|
4553
|
-
},
|
|
4717
|
+
credentials: credentialsSchema,
|
|
4718
|
+
}),
|
|
4554
4719
|
};
|
|
4555
4720
|
},
|
|
4556
4721
|
getOutputSchema: () => null,
|
|
@@ -4574,15 +4739,14 @@ const DataCollectionMethodFind = {
|
|
|
4574
4739
|
},
|
|
4575
4740
|
};
|
|
4576
4741
|
},
|
|
4577
|
-
getInputSchema: ({ collectionSpec, method,
|
|
4578
|
-
var _a;
|
|
4742
|
+
getInputSchema: ({ collectionSpec, method, credentialsSchema }) => {
|
|
4579
4743
|
const queryFieldsSchema = pickFieldsFromSchema(collectionSpec === null || collectionSpec === void 0 ? void 0 : collectionSpec.fieldsSchema, method === null || method === void 0 ? void 0 : method.queryFields);
|
|
4580
4744
|
const schema = {
|
|
4581
4745
|
type: 'object',
|
|
4582
|
-
properties: {
|
|
4746
|
+
properties: nonEmptyObjectProperties({
|
|
4583
4747
|
cursor: { type: 'string' },
|
|
4584
|
-
credentials:
|
|
4585
|
-
},
|
|
4748
|
+
credentials: credentialsSchema,
|
|
4749
|
+
}),
|
|
4586
4750
|
};
|
|
4587
4751
|
if (queryFieldsSchema === null || queryFieldsSchema === void 0 ? void 0 : queryFieldsSchema.properties) {
|
|
4588
4752
|
schema.properties = {
|
|
@@ -4613,19 +4777,16 @@ const DataCollectionMethodFind = {
|
|
|
4613
4777
|
const DataCollectionMethodFindById = {
|
|
4614
4778
|
name: 'Find by ID',
|
|
4615
4779
|
description: 'Find a single data record in the collection by its id',
|
|
4616
|
-
getInputSchema: ({ collectionHandler, parameters,
|
|
4617
|
-
|
|
4618
|
-
|
|
4619
|
-
|
|
4620
|
-
|
|
4621
|
-
|
|
4622
|
-
type: 'string',
|
|
4623
|
-
referenceCollection: { key: collectionHandler === null || collectionHandler === void 0 ? void 0 : collectionHandler.key, parameters },
|
|
4624
|
-
},
|
|
4625
|
-
credentials: (_a = connectorSpec === null || connectorSpec === void 0 ? void 0 : connectorSpec.auth) === null || _a === void 0 ? void 0 : _a.credentialsSchema,
|
|
4780
|
+
getInputSchema: ({ collectionHandler, parameters, credentialsSchema }) => ({
|
|
4781
|
+
type: 'object',
|
|
4782
|
+
properties: nonEmptyObjectProperties({
|
|
4783
|
+
id: {
|
|
4784
|
+
type: 'string',
|
|
4785
|
+
referenceCollection: { key: collectionHandler === null || collectionHandler === void 0 ? void 0 : collectionHandler.key, parameters },
|
|
4626
4786
|
},
|
|
4627
|
-
|
|
4628
|
-
|
|
4787
|
+
credentials: credentialsSchema,
|
|
4788
|
+
}),
|
|
4789
|
+
}),
|
|
4629
4790
|
getOutputSchema: ({ collectionSpec }) => {
|
|
4630
4791
|
var _a;
|
|
4631
4792
|
return ({
|
|
@@ -4654,8 +4815,7 @@ const DataCollectionMethodList = {
|
|
|
4654
4815
|
},
|
|
4655
4816
|
};
|
|
4656
4817
|
},
|
|
4657
|
-
getInputSchema: ({ method, collectionSpec,
|
|
4658
|
-
var _a;
|
|
4818
|
+
getInputSchema: ({ method, collectionSpec, credentialsSchema }) => {
|
|
4659
4819
|
const fieldsSchema = collectionSpec === null || collectionSpec === void 0 ? void 0 : collectionSpec.fieldsSchema;
|
|
4660
4820
|
let filterSchema;
|
|
4661
4821
|
if (method === null || method === void 0 ? void 0 : method.filterFields) {
|
|
@@ -4669,7 +4829,7 @@ const DataCollectionMethodList = {
|
|
|
4669
4829
|
type: 'string',
|
|
4670
4830
|
description: 'Cursor returned in response to the previous "list" request',
|
|
4671
4831
|
},
|
|
4672
|
-
credentials:
|
|
4832
|
+
credentials: credentialsSchema,
|
|
4673
4833
|
}),
|
|
4674
4834
|
};
|
|
4675
4835
|
},
|
|
@@ -4708,15 +4868,14 @@ const DataCollectionMethodMatch = {
|
|
|
4708
4868
|
},
|
|
4709
4869
|
};
|
|
4710
4870
|
},
|
|
4711
|
-
getInputSchema: ({ collectionSpec, method,
|
|
4712
|
-
var _a;
|
|
4871
|
+
getInputSchema: ({ collectionSpec, method, credentialsSchema }) => {
|
|
4713
4872
|
const fieldsSchema = pickFieldsFromSchema(collectionSpec === null || collectionSpec === void 0 ? void 0 : collectionSpec.fieldsSchema, method === null || method === void 0 ? void 0 : method.fields);
|
|
4714
4873
|
return {
|
|
4715
4874
|
type: 'object',
|
|
4716
|
-
properties: {
|
|
4875
|
+
properties: nonEmptyObjectProperties({
|
|
4717
4876
|
query: transformVariablesWith(fieldsSchema !== null && fieldsSchema !== void 0 ? fieldsSchema : {}, (locator) => `query.${locatorToField(locator)}`),
|
|
4718
|
-
credentials:
|
|
4719
|
-
},
|
|
4877
|
+
credentials: credentialsSchema,
|
|
4878
|
+
}),
|
|
4720
4879
|
};
|
|
4721
4880
|
},
|
|
4722
4881
|
getOutputSchema: ({ collectionSpec }) => {
|
|
@@ -4734,17 +4893,14 @@ const DataCollectionMethodMatch = {
|
|
|
4734
4893
|
const DataCollectionMethodSearch = {
|
|
4735
4894
|
name: 'Search',
|
|
4736
4895
|
description: 'Find data records in a collection by a string query',
|
|
4737
|
-
getInputSchema: ({
|
|
4738
|
-
|
|
4739
|
-
|
|
4740
|
-
type: '
|
|
4741
|
-
|
|
4742
|
-
|
|
4743
|
-
|
|
4744
|
-
|
|
4745
|
-
},
|
|
4746
|
-
});
|
|
4747
|
-
},
|
|
4896
|
+
getInputSchema: ({ credentialsSchema }) => ({
|
|
4897
|
+
type: 'object',
|
|
4898
|
+
properties: nonEmptyObjectProperties({
|
|
4899
|
+
query: { type: 'string' },
|
|
4900
|
+
cursor: { type: 'string' },
|
|
4901
|
+
credentials: credentialsSchema,
|
|
4902
|
+
}),
|
|
4903
|
+
}),
|
|
4748
4904
|
getOutputSchema: ({ collectionSpec }) => {
|
|
4749
4905
|
var _a;
|
|
4750
4906
|
return ({
|
|
@@ -4781,8 +4937,8 @@ const DataCollectionMethodUpdate = {
|
|
|
4781
4937
|
},
|
|
4782
4938
|
};
|
|
4783
4939
|
},
|
|
4784
|
-
getInputSchema: ({ collectionSpec, collectionHandler,
|
|
4785
|
-
var _a
|
|
4940
|
+
getInputSchema: ({ collectionSpec, collectionHandler, credentialsSchema, method, parameters }) => {
|
|
4941
|
+
var _a;
|
|
4786
4942
|
let fieldsSchema = collectionSpec === null || collectionSpec === void 0 ? void 0 : collectionSpec.fieldsSchema;
|
|
4787
4943
|
if (method === null || method === void 0 ? void 0 : method.fields) {
|
|
4788
4944
|
fieldsSchema = pickFieldsFromSchema(fieldsSchema, method.fields);
|
|
@@ -4792,7 +4948,7 @@ const DataCollectionMethodUpdate = {
|
|
|
4792
4948
|
}
|
|
4793
4949
|
return {
|
|
4794
4950
|
type: 'object',
|
|
4795
|
-
properties: {
|
|
4951
|
+
properties: nonEmptyObjectProperties({
|
|
4796
4952
|
id: {
|
|
4797
4953
|
type: 'string',
|
|
4798
4954
|
referenceCollection: { key: collectionHandler === null || collectionHandler === void 0 ? void 0 : collectionHandler.key, parameters },
|
|
@@ -4800,8 +4956,8 @@ const DataCollectionMethodUpdate = {
|
|
|
4800
4956
|
fields: (_a = transformVariablesWith(fieldsSchema, (locator) => `fields.${locatorToField(locator)}`)) !== null && _a !== void 0 ? _a : {
|
|
4801
4957
|
type: 'object',
|
|
4802
4958
|
},
|
|
4803
|
-
credentials:
|
|
4804
|
-
},
|
|
4959
|
+
credentials: credentialsSchema,
|
|
4960
|
+
}),
|
|
4805
4961
|
};
|
|
4806
4962
|
},
|
|
4807
4963
|
getOutputSchema: ({}) => ({
|
|
@@ -9367,7 +9523,6 @@ const BaseIntegration = BaseMembraneInterface.extend({
|
|
|
9367
9523
|
authType: z.z.enum(CONNECTOR_AUTH_TYPES).optional(),
|
|
9368
9524
|
});
|
|
9369
9525
|
const IntegrationEditableProperties = BaseMembraneInterfaceEditableProperties.extend({
|
|
9370
|
-
baseUri: z.z.string().optional(),
|
|
9371
9526
|
logoUri: z.z.string().optional(),
|
|
9372
9527
|
appUuid: z.z.string().optional(),
|
|
9373
9528
|
oAuthCallbackUri: z.z.url().or(z.z.literal('')).optional(),
|
|
@@ -9408,6 +9563,7 @@ const PackageCalculatedProperties = z.z.object({
|
|
|
9408
9563
|
key: z.z.string(),
|
|
9409
9564
|
name: z.z.string(),
|
|
9410
9565
|
isCustomized: z.z.boolean().optional(),
|
|
9566
|
+
isPublic: z.z.boolean().optional(),
|
|
9411
9567
|
});
|
|
9412
9568
|
const BasePackage = BaseMembraneInterface.merge(PackageEditableProperties).merge(PackageCalculatedProperties);
|
|
9413
9569
|
const WritablePackageVersionData = z.z.object({
|
|
@@ -9853,6 +10009,7 @@ const FindActionRunLogsResponse = createPaginationResponseSchema(ActionRunLogRec
|
|
|
9853
10009
|
|
|
9854
10010
|
const FindConnectionsQuery = PaginationQuery.merge(SearchQuery).merge(IncludeArchivedQuery).extend({
|
|
9855
10011
|
connectorId: z.z.string().optional(),
|
|
10012
|
+
connectorVersion: z.z.string().optional(),
|
|
9856
10013
|
id: z.z.string().optional(),
|
|
9857
10014
|
userId: z.z.string().optional(),
|
|
9858
10015
|
name: z.z.string().optional(),
|
|
@@ -9886,7 +10043,7 @@ const ConnectionApiResponse = BaseConnection.extend({
|
|
|
9886
10043
|
});
|
|
9887
10044
|
const ConnectionApiResponseWithSecrets = ConnectionApiResponse.extend({
|
|
9888
10045
|
credentials: z.z.unknown().optional(),
|
|
9889
|
-
|
|
10046
|
+
input: z.z.unknown().optional(),
|
|
9890
10047
|
connectorParameters: z.z.unknown().optional(),
|
|
9891
10048
|
});
|
|
9892
10049
|
const ConnectionMessagePayload = z.z.discriminatedUnion('type', [
|
|
@@ -9902,8 +10059,15 @@ const ConnectionMessagePayload = z.z.discriminatedUnion('type', [
|
|
|
9902
10059
|
type: z.z.literal('newConnectionFailure'),
|
|
9903
10060
|
error: z.z.string(),
|
|
9904
10061
|
errorData: ErrorDataSchema.optional(),
|
|
10062
|
+
connectionId: z.z.string().optional(),
|
|
9905
10063
|
}),
|
|
9906
10064
|
]);
|
|
10065
|
+
const GenerateOptionsRequest = z.z.object({
|
|
10066
|
+
integrationId: z.z.string().optional(),
|
|
10067
|
+
connectorId: z.z.string().optional(),
|
|
10068
|
+
connectorParameters: z.z.any().optional(),
|
|
10069
|
+
connectorVersion: z.z.string().optional(),
|
|
10070
|
+
});
|
|
9907
10071
|
|
|
9908
10072
|
const ListPublicConnectorsQuery = PaginationQuery.extend({
|
|
9909
10073
|
search: z.z.string().optional(),
|
|
@@ -10096,13 +10260,16 @@ const IntegrationAuthOption = z.z.object({
|
|
|
10096
10260
|
type: z.z.enum(CONNECTOR_AUTH_TYPES),
|
|
10097
10261
|
title: z.z.string().optional(),
|
|
10098
10262
|
description: z.z.string().optional(),
|
|
10099
|
-
|
|
10263
|
+
inputSchema: DataSchema.optional(),
|
|
10264
|
+
ui: IntegrationAuthUi.optional().describe('[INTERNAL] Deprecated: Use inputSchema instead'),
|
|
10100
10265
|
});
|
|
10101
10266
|
const IntegrationApiResponse = BaseIntegration.extend({
|
|
10102
10267
|
connection: BaseConnection.optional(),
|
|
10103
10268
|
spec: z.z.any().optional(),
|
|
10104
|
-
authOptions: z.z
|
|
10105
|
-
|
|
10269
|
+
authOptions: z.z
|
|
10270
|
+
.array(IntegrationAuthOption)
|
|
10271
|
+
.optional()
|
|
10272
|
+
.describe('[INTERNAL] Deprecated: Use POST /connectors/:id/generate-options instead'),
|
|
10106
10273
|
});
|
|
10107
10274
|
|
|
10108
10275
|
const PackageElementApi = z.z.object({
|
|
@@ -10442,6 +10609,107 @@ function hasCycles(nodes) {
|
|
|
10442
10609
|
return hasCycles;
|
|
10443
10610
|
}
|
|
10444
10611
|
|
|
10612
|
+
function addUndefinedWriteableProperties(value, schema) {
|
|
10613
|
+
if (!(schema instanceof z.z.ZodObject)) {
|
|
10614
|
+
return value;
|
|
10615
|
+
}
|
|
10616
|
+
const allProperties = Object.keys(schema.shape);
|
|
10617
|
+
for (const key of allProperties) {
|
|
10618
|
+
if (!(key in value)) {
|
|
10619
|
+
value[key] = undefined;
|
|
10620
|
+
}
|
|
10621
|
+
}
|
|
10622
|
+
return value;
|
|
10623
|
+
}
|
|
10624
|
+
function lenientParseWithSchema(data, schema) {
|
|
10625
|
+
if (data === undefined || data === null) {
|
|
10626
|
+
return data;
|
|
10627
|
+
}
|
|
10628
|
+
const def = schema._def;
|
|
10629
|
+
if (!def) {
|
|
10630
|
+
return data;
|
|
10631
|
+
}
|
|
10632
|
+
const typeName = def.typeName || def.type;
|
|
10633
|
+
if (typeName === 'ZodOptional' || typeName === 'optional') {
|
|
10634
|
+
if (data === undefined)
|
|
10635
|
+
return undefined;
|
|
10636
|
+
return lenientParseWithSchema(data, def.innerType);
|
|
10637
|
+
}
|
|
10638
|
+
if (typeName === 'ZodNullable' || typeName === 'nullable') {
|
|
10639
|
+
if (data === null)
|
|
10640
|
+
return null;
|
|
10641
|
+
return lenientParseWithSchema(data, def.innerType);
|
|
10642
|
+
}
|
|
10643
|
+
if (typeName === 'ZodObject' || typeName === 'object') {
|
|
10644
|
+
if (typeof data !== 'object' || Array.isArray(data)) {
|
|
10645
|
+
return data;
|
|
10646
|
+
}
|
|
10647
|
+
const shape = schema.shape;
|
|
10648
|
+
const result = {};
|
|
10649
|
+
if (shape) {
|
|
10650
|
+
for (const key in shape) {
|
|
10651
|
+
if (key in data) {
|
|
10652
|
+
result[key] = lenientParseWithSchema(data[key], shape[key]);
|
|
10653
|
+
}
|
|
10654
|
+
}
|
|
10655
|
+
}
|
|
10656
|
+
const catchall = def.catchall;
|
|
10657
|
+
if (catchall) {
|
|
10658
|
+
const catchallDef = catchall._def;
|
|
10659
|
+
if ((catchallDef === null || catchallDef === void 0 ? void 0 : catchallDef.typeName) === 'ZodNever' || (catchallDef === null || catchallDef === void 0 ? void 0 : catchallDef.type) === 'never') ;
|
|
10660
|
+
else if ((catchallDef === null || catchallDef === void 0 ? void 0 : catchallDef.typeName) === 'ZodAny' || (catchallDef === null || catchallDef === void 0 ? void 0 : catchallDef.type) === 'unknown' || (catchallDef === null || catchallDef === void 0 ? void 0 : catchallDef.type) === 'any') {
|
|
10661
|
+
for (const key in data) {
|
|
10662
|
+
if (!(key in result)) {
|
|
10663
|
+
result[key] = data[key];
|
|
10664
|
+
}
|
|
10665
|
+
}
|
|
10666
|
+
}
|
|
10667
|
+
else {
|
|
10668
|
+
for (const key in data) {
|
|
10669
|
+
if (shape && !(key in shape)) {
|
|
10670
|
+
result[key] = data[key];
|
|
10671
|
+
}
|
|
10672
|
+
}
|
|
10673
|
+
}
|
|
10674
|
+
}
|
|
10675
|
+
return result;
|
|
10676
|
+
}
|
|
10677
|
+
if (typeName === 'ZodArray' || typeName === 'array') {
|
|
10678
|
+
if (!Array.isArray(data)) {
|
|
10679
|
+
return data;
|
|
10680
|
+
}
|
|
10681
|
+
const elementSchema = def.element || def.type;
|
|
10682
|
+
if (!elementSchema) {
|
|
10683
|
+
return data;
|
|
10684
|
+
}
|
|
10685
|
+
return data.map((item) => lenientParseWithSchema(item, elementSchema));
|
|
10686
|
+
}
|
|
10687
|
+
if (typeName === 'ZodRecord' || typeName === 'record') {
|
|
10688
|
+
if (typeof data !== 'object' || data === null || Array.isArray(data)) {
|
|
10689
|
+
return data;
|
|
10690
|
+
}
|
|
10691
|
+
const valueSchema = def.valueType;
|
|
10692
|
+
if (!valueSchema) {
|
|
10693
|
+
return data;
|
|
10694
|
+
}
|
|
10695
|
+
const result = {};
|
|
10696
|
+
for (const key in data) {
|
|
10697
|
+
result[key] = lenientParseWithSchema(data[key], valueSchema);
|
|
10698
|
+
}
|
|
10699
|
+
return result;
|
|
10700
|
+
}
|
|
10701
|
+
return data;
|
|
10702
|
+
}
|
|
10703
|
+
|
|
10704
|
+
function setEditablePropertiesForWorkspaceElement(currentElement, newEditableFields, exportSchema) {
|
|
10705
|
+
const parsedNewFields = lenientParseWithSchema(newEditableFields, exportSchema);
|
|
10706
|
+
const normalizedFields = addUndefinedWriteableProperties(parsedNewFields, exportSchema);
|
|
10707
|
+
return {
|
|
10708
|
+
...currentElement,
|
|
10709
|
+
...normalizedFields,
|
|
10710
|
+
};
|
|
10711
|
+
}
|
|
10712
|
+
|
|
10445
10713
|
const WorkspaceElementSpecs = {
|
|
10446
10714
|
[exports.WorkspaceElementType.Customer]: {
|
|
10447
10715
|
type: exports.WorkspaceElementType.Customer,
|
|
@@ -10468,6 +10736,7 @@ const WorkspaceElementSpecs = {
|
|
|
10468
10736
|
apiPath: 'connectors',
|
|
10469
10737
|
name: 'Connector',
|
|
10470
10738
|
namePlural: 'Connectors',
|
|
10739
|
+
exportPropertiesSchema: ConnectorExportProperties,
|
|
10471
10740
|
},
|
|
10472
10741
|
[exports.WorkspaceElementType.Connection]: {
|
|
10473
10742
|
type: exports.WorkspaceElementType.Connection,
|
|
@@ -10768,6 +11037,26 @@ async function streamToString(stream) {
|
|
|
10768
11037
|
});
|
|
10769
11038
|
});
|
|
10770
11039
|
}
|
|
11040
|
+
function isBlob(value) {
|
|
11041
|
+
var _a;
|
|
11042
|
+
if (value === null || typeof value !== 'object') {
|
|
11043
|
+
return false;
|
|
11044
|
+
}
|
|
11045
|
+
if (typeof Blob !== 'undefined' && value instanceof Blob) {
|
|
11046
|
+
return true;
|
|
11047
|
+
}
|
|
11048
|
+
const obj = value;
|
|
11049
|
+
const hasRequiredProps = typeof obj.size === 'number' && typeof obj.type === 'string' && typeof obj.slice === 'function';
|
|
11050
|
+
if (!hasRequiredProps) {
|
|
11051
|
+
return false;
|
|
11052
|
+
}
|
|
11053
|
+
const hasBlobMethod = typeof obj.stream === 'function' || typeof obj.text === 'function' || typeof obj.arrayBuffer === 'function';
|
|
11054
|
+
if (hasBlobMethod) {
|
|
11055
|
+
return true;
|
|
11056
|
+
}
|
|
11057
|
+
const constructorName = (_a = obj.constructor) === null || _a === void 0 ? void 0 : _a.name;
|
|
11058
|
+
return constructorName === 'Blob' || constructorName === 'File';
|
|
11059
|
+
}
|
|
10771
11060
|
function truncateData(data, depth = 0) {
|
|
10772
11061
|
const maxArrayItems = 500;
|
|
10773
11062
|
const maxObjectKeys = 500;
|
|
@@ -10791,6 +11080,9 @@ function truncateData(data, depth = 0) {
|
|
|
10791
11080
|
else if (Buffer.isBuffer(data)) {
|
|
10792
11081
|
return data.toString('utf-8').slice(0, maxStringLength);
|
|
10793
11082
|
}
|
|
11083
|
+
else if (isBlob(data)) {
|
|
11084
|
+
return `<Blob: size=${data.size}, type=${data.type}>`;
|
|
11085
|
+
}
|
|
10794
11086
|
else if (typeof data === 'object') {
|
|
10795
11087
|
const keys = Object.keys(data);
|
|
10796
11088
|
const result = {};
|
|
@@ -11024,6 +11316,7 @@ exports.UsageType = void 0;
|
|
|
11024
11316
|
UsageType["EXTERNAL_EVENTS_PULL_DURATION"] = "external-events-pull-duration";
|
|
11025
11317
|
UsageType["EXTERNAL_EVENT_PULL_NUMBER"] = "external-event-pull-number";
|
|
11026
11318
|
UsageType["EXTERNAL_EVENT_PULL_LOG_SIZE"] = "external-event-pull-log-size";
|
|
11319
|
+
UsageType["EXTERNAL_EVENT_WEBHOOK_REFRESH_DURATION"] = "external-event-webhook-refresh-duration";
|
|
11027
11320
|
UsageType["APP_EVENTS_NUMBER"] = "app-events-number";
|
|
11028
11321
|
UsageType["APP_EVENTS_SIZE"] = "app-events-size";
|
|
11029
11322
|
UsageType["FILES_UPLOAD_NUMBER"] = "files-upload-number";
|
|
@@ -11138,6 +11431,144 @@ function getFlowRunVariableSchema() {
|
|
|
11138
11431
|
};
|
|
11139
11432
|
}
|
|
11140
11433
|
|
|
11434
|
+
exports.AlertStatus = void 0;
|
|
11435
|
+
(function (AlertStatus) {
|
|
11436
|
+
AlertStatus["ONGOING"] = "ongoing";
|
|
11437
|
+
AlertStatus["RESOLVED"] = "resolved";
|
|
11438
|
+
})(exports.AlertStatus || (exports.AlertStatus = {}));
|
|
11439
|
+
exports.AlertSeverity = void 0;
|
|
11440
|
+
(function (AlertSeverity) {
|
|
11441
|
+
AlertSeverity["CRITICAL"] = "critical";
|
|
11442
|
+
AlertSeverity["WARNING"] = "warning";
|
|
11443
|
+
})(exports.AlertSeverity || (exports.AlertSeverity = {}));
|
|
11444
|
+
exports.AlertType = void 0;
|
|
11445
|
+
(function (AlertType) {
|
|
11446
|
+
AlertType["fileUploadsMbPerHour"] = "fileUploadsMbPerHour";
|
|
11447
|
+
AlertType["apiRequestsPerSecond"] = "apiRequestsPerSecond";
|
|
11448
|
+
AlertType["apiRequestsPerHour"] = "apiRequestsPerHour";
|
|
11449
|
+
AlertType["webhookRequestsPerSecond"] = "webhookRequestsPerSecond";
|
|
11450
|
+
AlertType["webhookRequestsPerHour"] = "webhookRequestsPerHour";
|
|
11451
|
+
AlertType["workspaceElementCreationsPerSecond"] = "workspaceElementCreationsPerSecond";
|
|
11452
|
+
AlertType["workspaceElementCreationsPerHour"] = "workspaceElementCreationsPerHour";
|
|
11453
|
+
AlertType["externalEventsPerCustomerPerDay"] = "externalEventsPerCustomerPerDay";
|
|
11454
|
+
AlertType["totalUsagePerDay"] = "totalUsagePerDay";
|
|
11455
|
+
AlertType["totalUsagePer30Days"] = "totalUsagePer30Days";
|
|
11456
|
+
AlertType["testAlert"] = "testAlert";
|
|
11457
|
+
})(exports.AlertType || (exports.AlertType = {}));
|
|
11458
|
+
exports.AlertCategory = void 0;
|
|
11459
|
+
(function (AlertCategory) {
|
|
11460
|
+
AlertCategory["RATE_LIMIT"] = "rateLimit";
|
|
11461
|
+
AlertCategory["USAGE"] = "usage";
|
|
11462
|
+
AlertCategory["TEST"] = "test";
|
|
11463
|
+
})(exports.AlertCategory || (exports.AlertCategory = {}));
|
|
11464
|
+
const ALERT_TYPE_CATEGORIES = {
|
|
11465
|
+
[exports.AlertType.fileUploadsMbPerHour]: exports.AlertCategory.RATE_LIMIT,
|
|
11466
|
+
[exports.AlertType.apiRequestsPerSecond]: exports.AlertCategory.RATE_LIMIT,
|
|
11467
|
+
[exports.AlertType.apiRequestsPerHour]: exports.AlertCategory.RATE_LIMIT,
|
|
11468
|
+
[exports.AlertType.webhookRequestsPerSecond]: exports.AlertCategory.RATE_LIMIT,
|
|
11469
|
+
[exports.AlertType.webhookRequestsPerHour]: exports.AlertCategory.RATE_LIMIT,
|
|
11470
|
+
[exports.AlertType.workspaceElementCreationsPerSecond]: exports.AlertCategory.RATE_LIMIT,
|
|
11471
|
+
[exports.AlertType.workspaceElementCreationsPerHour]: exports.AlertCategory.RATE_LIMIT,
|
|
11472
|
+
[exports.AlertType.externalEventsPerCustomerPerDay]: exports.AlertCategory.RATE_LIMIT,
|
|
11473
|
+
[exports.AlertType.totalUsagePerDay]: exports.AlertCategory.USAGE,
|
|
11474
|
+
[exports.AlertType.totalUsagePer30Days]: exports.AlertCategory.USAGE,
|
|
11475
|
+
[exports.AlertType.testAlert]: exports.AlertCategory.TEST,
|
|
11476
|
+
};
|
|
11477
|
+
const AlertSchema = z.z.object({
|
|
11478
|
+
id: z.z.string(),
|
|
11479
|
+
description: z.z.string(),
|
|
11480
|
+
status: z.z.enum(Object.values(exports.AlertStatus)),
|
|
11481
|
+
type: z.z.enum(Object.values(exports.AlertType)),
|
|
11482
|
+
workspaceId: z.z.string(),
|
|
11483
|
+
createdAt: z.z.date(),
|
|
11484
|
+
updatedAt: z.z.date(),
|
|
11485
|
+
lastSeenAt: z.z.date(),
|
|
11486
|
+
resolvedAt: z.z.date().optional(),
|
|
11487
|
+
customerId: z.z.string().optional(),
|
|
11488
|
+
severity: z.z.enum(Object.values(exports.AlertSeverity)),
|
|
11489
|
+
});
|
|
11490
|
+
const ALERT_DELIVERY_METHODS = ['internal', 'webhook', 'email'];
|
|
11491
|
+
const AlertTypeDeliverySettingsSchema = z.z.object({
|
|
11492
|
+
internal: z.z.literal(true),
|
|
11493
|
+
webhook: z.z
|
|
11494
|
+
.object({
|
|
11495
|
+
enabled: z.z.boolean(),
|
|
11496
|
+
})
|
|
11497
|
+
.optional(),
|
|
11498
|
+
email: z.z
|
|
11499
|
+
.object({
|
|
11500
|
+
enabled: z.z.boolean(),
|
|
11501
|
+
})
|
|
11502
|
+
.optional(),
|
|
11503
|
+
});
|
|
11504
|
+
const DEFAULT_ALERT_TYPE_DELIVERY_SETTINGS = {
|
|
11505
|
+
internal: true,
|
|
11506
|
+
webhook: {
|
|
11507
|
+
enabled: false,
|
|
11508
|
+
},
|
|
11509
|
+
email: {
|
|
11510
|
+
enabled: false,
|
|
11511
|
+
},
|
|
11512
|
+
};
|
|
11513
|
+
const AlertDeliverySettingsSchema = z.z.object({
|
|
11514
|
+
alertTypes: z.z.record(z.z.enum(Object.values(exports.AlertType)), AlertTypeDeliverySettingsSchema.optional()).optional(),
|
|
11515
|
+
});
|
|
11516
|
+
const DEFAULT_ALERT_DELIVERY_SETTINGS = {
|
|
11517
|
+
alertTypes: undefined,
|
|
11518
|
+
};
|
|
11519
|
+
|
|
11520
|
+
function isValidAlertType(value) {
|
|
11521
|
+
return Object.values(exports.AlertType).includes(value);
|
|
11522
|
+
}
|
|
11523
|
+
function getAlertTypeDisplayName(alertType) {
|
|
11524
|
+
const names = {
|
|
11525
|
+
[exports.AlertType.fileUploadsMbPerHour]: 'File Uploads MB Per Hour',
|
|
11526
|
+
[exports.AlertType.apiRequestsPerSecond]: 'API Requests Per Second',
|
|
11527
|
+
[exports.AlertType.apiRequestsPerHour]: 'API Requests Per Hour',
|
|
11528
|
+
[exports.AlertType.webhookRequestsPerSecond]: 'Webhook Requests Per Second',
|
|
11529
|
+
[exports.AlertType.webhookRequestsPerHour]: 'Webhook Requests Per Hour',
|
|
11530
|
+
[exports.AlertType.workspaceElementCreationsPerSecond]: 'Workspace Element Creations Per Second',
|
|
11531
|
+
[exports.AlertType.workspaceElementCreationsPerHour]: 'Workspace Element Creations Per Hour',
|
|
11532
|
+
[exports.AlertType.externalEventsPerCustomerPerDay]: 'External Events Per Customer Per Day',
|
|
11533
|
+
[exports.AlertType.totalUsagePerDay]: 'Total Usage Per Day',
|
|
11534
|
+
[exports.AlertType.totalUsagePer30Days]: 'Total Usage Per 30 Days',
|
|
11535
|
+
[exports.AlertType.testAlert]: 'Test Alert',
|
|
11536
|
+
};
|
|
11537
|
+
return names[alertType] || alertType;
|
|
11538
|
+
}
|
|
11539
|
+
function getAlertDeliveryMethodLabel(method) {
|
|
11540
|
+
const labels = {
|
|
11541
|
+
internal: 'Internal Delivery',
|
|
11542
|
+
webhook: 'Webhook Delivery',
|
|
11543
|
+
email: 'Email Delivery',
|
|
11544
|
+
};
|
|
11545
|
+
return labels[method] || method;
|
|
11546
|
+
}
|
|
11547
|
+
function isDeliveryMethodEnabled(settings, method) {
|
|
11548
|
+
var _a;
|
|
11549
|
+
if (method === 'internal') {
|
|
11550
|
+
return true;
|
|
11551
|
+
}
|
|
11552
|
+
if (((_a = settings[method]) !== null && _a !== void 0 ? _a : DEFAULT_ALERT_TYPE_DELIVERY_SETTINGS[method]).enabled) {
|
|
11553
|
+
return true;
|
|
11554
|
+
}
|
|
11555
|
+
return false;
|
|
11556
|
+
}
|
|
11557
|
+
function getAlertCategoryDisplayName(category) {
|
|
11558
|
+
const names = {
|
|
11559
|
+
[exports.AlertCategory.RATE_LIMIT]: 'Rate Limit Alerts',
|
|
11560
|
+
[exports.AlertCategory.USAGE]: 'Usage Alerts',
|
|
11561
|
+
[exports.AlertCategory.TEST]: 'Test',
|
|
11562
|
+
};
|
|
11563
|
+
return names[category] || category;
|
|
11564
|
+
}
|
|
11565
|
+
function getAlertTypesByCategory(category) {
|
|
11566
|
+
return Object.entries(ALERT_TYPE_CATEGORIES)
|
|
11567
|
+
.filter(([, alertCategory]) => alertCategory === category)
|
|
11568
|
+
.map(([alertType]) => alertType)
|
|
11569
|
+
.filter(isValidAlertType);
|
|
11570
|
+
}
|
|
11571
|
+
|
|
11141
11572
|
exports.WorkspaceType = void 0;
|
|
11142
11573
|
(function (WorkspaceType) {
|
|
11143
11574
|
WorkspaceType["PRODUCTION"] = "production";
|
|
@@ -11192,6 +11623,7 @@ const WorkspaceLimitsSchema = z.object({
|
|
|
11192
11623
|
totalNumberOfConnections: WorkspaceLimit.optional(),
|
|
11193
11624
|
totalNumberOfWorkspaceElements: WorkspaceLimit.optional(),
|
|
11194
11625
|
instantTasksQueueSize: WorkspaceLimit.optional(),
|
|
11626
|
+
QueuedTasksQueueSize: WorkspaceLimit.optional(),
|
|
11195
11627
|
parallelApiRequestsPerCustomer: WorkspaceLimit.optional(),
|
|
11196
11628
|
parallelBackgroundJobsPerCustomer: WorkspaceLimit.optional(),
|
|
11197
11629
|
apiRequestsPerCustomerPerSecond: WorkspaceLimit.optional(),
|
|
@@ -11208,6 +11640,7 @@ const EngineWorkspaceSettingsSchema = z.object({
|
|
|
11208
11640
|
enableWebhookLogs: z.boolean().optional(),
|
|
11209
11641
|
enableActionRunLogs: z.boolean().optional(),
|
|
11210
11642
|
disableSecretKeyAuth: z.boolean().optional(),
|
|
11643
|
+
useMembraneUniverse: z.boolean().optional(),
|
|
11211
11644
|
});
|
|
11212
11645
|
const WorkspacePublicKey = z.object({
|
|
11213
11646
|
name: z.string(),
|
|
@@ -11234,6 +11667,7 @@ const AppSchema = z.object({
|
|
|
11234
11667
|
featureFlags: z.array(z.string()).optional(),
|
|
11235
11668
|
limits: WorkspaceLimitsSchema.optional(),
|
|
11236
11669
|
settings: EngineWorkspaceSettingsSchema.optional(),
|
|
11670
|
+
alertDeliverySettings: AlertDeliverySettingsSchema.optional(),
|
|
11237
11671
|
type: z.nativeEnum(exports.WorkspaceType).optional(),
|
|
11238
11672
|
jwksUri: z.string().nullable().optional(),
|
|
11239
11673
|
isTrial: z.boolean().optional(),
|
|
@@ -11411,13 +11845,14 @@ function buildIntegrationsMap(integrations) {
|
|
|
11411
11845
|
return map;
|
|
11412
11846
|
}
|
|
11413
11847
|
|
|
11848
|
+
const IneligibilityReasonSchema = z.z.enum(['disposable', 'blockedDomain', 'notCompanyEmail']);
|
|
11414
11849
|
const PlatformUserSchema = z.z.object({
|
|
11415
11850
|
id: z.z.string(),
|
|
11416
11851
|
email: z.z.string(),
|
|
11417
11852
|
name: z.z.string(),
|
|
11418
11853
|
trialRequested: z.z.boolean(),
|
|
11419
|
-
introVideoStatus: z.z.string().optional(),
|
|
11420
11854
|
isEligible: z.z.boolean().optional(),
|
|
11855
|
+
ineligibilityReason: IneligibilityReasonSchema.optional(),
|
|
11421
11856
|
emailVerified: z.z.boolean().optional(),
|
|
11422
11857
|
});
|
|
11423
11858
|
const FullPlatformUser = z.z.object({
|
|
@@ -11430,8 +11865,8 @@ const FullPlatformUser = z.z.object({
|
|
|
11430
11865
|
isAdmin: z.z.boolean().optional(),
|
|
11431
11866
|
trialRequested: z.z.boolean(),
|
|
11432
11867
|
pat: z.z.string().optional(),
|
|
11433
|
-
introVideoStatus: z.z.string().optional(),
|
|
11434
11868
|
isEligible: z.z.boolean().optional(),
|
|
11869
|
+
ineligibilityReason: IneligibilityReasonSchema.optional(),
|
|
11435
11870
|
emailVerified: z.z.boolean().optional(),
|
|
11436
11871
|
});
|
|
11437
11872
|
|
|
@@ -11442,6 +11877,12 @@ exports.OrgLimitsType = void 0;
|
|
|
11442
11877
|
OrgLimitsType["LAST_THIRTY_DAY_USAGE"] = "lastThirtyDayUsage";
|
|
11443
11878
|
OrgLimitsType["MEMBRANE_EXPERT_CREDITS_CAP"] = "membraneExpertCreditsCapPerMonth";
|
|
11444
11879
|
})(exports.OrgLimitsType || (exports.OrgLimitsType = {}));
|
|
11880
|
+
exports.OrgPlan = void 0;
|
|
11881
|
+
(function (OrgPlan) {
|
|
11882
|
+
OrgPlan["Core"] = "core";
|
|
11883
|
+
OrgPlan["Pro"] = "pro";
|
|
11884
|
+
OrgPlan["Ultimate"] = "ultimate";
|
|
11885
|
+
})(exports.OrgPlan || (exports.OrgPlan = {}));
|
|
11445
11886
|
exports.OrgUserRole = void 0;
|
|
11446
11887
|
(function (OrgUserRole) {
|
|
11447
11888
|
OrgUserRole["Admin"] = "admin";
|
|
@@ -11467,10 +11908,12 @@ const MembraneAgentKey = z.z
|
|
|
11467
11908
|
expiresAt: z.z.string().optional(),
|
|
11468
11909
|
})
|
|
11469
11910
|
.optional();
|
|
11911
|
+
const OrgFeatureFlagsSchema = z.z.record(z.z.string(), z.z.boolean());
|
|
11470
11912
|
const OrgSchema = z.z.object({
|
|
11471
11913
|
id: z.z.string(),
|
|
11472
11914
|
key: z.z.string(),
|
|
11473
11915
|
name: z.z.string(),
|
|
11916
|
+
plan: z.z.enum(exports.OrgPlan).optional(),
|
|
11474
11917
|
createdAt: z.z.coerce.date(),
|
|
11475
11918
|
updatedAt: z.z.coerce.date(),
|
|
11476
11919
|
trialEndDate: z.z.string().optional(),
|
|
@@ -11489,6 +11932,14 @@ const OrgSchema = z.z.object({
|
|
|
11489
11932
|
autoChargeThreshold: z.z.number().optional(),
|
|
11490
11933
|
autoChargePurchaseAmount: z.z.number().optional(),
|
|
11491
11934
|
autoChargeMonthlyLimit: z.z.number().optional(),
|
|
11935
|
+
freeInfraCredits: z.z.number().optional(),
|
|
11936
|
+
paidInfraCredits: z.z.number().optional(),
|
|
11937
|
+
freeInfraMonthlyCredits: z.z.number().nullable().optional(),
|
|
11938
|
+
infraAutoChargeEnabled: z.z.boolean().optional(),
|
|
11939
|
+
infraAutoChargeThreshold: z.z.number().optional(),
|
|
11940
|
+
infraAutoChargePurchaseAmount: z.z.number().optional(),
|
|
11941
|
+
infraAutoChargeMonthlyLimit: z.z.number().optional(),
|
|
11942
|
+
effectiveFeatureFlags: OrgFeatureFlagsSchema.optional(),
|
|
11492
11943
|
});
|
|
11493
11944
|
const AccountResponse = z.z.object({
|
|
11494
11945
|
user: FullPlatformUser.optional(),
|
|
@@ -11516,27 +11967,10 @@ exports.WebhookTypeEnum = void 0;
|
|
|
11516
11967
|
WebhookTypeEnum["TASK_UPDATED"] = "task-updated";
|
|
11517
11968
|
WebhookTypeEnum["TASK_ACTIVITY_CREATED"] = "task-activity-created";
|
|
11518
11969
|
WebhookTypeEnum["CONNECTOR_VERSION_PUBLISHED"] = "connector-version-published";
|
|
11970
|
+
WebhookTypeEnum["AGENT_SESSION_FINISHED"] = "agent-session-finished";
|
|
11971
|
+
WebhookTypeEnum["SEND_ALERT_EMAIL"] = "send-alert-email";
|
|
11519
11972
|
})(exports.WebhookTypeEnum || (exports.WebhookTypeEnum = {}));
|
|
11520
11973
|
|
|
11521
|
-
exports.AlertStatus = void 0;
|
|
11522
|
-
(function (AlertStatus) {
|
|
11523
|
-
AlertStatus["ONGOING"] = "ongoing";
|
|
11524
|
-
AlertStatus["RESOLVED"] = "resolved";
|
|
11525
|
-
})(exports.AlertStatus || (exports.AlertStatus = {}));
|
|
11526
|
-
exports.AlertSeverity = void 0;
|
|
11527
|
-
(function (AlertSeverity) {
|
|
11528
|
-
AlertSeverity["CRITICAL"] = "critical";
|
|
11529
|
-
AlertSeverity["WARNING"] = "warning";
|
|
11530
|
-
})(exports.AlertSeverity || (exports.AlertSeverity = {}));
|
|
11531
|
-
exports.AlertType = void 0;
|
|
11532
|
-
(function (AlertType) {
|
|
11533
|
-
AlertType["externalEventsPerCustomerPerDay"] = "externalEventsPerCustomerPerDay";
|
|
11534
|
-
AlertType["totalUsagePerDay"] = "totalUsagePerDay";
|
|
11535
|
-
AlertType["totalUsagePer30Days"] = "totalUsagePer30Days";
|
|
11536
|
-
AlertType["membraneAgentUsagePer30Days"] = "membraneAgentUsagePer30Days";
|
|
11537
|
-
AlertType["testAlert"] = "testAlert";
|
|
11538
|
-
})(exports.AlertType || (exports.AlertType = {}));
|
|
11539
|
-
|
|
11540
11974
|
const IntegrationSpecificElementSelector = z.object({
|
|
11541
11975
|
id: z.string().optional(),
|
|
11542
11976
|
key: z.string().optional(),
|
|
@@ -12523,17 +12957,18 @@ class ConnectionAccessor {
|
|
|
12523
12957
|
dataCollection(key, parameters) {
|
|
12524
12958
|
return new ConnectionDataCollectionAccessor(this.client, this, key, parameters);
|
|
12525
12959
|
}
|
|
12526
|
-
async reconnect({ parameters, authOptionKey, connectorParameters, } = {}) {
|
|
12960
|
+
async reconnect({ parameters, authOptionKey, connectorParameters, onPopupClosed, } = {}) {
|
|
12527
12961
|
const connection = await this.get();
|
|
12528
12962
|
const connectorSpec = await this.client.get(`/integrations/${connection.integrationId}/connector-spec`);
|
|
12529
12963
|
return createOrUpdateConnection({
|
|
12530
12964
|
connectionId: connection.id,
|
|
12531
12965
|
connectorSpec,
|
|
12532
|
-
parameters,
|
|
12966
|
+
input: parameters,
|
|
12533
12967
|
authOptionKey,
|
|
12534
12968
|
connectorParameters,
|
|
12535
12969
|
apiUri: this.client.apiUri,
|
|
12536
12970
|
token: await this.client.getToken(),
|
|
12971
|
+
onPopupClosed,
|
|
12537
12972
|
});
|
|
12538
12973
|
}
|
|
12539
12974
|
async openReconnectUI({} = {}) {
|
|
@@ -12622,21 +13057,31 @@ class ConnectionProxy {
|
|
|
12622
13057
|
}
|
|
12623
13058
|
}
|
|
12624
13059
|
async function createOrUpdateConnection(options) {
|
|
12625
|
-
const { connectionId, integrationId, name,
|
|
13060
|
+
const { connectionId, integrationId, connectorId, connectorVersion, name, input, connectorParameters, allowMultipleConnections, authOptionKey, connectorSpec, apiUri, token, redirectUri, onPopupClosed, } = options !== null && options !== void 0 ? options : {};
|
|
12626
13061
|
const connectionType = getConnectionType({
|
|
12627
13062
|
connectorSpec,
|
|
12628
13063
|
authOptionKey,
|
|
12629
13064
|
redirectUri,
|
|
12630
13065
|
});
|
|
12631
|
-
|
|
12632
|
-
|
|
12633
|
-
|
|
13066
|
+
let popupPath;
|
|
13067
|
+
if (connectionId) {
|
|
13068
|
+
popupPath = `connection-popup?connectionId=${connectionId}`;
|
|
13069
|
+
}
|
|
13070
|
+
else if (connectorId) {
|
|
13071
|
+
const versionParam = connectorVersion ? `&connectorVersion=${connectorVersion}` : '';
|
|
13072
|
+
popupPath = `connection-popup?connectorId=${connectorId}${versionParam}`;
|
|
13073
|
+
}
|
|
13074
|
+
else {
|
|
13075
|
+
popupPath = `connection-popup?integrationId=${integrationId}`;
|
|
13076
|
+
}
|
|
12634
13077
|
return new Promise((resolve, reject) => {
|
|
12635
13078
|
const requestId = simpleUniqueId() + simpleUniqueId();
|
|
12636
13079
|
const payload = {
|
|
12637
13080
|
token,
|
|
12638
|
-
|
|
13081
|
+
input,
|
|
12639
13082
|
connectorParameters,
|
|
13083
|
+
connectorId,
|
|
13084
|
+
connectorVersion,
|
|
12640
13085
|
name,
|
|
12641
13086
|
authOptionKey,
|
|
12642
13087
|
allowMultipleConnections,
|
|
@@ -12682,10 +13127,10 @@ async function createOrUpdateConnection(options) {
|
|
|
12682
13127
|
iframeElement.id = targetElementId;
|
|
12683
13128
|
iframeElement.name = targetElementId;
|
|
12684
13129
|
iframeElement.style.position = 'absolute';
|
|
12685
|
-
iframeElement.style.top = '-
|
|
12686
|
-
iframeElement.style.left = '-
|
|
12687
|
-
iframeElement.style.width = '
|
|
12688
|
-
iframeElement.style.height = '
|
|
13130
|
+
iframeElement.style.top = '-100px';
|
|
13131
|
+
iframeElement.style.left = '-100px';
|
|
13132
|
+
iframeElement.style.width = '1px';
|
|
13133
|
+
iframeElement.style.height = '1px';
|
|
12689
13134
|
iframeElement.style.border = 'none';
|
|
12690
13135
|
iframeElement.style.backgroundColor = 'transparent';
|
|
12691
13136
|
document.body.appendChild(iframeElement);
|
|
@@ -12719,6 +13164,7 @@ async function createOrUpdateConnection(options) {
|
|
|
12719
13164
|
cancelCheckInterval = setInterval(() => {
|
|
12720
13165
|
if (popup === null || popup === void 0 ? void 0 : popup.closed) {
|
|
12721
13166
|
cleanup();
|
|
13167
|
+
onPopupClosed === null || onPopupClosed === void 0 ? void 0 : onPopupClosed();
|
|
12722
13168
|
resolve(null);
|
|
12723
13169
|
}
|
|
12724
13170
|
}, 1000);
|
|
@@ -12750,6 +13196,9 @@ const createConnectionEventHandler = (requestId, onResolve, onReject, onFinally)
|
|
|
12750
13196
|
}
|
|
12751
13197
|
if (message.type == 'newConnectionFailure') {
|
|
12752
13198
|
const error = new MembraneError((_a = message.errorData) !== null && _a !== void 0 ? _a : message.error);
|
|
13199
|
+
if (message.connectionId) {
|
|
13200
|
+
error.data.data = { ...error.data.data, connectionId: message.connectionId };
|
|
13201
|
+
}
|
|
12753
13202
|
onReject(error);
|
|
12754
13203
|
}
|
|
12755
13204
|
onFinally();
|
|
@@ -12929,23 +13378,24 @@ class IntegrationAccessor extends ElementAccessor {
|
|
|
12929
13378
|
});
|
|
12930
13379
|
});
|
|
12931
13380
|
}
|
|
12932
|
-
async connect({ name, parameters, connectorParameters, authOptionKey, allowMultipleConnections, redirectUri, sameWindow, } = {}) {
|
|
13381
|
+
async connect({ name, input, parameters, connectorParameters, authOptionKey, allowMultipleConnections, redirectUri, sameWindow, onPopupClosed, } = {}) {
|
|
12933
13382
|
const integration = await this.get();
|
|
12934
13383
|
const connectorSpec = await this.getConnectorSpec();
|
|
12935
13384
|
return createOrUpdateConnection({
|
|
12936
13385
|
integrationId: integration.id,
|
|
12937
13386
|
connectorSpec,
|
|
12938
13387
|
name,
|
|
12939
|
-
parameters,
|
|
13388
|
+
input: input !== null && input !== void 0 ? input : parameters,
|
|
12940
13389
|
connectorParameters,
|
|
12941
13390
|
authOptionKey,
|
|
12942
13391
|
allowMultipleConnections,
|
|
12943
13392
|
apiUri: this.client.apiUri,
|
|
12944
13393
|
token: await this.client.getToken(),
|
|
12945
13394
|
redirectUri: sameWindow ? redirectUri : undefined,
|
|
13395
|
+
onPopupClosed,
|
|
12946
13396
|
});
|
|
12947
13397
|
}
|
|
12948
|
-
async createConnection({ parameters, name }) {
|
|
13398
|
+
async createConnection({ parameters, name, }) {
|
|
12949
13399
|
return this.connect({ parameters, name });
|
|
12950
13400
|
}
|
|
12951
13401
|
async getOperations() {
|
|
@@ -13265,8 +13715,14 @@ exports.AgentSessionState = void 0;
|
|
|
13265
13715
|
AgentSessionState["BUSY"] = "busy";
|
|
13266
13716
|
AgentSessionState["IDLE"] = "idle";
|
|
13267
13717
|
})(exports.AgentSessionState || (exports.AgentSessionState = {}));
|
|
13718
|
+
exports.AgentName = void 0;
|
|
13719
|
+
(function (AgentName) {
|
|
13720
|
+
AgentName["MEMBRANE"] = "membrane";
|
|
13721
|
+
AgentName["SELF_INTEGRATING"] = "self-integrating";
|
|
13722
|
+
})(exports.AgentName || (exports.AgentName = {}));
|
|
13268
13723
|
const AgentSession = z.z.object({
|
|
13269
13724
|
id: z.z.string(),
|
|
13725
|
+
workspaceId: z.z.string(),
|
|
13270
13726
|
userId: z.z.string().optional(),
|
|
13271
13727
|
workspaceElementType: z.z.enum(exports.WorkspaceElementType),
|
|
13272
13728
|
workspaceElementId: z.z.string(),
|
|
@@ -13281,6 +13737,8 @@ const AgentSession = z.z.object({
|
|
|
13281
13737
|
state: z.z.enum(exports.AgentSessionState).default(exports.AgentSessionState.BUSY),
|
|
13282
13738
|
usage: z.z.number().optional(),
|
|
13283
13739
|
hasWorker: z.z.boolean(),
|
|
13740
|
+
isExternal: z.z.boolean().optional(),
|
|
13741
|
+
agentName: z.z.enum(exports.AgentName).optional(),
|
|
13284
13742
|
createdAt: z.z.iso.datetime(),
|
|
13285
13743
|
updatedAt: z.z.iso.datetime(),
|
|
13286
13744
|
});
|
|
@@ -13290,6 +13748,7 @@ const CreateAgentSession = z.z.object({
|
|
|
13290
13748
|
prompt: z.z.string().min(1),
|
|
13291
13749
|
testCustomerId: z.z.string().optional(),
|
|
13292
13750
|
isExternal: z.z.boolean().optional(),
|
|
13751
|
+
modelId: z.z.string().optional(),
|
|
13293
13752
|
});
|
|
13294
13753
|
const AgentSessionInputSchema = z.z.object({
|
|
13295
13754
|
input: z.z.string().min(1),
|
|
@@ -13301,6 +13760,8 @@ const PatchAgentSessionSchema = z.z.object({
|
|
|
13301
13760
|
title: z.z.string().optional(),
|
|
13302
13761
|
summary: z.z.string().optional(),
|
|
13303
13762
|
cost: z.z.number().optional(),
|
|
13763
|
+
error: ErrorDataSchema.optional(),
|
|
13764
|
+
opencodeSessionUuid: z.z.string().optional(),
|
|
13304
13765
|
status: z.z.enum(exports.AgentSessionStatus).optional(),
|
|
13305
13766
|
});
|
|
13306
13767
|
|
|
@@ -13620,6 +14081,7 @@ const membraneConfigSchema = z.z.object({
|
|
|
13620
14081
|
apiUri: z.z.string().optional(),
|
|
13621
14082
|
consoleUri: z.z.string().optional(),
|
|
13622
14083
|
testCustomerId: z.z.string().optional(),
|
|
14084
|
+
accessToken: z.z.string().optional(),
|
|
13623
14085
|
});
|
|
13624
14086
|
class MembraneConfigLoader {
|
|
13625
14087
|
constructor(cwd = process.cwd()) {
|
|
@@ -13727,6 +14189,9 @@ class MembraneConfigLoader {
|
|
|
13727
14189
|
throw new Error(`Failed to parse ${CONFIG_FILE_NAME}: ${yamlError.message}`);
|
|
13728
14190
|
}
|
|
13729
14191
|
const config = {};
|
|
14192
|
+
if (parsedConfig === null || parsedConfig === void 0 ? void 0 : parsedConfig.accessToken) {
|
|
14193
|
+
config.accessToken = String(parsedConfig.accessToken);
|
|
14194
|
+
}
|
|
13730
14195
|
if (parsedConfig === null || parsedConfig === void 0 ? void 0 : parsedConfig.workspaceKey) {
|
|
13731
14196
|
config.workspaceKey = String(parsedConfig.workspaceKey);
|
|
13732
14197
|
}
|
|
@@ -13746,6 +14211,9 @@ class MembraneConfigLoader {
|
|
|
13746
14211
|
}
|
|
13747
14212
|
loadFromEnv() {
|
|
13748
14213
|
const config = {};
|
|
14214
|
+
if (process.env.MEMBRANE_ACCESS_TOKEN) {
|
|
14215
|
+
config.accessToken = process.env.MEMBRANE_ACCESS_TOKEN;
|
|
14216
|
+
}
|
|
13749
14217
|
if (process.env.MEMBRANE_WORKSPACE_KEY) {
|
|
13750
14218
|
config.workspaceKey = process.env.MEMBRANE_WORKSPACE_KEY;
|
|
13751
14219
|
}
|
|
@@ -13787,6 +14255,8 @@ function hasMembraneCredentials(cwd) {
|
|
|
13787
14255
|
}
|
|
13788
14256
|
|
|
13789
14257
|
exports.ACTIONS = ACTIONS;
|
|
14258
|
+
exports.ALERT_DELIVERY_METHODS = ALERT_DELIVERY_METHODS;
|
|
14259
|
+
exports.ALERT_TYPE_CATEGORIES = ALERT_TYPE_CATEGORIES;
|
|
13790
14260
|
exports.AccessDeniedError = AccessDeniedError;
|
|
13791
14261
|
exports.AccountResponse = AccountResponse;
|
|
13792
14262
|
exports.ActionAccessor = ActionAccessor;
|
|
@@ -13804,6 +14274,9 @@ exports.ActionRunResponse = ActionRunResponse;
|
|
|
13804
14274
|
exports.ActionsAccessor = ActionsAccessor;
|
|
13805
14275
|
exports.AgentSession = AgentSession;
|
|
13806
14276
|
exports.AgentSessionInputSchema = AgentSessionInputSchema;
|
|
14277
|
+
exports.AlertDeliverySettingsSchema = AlertDeliverySettingsSchema;
|
|
14278
|
+
exports.AlertSchema = AlertSchema;
|
|
14279
|
+
exports.AlertTypeDeliverySettingsSchema = AlertTypeDeliverySettingsSchema;
|
|
13807
14280
|
exports.ApiRequestSpec = ApiRequestSpec;
|
|
13808
14281
|
exports.AppDataSchemaAccessor = AppDataSchemaAccessor;
|
|
13809
14282
|
exports.AppDataSchemaApiResponse = AppDataSchemaApiResponse;
|
|
@@ -13915,6 +14388,8 @@ exports.ConnectorDataCollectionEventImplementationType = ConnectorDataCollection
|
|
|
13915
14388
|
exports.ConnectorDataCollectionMethodKeys = ConnectorDataCollectionMethodKeys;
|
|
13916
14389
|
exports.ConnectorDataLocationTypes = ConnectorDataLocationTypes;
|
|
13917
14390
|
exports.ConnectorEventHandlerMethods = ConnectorEventHandlerMethods;
|
|
14391
|
+
exports.ConnectorExportProperties = ConnectorExportProperties;
|
|
14392
|
+
exports.ConnectorFunctionSpecs = ConnectorFunctionSpecs;
|
|
13918
14393
|
exports.ConnectorMethodImplementation = ConnectorMethodImplementation;
|
|
13919
14394
|
exports.ConnectorMethodImplementationBase = ConnectorMethodImplementationBase;
|
|
13920
14395
|
exports.ConnectorMethodImplementationGraphqlApiMapping = ConnectorMethodImplementationGraphqlApiMapping;
|
|
@@ -13955,6 +14430,8 @@ exports.CustomerApiResponse = CustomerApiResponse;
|
|
|
13955
14430
|
exports.CustomerSelector = CustomerSelector;
|
|
13956
14431
|
exports.CustomersAccessor = CustomersAccessor;
|
|
13957
14432
|
exports.DATA_RECORD_SCHEMA = DATA_RECORD_SCHEMA;
|
|
14433
|
+
exports.DEFAULT_ALERT_DELIVERY_SETTINGS = DEFAULT_ALERT_DELIVERY_SETTINGS;
|
|
14434
|
+
exports.DEFAULT_ALERT_TYPE_DELIVERY_SETTINGS = DEFAULT_ALERT_TYPE_DELIVERY_SETTINGS;
|
|
13958
14435
|
exports.DEFAULT_FULL_SYNC_INTERVAL_SECONDS = DEFAULT_FULL_SYNC_INTERVAL_SECONDS;
|
|
13959
14436
|
exports.DEFAULT_PULL_UPDATES_INTERVAL_SECONDS = DEFAULT_PULL_UPDATES_INTERVAL_SECONDS;
|
|
13960
14437
|
exports.DataCollectionCreateRequest = DataCollectionCreateRequest;
|
|
@@ -14109,6 +14586,8 @@ exports.FlowsAccessor = FlowsAccessor;
|
|
|
14109
14586
|
exports.Formula = Formula;
|
|
14110
14587
|
exports.FullPlatformUser = FullPlatformUser;
|
|
14111
14588
|
exports.FunctionDefinition = FunctionDefinition;
|
|
14589
|
+
exports.GenerateOptionsRequest = GenerateOptionsRequest;
|
|
14590
|
+
exports.GeneratedConnectorOption = GeneratedConnectorOption;
|
|
14112
14591
|
exports.GenericFunctionDefinition = GenericFunctionDefinition;
|
|
14113
14592
|
exports.GraphQLApiMappingSchema = GraphQLApiMappingSchema;
|
|
14114
14593
|
exports.GraphQLFieldMappingSchema = GraphQLFieldMappingSchema;
|
|
@@ -14158,6 +14637,7 @@ exports.MembraneAgentKey = MembraneAgentKey;
|
|
|
14158
14637
|
exports.MembraneAxiosInstance = axios;
|
|
14159
14638
|
exports.MembraneClient = MembraneClient;
|
|
14160
14639
|
exports.MembraneConfigLoader = MembraneConfigLoader;
|
|
14640
|
+
exports.MembraneElementLayer = MembraneElementLayer;
|
|
14161
14641
|
exports.MembraneError = MembraneError;
|
|
14162
14642
|
exports.MinimalConnector = MinimalConnector;
|
|
14163
14643
|
exports.NotAuthenticatedError = NotAuthenticatedError;
|
|
@@ -14167,6 +14647,7 @@ exports.OAUTH_CONFIG_SCHEMA = OAUTH_CONFIG_SCHEMA;
|
|
|
14167
14647
|
exports.OpenapiMappingSchema = OpenapiMappingSchema;
|
|
14168
14648
|
exports.OperationMappingFunction = OperationMappingFunction;
|
|
14169
14649
|
exports.OperationMappingSchema = OperationMappingSchema;
|
|
14650
|
+
exports.OrgFeatureFlagsSchema = OrgFeatureFlagsSchema;
|
|
14170
14651
|
exports.OrgLimits = OrgLimits;
|
|
14171
14652
|
exports.OrgSchema = OrgSchema;
|
|
14172
14653
|
exports.OrgWorkspaceSchema = OrgWorkspaceSchema;
|
|
@@ -14233,9 +14714,11 @@ exports.WorkspacePublicKey = WorkspacePublicKey;
|
|
|
14233
14714
|
exports.WritableConnectorVersionData = WritableConnectorVersionData;
|
|
14234
14715
|
exports.WritablePackageVersionData = WritablePackageVersionData;
|
|
14235
14716
|
exports.WriteableConnectorFields = WriteableConnectorFields;
|
|
14717
|
+
exports.WriteableConnectorOption = WriteableConnectorOption;
|
|
14236
14718
|
exports.__resolveValue = __resolveValue;
|
|
14237
14719
|
exports.addRequiredFieldsToSchema = addRequiredFieldsToSchema;
|
|
14238
14720
|
exports.addUdmFallbackFields = addUdmFallbackFields;
|
|
14721
|
+
exports.addUndefinedWriteableProperties = addUndefinedWriteableProperties;
|
|
14239
14722
|
exports.backwardCompatibleFilterMatch = backwardCompatibleFilterMatch;
|
|
14240
14723
|
exports.buildData = buildData;
|
|
14241
14724
|
exports.buildDataSchema = buildDataSchema;
|
|
@@ -14265,6 +14748,10 @@ exports.findValueLocators = findValueLocators;
|
|
|
14265
14748
|
exports.generateExampleFromSchema = generateExampleFromSchema;
|
|
14266
14749
|
exports.getActionInstanceVariableSchema = getActionInstanceVariableSchema;
|
|
14267
14750
|
exports.getActionRunTimeVariablesSchema = getActionRunTimeVariablesSchema;
|
|
14751
|
+
exports.getAlertCategoryDisplayName = getAlertCategoryDisplayName;
|
|
14752
|
+
exports.getAlertDeliveryMethodLabel = getAlertDeliveryMethodLabel;
|
|
14753
|
+
exports.getAlertTypeDisplayName = getAlertTypeDisplayName;
|
|
14754
|
+
exports.getAlertTypesByCategory = getAlertTypesByCategory;
|
|
14268
14755
|
exports.getAllEventMethodFilePaths = getAllEventMethodFilePaths;
|
|
14269
14756
|
exports.getBusinessDaysBetween = getBusinessDaysBetween;
|
|
14270
14757
|
exports.getChildNodeKeys = getChildNodeKeys;
|
|
@@ -14273,6 +14760,7 @@ exports.getDataCollectionUpdateFields = getDataCollectionUpdateFields;
|
|
|
14273
14760
|
exports.getDataLocationMethodPath = getDataLocationMethodPath;
|
|
14274
14761
|
exports.getDefaultMembraneConfigLoader = getDefaultMembraneConfigLoader;
|
|
14275
14762
|
exports.getDownstreamNodeKeys = getDownstreamNodeKeys;
|
|
14763
|
+
exports.getEffectiveConnectorOption = getEffectiveConnectorOption;
|
|
14276
14764
|
exports.getElementSelector = getElementSelector;
|
|
14277
14765
|
exports.getErrorFromData = getErrorFromData;
|
|
14278
14766
|
exports.getEventMethodFileKey = getEventMethodFileKey;
|
|
@@ -14313,16 +14801,20 @@ exports.hasCycles = hasCycles;
|
|
|
14313
14801
|
exports.hasFormulas_internalDoNotUse = hasFormulas;
|
|
14314
14802
|
exports.hasMembraneCredentials = hasMembraneCredentials;
|
|
14315
14803
|
exports.injectFormulaCatalog = injectFormulaCatalog;
|
|
14804
|
+
exports.isBlob = isBlob;
|
|
14316
14805
|
exports.isBusinessDay = isBusinessDay;
|
|
14317
14806
|
exports.isDataActionType = isDataActionType;
|
|
14318
14807
|
exports.isDataLocationMethodSupported = isDataLocationMethodSupported;
|
|
14808
|
+
exports.isDeliveryMethodEnabled = isDeliveryMethodEnabled;
|
|
14319
14809
|
exports.isFormula_internalDoNotUse = isFormula;
|
|
14320
14810
|
exports.isMembraneError = isMembraneError;
|
|
14321
14811
|
exports.isObject = isObject;
|
|
14322
14812
|
exports.isSameDataLocation = isSameDataLocation;
|
|
14323
14813
|
exports.isSchemaEmpty = isSchemaEmpty;
|
|
14324
14814
|
exports.isStream = isStream;
|
|
14815
|
+
exports.isValidAlertType = isValidAlertType;
|
|
14325
14816
|
exports.isValidLocator = isValidLocator;
|
|
14817
|
+
exports.lenientParseWithSchema = lenientParseWithSchema;
|
|
14326
14818
|
exports.loadMembraneConfig = loadMembraneConfig;
|
|
14327
14819
|
exports.locatorToField = locatorToField;
|
|
14328
14820
|
exports.locatorToSteps = locatorToSteps;
|
|
@@ -14354,6 +14846,7 @@ exports.schemaIsNumber = schemaIsNumber;
|
|
|
14354
14846
|
exports.schemaIsScalar = schemaIsScalar;
|
|
14355
14847
|
exports.schemaTypeFromValue = schemaTypeFromValue;
|
|
14356
14848
|
exports.schemaWithTitle = schemaWithTitle;
|
|
14849
|
+
exports.setEditablePropertiesForWorkspaceElement = setEditablePropertiesForWorkspaceElement;
|
|
14357
14850
|
exports.setSchemaAtLocator = setSchemaAtLocator;
|
|
14358
14851
|
exports.setValueAtLocator = setValueAtLocator;
|
|
14359
14852
|
exports.stepsToLocator = stepsToLocator;
|