@membranehq/sdk 0.28.3 → 0.29.1
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 +140 -4
- package/dist/bundle.js +1917 -1394
- package/dist/bundle.js.map +1 -1
- package/dist/dts/accessors/connection-events-listener.d.ts +14 -0
- package/dist/dts/accessors/connection-events-listener.test.d.ts +1 -0
- package/dist/dts/accessors/connections-accessors.d.ts +9 -1
- package/dist/dts/accessors/integrations-accessors.d.ts +3 -0
- package/dist/dts/agent/harness-snapshot.d.ts +65 -0
- package/dist/dts/agent/harness.d.ts +107 -0
- package/dist/dts/agent/index.d.ts +6 -0
- package/dist/dts/agent/instruction.d.ts +32 -0
- package/dist/dts/agent/session.d.ts +6 -2
- package/dist/dts/agent/skill.d.ts +50 -0
- package/dist/dts/agent/tool.d.ts +8 -0
- package/dist/dts/agent/worker-contracts.d.ts +4 -1
- package/dist/dts/agent/workspace-element-context.d.ts +3 -0
- package/dist/dts/ai-gateway/models.d.ts +4 -0
- package/dist/dts/async-requests/types.d.ts +50 -0
- package/dist/dts/data-schema/types.d.ts +1 -1
- package/dist/dts/deprecation.d.ts +1 -0
- package/dist/dts/errors/index.d.ts +5 -1
- package/dist/dts/index.browser.d.ts +3 -1
- package/dist/dts/mcp-client/index.d.ts +76 -0
- package/dist/dts/oauth/types.d.ts +14 -5
- package/dist/dts/orgs/types.d.ts +1183 -33
- package/dist/dts/orgs/types.test.d.ts +1 -0
- package/dist/dts/platform-user-tokens/types.d.ts +42 -0
- package/dist/dts/scenario-templates/index.d.ts +1 -0
- package/dist/dts/workspace-elements/api/action-run-log-records-api.d.ts +50 -72
- package/dist/dts/workspace-elements/api/checkpoints-api.d.ts +1 -1
- package/dist/dts/workspace-elements/api/connections-api.d.ts +71 -1
- package/dist/dts/workspace-elements/api/connectors-api.d.ts +10 -0
- package/dist/dts/workspace-elements/api/data-link-table-instances-api.d.ts +10 -0
- package/dist/dts/workspace-elements/api/data-sources-api.d.ts +20 -0
- package/dist/dts/workspace-elements/api/external-api-logs-api.d.ts +10 -0
- package/dist/dts/workspace-elements/api/external-apps-api.d.ts +28 -0
- package/dist/dts/workspace-elements/api/external-event-log-records-api.d.ts +14 -0
- package/dist/dts/workspace-elements/api/external-event-pulls-api.d.ts +13 -0
- package/dist/dts/workspace-elements/api/external-event-subscriptions-api.d.ts +22 -0
- package/dist/dts/workspace-elements/api/external-event-types-api.d.ts +331 -0
- package/dist/dts/workspace-elements/api/field-mappings-api.d.ts +20 -0
- package/dist/dts/workspace-elements/api/flow-runs-api.d.ts +20 -0
- package/dist/dts/workspace-elements/api/flows-api.d.ts +20 -0
- package/dist/dts/workspace-elements/api/incoming-webhooks-api.d.ts +13 -0
- package/dist/dts/workspace-elements/api/index.d.ts +1 -0
- package/dist/dts/workspace-elements/api/integrations-api.d.ts +32 -7
- package/dist/dts/workspace-elements/base/action-run-log-records/index.d.ts +19 -0
- package/dist/dts/workspace-elements/base/actions/action-payload.d.ts +46 -0
- package/dist/dts/workspace-elements/base/actions/action-payload.test.d.ts +1 -0
- package/dist/dts/workspace-elements/base/actions/index.d.ts +3 -2
- package/dist/dts/workspace-elements/base/app-data-schemas/index.d.ts +2 -2
- package/dist/dts/workspace-elements/base/app-event-types/index.d.ts +2 -2
- package/dist/dts/workspace-elements/base/connection-requests/index.d.ts +6 -0
- package/dist/dts/workspace-elements/base/connections/index.d.ts +25 -0
- package/dist/dts/workspace-elements/base/connectors/auth.d.ts +6 -0
- package/dist/dts/workspace-elements/base/connectors/index.d.ts +213 -5
- package/dist/dts/workspace-elements/base/connectors/rest-api.d.ts +1 -0
- package/dist/dts/workspace-elements/base/data-link-tables/index.d.ts +2 -2
- package/dist/dts/workspace-elements/base/data-sources/index.d.ts +2 -2
- package/dist/dts/workspace-elements/base/external-event-log-records/index.d.ts +1 -0
- package/dist/dts/workspace-elements/base/external-event-pulls/index.d.ts +50 -0
- package/dist/dts/workspace-elements/base/external-event-subscriptions/index.d.ts +2 -0
- package/dist/dts/workspace-elements/base/external-event-types/index.d.ts +190 -0
- package/dist/dts/workspace-elements/base/field-mappings/index.d.ts +2 -2
- package/dist/dts/workspace-elements/base/flows/index.d.ts +2 -2
- package/dist/dts/workspace-elements/base/index.d.ts +1 -0
- package/dist/dts/workspace-elements/base/integrations/index.d.ts +2 -2
- package/dist/dts/workspace-elements/base/packages/index.d.ts +2 -2
- package/dist/dts/workspace-elements/paths.d.ts +1 -0
- package/dist/dts/workspace-elements/types.d.ts +15 -3
- package/dist/dts/workspace-tokens/index.d.ts +1 -0
- package/dist/dts/{client-tokens → workspace-tokens}/types.d.ts +35 -22
- package/dist/dts/workspaces/api.d.ts +0 -6
- package/dist/dts/workspaces/compare.d.ts +4 -1
- package/dist/index.browser.d.mts +3654 -858
- package/dist/index.browser.d.ts +3654 -858
- package/dist/index.browser.js +1105 -213
- package/dist/index.browser.js.map +1 -1
- package/dist/index.browser.mjs +1032 -207
- package/dist/index.browser.mjs.map +1 -1
- package/dist/index.node.d.mts +3654 -858
- package/dist/index.node.d.ts +3654 -858
- package/dist/index.node.js +1105 -213
- package/dist/index.node.js.map +1 -1
- package/dist/index.node.mjs +1032 -207
- package/dist/index.node.mjs.map +1 -1
- package/package.json +3 -3
- /package/dist/dts/{client-tokens → platform-user-tokens}/index.d.ts +0 -0
package/dist/index.node.mjs
CHANGED
|
@@ -37,6 +37,7 @@ var BadRequestErrorKey;
|
|
|
37
37
|
BadRequestErrorKey["ACCESS_DENIED"] = "access_denied";
|
|
38
38
|
BadRequestErrorKey["ALREADY_EXISTS"] = "already_exists";
|
|
39
39
|
BadRequestErrorKey["RATE_LIMIT_EXCEEDED"] = "rate_limit_exceeded";
|
|
40
|
+
BadRequestErrorKey["WORKSPACE_TIER_GATED"] = "workspace_tier_gated";
|
|
40
41
|
})(BadRequestErrorKey || (BadRequestErrorKey = {}));
|
|
41
42
|
var ConnectionErrorKey;
|
|
42
43
|
(function (ConnectionErrorKey) {
|
|
@@ -174,6 +175,11 @@ class AccessDeniedError extends BadRequestError {
|
|
|
174
175
|
this.data.key = BadRequestErrorKey.ACCESS_DENIED;
|
|
175
176
|
}
|
|
176
177
|
}
|
|
178
|
+
class RemoteConnectorCodeUnavailableError extends BadRequestError {
|
|
179
|
+
constructor(arg) {
|
|
180
|
+
super(arg !== null && arg !== void 0 ? arg : 'Operation execution requires connector code, which is not available for connectors served from the remote repository.');
|
|
181
|
+
}
|
|
182
|
+
}
|
|
177
183
|
class CustomCodeError extends MembraneError {
|
|
178
184
|
constructor(arg) {
|
|
179
185
|
super(arg);
|
|
@@ -1338,7 +1344,7 @@ const DataSchema = z.lazy(() => z
|
|
|
1338
1344
|
properties: z.record(z.string(), DataSchema).optional(),
|
|
1339
1345
|
items: DataSchema.optional(),
|
|
1340
1346
|
additionalProperties: z.union([z.boolean(), DataSchema]).optional(),
|
|
1341
|
-
enum: z.array(z.string()).optional(),
|
|
1347
|
+
enum: z.array(z.union([z.string(), z.number()])).optional(),
|
|
1342
1348
|
referenceRecords: z.array(z.any()).optional(),
|
|
1343
1349
|
referenceCollection: z
|
|
1344
1350
|
.object({
|
|
@@ -2473,30 +2479,36 @@ class Eval extends DataBuilderFormulaBase {
|
|
|
2473
2479
|
}
|
|
2474
2480
|
}
|
|
2475
2481
|
}
|
|
2482
|
+
function asLiteralOperandSchema(schema) {
|
|
2483
|
+
if (!schema)
|
|
2484
|
+
return schema;
|
|
2485
|
+
const { readOnly: _readOnly, ...rest } = schema;
|
|
2486
|
+
return rest;
|
|
2487
|
+
}
|
|
2476
2488
|
const OPERATOR_SPECS = {
|
|
2477
2489
|
is: {
|
|
2478
2490
|
name: 'is',
|
|
2479
2491
|
handler: (value, operand) => value == operand,
|
|
2480
2492
|
applicableToSchema: (schema) => schemaIsScalar(schema),
|
|
2481
|
-
getOperandSchema: (schema) => schema,
|
|
2493
|
+
getOperandSchema: (schema) => asLiteralOperandSchema(schema),
|
|
2482
2494
|
},
|
|
2483
2495
|
isNot: {
|
|
2484
2496
|
name: 'is not',
|
|
2485
2497
|
handler: (value, operand) => value != operand,
|
|
2486
2498
|
applicableToSchema: (schema) => schemaIsScalar(schema),
|
|
2487
|
-
getOperandSchema: (schema) => schema,
|
|
2499
|
+
getOperandSchema: (schema) => asLiteralOperandSchema(schema),
|
|
2488
2500
|
},
|
|
2489
2501
|
oneOf: {
|
|
2490
2502
|
name: 'is one of',
|
|
2491
2503
|
handler: (value, operand) => Array.isArray(operand) && operand.includes(value),
|
|
2492
2504
|
applicableToSchema: (schema) => schemaIsScalar(schema) && schema.type !== 'boolean',
|
|
2493
|
-
getOperandSchema: (schema) => ({ type: 'array', items: schema }),
|
|
2505
|
+
getOperandSchema: (schema) => ({ type: 'array', items: asLiteralOperandSchema(schema) }),
|
|
2494
2506
|
},
|
|
2495
2507
|
noneOf: {
|
|
2496
2508
|
name: 'is not one of',
|
|
2497
2509
|
handler: (value, operand) => !Array.isArray(operand) || !operand.includes(value),
|
|
2498
2510
|
applicableToSchema: (schema) => schemaIsScalar(schema) && schema.type !== 'boolean',
|
|
2499
|
-
getOperandSchema: (schema) => ({ type: 'array', items: schema }),
|
|
2511
|
+
getOperandSchema: (schema) => ({ type: 'array', items: asLiteralOperandSchema(schema) }),
|
|
2500
2512
|
},
|
|
2501
2513
|
contains: {
|
|
2502
2514
|
name: 'contains',
|
|
@@ -3476,11 +3488,15 @@ var WorkspaceElementType;
|
|
|
3476
3488
|
WorkspaceElementType["ExternalEventSubscription"] = "external-event-subscription";
|
|
3477
3489
|
WorkspaceElementType["ExternalEventLogRecord"] = "external-event-log-record";
|
|
3478
3490
|
WorkspaceElementType["ExternalEventPull"] = "external-event-pull";
|
|
3491
|
+
WorkspaceElementType["ExternalEventType"] = "external-event-type";
|
|
3479
3492
|
WorkspaceElementType["Screen"] = "screen";
|
|
3480
3493
|
WorkspaceElementType["ActionRunLogRecord"] = "action-run-log-record";
|
|
3481
3494
|
WorkspaceElementType["ExternalApiLogRecord"] = "external-api-log-record";
|
|
3482
3495
|
WorkspaceElementType["IncomingWebhookLogRecord"] = "incoming-webhook-log-record";
|
|
3483
3496
|
WorkspaceElementType["ConnectedProduct"] = "connected-product";
|
|
3497
|
+
WorkspaceElementType["AgentHarness"] = "agent-harness";
|
|
3498
|
+
WorkspaceElementType["AgentSkill"] = "agent-skill";
|
|
3499
|
+
WorkspaceElementType["AgentInstruction"] = "agent-instruction";
|
|
3484
3500
|
})(WorkspaceElementType || (WorkspaceElementType = {}));
|
|
3485
3501
|
var WorkspaceEventType;
|
|
3486
3502
|
(function (WorkspaceEventType) {
|
|
@@ -3612,7 +3628,8 @@ const BaseIntegrationLevelMembraneInterfaceEditableProperties = BaseMembraneInte
|
|
|
3612
3628
|
const BaseIntegrationLevelMembraneInterfaceReadOnlyProperties = BaseMembraneInterfaceReadOnlyProperties.extend({
|
|
3613
3629
|
isCustomized: z.boolean().optional(),
|
|
3614
3630
|
});
|
|
3615
|
-
const
|
|
3631
|
+
const BaseExportProperties = BaseMembraneInterfaceEditableProperties.required({ uuid: true, key: true });
|
|
3632
|
+
const BaseIntegrationLevelMembraneInterfaceExportProperties = BaseExportProperties.extend({
|
|
3616
3633
|
integrationUuid: z.string().optional(),
|
|
3617
3634
|
parentUuid: z.string().optional(),
|
|
3618
3635
|
externalAppUuid: z.string().optional(),
|
|
@@ -3905,6 +3922,124 @@ const ACTIONS = {
|
|
|
3905
3922
|
},
|
|
3906
3923
|
};
|
|
3907
3924
|
|
|
3925
|
+
var HttpRequestMethod;
|
|
3926
|
+
(function (HttpRequestMethod) {
|
|
3927
|
+
HttpRequestMethod["GET"] = "GET";
|
|
3928
|
+
HttpRequestMethod["POST"] = "POST";
|
|
3929
|
+
HttpRequestMethod["PATCH"] = "PATCH";
|
|
3930
|
+
HttpRequestMethod["PUT"] = "PUT";
|
|
3931
|
+
HttpRequestMethod["DELETE"] = "DELETE";
|
|
3932
|
+
})(HttpRequestMethod || (HttpRequestMethod = {}));
|
|
3933
|
+
const HttpRequestSpec = z.object({
|
|
3934
|
+
method: z.string().toUpperCase().pipe(z.enum(HttpRequestMethod)).optional(),
|
|
3935
|
+
uri: z.any(),
|
|
3936
|
+
headers: z.record(z.string(), z.any()).optional(),
|
|
3937
|
+
query: z.record(z.string(), z.any()).optional(),
|
|
3938
|
+
body: z.any().optional(),
|
|
3939
|
+
});
|
|
3940
|
+
const HTTP_REQUEST_SCHEMA = {
|
|
3941
|
+
type: 'object',
|
|
3942
|
+
properties: {
|
|
3943
|
+
uri: { type: 'string' },
|
|
3944
|
+
method: {
|
|
3945
|
+
type: 'string',
|
|
3946
|
+
enum: ['GET', 'POST', 'PUT', 'PATCH', 'DELETE'],
|
|
3947
|
+
},
|
|
3948
|
+
body: {},
|
|
3949
|
+
query: {
|
|
3950
|
+
type: 'object',
|
|
3951
|
+
section: true,
|
|
3952
|
+
additionalProperties: true,
|
|
3953
|
+
},
|
|
3954
|
+
headers: {
|
|
3955
|
+
type: 'object',
|
|
3956
|
+
section: true,
|
|
3957
|
+
additionalProperties: true,
|
|
3958
|
+
},
|
|
3959
|
+
},
|
|
3960
|
+
};
|
|
3961
|
+
|
|
3962
|
+
const ActionApiPayload = z.object({
|
|
3963
|
+
method: z.enum(HttpRequestMethod),
|
|
3964
|
+
path: z.string().optional(),
|
|
3965
|
+
url: z.string().optional(),
|
|
3966
|
+
body: z.any().optional(),
|
|
3967
|
+
headers: z.record(z.string(), z.string()).optional(),
|
|
3968
|
+
query: z.record(z.string(), z.union([z.string(), z.number(), z.boolean()])).optional(),
|
|
3969
|
+
});
|
|
3970
|
+
const ActionSnapshot = z.object({
|
|
3971
|
+
id: z.string().optional(),
|
|
3972
|
+
integrationKey: z.string().optional(),
|
|
3973
|
+
key: z.string().optional(),
|
|
3974
|
+
connectionKey: z.string().optional(),
|
|
3975
|
+
connectionId: z.string().optional(),
|
|
3976
|
+
type: z.string(),
|
|
3977
|
+
api: ActionApiPayload.optional(),
|
|
3978
|
+
code: z.string().optional(),
|
|
3979
|
+
input: z.any().optional(),
|
|
3980
|
+
meta: z.record(z.string(), z.any()).optional(),
|
|
3981
|
+
});
|
|
3982
|
+
function configToNamedPayload(type, config) {
|
|
3983
|
+
var _a, _b;
|
|
3984
|
+
if (config == null)
|
|
3985
|
+
return {};
|
|
3986
|
+
switch (type) {
|
|
3987
|
+
case ActionType.ApiRequestToExternalApp:
|
|
3988
|
+
case ActionType.ApiRequestToYourApp:
|
|
3989
|
+
case ActionType.ApiRequest: {
|
|
3990
|
+
const req = config.request;
|
|
3991
|
+
if (!req)
|
|
3992
|
+
return {};
|
|
3993
|
+
return {
|
|
3994
|
+
api: {
|
|
3995
|
+
method: req.method,
|
|
3996
|
+
path: req.path,
|
|
3997
|
+
body: (_a = req.data) !== null && _a !== void 0 ? _a : req.body,
|
|
3998
|
+
headers: req.headers,
|
|
3999
|
+
query: req.query,
|
|
4000
|
+
},
|
|
4001
|
+
};
|
|
4002
|
+
}
|
|
4003
|
+
case ActionType.HttpRequest: {
|
|
4004
|
+
const req = config.request;
|
|
4005
|
+
if (!req)
|
|
4006
|
+
return {};
|
|
4007
|
+
return {
|
|
4008
|
+
api: {
|
|
4009
|
+
method: req.method,
|
|
4010
|
+
url: req.uri,
|
|
4011
|
+
body: (_b = req.body) !== null && _b !== void 0 ? _b : req.data,
|
|
4012
|
+
headers: req.headers,
|
|
4013
|
+
query: req.query,
|
|
4014
|
+
},
|
|
4015
|
+
};
|
|
4016
|
+
}
|
|
4017
|
+
case ActionType.RunJavascript: {
|
|
4018
|
+
const code = config.code;
|
|
4019
|
+
if (typeof code !== 'string')
|
|
4020
|
+
return {};
|
|
4021
|
+
return { code };
|
|
4022
|
+
}
|
|
4023
|
+
default:
|
|
4024
|
+
return {};
|
|
4025
|
+
}
|
|
4026
|
+
}
|
|
4027
|
+
function buildActionSnapshot(args) {
|
|
4028
|
+
const { api, code } = configToNamedPayload(args.type, args.config);
|
|
4029
|
+
return {
|
|
4030
|
+
...(args.id != null && { id: args.id }),
|
|
4031
|
+
...(args.integrationKey != null && { integrationKey: args.integrationKey }),
|
|
4032
|
+
...(args.key != null && { key: args.key }),
|
|
4033
|
+
...(args.connectionId != null && { connectionId: args.connectionId }),
|
|
4034
|
+
...(args.connectionKey != null && { connectionKey: args.connectionKey }),
|
|
4035
|
+
type: args.type,
|
|
4036
|
+
...(api != null && { api }),
|
|
4037
|
+
...(code != null && { code }),
|
|
4038
|
+
...(args.input != null && { input: args.input }),
|
|
4039
|
+
...(args.meta != null && { meta: args.meta }),
|
|
4040
|
+
};
|
|
4041
|
+
}
|
|
4042
|
+
|
|
3908
4043
|
var ActionDependencyType;
|
|
3909
4044
|
(function (ActionDependencyType) {
|
|
3910
4045
|
ActionDependencyType["FieldMapping"] = "FieldMapping";
|
|
@@ -3982,12 +4117,15 @@ const CreateConnectionRequestPayload = z.object({
|
|
|
3982
4117
|
connectorId: z.string().optional(),
|
|
3983
4118
|
connectorKey: z.string().optional(),
|
|
3984
4119
|
connectorVersion: z.string().optional(),
|
|
4120
|
+
externalAppId: z.string().optional(),
|
|
4121
|
+
externalAppKey: z.string().optional(),
|
|
3985
4122
|
connectionId: z.string().optional(),
|
|
3986
4123
|
connectionKey: z.string().min(1).max(100).optional(),
|
|
3987
4124
|
name: z.string().optional(),
|
|
3988
4125
|
allowMultipleConnections: z.boolean().optional(),
|
|
3989
4126
|
connectorParameters: z.record(z.string(), z.unknown()).optional(),
|
|
3990
4127
|
redirectUri: z.string().url().optional(),
|
|
4128
|
+
customState: z.string().optional(),
|
|
3991
4129
|
prompt: z.string().optional(),
|
|
3992
4130
|
});
|
|
3993
4131
|
const PatchConnectionRequestPayload = z.object({});
|
|
@@ -3999,12 +4137,15 @@ const ConnectionRequest = z.object({
|
|
|
3999
4137
|
connectorId: z.string().optional(),
|
|
4000
4138
|
connectorKey: z.string().optional(),
|
|
4001
4139
|
connectorVersion: z.string().optional(),
|
|
4140
|
+
externalAppId: z.string().optional(),
|
|
4141
|
+
externalAppKey: z.string().optional(),
|
|
4002
4142
|
connectionId: z.string().optional(),
|
|
4003
4143
|
connectionKey: z.string().optional(),
|
|
4004
4144
|
name: z.string().optional(),
|
|
4005
4145
|
allowMultipleConnections: z.boolean().optional(),
|
|
4006
4146
|
connectorParameters: z.record(z.string(), z.unknown()).optional(),
|
|
4007
4147
|
redirectUri: z.string().url().optional(),
|
|
4148
|
+
customState: z.string().optional(),
|
|
4008
4149
|
prompt: z.string().optional(),
|
|
4009
4150
|
status: z.enum(['pending', 'success', 'cancelled', 'error']),
|
|
4010
4151
|
resultConnectionId: z.string().optional(),
|
|
@@ -4013,7 +4154,9 @@ const ConnectionRequest = z.object({
|
|
|
4013
4154
|
url: z.string(),
|
|
4014
4155
|
});
|
|
4015
4156
|
|
|
4157
|
+
const ConnectionType = z.enum(['connector', 'mcp']);
|
|
4016
4158
|
const ConnectionEditableProperties = z.object({
|
|
4159
|
+
type: ConnectionType.optional(),
|
|
4017
4160
|
name: z.string().optional(),
|
|
4018
4161
|
meta: z.record(z.string(), z.any()).optional(),
|
|
4019
4162
|
authOptionKey: z.string().optional(),
|
|
@@ -4036,9 +4179,15 @@ const ConnectionClientAction = z.object({
|
|
|
4036
4179
|
description: z.string(),
|
|
4037
4180
|
uiUrl: z.string().optional(),
|
|
4038
4181
|
agentInstructions: z.string().optional(),
|
|
4182
|
+
handoffAgentInstructions: z.string().optional(),
|
|
4183
|
+
reason: z
|
|
4184
|
+
.enum(['authenticate', 'reauthenticate', 'provide-input'])
|
|
4185
|
+
.optional()
|
|
4186
|
+
.describe('[INTERNAL] Cause that triggered this client action; persisted so prompts can be re-rendered on read.'),
|
|
4039
4187
|
});
|
|
4040
4188
|
const BaseConnection = BaseWorkspaceElement.extend({
|
|
4041
4189
|
...TenantLayerElement.shape,
|
|
4190
|
+
type: ConnectionType.optional(),
|
|
4042
4191
|
name: z.string(),
|
|
4043
4192
|
key: z.string().optional(),
|
|
4044
4193
|
isTest: z.boolean().optional(),
|
|
@@ -4504,6 +4653,11 @@ const OAUTH_CONFIG_SCHEMA = {
|
|
|
4504
4653
|
type: 'boolean',
|
|
4505
4654
|
description: 'Skip sending PKCE parameters in the token request. Some authentication processes error if PKCE is enabled.',
|
|
4506
4655
|
},
|
|
4656
|
+
authorizationCodeParam: {
|
|
4657
|
+
type: 'string',
|
|
4658
|
+
default: 'code',
|
|
4659
|
+
description: 'Name of the redirect query parameter that carries the authorization code. Defaults to "code". Set this for providers that return the code under a non-standard parameter name (e.g. Amazon Selling Partner API uses "spapi_oauth_code").',
|
|
4660
|
+
},
|
|
4507
4661
|
extra: {
|
|
4508
4662
|
type: 'object',
|
|
4509
4663
|
additionalProperties: true,
|
|
@@ -9188,21 +9342,25 @@ var ConnectorStatus;
|
|
|
9188
9342
|
const ConnectorAuthWithFunctions = z.object({
|
|
9189
9343
|
type: z
|
|
9190
9344
|
.enum(['integration-app-token', 'membrane-token', 'oauth2', 'oauth1', 'client-credentials', 'proxy'])
|
|
9191
|
-
.optional()
|
|
9192
|
-
|
|
9193
|
-
|
|
9194
|
-
|
|
9195
|
-
|
|
9196
|
-
|
|
9197
|
-
|
|
9198
|
-
|
|
9199
|
-
|
|
9200
|
-
|
|
9201
|
-
|
|
9202
|
-
|
|
9203
|
-
|
|
9204
|
-
|
|
9205
|
-
|
|
9345
|
+
.optional()
|
|
9346
|
+
.describe('Authentication protocol used by the connector.'),
|
|
9347
|
+
credentialsSchema: DataSchema.optional().describe('JSON Schema describing the credentials produced by the auth flow (e.g. `access_token`, `refresh_token`). Usually inferred from the auth type; override only when the connector stores custom credential fields.'),
|
|
9348
|
+
customCredentialsSchema: DataSchema.optional().describe('Additional JSON Schema for workspace-level overrides of credentials (e.g. BYO-OAuth clientId/clientSecret).'),
|
|
9349
|
+
inputSchema: DataSchema.optional().describe('JSON Schema for end-user input collected during connection (e.g. an API key or subdomain the user types in).'),
|
|
9350
|
+
parametersSchema: DataSchema.optional().describe('JSON Schema for connector-level parameters configured per integration (e.g. region, account ID).'),
|
|
9351
|
+
getCredentialsFromConnectionParameters: GenericFunctionDefinition.optional().describe('Function that derives auth credentials from connection parameters. Use for static-key auth (api-key, basic-auth) where the user-provided input IS the credential.'),
|
|
9352
|
+
refreshCredentials: GenericFunctionDefinition.optional().describe('Function that refreshes expired credentials. Implement for non-standard OAuth refresh flows or when additional credentials need to be refreshed alongside the OAuth token.'),
|
|
9353
|
+
makeApiClient: GenericFunctionDefinition.optional().describe('Function that configures the HTTP client used by operations, actions and data sources. Typically a `mapping` type with `baseUri` and auth header wiring.'),
|
|
9354
|
+
getOAuthConfig: GenericFunctionDefinition.optional().describe('OAuth2: function returning `{ authorizeUri, tokenUri, scopes, noRefreshToken? }` — the authorize/token endpoint URLs and requested scopes.'),
|
|
9355
|
+
getTokenData: GenericFunctionDefinition.optional().describe('OAuth2: function invoked with the raw token response to extract token metadata. Rarely needed.'),
|
|
9356
|
+
getCredentialsFromAccessTokenResponse: GenericFunctionDefinition.optional().describe('OAuth2: function that transforms the token endpoint response into the final credentials object. Required for multi-tenant APIs (Microsoft) or APIs that require post-OAuth bootstrap calls.'),
|
|
9357
|
+
getCredentialsFromRefreshTokenResponse: GenericFunctionDefinition.optional().describe('OAuth2: function that transforms the refresh token endpoint response into the refreshed credentials. Required when refresh responses differ from initial-token responses.'),
|
|
9358
|
+
test: GenericFunctionDefinition.optional().describe('Function that verifies the connection by making a lightweight authenticated API call (typically a `rest-api-mapping` against a `/me`-style endpoint).'),
|
|
9359
|
+
disconnect: GenericFunctionDefinition.optional().describe('Function that revokes credentials at the provider when the connection is removed. Implement only if the provider exposes a revoke endpoint.'),
|
|
9360
|
+
proxyKey: z
|
|
9361
|
+
.string()
|
|
9362
|
+
.optional()
|
|
9363
|
+
.describe('For `type: "proxy"` — identifies which proxy configuration the workspace should use.'),
|
|
9206
9364
|
ui: z
|
|
9207
9365
|
.object({
|
|
9208
9366
|
schema: DataSchema.optional(),
|
|
@@ -9234,13 +9392,16 @@ const GeneratedConnectorOption = z.object({
|
|
|
9234
9392
|
const ConnectorOptions = z.record(z.string(), ConnectorOption);
|
|
9235
9393
|
const WritableConnectorVersionData = ConnectorAuthWithFunctions.extend({
|
|
9236
9394
|
parametersSchema: DataSchema.optional(),
|
|
9237
|
-
options: z
|
|
9395
|
+
options: z
|
|
9396
|
+
.record(z.string(), WriteableConnectorOption)
|
|
9397
|
+
.optional()
|
|
9398
|
+
.describe('Map of auth option key to auth configuration, for connectors that support multiple auth methods. Mutually exclusive with the top-level auth fields: use either the top-level fields (single-auth) OR `options` (multi-auth), not both.'),
|
|
9238
9399
|
}).omit({
|
|
9239
9400
|
credentialsSchema: true,
|
|
9240
9401
|
});
|
|
9241
9402
|
const ConnectorVersionData = z
|
|
9242
9403
|
.object({
|
|
9243
|
-
baseUri: z.string(),
|
|
9404
|
+
baseUri: z.string().optional(),
|
|
9244
9405
|
revision: z.string().optional(),
|
|
9245
9406
|
dataCollectionsCount: z.number().optional(),
|
|
9246
9407
|
operationsCount: z.number().optional(),
|
|
@@ -9275,9 +9436,12 @@ const WriteableConnectorFields = z
|
|
|
9275
9436
|
})
|
|
9276
9437
|
.extend(WritableConnectorVersionData.shape);
|
|
9277
9438
|
const ConnectorExportProperties = WriteableConnectorFields.extend({
|
|
9278
|
-
uuid: z.string()
|
|
9279
|
-
})
|
|
9280
|
-
externalAppId: true
|
|
9439
|
+
uuid: z.string(),
|
|
9440
|
+
})
|
|
9441
|
+
.omit({ externalAppId: true })
|
|
9442
|
+
.required({ key: true });
|
|
9443
|
+
const ConnectorVersionExportProperties = WritableConnectorVersionData.extend({
|
|
9444
|
+
version: z.string().min(1),
|
|
9281
9445
|
});
|
|
9282
9446
|
const UpdateConnectorRequest = WriteableConnectorFields;
|
|
9283
9447
|
const CreateConnectorRequest = WriteableConnectorFields.extend({
|
|
@@ -9291,6 +9455,10 @@ const BaseConnector = z.object({
|
|
|
9291
9455
|
externalAppId: z.string().optional(),
|
|
9292
9456
|
name: z.string(),
|
|
9293
9457
|
logoUri: z.string(),
|
|
9458
|
+
appUri: z
|
|
9459
|
+
.string()
|
|
9460
|
+
.optional()
|
|
9461
|
+
.describe('Site URL of the linked external app, denormalized onto public connector listings.'),
|
|
9294
9462
|
categories: z.array(z.string()).optional(),
|
|
9295
9463
|
isPublic: z.boolean().optional(),
|
|
9296
9464
|
popularity: z.number().optional(),
|
|
@@ -9303,6 +9471,10 @@ const MinimalConnector = z.object({
|
|
|
9303
9471
|
key: z.string(),
|
|
9304
9472
|
name: z.string(),
|
|
9305
9473
|
logoUri: z.string(),
|
|
9474
|
+
appUri: z
|
|
9475
|
+
.string()
|
|
9476
|
+
.optional()
|
|
9477
|
+
.describe('Site URL of the linked external app, denormalized onto public connector listings.'),
|
|
9306
9478
|
isPublic: z.boolean().optional(),
|
|
9307
9479
|
tenantId: z.string().optional(),
|
|
9308
9480
|
});
|
|
@@ -9563,8 +9735,8 @@ var ApiTrigger = new FlowNodeSpec({
|
|
|
9563
9735
|
});
|
|
9564
9736
|
|
|
9565
9737
|
var AppEventTrigger = new FlowNodeSpec({
|
|
9566
|
-
name: '
|
|
9567
|
-
description: 'Trigger flow when a matching
|
|
9738
|
+
name: 'Internal Event Trigger',
|
|
9739
|
+
description: 'Trigger flow when a matching Internal Event is received',
|
|
9568
9740
|
isTrigger: true,
|
|
9569
9741
|
});
|
|
9570
9742
|
|
|
@@ -9936,26 +10108,32 @@ const BaseIntegration = BaseMembraneInterface.extend({
|
|
|
9936
10108
|
});
|
|
9937
10109
|
const IntegrationEditableProperties = BaseMembraneInterfaceEditableProperties.extend({
|
|
9938
10110
|
logoUri: z.string().optional(),
|
|
9939
|
-
externalAppId: z
|
|
10111
|
+
externalAppId: z
|
|
10112
|
+
.string()
|
|
10113
|
+
.optional()
|
|
10114
|
+
.describe("External app id; alternative to connectorId — resolves to the app's default connector."),
|
|
9940
10115
|
externalAppUuid: z.string().optional(),
|
|
9941
10116
|
appUuid: z.string().optional().describe('[INTERNAL] Deprecated: resolved to externalAppId'),
|
|
9942
10117
|
oAuthCallbackUri: z.url().or(z.literal('')).optional(),
|
|
9943
10118
|
logoBase64: z.string().optional(),
|
|
9944
10119
|
connectorVersion: z.string().optional(),
|
|
9945
|
-
connectorId: z.string().optional(),
|
|
10120
|
+
connectorId: z.string().optional().describe('ID of the connector this integration uses.'),
|
|
9946
10121
|
connectorUuid: z.string().optional(),
|
|
9947
10122
|
connectorKey: z
|
|
9948
10123
|
.string()
|
|
9949
10124
|
.optional()
|
|
9950
10125
|
.describe('Key of the connector; alternative to connectorId. Resolved to connectorId by the API.'),
|
|
9951
|
-
parameters: z
|
|
10126
|
+
parameters: z
|
|
10127
|
+
.record(z.string(), z.any())
|
|
10128
|
+
.optional()
|
|
10129
|
+
.describe('Connector-specific parameters (e.g. OAuth { clientId, clientSecret, scopes }).'),
|
|
9952
10130
|
optionsConfig: IntegrationOptions.optional(),
|
|
9953
10131
|
});
|
|
9954
10132
|
const IntegrationExportProperties = IntegrationEditableProperties.omit({
|
|
9955
10133
|
connectorId: true,
|
|
9956
10134
|
externalAppId: true,
|
|
9957
10135
|
parameters: true,
|
|
9958
|
-
});
|
|
10136
|
+
}).required({ uuid: true, key: true });
|
|
9959
10137
|
const AppliedToIntegrations = (elementSchema) => z.array(z.object({
|
|
9960
10138
|
element: elementSchema,
|
|
9961
10139
|
integration: BaseIntegration,
|
|
@@ -10052,7 +10230,7 @@ const DataLinkTableSpecificProperties = z.object({
|
|
|
10052
10230
|
dataLinkTableId: z.string().optional(),
|
|
10053
10231
|
});
|
|
10054
10232
|
const DataLinkTableEditableProperties = BaseMembraneInterfaceEditableProperties.extend(DataLinkTableSpecificProperties.shape);
|
|
10055
|
-
const DataLinkTableExportProperties =
|
|
10233
|
+
const DataLinkTableExportProperties = BaseExportProperties.extend(DataLinkTableSpecificProperties.shape).omit({
|
|
10056
10234
|
connectionId: true,
|
|
10057
10235
|
dataLinkTableId: true,
|
|
10058
10236
|
});
|
|
@@ -10075,43 +10253,6 @@ const DataLinkTableConfig = z.object({
|
|
|
10075
10253
|
key: z.string(),
|
|
10076
10254
|
});
|
|
10077
10255
|
|
|
10078
|
-
var HttpRequestMethod;
|
|
10079
|
-
(function (HttpRequestMethod) {
|
|
10080
|
-
HttpRequestMethod["GET"] = "GET";
|
|
10081
|
-
HttpRequestMethod["POST"] = "POST";
|
|
10082
|
-
HttpRequestMethod["PATCH"] = "PATCH";
|
|
10083
|
-
HttpRequestMethod["PUT"] = "PUT";
|
|
10084
|
-
HttpRequestMethod["DELETE"] = "DELETE";
|
|
10085
|
-
})(HttpRequestMethod || (HttpRequestMethod = {}));
|
|
10086
|
-
const HttpRequestSpec = z.object({
|
|
10087
|
-
method: z.string().toUpperCase().pipe(z.enum(HttpRequestMethod)).optional(),
|
|
10088
|
-
uri: z.any(),
|
|
10089
|
-
headers: z.record(z.string(), z.any()).optional(),
|
|
10090
|
-
query: z.record(z.string(), z.any()).optional(),
|
|
10091
|
-
body: z.any().optional(),
|
|
10092
|
-
});
|
|
10093
|
-
const HTTP_REQUEST_SCHEMA = {
|
|
10094
|
-
type: 'object',
|
|
10095
|
-
properties: {
|
|
10096
|
-
uri: { type: 'string' },
|
|
10097
|
-
method: {
|
|
10098
|
-
type: 'string',
|
|
10099
|
-
enum: ['GET', 'POST', 'PUT', 'PATCH', 'DELETE'],
|
|
10100
|
-
},
|
|
10101
|
-
body: {},
|
|
10102
|
-
query: {
|
|
10103
|
-
type: 'object',
|
|
10104
|
-
section: true,
|
|
10105
|
-
additionalProperties: true,
|
|
10106
|
-
},
|
|
10107
|
-
headers: {
|
|
10108
|
-
type: 'object',
|
|
10109
|
-
section: true,
|
|
10110
|
-
additionalProperties: true,
|
|
10111
|
-
},
|
|
10112
|
-
},
|
|
10113
|
-
};
|
|
10114
|
-
|
|
10115
10256
|
const BaseAppEventType = BaseMembraneInterface.extend({
|
|
10116
10257
|
revision: z.string(),
|
|
10117
10258
|
archivedAt: z.string().optional(),
|
|
@@ -10130,7 +10271,7 @@ const AppEventTypeEditableProperties = BaseMembraneInterfaceEditableProperties.e
|
|
|
10130
10271
|
userIdFormula: z.any().optional(),
|
|
10131
10272
|
subscribeRequest: HttpRequestSpec.optional(),
|
|
10132
10273
|
});
|
|
10133
|
-
const AppEventTypeExportProperties =
|
|
10274
|
+
const AppEventTypeExportProperties = BaseExportProperties.extend({});
|
|
10134
10275
|
|
|
10135
10276
|
const BaseAppEventSubscription = BaseMembraneInterface.extend({
|
|
10136
10277
|
...TenantLayerElement.shape,
|
|
@@ -10152,7 +10293,7 @@ const AppDataSchemaSpecificProperties = z.object({
|
|
|
10152
10293
|
code: z.string().optional(),
|
|
10153
10294
|
});
|
|
10154
10295
|
const AppDataSchemaEditableProperties = BaseMembraneInterfaceEditableProperties.extend(AppDataSchemaSpecificProperties.shape);
|
|
10155
|
-
const AppDataSchemaExportProperties =
|
|
10296
|
+
const AppDataSchemaExportProperties = BaseExportProperties.extend(AppDataSchemaSpecificProperties.shape).omit({
|
|
10156
10297
|
appDataSchemaId: true,
|
|
10157
10298
|
});
|
|
10158
10299
|
const AppDataSchemaReadOnlyProperties = BaseMembraneInterfaceReadOnlyProperties.extend({
|
|
@@ -10189,6 +10330,7 @@ const BaseExternalEventSubscription = TenantLayerElement.extend({
|
|
|
10189
10330
|
name: z.string().optional(),
|
|
10190
10331
|
connectionId: z.string(),
|
|
10191
10332
|
integrationId: z.string(),
|
|
10333
|
+
externalEventTypeId: z.string().optional(),
|
|
10192
10334
|
config: ExternalEventSubscriptionConfig.optional(),
|
|
10193
10335
|
status: z.enum(ExternalEventSubscriptionStatus).optional(),
|
|
10194
10336
|
error: ErrorDataSchema.optional(),
|
|
@@ -10205,6 +10347,7 @@ const BaseExternalEventSubscription = TenantLayerElement.extend({
|
|
|
10205
10347
|
nextRefreshTimestamp: z.number().optional(),
|
|
10206
10348
|
globalWebhookKey: z.string().optional(),
|
|
10207
10349
|
globalWebhookEventSelector: z.string().optional(),
|
|
10350
|
+
incomingWebhookUri: z.string().optional(),
|
|
10208
10351
|
webhookUri: z.string().optional(),
|
|
10209
10352
|
});
|
|
10210
10353
|
|
|
@@ -10219,6 +10362,7 @@ const BaseExternalEventLogRecord = ActivityLogRecord.extend({
|
|
|
10219
10362
|
externalEventSubscriptionId: z.string(),
|
|
10220
10363
|
integrationId: z.string(),
|
|
10221
10364
|
connectionId: z.string(),
|
|
10365
|
+
externalEventTypeId: z.string().optional(),
|
|
10222
10366
|
payload: z.any().optional(),
|
|
10223
10367
|
launchedFlowRunIds: z.array(z.string()).optional(),
|
|
10224
10368
|
status: z.enum(ExternalEventLogStatus),
|
|
@@ -10242,8 +10386,71 @@ const BaseExternalEventPull = ActivityLogRecord.extend({
|
|
|
10242
10386
|
isFullScan: z.boolean().optional(),
|
|
10243
10387
|
status: z.enum(ExternalEventPullStatus),
|
|
10244
10388
|
collectedEventIds: z.array(z.string()),
|
|
10389
|
+
telemetryUri: z
|
|
10390
|
+
.string()
|
|
10391
|
+
.optional()
|
|
10392
|
+
.describe('Storage key of the per-pull diagnostic telemetry artifact (what this pull observed and why it did or did not emit events). Read via GET /external-event-pulls/{id}/telemetry.'),
|
|
10245
10393
|
error: ErrorDataSchema.optional(),
|
|
10246
10394
|
});
|
|
10395
|
+
const ExternalEventPullTelemetry = z.object({
|
|
10396
|
+
pullId: z.string(),
|
|
10397
|
+
subscriptionId: z.string(),
|
|
10398
|
+
connectionId: z.string().optional(),
|
|
10399
|
+
strategy: z.enum(['full-scan', 'pull-latest-records', 'custom-pull', 'skipped', 'unknown']),
|
|
10400
|
+
eventType: z.string().optional(),
|
|
10401
|
+
collectionKey: z.string().optional(),
|
|
10402
|
+
startedAt: z.string(),
|
|
10403
|
+
finishedAt: z.string(),
|
|
10404
|
+
emittedEventCount: z.number(),
|
|
10405
|
+
emittedEvents: z.array(z.object({ type: z.string(), recordId: z.string().optional() })),
|
|
10406
|
+
notes: z.array(z.string()),
|
|
10407
|
+
fullScan: z
|
|
10408
|
+
.object({
|
|
10409
|
+
totalRecords: z.number(),
|
|
10410
|
+
totalPages: z.number(),
|
|
10411
|
+
previousSnapshotId: z.string().optional(),
|
|
10412
|
+
previousSnapshotRecordCount: z.number().optional(),
|
|
10413
|
+
previousSnapshotMissing: z.boolean(),
|
|
10414
|
+
newSnapshotId: z.string().optional(),
|
|
10415
|
+
isBaseline: z.boolean(),
|
|
10416
|
+
})
|
|
10417
|
+
.optional(),
|
|
10418
|
+
pullLatest: z
|
|
10419
|
+
.object({
|
|
10420
|
+
stateBefore: z.object({ id: z.string().optional(), datetime: z.string().optional() }).optional(),
|
|
10421
|
+
stateAfter: z.object({ id: z.string().optional(), datetime: z.string().optional() }).optional(),
|
|
10422
|
+
pagesScanned: z.number(),
|
|
10423
|
+
scannedRecords: z.array(z.object({ id: z.string(), datetime: z.string().optional() })),
|
|
10424
|
+
newRecordIds: z.array(z.string()),
|
|
10425
|
+
isBaseline: z.boolean(),
|
|
10426
|
+
})
|
|
10427
|
+
.optional(),
|
|
10428
|
+
});
|
|
10429
|
+
|
|
10430
|
+
var ExternalEventTypeImplementationType;
|
|
10431
|
+
(function (ExternalEventTypeImplementationType) {
|
|
10432
|
+
ExternalEventTypeImplementationType["Webhook"] = "webhook";
|
|
10433
|
+
})(ExternalEventTypeImplementationType || (ExternalEventTypeImplementationType = {}));
|
|
10434
|
+
const EXTERNAL_EVENT_TYPE_FUNCTION_KEYS = ['subscribe', 'unsubscribe', 'handle', 'refresh'];
|
|
10435
|
+
const ExternalEventTypeCommonFields = {
|
|
10436
|
+
schema: DataSchema.optional(),
|
|
10437
|
+
parametersSchema: DataSchema.optional(),
|
|
10438
|
+
example: z.any().optional(),
|
|
10439
|
+
type: z.nativeEnum(ExternalEventTypeImplementationType).optional(),
|
|
10440
|
+
subscribe: GenericFunctionDefinition.optional(),
|
|
10441
|
+
unsubscribe: GenericFunctionDefinition.optional(),
|
|
10442
|
+
handle: GenericFunctionDefinition.optional(),
|
|
10443
|
+
refresh: GenericFunctionDefinition.optional(),
|
|
10444
|
+
};
|
|
10445
|
+
const ExternalEventTypeEditableProperties = BaseIntegrationLevelMembraneInterfaceEditableProperties.extend({
|
|
10446
|
+
...ExternalEventTypeCommonFields,
|
|
10447
|
+
});
|
|
10448
|
+
const ExternalEventTypeExportProperties = BaseIntegrationLevelMembraneInterfaceExportProperties.extend({
|
|
10449
|
+
...ExternalEventTypeCommonFields,
|
|
10450
|
+
});
|
|
10451
|
+
const BaseExternalEventType = BaseIntegrationLevelMembraneInterface.extend({
|
|
10452
|
+
...ExternalEventTypeCommonFields,
|
|
10453
|
+
});
|
|
10247
10454
|
|
|
10248
10455
|
var ActionRunLogStatus;
|
|
10249
10456
|
(function (ActionRunLogStatus) {
|
|
@@ -10258,8 +10465,10 @@ const BaseActionRunLogRecord = ActivityLogRecord.extend({
|
|
|
10258
10465
|
actionId: z.string().optional().describe('[INTERNAL] Deprecated: Use integrationActionId instead'),
|
|
10259
10466
|
actionInstanceId: z.string().optional().describe('[INTERNAL] Deprecated: Use connectionActionId instead'),
|
|
10260
10467
|
integrationId: z.string(),
|
|
10261
|
-
connectionId: z
|
|
10262
|
-
|
|
10468
|
+
connectionId: z
|
|
10469
|
+
.string()
|
|
10470
|
+
.describe('[DEPRECATED] Deprecated: Read from action.connectionId or action.connectionKey instead'),
|
|
10471
|
+
input: z.any().optional().describe('[DEPRECATED] Deprecated: Read from action.input instead'),
|
|
10263
10472
|
output: z.any().optional(),
|
|
10264
10473
|
status: z.enum(ActionRunLogStatus),
|
|
10265
10474
|
createdAt: z.string(),
|
|
@@ -10267,6 +10476,7 @@ const BaseActionRunLogRecord = ActivityLogRecord.extend({
|
|
|
10267
10476
|
error: ErrorDataSchema.optional(),
|
|
10268
10477
|
duration: z.number().optional(),
|
|
10269
10478
|
meta: z.record(z.string(), z.any()).optional(),
|
|
10479
|
+
action: ActionSnapshot.optional().describe('Complete /act-body snapshot of what ran — sufficient to replay the run by POSTing back to /act.'),
|
|
10270
10480
|
});
|
|
10271
10481
|
|
|
10272
10482
|
const ConnectedProductType = z.enum(['ai-agent', 'app']);
|
|
@@ -10412,7 +10622,6 @@ const ListActionInstancesForConnectionQuery = FindActionsQuery;
|
|
|
10412
10622
|
const FindActionInstancesQuery = FindActionsQuery;
|
|
10413
10623
|
|
|
10414
10624
|
const ActionRunLogRecordApiResponse = BaseActionRunLogRecord.extend({
|
|
10415
|
-
action: BaseAction.optional(),
|
|
10416
10625
|
actionInstance: BaseAction.optional(),
|
|
10417
10626
|
integration: BaseIntegration.optional(),
|
|
10418
10627
|
connection: BaseConnection.optional(),
|
|
@@ -10639,6 +10848,18 @@ const ConnectionMessagePayload = z.discriminatedUnion('type', [
|
|
|
10639
10848
|
connectionId: z.string().optional(),
|
|
10640
10849
|
}),
|
|
10641
10850
|
]);
|
|
10851
|
+
const ConnectionEntityMessagePayload = z.discriminatedUnion('type', [
|
|
10852
|
+
z.object({
|
|
10853
|
+
type: z.literal('connected'),
|
|
10854
|
+
connectionId: z.string(),
|
|
10855
|
+
timestamp: z.string(),
|
|
10856
|
+
message: z.string().optional(),
|
|
10857
|
+
}),
|
|
10858
|
+
z.object({
|
|
10859
|
+
type: z.literal('connectionPatched'),
|
|
10860
|
+
connectionId: z.string(),
|
|
10861
|
+
}),
|
|
10862
|
+
]);
|
|
10642
10863
|
const GenerateOptionsRequest = z.object({
|
|
10643
10864
|
integrationId: z.string().optional(),
|
|
10644
10865
|
integrationKey: z.string().optional(),
|
|
@@ -10649,12 +10870,15 @@ const GenerateOptionsRequest = z.object({
|
|
|
10649
10870
|
connectorVersion: z.string().optional(),
|
|
10650
10871
|
});
|
|
10651
10872
|
const ConnectPayload = z.object({
|
|
10873
|
+
type: ConnectionType.optional(),
|
|
10652
10874
|
requestId: z.string().optional(),
|
|
10653
10875
|
integrationKey: z.string().optional(),
|
|
10654
10876
|
integrationId: z.string().optional(),
|
|
10655
10877
|
connectorId: z.string().optional(),
|
|
10656
10878
|
connectorKey: z.string().optional(),
|
|
10657
10879
|
connectorVersion: z.string().optional(),
|
|
10880
|
+
externalAppId: z.string().optional(),
|
|
10881
|
+
externalAppKey: z.string().optional(),
|
|
10658
10882
|
connectionId: z.string().optional(),
|
|
10659
10883
|
connectionKey: z.string().min(1).max(100).optional(),
|
|
10660
10884
|
name: z.string().optional(),
|
|
@@ -10675,6 +10899,15 @@ const ConnectUIOptions = ConnectPayload.omit({ input: true, redirectUri: true })
|
|
|
10675
10899
|
const ListPublicConnectorsQuery = PaginationQuery.merge(IncludeArchivedQuery).extend({
|
|
10676
10900
|
search: z.string().optional(),
|
|
10677
10901
|
});
|
|
10902
|
+
const ListConnectorsQuery = z.object({
|
|
10903
|
+
limit: z.coerce.number().optional(),
|
|
10904
|
+
cursor: z.string().optional(),
|
|
10905
|
+
workspaceId: z.string().optional().describe('[INTERNAL] Legacy field for backward compatibility'),
|
|
10906
|
+
search: z.string().optional(),
|
|
10907
|
+
appUuid: z.string().optional(),
|
|
10908
|
+
externalAppId: z.string().optional(),
|
|
10909
|
+
includeArchived: zodBooleanCoercion().optional(),
|
|
10910
|
+
});
|
|
10678
10911
|
|
|
10679
10912
|
const DataSourceApiResponse = BaseDataSource.extend({
|
|
10680
10913
|
integration: BaseIntegration.optional(),
|
|
@@ -10763,6 +10996,27 @@ const ListExternalAppsQuery = PaginationQuery.merge(IncludeArchivedQuery).extend
|
|
|
10763
10996
|
isFlag: true,
|
|
10764
10997
|
}),
|
|
10765
10998
|
});
|
|
10999
|
+
const CreateExternalAppRequest = z.object({
|
|
11000
|
+
key: z.string().min(1).describe('Machine key (e.g., "attio"). Unique per workspace.'),
|
|
11001
|
+
name: z.string().min(1).describe('Human-readable app name (e.g., "Attio").'),
|
|
11002
|
+
appUri: z.url().optional().describe('App\'s main URL (e.g., "https://attio.com").'),
|
|
11003
|
+
logoUri: z.url().optional(),
|
|
11004
|
+
categories: z.array(z.string()).optional().describe('[INTERNAL] Categorization tags used by the Universe catalog.'),
|
|
11005
|
+
defaultConnectorId: z
|
|
11006
|
+
.string()
|
|
11007
|
+
.optional()
|
|
11008
|
+
.describe('[INTERNAL] Connector ID surfaced as the default for this app in the Universe catalog.'),
|
|
11009
|
+
basePackageId: z.string().optional().describe('[INTERNAL] Base package ID this app is derived from.'),
|
|
11010
|
+
hasFreeTestAccount: z.boolean().nullable().optional().describe('[INTERNAL] Whether the app has a free test account.'),
|
|
11011
|
+
freeTestAccountGuide: z.string().optional().describe('[INTERNAL] Guide for obtaining a free test account.'),
|
|
11012
|
+
freeTestAccountGuideVerifiedAt: z.iso
|
|
11013
|
+
.datetime()
|
|
11014
|
+
.nullable()
|
|
11015
|
+
.optional()
|
|
11016
|
+
.describe('[INTERNAL] When the free test account guide was last verified.'),
|
|
11017
|
+
tenantId: z.string().optional(),
|
|
11018
|
+
});
|
|
11019
|
+
const UpdateExternalAppRequest = CreateExternalAppRequest.partial();
|
|
10766
11020
|
|
|
10767
11021
|
const ExternalEvent = BaseExternalEvent.extend({
|
|
10768
11022
|
appliedToIntegrations: AppliedToIntegrations(BaseExternalEvent).optional(),
|
|
@@ -10896,7 +11150,7 @@ const FindFlowRunsResponse = z.object({
|
|
|
10896
11150
|
cursor: z.string().optional(),
|
|
10897
11151
|
});
|
|
10898
11152
|
|
|
10899
|
-
const CreateIntegrationRequest = IntegrationEditableProperties;
|
|
11153
|
+
const CreateIntegrationRequest = IntegrationEditableProperties.merge(IntentProperties);
|
|
10900
11154
|
const UpdateIntegrationRequest = IntegrationEditableProperties.partial();
|
|
10901
11155
|
const FindIntegrationsQuery = z
|
|
10902
11156
|
.object({
|
|
@@ -10913,6 +11167,10 @@ const FindIntegrationsQuery = z
|
|
|
10913
11167
|
.number()
|
|
10914
11168
|
.optional()
|
|
10915
11169
|
.describe('Override auto-generate integrations from web search: 1 to enable, 0 to disable'),
|
|
11170
|
+
all: z.coerce
|
|
11171
|
+
.number()
|
|
11172
|
+
.optional()
|
|
11173
|
+
.describe('Enable all auto-generation sources (connectors, external apps, web search) regardless of workspace settings or per-source flags'),
|
|
10916
11174
|
})
|
|
10917
11175
|
.merge(PaginationQuery)
|
|
10918
11176
|
.merge(SearchQuery)
|
|
@@ -10936,12 +11194,12 @@ const IntegrationApiResponse = BaseIntegration.extend({
|
|
|
10936
11194
|
.array(IntegrationAuthOption)
|
|
10937
11195
|
.optional()
|
|
10938
11196
|
.describe('[INTERNAL] Deprecated: Use POST /connectors/:id/generate-options instead'),
|
|
10939
|
-
});
|
|
10940
|
-
const IntegrationListItem = IntegrationApiResponse.extend({
|
|
10941
11197
|
id: z.string().optional(),
|
|
10942
11198
|
logoUri: z.string().optional(),
|
|
10943
11199
|
appUri: z.string().optional(),
|
|
11200
|
+
isConnected: z.boolean().optional(),
|
|
10944
11201
|
});
|
|
11202
|
+
const IntegrationListItem = IntegrationApiResponse;
|
|
10945
11203
|
|
|
10946
11204
|
const PackageElementApi = z.object({
|
|
10947
11205
|
id: z.string(),
|
|
@@ -10989,7 +11247,7 @@ const CheckpointApiResponse = z.object({
|
|
|
10989
11247
|
checkpointNumber: z.number(),
|
|
10990
11248
|
snapshot: z.record(z.string(), z.unknown()),
|
|
10991
11249
|
createdAt: z.string(),
|
|
10992
|
-
|
|
11250
|
+
asyncRequestId: z.string().optional(),
|
|
10993
11251
|
metadata: z.record(z.string(), z.unknown()).optional(),
|
|
10994
11252
|
});
|
|
10995
11253
|
const CheckpointDiffOperationSchema = z.object({
|
|
@@ -11321,6 +11579,13 @@ const ListExternalEventLogRecordsQuery = PaginationQuery.extend({
|
|
|
11321
11579
|
filterTitle: 'Event Subscription',
|
|
11322
11580
|
referenceElementType: WorkspaceElementType.ExternalEventSubscription,
|
|
11323
11581
|
}),
|
|
11582
|
+
externalEventTypeId: z
|
|
11583
|
+
.string()
|
|
11584
|
+
.optional()
|
|
11585
|
+
.meta({
|
|
11586
|
+
filterTitle: 'External Event Type',
|
|
11587
|
+
referenceElementType: WorkspaceElementType.ExternalEventType,
|
|
11588
|
+
}),
|
|
11324
11589
|
status: z
|
|
11325
11590
|
.enum(ExternalEventLogStatus)
|
|
11326
11591
|
.optional()
|
|
@@ -11472,6 +11737,13 @@ const ListExternalEventSubscriptionsQuery = PaginationQuery.merge(IncludeArchive
|
|
|
11472
11737
|
externalAppId: z.string().optional().meta({
|
|
11473
11738
|
hidden: true,
|
|
11474
11739
|
}),
|
|
11740
|
+
externalEventTypeId: z
|
|
11741
|
+
.string()
|
|
11742
|
+
.optional()
|
|
11743
|
+
.meta({
|
|
11744
|
+
filterTitle: 'External Event Type',
|
|
11745
|
+
referenceElementType: WorkspaceElementType.ExternalEventType,
|
|
11746
|
+
}),
|
|
11475
11747
|
status: z
|
|
11476
11748
|
.enum(ExternalEventSubscriptionStatus)
|
|
11477
11749
|
.optional()
|
|
@@ -11479,11 +11751,56 @@ const ListExternalEventSubscriptionsQuery = PaginationQuery.merge(IncludeArchive
|
|
|
11479
11751
|
filterTitle: 'Status',
|
|
11480
11752
|
}),
|
|
11481
11753
|
});
|
|
11754
|
+
const CreateExternalEventSubscriptionRequest = z.object({
|
|
11755
|
+
connectionId: z.string(),
|
|
11756
|
+
externalEventTypeId: z.string(),
|
|
11757
|
+
});
|
|
11482
11758
|
const ExternalEventSubscriptionApiResponse = BaseExternalEventSubscription.extend({
|
|
11483
11759
|
user: BaseCustomer.optional(),
|
|
11484
11760
|
connection: BaseConnection.optional(),
|
|
11485
11761
|
integration: BaseIntegration.optional(),
|
|
11486
11762
|
});
|
|
11763
|
+
const PatchExternalEventSubscriptionRequest = z.object({
|
|
11764
|
+
webhookUri: z.url().or(z.literal('')).optional(),
|
|
11765
|
+
});
|
|
11766
|
+
|
|
11767
|
+
const CreateExternalEventTypeRequest = ExternalEventTypeEditableProperties.extend({
|
|
11768
|
+
name: z.string(),
|
|
11769
|
+
});
|
|
11770
|
+
const UpdateExternalEventTypeRequest = ExternalEventTypeEditableProperties;
|
|
11771
|
+
const FindExternalEventTypesQuery = FindIntegrationLevelMembraneInterfaceQuery.extend({
|
|
11772
|
+
isUniversal: zodBooleanCoercion()
|
|
11773
|
+
.optional()
|
|
11774
|
+
.meta({
|
|
11775
|
+
filterTitle: 'Is Universal',
|
|
11776
|
+
isFlag: true,
|
|
11777
|
+
}),
|
|
11778
|
+
externalAppId: z
|
|
11779
|
+
.string()
|
|
11780
|
+
.optional()
|
|
11781
|
+
.meta({
|
|
11782
|
+
filterTitle: 'External App',
|
|
11783
|
+
referenceElementType: WorkspaceElementType.App,
|
|
11784
|
+
}),
|
|
11785
|
+
tenantId: z
|
|
11786
|
+
.string()
|
|
11787
|
+
.optional()
|
|
11788
|
+
.meta({
|
|
11789
|
+
filterTitle: 'Tenant',
|
|
11790
|
+
referenceElementType: WorkspaceElementType.Customer,
|
|
11791
|
+
}),
|
|
11792
|
+
parentId: z
|
|
11793
|
+
.string()
|
|
11794
|
+
.optional()
|
|
11795
|
+
.meta({ hidden: true }),
|
|
11796
|
+
universalParentId: z
|
|
11797
|
+
.string()
|
|
11798
|
+
.optional()
|
|
11799
|
+
.meta({ hidden: true }),
|
|
11800
|
+
});
|
|
11801
|
+
const ExternalEventTypeApiResponse = BaseExternalEventType.extend({
|
|
11802
|
+
appliedToIntegrations: AppliedToIntegrations(BaseExternalEventType).optional(),
|
|
11803
|
+
});
|
|
11487
11804
|
|
|
11488
11805
|
const ListAppEventLogRecordsQuery = CommonListElementsQuery.extend({
|
|
11489
11806
|
tenantId: z
|
|
@@ -11620,6 +11937,13 @@ const ListIncomingWebhooksQuery = PaginationQuery.extend({
|
|
|
11620
11937
|
filterTitle: 'Connection',
|
|
11621
11938
|
referenceElementType: WorkspaceElementType.Connection,
|
|
11622
11939
|
}),
|
|
11940
|
+
subscriptionId: z
|
|
11941
|
+
.string()
|
|
11942
|
+
.optional()
|
|
11943
|
+
.meta({
|
|
11944
|
+
filterTitle: 'Subscription',
|
|
11945
|
+
referenceElementType: WorkspaceElementType.ExternalEventSubscription,
|
|
11946
|
+
}),
|
|
11623
11947
|
status: z
|
|
11624
11948
|
.enum(IncomingWebhooksState)
|
|
11625
11949
|
.optional()
|
|
@@ -11950,6 +12274,7 @@ const AI_GATEWAY_SUPPORTED_MODELS = [
|
|
|
11950
12274
|
{ id: 'anthropic/claude-opus-4.6', name: 'Claude Opus 4.6' },
|
|
11951
12275
|
{ id: 'anthropic/claude-sonnet-4.5', name: 'Claude Sonnet 4.5' },
|
|
11952
12276
|
{ id: 'anthropic/claude-opus-4.5', name: 'Claude Opus 4.5' },
|
|
12277
|
+
{ id: 'anthropic/claude-haiku-4.5', name: 'Claude Haiku 4.5' },
|
|
11953
12278
|
{ id: 'openai/gpt-5.2', name: 'GPT-5.2' },
|
|
11954
12279
|
{ id: 'openai/gpt-5-nano', name: 'GPT-5 Nano' },
|
|
11955
12280
|
{ id: 'google/gemini-3-pro-preview', name: 'Gemini 3 Pro' },
|
|
@@ -11996,8 +12321,8 @@ const AgentSession = z.object({
|
|
|
11996
12321
|
id: z.string(),
|
|
11997
12322
|
workspaceId: z.string(),
|
|
11998
12323
|
orgWorkspaceId: z.string().optional(),
|
|
11999
|
-
workspaceElementType: z.enum(WorkspaceElementType),
|
|
12000
|
-
workspaceElementId: z.string(),
|
|
12324
|
+
workspaceElementType: z.enum(WorkspaceElementType).optional(),
|
|
12325
|
+
workspaceElementId: z.string().optional(),
|
|
12001
12326
|
type: z.string(),
|
|
12002
12327
|
status: z.enum(AgentSessionStatus),
|
|
12003
12328
|
prompt: z.string(),
|
|
@@ -12012,6 +12337,8 @@ const AgentSession = z.object({
|
|
|
12012
12337
|
hasWorker: z.boolean(),
|
|
12013
12338
|
isExternal: z.boolean().optional(),
|
|
12014
12339
|
agentName: z.enum(AgentName).optional(),
|
|
12340
|
+
agentHarnessId: z.string().optional(),
|
|
12341
|
+
agentHarnessSnapshotId: z.string().optional(),
|
|
12015
12342
|
output: z.record(z.string(), z.unknown()).optional(),
|
|
12016
12343
|
createdAt: z.iso.datetime(),
|
|
12017
12344
|
updatedAt: z.iso.datetime(),
|
|
@@ -12028,6 +12355,7 @@ const CreateAgentSession = z.object({
|
|
|
12028
12355
|
isExternal: z.boolean().optional(),
|
|
12029
12356
|
modelId: AIGatewaySupportedModelIdSchema.optional(),
|
|
12030
12357
|
agentName: z.enum(AgentName).optional(),
|
|
12358
|
+
agentHarnessId: z.string().min(1).optional(),
|
|
12031
12359
|
promptAttachments: z.array(AgentSessionAttachment).optional(),
|
|
12032
12360
|
});
|
|
12033
12361
|
const AgentSessionInputSchema = z.object({
|
|
@@ -12171,6 +12499,8 @@ const WorkspaceElementSpecs = {
|
|
|
12171
12499
|
editablePropertiesSchema: IntegrationEditableProperties,
|
|
12172
12500
|
exportPropertiesSchema: IntegrationExportProperties,
|
|
12173
12501
|
hasKey: true,
|
|
12502
|
+
isAgentic: true,
|
|
12503
|
+
agentName: AgentName.CONNECTION_BUILDING,
|
|
12174
12504
|
relatedIntegrationLayerElements: [
|
|
12175
12505
|
WorkspaceElementType.Connection,
|
|
12176
12506
|
WorkspaceElementType.Package,
|
|
@@ -12425,8 +12755,8 @@ const WorkspaceElementSpecs = {
|
|
|
12425
12755
|
[WorkspaceElementType.AppEventType]: {
|
|
12426
12756
|
type: WorkspaceElementType.AppEventType,
|
|
12427
12757
|
apiPath: 'app-event-types',
|
|
12428
|
-
name: '
|
|
12429
|
-
namePlural: '
|
|
12758
|
+
name: 'Internal Event Type',
|
|
12759
|
+
namePlural: 'Internal Event Types',
|
|
12430
12760
|
isMembraneInterface: true,
|
|
12431
12761
|
exportPropertiesSchema: AppEventTypeExportProperties,
|
|
12432
12762
|
editablePropertiesSchema: AppEventTypeEditableProperties,
|
|
@@ -12438,8 +12768,8 @@ const WorkspaceElementSpecs = {
|
|
|
12438
12768
|
type: WorkspaceElementType.AppEventSubscription,
|
|
12439
12769
|
apiPath: 'app-event-subscriptions',
|
|
12440
12770
|
collectionName: 'app-event-subscriptions',
|
|
12441
|
-
name: '
|
|
12442
|
-
namePlural: '
|
|
12771
|
+
name: 'Internal Event Subscription',
|
|
12772
|
+
namePlural: 'Internal Event Subscriptions',
|
|
12443
12773
|
isMembraneInterface: true,
|
|
12444
12774
|
isProOnly: true,
|
|
12445
12775
|
statsKey: 'appEventSubscriptions',
|
|
@@ -12447,8 +12777,8 @@ const WorkspaceElementSpecs = {
|
|
|
12447
12777
|
[WorkspaceElementType.AppEventLogRecord]: {
|
|
12448
12778
|
type: WorkspaceElementType.AppEventLogRecord,
|
|
12449
12779
|
apiPath: 'app-events',
|
|
12450
|
-
name: '
|
|
12451
|
-
namePlural: '
|
|
12780
|
+
name: 'Internal Event Log Record',
|
|
12781
|
+
namePlural: 'Internal Event Log Records',
|
|
12452
12782
|
isProOnly: true,
|
|
12453
12783
|
statsKey: 'appEvents',
|
|
12454
12784
|
},
|
|
@@ -12502,9 +12832,27 @@ const WorkspaceElementSpecs = {
|
|
|
12502
12832
|
isProOnly: true,
|
|
12503
12833
|
statsKey: 'externalEventPulls',
|
|
12504
12834
|
},
|
|
12505
|
-
[WorkspaceElementType.
|
|
12506
|
-
type: WorkspaceElementType.
|
|
12507
|
-
apiPath: 'external-
|
|
12835
|
+
[WorkspaceElementType.ExternalEventType]: {
|
|
12836
|
+
type: WorkspaceElementType.ExternalEventType,
|
|
12837
|
+
apiPath: 'external-event-types',
|
|
12838
|
+
collectionName: 'external-event-types',
|
|
12839
|
+
name: 'External Event Type',
|
|
12840
|
+
namePlural: 'External Event Types',
|
|
12841
|
+
isMembraneInterface: true,
|
|
12842
|
+
isIntegrationLevel: true,
|
|
12843
|
+
hasParentChildRelationship: true,
|
|
12844
|
+
parentFieldKey: 'parentId',
|
|
12845
|
+
apiResponseSchema: ExternalEventTypeApiResponse,
|
|
12846
|
+
findQuerySchema: FindExternalEventTypesQuery,
|
|
12847
|
+
editablePropertiesSchema: ExternalEventTypeEditableProperties,
|
|
12848
|
+
exportPropertiesSchema: ExternalEventTypeExportProperties,
|
|
12849
|
+
hasKey: true,
|
|
12850
|
+
hasUuid: true,
|
|
12851
|
+
statsKey: 'externalEventTypes',
|
|
12852
|
+
},
|
|
12853
|
+
[WorkspaceElementType.ExternalApiLogRecord]: {
|
|
12854
|
+
type: WorkspaceElementType.ExternalApiLogRecord,
|
|
12855
|
+
apiPath: 'external-api-logs',
|
|
12508
12856
|
name: 'External API Log Record',
|
|
12509
12857
|
namePlural: 'External API Log Records',
|
|
12510
12858
|
statsKey: 'externalApiLogs',
|
|
@@ -12532,6 +12880,30 @@ const WorkspaceElementSpecs = {
|
|
|
12532
12880
|
namePlural: 'Connected Products',
|
|
12533
12881
|
hasKey: true,
|
|
12534
12882
|
},
|
|
12883
|
+
[WorkspaceElementType.AgentHarness]: {
|
|
12884
|
+
type: WorkspaceElementType.AgentHarness,
|
|
12885
|
+
apiPath: 'agent/harness',
|
|
12886
|
+
collectionName: 'agent-harnesses',
|
|
12887
|
+
name: 'Agent Harness',
|
|
12888
|
+
namePlural: 'Agent Harnesses',
|
|
12889
|
+
hasKey: true,
|
|
12890
|
+
},
|
|
12891
|
+
[WorkspaceElementType.AgentSkill]: {
|
|
12892
|
+
type: WorkspaceElementType.AgentSkill,
|
|
12893
|
+
apiPath: 'agent/skills',
|
|
12894
|
+
collectionName: 'agent-skills',
|
|
12895
|
+
name: 'Agent Skill',
|
|
12896
|
+
namePlural: 'Agent Skills',
|
|
12897
|
+
hasKey: true,
|
|
12898
|
+
},
|
|
12899
|
+
[WorkspaceElementType.AgentInstruction]: {
|
|
12900
|
+
type: WorkspaceElementType.AgentInstruction,
|
|
12901
|
+
apiPath: 'agent/instructions',
|
|
12902
|
+
collectionName: 'agent-instructions',
|
|
12903
|
+
name: 'Agent Instruction',
|
|
12904
|
+
namePlural: 'Agent Instructions',
|
|
12905
|
+
hasKey: true,
|
|
12906
|
+
},
|
|
12535
12907
|
};
|
|
12536
12908
|
function getEditablePathsForElementType(elementType) {
|
|
12537
12909
|
return getEditablePathsForElementType$1(WorkspaceElementSpecs, elementType);
|
|
@@ -12591,6 +12963,11 @@ function getConnectorVersionPath(connectorUuid, version) {
|
|
|
12591
12963
|
const versionDir = version === CONNECTOR_VERSION_DEVELOPMENT ? 'development' : version;
|
|
12592
12964
|
return `${connectorsPath}/${connectorUuid}/${versionDir}/src.zip`;
|
|
12593
12965
|
}
|
|
12966
|
+
function getConnectorVersionSpecPath(connectorUuid, version) {
|
|
12967
|
+
const connectorsPath = WorkspaceElementSpecs[WorkspaceElementType.Connector].apiPath;
|
|
12968
|
+
const versionDir = version === CONNECTOR_VERSION_DEVELOPMENT ? 'development' : version;
|
|
12969
|
+
return `${connectorsPath}/${connectorUuid}/${versionDir}/spec.yml`;
|
|
12970
|
+
}
|
|
12594
12971
|
|
|
12595
12972
|
class SelfAccessor {
|
|
12596
12973
|
constructor(client) {
|
|
@@ -13546,12 +13923,6 @@ const GenerateWorkspaceAccessTokenRequest = z.object({
|
|
|
13546
13923
|
const GenerateWorkspaceAccessTokenResponse = z.object({
|
|
13547
13924
|
token: z.string().describe('The generated access token'),
|
|
13548
13925
|
});
|
|
13549
|
-
const ListWorkspacesQuery = z
|
|
13550
|
-
.object({
|
|
13551
|
-
orgId: z.string().optional().describe('Filter workspaces by organization ID'),
|
|
13552
|
-
workspaceKey: z.string().optional().describe('Filter workspaces by workspace key'),
|
|
13553
|
-
})
|
|
13554
|
-
.merge(IncludeArchivedQuery);
|
|
13555
13926
|
const GetWorkspaceQuery = IncludeArchivedQuery;
|
|
13556
13927
|
const MembraneCredentials = z.object({
|
|
13557
13928
|
apiUri: z.string().describe('Uri for Membrane API'),
|
|
@@ -13616,7 +13987,7 @@ function compareWorkspaceExports(baseExport, targetExport, options = { includeDe
|
|
|
13616
13987
|
[WorkspaceElementChangeType.UPDATE]: new Set(),
|
|
13617
13988
|
[WorkspaceElementChangeType.DELETE]: new Set(),
|
|
13618
13989
|
};
|
|
13619
|
-
const
|
|
13990
|
+
const sourceUuidByTargetUuid = new Map();
|
|
13620
13991
|
const diffs = [];
|
|
13621
13992
|
const integrationMap = buildIntegrationsMap([
|
|
13622
13993
|
...(baseExport[WorkspaceElementType.Integration] || []),
|
|
@@ -13643,11 +14014,46 @@ function compareWorkspaceExports(baseExport, targetExport, options = { includeDe
|
|
|
13643
14014
|
allSelectors.add(selector);
|
|
13644
14015
|
}
|
|
13645
14016
|
}
|
|
14017
|
+
const baseSelectorByUuid = new Map();
|
|
14018
|
+
for (const [selector, base] of baseMap) {
|
|
14019
|
+
if (base.element.uuid)
|
|
14020
|
+
baseSelectorByUuid.set(base.element.uuid, selector);
|
|
14021
|
+
}
|
|
14022
|
+
const pairs = [];
|
|
14023
|
+
const uuidPairedBaseSelectors = new Set();
|
|
14024
|
+
const uuidPairedTargetSelectors = new Set();
|
|
14025
|
+
for (const [selector, target] of targetMap) {
|
|
14026
|
+
const uuid = target.element.uuid;
|
|
14027
|
+
if (!uuid)
|
|
14028
|
+
continue;
|
|
14029
|
+
const baseSelector = baseSelectorByUuid.get(uuid);
|
|
14030
|
+
if (baseSelector === undefined || uuidPairedBaseSelectors.has(baseSelector))
|
|
14031
|
+
continue;
|
|
14032
|
+
const base = baseMap.get(baseSelector);
|
|
14033
|
+
if (base.type !== target.type)
|
|
14034
|
+
continue;
|
|
14035
|
+
pairs.push({ base, target });
|
|
14036
|
+
uuidPairedBaseSelectors.add(baseSelector);
|
|
14037
|
+
uuidPairedTargetSelectors.add(selector);
|
|
14038
|
+
}
|
|
13646
14039
|
for (const selector of allSelectors) {
|
|
13647
14040
|
const base = baseMap.get(selector);
|
|
13648
14041
|
const target = targetMap.get(selector);
|
|
14042
|
+
const baseFree = base !== undefined && !uuidPairedBaseSelectors.has(selector);
|
|
14043
|
+
const targetFree = target !== undefined && !uuidPairedTargetSelectors.has(selector);
|
|
14044
|
+
if (baseFree && targetFree) {
|
|
14045
|
+
pairs.push({ base, target });
|
|
14046
|
+
}
|
|
14047
|
+
else if (baseFree) {
|
|
14048
|
+
pairs.push({ base });
|
|
14049
|
+
}
|
|
14050
|
+
else if (targetFree) {
|
|
14051
|
+
pairs.push({ target });
|
|
14052
|
+
}
|
|
14053
|
+
}
|
|
14054
|
+
for (const { base, target } of pairs) {
|
|
13649
14055
|
if (base && target && base.element.uuid !== target.element.uuid) {
|
|
13650
|
-
|
|
14056
|
+
sourceUuidByTargetUuid.set(target.element.uuid, base.element.uuid);
|
|
13651
14057
|
}
|
|
13652
14058
|
const change = compareElementExports(base === null || base === void 0 ? void 0 : base.element, target === null || target === void 0 ? void 0 : target.element);
|
|
13653
14059
|
if (options.includeDeletions === false && (change === null || change === void 0 ? void 0 : change.type) === WorkspaceElementChangeType.DELETE) {
|
|
@@ -13662,12 +14068,15 @@ function compareWorkspaceExports(baseExport, targetExport, options = { includeDe
|
|
|
13662
14068
|
changes[change.uuid] = { elementType: subject.type, path };
|
|
13663
14069
|
comparison[change.type].add(change.uuid);
|
|
13664
14070
|
if (options.includeDiff) {
|
|
14071
|
+
const basePath = base
|
|
14072
|
+
? getMembraneElementPath(base.type, base.element.key, getIntegrationIdentifier(base.element, integrationMap))
|
|
14073
|
+
: path;
|
|
13665
14074
|
const baseYaml = base ? yaml.dump(base.element, { sortKeys: true }) : '';
|
|
13666
14075
|
const targetYaml = target ? yaml.dump(target.element, { sortKeys: true }) : '';
|
|
13667
|
-
diffs.push(createTwoFilesPatch(`a/${
|
|
14076
|
+
diffs.push(createTwoFilesPatch(`a/${basePath}`, `b/${path}`, baseYaml, targetYaml));
|
|
13668
14077
|
}
|
|
13669
14078
|
}
|
|
13670
|
-
const result = { comparison, changes,
|
|
14079
|
+
const result = { comparison, changes, sourceUuidByTargetUuid };
|
|
13671
14080
|
if (options.includeDiff) {
|
|
13672
14081
|
result.diff = diffs.join('\n').trim();
|
|
13673
14082
|
}
|
|
@@ -13694,6 +14103,64 @@ function compareElementExports(baseElement, targetElement) {
|
|
|
13694
14103
|
}
|
|
13695
14104
|
return undefined;
|
|
13696
14105
|
}
|
|
14106
|
+
function emptyComparisonResult() {
|
|
14107
|
+
return {
|
|
14108
|
+
comparison: {
|
|
14109
|
+
[WorkspaceElementChangeType.CREATE]: new Set(),
|
|
14110
|
+
[WorkspaceElementChangeType.UPDATE]: new Set(),
|
|
14111
|
+
[WorkspaceElementChangeType.DELETE]: new Set(),
|
|
14112
|
+
},
|
|
14113
|
+
changes: {},
|
|
14114
|
+
sourceUuidByTargetUuid: new Map(),
|
|
14115
|
+
};
|
|
14116
|
+
}
|
|
14117
|
+
function mergeComparisons(dest, src) {
|
|
14118
|
+
for (const changeType of Object.values(WorkspaceElementChangeType)) {
|
|
14119
|
+
for (const uuid of src.comparison[changeType])
|
|
14120
|
+
dest.comparison[changeType].add(uuid);
|
|
14121
|
+
}
|
|
14122
|
+
Object.assign(dest.changes, src.changes);
|
|
14123
|
+
for (const [k, v] of src.sourceUuidByTargetUuid)
|
|
14124
|
+
dest.sourceUuidByTargetUuid.set(k, v);
|
|
14125
|
+
if (src.diff)
|
|
14126
|
+
dest.diff = dest.diff ? `${dest.diff}\n${src.diff}` : src.diff;
|
|
14127
|
+
return dest;
|
|
14128
|
+
}
|
|
14129
|
+
function compareElementMaps(baseElements, targetElements, type, options = { includeDeletions: true }) {
|
|
14130
|
+
const changes = {};
|
|
14131
|
+
const comparison = {
|
|
14132
|
+
[WorkspaceElementChangeType.CREATE]: new Set(),
|
|
14133
|
+
[WorkspaceElementChangeType.UPDATE]: new Set(),
|
|
14134
|
+
[WorkspaceElementChangeType.DELETE]: new Set(),
|
|
14135
|
+
};
|
|
14136
|
+
const sourceUuidByTargetUuid = new Map();
|
|
14137
|
+
const diffs = [];
|
|
14138
|
+
const allPaths = new Set([...baseElements.keys(), ...targetElements.keys()]);
|
|
14139
|
+
for (const path of allPaths) {
|
|
14140
|
+
const base = baseElements.get(path);
|
|
14141
|
+
const target = targetElements.get(path);
|
|
14142
|
+
if (base && target && base.uuid !== target.uuid) {
|
|
14143
|
+
sourceUuidByTargetUuid.set(target.uuid, base.uuid);
|
|
14144
|
+
}
|
|
14145
|
+
const change = compareElementExports(base, target);
|
|
14146
|
+
if (options.includeDeletions === false && (change === null || change === void 0 ? void 0 : change.type) === WorkspaceElementChangeType.DELETE)
|
|
14147
|
+
continue;
|
|
14148
|
+
if (!change)
|
|
14149
|
+
continue;
|
|
14150
|
+
changes[change.uuid] = { elementType: type, path };
|
|
14151
|
+
comparison[change.type].add(change.uuid);
|
|
14152
|
+
if (options.includeDiff) {
|
|
14153
|
+
const baseYaml = base ? yaml.dump(base, { sortKeys: true }) : '';
|
|
14154
|
+
const targetYaml = target ? yaml.dump(target, { sortKeys: true }) : '';
|
|
14155
|
+
diffs.push(createTwoFilesPatch(`a/${path}`, `b/${path}`, baseYaml, targetYaml));
|
|
14156
|
+
}
|
|
14157
|
+
}
|
|
14158
|
+
const result = { comparison, changes, sourceUuidByTargetUuid };
|
|
14159
|
+
if (options.includeDiff) {
|
|
14160
|
+
result.diff = diffs.join('\n').trim();
|
|
14161
|
+
}
|
|
14162
|
+
return result;
|
|
14163
|
+
}
|
|
13697
14164
|
function getIntegrationIdentifier(element, integrationMap) {
|
|
13698
14165
|
let integrationIdentifier;
|
|
13699
14166
|
if (element.integrationUuid) {
|
|
@@ -13770,11 +14237,21 @@ var OrgUserRole;
|
|
|
13770
14237
|
OrgUserRole["Member"] = "member";
|
|
13771
14238
|
OrgUserRole["ReadOnly"] = "read-only";
|
|
13772
14239
|
})(OrgUserRole || (OrgUserRole = {}));
|
|
14240
|
+
var UserWorkspaceRole;
|
|
14241
|
+
(function (UserWorkspaceRole) {
|
|
14242
|
+
UserWorkspaceRole["Admin"] = "admin";
|
|
14243
|
+
UserWorkspaceRole["Member"] = "member";
|
|
14244
|
+
UserWorkspaceRole["ReadOnly"] = "read-only";
|
|
14245
|
+
})(UserWorkspaceRole || (UserWorkspaceRole = {}));
|
|
13773
14246
|
var OrgUserStatus;
|
|
13774
14247
|
(function (OrgUserStatus) {
|
|
13775
14248
|
OrgUserStatus["Invited"] = "invited";
|
|
13776
14249
|
OrgUserStatus["Active"] = "active";
|
|
13777
14250
|
})(OrgUserStatus || (OrgUserStatus = {}));
|
|
14251
|
+
const UserWorkspaceAccess = z.object({
|
|
14252
|
+
workspaceId: z.string(),
|
|
14253
|
+
role: z.enum(UserWorkspaceRole),
|
|
14254
|
+
});
|
|
13778
14255
|
const OrgLimits = z.object({
|
|
13779
14256
|
numberOfWorkspaces: z.number().optional(),
|
|
13780
14257
|
todayUsage: z.number().optional(),
|
|
@@ -13824,6 +14301,10 @@ const Org = z.object({
|
|
|
13824
14301
|
engineAutoChargeThreshold: z.number().optional(),
|
|
13825
14302
|
engineAutoChargePurchaseAmount: z.number().optional(),
|
|
13826
14303
|
engineAutoChargeMonthlyLimit: z.number().optional(),
|
|
14304
|
+
currentUserCanLeave: z
|
|
14305
|
+
.boolean()
|
|
14306
|
+
.optional()
|
|
14307
|
+
.describe('[INTERNAL] Whether the current user can leave this org (false if sole admin)'),
|
|
13827
14308
|
});
|
|
13828
14309
|
const EngineCreditsProjectionResponse = z.object({
|
|
13829
14310
|
averageDailyUsage: z.number(),
|
|
@@ -13869,6 +14350,14 @@ const OrgWorkspace = z
|
|
|
13869
14350
|
featureFlags: z.array(z.string()).optional().describe('[INTERNAL] Feature flags'),
|
|
13870
14351
|
logoUri: z.string().optional().describe('URI for the workspace logo'),
|
|
13871
14352
|
membraneInstanceId: z.string().optional().describe('[INTERNAL] Membrane instance ID'),
|
|
14353
|
+
operatorLimits: WorkspaceLimitsSchema.optional().describe('[INTERNAL] Operator-set limit overrides stored on the hub. Mirrored to the instance via PUT /workspaces/:key/limits.'),
|
|
14354
|
+
operatorLimitsSyncedAt: zodDateCoercion()
|
|
14355
|
+
.optional()
|
|
14356
|
+
.describe('[INTERNAL] Last time operatorLimits were successfully mirrored to the owning instance.'),
|
|
14357
|
+
operatorLimitsSyncError: z
|
|
14358
|
+
.string()
|
|
14359
|
+
.optional()
|
|
14360
|
+
.describe('[INTERNAL] Last error message from a failed mirror attempt; cleared after a successful sync.'),
|
|
13872
14361
|
})
|
|
13873
14362
|
.merge(WorkspaceEditableFields);
|
|
13874
14363
|
const OrgWorkspaceUpdateRequest = z
|
|
@@ -13917,6 +14406,7 @@ const CreateOrgRequest = z.object({
|
|
|
13917
14406
|
integrationApps: z.string().optional(),
|
|
13918
14407
|
firstIntegrationUseCase: z.string().optional(),
|
|
13919
14408
|
referralSource: z.string().optional(),
|
|
14409
|
+
useCase: z.string().max(1024).optional(),
|
|
13920
14410
|
builder: z.array(z.enum(['me', 'team'])).optional(),
|
|
13921
14411
|
stripeCustomerId: z.string().optional(),
|
|
13922
14412
|
signupSource: z.string().optional(),
|
|
@@ -13932,19 +14422,23 @@ const BaseOrgUser = z.object({
|
|
|
13932
14422
|
role: z.string(),
|
|
13933
14423
|
status: z.string(),
|
|
13934
14424
|
workspaces: z.array(z.string()).optional(),
|
|
14425
|
+
workspacesWithRoles: z.array(UserWorkspaceAccess).optional(),
|
|
13935
14426
|
});
|
|
13936
14427
|
const FullOrgUser = BaseOrgUser.extend({
|
|
13937
14428
|
user: FullPlatformUser,
|
|
13938
14429
|
org: Org,
|
|
14430
|
+
workspaces: z.array(OrgWorkspace).or(z.array(z.string())).optional(),
|
|
13939
14431
|
});
|
|
13940
14432
|
const CreateOrgUserRequest = z.object({
|
|
13941
14433
|
email: z.string(),
|
|
13942
14434
|
workspaces: z.array(z.string()).optional(),
|
|
14435
|
+
workspacesWithRoles: z.array(UserWorkspaceAccess).optional(),
|
|
13943
14436
|
});
|
|
13944
14437
|
const UpdateOrgUserRequest = z.object({
|
|
13945
14438
|
role: z.enum(OrgUserRole).optional(),
|
|
13946
14439
|
status: z.enum(OrgUserStatus).optional(),
|
|
13947
14440
|
workspaces: z.array(z.string()).optional(),
|
|
14441
|
+
workspacesWithRoles: z.array(UserWorkspaceAccess).optional(),
|
|
13948
14442
|
});
|
|
13949
14443
|
const OrgInvitation = z.object({
|
|
13950
14444
|
id: z.string(),
|
|
@@ -14159,6 +14653,14 @@ class ElementInstanceAccessor {
|
|
|
14159
14653
|
}
|
|
14160
14654
|
}
|
|
14161
14655
|
|
|
14656
|
+
const warned = new Set();
|
|
14657
|
+
function warnDeprecatedOnce(key, message) {
|
|
14658
|
+
if (warned.has(key))
|
|
14659
|
+
return;
|
|
14660
|
+
warned.add(key);
|
|
14661
|
+
console.warn(`[Membrane deprecation] ${message}`);
|
|
14662
|
+
}
|
|
14663
|
+
|
|
14162
14664
|
class ConnectionLevelElementAccessor {
|
|
14163
14665
|
constructor(client, connectionSelector, selector, elementKey, query) {
|
|
14164
14666
|
this.client = client;
|
|
@@ -14267,6 +14769,7 @@ class ActionAccessor extends ElementAccessor {
|
|
|
14267
14769
|
return await this.options.client.post(this.getPath('reset'));
|
|
14268
14770
|
}
|
|
14269
14771
|
async run(input, options) {
|
|
14772
|
+
warnDeprecatedOnce('ActionAccessor.run', 'ActionAccessor.run() is deprecated. Use POST /act with { action: { id } } or { integrationKey, key } instead.');
|
|
14270
14773
|
const queryParams = options
|
|
14271
14774
|
? {
|
|
14272
14775
|
integrationKey: options.integrationKey,
|
|
@@ -14301,6 +14804,7 @@ class ConnectionLevelActionAccessor extends ConnectionLevelElementAccessor {
|
|
|
14301
14804
|
this.query = query;
|
|
14302
14805
|
}
|
|
14303
14806
|
async run(input) {
|
|
14807
|
+
warnDeprecatedOnce('ConnectionLevelActionAccessor.run', 'ConnectionLevelActionAccessor.run() is deprecated. Use POST /act with { action: { id } } or { integrationKey, key } instead.');
|
|
14304
14808
|
return this.client.post(this.uri('/run'), input);
|
|
14305
14809
|
}
|
|
14306
14810
|
}
|
|
@@ -14770,6 +15274,64 @@ async function openIframeWithPost(url, postData, callbacks = {}, { mountTargetSe
|
|
|
14770
15274
|
});
|
|
14771
15275
|
}
|
|
14772
15276
|
|
|
15277
|
+
function routeConnectionEventMessage(message, requestId, handlers) {
|
|
15278
|
+
var _a, _b, _c, _d, _e;
|
|
15279
|
+
if (!isConnectionMessagePayload(message))
|
|
15280
|
+
return;
|
|
15281
|
+
if (message.requestId && message.requestId !== requestId)
|
|
15282
|
+
return;
|
|
15283
|
+
if (message.type === 'newConnectionCreated') {
|
|
15284
|
+
(_a = handlers.onSuccess) === null || _a === void 0 ? void 0 : _a.call(handlers, message.connection);
|
|
15285
|
+
(_b = handlers.onTerminal) === null || _b === void 0 ? void 0 : _b.call(handlers);
|
|
15286
|
+
return;
|
|
15287
|
+
}
|
|
15288
|
+
if (message.type === 'newConnectionFailure') {
|
|
15289
|
+
const error = new MembraneError((_c = message.errorData) !== null && _c !== void 0 ? _c : message.error);
|
|
15290
|
+
if (message.connectionId) {
|
|
15291
|
+
error.data.data = { ...error.data.data, connectionId: message.connectionId };
|
|
15292
|
+
}
|
|
15293
|
+
(_d = handlers.onFailure) === null || _d === void 0 ? void 0 : _d.call(handlers, error);
|
|
15294
|
+
(_e = handlers.onTerminal) === null || _e === void 0 ? void 0 : _e.call(handlers);
|
|
15295
|
+
}
|
|
15296
|
+
}
|
|
15297
|
+
function isConnectionMessagePayload(value) {
|
|
15298
|
+
if (!value || typeof value !== 'object')
|
|
15299
|
+
return false;
|
|
15300
|
+
const m = value;
|
|
15301
|
+
return m.source === 'integration.app' && typeof m.type === 'string';
|
|
15302
|
+
}
|
|
15303
|
+
function createConnectionEventsSubscription(options) {
|
|
15304
|
+
const { apiUri, getToken, requestId, handlers } = options;
|
|
15305
|
+
let eventSource = null;
|
|
15306
|
+
let cancelled = false;
|
|
15307
|
+
const close = () => {
|
|
15308
|
+
cancelled = true;
|
|
15309
|
+
eventSource === null || eventSource === void 0 ? void 0 : eventSource.close();
|
|
15310
|
+
eventSource = null;
|
|
15311
|
+
};
|
|
15312
|
+
Promise.resolve(getToken()).then((token) => {
|
|
15313
|
+
if (cancelled)
|
|
15314
|
+
return;
|
|
15315
|
+
const url = urljoin(apiUri, '/sse/connection-events', requestId) + `?token=${encodeURIComponent(token)}`;
|
|
15316
|
+
try {
|
|
15317
|
+
eventSource = new EventSource(url);
|
|
15318
|
+
eventSource.onmessage = (event) => {
|
|
15319
|
+
let data;
|
|
15320
|
+
try {
|
|
15321
|
+
data = JSON.parse(event.data);
|
|
15322
|
+
}
|
|
15323
|
+
catch (_a) {
|
|
15324
|
+
return;
|
|
15325
|
+
}
|
|
15326
|
+
routeConnectionEventMessage(data, requestId, handlers);
|
|
15327
|
+
};
|
|
15328
|
+
eventSource.onerror = close;
|
|
15329
|
+
}
|
|
15330
|
+
catch (_a) { }
|
|
15331
|
+
});
|
|
15332
|
+
return close;
|
|
15333
|
+
}
|
|
15334
|
+
|
|
14773
15335
|
class DataSourcesAccessor extends ElementListAccessor {
|
|
14774
15336
|
constructor(client) {
|
|
14775
15337
|
super(client, 'data-sources');
|
|
@@ -15175,12 +15737,12 @@ class ConnectionLevelFlowsAccessor extends ConnectionLevelElementsListAccessor {
|
|
|
15175
15737
|
}
|
|
15176
15738
|
}
|
|
15177
15739
|
|
|
15178
|
-
var
|
|
15179
|
-
(function (
|
|
15180
|
-
|
|
15181
|
-
|
|
15182
|
-
|
|
15183
|
-
})(
|
|
15740
|
+
var ConnectionDisplayMode;
|
|
15741
|
+
(function (ConnectionDisplayMode) {
|
|
15742
|
+
ConnectionDisplayMode["IFRAME"] = "iframe";
|
|
15743
|
+
ConnectionDisplayMode["POPUP"] = "popup";
|
|
15744
|
+
ConnectionDisplayMode["REDIRECT"] = "redirect";
|
|
15745
|
+
})(ConnectionDisplayMode || (ConnectionDisplayMode = {}));
|
|
15184
15746
|
class ConnectionsAccessor extends ElementInstanceListAccessor {
|
|
15185
15747
|
constructor(client) {
|
|
15186
15748
|
super(client, 'connections');
|
|
@@ -15230,6 +15792,9 @@ class ConnectionAccessor {
|
|
|
15230
15792
|
async archive() {
|
|
15231
15793
|
return this.client.delete(`/connections/${this.connectionSelector}`);
|
|
15232
15794
|
}
|
|
15795
|
+
async restore() {
|
|
15796
|
+
return this.client.post(`/connections/${this.connectionSelector}/restore`);
|
|
15797
|
+
}
|
|
15233
15798
|
async request(path, data = null) {
|
|
15234
15799
|
const pathWithoutSlash = path.startsWith('/') ? path.slice(1) : path;
|
|
15235
15800
|
return this.client.post(`/connections/${this.connectionSelector}/api/${pathWithoutSlash}`, data);
|
|
@@ -15341,17 +15906,19 @@ class ConnectionProxy {
|
|
|
15341
15906
|
}
|
|
15342
15907
|
}
|
|
15343
15908
|
async function createOrUpdateConnection(options) {
|
|
15344
|
-
const { client, connectionId, connectionKey, integrationKey, integrationId, connectorId, connectorVersion, name, input, connectorParameters, allowMultipleConnections, authOptionKey, connectionRequestId, apiUri, redirectUri, onPopupClosed, } = options !== null && options !== void 0 ? options : {};
|
|
15345
|
-
let connectionType = await detectConnectionType(options);
|
|
15909
|
+
const { client, type, connectionId, connectionKey, integrationKey, integrationId, connectorId, connectorVersion, name, input, connectorParameters, allowMultipleConnections, authOptionKey, connectionRequestId, apiUri, redirectUri, customState, onPopupClosed, lateEvents, } = options !== null && options !== void 0 ? options : {};
|
|
15910
|
+
let connectionType = type === 'mcp' ? ConnectionDisplayMode.POPUP : await detectConnectionType(options);
|
|
15346
15911
|
if (redirectUri) {
|
|
15347
|
-
connectionType =
|
|
15912
|
+
connectionType = ConnectionDisplayMode.REDIRECT;
|
|
15348
15913
|
}
|
|
15349
15914
|
const freshToken = await client.getToken();
|
|
15350
15915
|
const connectPath = 'connect';
|
|
15351
15916
|
return new Promise((resolve, reject) => {
|
|
15917
|
+
var _a, _b;
|
|
15352
15918
|
const requestId = simpleUniqueId() + simpleUniqueId();
|
|
15353
15919
|
const payload = {
|
|
15354
15920
|
token: freshToken,
|
|
15921
|
+
type,
|
|
15355
15922
|
input,
|
|
15356
15923
|
connectorParameters,
|
|
15357
15924
|
integrationKey,
|
|
@@ -15366,26 +15933,54 @@ async function createOrUpdateConnection(options) {
|
|
|
15366
15933
|
connectionRequestId,
|
|
15367
15934
|
requestId,
|
|
15368
15935
|
redirectUri,
|
|
15936
|
+
customState,
|
|
15369
15937
|
};
|
|
15370
15938
|
let cancelCheckInterval;
|
|
15371
|
-
|
|
15372
|
-
|
|
15373
|
-
|
|
15374
|
-
|
|
15375
|
-
|
|
15376
|
-
|
|
15377
|
-
|
|
15378
|
-
|
|
15379
|
-
|
|
15380
|
-
|
|
15381
|
-
|
|
15939
|
+
let lateEventsTimeout;
|
|
15940
|
+
let promiseSettled = false;
|
|
15941
|
+
const handlers = {
|
|
15942
|
+
onSuccess: (data) => {
|
|
15943
|
+
var _a;
|
|
15944
|
+
if (promiseSettled) {
|
|
15945
|
+
(_a = lateEvents === null || lateEvents === void 0 ? void 0 : lateEvents.onConnection) === null || _a === void 0 ? void 0 : _a.call(lateEvents, data);
|
|
15946
|
+
}
|
|
15947
|
+
else {
|
|
15948
|
+
promiseSettled = true;
|
|
15949
|
+
resolve(data);
|
|
15950
|
+
}
|
|
15951
|
+
},
|
|
15952
|
+
onFailure: (error) => {
|
|
15953
|
+
var _a;
|
|
15954
|
+
if (promiseSettled) {
|
|
15955
|
+
(_a = lateEvents === null || lateEvents === void 0 ? void 0 : lateEvents.onFailure) === null || _a === void 0 ? void 0 : _a.call(lateEvents, error);
|
|
15956
|
+
}
|
|
15957
|
+
else {
|
|
15958
|
+
promiseSettled = true;
|
|
15959
|
+
reject(error);
|
|
15960
|
+
}
|
|
15961
|
+
},
|
|
15962
|
+
onTerminal: () => cleanup(),
|
|
15963
|
+
};
|
|
15964
|
+
const { stopCrossWindow } = createCrossWindowListener({ requestId, handlers });
|
|
15965
|
+
const stopSSE = createConnectionEventsSubscription({
|
|
15382
15966
|
apiUri: apiUri,
|
|
15967
|
+
getToken: () => freshToken,
|
|
15383
15968
|
requestId,
|
|
15384
|
-
|
|
15385
|
-
handler: eventHandler,
|
|
15969
|
+
handlers,
|
|
15386
15970
|
});
|
|
15971
|
+
if (lateEvents) {
|
|
15972
|
+
lateEventsTimeout = setTimeout(stopSSE, 30 * 60 * 1000);
|
|
15973
|
+
if ((_a = lateEvents.signal) === null || _a === void 0 ? void 0 : _a.aborted) {
|
|
15974
|
+
stopSSE();
|
|
15975
|
+
}
|
|
15976
|
+
else {
|
|
15977
|
+
(_b = lateEvents.signal) === null || _b === void 0 ? void 0 : _b.addEventListener('abort', stopSSE, { once: true });
|
|
15978
|
+
}
|
|
15979
|
+
}
|
|
15387
15980
|
function cleanup() {
|
|
15388
15981
|
clearInterval(cancelCheckInterval);
|
|
15982
|
+
if (lateEventsTimeout)
|
|
15983
|
+
clearTimeout(lateEventsTimeout);
|
|
15389
15984
|
stopCrossWindow();
|
|
15390
15985
|
stopSSE();
|
|
15391
15986
|
}
|
|
@@ -15402,7 +15997,7 @@ async function createOrUpdateConnection(options) {
|
|
|
15402
15997
|
input.value = JSON.stringify(payload);
|
|
15403
15998
|
form.appendChild(input);
|
|
15404
15999
|
document.body.appendChild(form);
|
|
15405
|
-
if (connectionType ===
|
|
16000
|
+
if (connectionType === ConnectionDisplayMode.IFRAME) {
|
|
15406
16001
|
const iframeElement = document.createElement('iframe');
|
|
15407
16002
|
iframeElement.id = targetElementId;
|
|
15408
16003
|
iframeElement.name = targetElementId;
|
|
@@ -15417,12 +16012,12 @@ async function createOrUpdateConnection(options) {
|
|
|
15417
16012
|
form.submit();
|
|
15418
16013
|
document.body.removeChild(form);
|
|
15419
16014
|
}
|
|
15420
|
-
if (connectionType ===
|
|
16015
|
+
if (connectionType === ConnectionDisplayMode.REDIRECT) {
|
|
15421
16016
|
form.target = '_self';
|
|
15422
16017
|
form.submit();
|
|
15423
16018
|
document.body.removeChild(form);
|
|
15424
16019
|
}
|
|
15425
|
-
if (connectionType ===
|
|
16020
|
+
if (connectionType === ConnectionDisplayMode.POPUP) {
|
|
15426
16021
|
const width = Math.min(Math.round(screen.width * 0.7), 1000);
|
|
15427
16022
|
const height = Math.min(Math.round(screen.height * 0.6), 800);
|
|
15428
16023
|
const left = Math.round((screen.width - width) / 2);
|
|
@@ -15443,9 +16038,15 @@ async function createOrUpdateConnection(options) {
|
|
|
15443
16038
|
}, 1000);
|
|
15444
16039
|
cancelCheckInterval = setInterval(() => {
|
|
15445
16040
|
if (popup === null || popup === void 0 ? void 0 : popup.closed) {
|
|
15446
|
-
|
|
15447
|
-
|
|
15448
|
-
|
|
16041
|
+
clearInterval(cancelCheckInterval);
|
|
16042
|
+
stopCrossWindow();
|
|
16043
|
+
if (!lateEvents)
|
|
16044
|
+
stopSSE();
|
|
16045
|
+
if (!promiseSettled) {
|
|
16046
|
+
promiseSettled = true;
|
|
16047
|
+
onPopupClosed === null || onPopupClosed === void 0 ? void 0 : onPopupClosed();
|
|
16048
|
+
resolve(null);
|
|
16049
|
+
}
|
|
15449
16050
|
}
|
|
15450
16051
|
}, 1000);
|
|
15451
16052
|
}
|
|
@@ -15465,64 +16066,21 @@ async function detectConnectionType({ client, authOptionKey, connectorId, connec
|
|
|
15465
16066
|
});
|
|
15466
16067
|
const option = connectionOptions.find((option) => option.key == authOptionKey);
|
|
15467
16068
|
if ((option === null || option === void 0 ? void 0 : option.type) === 'client-credentials') {
|
|
15468
|
-
return
|
|
16069
|
+
return ConnectionDisplayMode.IFRAME;
|
|
15469
16070
|
}
|
|
15470
|
-
return
|
|
16071
|
+
return ConnectionDisplayMode.POPUP;
|
|
15471
16072
|
}
|
|
15472
|
-
const
|
|
15473
|
-
|
|
15474
|
-
|
|
15475
|
-
const message = event.data || {};
|
|
15476
|
-
if (message.source == 'integration.app' && (message.requestId == requestId || !message.requestId)) {
|
|
15477
|
-
if (message.type == 'newConnectionCreated') {
|
|
15478
|
-
onResolve(message.connection);
|
|
15479
|
-
}
|
|
15480
|
-
if (message.type == 'newConnectionFailure') {
|
|
15481
|
-
const error = new MembraneError((_a = message.errorData) !== null && _a !== void 0 ? _a : message.error);
|
|
15482
|
-
if (message.connectionId) {
|
|
15483
|
-
error.data.data = { ...error.data.data, connectionId: message.connectionId };
|
|
15484
|
-
}
|
|
15485
|
-
onReject(error);
|
|
15486
|
-
}
|
|
15487
|
-
onFinally();
|
|
15488
|
-
}
|
|
16073
|
+
const createCrossWindowListener = ({ requestId, handlers, }) => {
|
|
16074
|
+
const listener = (event) => {
|
|
16075
|
+
routeConnectionEventMessage(event.data, requestId, handlers);
|
|
15489
16076
|
};
|
|
15490
|
-
|
|
15491
|
-
const createCrossWindowListener = ({ handler }) => {
|
|
15492
|
-
window.addEventListener('message', handler);
|
|
16077
|
+
window.addEventListener('message', listener);
|
|
15493
16078
|
return {
|
|
15494
16079
|
stopCrossWindow: () => {
|
|
15495
|
-
window.removeEventListener('message',
|
|
16080
|
+
window.removeEventListener('message', listener);
|
|
15496
16081
|
},
|
|
15497
16082
|
};
|
|
15498
16083
|
};
|
|
15499
|
-
const createSSEListener = ({ apiUri, requestId, token, handler, }) => {
|
|
15500
|
-
const sseUrl = urljoin(apiUri, '/sse/connection-events', requestId) + `?token=${encodeURIComponent(token)}`;
|
|
15501
|
-
let eventSource = null;
|
|
15502
|
-
const closeSseConnection = () => {
|
|
15503
|
-
eventSource === null || eventSource === void 0 ? void 0 : eventSource.close();
|
|
15504
|
-
eventSource = null;
|
|
15505
|
-
};
|
|
15506
|
-
try {
|
|
15507
|
-
eventSource = new EventSource(sseUrl);
|
|
15508
|
-
eventSource.onmessage = (event) => {
|
|
15509
|
-
const eventCopy = {
|
|
15510
|
-
...event,
|
|
15511
|
-
data: JSON.parse(event.data),
|
|
15512
|
-
};
|
|
15513
|
-
handler(eventCopy);
|
|
15514
|
-
};
|
|
15515
|
-
eventSource.onerror = () => {
|
|
15516
|
-
closeSseConnection();
|
|
15517
|
-
};
|
|
15518
|
-
}
|
|
15519
|
-
catch (err) {
|
|
15520
|
-
console.error('Error setting up SSE connection:', err);
|
|
15521
|
-
}
|
|
15522
|
-
return {
|
|
15523
|
-
stopSSE: closeSseConnection,
|
|
15524
|
-
};
|
|
15525
|
-
};
|
|
15526
16084
|
|
|
15527
16085
|
class FlowsAccessor extends ElementListAccessor {
|
|
15528
16086
|
constructor(client) {
|
|
@@ -15998,6 +16556,124 @@ const ScenarioTemplate = z.object({
|
|
|
15998
16556
|
handyElements: z.array(HandyScenarioTemplateElement).optional(),
|
|
15999
16557
|
});
|
|
16000
16558
|
|
|
16559
|
+
const AgentInstruction = z.object({
|
|
16560
|
+
id: z.string(),
|
|
16561
|
+
workspaceId: z.string(),
|
|
16562
|
+
name: z.string(),
|
|
16563
|
+
key: z.string(),
|
|
16564
|
+
text: z.string().min(1),
|
|
16565
|
+
revision: z.string().optional(),
|
|
16566
|
+
archivedAt: z.iso.datetime().optional(),
|
|
16567
|
+
createdAt: z.iso.datetime().optional(),
|
|
16568
|
+
updatedAt: z.iso.datetime().optional(),
|
|
16569
|
+
});
|
|
16570
|
+
const CreateAgentInstructionRequest = z.object({
|
|
16571
|
+
name: z.string().min(1),
|
|
16572
|
+
key: z.string().min(1).optional(),
|
|
16573
|
+
text: z.string().min(1),
|
|
16574
|
+
});
|
|
16575
|
+
const UpdateAgentInstructionRequest = CreateAgentInstructionRequest.partial();
|
|
16576
|
+
const FindAgentInstructionQuery = PaginationQuery.merge(SearchQuery).merge(IncludeArchivedQuery);
|
|
16577
|
+
|
|
16578
|
+
const AgentSkill = z.object({
|
|
16579
|
+
id: z.string(),
|
|
16580
|
+
workspaceId: z.string(),
|
|
16581
|
+
name: z.string(),
|
|
16582
|
+
key: z.string(),
|
|
16583
|
+
description: z.string().min(1),
|
|
16584
|
+
body: z.string().min(1),
|
|
16585
|
+
sourceUrl: z.url().optional(),
|
|
16586
|
+
revision: z.string().optional(),
|
|
16587
|
+
archivedAt: z.iso.datetime().optional(),
|
|
16588
|
+
createdAt: z.iso.datetime().optional(),
|
|
16589
|
+
updatedAt: z.iso.datetime().optional(),
|
|
16590
|
+
});
|
|
16591
|
+
const CreateAgentSkillRequest = z.object({
|
|
16592
|
+
name: z.string().min(1),
|
|
16593
|
+
key: z.string().min(1).optional(),
|
|
16594
|
+
description: z.string().min(1),
|
|
16595
|
+
body: z.string().min(1),
|
|
16596
|
+
sourceUrl: z.url().optional(),
|
|
16597
|
+
});
|
|
16598
|
+
const UpdateAgentSkillRequest = CreateAgentSkillRequest.partial();
|
|
16599
|
+
const PreviewAgentSkillSourceRequest = z.object({
|
|
16600
|
+
sourceUrl: z.url(),
|
|
16601
|
+
});
|
|
16602
|
+
const PreviewAgentSkillSourceResponse = z.object({
|
|
16603
|
+
name: z.string().min(1),
|
|
16604
|
+
key: z.string().min(1).optional(),
|
|
16605
|
+
description: z.string().min(1),
|
|
16606
|
+
body: z.string().min(1),
|
|
16607
|
+
sourceUrl: z.url(),
|
|
16608
|
+
});
|
|
16609
|
+
const FindAgentSkillQuery = PaginationQuery.merge(SearchQuery).merge(IncludeArchivedQuery);
|
|
16610
|
+
|
|
16611
|
+
const AgentTool = z.object({
|
|
16612
|
+
id: z.string().min(1),
|
|
16613
|
+
name: z.string().min(1),
|
|
16614
|
+
description: z.string().min(1),
|
|
16615
|
+
enabledByDefault: z.boolean().default(false),
|
|
16616
|
+
});
|
|
16617
|
+
|
|
16618
|
+
const AgentHarnessReferenceList = z.array(z.string());
|
|
16619
|
+
const AgentHarnessReferenceListWithDefault = AgentHarnessReferenceList.default([]);
|
|
16620
|
+
const AgentHarness = z.object({
|
|
16621
|
+
id: z.string(),
|
|
16622
|
+
workspaceId: z.string(),
|
|
16623
|
+
name: z.string(),
|
|
16624
|
+
key: z.string(),
|
|
16625
|
+
description: z.string().optional(),
|
|
16626
|
+
systemPrompt: z.string().optional(),
|
|
16627
|
+
defaultModel: AIGatewaySupportedModelIdSchema,
|
|
16628
|
+
toolIds: AgentHarnessReferenceListWithDefault,
|
|
16629
|
+
skillIds: AgentHarnessReferenceListWithDefault,
|
|
16630
|
+
instructionIds: AgentHarnessReferenceListWithDefault,
|
|
16631
|
+
tools: z.array(AgentTool).default([]),
|
|
16632
|
+
skills: z.array(AgentSkill).default([]),
|
|
16633
|
+
instructions: z.array(AgentInstruction).default([]),
|
|
16634
|
+
revision: z.string().optional(),
|
|
16635
|
+
archivedAt: z.iso.datetime().optional(),
|
|
16636
|
+
createdAt: z.iso.datetime().optional(),
|
|
16637
|
+
updatedAt: z.iso.datetime().optional(),
|
|
16638
|
+
});
|
|
16639
|
+
const CreateAgentHarnessRequest = z.object({
|
|
16640
|
+
name: z.string().min(1),
|
|
16641
|
+
key: z.string().min(1).optional(),
|
|
16642
|
+
description: z.string().optional(),
|
|
16643
|
+
systemPrompt: z.string().optional(),
|
|
16644
|
+
defaultModel: AIGatewaySupportedModelIdSchema,
|
|
16645
|
+
toolIds: AgentHarnessReferenceList.optional(),
|
|
16646
|
+
skillIds: AgentHarnessReferenceList.optional(),
|
|
16647
|
+
instructionIds: AgentHarnessReferenceList.optional(),
|
|
16648
|
+
});
|
|
16649
|
+
const UpdateAgentHarnessRequest = CreateAgentHarnessRequest.partial();
|
|
16650
|
+
const FindAgentHarnessQuery = PaginationQuery.merge(SearchQuery).merge(IncludeArchivedQuery);
|
|
16651
|
+
|
|
16652
|
+
const AgentHarnessSnapshotReferenceList = z.array(z.string()).default([]);
|
|
16653
|
+
const AgentHarnessSnapshot = z.object({
|
|
16654
|
+
id: z.string(),
|
|
16655
|
+
workspaceId: z.string(),
|
|
16656
|
+
agentHarnessId: z.string(),
|
|
16657
|
+
agentHarnessRevision: z.string().optional(),
|
|
16658
|
+
name: z.string(),
|
|
16659
|
+
key: z.string(),
|
|
16660
|
+
description: z.string().optional(),
|
|
16661
|
+
systemPrompt: z.string().default(''),
|
|
16662
|
+
defaultModel: AIGatewaySupportedModelIdSchema,
|
|
16663
|
+
hash: z.string().optional(),
|
|
16664
|
+
toolIds: AgentHarnessSnapshotReferenceList,
|
|
16665
|
+
tools: z.array(AgentTool).default([]),
|
|
16666
|
+
skillIds: AgentHarnessSnapshotReferenceList,
|
|
16667
|
+
skills: z.array(AgentSkill).default([]),
|
|
16668
|
+
instructionIds: AgentHarnessSnapshotReferenceList,
|
|
16669
|
+
instructions: z.array(AgentInstruction).default([]),
|
|
16670
|
+
createdAt: z.iso.datetime().optional(),
|
|
16671
|
+
updatedAt: z.iso.datetime().optional(),
|
|
16672
|
+
});
|
|
16673
|
+
const FindAgentHarnessSnapshotQuery = PaginationQuery.extend({
|
|
16674
|
+
agentHarnessId: z.string().optional(),
|
|
16675
|
+
});
|
|
16676
|
+
|
|
16001
16677
|
function formatSessionCost(cost) {
|
|
16002
16678
|
if (cost === undefined || cost === null)
|
|
16003
16679
|
return '-';
|
|
@@ -16011,11 +16687,12 @@ const SessionCredentials = z.object({
|
|
|
16011
16687
|
});
|
|
16012
16688
|
const SessionParameters = z.object({
|
|
16013
16689
|
id: z.string().optional(),
|
|
16690
|
+
leaseId: z.string().uuid().optional(),
|
|
16014
16691
|
accessToken: z.string().optional(),
|
|
16015
16692
|
credentials: SessionCredentials.optional(),
|
|
16016
16693
|
apiUri: z.string().optional(),
|
|
16017
16694
|
prompt: z.string().optional(),
|
|
16018
|
-
elementType: z.
|
|
16695
|
+
elementType: z.enum(WorkspaceElementType).optional(),
|
|
16019
16696
|
elementId: z.string().optional(),
|
|
16020
16697
|
customerId: z.string().optional(),
|
|
16021
16698
|
opencodeSessionUuid: z.string().optional(),
|
|
@@ -16023,10 +16700,28 @@ const SessionParameters = z.object({
|
|
|
16023
16700
|
openRouterApiKey: z.string().optional(),
|
|
16024
16701
|
modelId: z.string().optional(),
|
|
16025
16702
|
agentName: z.enum(AgentName).optional(),
|
|
16703
|
+
agentHarnessSnapshotId: z.string().optional(),
|
|
16026
16704
|
engine: z.enum(['opencode', 'inline']).optional(),
|
|
16027
16705
|
attachments: z.array(AgentSessionAttachment).optional(),
|
|
16028
16706
|
});
|
|
16029
16707
|
|
|
16708
|
+
const AGENT_WORKSPACE_ELEMENT_CONTEXT_TYPES = [
|
|
16709
|
+
WorkspaceElementType.Integration,
|
|
16710
|
+
WorkspaceElementType.Connection,
|
|
16711
|
+
WorkspaceElementType.Action,
|
|
16712
|
+
WorkspaceElementType.Flow,
|
|
16713
|
+
WorkspaceElementType.DataSource,
|
|
16714
|
+
WorkspaceElementType.FieldMapping,
|
|
16715
|
+
WorkspaceElementType.DataLinkTable,
|
|
16716
|
+
WorkspaceElementType.AppDataSchema,
|
|
16717
|
+
WorkspaceElementType.AppEventType,
|
|
16718
|
+
WorkspaceElementType.ExternalEventType,
|
|
16719
|
+
];
|
|
16720
|
+
const AGENT_WORKSPACE_ELEMENT_CONTEXT_TYPE_SET = new Set(AGENT_WORKSPACE_ELEMENT_CONTEXT_TYPES);
|
|
16721
|
+
function canFetchAgentWorkspaceElementContext(elementType) {
|
|
16722
|
+
return !!elementType && AGENT_WORKSPACE_ELEMENT_CONTEXT_TYPE_SET.has(elementType);
|
|
16723
|
+
}
|
|
16724
|
+
|
|
16030
16725
|
var AsyncRequestStatus;
|
|
16031
16726
|
(function (AsyncRequestStatus) {
|
|
16032
16727
|
AsyncRequestStatus["PENDING"] = "pending";
|
|
@@ -16039,6 +16734,29 @@ const AsyncRequestTriggerResponse = z.object({
|
|
|
16039
16734
|
jobId: z.string(),
|
|
16040
16735
|
accessKey: z.string(),
|
|
16041
16736
|
});
|
|
16737
|
+
const ListableAsyncRequestType = z.enum(['export-workspace', 'import-workspace']);
|
|
16738
|
+
const AsyncRequestStatusSchema = z.nativeEnum(AsyncRequestStatus);
|
|
16739
|
+
const AsyncRequest = z.object({
|
|
16740
|
+
id: z.string(),
|
|
16741
|
+
requestType: ListableAsyncRequestType,
|
|
16742
|
+
status: AsyncRequestStatusSchema,
|
|
16743
|
+
progress: z.number().optional(),
|
|
16744
|
+
result: z.record(z.string(), z.any()).optional(),
|
|
16745
|
+
error: ErrorDataSchema.optional(),
|
|
16746
|
+
meta: z.record(z.string(), z.any()).optional(),
|
|
16747
|
+
createdAt: zodDateCoercion(),
|
|
16748
|
+
startedAt: zodDateCoercion().optional(),
|
|
16749
|
+
completedAt: zodDateCoercion().optional(),
|
|
16750
|
+
});
|
|
16751
|
+
const ListAsyncRequestsQuery = z.object({
|
|
16752
|
+
requestType: ListableAsyncRequestType,
|
|
16753
|
+
status: AsyncRequestStatusSchema.optional(),
|
|
16754
|
+
limit: z.coerce.number().int().min(1).max(100).default(50),
|
|
16755
|
+
cursor: z.coerce.number().int().min(0).optional(),
|
|
16756
|
+
});
|
|
16757
|
+
const ListAsyncRequestsResponse = z.object({
|
|
16758
|
+
items: z.array(AsyncRequest),
|
|
16759
|
+
});
|
|
16042
16760
|
|
|
16043
16761
|
const SelfHostingToken = z.object({
|
|
16044
16762
|
id: z.string(),
|
|
@@ -16065,33 +16783,6 @@ const ValidateSelfHostingTokenResponse = z.object({
|
|
|
16065
16783
|
orgName: z.string().optional(),
|
|
16066
16784
|
});
|
|
16067
16785
|
|
|
16068
|
-
const CLIENT_TOKEN_GRANT_TYPES = ['mcp-oauth', 'cli-oauth', 'agent-session', 'api'];
|
|
16069
|
-
const ClientTokenGrantType = z.enum(CLIENT_TOKEN_GRANT_TYPES);
|
|
16070
|
-
const ClientToken = z.object({
|
|
16071
|
-
id: z.string(),
|
|
16072
|
-
workspaceId: z.string().optional(),
|
|
16073
|
-
platformUserId: z.string().optional(),
|
|
16074
|
-
tenantId: z.string().optional(),
|
|
16075
|
-
grantType: ClientTokenGrantType,
|
|
16076
|
-
grantId: z.string().optional(),
|
|
16077
|
-
grantName: z.string().optional(),
|
|
16078
|
-
connectedProductId: z.string().optional(),
|
|
16079
|
-
createdAt: z.string(),
|
|
16080
|
-
});
|
|
16081
|
-
const CreateClientTokenResponse = ClientToken.extend({
|
|
16082
|
-
accessToken: z.string(),
|
|
16083
|
-
});
|
|
16084
|
-
const CreateClientTokenRequest = z.object({
|
|
16085
|
-
grantType: ClientTokenGrantType,
|
|
16086
|
-
grantId: z.string(),
|
|
16087
|
-
grantName: z.string(),
|
|
16088
|
-
tenantId: z.string().optional(),
|
|
16089
|
-
clientKey: z.string().optional(),
|
|
16090
|
-
});
|
|
16091
|
-
const ClientTokenListResponse = z.object({
|
|
16092
|
-
items: z.array(ClientToken),
|
|
16093
|
-
});
|
|
16094
|
-
|
|
16095
16786
|
const MEMBRANE_CLI_CLIENT_ID = 'membrane-cli';
|
|
16096
16787
|
const OAUTH_TOKEN_TYPE_PLATFORM_USER = 'platform-user';
|
|
16097
16788
|
const OAUTH_TOKEN_TYPE_TENANT = 'tenant';
|
|
@@ -16101,6 +16792,20 @@ const OAUTH_TOKEN_TYPES = [
|
|
|
16101
16792
|
OAUTH_TOKEN_TYPE_TENANT,
|
|
16102
16793
|
OAUTH_TOKEN_TYPE_CONNECTION,
|
|
16103
16794
|
];
|
|
16795
|
+
const AuthContextSettings = z.object({
|
|
16796
|
+
defaultWorkspaceKey: z.string().optional(),
|
|
16797
|
+
defaultTenantKey: z.string().optional(),
|
|
16798
|
+
connectionId: z.string().optional(),
|
|
16799
|
+
});
|
|
16800
|
+
const PatchTokenSettingsRequest = z.object({
|
|
16801
|
+
settings: z
|
|
16802
|
+
.object({
|
|
16803
|
+
defaultWorkspaceKey: z.string().nullable().optional(),
|
|
16804
|
+
defaultTenantKey: z.string().nullable().optional(),
|
|
16805
|
+
connectionId: z.string().nullable().optional(),
|
|
16806
|
+
})
|
|
16807
|
+
.optional(),
|
|
16808
|
+
});
|
|
16104
16809
|
const OAuthTokenResponse = z.object({
|
|
16105
16810
|
access_token: z.string(),
|
|
16106
16811
|
token_type: z.string(),
|
|
@@ -16112,6 +16817,126 @@ const OAuthTokenResponse = z.object({
|
|
|
16112
16817
|
org_id: z.string().optional(),
|
|
16113
16818
|
});
|
|
16114
16819
|
|
|
16820
|
+
const PLATFORM_USER_TOKEN_GRANT_TYPES = ['cli-oauth'];
|
|
16821
|
+
const PlatformUserTokenGrantType = z.enum(PLATFORM_USER_TOKEN_GRANT_TYPES);
|
|
16822
|
+
const PlatformUserToken = z.object({
|
|
16823
|
+
id: z.string(),
|
|
16824
|
+
platformUserId: z.string(),
|
|
16825
|
+
grantType: PlatformUserTokenGrantType,
|
|
16826
|
+
grantId: z.string().optional(),
|
|
16827
|
+
grantName: z.string().optional(),
|
|
16828
|
+
settings: AuthContextSettings.optional(),
|
|
16829
|
+
createdAt: z.string(),
|
|
16830
|
+
lastUsedDate: z.string().optional(),
|
|
16831
|
+
});
|
|
16832
|
+
const PlatformUserTokenListResponse = z.object({
|
|
16833
|
+
items: z.array(PlatformUserToken),
|
|
16834
|
+
});
|
|
16835
|
+
|
|
16836
|
+
const MCP_PROTOCOL_VERSION = '2025-11-25';
|
|
16837
|
+
const McpConnectionInput = z.object({
|
|
16838
|
+
mcpServerUrl: z.string().url().optional(),
|
|
16839
|
+
});
|
|
16840
|
+
const ProtectedResourceMetadata = z.object({
|
|
16841
|
+
resource: z.string().url(),
|
|
16842
|
+
authorization_servers: z.array(z.string().url()).min(1),
|
|
16843
|
+
bearer_methods_supported: z.array(z.string()).optional(),
|
|
16844
|
+
scopes_supported: z.array(z.string()).optional(),
|
|
16845
|
+
});
|
|
16846
|
+
const AuthorizationServerMetadata = z
|
|
16847
|
+
.object({
|
|
16848
|
+
issuer: z.string().url(),
|
|
16849
|
+
authorization_endpoint: z.string().url(),
|
|
16850
|
+
token_endpoint: z.string().url(),
|
|
16851
|
+
registration_endpoint: z.string().url().optional(),
|
|
16852
|
+
scopes_supported: z.array(z.string()).optional(),
|
|
16853
|
+
response_types_supported: z.array(z.string()).optional(),
|
|
16854
|
+
grant_types_supported: z.array(z.string()).optional(),
|
|
16855
|
+
code_challenge_methods_supported: z.array(z.string()).optional(),
|
|
16856
|
+
token_endpoint_auth_methods_supported: z.array(z.string()).optional(),
|
|
16857
|
+
client_id_metadata_document_supported: z.boolean().optional(),
|
|
16858
|
+
})
|
|
16859
|
+
.passthrough();
|
|
16860
|
+
const DynamicClientRegistrationResponse = z
|
|
16861
|
+
.object({
|
|
16862
|
+
client_id: z.string(),
|
|
16863
|
+
client_secret: z.string().optional(),
|
|
16864
|
+
client_id_issued_at: z.number().optional(),
|
|
16865
|
+
client_secret_expires_at: z.number().optional(),
|
|
16866
|
+
registration_access_token: z.string().optional(),
|
|
16867
|
+
registration_client_uri: z.string().url().optional(),
|
|
16868
|
+
})
|
|
16869
|
+
.passthrough();
|
|
16870
|
+
const McpTokenResponse = z
|
|
16871
|
+
.object({
|
|
16872
|
+
access_token: z.string(),
|
|
16873
|
+
token_type: z.string(),
|
|
16874
|
+
expires_in: z.number().optional(),
|
|
16875
|
+
refresh_token: z.string().optional(),
|
|
16876
|
+
scope: z.string().optional(),
|
|
16877
|
+
})
|
|
16878
|
+
.passthrough();
|
|
16879
|
+
const McpTool = z
|
|
16880
|
+
.object({
|
|
16881
|
+
name: z.string(),
|
|
16882
|
+
description: z.string().optional(),
|
|
16883
|
+
inputSchema: z.record(z.string(), z.unknown()),
|
|
16884
|
+
})
|
|
16885
|
+
.passthrough();
|
|
16886
|
+
const McpSynthesizedAction = z.object({
|
|
16887
|
+
mcp: z.literal(true),
|
|
16888
|
+
id: z.string(),
|
|
16889
|
+
connectionId: z.string(),
|
|
16890
|
+
key: z.string(),
|
|
16891
|
+
name: z.string(),
|
|
16892
|
+
description: z.string().optional(),
|
|
16893
|
+
inputSchema: z.record(z.string(), z.unknown()).optional(),
|
|
16894
|
+
isReadOnly: z.literal(true),
|
|
16895
|
+
});
|
|
16896
|
+
const McpAuthState = z.object({
|
|
16897
|
+
asIssuer: z.string().url(),
|
|
16898
|
+
tokenEndpoint: z.string().url(),
|
|
16899
|
+
clientId: z.string(),
|
|
16900
|
+
clientSecret: z.string().optional(),
|
|
16901
|
+
canonicalResource: z.string(),
|
|
16902
|
+
scope: z.string().optional(),
|
|
16903
|
+
});
|
|
16904
|
+
const McpCredentials = z.object({
|
|
16905
|
+
accessToken: z.string(),
|
|
16906
|
+
refreshToken: z.string().optional(),
|
|
16907
|
+
expiresAt: z.coerce.date().optional(),
|
|
16908
|
+
tokenType: z.string().default('Bearer'),
|
|
16909
|
+
});
|
|
16910
|
+
|
|
16911
|
+
const WORKSPACE_TOKEN_GRANT_TYPES = ['mcp-oauth', 'agent-session', 'api'];
|
|
16912
|
+
const WorkspaceTokenGrantType = z.enum(WORKSPACE_TOKEN_GRANT_TYPES);
|
|
16913
|
+
const WorkspaceToken = z.object({
|
|
16914
|
+
id: z.string(),
|
|
16915
|
+
workspaceId: z.string(),
|
|
16916
|
+
tenantId: z.string().optional(),
|
|
16917
|
+
platformUserId: z.string().optional(),
|
|
16918
|
+
grantType: WorkspaceTokenGrantType,
|
|
16919
|
+
grantId: z.string().optional(),
|
|
16920
|
+
grantName: z.string().optional(),
|
|
16921
|
+
connectedProductId: z.string().optional(),
|
|
16922
|
+
settings: AuthContextSettings.optional(),
|
|
16923
|
+
createdAt: z.string(),
|
|
16924
|
+
lastUsedDate: z.string().optional(),
|
|
16925
|
+
});
|
|
16926
|
+
const CreateWorkspaceTokenResponse = WorkspaceToken.extend({
|
|
16927
|
+
accessToken: z.string(),
|
|
16928
|
+
});
|
|
16929
|
+
const CreateWorkspaceTokenRequest = z.object({
|
|
16930
|
+
grantType: WorkspaceTokenGrantType,
|
|
16931
|
+
grantId: z.string(),
|
|
16932
|
+
grantName: z.string(),
|
|
16933
|
+
tenantId: z.string().optional(),
|
|
16934
|
+
clientKey: z.string().optional(),
|
|
16935
|
+
});
|
|
16936
|
+
const WorkspaceTokenListResponse = z.object({
|
|
16937
|
+
items: z.array(WorkspaceToken),
|
|
16938
|
+
});
|
|
16939
|
+
|
|
16115
16940
|
const CONSOLE_ACCOUNT_API_TOKEN_PATH = 'settings/account/api-token';
|
|
16116
16941
|
|
|
16117
16942
|
const PendingQueueCountSchema = z.object({
|
|
@@ -16734,5 +17559,5 @@ class MembraneClient extends MembraneApiClient {
|
|
|
16734
17559
|
|
|
16735
17560
|
injectFormulaCatalog(getFormula, isFormula, hasFormulas);
|
|
16736
17561
|
|
|
16737
|
-
export { ACTIONS, AGENTIC_CONNECTION_REQUEST_SCREEN_PATH, AIGatewaySupportedModelIdSchema, AI_GATEWAY_PROVIDER_MODELS, AI_GATEWAY_SUPPORTED_MODELS, AI_GATEWAY_SUPPORTED_MODEL_IDS, ALERT_DELIVERY_METHODS, ALERT_TYPE_CATEGORIES, AccessDeniedError, AccountResponse, ActApiDispatch, ActRequest, ActionAccessor, ActionApiResponse, ActionDependency, ActionDependencyType, ActionEditableProperties, ActionExportProperties, ActionInstanceAccessor, ActionInstanceApiResponse, ActionInstanceSetupError, ActionInstancesAccessor, ActionRunError, ActionRunLogRecordApiResponse, ActionRunLogStatus, ActionRunResponse, ActionRunsStatsQuery, ActionType, ActionsAccessor, ActivityLogRecord, ActivityStatsQuery, AgentName, AgentSession, AgentSessionAttachment, AgentSessionInputSchema, AgentSessionState, AgentSessionStatus, AiAgentAudience, AiAgentParameters, AiAgentType, Alert, AlertCategory, AlertDeliverySettingsSchema, AlertSchema, AlertSeverity, AlertStatus, AlertType, AlertTypeDeliverySettingsSchema, And, ApiRequestSpec, AppDataSchemaAccessor, AppDataSchemaApiResponse, AppDataSchemaEditableProperties, AppDataSchemaExportProperties, AppDataSchemaInstanceAccessor, AppDataSchemaInstanceApiResponse, AppDataSchemaInstancesAccessor, AppDataSchemasAccessor, AppEventLogRecordApiResponse, AppEventSubscriptionAccessor, AppEventSubscriptionApiResponse, AppEventSubscriptionsAccessor, AppEventTypeAccessor, AppEventTypeApiResponse, AppEventTypeEditableProperties, AppEventTypeExportProperties, AppEventTypesAccessor, AppSchema, AppliedToIntegrations, AsyncRequestStatus, AsyncRequestTriggerResponse, AuthContextPermissionsSchema, BackwardCompatibleDataSourceEditableProperties, BadRequestError, BadRequestErrorKey, BaseAction, BaseActionInstance, BaseActionRunLogRecord, BaseAppDataSchema, BaseAppDataSchemaInstance, BaseAppEventSubscription, BaseAppEventType, BaseConnectedProduct, BaseConnection, BaseConnectionAttemptLog, BaseConnector, BaseCustomer, BaseDataLinkTable, BaseDataLinkTableInstance, BaseDataSource, BaseDataSourceInstance, BaseExternalEvent, BaseExternalEventLogRecord, BaseExternalEventPull, BaseExternalEventSubscription, BaseFieldMapping, BaseFieldMappingInstance, BaseFlow, BaseFlowInstance, BaseFlowRun, BaseFunctionDefinition, BaseIntegration, BaseIntegrationLevelMembraneInterface, BaseIntegrationLevelMembraneInterfaceEditableProperties, BaseIntegrationLevelMembraneInterfaceExportProperties, BaseIntegrationLevelMembraneInterfaceReadOnlyProperties, BaseMembraneInterface, BaseMembraneInterfaceEditableProperties, BaseMembraneInterfaceReadOnlyProperties, BaseOrgUser, BasePackage, BaseScreen, BaseWorkspaceElement, CLIENT_TOKEN_GRANT_TYPES, CONNECTION_REQUEST_ID_PARAM, CONNECTION_REQUEST_SCREEN_PATH, 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, CONSOLE_ACCOUNT_API_TOKEN_PATH, CheckpointApiResponse, CheckpointDiffOperationSchema, CheckpointDiffResponseSchema, ClientToken, ClientTokenGrantType, ClientTokenListResponse, CommonFindElementsQuery, CommonFindInstancesQuery, CommonInstancesListQuery, CommonIntegrationOrConnectionQuery, CommonListElementsQuery, ConcurrencyError, ConcurrencyErrorKey, ConfigurationError, ConfigurationState, ConnectPayload, ConnectUIOptions, ConnectedProductApiResponse, ConnectedProductAudience, ConnectedProductType, ConnectionAccessor, ConnectionApiResponse, ConnectionApiResponseWithSecrets, ConnectionAttemptLogApiResponse, ConnectionClientAction, ConnectionDataCollectionAccessor, ConnectionEditableProperties, ConnectionError, ConnectionErrorKey, ConnectionExportProperties, ConnectionLevelActionAccessor, ConnectionLevelActionsAccessor, ConnectionLevelDataSourceAccessor, ConnectionLevelDataSourcesAccessor, ConnectionLevelFieldMappingAccessor, ConnectionLevelFieldMappingsAccessor, ConnectionLevelFlowAccessor, ConnectionLevelFlowsAccessor, ConnectionMessagePayload, ConnectionOperationAccessor, ConnectionOperationRunInput, ConnectionOperationRunResponse, ConnectionProxy, ConnectionProxyRequest, ConnectionRequest, ConnectionSelector, ConnectionSpec, ConnectionTestResponse, ConnectionsAccessor, Connector, ConnectorAuth, ConnectorAuthClientCredentials, ConnectorAuthHandlerBase, ConnectorAuthIntegrationAppToken, ConnectorAuthMembraneToken, ConnectorAuthMethodTypes, ConnectorAuthOAuth1, ConnectorAuthOAuth2, ConnectorAuthProxy, ConnectorAuthSpec, ConnectorAuthSuccessRecord, 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, CreateAlert, CreateClientTokenRequest, CreateClientTokenResponse, CreateConnectedProductRequest, CreateConnectionRequest, CreateConnectionRequestPayload, CreateConnectorRequest, CreateCustomerRequest, CreateDataLinkTableRequest, CreateDataSourceInstanceRequest, CreateDataSourceRequest, CreateFieldMappingInstanceRequest, CreateFieldMappingRequest, CreateFlowNodeRequest, CreateFlowRequest, CreateFlowRunRequest, CreateIntegrationRequest, CreateMembraneInstanceRequest, CreateOrgInvitationRequest, CreateOrgRequest, CreateOrgUserRequest, CreateOrgWorkspaceRequest, CreatePackageRequest, CreateScreenRequest, CreateSelfHostingTokenRequest, CreateSelfHostingTokenResponse, CreateWorkspaceRequest, CustomCodeError, CustomerAccessor, CustomerApiResponse, CustomerLimits, CustomerSelector, CustomersAccessor, DATA_RECORD_SCHEMA, DEFAULT_AI_GATEWAY_MODEL_ID, DEFAULT_ALERT_DELIVERY_SETTINGS, DEFAULT_ALERT_TYPE_DELIVERY_SETTINGS, DEFAULT_FULL_SYNC_INTERVAL_SECONDS, DEFAULT_PULL_UPDATES_INTERVAL_SECONDS, DataBuilderFormulaBase, DataBuilderFormulaCase, DataBuilderFormulaConcat, DataBuilderFormulaCopy, DataBuilderFormulaExtractDate, DataBuilderFormulaExtractTime, DataBuilderFormulaFindAppRecordId, DataBuilderFormulaFindExternalRecordId, DataBuilderFormulaFirstName, DataBuilderFormulaIterate, DataBuilderFormulaLastName, DataBuilderFormulaLookup, DataBuilderFormulaMap, DataBuilderFormulaPlain, DataBuilderFormulaRecord, DataBuilderFormulaTpl, DataBuilderFormulaType, DataBuilderFormulaVar, 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, DataLinkTableLayer, DataLinkTablesAccessor, DataLocationMethodImplementationTypes, DataLocationPointer, DataLocationTypeCollection, DataLocatorStep, DataLocatorStepArrayItem, DataLocatorStepObjectProperty, DataLocatorStepType, DataRecordSchema, DataSchema, DataSchemaRef, DataSourceAccessor, DataSourceApiResponse, DataSourceEditableProperties, DataSourceExportProperties, DataSourceInstanceAccessor, DataSourceInstanceApiResponse, DataSourceInstancesAccessor, DataSourceUnitConfig, DataSourcesAccessor, DbBackedCountsSchema, DependencyError, DomainFromEmail, DownstreamFlowNodeRunSchema, EDITABLE_LIMITS, ElementAccessor, ElementInstanceAccessor, ElementInstanceListAccessor, ElementListAccessor, ElementsExportFields, EngineCreditsProjectionResponse, EngineWorkspaceSettingsSchema, EnsureConnectionRequest, ErrorData, ErrorDataSchema, ErrorType, Eval, ExternalApiLogApiResponse, 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, FindAlertsQuery, FindAppDataSchemaInstancesQuery, FindAppDataSchemasQuery, FindAppEventSubscriptionsQuery, FindAppEventTypesQuery, FindAppEventsQuery, FindConnectedProductsQuery, FindConnectionAttemptLogsQuery, FindConnectionAttemptLogsResponse, FindConnectionsQuery, FindConnectionsResponse, FindCustomersQuery, FindDataLinkTableInstanceLinksQuery, FindDataLinkTableInstancesQuery, FindDataLinkTablesQuery, FindDataLinksInTableQuery, FindDataLinksQuery, FindDataLinksResponse, FindDataSourceEventsQuery, FindDataSourceInstanceSyncsQuery, FindDataSourceInstancesQuery, FindDataSourceSyncsQuery, FindDataSourcesQuery, FindExternalEventPullsQuery, FindFieldMappingInstancesQuery, FindFieldMappingsQuery, FindFlowInstancesQuery, FindFlowRunsQuery, FindFlowRunsResponse, FindFlowsQuery, FindIntegrationLevelMembraneInterfaceQuery, FindIntegrationsQuery, FindOrgWorkspacesQuery, FindOrgsQuery, FindPackagesQuery, FindScreensQuery, FirstNotEmpty, FlowAccessor, FlowApiResponse, FlowEditableProperties, FlowExportProperties, FlowInstanceAccessor, FlowInstanceApiResponse, FlowInstanceSetupError, FlowInstancesAccessor, FlowNode, FlowNodeLink, FlowNodeRunOutputMetadataSchema, FlowNodeRunOutputSchema, FlowNodeRunOutputWithoutDownstreamRunsSchema, FlowNodeRunParametersSchema, FlowNodeRunRecordSchema, FlowNodeRunRecordWithoutOutputsDataSchema, FlowNodeRunResultSchema, FlowNodeRunStatus, FlowNodeSpec, FlowNodeState, FlowNodeType, FlowRunAccessor, FlowRunApiResponse, FlowRunError, FlowRunLaunchedBy, FlowRunLaunchedByApi, FlowRunLaunchedByTrigger, FlowRunNode, FlowRunNodeState, FlowRunState, FlowRunsAccessor, FlowRunsStatsQuery, FlowsAccessor, Formula, FormulaFormula, FullOrgUser, FullPlatformUser, FunctionDefinition, FunctionType, GenerateOptionsRequest, GenerateWorkspaceAccessTokenRequest, GenerateWorkspaceAccessTokenResponse, GeneratedConnectorOption, GenericFunctionDefinition, GetWorkspaceQuery, GraphQLApiMappingSchema, GraphQLFieldMappingSchema, GraphqlApiMappingFunction, HTTP_REQUEST_SCHEMA, HUB_INSTANCE_ID, HandyScenarioTemplateElement, HttpRequestMethod, HttpRequestSpec, IncludeArchivedQuery, IncomingWebhookApiResponse, IncomingWebhooksState, InsufficientCreditsError, IntegrationAccessor, IntegrationApiResponse, MembraneClient as IntegrationAppClient, IntegrationAppError, IntegrationAuthOption, IntegrationAuthUi, IntegrationEditableProperties, IntegrationElementLevel, IntegrationElementType, IntegrationExportProperties, IntegrationLayerStatsQuery, IntegrationLevelActionAccessor, IntegrationLevelActionsListAccessor, IntegrationLevelDataSourceAccessor, IntegrationLevelDataSourcesListAccessor, IntegrationLevelFieldMappingAccessor, IntegrationLevelFieldMappingsListAccessor, IntegrationLevelFlowAccessor, IntegrationLevelFlowsListAccessor, IntegrationLevelMembraneInterfaceSelectorQuery, IntegrationListItem, IntegrationOptionConfig, IntegrationOptions, IntegrationSpecificElementSelector, IntegrationsAccessor, IntentProperties, InternalError, InvalidLocatorError, JavascriptFunction, JsonataFormula, LimitUnits, ListActionInstancesForConnectionQuery, ListAppEventLogRecordsQuery, ListDataSourceInstancesForConnectionQuery, ListExternalApiLogsQuery, ListExternalAppsQuery, ListExternalEventLogRecordsQuery, ListExternalEventPullsQuery, ListExternalEventSubscriptionsQuery, ListFlowInstancesForConnectionQuery, ListIncomingWebhooksQuery, ListMembraneInstancesQuery, ListMembraneInstancesResponse, ListOrgWorkspacesQuery, ListOrgWorkspacesResponse, ListPublicConnectorsQuery, ListPublicPackagesQuery, ListWorkspacesQuery, LogRecordType, MEMBRANE_CLI_CLIENT_ID, MEMBRANE_ELEMENT_CONFIG_FILE_NAME, MEMBRANE_SESSION_ID_HEADER, MIN_FULL_SYNC_INTERVAL_SECONDS, MIN_PULL_UPDATES_INTERVAL_SECONDS, MappingFunction, MappingSchema, MembraneAgentKey, axios as MembraneAxiosInstance, MembraneClient, MembraneCredentials, MembraneElementLayer, MembraneError, MembraneInstance, MembraneInstanceAdmin, MergeObjects, MinimalConnector, NotAuthenticatedError, NotFoundError, OAUTH1_CONFIG_SCHEMA, OAUTH_CONFIG_SCHEMA, OAUTH_TOKEN_TYPES, OAUTH_TOKEN_TYPE_CONNECTION, OAUTH_TOKEN_TYPE_PLATFORM_USER, OAUTH_TOKEN_TYPE_TENANT, OAuthTokenResponse, OpenRouterNotConfiguredError, OpenapiMappingSchema, OperationMappingFunction, OperationMappingSchema, Or, Org, OrgInstance, OrgInstanceType, OrgInstanceWorkspace, OrgInvitation, OrgLimits, OrgLimitsType, OrgPlan, OrgUserRole, OrgUserStatus, OrgWorkspace, OrgWorkspaceUpdateRequest, OrgWorkspaceUser, PACKAGE_VERSION_DEVELOPMENT, PACKAGE_VERSION_LATEST, PARALLEL_EXECUTION_LIMITS, PackageAccessor, PackageApiResponse, PackageCalculatedProperties, PackageEditableProperties, PackageElement, PackageElementApi, PackageElementExport, PackageExportProperties, PackageVersionData, PackageVersionListItem, PackagesAccessor, PaginationQuery, PaginationResponse, ParallelExecutionLimits, PatchAgentSessionSchema, PatchConnectionRequestPayload, PatchUserWorkspaceSettings, PendingQueueCountSchema, PendingTasksSummarySchema, PlatformUser, RATE_LIMITS, REFERENCE_ELEMENT_TYPE_SELF, RateLimitExceededError, RateLimits, RequestMappingSchema, ResetFlowInstanceOptions, RestApiMappingFunction, RestApiMappingSchema, RotateOrgWorkspaceSecretResponse, RunActionRequest, RunFieldMappingRequest, RunFieldMappingResponse, RunFlowApiRequest, SYSTEM_FIELDS, ScenarioAccessor, ScenarioTemplate, ScenarioTemplateCategory, ScenarioTemplateElements, ScenariosAccessor, ScreenAccessor, ScreenApiResponse, ScreenBlock, ScreenBlockType, ScreenSelector, ScreenType, ScreensAccessor, SearchQuery, SelfAccessor, SelfHostingToken, SessionCredentials, SessionParameters, StatsFilterQuery, TenantLayerElement, TenantSelfResponse, UDM, UNIFIED_DATA_MODELS, UnitRunError, UpdateActionInstanceRequest, UpdateActionRequest, UpdateConnectedProductRequest, UpdateConnectionRequest, UpdateConnectorRequest, UpdateCustomerRequest, UpdateDataLinkTableRequest, UpdateDataSourceInstanceRequest, UpdateDataSourceRequest, UpdateFieldMappingInstanceRequest, UpdateFieldMappingRequest, UpdateFlowRequest, UpdateIntegrationRequest, UpdateMembraneInstanceRequest, UpdateOrgInvitationRequest, UpdateOrgRequest, UpdateOrgUserRequest, UpdatePackageRequest, UpdateScreenRequest, UpdateSelfHostingTokenRequest, UpdateWorkspaceLimitsRequest, UpdateWorkspaceRequest, UpstreamFlowNodeRunSchema, UsageType, UserAccessor, UsersAccessor, ValidateSelfHostingTokenRequest, ValidateSelfHostingTokenResponse, WORKSPACE_DATABASE_RECORD_COLLECTIONS, WORKSPACE_ELEMENTS_STATS_COLLECTIONS, WORKSPACE_ELEMENT_COLLECTIONS, WORKSPACE_SIZE_LIMITS, WebhookTypeEnum, Workspace, WorkspaceAiCreditLimits, WorkspaceEditableFields, WorkspaceElementChangeType, WorkspaceElementDependencyType, WorkspaceElementSearchQuery, WorkspaceElementSearchResult, WorkspaceElementSpecs, WorkspaceElementState, WorkspaceElementType, WorkspaceElementsStatsSchema, WorkspaceEventType, WorkspaceLimitsSchema, WorkspaceNotificationType, WorkspaceOnboardingData, WorkspacePublicKey, WorkspaceSettingsSchema, WorkspaceSizeLimits, 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, formatSessionCost, generateExampleFromSchema, getActionInstanceVariableSchema, getActionRunTimeVariablesSchema, getAlertCategoryDisplayName, getAlertDeliveryMethodLabel, getAlertTypeDisplayName, getAlertTypesByCategory, getAllEventMethodFilePaths, getBusinessDaysBetween, getChildNodeKeys, getConnectionRequestUrl, getConnectorSpecPath, getConnectorVersionPath, getDataCollectionCreateFields, getDataCollectionUpdateFields, getDataLocationMethodPath, getDownstreamNodeKeys, getEditablePathsForElementType, getEditablePathsFromSchema, getEffectiveConnectorOption, getElementSelector, getErrorFromData, getEventMethodFileKey, getFilterFieldMeta, 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, getSchemaDescription, getSchemaFromValue, getUpstreamNodeKeys, getValueAtLocator, getValueByLocator, getVariableLocators, getWritableFieldsSchema, hasCycles, hasFormulas$1 as hasFormulas, hasFormulas as hasFormulas_internalDoNotUse, injectFormulaCatalog, isAIGatewaySupportedModelId, isBlob, isBusinessDay, isDataActionType, isDataLocationMethodSupported, isDeliveryMethodEnabled, isFormula$1 as isFormula, isFormula as isFormula_internalDoNotUse, isHubInstanceId, isHubWorkspace, isMembraneError, isObject, isPathUserEditable, isSameDataLocation, isSchemaEmpty, isSelfHostedInstance, isStream, isValidAlertType, isValidLocator, jsonPointerToDotPath, 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, validateFunctionDefinitions, valueToSchema, valueToString, walkSchema, wrapAnyOfSchema, zodBooleanCoercion, zodDateCoercion };
|
|
17562
|
+
export { ACTIONS, AGENTIC_CONNECTION_REQUEST_SCREEN_PATH, AGENT_WORKSPACE_ELEMENT_CONTEXT_TYPES, AIGatewaySupportedModelIdSchema, AI_GATEWAY_PROVIDER_MODELS, AI_GATEWAY_SUPPORTED_MODELS, AI_GATEWAY_SUPPORTED_MODEL_IDS, ALERT_DELIVERY_METHODS, ALERT_TYPE_CATEGORIES, AccessDeniedError, AccountResponse, ActApiDispatch, ActRequest, ActionAccessor, ActionApiPayload, ActionApiResponse, ActionDependency, ActionDependencyType, ActionEditableProperties, ActionExportProperties, ActionInstanceAccessor, ActionInstanceApiResponse, ActionInstanceSetupError, ActionInstancesAccessor, ActionRunError, ActionRunLogRecordApiResponse, ActionRunLogStatus, ActionRunResponse, ActionRunsStatsQuery, ActionSnapshot, ActionType, ActionsAccessor, ActivityLogRecord, ActivityStatsQuery, AgentHarness, AgentHarnessSnapshot, AgentInstruction, AgentName, AgentSession, AgentSessionAttachment, AgentSessionInputSchema, AgentSessionState, AgentSessionStatus, AgentSkill, AgentTool, AiAgentAudience, AiAgentParameters, AiAgentType, Alert, AlertCategory, AlertDeliverySettingsSchema, AlertSchema, AlertSeverity, AlertStatus, AlertType, AlertTypeDeliverySettingsSchema, And, ApiRequestSpec, AppDataSchemaAccessor, AppDataSchemaApiResponse, AppDataSchemaEditableProperties, AppDataSchemaExportProperties, AppDataSchemaInstanceAccessor, AppDataSchemaInstanceApiResponse, AppDataSchemaInstancesAccessor, AppDataSchemasAccessor, AppEventLogRecordApiResponse, AppEventSubscriptionAccessor, AppEventSubscriptionApiResponse, AppEventSubscriptionsAccessor, AppEventTypeAccessor, AppEventTypeApiResponse, AppEventTypeEditableProperties, AppEventTypeExportProperties, AppEventTypesAccessor, AppSchema, AppliedToIntegrations, AsyncRequest, AsyncRequestStatus, AsyncRequestStatusSchema, AsyncRequestTriggerResponse, AuthContextPermissionsSchema, AuthContextSettings, AuthorizationServerMetadata, BackwardCompatibleDataSourceEditableProperties, BadRequestError, BadRequestErrorKey, BaseAction, BaseActionInstance, BaseActionRunLogRecord, BaseAppDataSchema, BaseAppDataSchemaInstance, BaseAppEventSubscription, BaseAppEventType, BaseConnectedProduct, BaseConnection, BaseConnectionAttemptLog, BaseConnector, BaseCustomer, BaseDataLinkTable, BaseDataLinkTableInstance, BaseDataSource, BaseDataSourceInstance, BaseExportProperties, BaseExternalEvent, BaseExternalEventLogRecord, BaseExternalEventPull, BaseExternalEventSubscription, BaseExternalEventType, BaseFieldMapping, BaseFieldMappingInstance, BaseFlow, BaseFlowInstance, BaseFlowRun, BaseFunctionDefinition, BaseIntegration, BaseIntegrationLevelMembraneInterface, BaseIntegrationLevelMembraneInterfaceEditableProperties, BaseIntegrationLevelMembraneInterfaceExportProperties, BaseIntegrationLevelMembraneInterfaceReadOnlyProperties, BaseMembraneInterface, BaseMembraneInterfaceEditableProperties, BaseMembraneInterfaceReadOnlyProperties, BaseOrgUser, BasePackage, BaseScreen, BaseWorkspaceElement, CONNECTION_REQUEST_ID_PARAM, CONNECTION_REQUEST_SCREEN_PATH, 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, CONSOLE_ACCOUNT_API_TOKEN_PATH, CheckpointApiResponse, CheckpointDiffOperationSchema, CheckpointDiffResponseSchema, CommonFindElementsQuery, CommonFindInstancesQuery, CommonInstancesListQuery, CommonIntegrationOrConnectionQuery, CommonListElementsQuery, ConcurrencyError, ConcurrencyErrorKey, ConfigurationError, ConfigurationState, ConnectPayload, ConnectUIOptions, ConnectedProductApiResponse, ConnectedProductAudience, ConnectedProductType, ConnectionAccessor, ConnectionApiResponse, ConnectionApiResponseWithSecrets, ConnectionAttemptLogApiResponse, ConnectionClientAction, ConnectionDataCollectionAccessor, ConnectionEditableProperties, ConnectionEntityMessagePayload, ConnectionError, ConnectionErrorKey, ConnectionExportProperties, ConnectionLevelActionAccessor, ConnectionLevelActionsAccessor, ConnectionLevelDataSourceAccessor, ConnectionLevelDataSourcesAccessor, ConnectionLevelFieldMappingAccessor, ConnectionLevelFieldMappingsAccessor, ConnectionLevelFlowAccessor, ConnectionLevelFlowsAccessor, ConnectionMessagePayload, ConnectionOperationAccessor, ConnectionOperationRunInput, ConnectionOperationRunResponse, ConnectionProxy, ConnectionProxyRequest, ConnectionRequest, ConnectionSelector, ConnectionSpec, ConnectionTestResponse, ConnectionType, ConnectionsAccessor, Connector, ConnectorAuth, ConnectorAuthClientCredentials, ConnectorAuthHandlerBase, ConnectorAuthIntegrationAppToken, ConnectorAuthMembraneToken, ConnectorAuthMethodTypes, ConnectorAuthOAuth1, ConnectorAuthOAuth2, ConnectorAuthProxy, ConnectorAuthSpec, ConnectorAuthSuccessRecord, 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, ConnectorVersionExportProperties, CreateActionInstanceRequest, CreateActionRequest, CreateAgentHarnessRequest, CreateAgentInstructionRequest, CreateAgentSession, CreateAgentSkillRequest, CreateAlert, CreateConnectedProductRequest, CreateConnectionRequest, CreateConnectionRequestPayload, CreateConnectorRequest, CreateCustomerRequest, CreateDataLinkTableRequest, CreateDataSourceInstanceRequest, CreateDataSourceRequest, CreateExternalAppRequest, CreateExternalEventSubscriptionRequest, CreateExternalEventTypeRequest, CreateFieldMappingInstanceRequest, CreateFieldMappingRequest, CreateFlowNodeRequest, CreateFlowRequest, CreateFlowRunRequest, CreateIntegrationRequest, CreateMembraneInstanceRequest, CreateOrgInvitationRequest, CreateOrgRequest, CreateOrgUserRequest, CreateOrgWorkspaceRequest, CreatePackageRequest, CreateScreenRequest, CreateSelfHostingTokenRequest, CreateSelfHostingTokenResponse, CreateWorkspaceRequest, CreateWorkspaceTokenRequest, CreateWorkspaceTokenResponse, CustomCodeError, CustomerAccessor, CustomerApiResponse, CustomerLimits, CustomerSelector, CustomersAccessor, DATA_RECORD_SCHEMA, DEFAULT_AI_GATEWAY_MODEL_ID, DEFAULT_ALERT_DELIVERY_SETTINGS, DEFAULT_ALERT_TYPE_DELIVERY_SETTINGS, DEFAULT_FULL_SYNC_INTERVAL_SECONDS, DEFAULT_PULL_UPDATES_INTERVAL_SECONDS, DataBuilderFormulaBase, DataBuilderFormulaCase, DataBuilderFormulaConcat, DataBuilderFormulaCopy, DataBuilderFormulaExtractDate, DataBuilderFormulaExtractTime, DataBuilderFormulaFindAppRecordId, DataBuilderFormulaFindExternalRecordId, DataBuilderFormulaFirstName, DataBuilderFormulaIterate, DataBuilderFormulaLastName, DataBuilderFormulaLookup, DataBuilderFormulaMap, DataBuilderFormulaPlain, DataBuilderFormulaRecord, DataBuilderFormulaTpl, DataBuilderFormulaType, DataBuilderFormulaVar, 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, DataLinkTableLayer, DataLinkTablesAccessor, DataLocationMethodImplementationTypes, DataLocationPointer, DataLocationTypeCollection, DataLocatorStep, DataLocatorStepArrayItem, DataLocatorStepObjectProperty, DataLocatorStepType, DataRecordSchema, DataSchema, DataSchemaRef, DataSourceAccessor, DataSourceApiResponse, DataSourceEditableProperties, DataSourceExportProperties, DataSourceInstanceAccessor, DataSourceInstanceApiResponse, DataSourceInstancesAccessor, DataSourceUnitConfig, DataSourcesAccessor, DbBackedCountsSchema, DependencyError, DomainFromEmail, DownstreamFlowNodeRunSchema, DynamicClientRegistrationResponse, EDITABLE_LIMITS, EXTERNAL_EVENT_TYPE_FUNCTION_KEYS, ElementAccessor, ElementInstanceAccessor, ElementInstanceListAccessor, ElementListAccessor, ElementsExportFields, EngineCreditsProjectionResponse, EngineWorkspaceSettingsSchema, EnsureConnectionRequest, ErrorData, ErrorDataSchema, ErrorType, Eval, ExternalApiLogApiResponse, ExternalEvent, ExternalEventLogRecordApiResponse, ExternalEventLogStatus, ExternalEventPullApiResponse, ExternalEventPullStatus, ExternalEventPullTelemetry, ExternalEventSubscriptionAccessor, ExternalEventSubscriptionApiResponse, ExternalEventSubscriptionConfig, ExternalEventSubscriptionStatus, ExternalEventSubscriptionType, ExternalEventSubscriptionsAccessor, ExternalEventType, ExternalEventTypeApiResponse, ExternalEventTypeEditableProperties, ExternalEventTypeExportProperties, ExternalEventTypeImplementationType, ExternalEventUnitConfig, FLOW_NODE_SPECS, FieldMappingAccessor, FieldMappingApiResponse, FieldMappingDirection, FieldMappingEditableProperties, FieldMappingExportProperties, FieldMappingInstanceAccessor, FieldMappingInstanceApiResponse, FieldMappingInstancesAccessor, FieldMappingUnitConfig, FieldMappingsAccessor, FindActionInstancesQuery, FindActionRunLogsQuery, FindActionRunLogsResponse, FindActionsQuery, FindAgentHarnessQuery, FindAgentHarnessSnapshotQuery, FindAgentInstructionQuery, FindAgentSkillQuery, FindAlertsQuery, FindAppDataSchemaInstancesQuery, FindAppDataSchemasQuery, FindAppEventSubscriptionsQuery, FindAppEventTypesQuery, FindAppEventsQuery, FindConnectedProductsQuery, FindConnectionAttemptLogsQuery, FindConnectionAttemptLogsResponse, FindConnectionsQuery, FindConnectionsResponse, FindCustomersQuery, FindDataLinkTableInstanceLinksQuery, FindDataLinkTableInstancesQuery, FindDataLinkTablesQuery, FindDataLinksInTableQuery, FindDataLinksQuery, FindDataLinksResponse, FindDataSourceEventsQuery, FindDataSourceInstanceSyncsQuery, FindDataSourceInstancesQuery, FindDataSourceSyncsQuery, FindDataSourcesQuery, FindExternalEventPullsQuery, FindExternalEventTypesQuery, FindFieldMappingInstancesQuery, FindFieldMappingsQuery, FindFlowInstancesQuery, FindFlowRunsQuery, FindFlowRunsResponse, FindFlowsQuery, FindIntegrationLevelMembraneInterfaceQuery, FindIntegrationsQuery, FindOrgWorkspacesQuery, FindOrgsQuery, FindPackagesQuery, FindScreensQuery, FirstNotEmpty, FlowAccessor, FlowApiResponse, FlowEditableProperties, FlowExportProperties, FlowInstanceAccessor, FlowInstanceApiResponse, FlowInstanceSetupError, FlowInstancesAccessor, FlowNode, FlowNodeLink, FlowNodeRunOutputMetadataSchema, FlowNodeRunOutputSchema, FlowNodeRunOutputWithoutDownstreamRunsSchema, FlowNodeRunParametersSchema, FlowNodeRunRecordSchema, FlowNodeRunRecordWithoutOutputsDataSchema, FlowNodeRunResultSchema, FlowNodeRunStatus, FlowNodeSpec, FlowNodeState, FlowNodeType, FlowRunAccessor, FlowRunApiResponse, FlowRunError, FlowRunLaunchedBy, FlowRunLaunchedByApi, FlowRunLaunchedByTrigger, FlowRunNode, FlowRunNodeState, FlowRunState, FlowRunsAccessor, FlowRunsStatsQuery, FlowsAccessor, Formula, FormulaFormula, FullOrgUser, FullPlatformUser, FunctionDefinition, FunctionType, GenerateOptionsRequest, GenerateWorkspaceAccessTokenRequest, GenerateWorkspaceAccessTokenResponse, GeneratedConnectorOption, GenericFunctionDefinition, GetWorkspaceQuery, GraphQLApiMappingSchema, GraphQLFieldMappingSchema, GraphqlApiMappingFunction, HTTP_REQUEST_SCHEMA, HUB_INSTANCE_ID, HandyScenarioTemplateElement, HttpRequestMethod, HttpRequestSpec, IncludeArchivedQuery, IncomingWebhookApiResponse, IncomingWebhooksState, InsufficientCreditsError, IntegrationAccessor, IntegrationApiResponse, MembraneClient as IntegrationAppClient, IntegrationAppError, IntegrationAuthOption, IntegrationAuthUi, IntegrationEditableProperties, IntegrationElementLevel, IntegrationElementType, IntegrationExportProperties, IntegrationLayerStatsQuery, IntegrationLevelActionAccessor, IntegrationLevelActionsListAccessor, IntegrationLevelDataSourceAccessor, IntegrationLevelDataSourcesListAccessor, IntegrationLevelFieldMappingAccessor, IntegrationLevelFieldMappingsListAccessor, IntegrationLevelFlowAccessor, IntegrationLevelFlowsListAccessor, IntegrationLevelMembraneInterfaceSelectorQuery, IntegrationListItem, IntegrationOptionConfig, IntegrationOptions, IntegrationSpecificElementSelector, IntegrationsAccessor, IntentProperties, InternalError, InvalidLocatorError, JavascriptFunction, JsonataFormula, LimitUnits, ListActionInstancesForConnectionQuery, ListAppEventLogRecordsQuery, ListAsyncRequestsQuery, ListAsyncRequestsResponse, ListConnectorsQuery, ListDataSourceInstancesForConnectionQuery, ListExternalApiLogsQuery, ListExternalAppsQuery, ListExternalEventLogRecordsQuery, ListExternalEventPullsQuery, ListExternalEventSubscriptionsQuery, ListFlowInstancesForConnectionQuery, ListIncomingWebhooksQuery, ListMembraneInstancesQuery, ListMembraneInstancesResponse, ListOrgWorkspacesQuery, ListOrgWorkspacesResponse, ListPublicConnectorsQuery, ListPublicPackagesQuery, ListableAsyncRequestType, LogRecordType, MCP_PROTOCOL_VERSION, MEMBRANE_CLI_CLIENT_ID, MEMBRANE_ELEMENT_CONFIG_FILE_NAME, MEMBRANE_SESSION_ID_HEADER, MIN_FULL_SYNC_INTERVAL_SECONDS, MIN_PULL_UPDATES_INTERVAL_SECONDS, MappingFunction, MappingSchema, McpAuthState, McpConnectionInput, McpCredentials, McpSynthesizedAction, McpTokenResponse, McpTool, MembraneAgentKey, axios as MembraneAxiosInstance, MembraneClient, MembraneCredentials, MembraneElementLayer, MembraneError, MembraneInstance, MembraneInstanceAdmin, MergeObjects, MinimalConnector, NotAuthenticatedError, NotFoundError, OAUTH1_CONFIG_SCHEMA, OAUTH_CONFIG_SCHEMA, OAUTH_TOKEN_TYPES, OAUTH_TOKEN_TYPE_CONNECTION, OAUTH_TOKEN_TYPE_PLATFORM_USER, OAUTH_TOKEN_TYPE_TENANT, OAuthTokenResponse, OpenRouterNotConfiguredError, OpenapiMappingSchema, OperationMappingFunction, OperationMappingSchema, Or, Org, OrgInstance, OrgInstanceType, OrgInstanceWorkspace, OrgInvitation, OrgLimits, OrgLimitsType, OrgPlan, OrgUserRole, OrgUserStatus, OrgWorkspace, OrgWorkspaceUpdateRequest, OrgWorkspaceUser, PACKAGE_VERSION_DEVELOPMENT, PACKAGE_VERSION_LATEST, PARALLEL_EXECUTION_LIMITS, PLATFORM_USER_TOKEN_GRANT_TYPES, PackageAccessor, PackageApiResponse, PackageCalculatedProperties, PackageEditableProperties, PackageElement, PackageElementApi, PackageElementExport, PackageExportProperties, PackageVersionData, PackageVersionListItem, PackagesAccessor, PaginationQuery, PaginationResponse, ParallelExecutionLimits, PatchAgentSessionSchema, PatchConnectionRequestPayload, PatchExternalEventSubscriptionRequest, PatchTokenSettingsRequest, PatchUserWorkspaceSettings, PendingQueueCountSchema, PendingTasksSummarySchema, PlatformUser, PlatformUserToken, PlatformUserTokenGrantType, PlatformUserTokenListResponse, PreviewAgentSkillSourceRequest, PreviewAgentSkillSourceResponse, ProtectedResourceMetadata, RATE_LIMITS, REFERENCE_ELEMENT_TYPE_SELF, RateLimitExceededError, RateLimits, RemoteConnectorCodeUnavailableError, RequestMappingSchema, ResetFlowInstanceOptions, RestApiMappingFunction, RestApiMappingSchema, RotateOrgWorkspaceSecretResponse, RunActionRequest, RunFieldMappingRequest, RunFieldMappingResponse, RunFlowApiRequest, SYSTEM_FIELDS, ScenarioAccessor, ScenarioTemplate, ScenarioTemplateCategory, ScenarioTemplateElements, ScenariosAccessor, ScreenAccessor, ScreenApiResponse, ScreenBlock, ScreenBlockType, ScreenSelector, ScreenType, ScreensAccessor, SearchQuery, SelfAccessor, SelfHostingToken, SessionCredentials, SessionParameters, StatsFilterQuery, TenantLayerElement, TenantSelfResponse, UDM, UNIFIED_DATA_MODELS, UnitRunError, UpdateActionInstanceRequest, UpdateActionRequest, UpdateAgentHarnessRequest, UpdateAgentInstructionRequest, UpdateAgentSkillRequest, UpdateConnectedProductRequest, UpdateConnectionRequest, UpdateConnectorRequest, UpdateCustomerRequest, UpdateDataLinkTableRequest, UpdateDataSourceInstanceRequest, UpdateDataSourceRequest, UpdateExternalAppRequest, UpdateExternalEventTypeRequest, UpdateFieldMappingInstanceRequest, UpdateFieldMappingRequest, UpdateFlowRequest, UpdateIntegrationRequest, UpdateMembraneInstanceRequest, UpdateOrgInvitationRequest, UpdateOrgRequest, UpdateOrgUserRequest, UpdatePackageRequest, UpdateScreenRequest, UpdateSelfHostingTokenRequest, UpdateWorkspaceLimitsRequest, UpdateWorkspaceRequest, UpstreamFlowNodeRunSchema, UsageType, UserAccessor, UserWorkspaceAccess, UserWorkspaceRole, UsersAccessor, ValidateSelfHostingTokenRequest, ValidateSelfHostingTokenResponse, WORKSPACE_DATABASE_RECORD_COLLECTIONS, WORKSPACE_ELEMENTS_STATS_COLLECTIONS, WORKSPACE_ELEMENT_COLLECTIONS, WORKSPACE_SIZE_LIMITS, WORKSPACE_TOKEN_GRANT_TYPES, WebhookTypeEnum, Workspace, WorkspaceAiCreditLimits, WorkspaceEditableFields, WorkspaceElementChangeType, WorkspaceElementDependencyType, WorkspaceElementSearchQuery, WorkspaceElementSearchResult, WorkspaceElementSpecs, WorkspaceElementState, WorkspaceElementType, WorkspaceElementsStatsSchema, WorkspaceEventType, WorkspaceLimitsSchema, WorkspaceNotificationType, WorkspaceOnboardingData, WorkspacePublicKey, WorkspaceSettingsSchema, WorkspaceSizeLimits, WorkspaceSyncEventType, WorkspaceToken, WorkspaceTokenGrantType, WorkspaceTokenListResponse, WorkspaceType, WritableConnectorVersionData, WritablePackageVersionData, WriteableConnectorFields, WriteableConnectorOption, __resolveValue, addRequiredFieldsToSchema, addUdmFallbackFields, addUndefinedWriteableProperties, backwardCompatibleFilterMatch, buildActionSnapshot, buildData, buildDataSchema, buildValue, canFetchAgentWorkspaceElementContext, compareElementMaps, compareWorkspaceExports, compressDataSchema, configToNamedPayload, createCompoundSchema, createFlowInstanceSchema, createObjectFromLocators, createOrUpdateConnection, createPaginationResponseSchema, createSchema, dataCollectionEventTypeToExternalEventType, dataLocationParametersMatch, doesMatchFilter, emptyComparisonResult, excludeFieldsFromSchema, excludeFieldsFromValue, excludeReadOnlyFieldsFromSchema, excludeWriteOnlyFieldsFromSchema, externalEventTypeToDataCollectionEventType, extractFieldLocator, extractMembraneErrorData, findUdmCollectionMapping, findUdmDefaultCollection, findUdmRootLocation, findValueLocators, formatSessionCost, generateExampleFromSchema, getActionInstanceVariableSchema, getActionRunTimeVariablesSchema, getAlertCategoryDisplayName, getAlertDeliveryMethodLabel, getAlertTypeDisplayName, getAlertTypesByCategory, getAllEventMethodFilePaths, getBusinessDaysBetween, getChildNodeKeys, getConnectionRequestUrl, getConnectorSpecPath, getConnectorVersionPath, getConnectorVersionSpecPath, getDataCollectionCreateFields, getDataCollectionUpdateFields, getDataLocationMethodPath, getDownstreamNodeKeys, getEditablePathsForElementType, getEditablePathsFromSchema, getEffectiveConnectorOption, getElementSelector, getErrorFromData, getEventMethodFileKey, getFilterFieldMeta, 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, getSchemaDescription, getSchemaFromValue, getUpstreamNodeKeys, getValueAtLocator, getValueByLocator, getVariableLocators, getWritableFieldsSchema, hasCycles, hasFormulas$1 as hasFormulas, hasFormulas as hasFormulas_internalDoNotUse, injectFormulaCatalog, isAIGatewaySupportedModelId, isBlob, isBusinessDay, isDataActionType, isDataLocationMethodSupported, isDeliveryMethodEnabled, isFormula$1 as isFormula, isFormula as isFormula_internalDoNotUse, isHubInstanceId, isHubWorkspace, isMembraneError, isObject, isPathUserEditable, isSameDataLocation, isSchemaEmpty, isSelfHostedInstance, isStream, isValidAlertType, isValidLocator, jsonPointerToDotPath, lenientParseWithSchema, locatorToField, locatorToSteps, locatorToString, makeDataLocationOperationPath, makeDataLocationPath, makeDataRecordSchema, makeObjectPropertyLocator, makeSchemaForLocator, mergeComparisons, 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, validateFunctionDefinitions, valueToSchema, valueToString, walkSchema, wrapAnyOfSchema, zodBooleanCoercion, zodDateCoercion };
|
|
16738
17563
|
//# sourceMappingURL=index.node.mjs.map
|