@membranehq/sdk 0.29.0 → 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 +97 -2
- package/dist/bundle.js +27 -15
- package/dist/bundle.js.map +1 -1
- package/dist/dts/accessors/connections-accessors.d.ts +5 -0
- package/dist/dts/accessors/integrations-accessors.d.ts +2 -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 +5 -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 +2 -0
- package/dist/dts/agent/workspace-element-context.d.ts +3 -0
- package/dist/dts/data-schema/types.d.ts +1 -1
- package/dist/dts/index.browser.d.ts +1 -0
- package/dist/dts/mcp-client/index.d.ts +76 -0
- package/dist/dts/orgs/types.d.ts +519 -1
- package/dist/dts/scenario-templates/index.d.ts +1 -0
- package/dist/dts/workspace-elements/api/action-run-log-records-api.d.ts +18 -0
- package/dist/dts/workspace-elements/api/checkpoints-api.d.ts +1 -0
- package/dist/dts/workspace-elements/api/connections-api.d.ts +47 -0
- package/dist/dts/workspace-elements/api/data-link-table-instances-api.d.ts +9 -0
- package/dist/dts/workspace-elements/api/data-sources-api.d.ts +18 -0
- package/dist/dts/workspace-elements/api/external-api-logs-api.d.ts +9 -0
- package/dist/dts/workspace-elements/api/external-event-log-records-api.d.ts +9 -0
- package/dist/dts/workspace-elements/api/external-event-pulls-api.d.ts +10 -0
- package/dist/dts/workspace-elements/api/external-event-subscriptions-api.d.ts +9 -0
- package/dist/dts/workspace-elements/api/field-mappings-api.d.ts +18 -0
- package/dist/dts/workspace-elements/api/flow-runs-api.d.ts +18 -0
- package/dist/dts/workspace-elements/api/flows-api.d.ts +18 -0
- package/dist/dts/workspace-elements/api/incoming-webhooks-api.d.ts +9 -0
- package/dist/dts/workspace-elements/api/integrations-api.d.ts +18 -0
- package/dist/dts/workspace-elements/base/connection-requests/index.d.ts +2 -0
- package/dist/dts/workspace-elements/base/connections/index.d.ts +23 -0
- package/dist/dts/workspace-elements/base/connectors/auth.d.ts +6 -0
- package/dist/dts/workspace-elements/base/connectors/index.d.ts +208 -0
- package/dist/dts/workspace-elements/base/connectors/rest-api.d.ts +1 -0
- package/dist/dts/workspace-elements/base/external-event-pulls/index.d.ts +50 -0
- package/dist/dts/workspace-elements/paths.d.ts +1 -0
- package/dist/dts/workspace-elements/types.d.ts +4 -1
- package/dist/index.browser.d.mts +1518 -142
- package/dist/index.browser.d.ts +1518 -142
- package/dist/index.browser.js +418 -18
- package/dist/index.browser.js.map +1 -1
- package/dist/index.browser.mjs +385 -19
- package/dist/index.browser.mjs.map +1 -1
- package/dist/index.node.d.mts +1518 -142
- package/dist/index.node.d.ts +1518 -142
- package/dist/index.node.js +418 -18
- package/dist/index.node.js.map +1 -1
- package/dist/index.node.mjs +385 -19
- package/dist/index.node.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.browser.js
CHANGED
|
@@ -1365,7 +1365,7 @@ const DataSchema = z.z.lazy(() => z.z
|
|
|
1365
1365
|
properties: z.z.record(z.z.string(), DataSchema).optional(),
|
|
1366
1366
|
items: DataSchema.optional(),
|
|
1367
1367
|
additionalProperties: z.z.union([z.z.boolean(), DataSchema]).optional(),
|
|
1368
|
-
enum: z.z.array(z.z.string()).optional(),
|
|
1368
|
+
enum: z.z.array(z.z.union([z.z.string(), z.z.number()])).optional(),
|
|
1369
1369
|
referenceRecords: z.z.array(z.z.any()).optional(),
|
|
1370
1370
|
referenceCollection: z.z
|
|
1371
1371
|
.object({
|
|
@@ -3515,6 +3515,9 @@ exports.WorkspaceElementType = void 0;
|
|
|
3515
3515
|
WorkspaceElementType["ExternalApiLogRecord"] = "external-api-log-record";
|
|
3516
3516
|
WorkspaceElementType["IncomingWebhookLogRecord"] = "incoming-webhook-log-record";
|
|
3517
3517
|
WorkspaceElementType["ConnectedProduct"] = "connected-product";
|
|
3518
|
+
WorkspaceElementType["AgentHarness"] = "agent-harness";
|
|
3519
|
+
WorkspaceElementType["AgentSkill"] = "agent-skill";
|
|
3520
|
+
WorkspaceElementType["AgentInstruction"] = "agent-instruction";
|
|
3518
3521
|
})(exports.WorkspaceElementType || (exports.WorkspaceElementType = {}));
|
|
3519
3522
|
exports.WorkspaceEventType = void 0;
|
|
3520
3523
|
(function (WorkspaceEventType) {
|
|
@@ -4143,6 +4146,7 @@ const CreateConnectionRequestPayload = z.z.object({
|
|
|
4143
4146
|
allowMultipleConnections: z.z.boolean().optional(),
|
|
4144
4147
|
connectorParameters: z.z.record(z.z.string(), z.z.unknown()).optional(),
|
|
4145
4148
|
redirectUri: z.z.string().url().optional(),
|
|
4149
|
+
customState: z.z.string().optional(),
|
|
4146
4150
|
prompt: z.z.string().optional(),
|
|
4147
4151
|
});
|
|
4148
4152
|
const PatchConnectionRequestPayload = z.z.object({});
|
|
@@ -4162,6 +4166,7 @@ const ConnectionRequest = z.z.object({
|
|
|
4162
4166
|
allowMultipleConnections: z.z.boolean().optional(),
|
|
4163
4167
|
connectorParameters: z.z.record(z.z.string(), z.z.unknown()).optional(),
|
|
4164
4168
|
redirectUri: z.z.string().url().optional(),
|
|
4169
|
+
customState: z.z.string().optional(),
|
|
4165
4170
|
prompt: z.z.string().optional(),
|
|
4166
4171
|
status: z.z.enum(['pending', 'success', 'cancelled', 'error']),
|
|
4167
4172
|
resultConnectionId: z.z.string().optional(),
|
|
@@ -4170,7 +4175,9 @@ const ConnectionRequest = z.z.object({
|
|
|
4170
4175
|
url: z.z.string(),
|
|
4171
4176
|
});
|
|
4172
4177
|
|
|
4178
|
+
const ConnectionType = z.z.enum(['connector', 'mcp']);
|
|
4173
4179
|
const ConnectionEditableProperties = z.z.object({
|
|
4180
|
+
type: ConnectionType.optional(),
|
|
4174
4181
|
name: z.z.string().optional(),
|
|
4175
4182
|
meta: z.z.record(z.z.string(), z.z.any()).optional(),
|
|
4176
4183
|
authOptionKey: z.z.string().optional(),
|
|
@@ -4194,9 +4201,14 @@ const ConnectionClientAction = z.z.object({
|
|
|
4194
4201
|
uiUrl: z.z.string().optional(),
|
|
4195
4202
|
agentInstructions: z.z.string().optional(),
|
|
4196
4203
|
handoffAgentInstructions: z.z.string().optional(),
|
|
4204
|
+
reason: z.z
|
|
4205
|
+
.enum(['authenticate', 'reauthenticate', 'provide-input'])
|
|
4206
|
+
.optional()
|
|
4207
|
+
.describe('[INTERNAL] Cause that triggered this client action; persisted so prompts can be re-rendered on read.'),
|
|
4197
4208
|
});
|
|
4198
4209
|
const BaseConnection = BaseWorkspaceElement.extend({
|
|
4199
4210
|
...TenantLayerElement.shape,
|
|
4211
|
+
type: ConnectionType.optional(),
|
|
4200
4212
|
name: z.z.string(),
|
|
4201
4213
|
key: z.z.string().optional(),
|
|
4202
4214
|
isTest: z.z.boolean().optional(),
|
|
@@ -4662,6 +4674,11 @@ const OAUTH_CONFIG_SCHEMA = {
|
|
|
4662
4674
|
type: 'boolean',
|
|
4663
4675
|
description: 'Skip sending PKCE parameters in the token request. Some authentication processes error if PKCE is enabled.',
|
|
4664
4676
|
},
|
|
4677
|
+
authorizationCodeParam: {
|
|
4678
|
+
type: 'string',
|
|
4679
|
+
default: 'code',
|
|
4680
|
+
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").',
|
|
4681
|
+
},
|
|
4665
4682
|
extra: {
|
|
4666
4683
|
type: 'object',
|
|
4667
4684
|
additionalProperties: true,
|
|
@@ -9444,6 +9461,9 @@ const ConnectorExportProperties = WriteableConnectorFields.extend({
|
|
|
9444
9461
|
})
|
|
9445
9462
|
.omit({ externalAppId: true })
|
|
9446
9463
|
.required({ key: true });
|
|
9464
|
+
const ConnectorVersionExportProperties = WritableConnectorVersionData.extend({
|
|
9465
|
+
version: z.z.string().min(1),
|
|
9466
|
+
});
|
|
9447
9467
|
const UpdateConnectorRequest = WriteableConnectorFields;
|
|
9448
9468
|
const CreateConnectorRequest = WriteableConnectorFields.extend({
|
|
9449
9469
|
name: z.z.string(),
|
|
@@ -9456,6 +9476,10 @@ const BaseConnector = z.z.object({
|
|
|
9456
9476
|
externalAppId: z.z.string().optional(),
|
|
9457
9477
|
name: z.z.string(),
|
|
9458
9478
|
logoUri: z.z.string(),
|
|
9479
|
+
appUri: z.z
|
|
9480
|
+
.string()
|
|
9481
|
+
.optional()
|
|
9482
|
+
.describe('Site URL of the linked external app, denormalized onto public connector listings.'),
|
|
9459
9483
|
categories: z.z.array(z.z.string()).optional(),
|
|
9460
9484
|
isPublic: z.z.boolean().optional(),
|
|
9461
9485
|
popularity: z.z.number().optional(),
|
|
@@ -9468,6 +9492,10 @@ const MinimalConnector = z.z.object({
|
|
|
9468
9492
|
key: z.z.string(),
|
|
9469
9493
|
name: z.z.string(),
|
|
9470
9494
|
logoUri: z.z.string(),
|
|
9495
|
+
appUri: z.z
|
|
9496
|
+
.string()
|
|
9497
|
+
.optional()
|
|
9498
|
+
.describe('Site URL of the linked external app, denormalized onto public connector listings.'),
|
|
9471
9499
|
isPublic: z.z.boolean().optional(),
|
|
9472
9500
|
tenantId: z.z.string().optional(),
|
|
9473
9501
|
});
|
|
@@ -10379,8 +10407,46 @@ const BaseExternalEventPull = ActivityLogRecord.extend({
|
|
|
10379
10407
|
isFullScan: z.z.boolean().optional(),
|
|
10380
10408
|
status: z.z.enum(exports.ExternalEventPullStatus),
|
|
10381
10409
|
collectedEventIds: z.z.array(z.z.string()),
|
|
10410
|
+
telemetryUri: z.z
|
|
10411
|
+
.string()
|
|
10412
|
+
.optional()
|
|
10413
|
+
.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.'),
|
|
10382
10414
|
error: ErrorDataSchema.optional(),
|
|
10383
10415
|
});
|
|
10416
|
+
const ExternalEventPullTelemetry = z.z.object({
|
|
10417
|
+
pullId: z.z.string(),
|
|
10418
|
+
subscriptionId: z.z.string(),
|
|
10419
|
+
connectionId: z.z.string().optional(),
|
|
10420
|
+
strategy: z.z.enum(['full-scan', 'pull-latest-records', 'custom-pull', 'skipped', 'unknown']),
|
|
10421
|
+
eventType: z.z.string().optional(),
|
|
10422
|
+
collectionKey: z.z.string().optional(),
|
|
10423
|
+
startedAt: z.z.string(),
|
|
10424
|
+
finishedAt: z.z.string(),
|
|
10425
|
+
emittedEventCount: z.z.number(),
|
|
10426
|
+
emittedEvents: z.z.array(z.z.object({ type: z.z.string(), recordId: z.z.string().optional() })),
|
|
10427
|
+
notes: z.z.array(z.z.string()),
|
|
10428
|
+
fullScan: z.z
|
|
10429
|
+
.object({
|
|
10430
|
+
totalRecords: z.z.number(),
|
|
10431
|
+
totalPages: z.z.number(),
|
|
10432
|
+
previousSnapshotId: z.z.string().optional(),
|
|
10433
|
+
previousSnapshotRecordCount: z.z.number().optional(),
|
|
10434
|
+
previousSnapshotMissing: z.z.boolean(),
|
|
10435
|
+
newSnapshotId: z.z.string().optional(),
|
|
10436
|
+
isBaseline: z.z.boolean(),
|
|
10437
|
+
})
|
|
10438
|
+
.optional(),
|
|
10439
|
+
pullLatest: z.z
|
|
10440
|
+
.object({
|
|
10441
|
+
stateBefore: z.z.object({ id: z.z.string().optional(), datetime: z.z.string().optional() }).optional(),
|
|
10442
|
+
stateAfter: z.z.object({ id: z.z.string().optional(), datetime: z.z.string().optional() }).optional(),
|
|
10443
|
+
pagesScanned: z.z.number(),
|
|
10444
|
+
scannedRecords: z.z.array(z.z.object({ id: z.z.string(), datetime: z.z.string().optional() })),
|
|
10445
|
+
newRecordIds: z.z.array(z.z.string()),
|
|
10446
|
+
isBaseline: z.z.boolean(),
|
|
10447
|
+
})
|
|
10448
|
+
.optional(),
|
|
10449
|
+
});
|
|
10384
10450
|
|
|
10385
10451
|
exports.ExternalEventTypeImplementationType = void 0;
|
|
10386
10452
|
(function (ExternalEventTypeImplementationType) {
|
|
@@ -10825,6 +10891,7 @@ const GenerateOptionsRequest = z.z.object({
|
|
|
10825
10891
|
connectorVersion: z.z.string().optional(),
|
|
10826
10892
|
});
|
|
10827
10893
|
const ConnectPayload = z.z.object({
|
|
10894
|
+
type: ConnectionType.optional(),
|
|
10828
10895
|
requestId: z.z.string().optional(),
|
|
10829
10896
|
integrationKey: z.z.string().optional(),
|
|
10830
10897
|
integrationId: z.z.string().optional(),
|
|
@@ -11201,6 +11268,7 @@ const CheckpointApiResponse = z.z.object({
|
|
|
11201
11268
|
checkpointNumber: z.z.number(),
|
|
11202
11269
|
snapshot: z.z.record(z.z.string(), z.z.unknown()),
|
|
11203
11270
|
createdAt: z.z.string(),
|
|
11271
|
+
asyncRequestId: z.z.string().optional(),
|
|
11204
11272
|
metadata: z.z.record(z.z.string(), z.z.unknown()).optional(),
|
|
11205
11273
|
});
|
|
11206
11274
|
const CheckpointDiffOperationSchema = z.z.object({
|
|
@@ -12274,8 +12342,8 @@ const AgentSession = z.z.object({
|
|
|
12274
12342
|
id: z.z.string(),
|
|
12275
12343
|
workspaceId: z.z.string(),
|
|
12276
12344
|
orgWorkspaceId: z.z.string().optional(),
|
|
12277
|
-
workspaceElementType: z.z.enum(exports.WorkspaceElementType),
|
|
12278
|
-
workspaceElementId: z.z.string(),
|
|
12345
|
+
workspaceElementType: z.z.enum(exports.WorkspaceElementType).optional(),
|
|
12346
|
+
workspaceElementId: z.z.string().optional(),
|
|
12279
12347
|
type: z.z.string(),
|
|
12280
12348
|
status: z.z.enum(exports.AgentSessionStatus),
|
|
12281
12349
|
prompt: z.z.string(),
|
|
@@ -12290,6 +12358,8 @@ const AgentSession = z.z.object({
|
|
|
12290
12358
|
hasWorker: z.z.boolean(),
|
|
12291
12359
|
isExternal: z.z.boolean().optional(),
|
|
12292
12360
|
agentName: z.z.enum(exports.AgentName).optional(),
|
|
12361
|
+
agentHarnessId: z.z.string().optional(),
|
|
12362
|
+
agentHarnessSnapshotId: z.z.string().optional(),
|
|
12293
12363
|
output: z.z.record(z.z.string(), z.z.unknown()).optional(),
|
|
12294
12364
|
createdAt: z.z.iso.datetime(),
|
|
12295
12365
|
updatedAt: z.z.iso.datetime(),
|
|
@@ -12306,6 +12376,7 @@ const CreateAgentSession = z.z.object({
|
|
|
12306
12376
|
isExternal: z.z.boolean().optional(),
|
|
12307
12377
|
modelId: AIGatewaySupportedModelIdSchema.optional(),
|
|
12308
12378
|
agentName: z.z.enum(exports.AgentName).optional(),
|
|
12379
|
+
agentHarnessId: z.z.string().min(1).optional(),
|
|
12309
12380
|
promptAttachments: z.z.array(AgentSessionAttachment).optional(),
|
|
12310
12381
|
});
|
|
12311
12382
|
const AgentSessionInputSchema = z.z.object({
|
|
@@ -12830,6 +12901,30 @@ const WorkspaceElementSpecs = {
|
|
|
12830
12901
|
namePlural: 'Connected Products',
|
|
12831
12902
|
hasKey: true,
|
|
12832
12903
|
},
|
|
12904
|
+
[exports.WorkspaceElementType.AgentHarness]: {
|
|
12905
|
+
type: exports.WorkspaceElementType.AgentHarness,
|
|
12906
|
+
apiPath: 'agent/harness',
|
|
12907
|
+
collectionName: 'agent-harnesses',
|
|
12908
|
+
name: 'Agent Harness',
|
|
12909
|
+
namePlural: 'Agent Harnesses',
|
|
12910
|
+
hasKey: true,
|
|
12911
|
+
},
|
|
12912
|
+
[exports.WorkspaceElementType.AgentSkill]: {
|
|
12913
|
+
type: exports.WorkspaceElementType.AgentSkill,
|
|
12914
|
+
apiPath: 'agent/skills',
|
|
12915
|
+
collectionName: 'agent-skills',
|
|
12916
|
+
name: 'Agent Skill',
|
|
12917
|
+
namePlural: 'Agent Skills',
|
|
12918
|
+
hasKey: true,
|
|
12919
|
+
},
|
|
12920
|
+
[exports.WorkspaceElementType.AgentInstruction]: {
|
|
12921
|
+
type: exports.WorkspaceElementType.AgentInstruction,
|
|
12922
|
+
apiPath: 'agent/instructions',
|
|
12923
|
+
collectionName: 'agent-instructions',
|
|
12924
|
+
name: 'Agent Instruction',
|
|
12925
|
+
namePlural: 'Agent Instructions',
|
|
12926
|
+
hasKey: true,
|
|
12927
|
+
},
|
|
12833
12928
|
};
|
|
12834
12929
|
function getEditablePathsForElementType(elementType) {
|
|
12835
12930
|
return getEditablePathsForElementType$1(WorkspaceElementSpecs, elementType);
|
|
@@ -12889,6 +12984,11 @@ function getConnectorVersionPath(connectorUuid, version) {
|
|
|
12889
12984
|
const versionDir = version === CONNECTOR_VERSION_DEVELOPMENT ? 'development' : version;
|
|
12890
12985
|
return `${connectorsPath}/${connectorUuid}/${versionDir}/src.zip`;
|
|
12891
12986
|
}
|
|
12987
|
+
function getConnectorVersionSpecPath(connectorUuid, version) {
|
|
12988
|
+
const connectorsPath = WorkspaceElementSpecs[exports.WorkspaceElementType.Connector].apiPath;
|
|
12989
|
+
const versionDir = version === CONNECTOR_VERSION_DEVELOPMENT ? 'development' : version;
|
|
12990
|
+
return `${connectorsPath}/${connectorUuid}/${versionDir}/spec.yml`;
|
|
12991
|
+
}
|
|
12892
12992
|
|
|
12893
12993
|
class SelfAccessor {
|
|
12894
12994
|
constructor(client) {
|
|
@@ -13935,9 +14035,44 @@ function compareWorkspaceExports(baseExport, targetExport, options = { includeDe
|
|
|
13935
14035
|
allSelectors.add(selector);
|
|
13936
14036
|
}
|
|
13937
14037
|
}
|
|
14038
|
+
const baseSelectorByUuid = new Map();
|
|
14039
|
+
for (const [selector, base] of baseMap) {
|
|
14040
|
+
if (base.element.uuid)
|
|
14041
|
+
baseSelectorByUuid.set(base.element.uuid, selector);
|
|
14042
|
+
}
|
|
14043
|
+
const pairs = [];
|
|
14044
|
+
const uuidPairedBaseSelectors = new Set();
|
|
14045
|
+
const uuidPairedTargetSelectors = new Set();
|
|
14046
|
+
for (const [selector, target] of targetMap) {
|
|
14047
|
+
const uuid = target.element.uuid;
|
|
14048
|
+
if (!uuid)
|
|
14049
|
+
continue;
|
|
14050
|
+
const baseSelector = baseSelectorByUuid.get(uuid);
|
|
14051
|
+
if (baseSelector === undefined || uuidPairedBaseSelectors.has(baseSelector))
|
|
14052
|
+
continue;
|
|
14053
|
+
const base = baseMap.get(baseSelector);
|
|
14054
|
+
if (base.type !== target.type)
|
|
14055
|
+
continue;
|
|
14056
|
+
pairs.push({ base, target });
|
|
14057
|
+
uuidPairedBaseSelectors.add(baseSelector);
|
|
14058
|
+
uuidPairedTargetSelectors.add(selector);
|
|
14059
|
+
}
|
|
13938
14060
|
for (const selector of allSelectors) {
|
|
13939
14061
|
const base = baseMap.get(selector);
|
|
13940
14062
|
const target = targetMap.get(selector);
|
|
14063
|
+
const baseFree = base !== undefined && !uuidPairedBaseSelectors.has(selector);
|
|
14064
|
+
const targetFree = target !== undefined && !uuidPairedTargetSelectors.has(selector);
|
|
14065
|
+
if (baseFree && targetFree) {
|
|
14066
|
+
pairs.push({ base, target });
|
|
14067
|
+
}
|
|
14068
|
+
else if (baseFree) {
|
|
14069
|
+
pairs.push({ base });
|
|
14070
|
+
}
|
|
14071
|
+
else if (targetFree) {
|
|
14072
|
+
pairs.push({ target });
|
|
14073
|
+
}
|
|
14074
|
+
}
|
|
14075
|
+
for (const { base, target } of pairs) {
|
|
13941
14076
|
if (base && target && base.element.uuid !== target.element.uuid) {
|
|
13942
14077
|
sourceUuidByTargetUuid.set(target.element.uuid, base.element.uuid);
|
|
13943
14078
|
}
|
|
@@ -13954,9 +14089,12 @@ function compareWorkspaceExports(baseExport, targetExport, options = { includeDe
|
|
|
13954
14089
|
changes[change.uuid] = { elementType: subject.type, path };
|
|
13955
14090
|
comparison[change.type].add(change.uuid);
|
|
13956
14091
|
if (options.includeDiff) {
|
|
14092
|
+
const basePath = base
|
|
14093
|
+
? getMembraneElementPath(base.type, base.element.key, getIntegrationIdentifier(base.element, integrationMap))
|
|
14094
|
+
: path;
|
|
13957
14095
|
const baseYaml = base ? yaml__namespace.dump(base.element, { sortKeys: true }) : '';
|
|
13958
14096
|
const targetYaml = target ? yaml__namespace.dump(target.element, { sortKeys: true }) : '';
|
|
13959
|
-
diffs.push(diff.createTwoFilesPatch(`a/${
|
|
14097
|
+
diffs.push(diff.createTwoFilesPatch(`a/${basePath}`, `b/${path}`, baseYaml, targetYaml));
|
|
13960
14098
|
}
|
|
13961
14099
|
}
|
|
13962
14100
|
const result = { comparison, changes, sourceUuidByTargetUuid };
|
|
@@ -14120,11 +14258,21 @@ exports.OrgUserRole = void 0;
|
|
|
14120
14258
|
OrgUserRole["Member"] = "member";
|
|
14121
14259
|
OrgUserRole["ReadOnly"] = "read-only";
|
|
14122
14260
|
})(exports.OrgUserRole || (exports.OrgUserRole = {}));
|
|
14261
|
+
exports.UserWorkspaceRole = void 0;
|
|
14262
|
+
(function (UserWorkspaceRole) {
|
|
14263
|
+
UserWorkspaceRole["Admin"] = "admin";
|
|
14264
|
+
UserWorkspaceRole["Member"] = "member";
|
|
14265
|
+
UserWorkspaceRole["ReadOnly"] = "read-only";
|
|
14266
|
+
})(exports.UserWorkspaceRole || (exports.UserWorkspaceRole = {}));
|
|
14123
14267
|
exports.OrgUserStatus = void 0;
|
|
14124
14268
|
(function (OrgUserStatus) {
|
|
14125
14269
|
OrgUserStatus["Invited"] = "invited";
|
|
14126
14270
|
OrgUserStatus["Active"] = "active";
|
|
14127
14271
|
})(exports.OrgUserStatus || (exports.OrgUserStatus = {}));
|
|
14272
|
+
const UserWorkspaceAccess = z.z.object({
|
|
14273
|
+
workspaceId: z.z.string(),
|
|
14274
|
+
role: z.z.enum(exports.UserWorkspaceRole),
|
|
14275
|
+
});
|
|
14128
14276
|
const OrgLimits = z.z.object({
|
|
14129
14277
|
numberOfWorkspaces: z.z.number().optional(),
|
|
14130
14278
|
todayUsage: z.z.number().optional(),
|
|
@@ -14295,19 +14443,23 @@ const BaseOrgUser = z.z.object({
|
|
|
14295
14443
|
role: z.z.string(),
|
|
14296
14444
|
status: z.z.string(),
|
|
14297
14445
|
workspaces: z.z.array(z.z.string()).optional(),
|
|
14446
|
+
workspacesWithRoles: z.z.array(UserWorkspaceAccess).optional(),
|
|
14298
14447
|
});
|
|
14299
14448
|
const FullOrgUser = BaseOrgUser.extend({
|
|
14300
14449
|
user: FullPlatformUser,
|
|
14301
14450
|
org: Org,
|
|
14451
|
+
workspaces: z.z.array(OrgWorkspace).or(z.z.array(z.z.string())).optional(),
|
|
14302
14452
|
});
|
|
14303
14453
|
const CreateOrgUserRequest = z.z.object({
|
|
14304
14454
|
email: z.z.string(),
|
|
14305
14455
|
workspaces: z.z.array(z.z.string()).optional(),
|
|
14456
|
+
workspacesWithRoles: z.z.array(UserWorkspaceAccess).optional(),
|
|
14306
14457
|
});
|
|
14307
14458
|
const UpdateOrgUserRequest = z.z.object({
|
|
14308
14459
|
role: z.z.enum(exports.OrgUserRole).optional(),
|
|
14309
14460
|
status: z.z.enum(exports.OrgUserStatus).optional(),
|
|
14310
14461
|
workspaces: z.z.array(z.z.string()).optional(),
|
|
14462
|
+
workspacesWithRoles: z.z.array(UserWorkspaceAccess).optional(),
|
|
14311
14463
|
});
|
|
14312
14464
|
const OrgInvitation = z.z.object({
|
|
14313
14465
|
id: z.z.string(),
|
|
@@ -15606,12 +15758,12 @@ class ConnectionLevelFlowsAccessor extends ConnectionLevelElementsListAccessor {
|
|
|
15606
15758
|
}
|
|
15607
15759
|
}
|
|
15608
15760
|
|
|
15609
|
-
var
|
|
15610
|
-
(function (
|
|
15611
|
-
|
|
15612
|
-
|
|
15613
|
-
|
|
15614
|
-
})(
|
|
15761
|
+
var ConnectionDisplayMode;
|
|
15762
|
+
(function (ConnectionDisplayMode) {
|
|
15763
|
+
ConnectionDisplayMode["IFRAME"] = "iframe";
|
|
15764
|
+
ConnectionDisplayMode["POPUP"] = "popup";
|
|
15765
|
+
ConnectionDisplayMode["REDIRECT"] = "redirect";
|
|
15766
|
+
})(ConnectionDisplayMode || (ConnectionDisplayMode = {}));
|
|
15615
15767
|
class ConnectionsAccessor extends ElementInstanceListAccessor {
|
|
15616
15768
|
constructor(client) {
|
|
15617
15769
|
super(client, 'connections');
|
|
@@ -15775,10 +15927,10 @@ class ConnectionProxy {
|
|
|
15775
15927
|
}
|
|
15776
15928
|
}
|
|
15777
15929
|
async function createOrUpdateConnection(options) {
|
|
15778
|
-
const { client, connectionId, connectionKey, integrationKey, integrationId, connectorId, connectorVersion, name, input, connectorParameters, allowMultipleConnections, authOptionKey, connectionRequestId, apiUri, redirectUri, onPopupClosed, lateEvents, } = options !== null && options !== void 0 ? options : {};
|
|
15779
|
-
let connectionType = await detectConnectionType(options);
|
|
15930
|
+
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 : {};
|
|
15931
|
+
let connectionType = type === 'mcp' ? ConnectionDisplayMode.POPUP : await detectConnectionType(options);
|
|
15780
15932
|
if (redirectUri) {
|
|
15781
|
-
connectionType =
|
|
15933
|
+
connectionType = ConnectionDisplayMode.REDIRECT;
|
|
15782
15934
|
}
|
|
15783
15935
|
const freshToken = await client.getToken();
|
|
15784
15936
|
const connectPath = 'connect';
|
|
@@ -15787,6 +15939,7 @@ async function createOrUpdateConnection(options) {
|
|
|
15787
15939
|
const requestId = simpleUniqueId() + simpleUniqueId();
|
|
15788
15940
|
const payload = {
|
|
15789
15941
|
token: freshToken,
|
|
15942
|
+
type,
|
|
15790
15943
|
input,
|
|
15791
15944
|
connectorParameters,
|
|
15792
15945
|
integrationKey,
|
|
@@ -15801,6 +15954,7 @@ async function createOrUpdateConnection(options) {
|
|
|
15801
15954
|
connectionRequestId,
|
|
15802
15955
|
requestId,
|
|
15803
15956
|
redirectUri,
|
|
15957
|
+
customState,
|
|
15804
15958
|
};
|
|
15805
15959
|
let cancelCheckInterval;
|
|
15806
15960
|
let lateEventsTimeout;
|
|
@@ -15864,7 +16018,7 @@ async function createOrUpdateConnection(options) {
|
|
|
15864
16018
|
input.value = JSON.stringify(payload);
|
|
15865
16019
|
form.appendChild(input);
|
|
15866
16020
|
document.body.appendChild(form);
|
|
15867
|
-
if (connectionType ===
|
|
16021
|
+
if (connectionType === ConnectionDisplayMode.IFRAME) {
|
|
15868
16022
|
const iframeElement = document.createElement('iframe');
|
|
15869
16023
|
iframeElement.id = targetElementId;
|
|
15870
16024
|
iframeElement.name = targetElementId;
|
|
@@ -15879,12 +16033,12 @@ async function createOrUpdateConnection(options) {
|
|
|
15879
16033
|
form.submit();
|
|
15880
16034
|
document.body.removeChild(form);
|
|
15881
16035
|
}
|
|
15882
|
-
if (connectionType ===
|
|
16036
|
+
if (connectionType === ConnectionDisplayMode.REDIRECT) {
|
|
15883
16037
|
form.target = '_self';
|
|
15884
16038
|
form.submit();
|
|
15885
16039
|
document.body.removeChild(form);
|
|
15886
16040
|
}
|
|
15887
|
-
if (connectionType ===
|
|
16041
|
+
if (connectionType === ConnectionDisplayMode.POPUP) {
|
|
15888
16042
|
const width = Math.min(Math.round(screen.width * 0.7), 1000);
|
|
15889
16043
|
const height = Math.min(Math.round(screen.height * 0.6), 800);
|
|
15890
16044
|
const left = Math.round((screen.width - width) / 2);
|
|
@@ -15933,9 +16087,9 @@ async function detectConnectionType({ client, authOptionKey, connectorId, connec
|
|
|
15933
16087
|
});
|
|
15934
16088
|
const option = connectionOptions.find((option) => option.key == authOptionKey);
|
|
15935
16089
|
if ((option === null || option === void 0 ? void 0 : option.type) === 'client-credentials') {
|
|
15936
|
-
return
|
|
16090
|
+
return ConnectionDisplayMode.IFRAME;
|
|
15937
16091
|
}
|
|
15938
|
-
return
|
|
16092
|
+
return ConnectionDisplayMode.POPUP;
|
|
15939
16093
|
}
|
|
15940
16094
|
const createCrossWindowListener = ({ requestId, handlers, }) => {
|
|
15941
16095
|
const listener = (event) => {
|
|
@@ -16423,6 +16577,124 @@ const ScenarioTemplate = z.z.object({
|
|
|
16423
16577
|
handyElements: z.z.array(HandyScenarioTemplateElement).optional(),
|
|
16424
16578
|
});
|
|
16425
16579
|
|
|
16580
|
+
const AgentInstruction = z.z.object({
|
|
16581
|
+
id: z.z.string(),
|
|
16582
|
+
workspaceId: z.z.string(),
|
|
16583
|
+
name: z.z.string(),
|
|
16584
|
+
key: z.z.string(),
|
|
16585
|
+
text: z.z.string().min(1),
|
|
16586
|
+
revision: z.z.string().optional(),
|
|
16587
|
+
archivedAt: z.z.iso.datetime().optional(),
|
|
16588
|
+
createdAt: z.z.iso.datetime().optional(),
|
|
16589
|
+
updatedAt: z.z.iso.datetime().optional(),
|
|
16590
|
+
});
|
|
16591
|
+
const CreateAgentInstructionRequest = z.z.object({
|
|
16592
|
+
name: z.z.string().min(1),
|
|
16593
|
+
key: z.z.string().min(1).optional(),
|
|
16594
|
+
text: z.z.string().min(1),
|
|
16595
|
+
});
|
|
16596
|
+
const UpdateAgentInstructionRequest = CreateAgentInstructionRequest.partial();
|
|
16597
|
+
const FindAgentInstructionQuery = PaginationQuery.merge(SearchQuery).merge(IncludeArchivedQuery);
|
|
16598
|
+
|
|
16599
|
+
const AgentSkill = z.z.object({
|
|
16600
|
+
id: z.z.string(),
|
|
16601
|
+
workspaceId: z.z.string(),
|
|
16602
|
+
name: z.z.string(),
|
|
16603
|
+
key: z.z.string(),
|
|
16604
|
+
description: z.z.string().min(1),
|
|
16605
|
+
body: z.z.string().min(1),
|
|
16606
|
+
sourceUrl: z.z.url().optional(),
|
|
16607
|
+
revision: z.z.string().optional(),
|
|
16608
|
+
archivedAt: z.z.iso.datetime().optional(),
|
|
16609
|
+
createdAt: z.z.iso.datetime().optional(),
|
|
16610
|
+
updatedAt: z.z.iso.datetime().optional(),
|
|
16611
|
+
});
|
|
16612
|
+
const CreateAgentSkillRequest = z.z.object({
|
|
16613
|
+
name: z.z.string().min(1),
|
|
16614
|
+
key: z.z.string().min(1).optional(),
|
|
16615
|
+
description: z.z.string().min(1),
|
|
16616
|
+
body: z.z.string().min(1),
|
|
16617
|
+
sourceUrl: z.z.url().optional(),
|
|
16618
|
+
});
|
|
16619
|
+
const UpdateAgentSkillRequest = CreateAgentSkillRequest.partial();
|
|
16620
|
+
const PreviewAgentSkillSourceRequest = z.z.object({
|
|
16621
|
+
sourceUrl: z.z.url(),
|
|
16622
|
+
});
|
|
16623
|
+
const PreviewAgentSkillSourceResponse = z.z.object({
|
|
16624
|
+
name: z.z.string().min(1),
|
|
16625
|
+
key: z.z.string().min(1).optional(),
|
|
16626
|
+
description: z.z.string().min(1),
|
|
16627
|
+
body: z.z.string().min(1),
|
|
16628
|
+
sourceUrl: z.z.url(),
|
|
16629
|
+
});
|
|
16630
|
+
const FindAgentSkillQuery = PaginationQuery.merge(SearchQuery).merge(IncludeArchivedQuery);
|
|
16631
|
+
|
|
16632
|
+
const AgentTool = z.z.object({
|
|
16633
|
+
id: z.z.string().min(1),
|
|
16634
|
+
name: z.z.string().min(1),
|
|
16635
|
+
description: z.z.string().min(1),
|
|
16636
|
+
enabledByDefault: z.z.boolean().default(false),
|
|
16637
|
+
});
|
|
16638
|
+
|
|
16639
|
+
const AgentHarnessReferenceList = z.z.array(z.z.string());
|
|
16640
|
+
const AgentHarnessReferenceListWithDefault = AgentHarnessReferenceList.default([]);
|
|
16641
|
+
const AgentHarness = z.z.object({
|
|
16642
|
+
id: z.z.string(),
|
|
16643
|
+
workspaceId: z.z.string(),
|
|
16644
|
+
name: z.z.string(),
|
|
16645
|
+
key: z.z.string(),
|
|
16646
|
+
description: z.z.string().optional(),
|
|
16647
|
+
systemPrompt: z.z.string().optional(),
|
|
16648
|
+
defaultModel: AIGatewaySupportedModelIdSchema,
|
|
16649
|
+
toolIds: AgentHarnessReferenceListWithDefault,
|
|
16650
|
+
skillIds: AgentHarnessReferenceListWithDefault,
|
|
16651
|
+
instructionIds: AgentHarnessReferenceListWithDefault,
|
|
16652
|
+
tools: z.z.array(AgentTool).default([]),
|
|
16653
|
+
skills: z.z.array(AgentSkill).default([]),
|
|
16654
|
+
instructions: z.z.array(AgentInstruction).default([]),
|
|
16655
|
+
revision: z.z.string().optional(),
|
|
16656
|
+
archivedAt: z.z.iso.datetime().optional(),
|
|
16657
|
+
createdAt: z.z.iso.datetime().optional(),
|
|
16658
|
+
updatedAt: z.z.iso.datetime().optional(),
|
|
16659
|
+
});
|
|
16660
|
+
const CreateAgentHarnessRequest = z.z.object({
|
|
16661
|
+
name: z.z.string().min(1),
|
|
16662
|
+
key: z.z.string().min(1).optional(),
|
|
16663
|
+
description: z.z.string().optional(),
|
|
16664
|
+
systemPrompt: z.z.string().optional(),
|
|
16665
|
+
defaultModel: AIGatewaySupportedModelIdSchema,
|
|
16666
|
+
toolIds: AgentHarnessReferenceList.optional(),
|
|
16667
|
+
skillIds: AgentHarnessReferenceList.optional(),
|
|
16668
|
+
instructionIds: AgentHarnessReferenceList.optional(),
|
|
16669
|
+
});
|
|
16670
|
+
const UpdateAgentHarnessRequest = CreateAgentHarnessRequest.partial();
|
|
16671
|
+
const FindAgentHarnessQuery = PaginationQuery.merge(SearchQuery).merge(IncludeArchivedQuery);
|
|
16672
|
+
|
|
16673
|
+
const AgentHarnessSnapshotReferenceList = z.z.array(z.z.string()).default([]);
|
|
16674
|
+
const AgentHarnessSnapshot = z.z.object({
|
|
16675
|
+
id: z.z.string(),
|
|
16676
|
+
workspaceId: z.z.string(),
|
|
16677
|
+
agentHarnessId: z.z.string(),
|
|
16678
|
+
agentHarnessRevision: z.z.string().optional(),
|
|
16679
|
+
name: z.z.string(),
|
|
16680
|
+
key: z.z.string(),
|
|
16681
|
+
description: z.z.string().optional(),
|
|
16682
|
+
systemPrompt: z.z.string().default(''),
|
|
16683
|
+
defaultModel: AIGatewaySupportedModelIdSchema,
|
|
16684
|
+
hash: z.z.string().optional(),
|
|
16685
|
+
toolIds: AgentHarnessSnapshotReferenceList,
|
|
16686
|
+
tools: z.z.array(AgentTool).default([]),
|
|
16687
|
+
skillIds: AgentHarnessSnapshotReferenceList,
|
|
16688
|
+
skills: z.z.array(AgentSkill).default([]),
|
|
16689
|
+
instructionIds: AgentHarnessSnapshotReferenceList,
|
|
16690
|
+
instructions: z.z.array(AgentInstruction).default([]),
|
|
16691
|
+
createdAt: z.z.iso.datetime().optional(),
|
|
16692
|
+
updatedAt: z.z.iso.datetime().optional(),
|
|
16693
|
+
});
|
|
16694
|
+
const FindAgentHarnessSnapshotQuery = PaginationQuery.extend({
|
|
16695
|
+
agentHarnessId: z.z.string().optional(),
|
|
16696
|
+
});
|
|
16697
|
+
|
|
16426
16698
|
function formatSessionCost(cost) {
|
|
16427
16699
|
if (cost === undefined || cost === null)
|
|
16428
16700
|
return '-';
|
|
@@ -16436,6 +16708,7 @@ const SessionCredentials = z.z.object({
|
|
|
16436
16708
|
});
|
|
16437
16709
|
const SessionParameters = z.z.object({
|
|
16438
16710
|
id: z.z.string().optional(),
|
|
16711
|
+
leaseId: z.z.string().uuid().optional(),
|
|
16439
16712
|
accessToken: z.z.string().optional(),
|
|
16440
16713
|
credentials: SessionCredentials.optional(),
|
|
16441
16714
|
apiUri: z.z.string().optional(),
|
|
@@ -16448,10 +16721,28 @@ const SessionParameters = z.z.object({
|
|
|
16448
16721
|
openRouterApiKey: z.z.string().optional(),
|
|
16449
16722
|
modelId: z.z.string().optional(),
|
|
16450
16723
|
agentName: z.z.enum(exports.AgentName).optional(),
|
|
16724
|
+
agentHarnessSnapshotId: z.z.string().optional(),
|
|
16451
16725
|
engine: z.z.enum(['opencode', 'inline']).optional(),
|
|
16452
16726
|
attachments: z.z.array(AgentSessionAttachment).optional(),
|
|
16453
16727
|
});
|
|
16454
16728
|
|
|
16729
|
+
const AGENT_WORKSPACE_ELEMENT_CONTEXT_TYPES = [
|
|
16730
|
+
exports.WorkspaceElementType.Integration,
|
|
16731
|
+
exports.WorkspaceElementType.Connection,
|
|
16732
|
+
exports.WorkspaceElementType.Action,
|
|
16733
|
+
exports.WorkspaceElementType.Flow,
|
|
16734
|
+
exports.WorkspaceElementType.DataSource,
|
|
16735
|
+
exports.WorkspaceElementType.FieldMapping,
|
|
16736
|
+
exports.WorkspaceElementType.DataLinkTable,
|
|
16737
|
+
exports.WorkspaceElementType.AppDataSchema,
|
|
16738
|
+
exports.WorkspaceElementType.AppEventType,
|
|
16739
|
+
exports.WorkspaceElementType.ExternalEventType,
|
|
16740
|
+
];
|
|
16741
|
+
const AGENT_WORKSPACE_ELEMENT_CONTEXT_TYPE_SET = new Set(AGENT_WORKSPACE_ELEMENT_CONTEXT_TYPES);
|
|
16742
|
+
function canFetchAgentWorkspaceElementContext(elementType) {
|
|
16743
|
+
return !!elementType && AGENT_WORKSPACE_ELEMENT_CONTEXT_TYPE_SET.has(elementType);
|
|
16744
|
+
}
|
|
16745
|
+
|
|
16455
16746
|
exports.AsyncRequestStatus = void 0;
|
|
16456
16747
|
(function (AsyncRequestStatus) {
|
|
16457
16748
|
AsyncRequestStatus["PENDING"] = "pending";
|
|
@@ -16563,6 +16854,81 @@ const PlatformUserTokenListResponse = z.z.object({
|
|
|
16563
16854
|
items: z.z.array(PlatformUserToken),
|
|
16564
16855
|
});
|
|
16565
16856
|
|
|
16857
|
+
const MCP_PROTOCOL_VERSION = '2025-11-25';
|
|
16858
|
+
const McpConnectionInput = z.z.object({
|
|
16859
|
+
mcpServerUrl: z.z.string().url().optional(),
|
|
16860
|
+
});
|
|
16861
|
+
const ProtectedResourceMetadata = z.z.object({
|
|
16862
|
+
resource: z.z.string().url(),
|
|
16863
|
+
authorization_servers: z.z.array(z.z.string().url()).min(1),
|
|
16864
|
+
bearer_methods_supported: z.z.array(z.z.string()).optional(),
|
|
16865
|
+
scopes_supported: z.z.array(z.z.string()).optional(),
|
|
16866
|
+
});
|
|
16867
|
+
const AuthorizationServerMetadata = z.z
|
|
16868
|
+
.object({
|
|
16869
|
+
issuer: z.z.string().url(),
|
|
16870
|
+
authorization_endpoint: z.z.string().url(),
|
|
16871
|
+
token_endpoint: z.z.string().url(),
|
|
16872
|
+
registration_endpoint: z.z.string().url().optional(),
|
|
16873
|
+
scopes_supported: z.z.array(z.z.string()).optional(),
|
|
16874
|
+
response_types_supported: z.z.array(z.z.string()).optional(),
|
|
16875
|
+
grant_types_supported: z.z.array(z.z.string()).optional(),
|
|
16876
|
+
code_challenge_methods_supported: z.z.array(z.z.string()).optional(),
|
|
16877
|
+
token_endpoint_auth_methods_supported: z.z.array(z.z.string()).optional(),
|
|
16878
|
+
client_id_metadata_document_supported: z.z.boolean().optional(),
|
|
16879
|
+
})
|
|
16880
|
+
.passthrough();
|
|
16881
|
+
const DynamicClientRegistrationResponse = z.z
|
|
16882
|
+
.object({
|
|
16883
|
+
client_id: z.z.string(),
|
|
16884
|
+
client_secret: z.z.string().optional(),
|
|
16885
|
+
client_id_issued_at: z.z.number().optional(),
|
|
16886
|
+
client_secret_expires_at: z.z.number().optional(),
|
|
16887
|
+
registration_access_token: z.z.string().optional(),
|
|
16888
|
+
registration_client_uri: z.z.string().url().optional(),
|
|
16889
|
+
})
|
|
16890
|
+
.passthrough();
|
|
16891
|
+
const McpTokenResponse = z.z
|
|
16892
|
+
.object({
|
|
16893
|
+
access_token: z.z.string(),
|
|
16894
|
+
token_type: z.z.string(),
|
|
16895
|
+
expires_in: z.z.number().optional(),
|
|
16896
|
+
refresh_token: z.z.string().optional(),
|
|
16897
|
+
scope: z.z.string().optional(),
|
|
16898
|
+
})
|
|
16899
|
+
.passthrough();
|
|
16900
|
+
const McpTool = z.z
|
|
16901
|
+
.object({
|
|
16902
|
+
name: z.z.string(),
|
|
16903
|
+
description: z.z.string().optional(),
|
|
16904
|
+
inputSchema: z.z.record(z.z.string(), z.z.unknown()),
|
|
16905
|
+
})
|
|
16906
|
+
.passthrough();
|
|
16907
|
+
const McpSynthesizedAction = z.z.object({
|
|
16908
|
+
mcp: z.z.literal(true),
|
|
16909
|
+
id: z.z.string(),
|
|
16910
|
+
connectionId: z.z.string(),
|
|
16911
|
+
key: z.z.string(),
|
|
16912
|
+
name: z.z.string(),
|
|
16913
|
+
description: z.z.string().optional(),
|
|
16914
|
+
inputSchema: z.z.record(z.z.string(), z.z.unknown()).optional(),
|
|
16915
|
+
isReadOnly: z.z.literal(true),
|
|
16916
|
+
});
|
|
16917
|
+
const McpAuthState = z.z.object({
|
|
16918
|
+
asIssuer: z.z.string().url(),
|
|
16919
|
+
tokenEndpoint: z.z.string().url(),
|
|
16920
|
+
clientId: z.z.string(),
|
|
16921
|
+
clientSecret: z.z.string().optional(),
|
|
16922
|
+
canonicalResource: z.z.string(),
|
|
16923
|
+
scope: z.z.string().optional(),
|
|
16924
|
+
});
|
|
16925
|
+
const McpCredentials = z.z.object({
|
|
16926
|
+
accessToken: z.z.string(),
|
|
16927
|
+
refreshToken: z.z.string().optional(),
|
|
16928
|
+
expiresAt: z.z.coerce.date().optional(),
|
|
16929
|
+
tokenType: z.z.string().default('Bearer'),
|
|
16930
|
+
});
|
|
16931
|
+
|
|
16566
16932
|
const WORKSPACE_TOKEN_GRANT_TYPES = ['mcp-oauth', 'agent-session', 'api'];
|
|
16567
16933
|
const WorkspaceTokenGrantType = z.z.enum(WORKSPACE_TOKEN_GRANT_TYPES);
|
|
16568
16934
|
const WorkspaceToken = z.z.object({
|
|
@@ -17216,6 +17582,7 @@ injectFormulaCatalog(getFormula, isFormula, hasFormulas);
|
|
|
17216
17582
|
|
|
17217
17583
|
exports.ACTIONS = ACTIONS;
|
|
17218
17584
|
exports.AGENTIC_CONNECTION_REQUEST_SCREEN_PATH = AGENTIC_CONNECTION_REQUEST_SCREEN_PATH;
|
|
17585
|
+
exports.AGENT_WORKSPACE_ELEMENT_CONTEXT_TYPES = AGENT_WORKSPACE_ELEMENT_CONTEXT_TYPES;
|
|
17219
17586
|
exports.AIGatewaySupportedModelIdSchema = AIGatewaySupportedModelIdSchema;
|
|
17220
17587
|
exports.AI_GATEWAY_PROVIDER_MODELS = AI_GATEWAY_PROVIDER_MODELS;
|
|
17221
17588
|
exports.AI_GATEWAY_SUPPORTED_MODELS = AI_GATEWAY_SUPPORTED_MODELS;
|
|
@@ -17244,9 +17611,14 @@ exports.ActionSnapshot = ActionSnapshot;
|
|
|
17244
17611
|
exports.ActionsAccessor = ActionsAccessor;
|
|
17245
17612
|
exports.ActivityLogRecord = ActivityLogRecord;
|
|
17246
17613
|
exports.ActivityStatsQuery = ActivityStatsQuery;
|
|
17614
|
+
exports.AgentHarness = AgentHarness;
|
|
17615
|
+
exports.AgentHarnessSnapshot = AgentHarnessSnapshot;
|
|
17616
|
+
exports.AgentInstruction = AgentInstruction;
|
|
17247
17617
|
exports.AgentSession = AgentSession;
|
|
17248
17618
|
exports.AgentSessionAttachment = AgentSessionAttachment;
|
|
17249
17619
|
exports.AgentSessionInputSchema = AgentSessionInputSchema;
|
|
17620
|
+
exports.AgentSkill = AgentSkill;
|
|
17621
|
+
exports.AgentTool = AgentTool;
|
|
17250
17622
|
exports.AiAgentAudience = AiAgentAudience;
|
|
17251
17623
|
exports.AiAgentParameters = AiAgentParameters;
|
|
17252
17624
|
exports.AiAgentType = AiAgentType;
|
|
@@ -17280,6 +17652,7 @@ exports.AsyncRequestStatusSchema = AsyncRequestStatusSchema;
|
|
|
17280
17652
|
exports.AsyncRequestTriggerResponse = AsyncRequestTriggerResponse;
|
|
17281
17653
|
exports.AuthContextPermissionsSchema = AuthContextPermissionsSchema;
|
|
17282
17654
|
exports.AuthContextSettings = AuthContextSettings;
|
|
17655
|
+
exports.AuthorizationServerMetadata = AuthorizationServerMetadata;
|
|
17283
17656
|
exports.BackwardCompatibleDataSourceEditableProperties = BackwardCompatibleDataSourceEditableProperties;
|
|
17284
17657
|
exports.BadRequestError = BadRequestError;
|
|
17285
17658
|
exports.BaseAction = BaseAction;
|
|
@@ -17378,6 +17751,7 @@ exports.ConnectionRequest = ConnectionRequest;
|
|
|
17378
17751
|
exports.ConnectionSelector = ConnectionSelector;
|
|
17379
17752
|
exports.ConnectionSpec = ConnectionSpec;
|
|
17380
17753
|
exports.ConnectionTestResponse = ConnectionTestResponse;
|
|
17754
|
+
exports.ConnectionType = ConnectionType;
|
|
17381
17755
|
exports.ConnectionsAccessor = ConnectionsAccessor;
|
|
17382
17756
|
exports.Connector = Connector;
|
|
17383
17757
|
exports.ConnectorAuth = ConnectorAuth;
|
|
@@ -17417,9 +17791,13 @@ exports.ConnectorUdmSpec = ConnectorUdmSpec;
|
|
|
17417
17791
|
exports.ConnectorUiSpec = ConnectorUiSpec;
|
|
17418
17792
|
exports.ConnectorVersion = ConnectorVersion;
|
|
17419
17793
|
exports.ConnectorVersionData = ConnectorVersionData;
|
|
17794
|
+
exports.ConnectorVersionExportProperties = ConnectorVersionExportProperties;
|
|
17420
17795
|
exports.CreateActionInstanceRequest = CreateActionInstanceRequest;
|
|
17421
17796
|
exports.CreateActionRequest = CreateActionRequest;
|
|
17797
|
+
exports.CreateAgentHarnessRequest = CreateAgentHarnessRequest;
|
|
17798
|
+
exports.CreateAgentInstructionRequest = CreateAgentInstructionRequest;
|
|
17422
17799
|
exports.CreateAgentSession = CreateAgentSession;
|
|
17800
|
+
exports.CreateAgentSkillRequest = CreateAgentSkillRequest;
|
|
17423
17801
|
exports.CreateAlert = CreateAlert;
|
|
17424
17802
|
exports.CreateConnectedProductRequest = CreateConnectedProductRequest;
|
|
17425
17803
|
exports.CreateConnectionRequest = CreateConnectionRequest;
|
|
@@ -17545,6 +17923,7 @@ exports.DbBackedCountsSchema = DbBackedCountsSchema;
|
|
|
17545
17923
|
exports.DependencyError = DependencyError;
|
|
17546
17924
|
exports.DomainFromEmail = DomainFromEmail;
|
|
17547
17925
|
exports.DownstreamFlowNodeRunSchema = DownstreamFlowNodeRunSchema;
|
|
17926
|
+
exports.DynamicClientRegistrationResponse = DynamicClientRegistrationResponse;
|
|
17548
17927
|
exports.EDITABLE_LIMITS = EDITABLE_LIMITS;
|
|
17549
17928
|
exports.EXTERNAL_EVENT_TYPE_FUNCTION_KEYS = EXTERNAL_EVENT_TYPE_FUNCTION_KEYS;
|
|
17550
17929
|
exports.ElementAccessor = ElementAccessor;
|
|
@@ -17562,6 +17941,7 @@ exports.ExternalApiLogApiResponse = ExternalApiLogApiResponse;
|
|
|
17562
17941
|
exports.ExternalEvent = ExternalEvent;
|
|
17563
17942
|
exports.ExternalEventLogRecordApiResponse = ExternalEventLogRecordApiResponse;
|
|
17564
17943
|
exports.ExternalEventPullApiResponse = ExternalEventPullApiResponse;
|
|
17944
|
+
exports.ExternalEventPullTelemetry = ExternalEventPullTelemetry;
|
|
17565
17945
|
exports.ExternalEventSubscriptionAccessor = ExternalEventSubscriptionAccessor;
|
|
17566
17946
|
exports.ExternalEventSubscriptionApiResponse = ExternalEventSubscriptionApiResponse;
|
|
17567
17947
|
exports.ExternalEventSubscriptionConfig = ExternalEventSubscriptionConfig;
|
|
@@ -17584,6 +17964,10 @@ exports.FindActionInstancesQuery = FindActionInstancesQuery;
|
|
|
17584
17964
|
exports.FindActionRunLogsQuery = FindActionRunLogsQuery;
|
|
17585
17965
|
exports.FindActionRunLogsResponse = FindActionRunLogsResponse;
|
|
17586
17966
|
exports.FindActionsQuery = FindActionsQuery;
|
|
17967
|
+
exports.FindAgentHarnessQuery = FindAgentHarnessQuery;
|
|
17968
|
+
exports.FindAgentHarnessSnapshotQuery = FindAgentHarnessSnapshotQuery;
|
|
17969
|
+
exports.FindAgentInstructionQuery = FindAgentInstructionQuery;
|
|
17970
|
+
exports.FindAgentSkillQuery = FindAgentSkillQuery;
|
|
17587
17971
|
exports.FindAlertsQuery = FindAlertsQuery;
|
|
17588
17972
|
exports.FindAppDataSchemaInstancesQuery = FindAppDataSchemaInstancesQuery;
|
|
17589
17973
|
exports.FindAppDataSchemasQuery = FindAppDataSchemasQuery;
|
|
@@ -17718,6 +18102,7 @@ exports.ListOrgWorkspacesResponse = ListOrgWorkspacesResponse;
|
|
|
17718
18102
|
exports.ListPublicConnectorsQuery = ListPublicConnectorsQuery;
|
|
17719
18103
|
exports.ListPublicPackagesQuery = ListPublicPackagesQuery;
|
|
17720
18104
|
exports.ListableAsyncRequestType = ListableAsyncRequestType;
|
|
18105
|
+
exports.MCP_PROTOCOL_VERSION = MCP_PROTOCOL_VERSION;
|
|
17721
18106
|
exports.MEMBRANE_CLI_CLIENT_ID = MEMBRANE_CLI_CLIENT_ID;
|
|
17722
18107
|
exports.MEMBRANE_ELEMENT_CONFIG_FILE_NAME = MEMBRANE_ELEMENT_CONFIG_FILE_NAME;
|
|
17723
18108
|
exports.MEMBRANE_SESSION_ID_HEADER = MEMBRANE_SESSION_ID_HEADER;
|
|
@@ -17725,6 +18110,12 @@ exports.MIN_FULL_SYNC_INTERVAL_SECONDS = MIN_FULL_SYNC_INTERVAL_SECONDS;
|
|
|
17725
18110
|
exports.MIN_PULL_UPDATES_INTERVAL_SECONDS = MIN_PULL_UPDATES_INTERVAL_SECONDS;
|
|
17726
18111
|
exports.MappingFunction = MappingFunction;
|
|
17727
18112
|
exports.MappingSchema = MappingSchema;
|
|
18113
|
+
exports.McpAuthState = McpAuthState;
|
|
18114
|
+
exports.McpConnectionInput = McpConnectionInput;
|
|
18115
|
+
exports.McpCredentials = McpCredentials;
|
|
18116
|
+
exports.McpSynthesizedAction = McpSynthesizedAction;
|
|
18117
|
+
exports.McpTokenResponse = McpTokenResponse;
|
|
18118
|
+
exports.McpTool = McpTool;
|
|
17728
18119
|
exports.MembraneAgentKey = MembraneAgentKey;
|
|
17729
18120
|
exports.MembraneAxiosInstance = axios;
|
|
17730
18121
|
exports.MembraneClient = MembraneClient;
|
|
@@ -17786,6 +18177,9 @@ exports.PlatformUser = PlatformUser;
|
|
|
17786
18177
|
exports.PlatformUserToken = PlatformUserToken;
|
|
17787
18178
|
exports.PlatformUserTokenGrantType = PlatformUserTokenGrantType;
|
|
17788
18179
|
exports.PlatformUserTokenListResponse = PlatformUserTokenListResponse;
|
|
18180
|
+
exports.PreviewAgentSkillSourceRequest = PreviewAgentSkillSourceRequest;
|
|
18181
|
+
exports.PreviewAgentSkillSourceResponse = PreviewAgentSkillSourceResponse;
|
|
18182
|
+
exports.ProtectedResourceMetadata = ProtectedResourceMetadata;
|
|
17789
18183
|
exports.RATE_LIMITS = RATE_LIMITS;
|
|
17790
18184
|
exports.REFERENCE_ELEMENT_TYPE_SELF = REFERENCE_ELEMENT_TYPE_SELF;
|
|
17791
18185
|
exports.RateLimitExceededError = RateLimitExceededError;
|
|
@@ -17821,6 +18215,9 @@ exports.UNIFIED_DATA_MODELS = UNIFIED_DATA_MODELS;
|
|
|
17821
18215
|
exports.UnitRunError = UnitRunError;
|
|
17822
18216
|
exports.UpdateActionInstanceRequest = UpdateActionInstanceRequest;
|
|
17823
18217
|
exports.UpdateActionRequest = UpdateActionRequest;
|
|
18218
|
+
exports.UpdateAgentHarnessRequest = UpdateAgentHarnessRequest;
|
|
18219
|
+
exports.UpdateAgentInstructionRequest = UpdateAgentInstructionRequest;
|
|
18220
|
+
exports.UpdateAgentSkillRequest = UpdateAgentSkillRequest;
|
|
17824
18221
|
exports.UpdateConnectedProductRequest = UpdateConnectedProductRequest;
|
|
17825
18222
|
exports.UpdateConnectionRequest = UpdateConnectionRequest;
|
|
17826
18223
|
exports.UpdateConnectorRequest = UpdateConnectorRequest;
|
|
@@ -17845,6 +18242,7 @@ exports.UpdateWorkspaceLimitsRequest = UpdateWorkspaceLimitsRequest;
|
|
|
17845
18242
|
exports.UpdateWorkspaceRequest = UpdateWorkspaceRequest;
|
|
17846
18243
|
exports.UpstreamFlowNodeRunSchema = UpstreamFlowNodeRunSchema;
|
|
17847
18244
|
exports.UserAccessor = UserAccessor;
|
|
18245
|
+
exports.UserWorkspaceAccess = UserWorkspaceAccess;
|
|
17848
18246
|
exports.UsersAccessor = UsersAccessor;
|
|
17849
18247
|
exports.ValidateSelfHostingTokenRequest = ValidateSelfHostingTokenRequest;
|
|
17850
18248
|
exports.ValidateSelfHostingTokenResponse = ValidateSelfHostingTokenResponse;
|
|
@@ -17879,6 +18277,7 @@ exports.buildActionSnapshot = buildActionSnapshot;
|
|
|
17879
18277
|
exports.buildData = buildData;
|
|
17880
18278
|
exports.buildDataSchema = buildDataSchema;
|
|
17881
18279
|
exports.buildValue = buildValue;
|
|
18280
|
+
exports.canFetchAgentWorkspaceElementContext = canFetchAgentWorkspaceElementContext;
|
|
17882
18281
|
exports.compareElementMaps = compareElementMaps;
|
|
17883
18282
|
exports.compareWorkspaceExports = compareWorkspaceExports;
|
|
17884
18283
|
exports.compressDataSchema = compressDataSchema;
|
|
@@ -17918,6 +18317,7 @@ exports.getChildNodeKeys = getChildNodeKeys;
|
|
|
17918
18317
|
exports.getConnectionRequestUrl = getConnectionRequestUrl;
|
|
17919
18318
|
exports.getConnectorSpecPath = getConnectorSpecPath;
|
|
17920
18319
|
exports.getConnectorVersionPath = getConnectorVersionPath;
|
|
18320
|
+
exports.getConnectorVersionSpecPath = getConnectorVersionSpecPath;
|
|
17921
18321
|
exports.getDataCollectionCreateFields = getDataCollectionCreateFields;
|
|
17922
18322
|
exports.getDataCollectionUpdateFields = getDataCollectionUpdateFields;
|
|
17923
18323
|
exports.getDataLocationMethodPath = getDataLocationMethodPath;
|