@membranehq/sdk 0.9.10 → 0.10.10
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 +74 -31
- package/dist/bundle.js +31 -14
- package/dist/bundle.js.map +1 -1
- package/dist/dts/accessors/connections-accessors.d.ts +17 -11
- package/dist/dts/accessors/integrations-accessors.d.ts +14 -11
- package/dist/dts/agent/session.d.ts +5 -0
- package/dist/dts/alerts/index.d.ts +1 -0
- package/dist/dts/alerts/types.d.ts +107 -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 +66 -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 +18 -3
- 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 -1
- 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/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 +1360 -583
- package/dist/index.browser.d.ts +1360 -583
- package/dist/index.browser.js +593 -113
- package/dist/index.browser.js.map +1 -1
- package/dist/index.browser.mjs +570 -114
- package/dist/index.browser.mjs.map +1 -1
- package/dist/index.node.d.mts +1358 -580
- package/dist/index.node.d.ts +1358 -580
- package/dist/index.node.js +600 -113
- package/dist/index.node.js.map +1 -1
- package/dist/index.node.mjs +577 -114
- package/dist/index.node.mjs.map +1 -1
- package/package.json +2 -1
package/dist/index.browser.mjs
CHANGED
|
@@ -3475,6 +3475,7 @@ var WorkspaceEventType;
|
|
|
3475
3475
|
WorkspaceEventType["FlowRunCompleted"] = "flowRun.completed";
|
|
3476
3476
|
WorkspaceEventType["FlowRunFailed"] = "flowRun.failed";
|
|
3477
3477
|
WorkspaceEventType["FlowRunStopped"] = "flowRun.stopped";
|
|
3478
|
+
WorkspaceEventType["AlertCreated"] = "alert.created";
|
|
3478
3479
|
})(WorkspaceEventType || (WorkspaceEventType = {}));
|
|
3479
3480
|
var WorkspaceElementState;
|
|
3480
3481
|
(function (WorkspaceElementState) {
|
|
@@ -3525,8 +3526,9 @@ const BaseIntegrationLevelMembraneInterfaceExportProperties = BaseMembraneInterf
|
|
|
3525
3526
|
parentUuid: z.string().optional(),
|
|
3526
3527
|
isCustomized: z.boolean().optional(),
|
|
3527
3528
|
});
|
|
3529
|
+
const MembraneElementLayer = z.enum(['universal', 'integration', 'connection']);
|
|
3528
3530
|
const IntegrationLevelMembraneInterfaceSelectorQuery = z.object({
|
|
3529
|
-
layer:
|
|
3531
|
+
layer: MembraneElementLayer.optional(),
|
|
3530
3532
|
integrationKey: z.string().optional(),
|
|
3531
3533
|
integrationId: z.string().optional(),
|
|
3532
3534
|
connectionId: z.string().optional(),
|
|
@@ -3546,8 +3548,7 @@ const WorkspaceElementSearchQuery = z.object({
|
|
|
3546
3548
|
});
|
|
3547
3549
|
const WorkspaceElementSearchResult = z.object({
|
|
3548
3550
|
elementType: z.enum(WorkspaceElementType),
|
|
3549
|
-
|
|
3550
|
-
name: z.string(),
|
|
3551
|
+
element: z.any(),
|
|
3551
3552
|
});
|
|
3552
3553
|
|
|
3553
3554
|
function mergeWithFormulas(a, b) {
|
|
@@ -3769,7 +3770,9 @@ const BaseConnection = BaseWorkspaceElement.extend({
|
|
|
3769
3770
|
isDefunct: z.boolean().optional(),
|
|
3770
3771
|
state: z.enum(WorkspaceElementState).optional(),
|
|
3771
3772
|
error: ErrorDataSchema.optional(),
|
|
3772
|
-
integrationId: z.string(),
|
|
3773
|
+
integrationId: z.string().optional(),
|
|
3774
|
+
connectorId: z.string().optional(),
|
|
3775
|
+
connectorVersion: z.string().optional(),
|
|
3773
3776
|
authOptionKey: z.string().optional(),
|
|
3774
3777
|
createdAt: z.string(),
|
|
3775
3778
|
updatedAt: z.string(),
|
|
@@ -3855,6 +3858,7 @@ const ConnectorAuthSpec = z.object({
|
|
|
3855
3858
|
title: z.string().optional(),
|
|
3856
3859
|
description: z.string().optional(),
|
|
3857
3860
|
type: z.enum(CONNECTOR_AUTH_TYPES),
|
|
3861
|
+
inputSchema: DataSchema.optional(),
|
|
3858
3862
|
ui: z
|
|
3859
3863
|
.object({
|
|
3860
3864
|
schema: DataSchema.optional(),
|
|
@@ -3989,7 +3993,7 @@ const ConnectorAuthMethodTypes = {
|
|
|
3989
3993
|
},
|
|
3990
3994
|
};
|
|
3991
3995
|
},
|
|
3992
|
-
getOutputSchema: () => REST_API_CLIENT_SCHEMA,
|
|
3996
|
+
getOutputSchema: () => REST_API_CLIENT_SCHEMA$1,
|
|
3993
3997
|
isRequired: true,
|
|
3994
3998
|
},
|
|
3995
3999
|
test: {
|
|
@@ -4144,7 +4148,7 @@ const REST_API_CLIENT_RESPONSE_HANDLERS_SCHEMA = {
|
|
|
4144
4148
|
},
|
|
4145
4149
|
},
|
|
4146
4150
|
};
|
|
4147
|
-
const REST_API_CLIENT_SCHEMA = {
|
|
4151
|
+
const REST_API_CLIENT_SCHEMA$1 = {
|
|
4148
4152
|
type: 'object',
|
|
4149
4153
|
properties: {
|
|
4150
4154
|
args: {
|
|
@@ -4182,11 +4186,6 @@ const CONNECTOR_DOCS_DIR = 'docs';
|
|
|
4182
4186
|
const CONNECTOR_GLOBAL_WEBHOOKS_DIR = 'global-webhooks';
|
|
4183
4187
|
const CONNECTOR_EVENTS_DIR = 'events';
|
|
4184
4188
|
|
|
4185
|
-
const ConnectorOperationMethodImplementationTypes = [
|
|
4186
|
-
ConnectorMethodImplementationType.restApiMapping,
|
|
4187
|
-
ConnectorMethodImplementationType.javascript,
|
|
4188
|
-
];
|
|
4189
|
-
|
|
4190
4189
|
var FunctionType;
|
|
4191
4190
|
(function (FunctionType) {
|
|
4192
4191
|
FunctionType["mapping"] = "mapping";
|
|
@@ -4206,10 +4205,157 @@ const BaseFunctionDefinition = z.object({
|
|
|
4206
4205
|
});
|
|
4207
4206
|
const GenericFunctionDefinition = z
|
|
4208
4207
|
.object({
|
|
4209
|
-
type: z.enum(['mapping', 'operation-mapping', 'rest-api-mapping', 'graphql-api-mapping', 'javascript']),
|
|
4208
|
+
type: z.enum(['mapping', 'operation-mapping', 'rest-api-mapping', 'graphql-api-mapping', 'javascript']).optional(),
|
|
4210
4209
|
})
|
|
4211
4210
|
.loose();
|
|
4212
4211
|
|
|
4212
|
+
function getEffectiveConnectorOption(connector, optionKey) {
|
|
4213
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
4214
|
+
const option = (_a = connector.options) === null || _a === void 0 ? void 0 : _a[optionKey];
|
|
4215
|
+
const connectorInputSchema = (_b = connector.inputSchema) !== null && _b !== void 0 ? _b : (_c = connector.ui) === null || _c === void 0 ? void 0 : _c.schema;
|
|
4216
|
+
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;
|
|
4217
|
+
return {
|
|
4218
|
+
...connector,
|
|
4219
|
+
...option,
|
|
4220
|
+
inputSchema: mergeSchemas([connectorInputSchema, optionInputSchema]),
|
|
4221
|
+
parametersSchema: mergeSchemas([connector.parametersSchema, option === null || option === void 0 ? void 0 : option.parametersSchema]),
|
|
4222
|
+
credentialsSchema: mergeSchemas([connector.credentialsSchema, option === null || option === void 0 ? void 0 : option.credentialsSchema]),
|
|
4223
|
+
makeApiClient: (_f = option === null || option === void 0 ? void 0 : option.makeApiClient) !== null && _f !== void 0 ? _f : connector.makeApiClient,
|
|
4224
|
+
test: (_g = option === null || option === void 0 ? void 0 : option.test) !== null && _g !== void 0 ? _g : connector.test,
|
|
4225
|
+
};
|
|
4226
|
+
}
|
|
4227
|
+
const getDefaultInputSchema = (authConfig) => {
|
|
4228
|
+
var _a, _b, _c;
|
|
4229
|
+
const connectionParameters = (_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;
|
|
4230
|
+
return {
|
|
4231
|
+
type: 'object',
|
|
4232
|
+
properties: {
|
|
4233
|
+
connectorParameters: (_c = authConfig === null || authConfig === void 0 ? void 0 : authConfig.parametersSchema) !== null && _c !== void 0 ? _c : {},
|
|
4234
|
+
...(connectionParameters && { connectionParameters }),
|
|
4235
|
+
},
|
|
4236
|
+
};
|
|
4237
|
+
};
|
|
4238
|
+
const REST_API_CLIENT_SCHEMA = {
|
|
4239
|
+
type: 'object',
|
|
4240
|
+
properties: {
|
|
4241
|
+
args: {
|
|
4242
|
+
type: 'object',
|
|
4243
|
+
properties: {
|
|
4244
|
+
baseUri: {
|
|
4245
|
+
type: 'string',
|
|
4246
|
+
description: 'This prefix will be added to all relative API requests.',
|
|
4247
|
+
},
|
|
4248
|
+
query: {
|
|
4249
|
+
type: 'object',
|
|
4250
|
+
additionalProperties: true,
|
|
4251
|
+
},
|
|
4252
|
+
headers: {
|
|
4253
|
+
type: 'object',
|
|
4254
|
+
additionalProperties: true,
|
|
4255
|
+
},
|
|
4256
|
+
auth: {
|
|
4257
|
+
type: 'object',
|
|
4258
|
+
description: 'Basic authentication',
|
|
4259
|
+
properties: {
|
|
4260
|
+
username: { type: 'string' },
|
|
4261
|
+
password: { type: 'string' },
|
|
4262
|
+
},
|
|
4263
|
+
},
|
|
4264
|
+
},
|
|
4265
|
+
},
|
|
4266
|
+
},
|
|
4267
|
+
};
|
|
4268
|
+
const ConnectorFunctionSpecs = {
|
|
4269
|
+
getOAuthConfig: {
|
|
4270
|
+
authTypes: ['oauth2', 'oauth1'],
|
|
4271
|
+
supportedFunctionTypes: [FunctionType.mapping, FunctionType.javascript],
|
|
4272
|
+
getInputSchema: (authConfig) => {
|
|
4273
|
+
const schema = getDefaultInputSchema(authConfig);
|
|
4274
|
+
return {
|
|
4275
|
+
...schema,
|
|
4276
|
+
properties: {
|
|
4277
|
+
...schema.properties,
|
|
4278
|
+
redirectUri: { type: 'string' },
|
|
4279
|
+
state: { type: 'string' },
|
|
4280
|
+
},
|
|
4281
|
+
};
|
|
4282
|
+
},
|
|
4283
|
+
getOutputSchema: (authConfig) => {
|
|
4284
|
+
return (authConfig === null || authConfig === void 0 ? void 0 : authConfig.type) === 'oauth1' ? OAUTH1_CONFIG_SCHEMA : OAUTH_CONFIG_SCHEMA;
|
|
4285
|
+
},
|
|
4286
|
+
isRequired: true,
|
|
4287
|
+
},
|
|
4288
|
+
getTokenData: {
|
|
4289
|
+
authTypes: ['oauth2'],
|
|
4290
|
+
supportedFunctionTypes: [FunctionType.mapping, FunctionType.javascript],
|
|
4291
|
+
getInputSchema: getDefaultInputSchema,
|
|
4292
|
+
getOutputSchema: (authConfig) => {
|
|
4293
|
+
var _a;
|
|
4294
|
+
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;
|
|
4295
|
+
},
|
|
4296
|
+
isRequired: false,
|
|
4297
|
+
},
|
|
4298
|
+
getCredentialsFromAccessTokenResponse: {
|
|
4299
|
+
authTypes: ['oauth2'],
|
|
4300
|
+
supportedFunctionTypes: [FunctionType.mapping, FunctionType.javascript],
|
|
4301
|
+
isRequired: false,
|
|
4302
|
+
},
|
|
4303
|
+
getCredentialsFromRefreshTokenResponse: {
|
|
4304
|
+
authTypes: ['oauth2'],
|
|
4305
|
+
supportedFunctionTypes: [FunctionType.mapping, FunctionType.javascript],
|
|
4306
|
+
isRequired: false,
|
|
4307
|
+
},
|
|
4308
|
+
getCredentialsFromConnectionParameters: {
|
|
4309
|
+
authTypes: ['client-credentials', 'oauth2'],
|
|
4310
|
+
getInputSchema: getDefaultInputSchema,
|
|
4311
|
+
getOutputSchema: (authConfig) => {
|
|
4312
|
+
return authConfig === null || authConfig === void 0 ? void 0 : authConfig.credentialsSchema;
|
|
4313
|
+
},
|
|
4314
|
+
supportedFunctionTypes: [FunctionType.mapping, FunctionType.javascript],
|
|
4315
|
+
isRequired: false,
|
|
4316
|
+
},
|
|
4317
|
+
refreshCredentials: {
|
|
4318
|
+
authTypes: ['oauth2', 'oauth1', 'client-credentials'],
|
|
4319
|
+
getInputSchema: getDefaultInputSchema,
|
|
4320
|
+
getOutputSchema: (authConfig) => {
|
|
4321
|
+
return authConfig === null || authConfig === void 0 ? void 0 : authConfig.credentialsSchema;
|
|
4322
|
+
},
|
|
4323
|
+
supportedFunctionTypes: [FunctionType.javascript],
|
|
4324
|
+
isRequired: false,
|
|
4325
|
+
},
|
|
4326
|
+
makeApiClient: {
|
|
4327
|
+
supportedFunctionTypes: [FunctionType.mapping, FunctionType.javascript],
|
|
4328
|
+
getInputSchema: (authConfig) => {
|
|
4329
|
+
var _a, _b, _c;
|
|
4330
|
+
return {
|
|
4331
|
+
type: 'object',
|
|
4332
|
+
properties: {
|
|
4333
|
+
credentials: mergeSchemas([
|
|
4334
|
+
((_a = authConfig === null || authConfig === void 0 ? void 0 : authConfig.customCredentialsSchema) !== null && _a !== void 0 ? _a : authConfig === null || authConfig === void 0 ? void 0 : authConfig.credentialsSchema),
|
|
4335
|
+
(_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,
|
|
4336
|
+
]),
|
|
4337
|
+
},
|
|
4338
|
+
};
|
|
4339
|
+
},
|
|
4340
|
+
getOutputSchema: () => REST_API_CLIENT_SCHEMA,
|
|
4341
|
+
isRequired: true,
|
|
4342
|
+
},
|
|
4343
|
+
test: {
|
|
4344
|
+
supportedFunctionTypes: [FunctionType.operationMapping, FunctionType.restApiMapping, FunctionType.javascript],
|
|
4345
|
+
getOutputSchema: () => ({
|
|
4346
|
+
title: 'Success Criteria',
|
|
4347
|
+
description: 'If this value is truthy, the test is considered a success.',
|
|
4348
|
+
type: 'boolean',
|
|
4349
|
+
}),
|
|
4350
|
+
isRequired: true,
|
|
4351
|
+
},
|
|
4352
|
+
};
|
|
4353
|
+
|
|
4354
|
+
const ConnectorOperationMethodImplementationTypes = [
|
|
4355
|
+
ConnectorMethodImplementationType.restApiMapping,
|
|
4356
|
+
ConnectorMethodImplementationType.javascript,
|
|
4357
|
+
];
|
|
4358
|
+
|
|
4213
4359
|
const GraphQLFieldMappingSchema = z.lazy(() => z.object({
|
|
4214
4360
|
field: z.string(),
|
|
4215
4361
|
args: z.record(z.string(), z.any()).optional(),
|
|
@@ -4319,7 +4465,8 @@ const ConnectorSpec = z.object({
|
|
|
4319
4465
|
type: z.enum(['openapi', 'graphql']),
|
|
4320
4466
|
})
|
|
4321
4467
|
.optional(),
|
|
4322
|
-
ui: ConnectorUiSpec.optional(),
|
|
4468
|
+
ui: ConnectorUiSpec.optional().describe('[INTERNAL] Deprecated: Use inputSchema instead'),
|
|
4469
|
+
inputSchema: DataSchema.optional(),
|
|
4323
4470
|
auth: ConnectorAuth.optional(),
|
|
4324
4471
|
parametersSchema: DataSchema.optional(),
|
|
4325
4472
|
udms: z.array(z.string()).optional(),
|
|
@@ -4342,14 +4489,10 @@ const ConnectorAuthWithFunctions = z.object({
|
|
|
4342
4489
|
type: z
|
|
4343
4490
|
.enum(['integration-app-token', 'membrane-token', 'oauth2', 'oauth1', 'client-credentials', 'proxy'])
|
|
4344
4491
|
.optional(),
|
|
4492
|
+
credentialsSchema: DataSchema.optional(),
|
|
4345
4493
|
customCredentialsSchema: DataSchema.optional(),
|
|
4346
|
-
|
|
4347
|
-
|
|
4348
|
-
schema: DataSchema.optional(),
|
|
4349
|
-
description: z.string().optional(),
|
|
4350
|
-
helpUri: z.string().optional(),
|
|
4351
|
-
})
|
|
4352
|
-
.optional(),
|
|
4494
|
+
inputSchema: DataSchema.optional(),
|
|
4495
|
+
parametersSchema: DataSchema.optional(),
|
|
4353
4496
|
getCredentialsFromConnectionParameters: GenericFunctionDefinition.optional(),
|
|
4354
4497
|
refreshCredentials: GenericFunctionDefinition.optional(),
|
|
4355
4498
|
makeApiClient: GenericFunctionDefinition.optional(),
|
|
@@ -4357,18 +4500,40 @@ const ConnectorAuthWithFunctions = z.object({
|
|
|
4357
4500
|
getTokenData: GenericFunctionDefinition.optional(),
|
|
4358
4501
|
getCredentialsFromAccessTokenResponse: GenericFunctionDefinition.optional(),
|
|
4359
4502
|
getCredentialsFromRefreshTokenResponse: GenericFunctionDefinition.optional(),
|
|
4503
|
+
test: GenericFunctionDefinition.optional(),
|
|
4360
4504
|
proxyKey: z.string().optional(),
|
|
4505
|
+
ui: z
|
|
4506
|
+
.object({
|
|
4507
|
+
schema: DataSchema.optional(),
|
|
4508
|
+
description: z.string().optional(),
|
|
4509
|
+
helpUri: z.string().optional(),
|
|
4510
|
+
})
|
|
4511
|
+
.optional()
|
|
4512
|
+
.describe('[INTERNAL] Deprecated: Use inputSchema instead'),
|
|
4361
4513
|
});
|
|
4362
|
-
const
|
|
4514
|
+
const WriteableConnectorOption = ConnectorAuthWithFunctions.extend({
|
|
4363
4515
|
title: z.string().optional(),
|
|
4364
4516
|
description: z.string().optional(),
|
|
4365
4517
|
enabled: z.any().optional(),
|
|
4518
|
+
}).omit({
|
|
4519
|
+
credentialsSchema: true,
|
|
4520
|
+
});
|
|
4521
|
+
const ConnectorOption = WriteableConnectorOption.extend({
|
|
4522
|
+
credentialsSchema: DataSchema.optional(),
|
|
4523
|
+
});
|
|
4524
|
+
const GeneratedConnectorOption = z.object({
|
|
4525
|
+
key: z.string(),
|
|
4526
|
+
type: z.enum(CONNECTOR_AUTH_TYPES),
|
|
4527
|
+
title: z.string().optional(),
|
|
4528
|
+
description: z.string().optional(),
|
|
4529
|
+
inputSchema: DataSchema.optional(),
|
|
4366
4530
|
});
|
|
4367
4531
|
const ConnectorOptions = z.record(z.string(), ConnectorOption);
|
|
4368
4532
|
const WritableConnectorVersionData = ConnectorAuthWithFunctions.extend({
|
|
4369
4533
|
parametersSchema: DataSchema.optional(),
|
|
4370
|
-
|
|
4371
|
-
|
|
4534
|
+
options: z.record(z.string(), WriteableConnectorOption).optional(),
|
|
4535
|
+
}).omit({
|
|
4536
|
+
credentialsSchema: true,
|
|
4372
4537
|
});
|
|
4373
4538
|
const ConnectorVersionData = z
|
|
4374
4539
|
.object({
|
|
@@ -4386,7 +4551,10 @@ const ConnectorVersionData = z
|
|
|
4386
4551
|
version: z.string(),
|
|
4387
4552
|
credentialsSchema: DataSchema.optional(),
|
|
4388
4553
|
})
|
|
4389
|
-
.extend(WritableConnectorVersionData.shape)
|
|
4554
|
+
.extend(WritableConnectorVersionData.shape)
|
|
4555
|
+
.extend({
|
|
4556
|
+
options: ConnectorOptions.optional(),
|
|
4557
|
+
});
|
|
4390
4558
|
const ConnectorVersion = ConnectorVersionData.extend({
|
|
4391
4559
|
id: z.string(),
|
|
4392
4560
|
connectorId: z.string(),
|
|
@@ -4401,6 +4569,7 @@ const WriteableConnectorFields = z
|
|
|
4401
4569
|
categories: z.array(z.string()).optional(),
|
|
4402
4570
|
})
|
|
4403
4571
|
.extend(WritableConnectorVersionData.shape);
|
|
4572
|
+
const ConnectorExportProperties = WriteableConnectorFields;
|
|
4404
4573
|
const UpdateConnectorRequest = WriteableConnectorFields;
|
|
4405
4574
|
const CreateConnectorRequest = WriteableConnectorFields.extend({
|
|
4406
4575
|
name: z.string(),
|
|
@@ -4410,16 +4579,12 @@ const BaseConnector = z.object({
|
|
|
4410
4579
|
id: z.string(),
|
|
4411
4580
|
key: z.string(),
|
|
4412
4581
|
uuid: z.string(),
|
|
4582
|
+
appUuid: z.string().optional(),
|
|
4413
4583
|
name: z.string(),
|
|
4414
4584
|
logoUri: z.string(),
|
|
4415
|
-
appUri: z.string(),
|
|
4416
|
-
apiDocsUri: z.string(),
|
|
4417
|
-
hasReadme: z.boolean(),
|
|
4418
|
-
status: z.string().optional(),
|
|
4419
4585
|
categories: z.array(z.string()).optional(),
|
|
4420
4586
|
isPublic: z.boolean().optional(),
|
|
4421
4587
|
popularity: z.number().optional(),
|
|
4422
|
-
appUuid: z.string().optional(),
|
|
4423
4588
|
});
|
|
4424
4589
|
const Connector = z
|
|
4425
4590
|
.object({})
|
|
@@ -4483,8 +4648,8 @@ const DataCollectionMethodCreate = {
|
|
|
4483
4648
|
},
|
|
4484
4649
|
};
|
|
4485
4650
|
},
|
|
4486
|
-
getInputSchema: ({ collectionSpec, method,
|
|
4487
|
-
var _a
|
|
4651
|
+
getInputSchema: ({ collectionSpec, method, credentialsSchema }) => {
|
|
4652
|
+
var _a;
|
|
4488
4653
|
let fieldsSchema = collectionSpec === null || collectionSpec === void 0 ? void 0 : collectionSpec.fieldsSchema;
|
|
4489
4654
|
if (method === null || method === void 0 ? void 0 : method.fields) {
|
|
4490
4655
|
fieldsSchema = pickFieldsFromSchema(fieldsSchema, method.fields);
|
|
@@ -4494,12 +4659,12 @@ const DataCollectionMethodCreate = {
|
|
|
4494
4659
|
}
|
|
4495
4660
|
return {
|
|
4496
4661
|
type: 'object',
|
|
4497
|
-
properties: {
|
|
4662
|
+
properties: nonEmptyObjectProperties({
|
|
4498
4663
|
fields: (_a = transformVariablesWith(fieldsSchema, (locator) => `fields.${locatorToField(locator)}`)) !== null && _a !== void 0 ? _a : {
|
|
4499
4664
|
type: 'object',
|
|
4500
4665
|
},
|
|
4501
|
-
credentials:
|
|
4502
|
-
},
|
|
4666
|
+
credentials: credentialsSchema,
|
|
4667
|
+
}),
|
|
4503
4668
|
};
|
|
4504
4669
|
},
|
|
4505
4670
|
getOutputSchema: ({}) => ({
|
|
@@ -4514,17 +4679,16 @@ const DataCollectionMethodCreate = {
|
|
|
4514
4679
|
const DataCollectionMethodDelete = {
|
|
4515
4680
|
name: 'Delete',
|
|
4516
4681
|
description: 'Delete a data record from the collection by id',
|
|
4517
|
-
getInputSchema: ({ collectionHandler, parameters,
|
|
4518
|
-
var _a;
|
|
4682
|
+
getInputSchema: ({ collectionHandler, parameters, credentialsSchema }) => {
|
|
4519
4683
|
return {
|
|
4520
4684
|
type: 'object',
|
|
4521
|
-
properties: {
|
|
4685
|
+
properties: nonEmptyObjectProperties({
|
|
4522
4686
|
id: {
|
|
4523
4687
|
type: 'string',
|
|
4524
4688
|
referenceCollection: { key: collectionHandler === null || collectionHandler === void 0 ? void 0 : collectionHandler.key, parameters },
|
|
4525
4689
|
},
|
|
4526
|
-
credentials:
|
|
4527
|
-
},
|
|
4690
|
+
credentials: credentialsSchema,
|
|
4691
|
+
}),
|
|
4528
4692
|
};
|
|
4529
4693
|
},
|
|
4530
4694
|
getOutputSchema: () => null,
|
|
@@ -4548,15 +4712,14 @@ const DataCollectionMethodFind = {
|
|
|
4548
4712
|
},
|
|
4549
4713
|
};
|
|
4550
4714
|
},
|
|
4551
|
-
getInputSchema: ({ collectionSpec, method,
|
|
4552
|
-
var _a;
|
|
4715
|
+
getInputSchema: ({ collectionSpec, method, credentialsSchema }) => {
|
|
4553
4716
|
const queryFieldsSchema = pickFieldsFromSchema(collectionSpec === null || collectionSpec === void 0 ? void 0 : collectionSpec.fieldsSchema, method === null || method === void 0 ? void 0 : method.queryFields);
|
|
4554
4717
|
const schema = {
|
|
4555
4718
|
type: 'object',
|
|
4556
|
-
properties: {
|
|
4719
|
+
properties: nonEmptyObjectProperties({
|
|
4557
4720
|
cursor: { type: 'string' },
|
|
4558
|
-
credentials:
|
|
4559
|
-
},
|
|
4721
|
+
credentials: credentialsSchema,
|
|
4722
|
+
}),
|
|
4560
4723
|
};
|
|
4561
4724
|
if (queryFieldsSchema === null || queryFieldsSchema === void 0 ? void 0 : queryFieldsSchema.properties) {
|
|
4562
4725
|
schema.properties = {
|
|
@@ -4587,19 +4750,16 @@ const DataCollectionMethodFind = {
|
|
|
4587
4750
|
const DataCollectionMethodFindById = {
|
|
4588
4751
|
name: 'Find by ID',
|
|
4589
4752
|
description: 'Find a single data record in the collection by its id',
|
|
4590
|
-
getInputSchema: ({ collectionHandler, parameters,
|
|
4591
|
-
|
|
4592
|
-
|
|
4593
|
-
|
|
4594
|
-
|
|
4595
|
-
|
|
4596
|
-
type: 'string',
|
|
4597
|
-
referenceCollection: { key: collectionHandler === null || collectionHandler === void 0 ? void 0 : collectionHandler.key, parameters },
|
|
4598
|
-
},
|
|
4599
|
-
credentials: (_a = connectorSpec === null || connectorSpec === void 0 ? void 0 : connectorSpec.auth) === null || _a === void 0 ? void 0 : _a.credentialsSchema,
|
|
4753
|
+
getInputSchema: ({ collectionHandler, parameters, credentialsSchema }) => ({
|
|
4754
|
+
type: 'object',
|
|
4755
|
+
properties: nonEmptyObjectProperties({
|
|
4756
|
+
id: {
|
|
4757
|
+
type: 'string',
|
|
4758
|
+
referenceCollection: { key: collectionHandler === null || collectionHandler === void 0 ? void 0 : collectionHandler.key, parameters },
|
|
4600
4759
|
},
|
|
4601
|
-
|
|
4602
|
-
|
|
4760
|
+
credentials: credentialsSchema,
|
|
4761
|
+
}),
|
|
4762
|
+
}),
|
|
4603
4763
|
getOutputSchema: ({ collectionSpec }) => {
|
|
4604
4764
|
var _a;
|
|
4605
4765
|
return ({
|
|
@@ -4628,8 +4788,7 @@ const DataCollectionMethodList = {
|
|
|
4628
4788
|
},
|
|
4629
4789
|
};
|
|
4630
4790
|
},
|
|
4631
|
-
getInputSchema: ({ method, collectionSpec,
|
|
4632
|
-
var _a;
|
|
4791
|
+
getInputSchema: ({ method, collectionSpec, credentialsSchema }) => {
|
|
4633
4792
|
const fieldsSchema = collectionSpec === null || collectionSpec === void 0 ? void 0 : collectionSpec.fieldsSchema;
|
|
4634
4793
|
let filterSchema;
|
|
4635
4794
|
if (method === null || method === void 0 ? void 0 : method.filterFields) {
|
|
@@ -4643,7 +4802,7 @@ const DataCollectionMethodList = {
|
|
|
4643
4802
|
type: 'string',
|
|
4644
4803
|
description: 'Cursor returned in response to the previous "list" request',
|
|
4645
4804
|
},
|
|
4646
|
-
credentials:
|
|
4805
|
+
credentials: credentialsSchema,
|
|
4647
4806
|
}),
|
|
4648
4807
|
};
|
|
4649
4808
|
},
|
|
@@ -4682,15 +4841,14 @@ const DataCollectionMethodMatch = {
|
|
|
4682
4841
|
},
|
|
4683
4842
|
};
|
|
4684
4843
|
},
|
|
4685
|
-
getInputSchema: ({ collectionSpec, method,
|
|
4686
|
-
var _a;
|
|
4844
|
+
getInputSchema: ({ collectionSpec, method, credentialsSchema }) => {
|
|
4687
4845
|
const fieldsSchema = pickFieldsFromSchema(collectionSpec === null || collectionSpec === void 0 ? void 0 : collectionSpec.fieldsSchema, method === null || method === void 0 ? void 0 : method.fields);
|
|
4688
4846
|
return {
|
|
4689
4847
|
type: 'object',
|
|
4690
|
-
properties: {
|
|
4848
|
+
properties: nonEmptyObjectProperties({
|
|
4691
4849
|
query: transformVariablesWith(fieldsSchema !== null && fieldsSchema !== void 0 ? fieldsSchema : {}, (locator) => `query.${locatorToField(locator)}`),
|
|
4692
|
-
credentials:
|
|
4693
|
-
},
|
|
4850
|
+
credentials: credentialsSchema,
|
|
4851
|
+
}),
|
|
4694
4852
|
};
|
|
4695
4853
|
},
|
|
4696
4854
|
getOutputSchema: ({ collectionSpec }) => {
|
|
@@ -4708,17 +4866,14 @@ const DataCollectionMethodMatch = {
|
|
|
4708
4866
|
const DataCollectionMethodSearch = {
|
|
4709
4867
|
name: 'Search',
|
|
4710
4868
|
description: 'Find data records in a collection by a string query',
|
|
4711
|
-
getInputSchema: ({
|
|
4712
|
-
|
|
4713
|
-
|
|
4714
|
-
type: '
|
|
4715
|
-
|
|
4716
|
-
|
|
4717
|
-
|
|
4718
|
-
|
|
4719
|
-
},
|
|
4720
|
-
});
|
|
4721
|
-
},
|
|
4869
|
+
getInputSchema: ({ credentialsSchema }) => ({
|
|
4870
|
+
type: 'object',
|
|
4871
|
+
properties: nonEmptyObjectProperties({
|
|
4872
|
+
query: { type: 'string' },
|
|
4873
|
+
cursor: { type: 'string' },
|
|
4874
|
+
credentials: credentialsSchema,
|
|
4875
|
+
}),
|
|
4876
|
+
}),
|
|
4722
4877
|
getOutputSchema: ({ collectionSpec }) => {
|
|
4723
4878
|
var _a;
|
|
4724
4879
|
return ({
|
|
@@ -4755,8 +4910,8 @@ const DataCollectionMethodUpdate = {
|
|
|
4755
4910
|
},
|
|
4756
4911
|
};
|
|
4757
4912
|
},
|
|
4758
|
-
getInputSchema: ({ collectionSpec, collectionHandler,
|
|
4759
|
-
var _a
|
|
4913
|
+
getInputSchema: ({ collectionSpec, collectionHandler, credentialsSchema, method, parameters }) => {
|
|
4914
|
+
var _a;
|
|
4760
4915
|
let fieldsSchema = collectionSpec === null || collectionSpec === void 0 ? void 0 : collectionSpec.fieldsSchema;
|
|
4761
4916
|
if (method === null || method === void 0 ? void 0 : method.fields) {
|
|
4762
4917
|
fieldsSchema = pickFieldsFromSchema(fieldsSchema, method.fields);
|
|
@@ -4766,7 +4921,7 @@ const DataCollectionMethodUpdate = {
|
|
|
4766
4921
|
}
|
|
4767
4922
|
return {
|
|
4768
4923
|
type: 'object',
|
|
4769
|
-
properties: {
|
|
4924
|
+
properties: nonEmptyObjectProperties({
|
|
4770
4925
|
id: {
|
|
4771
4926
|
type: 'string',
|
|
4772
4927
|
referenceCollection: { key: collectionHandler === null || collectionHandler === void 0 ? void 0 : collectionHandler.key, parameters },
|
|
@@ -4774,8 +4929,8 @@ const DataCollectionMethodUpdate = {
|
|
|
4774
4929
|
fields: (_a = transformVariablesWith(fieldsSchema, (locator) => `fields.${locatorToField(locator)}`)) !== null && _a !== void 0 ? _a : {
|
|
4775
4930
|
type: 'object',
|
|
4776
4931
|
},
|
|
4777
|
-
credentials:
|
|
4778
|
-
},
|
|
4932
|
+
credentials: credentialsSchema,
|
|
4933
|
+
}),
|
|
4779
4934
|
};
|
|
4780
4935
|
},
|
|
4781
4936
|
getOutputSchema: ({}) => ({
|
|
@@ -9382,6 +9537,7 @@ const PackageCalculatedProperties = z.object({
|
|
|
9382
9537
|
key: z.string(),
|
|
9383
9538
|
name: z.string(),
|
|
9384
9539
|
isCustomized: z.boolean().optional(),
|
|
9540
|
+
isPublic: z.boolean().optional(),
|
|
9385
9541
|
});
|
|
9386
9542
|
const BasePackage = BaseMembraneInterface.merge(PackageEditableProperties).merge(PackageCalculatedProperties);
|
|
9387
9543
|
const WritablePackageVersionData = z.object({
|
|
@@ -9827,6 +9983,7 @@ const FindActionRunLogsResponse = createPaginationResponseSchema(ActionRunLogRec
|
|
|
9827
9983
|
|
|
9828
9984
|
const FindConnectionsQuery = PaginationQuery.merge(SearchQuery).merge(IncludeArchivedQuery).extend({
|
|
9829
9985
|
connectorId: z.string().optional(),
|
|
9986
|
+
connectorVersion: z.string().optional(),
|
|
9830
9987
|
id: z.string().optional(),
|
|
9831
9988
|
userId: z.string().optional(),
|
|
9832
9989
|
name: z.string().optional(),
|
|
@@ -9876,8 +10033,15 @@ const ConnectionMessagePayload = z.discriminatedUnion('type', [
|
|
|
9876
10033
|
type: z.literal('newConnectionFailure'),
|
|
9877
10034
|
error: z.string(),
|
|
9878
10035
|
errorData: ErrorDataSchema.optional(),
|
|
10036
|
+
connectionId: z.string().optional(),
|
|
9879
10037
|
}),
|
|
9880
10038
|
]);
|
|
10039
|
+
const GenerateOptionsRequest = z.object({
|
|
10040
|
+
integrationId: z.string().optional(),
|
|
10041
|
+
connectorId: z.string().optional(),
|
|
10042
|
+
connectorParameters: z.any().optional(),
|
|
10043
|
+
connectorVersion: z.string().optional(),
|
|
10044
|
+
});
|
|
9881
10045
|
|
|
9882
10046
|
const ListPublicConnectorsQuery = PaginationQuery.extend({
|
|
9883
10047
|
search: z.string().optional(),
|
|
@@ -10070,12 +10234,16 @@ const IntegrationAuthOption = z.object({
|
|
|
10070
10234
|
type: z.enum(CONNECTOR_AUTH_TYPES),
|
|
10071
10235
|
title: z.string().optional(),
|
|
10072
10236
|
description: z.string().optional(),
|
|
10073
|
-
|
|
10237
|
+
inputSchema: DataSchema.optional(),
|
|
10238
|
+
ui: IntegrationAuthUi.optional().describe('[INTERNAL] Deprecated: Use inputSchema instead'),
|
|
10074
10239
|
});
|
|
10075
10240
|
const IntegrationApiResponse = BaseIntegration.extend({
|
|
10076
10241
|
connection: BaseConnection.optional(),
|
|
10077
10242
|
spec: z.any().optional(),
|
|
10078
|
-
authOptions: z
|
|
10243
|
+
authOptions: z
|
|
10244
|
+
.array(IntegrationAuthOption)
|
|
10245
|
+
.optional()
|
|
10246
|
+
.describe('[INTERNAL] Deprecated: Use POST /connectors/:id/generate-options instead'),
|
|
10079
10247
|
parametersSchema: DataSchema.optional(),
|
|
10080
10248
|
});
|
|
10081
10249
|
|
|
@@ -10416,6 +10584,107 @@ function hasCycles(nodes) {
|
|
|
10416
10584
|
return hasCycles;
|
|
10417
10585
|
}
|
|
10418
10586
|
|
|
10587
|
+
function addUndefinedWriteableProperties(value, schema) {
|
|
10588
|
+
if (!(schema instanceof z.ZodObject)) {
|
|
10589
|
+
return value;
|
|
10590
|
+
}
|
|
10591
|
+
const allProperties = Object.keys(schema.shape);
|
|
10592
|
+
for (const key of allProperties) {
|
|
10593
|
+
if (!(key in value)) {
|
|
10594
|
+
value[key] = undefined;
|
|
10595
|
+
}
|
|
10596
|
+
}
|
|
10597
|
+
return value;
|
|
10598
|
+
}
|
|
10599
|
+
function lenientParseWithSchema(data, schema) {
|
|
10600
|
+
if (data === undefined || data === null) {
|
|
10601
|
+
return data;
|
|
10602
|
+
}
|
|
10603
|
+
const def = schema._def;
|
|
10604
|
+
if (!def) {
|
|
10605
|
+
return data;
|
|
10606
|
+
}
|
|
10607
|
+
const typeName = def.typeName || def.type;
|
|
10608
|
+
if (typeName === 'ZodOptional' || typeName === 'optional') {
|
|
10609
|
+
if (data === undefined)
|
|
10610
|
+
return undefined;
|
|
10611
|
+
return lenientParseWithSchema(data, def.innerType);
|
|
10612
|
+
}
|
|
10613
|
+
if (typeName === 'ZodNullable' || typeName === 'nullable') {
|
|
10614
|
+
if (data === null)
|
|
10615
|
+
return null;
|
|
10616
|
+
return lenientParseWithSchema(data, def.innerType);
|
|
10617
|
+
}
|
|
10618
|
+
if (typeName === 'ZodObject' || typeName === 'object') {
|
|
10619
|
+
if (typeof data !== 'object' || Array.isArray(data)) {
|
|
10620
|
+
return data;
|
|
10621
|
+
}
|
|
10622
|
+
const shape = schema.shape;
|
|
10623
|
+
const result = {};
|
|
10624
|
+
if (shape) {
|
|
10625
|
+
for (const key in shape) {
|
|
10626
|
+
if (key in data) {
|
|
10627
|
+
result[key] = lenientParseWithSchema(data[key], shape[key]);
|
|
10628
|
+
}
|
|
10629
|
+
}
|
|
10630
|
+
}
|
|
10631
|
+
const catchall = def.catchall;
|
|
10632
|
+
if (catchall) {
|
|
10633
|
+
const catchallDef = catchall._def;
|
|
10634
|
+
if ((catchallDef === null || catchallDef === void 0 ? void 0 : catchallDef.typeName) === 'ZodNever' || (catchallDef === null || catchallDef === void 0 ? void 0 : catchallDef.type) === 'never') ;
|
|
10635
|
+
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') {
|
|
10636
|
+
for (const key in data) {
|
|
10637
|
+
if (!(key in result)) {
|
|
10638
|
+
result[key] = data[key];
|
|
10639
|
+
}
|
|
10640
|
+
}
|
|
10641
|
+
}
|
|
10642
|
+
else {
|
|
10643
|
+
for (const key in data) {
|
|
10644
|
+
if (shape && !(key in shape)) {
|
|
10645
|
+
result[key] = data[key];
|
|
10646
|
+
}
|
|
10647
|
+
}
|
|
10648
|
+
}
|
|
10649
|
+
}
|
|
10650
|
+
return result;
|
|
10651
|
+
}
|
|
10652
|
+
if (typeName === 'ZodArray' || typeName === 'array') {
|
|
10653
|
+
if (!Array.isArray(data)) {
|
|
10654
|
+
return data;
|
|
10655
|
+
}
|
|
10656
|
+
const elementSchema = def.element || def.type;
|
|
10657
|
+
if (!elementSchema) {
|
|
10658
|
+
return data;
|
|
10659
|
+
}
|
|
10660
|
+
return data.map((item) => lenientParseWithSchema(item, elementSchema));
|
|
10661
|
+
}
|
|
10662
|
+
if (typeName === 'ZodRecord' || typeName === 'record') {
|
|
10663
|
+
if (typeof data !== 'object' || data === null || Array.isArray(data)) {
|
|
10664
|
+
return data;
|
|
10665
|
+
}
|
|
10666
|
+
const valueSchema = def.valueType;
|
|
10667
|
+
if (!valueSchema) {
|
|
10668
|
+
return data;
|
|
10669
|
+
}
|
|
10670
|
+
const result = {};
|
|
10671
|
+
for (const key in data) {
|
|
10672
|
+
result[key] = lenientParseWithSchema(data[key], valueSchema);
|
|
10673
|
+
}
|
|
10674
|
+
return result;
|
|
10675
|
+
}
|
|
10676
|
+
return data;
|
|
10677
|
+
}
|
|
10678
|
+
|
|
10679
|
+
function setEditablePropertiesForWorkspaceElement(currentElement, newEditableFields, exportSchema) {
|
|
10680
|
+
const parsedNewFields = lenientParseWithSchema(newEditableFields, exportSchema);
|
|
10681
|
+
const normalizedFields = addUndefinedWriteableProperties(parsedNewFields, exportSchema);
|
|
10682
|
+
return {
|
|
10683
|
+
...currentElement,
|
|
10684
|
+
...normalizedFields,
|
|
10685
|
+
};
|
|
10686
|
+
}
|
|
10687
|
+
|
|
10419
10688
|
const WorkspaceElementSpecs = {
|
|
10420
10689
|
[WorkspaceElementType.Customer]: {
|
|
10421
10690
|
type: WorkspaceElementType.Customer,
|
|
@@ -10442,6 +10711,7 @@ const WorkspaceElementSpecs = {
|
|
|
10442
10711
|
apiPath: 'connectors',
|
|
10443
10712
|
name: 'Connector',
|
|
10444
10713
|
namePlural: 'Connectors',
|
|
10714
|
+
exportPropertiesSchema: ConnectorExportProperties,
|
|
10445
10715
|
},
|
|
10446
10716
|
[WorkspaceElementType.Connection]: {
|
|
10447
10717
|
type: WorkspaceElementType.Connection,
|
|
@@ -10742,6 +11012,26 @@ async function streamToString(stream) {
|
|
|
10742
11012
|
});
|
|
10743
11013
|
});
|
|
10744
11014
|
}
|
|
11015
|
+
function isBlob(value) {
|
|
11016
|
+
var _a;
|
|
11017
|
+
if (value === null || typeof value !== 'object') {
|
|
11018
|
+
return false;
|
|
11019
|
+
}
|
|
11020
|
+
if (typeof Blob !== 'undefined' && value instanceof Blob) {
|
|
11021
|
+
return true;
|
|
11022
|
+
}
|
|
11023
|
+
const obj = value;
|
|
11024
|
+
const hasRequiredProps = typeof obj.size === 'number' && typeof obj.type === 'string' && typeof obj.slice === 'function';
|
|
11025
|
+
if (!hasRequiredProps) {
|
|
11026
|
+
return false;
|
|
11027
|
+
}
|
|
11028
|
+
const hasBlobMethod = typeof obj.stream === 'function' || typeof obj.text === 'function' || typeof obj.arrayBuffer === 'function';
|
|
11029
|
+
if (hasBlobMethod) {
|
|
11030
|
+
return true;
|
|
11031
|
+
}
|
|
11032
|
+
const constructorName = (_a = obj.constructor) === null || _a === void 0 ? void 0 : _a.name;
|
|
11033
|
+
return constructorName === 'Blob' || constructorName === 'File';
|
|
11034
|
+
}
|
|
10745
11035
|
function truncateData(data, depth = 0) {
|
|
10746
11036
|
const maxArrayItems = 500;
|
|
10747
11037
|
const maxObjectKeys = 500;
|
|
@@ -10765,6 +11055,9 @@ function truncateData(data, depth = 0) {
|
|
|
10765
11055
|
else if (Buffer.isBuffer(data)) {
|
|
10766
11056
|
return data.toString('utf-8').slice(0, maxStringLength);
|
|
10767
11057
|
}
|
|
11058
|
+
else if (isBlob(data)) {
|
|
11059
|
+
return `<Blob: size=${data.size}, type=${data.type}>`;
|
|
11060
|
+
}
|
|
10768
11061
|
else if (typeof data === 'object') {
|
|
10769
11062
|
const keys = Object.keys(data);
|
|
10770
11063
|
const result = {};
|
|
@@ -10998,6 +11291,7 @@ var UsageType;
|
|
|
10998
11291
|
UsageType["EXTERNAL_EVENTS_PULL_DURATION"] = "external-events-pull-duration";
|
|
10999
11292
|
UsageType["EXTERNAL_EVENT_PULL_NUMBER"] = "external-event-pull-number";
|
|
11000
11293
|
UsageType["EXTERNAL_EVENT_PULL_LOG_SIZE"] = "external-event-pull-log-size";
|
|
11294
|
+
UsageType["EXTERNAL_EVENT_WEBHOOK_REFRESH_DURATION"] = "external-event-webhook-refresh-duration";
|
|
11001
11295
|
UsageType["APP_EVENTS_NUMBER"] = "app-events-number";
|
|
11002
11296
|
UsageType["APP_EVENTS_SIZE"] = "app-events-size";
|
|
11003
11297
|
UsageType["FILES_UPLOAD_NUMBER"] = "files-upload-number";
|
|
@@ -11112,6 +11406,144 @@ function getFlowRunVariableSchema() {
|
|
|
11112
11406
|
};
|
|
11113
11407
|
}
|
|
11114
11408
|
|
|
11409
|
+
var AlertStatus;
|
|
11410
|
+
(function (AlertStatus) {
|
|
11411
|
+
AlertStatus["ONGOING"] = "ongoing";
|
|
11412
|
+
AlertStatus["RESOLVED"] = "resolved";
|
|
11413
|
+
})(AlertStatus || (AlertStatus = {}));
|
|
11414
|
+
var AlertSeverity;
|
|
11415
|
+
(function (AlertSeverity) {
|
|
11416
|
+
AlertSeverity["CRITICAL"] = "critical";
|
|
11417
|
+
AlertSeverity["WARNING"] = "warning";
|
|
11418
|
+
})(AlertSeverity || (AlertSeverity = {}));
|
|
11419
|
+
var AlertType;
|
|
11420
|
+
(function (AlertType) {
|
|
11421
|
+
AlertType["fileUploadsMbPerHour"] = "fileUploadsMbPerHour";
|
|
11422
|
+
AlertType["apiRequestsPerSecond"] = "apiRequestsPerSecond";
|
|
11423
|
+
AlertType["apiRequestsPerHour"] = "apiRequestsPerHour";
|
|
11424
|
+
AlertType["webhookRequestsPerSecond"] = "webhookRequestsPerSecond";
|
|
11425
|
+
AlertType["webhookRequestsPerHour"] = "webhookRequestsPerHour";
|
|
11426
|
+
AlertType["workspaceElementCreationsPerSecond"] = "workspaceElementCreationsPerSecond";
|
|
11427
|
+
AlertType["workspaceElementCreationsPerHour"] = "workspaceElementCreationsPerHour";
|
|
11428
|
+
AlertType["externalEventsPerCustomerPerDay"] = "externalEventsPerCustomerPerDay";
|
|
11429
|
+
AlertType["totalUsagePerDay"] = "totalUsagePerDay";
|
|
11430
|
+
AlertType["totalUsagePer30Days"] = "totalUsagePer30Days";
|
|
11431
|
+
AlertType["testAlert"] = "testAlert";
|
|
11432
|
+
})(AlertType || (AlertType = {}));
|
|
11433
|
+
var AlertCategory;
|
|
11434
|
+
(function (AlertCategory) {
|
|
11435
|
+
AlertCategory["RATE_LIMIT"] = "rateLimit";
|
|
11436
|
+
AlertCategory["USAGE"] = "usage";
|
|
11437
|
+
AlertCategory["TEST"] = "test";
|
|
11438
|
+
})(AlertCategory || (AlertCategory = {}));
|
|
11439
|
+
const ALERT_TYPE_CATEGORIES = {
|
|
11440
|
+
[AlertType.fileUploadsMbPerHour]: AlertCategory.RATE_LIMIT,
|
|
11441
|
+
[AlertType.apiRequestsPerSecond]: AlertCategory.RATE_LIMIT,
|
|
11442
|
+
[AlertType.apiRequestsPerHour]: AlertCategory.RATE_LIMIT,
|
|
11443
|
+
[AlertType.webhookRequestsPerSecond]: AlertCategory.RATE_LIMIT,
|
|
11444
|
+
[AlertType.webhookRequestsPerHour]: AlertCategory.RATE_LIMIT,
|
|
11445
|
+
[AlertType.workspaceElementCreationsPerSecond]: AlertCategory.RATE_LIMIT,
|
|
11446
|
+
[AlertType.workspaceElementCreationsPerHour]: AlertCategory.RATE_LIMIT,
|
|
11447
|
+
[AlertType.externalEventsPerCustomerPerDay]: AlertCategory.RATE_LIMIT,
|
|
11448
|
+
[AlertType.totalUsagePerDay]: AlertCategory.USAGE,
|
|
11449
|
+
[AlertType.totalUsagePer30Days]: AlertCategory.USAGE,
|
|
11450
|
+
[AlertType.testAlert]: AlertCategory.TEST,
|
|
11451
|
+
};
|
|
11452
|
+
const AlertSchema = z.object({
|
|
11453
|
+
id: z.string(),
|
|
11454
|
+
description: z.string(),
|
|
11455
|
+
status: z.enum(Object.values(AlertStatus)),
|
|
11456
|
+
type: z.enum(Object.values(AlertType)),
|
|
11457
|
+
workspaceId: z.string(),
|
|
11458
|
+
createdAt: z.date(),
|
|
11459
|
+
updatedAt: z.date(),
|
|
11460
|
+
lastSeenAt: z.date(),
|
|
11461
|
+
resolvedAt: z.date().optional(),
|
|
11462
|
+
customerId: z.string().optional(),
|
|
11463
|
+
severity: z.enum(Object.values(AlertSeverity)),
|
|
11464
|
+
});
|
|
11465
|
+
const ALERT_DELIVERY_METHODS = ['internal', 'webhook', 'email'];
|
|
11466
|
+
const AlertTypeDeliverySettingsSchema = z.object({
|
|
11467
|
+
internal: z.literal(true),
|
|
11468
|
+
webhook: z
|
|
11469
|
+
.object({
|
|
11470
|
+
enabled: z.boolean(),
|
|
11471
|
+
})
|
|
11472
|
+
.optional(),
|
|
11473
|
+
email: z
|
|
11474
|
+
.object({
|
|
11475
|
+
enabled: z.boolean(),
|
|
11476
|
+
})
|
|
11477
|
+
.optional(),
|
|
11478
|
+
});
|
|
11479
|
+
const DEFAULT_ALERT_TYPE_DELIVERY_SETTINGS = {
|
|
11480
|
+
internal: true,
|
|
11481
|
+
webhook: {
|
|
11482
|
+
enabled: false,
|
|
11483
|
+
},
|
|
11484
|
+
email: {
|
|
11485
|
+
enabled: false,
|
|
11486
|
+
},
|
|
11487
|
+
};
|
|
11488
|
+
const AlertDeliverySettingsSchema = z.object({
|
|
11489
|
+
alertTypes: z.record(z.enum(Object.values(AlertType)), AlertTypeDeliverySettingsSchema.optional()).optional(),
|
|
11490
|
+
});
|
|
11491
|
+
const DEFAULT_ALERT_DELIVERY_SETTINGS = {
|
|
11492
|
+
alertTypes: undefined,
|
|
11493
|
+
};
|
|
11494
|
+
|
|
11495
|
+
function isValidAlertType(value) {
|
|
11496
|
+
return Object.values(AlertType).includes(value);
|
|
11497
|
+
}
|
|
11498
|
+
function getAlertTypeDisplayName(alertType) {
|
|
11499
|
+
const names = {
|
|
11500
|
+
[AlertType.fileUploadsMbPerHour]: 'File Uploads MB Per Hour',
|
|
11501
|
+
[AlertType.apiRequestsPerSecond]: 'API Requests Per Second',
|
|
11502
|
+
[AlertType.apiRequestsPerHour]: 'API Requests Per Hour',
|
|
11503
|
+
[AlertType.webhookRequestsPerSecond]: 'Webhook Requests Per Second',
|
|
11504
|
+
[AlertType.webhookRequestsPerHour]: 'Webhook Requests Per Hour',
|
|
11505
|
+
[AlertType.workspaceElementCreationsPerSecond]: 'Workspace Element Creations Per Second',
|
|
11506
|
+
[AlertType.workspaceElementCreationsPerHour]: 'Workspace Element Creations Per Hour',
|
|
11507
|
+
[AlertType.externalEventsPerCustomerPerDay]: 'External Events Per Customer Per Day',
|
|
11508
|
+
[AlertType.totalUsagePerDay]: 'Total Usage Per Day',
|
|
11509
|
+
[AlertType.totalUsagePer30Days]: 'Total Usage Per 30 Days',
|
|
11510
|
+
[AlertType.testAlert]: 'Test Alert',
|
|
11511
|
+
};
|
|
11512
|
+
return names[alertType] || alertType;
|
|
11513
|
+
}
|
|
11514
|
+
function getAlertDeliveryMethodLabel(method) {
|
|
11515
|
+
const labels = {
|
|
11516
|
+
internal: 'Internal Delivery',
|
|
11517
|
+
webhook: 'Webhook Delivery',
|
|
11518
|
+
email: 'Email Delivery',
|
|
11519
|
+
};
|
|
11520
|
+
return labels[method] || method;
|
|
11521
|
+
}
|
|
11522
|
+
function isDeliveryMethodEnabled(settings, method) {
|
|
11523
|
+
var _a;
|
|
11524
|
+
if (method === 'internal') {
|
|
11525
|
+
return true;
|
|
11526
|
+
}
|
|
11527
|
+
if (((_a = settings[method]) !== null && _a !== void 0 ? _a : DEFAULT_ALERT_TYPE_DELIVERY_SETTINGS[method]).enabled) {
|
|
11528
|
+
return true;
|
|
11529
|
+
}
|
|
11530
|
+
return false;
|
|
11531
|
+
}
|
|
11532
|
+
function getAlertCategoryDisplayName(category) {
|
|
11533
|
+
const names = {
|
|
11534
|
+
[AlertCategory.RATE_LIMIT]: 'Rate Limit Alerts',
|
|
11535
|
+
[AlertCategory.USAGE]: 'Usage Alerts',
|
|
11536
|
+
[AlertCategory.TEST]: 'Test',
|
|
11537
|
+
};
|
|
11538
|
+
return names[category] || category;
|
|
11539
|
+
}
|
|
11540
|
+
function getAlertTypesByCategory(category) {
|
|
11541
|
+
return Object.entries(ALERT_TYPE_CATEGORIES)
|
|
11542
|
+
.filter(([, alertCategory]) => alertCategory === category)
|
|
11543
|
+
.map(([alertType]) => alertType)
|
|
11544
|
+
.filter(isValidAlertType);
|
|
11545
|
+
}
|
|
11546
|
+
|
|
11115
11547
|
var WorkspaceType;
|
|
11116
11548
|
(function (WorkspaceType) {
|
|
11117
11549
|
WorkspaceType["PRODUCTION"] = "production";
|
|
@@ -11166,6 +11598,7 @@ const WorkspaceLimitsSchema = z$1.object({
|
|
|
11166
11598
|
totalNumberOfConnections: WorkspaceLimit.optional(),
|
|
11167
11599
|
totalNumberOfWorkspaceElements: WorkspaceLimit.optional(),
|
|
11168
11600
|
instantTasksQueueSize: WorkspaceLimit.optional(),
|
|
11601
|
+
QueuedTasksQueueSize: WorkspaceLimit.optional(),
|
|
11169
11602
|
parallelApiRequestsPerCustomer: WorkspaceLimit.optional(),
|
|
11170
11603
|
parallelBackgroundJobsPerCustomer: WorkspaceLimit.optional(),
|
|
11171
11604
|
apiRequestsPerCustomerPerSecond: WorkspaceLimit.optional(),
|
|
@@ -11182,6 +11615,7 @@ const EngineWorkspaceSettingsSchema = z$1.object({
|
|
|
11182
11615
|
enableWebhookLogs: z$1.boolean().optional(),
|
|
11183
11616
|
enableActionRunLogs: z$1.boolean().optional(),
|
|
11184
11617
|
disableSecretKeyAuth: z$1.boolean().optional(),
|
|
11618
|
+
useMembraneUniverse: z$1.boolean().optional(),
|
|
11185
11619
|
});
|
|
11186
11620
|
const WorkspacePublicKey = z$1.object({
|
|
11187
11621
|
name: z$1.string(),
|
|
@@ -11208,6 +11642,7 @@ const AppSchema = z$1.object({
|
|
|
11208
11642
|
featureFlags: z$1.array(z$1.string()).optional(),
|
|
11209
11643
|
limits: WorkspaceLimitsSchema.optional(),
|
|
11210
11644
|
settings: EngineWorkspaceSettingsSchema.optional(),
|
|
11645
|
+
alertDeliverySettings: AlertDeliverySettingsSchema.optional(),
|
|
11211
11646
|
type: z$1.nativeEnum(WorkspaceType).optional(),
|
|
11212
11647
|
jwksUri: z$1.string().nullable().optional(),
|
|
11213
11648
|
isTrial: z$1.boolean().optional(),
|
|
@@ -11385,13 +11820,14 @@ function buildIntegrationsMap(integrations) {
|
|
|
11385
11820
|
return map;
|
|
11386
11821
|
}
|
|
11387
11822
|
|
|
11823
|
+
const IneligibilityReasonSchema = z.enum(['disposable', 'blockedDomain', 'notCompanyEmail']);
|
|
11388
11824
|
const PlatformUserSchema = z.object({
|
|
11389
11825
|
id: z.string(),
|
|
11390
11826
|
email: z.string(),
|
|
11391
11827
|
name: z.string(),
|
|
11392
11828
|
trialRequested: z.boolean(),
|
|
11393
|
-
introVideoStatus: z.string().optional(),
|
|
11394
11829
|
isEligible: z.boolean().optional(),
|
|
11830
|
+
ineligibilityReason: IneligibilityReasonSchema.optional(),
|
|
11395
11831
|
emailVerified: z.boolean().optional(),
|
|
11396
11832
|
});
|
|
11397
11833
|
const FullPlatformUser = z.object({
|
|
@@ -11404,8 +11840,8 @@ const FullPlatformUser = z.object({
|
|
|
11404
11840
|
isAdmin: z.boolean().optional(),
|
|
11405
11841
|
trialRequested: z.boolean(),
|
|
11406
11842
|
pat: z.string().optional(),
|
|
11407
|
-
introVideoStatus: z.string().optional(),
|
|
11408
11843
|
isEligible: z.boolean().optional(),
|
|
11844
|
+
ineligibilityReason: IneligibilityReasonSchema.optional(),
|
|
11409
11845
|
emailVerified: z.boolean().optional(),
|
|
11410
11846
|
});
|
|
11411
11847
|
|
|
@@ -11416,6 +11852,12 @@ var OrgLimitsType;
|
|
|
11416
11852
|
OrgLimitsType["LAST_THIRTY_DAY_USAGE"] = "lastThirtyDayUsage";
|
|
11417
11853
|
OrgLimitsType["MEMBRANE_EXPERT_CREDITS_CAP"] = "membraneExpertCreditsCapPerMonth";
|
|
11418
11854
|
})(OrgLimitsType || (OrgLimitsType = {}));
|
|
11855
|
+
var OrgPlan;
|
|
11856
|
+
(function (OrgPlan) {
|
|
11857
|
+
OrgPlan["Core"] = "core";
|
|
11858
|
+
OrgPlan["Pro"] = "pro";
|
|
11859
|
+
OrgPlan["Ultimate"] = "ultimate";
|
|
11860
|
+
})(OrgPlan || (OrgPlan = {}));
|
|
11419
11861
|
var OrgUserRole;
|
|
11420
11862
|
(function (OrgUserRole) {
|
|
11421
11863
|
OrgUserRole["Admin"] = "admin";
|
|
@@ -11445,6 +11887,7 @@ const OrgSchema = z.object({
|
|
|
11445
11887
|
id: z.string(),
|
|
11446
11888
|
key: z.string(),
|
|
11447
11889
|
name: z.string(),
|
|
11890
|
+
plan: z.enum(OrgPlan).optional(),
|
|
11448
11891
|
createdAt: z.coerce.date(),
|
|
11449
11892
|
updatedAt: z.coerce.date(),
|
|
11450
11893
|
trialEndDate: z.string().optional(),
|
|
@@ -11457,11 +11900,19 @@ const OrgSchema = z.object({
|
|
|
11457
11900
|
featureFlags: z.array(z.string()).optional(),
|
|
11458
11901
|
freeAiCredits: z.number().optional(),
|
|
11459
11902
|
paidAiCredits: z.number().optional(),
|
|
11903
|
+
freeAiMonthlyCredits: z.number().nullable().optional(),
|
|
11460
11904
|
stripeCustomerId: z.string().optional(),
|
|
11461
11905
|
autoChargeEnabled: z.boolean().optional(),
|
|
11462
11906
|
autoChargeThreshold: z.number().optional(),
|
|
11463
11907
|
autoChargePurchaseAmount: z.number().optional(),
|
|
11464
11908
|
autoChargeMonthlyLimit: z.number().optional(),
|
|
11909
|
+
freeInfraCredits: z.number().optional(),
|
|
11910
|
+
paidInfraCredits: z.number().optional(),
|
|
11911
|
+
freeInfraMonthlyCredits: z.number().nullable().optional(),
|
|
11912
|
+
infraAutoChargeEnabled: z.boolean().optional(),
|
|
11913
|
+
infraAutoChargeThreshold: z.number().optional(),
|
|
11914
|
+
infraAutoChargePurchaseAmount: z.number().optional(),
|
|
11915
|
+
infraAutoChargeMonthlyLimit: z.number().optional(),
|
|
11465
11916
|
});
|
|
11466
11917
|
const AccountResponse = z.object({
|
|
11467
11918
|
user: FullPlatformUser.optional(),
|
|
@@ -11489,26 +11940,10 @@ var WebhookTypeEnum;
|
|
|
11489
11940
|
WebhookTypeEnum["TASK_UPDATED"] = "task-updated";
|
|
11490
11941
|
WebhookTypeEnum["TASK_ACTIVITY_CREATED"] = "task-activity-created";
|
|
11491
11942
|
WebhookTypeEnum["CONNECTOR_VERSION_PUBLISHED"] = "connector-version-published";
|
|
11943
|
+
WebhookTypeEnum["AGENT_SESSION_FINISHED"] = "agent-session-finished";
|
|
11944
|
+
WebhookTypeEnum["SEND_ALERT_EMAIL"] = "send-alert-email";
|
|
11492
11945
|
})(WebhookTypeEnum || (WebhookTypeEnum = {}));
|
|
11493
11946
|
|
|
11494
|
-
var AlertStatus;
|
|
11495
|
-
(function (AlertStatus) {
|
|
11496
|
-
AlertStatus["ONGOING"] = "ongoing";
|
|
11497
|
-
AlertStatus["RESOLVED"] = "resolved";
|
|
11498
|
-
})(AlertStatus || (AlertStatus = {}));
|
|
11499
|
-
var AlertSeverity;
|
|
11500
|
-
(function (AlertSeverity) {
|
|
11501
|
-
AlertSeverity["CRITICAL"] = "critical";
|
|
11502
|
-
AlertSeverity["WARNING"] = "warning";
|
|
11503
|
-
})(AlertSeverity || (AlertSeverity = {}));
|
|
11504
|
-
var AlertType;
|
|
11505
|
-
(function (AlertType) {
|
|
11506
|
-
AlertType["externalEventsPerCustomerPerDay"] = "externalEventsPerCustomerPerDay";
|
|
11507
|
-
AlertType["totalUsagePerDay"] = "totalUsagePerDay";
|
|
11508
|
-
AlertType["totalUsagePer30Days"] = "totalUsagePer30Days";
|
|
11509
|
-
AlertType["membraneAgentUsagePer30Days"] = "membraneAgentUsagePer30Days";
|
|
11510
|
-
})(AlertType || (AlertType = {}));
|
|
11511
|
-
|
|
11512
11947
|
const IntegrationSpecificElementSelector = z$1.object({
|
|
11513
11948
|
id: z$1.string().optional(),
|
|
11514
11949
|
key: z$1.string().optional(),
|
|
@@ -12495,7 +12930,7 @@ class ConnectionAccessor {
|
|
|
12495
12930
|
dataCollection(key, parameters) {
|
|
12496
12931
|
return new ConnectionDataCollectionAccessor(this.client, this, key, parameters);
|
|
12497
12932
|
}
|
|
12498
|
-
async reconnect({ parameters, authOptionKey, connectorParameters, } = {}) {
|
|
12933
|
+
async reconnect({ parameters, authOptionKey, connectorParameters, onPopupClosed, } = {}) {
|
|
12499
12934
|
const connection = await this.get();
|
|
12500
12935
|
const connectorSpec = await this.client.get(`/integrations/${connection.integrationId}/connector-spec`);
|
|
12501
12936
|
return createOrUpdateConnection({
|
|
@@ -12506,6 +12941,7 @@ class ConnectionAccessor {
|
|
|
12506
12941
|
connectorParameters,
|
|
12507
12942
|
apiUri: this.client.apiUri,
|
|
12508
12943
|
token: await this.client.getToken(),
|
|
12944
|
+
onPopupClosed,
|
|
12509
12945
|
});
|
|
12510
12946
|
}
|
|
12511
12947
|
async openReconnectUI({} = {}) {
|
|
@@ -12594,21 +13030,31 @@ class ConnectionProxy {
|
|
|
12594
13030
|
}
|
|
12595
13031
|
}
|
|
12596
13032
|
async function createOrUpdateConnection(options) {
|
|
12597
|
-
const { connectionId, integrationId, name, parameters, connectorParameters, allowMultipleConnections, authOptionKey, connectorSpec, apiUri, token, redirectUri, } = options !== null && options !== void 0 ? options : {};
|
|
13033
|
+
const { connectionId, integrationId, connectorId, connectorVersion, name, parameters, connectorParameters, allowMultipleConnections, authOptionKey, connectorSpec, apiUri, token, redirectUri, onPopupClosed, } = options !== null && options !== void 0 ? options : {};
|
|
12598
13034
|
const connectionType = getConnectionType({
|
|
12599
13035
|
connectorSpec,
|
|
12600
13036
|
authOptionKey,
|
|
12601
13037
|
redirectUri,
|
|
12602
13038
|
});
|
|
12603
|
-
|
|
12604
|
-
|
|
12605
|
-
|
|
13039
|
+
let popupPath;
|
|
13040
|
+
if (connectionId) {
|
|
13041
|
+
popupPath = `connection-popup?connectionId=${connectionId}`;
|
|
13042
|
+
}
|
|
13043
|
+
else if (connectorId) {
|
|
13044
|
+
const versionParam = connectorVersion ? `&connectorVersion=${connectorVersion}` : '';
|
|
13045
|
+
popupPath = `connection-popup?connectorId=${connectorId}${versionParam}`;
|
|
13046
|
+
}
|
|
13047
|
+
else {
|
|
13048
|
+
popupPath = `connection-popup?integrationId=${integrationId}`;
|
|
13049
|
+
}
|
|
12606
13050
|
return new Promise((resolve, reject) => {
|
|
12607
13051
|
const requestId = simpleUniqueId() + simpleUniqueId();
|
|
12608
13052
|
const payload = {
|
|
12609
13053
|
token,
|
|
12610
13054
|
connectionParameters: parameters,
|
|
12611
13055
|
connectorParameters,
|
|
13056
|
+
connectorId,
|
|
13057
|
+
connectorVersion,
|
|
12612
13058
|
name,
|
|
12613
13059
|
authOptionKey,
|
|
12614
13060
|
allowMultipleConnections,
|
|
@@ -12654,10 +13100,10 @@ async function createOrUpdateConnection(options) {
|
|
|
12654
13100
|
iframeElement.id = targetElementId;
|
|
12655
13101
|
iframeElement.name = targetElementId;
|
|
12656
13102
|
iframeElement.style.position = 'absolute';
|
|
12657
|
-
iframeElement.style.top = '-
|
|
12658
|
-
iframeElement.style.left = '-
|
|
12659
|
-
iframeElement.style.width = '
|
|
12660
|
-
iframeElement.style.height = '
|
|
13103
|
+
iframeElement.style.top = '-100px';
|
|
13104
|
+
iframeElement.style.left = '-100px';
|
|
13105
|
+
iframeElement.style.width = '1px';
|
|
13106
|
+
iframeElement.style.height = '1px';
|
|
12661
13107
|
iframeElement.style.border = 'none';
|
|
12662
13108
|
iframeElement.style.backgroundColor = 'transparent';
|
|
12663
13109
|
document.body.appendChild(iframeElement);
|
|
@@ -12691,6 +13137,7 @@ async function createOrUpdateConnection(options) {
|
|
|
12691
13137
|
cancelCheckInterval = setInterval(() => {
|
|
12692
13138
|
if (popup === null || popup === void 0 ? void 0 : popup.closed) {
|
|
12693
13139
|
cleanup();
|
|
13140
|
+
onPopupClosed === null || onPopupClosed === void 0 ? void 0 : onPopupClosed();
|
|
12694
13141
|
resolve(null);
|
|
12695
13142
|
}
|
|
12696
13143
|
}, 1000);
|
|
@@ -12722,6 +13169,9 @@ const createConnectionEventHandler = (requestId, onResolve, onReject, onFinally)
|
|
|
12722
13169
|
}
|
|
12723
13170
|
if (message.type == 'newConnectionFailure') {
|
|
12724
13171
|
const error = new MembraneError((_a = message.errorData) !== null && _a !== void 0 ? _a : message.error);
|
|
13172
|
+
if (message.connectionId) {
|
|
13173
|
+
error.data.data = { ...error.data.data, connectionId: message.connectionId };
|
|
13174
|
+
}
|
|
12725
13175
|
onReject(error);
|
|
12726
13176
|
}
|
|
12727
13177
|
onFinally();
|
|
@@ -12901,7 +13351,7 @@ class IntegrationAccessor extends ElementAccessor {
|
|
|
12901
13351
|
});
|
|
12902
13352
|
});
|
|
12903
13353
|
}
|
|
12904
|
-
async connect({ name, parameters, connectorParameters, authOptionKey, allowMultipleConnections, redirectUri, sameWindow, } = {}) {
|
|
13354
|
+
async connect({ name, parameters, connectorParameters, authOptionKey, allowMultipleConnections, redirectUri, sameWindow, onPopupClosed, } = {}) {
|
|
12905
13355
|
const integration = await this.get();
|
|
12906
13356
|
const connectorSpec = await this.getConnectorSpec();
|
|
12907
13357
|
return createOrUpdateConnection({
|
|
@@ -12915,9 +13365,10 @@ class IntegrationAccessor extends ElementAccessor {
|
|
|
12915
13365
|
apiUri: this.client.apiUri,
|
|
12916
13366
|
token: await this.client.getToken(),
|
|
12917
13367
|
redirectUri: sameWindow ? redirectUri : undefined,
|
|
13368
|
+
onPopupClosed,
|
|
12918
13369
|
});
|
|
12919
13370
|
}
|
|
12920
|
-
async createConnection({ parameters, name }) {
|
|
13371
|
+
async createConnection({ parameters, name, }) {
|
|
12921
13372
|
return this.connect({ parameters, name });
|
|
12922
13373
|
}
|
|
12923
13374
|
async getOperations() {
|
|
@@ -13239,6 +13690,7 @@ var AgentSessionState;
|
|
|
13239
13690
|
})(AgentSessionState || (AgentSessionState = {}));
|
|
13240
13691
|
const AgentSession = z.object({
|
|
13241
13692
|
id: z.string(),
|
|
13693
|
+
workspaceId: z.string(),
|
|
13242
13694
|
userId: z.string().optional(),
|
|
13243
13695
|
workspaceElementType: z.enum(WorkspaceElementType),
|
|
13244
13696
|
workspaceElementId: z.string(),
|
|
@@ -13253,6 +13705,7 @@ const AgentSession = z.object({
|
|
|
13253
13705
|
state: z.enum(AgentSessionState).default(AgentSessionState.BUSY),
|
|
13254
13706
|
usage: z.number().optional(),
|
|
13255
13707
|
hasWorker: z.boolean(),
|
|
13708
|
+
isExternal: z.boolean().optional(),
|
|
13256
13709
|
createdAt: z.iso.datetime(),
|
|
13257
13710
|
updatedAt: z.iso.datetime(),
|
|
13258
13711
|
});
|
|
@@ -13262,6 +13715,7 @@ const CreateAgentSession = z.object({
|
|
|
13262
13715
|
prompt: z.string().min(1),
|
|
13263
13716
|
testCustomerId: z.string().optional(),
|
|
13264
13717
|
isExternal: z.boolean().optional(),
|
|
13718
|
+
modelId: z.string().optional(),
|
|
13265
13719
|
});
|
|
13266
13720
|
const AgentSessionInputSchema = z.object({
|
|
13267
13721
|
input: z.string().min(1),
|
|
@@ -13273,6 +13727,8 @@ const PatchAgentSessionSchema = z.object({
|
|
|
13273
13727
|
title: z.string().optional(),
|
|
13274
13728
|
summary: z.string().optional(),
|
|
13275
13729
|
cost: z.number().optional(),
|
|
13730
|
+
error: ErrorDataSchema.optional(),
|
|
13731
|
+
opencodeSessionUuid: z.string().optional(),
|
|
13276
13732
|
status: z.enum(AgentSessionStatus).optional(),
|
|
13277
13733
|
});
|
|
13278
13734
|
|
|
@@ -13585,5 +14041,5 @@ class MembraneClient extends MembraneApiClient {
|
|
|
13585
14041
|
|
|
13586
14042
|
injectFormulaCatalog(getFormula, isFormula, hasFormulas);
|
|
13587
14043
|
|
|
13588
|
-
export { ACTIONS, AccessDeniedError, AccountResponse, ActionAccessor, ActionApiResponse, ActionDependency, ActionDependencyType, ActionEditableProperties, ActionExportProperties, ActionInstanceAccessor, ActionInstanceApiResponse, ActionInstanceSetupError, ActionInstancesAccessor, ActionRunError, ActionRunLogRecordApiResponse, ActionRunLogStatus, ActionRunResponse, ActionType, ActionsAccessor, AgentSession, AgentSessionInputSchema, AgentSessionState, AgentSessionStatus, AlertSeverity, AlertStatus, AlertType, ApiRequestSpec, AppDataSchemaAccessor, AppDataSchemaApiResponse, AppDataSchemaEditableProperties, AppDataSchemaExportProperties, AppDataSchemaInstanceAccessor, AppDataSchemaInstanceApiResponse, AppDataSchemaInstancesAccessor, AppDataSchemasAccessor, AppEventLogRecordApiResponse, AppEventSubscriptionAccessor, AppEventSubscriptionApiResponse, AppEventSubscriptionsAccessor, AppEventTypeAccessor, AppEventTypeApiResponse, AppEventTypeEditableProperties, AppEventTypeExportProperties, AppEventTypesAccessor, AppSchema, AppliedToIntegrations, BackwardCompatibleDataSourceEditableProperties, BadRequestError, BadRequestErrorKey, BaseAction, BaseActionInstance, BaseActionRunLogRecord, BaseAppDataSchema, BaseAppDataSchemaInstance, BaseAppEventSubscription, BaseAppEventType, BaseConnection, BaseConnector, BaseCustomer, BaseDataLinkTable, BaseDataLinkTableInstance, BaseDataSource, BaseDataSourceInstance, BaseExternalEvent, BaseExternalEventLogRecord, BaseExternalEventPull, BaseExternalEventSubscription, BaseFieldMapping, BaseFieldMappingInstance, BaseFlow, BaseFlowInstance, BaseFlowRun, BaseFunctionDefinition, BaseIntegration, BaseIntegrationLevelMembraneInterface, BaseIntegrationLevelMembraneInterfaceEditableProperties, BaseIntegrationLevelMembraneInterfaceExportProperties, BaseIntegrationLevelMembraneInterfaceReadOnlyProperties, BaseMembraneInterface, BaseMembraneInterfaceEditableProperties, BaseMembraneInterfaceReadOnlyProperties, BasePackage, BaseScreen, BaseWorkspaceElement, CONNECTOR_AUTH_TYPES, CONNECTOR_CATEGORIES, CONNECTOR_DATA_DIR, CONNECTOR_DOCS_DIR, CONNECTOR_EVENTS_DIR, CONNECTOR_GLOBAL_WEBHOOKS_DIR, CONNECTOR_METHOD_IMPLEMENTATION_SUFFIXES, CONNECTOR_OPERATIONS_DIR, CONNECTOR_VERSION_DEVELOPMENT, CONNECTOR_VERSION_LATEST, CommonFindElementsQuery, CommonFindInstancesQuery, CommonInstancesListQuery, CommonIntegrationOrConnectionQuery, CommonListElementsQuery, ConcurrencyError, ConcurrencyErrorKey, ConfigurationError, ConfigurationState, ConnectionAccessor, ConnectionApiResponse, ConnectionApiResponseWithSecrets, ConnectionDataCollectionAccessor, ConnectionError, ConnectionErrorKey, ConnectionLevelActionAccessor, ConnectionLevelActionsAccessor, ConnectionLevelDataSourceAccessor, ConnectionLevelDataSourcesAccessor, ConnectionLevelFieldMappingAccessor, ConnectionLevelFieldMappingsAccessor, ConnectionLevelFlowAccessor, ConnectionLevelFlowsAccessor, ConnectionMessagePayload, ConnectionOperationAccessor, ConnectionProxy, ConnectionRequest, ConnectionSelector, ConnectionSpec, ConnectionsAccessor, Connector, ConnectorAuth, ConnectorAuthClientCredentials, ConnectorAuthHandlerBase, ConnectorAuthIntegrationAppToken, ConnectorAuthMembraneToken, ConnectorAuthMethodTypes, ConnectorAuthOAuth1, ConnectorAuthOAuth2, ConnectorAuthProxy, ConnectorAuthSpec, ConnectorAuthWithFunctions, ConnectorDataCollectionEventImplementationType, ConnectorDataCollectionMethodKeys, ConnectorDataLocationTypes, ConnectorEventHandlerMethods, ConnectorEventImplementationType, ConnectorFileUpdateType, ConnectorMethodImplementation, ConnectorMethodImplementationBase, ConnectorMethodImplementationGraphqlApiMapping, ConnectorMethodImplementationJavascript, ConnectorMethodImplementationMapping, ConnectorMethodImplementationNotSupported, ConnectorMethodImplementationOperationMapping, ConnectorMethodImplementationRestApiMapping, ConnectorMethodImplementationType, ConnectorOperationMethodImplementationTypes, ConnectorOption, ConnectorOptions, ConnectorSpec, ConnectorStatus, ConnectorStatusValues, ConnectorUdmCollectionMapping, ConnectorUdmListItem, ConnectorUdmSpec, ConnectorUiSpec, ConnectorVersion, ConnectorVersionData, CreateActionInstanceRequest, CreateActionRequest, CreateAgentSession, CreateConnectionRequest, CreateConnectorRequest, CreateCustomerRequest, CreateDataLinkTableRequest, CreateDataSourceInstanceRequest, CreateDataSourceRequest, CreateFieldMappingRequest, CreateFlowNodeRequest, CreateFlowRequest, CreateFlowRunRequest, CreateIntegrationRequest, CreatePackageRequest, CustomCodeError, CustomerAccessor, CustomerApiResponse, CustomerSelector, CustomersAccessor, DATA_RECORD_SCHEMA, DEFAULT_FULL_SYNC_INTERVAL_SECONDS, DEFAULT_PULL_UPDATES_INTERVAL_SECONDS, DataBuilderFormulaType, DataCollectionCreateRequest, DataCollectionCreateResponse, DataCollectionCreateSpec, DataCollectionDeleteRequest, DataCollectionDeleteResponse, DataCollectionDeleteSpec, DataCollectionEventType, DataCollectionEventTypeSpec, DataCollectionEventsSpec, DataCollectionFindByIdRequest, DataCollectionFindByIdResponse, DataCollectionFindByIdSpec, DataCollectionFindRequest, DataCollectionFindResponse, DataCollectionFindSpec, DataCollectionListRequest, DataCollectionListResponse, DataCollectionListResponseDrilldown, DataCollectionListSpec, DataCollectionMatchRequest, DataCollectionMatchResponse, DataCollectionMatchSpec, DataCollectionMethodRequest, DataCollectionMethodSpec, DataCollectionSearchRequest, DataCollectionSearchResponse, DataCollectionSearchSpec, DataCollectionSpec, DataCollectionUdmSpec, DataCollectionUdmsSpec, DataCollectionUpdateRequest, DataCollectionUpdateResponse, DataCollectionUpdateSpec, DataFilterCondition, DataForm, DataLink, DataLinkDirection, DataLinkTableAccessor, DataLinkTableApiResponse, DataLinkTableConfig, DataLinkTableEditableProperties, DataLinkTableExportProperties, DataLinkTableInstanceAccessor, DataLinkTableInstanceApiResponse, DataLinkTableInstancesAccessor, DataLinkTablesAccessor, DataLocationMethodImplementationTypes, DataLocationPointer, DataLocationTypeCollection, DataLocatorStep, DataLocatorStepArrayItem, DataLocatorStepObjectProperty, DataLocatorStepType, DataRecordSchema, DataSchema, DataSourceAccessor, DataSourceApiResponse, DataSourceEditableProperties, DataSourceExportProperties, DataSourceInstanceAccessor, DataSourceInstanceApiResponse, DataSourceInstancesAccessor, DataSourceUnitConfig, DataSourcesAccessor, DependencyError, DownstreamFlowNodeRunSchema, EDITABLE_LIMITS, ElementAccessor, ElementInstanceAccessor, ElementInstanceListAccessor, ElementListAccessor, ElementsExportFields, EngineWorkspaceSettingsSchema, ErrorData, ErrorDataSchema, ErrorType, ExternalEvent, ExternalEventLogRecordApiResponse, ExternalEventLogStatus, ExternalEventPullApiResponse, ExternalEventPullStatus, ExternalEventSubscriptionAccessor, ExternalEventSubscriptionApiResponse, ExternalEventSubscriptionConfig, ExternalEventSubscriptionStatus, ExternalEventSubscriptionType, ExternalEventSubscriptionsAccessor, ExternalEventType, ExternalEventUnitConfig, FLOW_NODE_SPECS, FieldMappingAccessor, FieldMappingApiResponse, FieldMappingDirection, FieldMappingEditableProperties, FieldMappingExportProperties, FieldMappingInstanceAccessor, FieldMappingInstanceApiResponse, FieldMappingInstancesAccessor, FieldMappingUnitConfig, FieldMappingsAccessor, FindActionInstancesQuery, FindActionRunLogsQuery, FindActionRunLogsResponse, FindActionsQuery, FindAppEventSubscriptionsQuery, FindAppEventTypesQuery, FindAppEventsQuery, FindConnectionsQuery, FindConnectionsResponse, FindCustomersQuery, FindDataLinkTableInstanceLinksQuery, FindDataLinkTableInstancesQuery, FindDataLinkTablesQuery, FindDataLinksInTableQuery, FindDataLinksQuery, FindDataLinksResponse, FindDataSourceEventsQuery, FindDataSourceInstanceQuery, FindDataSourceInstanceSyncsQuery, FindDataSourceInstancesQuery, FindDataSourceSyncsQuery, FindDataSourcesQuery, FindExternalEventPullsQuery, FindFieldMappingsQuery, FindFlowInstancesQuery, FindFlowRunsQuery, FindFlowRunsResponse, FindFlowsQuery, FindIntegrationLevelMembraneInterfaceQuery, FindIntegrationsQuery, FindPackagesQuery, FindScreensQuery, FlowAccessor, FlowApiResponse, FlowEditableProperties, FlowExportProperties, FlowInstanceAccessor, FlowInstanceApiResponse, FlowInstanceNode, FlowInstanceNodeState, FlowInstanceSetupError, FlowInstancesAccessor, FlowNode, FlowNodeLink, FlowNodeRunOutputMetadataSchema, FlowNodeRunOutputSchema, FlowNodeRunOutputWithoutDownstreamRunsSchema, FlowNodeRunParametersSchema, FlowNodeRunRecordSchema, FlowNodeRunRecordWithoutOutputsDataSchema, FlowNodeRunResultSchema, FlowNodeRunStatus, FlowNodeSpec, FlowNodeType, FlowRunAccessor, FlowRunApiResponse, FlowRunError, FlowRunLaunchedBy, FlowRunLaunchedByApi, FlowRunLaunchedByTrigger, FlowRunNode, FlowRunNodeState, FlowRunState, FlowRunsAccessor, FlowsAccessor, Formula, FullPlatformUser, FunctionDefinition, FunctionType, GenericFunctionDefinition, GraphQLApiMappingSchema, GraphQLFieldMappingSchema, GraphqlApiMappingFunction, HTTP_REQUEST_SCHEMA, HandyScenarioTemplateElement, HttpRequestMethod, HttpRequestSpec, IncludeArchivedQuery, IncomingWebhooksState, InsufficientCreditsError, IntegrationAccessor, IntegrationApiResponse, MembraneClient as IntegrationAppClient, IntegrationAppError, IntegrationAuthOption, IntegrationAuthUi, IntegrationEditableProperties, IntegrationElementLevel, IntegrationElementType, IntegrationExportProperties, IntegrationLevelActionAccessor, IntegrationLevelActionsListAccessor, IntegrationLevelDataSourceAccessor, IntegrationLevelDataSourcesListAccessor, IntegrationLevelFieldMappingAccessor, IntegrationLevelFieldMappingsListAccessor, IntegrationLevelFlowAccessor, IntegrationLevelFlowsListAccessor, IntegrationLevelMembraneInterfaceSelectorQuery, IntegrationSpecificElementSelector, IntegrationsAccessor, InternalError, InvalidLocatorError, JavascriptFunction, LimitUnits, ListActionInstancesForConnectionQuery, ListDataSourceInstancesForConnectionQuery, ListExternalAppsQuery, ListExternalEventLogRecordsQuery, ListExternalEventPullsQuery, ListExternalEventSubscriptionsQuery, ListFlowInstancesForConnectionQuery, ListPublicConnectorsQuery, ListPublicPackagesQuery, LogRecordType, MEMBRANE_ELEMENT_CONFIG_FILE_NAME, MIN_FULL_SYNC_INTERVAL_SECONDS, MIN_PULL_UPDATES_INTERVAL_SECONDS, MappingFunction, MappingSchema, MembraneAgentKey, axios as MembraneAxiosInstance, MembraneClient, MembraneError, MinimalConnector, NotAuthenticatedError, NotFoundError, OAUTH1_CONFIG_SCHEMA, OAUTH_CONFIG_SCHEMA, OpenapiMappingSchema, OperationMappingFunction, OperationMappingSchema, OrgLimits, OrgLimitsType, OrgSchema, OrgUserRole, OrgUserStatus, OrgWorkspaceSchema, OrgWorkspaceUser, PACKAGE_VERSION_DEVELOPMENT, PACKAGE_VERSION_LATEST, PARALLEL_EXECUTION_LIMITS, PackageAccessor, PackageApiResponse, PackageCalculatedProperties, PackageEditableProperties, PackageElement, PackageElementApi, PackageElementExport, PackageExportProperties, PackageVersionData, PackageVersionListItem, PackagesAccessor, PaginationQuery, PaginationResponse, PatchAgentSessionSchema, PlatformUserSchema, RATE_LIMITS, RateLimitExceededError, RequestMappingSchema, ResetFlowInstanceOptions, RestApiMappingFunction, RestApiMappingSchema, RunActionRequest, RunFlowApiRequest, ScenarioAccessor, ScenarioTemplate, ScenarioTemplateCategory, ScenarioTemplateElements, ScenariosAccessor, ScreenAccessor, ScreenApiResponse, ScreenBlock, ScreenBlockType, ScreenType, ScreensAccessor, SearchQuery, SelfAccessor, UDM, UNIFIED_DATA_MODELS, UnitRunError, UpdateActionInstanceRequest, UpdateActionRequest, UpdateConnectionRequest, UpdateConnectorRequest, UpdateCustomerRequest, UpdateDataLinkTableRequest, UpdateDataSourceInstanceRequest, UpdateDataSourceRequest, UpdateFieldMappingRequest, UpdateFlowRequest, UpdateIntegrationRequest, UpdatePackageRequest, UpstreamFlowNodeRunSchema, UsageType, UserAccessor, UsersAccessor, WORKSPACE_SIZE_LIMITS, WebhookTypeEnum, WorkspaceElementChangeType, WorkspaceElementDependencyType, WorkspaceElementSearchQuery, WorkspaceElementSearchResult, WorkspaceElementSpecs, WorkspaceElementState, WorkspaceElementType, WorkspaceEventType, WorkspaceLimitsSchema, WorkspaceNotificationType, WorkspaceOnboardingStep, WorkspacePublicKey, WorkspaceSyncEventType, WorkspaceType, WritableConnectorVersionData, WritablePackageVersionData, WriteableConnectorFields, __resolveValue, addRequiredFieldsToSchema, addUdmFallbackFields, backwardCompatibleFilterMatch, buildData, buildDataSchema, buildValue, compareWorkspaceExports, compressDataSchema, createCompoundSchema, createFlowInstanceSchema, createObjectFromLocators, createOrUpdateConnection, createPaginationResponseSchema, createSchema, dataCollectionEventTypeToExternalEventType, dataLocationParametersMatch, doesMatchFilter, excludeFieldsFromSchema, excludeFieldsFromValue, excludeReadOnlyFieldsFromSchema, excludeWriteOnlyFieldsFromSchema, externalEventTypeToDataCollectionEventType, extractFieldLocator, extractMembraneErrorData, findUdmCollectionMapping, findUdmDefaultCollection, findUdmRootLocation, findValueLocators, generateExampleFromSchema, getActionInstanceVariableSchema, getActionRunTimeVariablesSchema, getAllEventMethodFilePaths, getBusinessDaysBetween, getChildNodeKeys, getDataCollectionCreateFields, getDataCollectionUpdateFields, getDataLocationMethodPath, getDownstreamNodeKeys, getElementSelector, getErrorFromData, getEventMethodFileKey, getFilterFieldValuesByLocator, getFlowInstanceNodeDependency, getFlowNode, getFlowNodeConfigTimeVariablesSchema, getFlowNodeDescription, getFlowNodeRunTimeVariablesSchema, getFlowNodeSpec, getFlowNodeTitle, getFormula$1 as getFormula, getFormulaLocators, getFormula as getFormula_internalDoNotUse, getFullNameForLocator, getFullTitleForLocator, getIconUriForLocator, getLocatorsFromData, getLocatorsFromSchema, getMembraneElementPath, getMissingRequiredFields, getNameComponentsForLocator, getNameForLocator, getNodeInputSchema, getOperatorsBySchema, getParentNodeKeys, getReferenceCollectionPathForSchema, getReferenceCollectionPointerForSchema, getRequiredFieldsFromSchema, getRootNodeKeys, getSchemaByLocator, getSchemaFromValue, getUpstreamNodeKeys, getValueAtLocator, getValueByLocator, getVariableLocators, getWritableFieldsSchema, hasCycles, hasFormulas$1 as hasFormulas, hasFormulas as hasFormulas_internalDoNotUse, injectFormulaCatalog, isBusinessDay, isDataActionType, isDataLocationMethodSupported, isFormula$1 as isFormula, isFormula as isFormula_internalDoNotUse, isMembraneError, isObject, isSameDataLocation, isSchemaEmpty, isStream, isValidLocator, locatorToField, locatorToSteps, locatorToString, makeDataLocationOperationPath, makeDataLocationPath, makeDataRecordSchema, makeObjectPropertyLocator, makeSchemaForLocator, mergeSchemas, mergeWithFormulas, nonEmptyObjectProperties, parseDataLocationPath, parseDate, parseMembraneElementPath, patchSchema, pickFieldsFromSchema, pickFieldsFromValue, populateSchemaTitles, processCopy, removeNonExistentVars, removeRequiredFieldsFromSchema, resolveFormulas, schemaAllowsCustomValue, schemaHasFixedValues, schemaHasProperties, schemaIsNumber, schemaIsScalar, schemaTypeFromValue, schemaWithTitle, setSchemaAtLocator, setValueAtLocator, stepsToLocator, streamToString, transformVariablesWith, transformVars, truncateData, unwrapSchema, unwrapSchemas, updateFlowInstanceSchema, updateImpliedSchema, valueToSchema, valueToString, walkSchema, wrapAnyOfSchema, zodBooleanCoercion };
|
|
14044
|
+
export { ACTIONS, ALERT_DELIVERY_METHODS, ALERT_TYPE_CATEGORIES, AccessDeniedError, AccountResponse, ActionAccessor, ActionApiResponse, ActionDependency, ActionDependencyType, ActionEditableProperties, ActionExportProperties, ActionInstanceAccessor, ActionInstanceApiResponse, ActionInstanceSetupError, ActionInstancesAccessor, ActionRunError, ActionRunLogRecordApiResponse, ActionRunLogStatus, ActionRunResponse, ActionType, ActionsAccessor, AgentSession, AgentSessionInputSchema, AgentSessionState, AgentSessionStatus, AlertCategory, AlertDeliverySettingsSchema, AlertSchema, AlertSeverity, AlertStatus, AlertType, AlertTypeDeliverySettingsSchema, ApiRequestSpec, AppDataSchemaAccessor, AppDataSchemaApiResponse, AppDataSchemaEditableProperties, AppDataSchemaExportProperties, AppDataSchemaInstanceAccessor, AppDataSchemaInstanceApiResponse, AppDataSchemaInstancesAccessor, AppDataSchemasAccessor, AppEventLogRecordApiResponse, AppEventSubscriptionAccessor, AppEventSubscriptionApiResponse, AppEventSubscriptionsAccessor, AppEventTypeAccessor, AppEventTypeApiResponse, AppEventTypeEditableProperties, AppEventTypeExportProperties, AppEventTypesAccessor, AppSchema, AppliedToIntegrations, BackwardCompatibleDataSourceEditableProperties, BadRequestError, BadRequestErrorKey, BaseAction, BaseActionInstance, BaseActionRunLogRecord, BaseAppDataSchema, BaseAppDataSchemaInstance, BaseAppEventSubscription, BaseAppEventType, BaseConnection, BaseConnector, BaseCustomer, BaseDataLinkTable, BaseDataLinkTableInstance, BaseDataSource, BaseDataSourceInstance, BaseExternalEvent, BaseExternalEventLogRecord, BaseExternalEventPull, BaseExternalEventSubscription, BaseFieldMapping, BaseFieldMappingInstance, BaseFlow, BaseFlowInstance, BaseFlowRun, BaseFunctionDefinition, BaseIntegration, BaseIntegrationLevelMembraneInterface, BaseIntegrationLevelMembraneInterfaceEditableProperties, BaseIntegrationLevelMembraneInterfaceExportProperties, BaseIntegrationLevelMembraneInterfaceReadOnlyProperties, BaseMembraneInterface, BaseMembraneInterfaceEditableProperties, BaseMembraneInterfaceReadOnlyProperties, BasePackage, BaseScreen, BaseWorkspaceElement, CONNECTOR_AUTH_TYPES, CONNECTOR_CATEGORIES, CONNECTOR_DATA_DIR, CONNECTOR_DOCS_DIR, CONNECTOR_EVENTS_DIR, CONNECTOR_GLOBAL_WEBHOOKS_DIR, CONNECTOR_METHOD_IMPLEMENTATION_SUFFIXES, CONNECTOR_OPERATIONS_DIR, CONNECTOR_VERSION_DEVELOPMENT, CONNECTOR_VERSION_LATEST, CommonFindElementsQuery, CommonFindInstancesQuery, CommonInstancesListQuery, CommonIntegrationOrConnectionQuery, CommonListElementsQuery, ConcurrencyError, ConcurrencyErrorKey, ConfigurationError, ConfigurationState, ConnectionAccessor, ConnectionApiResponse, ConnectionApiResponseWithSecrets, ConnectionDataCollectionAccessor, ConnectionError, ConnectionErrorKey, ConnectionLevelActionAccessor, ConnectionLevelActionsAccessor, ConnectionLevelDataSourceAccessor, ConnectionLevelDataSourcesAccessor, ConnectionLevelFieldMappingAccessor, ConnectionLevelFieldMappingsAccessor, ConnectionLevelFlowAccessor, ConnectionLevelFlowsAccessor, ConnectionMessagePayload, ConnectionOperationAccessor, ConnectionProxy, ConnectionRequest, ConnectionSelector, ConnectionSpec, ConnectionsAccessor, Connector, ConnectorAuth, ConnectorAuthClientCredentials, ConnectorAuthHandlerBase, ConnectorAuthIntegrationAppToken, ConnectorAuthMembraneToken, ConnectorAuthMethodTypes, ConnectorAuthOAuth1, ConnectorAuthOAuth2, ConnectorAuthProxy, ConnectorAuthSpec, ConnectorAuthWithFunctions, ConnectorDataCollectionEventImplementationType, ConnectorDataCollectionMethodKeys, ConnectorDataLocationTypes, ConnectorEventHandlerMethods, ConnectorEventImplementationType, ConnectorExportProperties, ConnectorFileUpdateType, ConnectorFunctionSpecs, ConnectorMethodImplementation, ConnectorMethodImplementationBase, ConnectorMethodImplementationGraphqlApiMapping, ConnectorMethodImplementationJavascript, ConnectorMethodImplementationMapping, ConnectorMethodImplementationNotSupported, ConnectorMethodImplementationOperationMapping, ConnectorMethodImplementationRestApiMapping, ConnectorMethodImplementationType, ConnectorOperationMethodImplementationTypes, ConnectorOption, ConnectorOptions, ConnectorSpec, ConnectorStatus, ConnectorStatusValues, ConnectorUdmCollectionMapping, ConnectorUdmListItem, ConnectorUdmSpec, ConnectorUiSpec, ConnectorVersion, ConnectorVersionData, CreateActionInstanceRequest, CreateActionRequest, CreateAgentSession, CreateConnectionRequest, CreateConnectorRequest, CreateCustomerRequest, CreateDataLinkTableRequest, CreateDataSourceInstanceRequest, CreateDataSourceRequest, CreateFieldMappingRequest, CreateFlowNodeRequest, CreateFlowRequest, CreateFlowRunRequest, CreateIntegrationRequest, CreatePackageRequest, CustomCodeError, CustomerAccessor, CustomerApiResponse, CustomerSelector, CustomersAccessor, DATA_RECORD_SCHEMA, DEFAULT_ALERT_DELIVERY_SETTINGS, DEFAULT_ALERT_TYPE_DELIVERY_SETTINGS, DEFAULT_FULL_SYNC_INTERVAL_SECONDS, DEFAULT_PULL_UPDATES_INTERVAL_SECONDS, DataBuilderFormulaType, DataCollectionCreateRequest, DataCollectionCreateResponse, DataCollectionCreateSpec, DataCollectionDeleteRequest, DataCollectionDeleteResponse, DataCollectionDeleteSpec, DataCollectionEventType, DataCollectionEventTypeSpec, DataCollectionEventsSpec, DataCollectionFindByIdRequest, DataCollectionFindByIdResponse, DataCollectionFindByIdSpec, DataCollectionFindRequest, DataCollectionFindResponse, DataCollectionFindSpec, DataCollectionListRequest, DataCollectionListResponse, DataCollectionListResponseDrilldown, DataCollectionListSpec, DataCollectionMatchRequest, DataCollectionMatchResponse, DataCollectionMatchSpec, DataCollectionMethodRequest, DataCollectionMethodSpec, DataCollectionSearchRequest, DataCollectionSearchResponse, DataCollectionSearchSpec, DataCollectionSpec, DataCollectionUdmSpec, DataCollectionUdmsSpec, DataCollectionUpdateRequest, DataCollectionUpdateResponse, DataCollectionUpdateSpec, DataFilterCondition, DataForm, DataLink, DataLinkDirection, DataLinkTableAccessor, DataLinkTableApiResponse, DataLinkTableConfig, DataLinkTableEditableProperties, DataLinkTableExportProperties, DataLinkTableInstanceAccessor, DataLinkTableInstanceApiResponse, DataLinkTableInstancesAccessor, DataLinkTablesAccessor, DataLocationMethodImplementationTypes, DataLocationPointer, DataLocationTypeCollection, DataLocatorStep, DataLocatorStepArrayItem, DataLocatorStepObjectProperty, DataLocatorStepType, DataRecordSchema, DataSchema, DataSourceAccessor, DataSourceApiResponse, DataSourceEditableProperties, DataSourceExportProperties, DataSourceInstanceAccessor, DataSourceInstanceApiResponse, DataSourceInstancesAccessor, DataSourceUnitConfig, DataSourcesAccessor, DependencyError, DownstreamFlowNodeRunSchema, EDITABLE_LIMITS, ElementAccessor, ElementInstanceAccessor, ElementInstanceListAccessor, ElementListAccessor, ElementsExportFields, EngineWorkspaceSettingsSchema, ErrorData, ErrorDataSchema, ErrorType, ExternalEvent, ExternalEventLogRecordApiResponse, ExternalEventLogStatus, ExternalEventPullApiResponse, ExternalEventPullStatus, ExternalEventSubscriptionAccessor, ExternalEventSubscriptionApiResponse, ExternalEventSubscriptionConfig, ExternalEventSubscriptionStatus, ExternalEventSubscriptionType, ExternalEventSubscriptionsAccessor, ExternalEventType, ExternalEventUnitConfig, FLOW_NODE_SPECS, FieldMappingAccessor, FieldMappingApiResponse, FieldMappingDirection, FieldMappingEditableProperties, FieldMappingExportProperties, FieldMappingInstanceAccessor, FieldMappingInstanceApiResponse, FieldMappingInstancesAccessor, FieldMappingUnitConfig, FieldMappingsAccessor, FindActionInstancesQuery, FindActionRunLogsQuery, FindActionRunLogsResponse, FindActionsQuery, FindAppEventSubscriptionsQuery, FindAppEventTypesQuery, FindAppEventsQuery, FindConnectionsQuery, FindConnectionsResponse, FindCustomersQuery, FindDataLinkTableInstanceLinksQuery, FindDataLinkTableInstancesQuery, FindDataLinkTablesQuery, FindDataLinksInTableQuery, FindDataLinksQuery, FindDataLinksResponse, FindDataSourceEventsQuery, FindDataSourceInstanceQuery, FindDataSourceInstanceSyncsQuery, FindDataSourceInstancesQuery, FindDataSourceSyncsQuery, FindDataSourcesQuery, FindExternalEventPullsQuery, FindFieldMappingsQuery, FindFlowInstancesQuery, FindFlowRunsQuery, FindFlowRunsResponse, FindFlowsQuery, FindIntegrationLevelMembraneInterfaceQuery, FindIntegrationsQuery, FindPackagesQuery, FindScreensQuery, FlowAccessor, FlowApiResponse, FlowEditableProperties, FlowExportProperties, FlowInstanceAccessor, FlowInstanceApiResponse, FlowInstanceNode, FlowInstanceNodeState, FlowInstanceSetupError, FlowInstancesAccessor, FlowNode, FlowNodeLink, FlowNodeRunOutputMetadataSchema, FlowNodeRunOutputSchema, FlowNodeRunOutputWithoutDownstreamRunsSchema, FlowNodeRunParametersSchema, FlowNodeRunRecordSchema, FlowNodeRunRecordWithoutOutputsDataSchema, FlowNodeRunResultSchema, FlowNodeRunStatus, FlowNodeSpec, FlowNodeType, FlowRunAccessor, FlowRunApiResponse, FlowRunError, FlowRunLaunchedBy, FlowRunLaunchedByApi, FlowRunLaunchedByTrigger, FlowRunNode, FlowRunNodeState, FlowRunState, FlowRunsAccessor, FlowsAccessor, Formula, FullPlatformUser, FunctionDefinition, FunctionType, GenerateOptionsRequest, GeneratedConnectorOption, GenericFunctionDefinition, GraphQLApiMappingSchema, GraphQLFieldMappingSchema, GraphqlApiMappingFunction, HTTP_REQUEST_SCHEMA, HandyScenarioTemplateElement, HttpRequestMethod, HttpRequestSpec, IncludeArchivedQuery, IncomingWebhooksState, InsufficientCreditsError, IntegrationAccessor, IntegrationApiResponse, MembraneClient as IntegrationAppClient, IntegrationAppError, IntegrationAuthOption, IntegrationAuthUi, IntegrationEditableProperties, IntegrationElementLevel, IntegrationElementType, IntegrationExportProperties, IntegrationLevelActionAccessor, IntegrationLevelActionsListAccessor, IntegrationLevelDataSourceAccessor, IntegrationLevelDataSourcesListAccessor, IntegrationLevelFieldMappingAccessor, IntegrationLevelFieldMappingsListAccessor, IntegrationLevelFlowAccessor, IntegrationLevelFlowsListAccessor, IntegrationLevelMembraneInterfaceSelectorQuery, IntegrationSpecificElementSelector, IntegrationsAccessor, InternalError, InvalidLocatorError, JavascriptFunction, LimitUnits, ListActionInstancesForConnectionQuery, ListDataSourceInstancesForConnectionQuery, ListExternalAppsQuery, ListExternalEventLogRecordsQuery, ListExternalEventPullsQuery, ListExternalEventSubscriptionsQuery, ListFlowInstancesForConnectionQuery, ListPublicConnectorsQuery, ListPublicPackagesQuery, LogRecordType, MEMBRANE_ELEMENT_CONFIG_FILE_NAME, MIN_FULL_SYNC_INTERVAL_SECONDS, MIN_PULL_UPDATES_INTERVAL_SECONDS, MappingFunction, MappingSchema, MembraneAgentKey, axios as MembraneAxiosInstance, MembraneClient, MembraneElementLayer, MembraneError, MinimalConnector, NotAuthenticatedError, NotFoundError, OAUTH1_CONFIG_SCHEMA, OAUTH_CONFIG_SCHEMA, OpenapiMappingSchema, OperationMappingFunction, OperationMappingSchema, OrgLimits, OrgLimitsType, OrgPlan, OrgSchema, OrgUserRole, OrgUserStatus, OrgWorkspaceSchema, OrgWorkspaceUser, PACKAGE_VERSION_DEVELOPMENT, PACKAGE_VERSION_LATEST, PARALLEL_EXECUTION_LIMITS, PackageAccessor, PackageApiResponse, PackageCalculatedProperties, PackageEditableProperties, PackageElement, PackageElementApi, PackageElementExport, PackageExportProperties, PackageVersionData, PackageVersionListItem, PackagesAccessor, PaginationQuery, PaginationResponse, PatchAgentSessionSchema, PlatformUserSchema, RATE_LIMITS, RateLimitExceededError, RequestMappingSchema, ResetFlowInstanceOptions, RestApiMappingFunction, RestApiMappingSchema, RunActionRequest, RunFlowApiRequest, ScenarioAccessor, ScenarioTemplate, ScenarioTemplateCategory, ScenarioTemplateElements, ScenariosAccessor, ScreenAccessor, ScreenApiResponse, ScreenBlock, ScreenBlockType, ScreenType, ScreensAccessor, SearchQuery, SelfAccessor, UDM, UNIFIED_DATA_MODELS, UnitRunError, UpdateActionInstanceRequest, UpdateActionRequest, UpdateConnectionRequest, UpdateConnectorRequest, UpdateCustomerRequest, UpdateDataLinkTableRequest, UpdateDataSourceInstanceRequest, UpdateDataSourceRequest, UpdateFieldMappingRequest, UpdateFlowRequest, UpdateIntegrationRequest, UpdatePackageRequest, UpstreamFlowNodeRunSchema, UsageType, UserAccessor, UsersAccessor, WORKSPACE_SIZE_LIMITS, WebhookTypeEnum, WorkspaceElementChangeType, WorkspaceElementDependencyType, WorkspaceElementSearchQuery, WorkspaceElementSearchResult, WorkspaceElementSpecs, WorkspaceElementState, WorkspaceElementType, WorkspaceEventType, WorkspaceLimitsSchema, WorkspaceNotificationType, WorkspaceOnboardingStep, WorkspacePublicKey, WorkspaceSyncEventType, WorkspaceType, WritableConnectorVersionData, WritablePackageVersionData, WriteableConnectorFields, WriteableConnectorOption, __resolveValue, addRequiredFieldsToSchema, addUdmFallbackFields, addUndefinedWriteableProperties, backwardCompatibleFilterMatch, buildData, buildDataSchema, buildValue, compareWorkspaceExports, compressDataSchema, createCompoundSchema, createFlowInstanceSchema, createObjectFromLocators, createOrUpdateConnection, createPaginationResponseSchema, createSchema, dataCollectionEventTypeToExternalEventType, dataLocationParametersMatch, doesMatchFilter, excludeFieldsFromSchema, excludeFieldsFromValue, excludeReadOnlyFieldsFromSchema, excludeWriteOnlyFieldsFromSchema, externalEventTypeToDataCollectionEventType, extractFieldLocator, extractMembraneErrorData, findUdmCollectionMapping, findUdmDefaultCollection, findUdmRootLocation, findValueLocators, generateExampleFromSchema, getActionInstanceVariableSchema, getActionRunTimeVariablesSchema, getAlertCategoryDisplayName, getAlertDeliveryMethodLabel, getAlertTypeDisplayName, getAlertTypesByCategory, getAllEventMethodFilePaths, getBusinessDaysBetween, getChildNodeKeys, getDataCollectionCreateFields, getDataCollectionUpdateFields, getDataLocationMethodPath, getDownstreamNodeKeys, getEffectiveConnectorOption, getElementSelector, getErrorFromData, getEventMethodFileKey, getFilterFieldValuesByLocator, getFlowInstanceNodeDependency, getFlowNode, getFlowNodeConfigTimeVariablesSchema, getFlowNodeDescription, getFlowNodeRunTimeVariablesSchema, getFlowNodeSpec, getFlowNodeTitle, getFormula$1 as getFormula, getFormulaLocators, getFormula as getFormula_internalDoNotUse, getFullNameForLocator, getFullTitleForLocator, getIconUriForLocator, getLocatorsFromData, getLocatorsFromSchema, getMembraneElementPath, getMissingRequiredFields, getNameComponentsForLocator, getNameForLocator, getNodeInputSchema, getOperatorsBySchema, getParentNodeKeys, getReferenceCollectionPathForSchema, getReferenceCollectionPointerForSchema, getRequiredFieldsFromSchema, getRootNodeKeys, getSchemaByLocator, getSchemaFromValue, getUpstreamNodeKeys, getValueAtLocator, getValueByLocator, getVariableLocators, getWritableFieldsSchema, hasCycles, hasFormulas$1 as hasFormulas, hasFormulas as hasFormulas_internalDoNotUse, injectFormulaCatalog, isBlob, isBusinessDay, isDataActionType, isDataLocationMethodSupported, isDeliveryMethodEnabled, isFormula$1 as isFormula, isFormula as isFormula_internalDoNotUse, isMembraneError, isObject, isSameDataLocation, isSchemaEmpty, isStream, isValidAlertType, isValidLocator, lenientParseWithSchema, locatorToField, locatorToSteps, locatorToString, makeDataLocationOperationPath, makeDataLocationPath, makeDataRecordSchema, makeObjectPropertyLocator, makeSchemaForLocator, mergeSchemas, mergeWithFormulas, nonEmptyObjectProperties, parseDataLocationPath, parseDate, parseMembraneElementPath, patchSchema, pickFieldsFromSchema, pickFieldsFromValue, populateSchemaTitles, processCopy, removeNonExistentVars, removeRequiredFieldsFromSchema, resolveFormulas, schemaAllowsCustomValue, schemaHasFixedValues, schemaHasProperties, schemaIsNumber, schemaIsScalar, schemaTypeFromValue, schemaWithTitle, setEditablePropertiesForWorkspaceElement, setSchemaAtLocator, setValueAtLocator, stepsToLocator, streamToString, transformVariablesWith, transformVars, truncateData, unwrapSchema, unwrapSchemas, updateFlowInstanceSchema, updateImpliedSchema, valueToSchema, valueToString, walkSchema, wrapAnyOfSchema, zodBooleanCoercion };
|
|
13589
14045
|
//# sourceMappingURL=index.browser.mjs.map
|