@membranehq/sdk 0.29.0 → 0.29.2

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.
Files changed (56) hide show
  1. package/dist/bundle.d.ts +97 -2
  2. package/dist/bundle.js +1055 -274
  3. package/dist/bundle.js.map +1 -1
  4. package/dist/dts/accessors/connections-accessors.d.ts +5 -0
  5. package/dist/dts/accessors/integrations-accessors.d.ts +2 -0
  6. package/dist/dts/agent/harness-snapshot.d.ts +65 -0
  7. package/dist/dts/agent/harness.d.ts +107 -0
  8. package/dist/dts/agent/index.d.ts +6 -0
  9. package/dist/dts/agent/instruction.d.ts +32 -0
  10. package/dist/dts/agent/session.d.ts +5 -2
  11. package/dist/dts/agent/skill.d.ts +50 -0
  12. package/dist/dts/agent/tool.d.ts +8 -0
  13. package/dist/dts/agent/worker-contracts.d.ts +2 -0
  14. package/dist/dts/agent/workspace-element-context.d.ts +3 -0
  15. package/dist/dts/data-schema/types.d.ts +1 -1
  16. package/dist/dts/index.browser.d.ts +1 -0
  17. package/dist/dts/mcp-client/index.d.ts +76 -0
  18. package/dist/dts/orgs/types.d.ts +528 -1
  19. package/dist/dts/scenario-templates/index.d.ts +1 -0
  20. package/dist/dts/workspace-elements/api/action-run-log-records-api.d.ts +18 -0
  21. package/dist/dts/workspace-elements/api/checkpoints-api.d.ts +1 -0
  22. package/dist/dts/workspace-elements/api/connections-api.d.ts +47 -0
  23. package/dist/dts/workspace-elements/api/data-link-table-instances-api.d.ts +9 -0
  24. package/dist/dts/workspace-elements/api/data-sources-api.d.ts +18 -0
  25. package/dist/dts/workspace-elements/api/external-api-logs-api.d.ts +9 -0
  26. package/dist/dts/workspace-elements/api/external-event-log-records-api.d.ts +14 -0
  27. package/dist/dts/workspace-elements/api/external-event-pulls-api.d.ts +10 -0
  28. package/dist/dts/workspace-elements/api/external-event-subscriptions-api.d.ts +9 -0
  29. package/dist/dts/workspace-elements/api/field-mappings-api.d.ts +18 -0
  30. package/dist/dts/workspace-elements/api/flow-runs-api.d.ts +18 -0
  31. package/dist/dts/workspace-elements/api/flows-api.d.ts +18 -0
  32. package/dist/dts/workspace-elements/api/incoming-webhooks-api.d.ts +9 -0
  33. package/dist/dts/workspace-elements/api/integrations-api.d.ts +18 -0
  34. package/dist/dts/workspace-elements/base/connection-requests/index.d.ts +2 -0
  35. package/dist/dts/workspace-elements/base/connections/index.d.ts +23 -0
  36. package/dist/dts/workspace-elements/base/connectors/auth.d.ts +6 -0
  37. package/dist/dts/workspace-elements/base/connectors/index.d.ts +208 -0
  38. package/dist/dts/workspace-elements/base/connectors/rest-api.d.ts +1 -0
  39. package/dist/dts/workspace-elements/base/external-event-log-records/index.d.ts +14 -0
  40. package/dist/dts/workspace-elements/base/external-event-pulls/index.d.ts +50 -0
  41. package/dist/dts/workspace-elements/paths.d.ts +1 -0
  42. package/dist/dts/workspace-elements/types.d.ts +4 -1
  43. package/dist/dts/workspaces/api.d.ts +1 -0
  44. package/dist/index.browser.d.mts +1555 -150
  45. package/dist/index.browser.d.ts +1555 -150
  46. package/dist/index.browser.js +452 -19
  47. package/dist/index.browser.js.map +1 -1
  48. package/dist/index.browser.mjs +416 -20
  49. package/dist/index.browser.mjs.map +1 -1
  50. package/dist/index.node.d.mts +1555 -150
  51. package/dist/index.node.d.ts +1555 -150
  52. package/dist/index.node.js +452 -19
  53. package/dist/index.node.js.map +1 -1
  54. package/dist/index.node.mjs +416 -20
  55. package/dist/index.node.mjs.map +1 -1
  56. package/package.json +2 -2
@@ -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,13 +9492,17 @@ 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
  });
9474
9502
 
9475
9503
  const DEFAULT_PULL_UPDATES_INTERVAL_SECONDS = 60 * 5;
9476
9504
  const DEFAULT_FULL_SYNC_INTERVAL_SECONDS = 60 * 60 * 3;
9477
- const MIN_FULL_SYNC_INTERVAL_SECONDS = 1 * 60;
9505
+ const MIN_FULL_SYNC_INTERVAL_SECONDS = 10 * 60;
9478
9506
  const MIN_PULL_UPDATES_INTERVAL_SECONDS = 1 * 60;
9479
9507
  const DataSourceSpecificProperties = z.z.object({
9480
9508
  connectionId: z.z.string().optional(),
@@ -10350,6 +10378,15 @@ exports.ExternalEventLogStatus = void 0;
10350
10378
  ExternalEventLogStatus["ERROR"] = "error";
10351
10379
  ExternalEventLogStatus["SUCCESS"] = "success";
10352
10380
  })(exports.ExternalEventLogStatus || (exports.ExternalEventLogStatus = {}));
10381
+ exports.ExternalEventLogFlowTriggerSkipReasonCode = void 0;
10382
+ (function (ExternalEventLogFlowTriggerSkipReasonCode) {
10383
+ ExternalEventLogFlowTriggerSkipReasonCode["AllDependentFlowInstancesDisabled"] = "all-dependent-flow-instances-disabled";
10384
+ })(exports.ExternalEventLogFlowTriggerSkipReasonCode || (exports.ExternalEventLogFlowTriggerSkipReasonCode = {}));
10385
+ const ExternalEventLogFlowTriggerSkipReason = z.z.object({
10386
+ code: z.z.enum(exports.ExternalEventLogFlowTriggerSkipReasonCode),
10387
+ message: z.z.string(),
10388
+ dependentFlowInstanceIds: z.z.array(z.z.string()),
10389
+ });
10353
10390
  const BaseExternalEventLogRecord = ActivityLogRecord.extend({
10354
10391
  name: z.z.string().optional(),
10355
10392
  externalEventSubscriptionId: z.z.string(),
@@ -10360,6 +10397,7 @@ const BaseExternalEventLogRecord = ActivityLogRecord.extend({
10360
10397
  launchedFlowRunIds: z.z.array(z.z.string()).optional(),
10361
10398
  status: z.z.enum(exports.ExternalEventLogStatus),
10362
10399
  error: ErrorDataSchema.optional(),
10400
+ flowTriggerSkipReason: ExternalEventLogFlowTriggerSkipReason.optional(),
10363
10401
  });
10364
10402
 
10365
10403
  exports.ExternalEventPullStatus = void 0;
@@ -10379,8 +10417,46 @@ const BaseExternalEventPull = ActivityLogRecord.extend({
10379
10417
  isFullScan: z.z.boolean().optional(),
10380
10418
  status: z.z.enum(exports.ExternalEventPullStatus),
10381
10419
  collectedEventIds: z.z.array(z.z.string()),
10420
+ telemetryUri: z.z
10421
+ .string()
10422
+ .optional()
10423
+ .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
10424
  error: ErrorDataSchema.optional(),
10383
10425
  });
10426
+ const ExternalEventPullTelemetry = z.z.object({
10427
+ pullId: z.z.string(),
10428
+ subscriptionId: z.z.string(),
10429
+ connectionId: z.z.string().optional(),
10430
+ strategy: z.z.enum(['full-scan', 'pull-latest-records', 'custom-pull', 'skipped', 'unknown']),
10431
+ eventType: z.z.string().optional(),
10432
+ collectionKey: z.z.string().optional(),
10433
+ startedAt: z.z.string(),
10434
+ finishedAt: z.z.string(),
10435
+ emittedEventCount: z.z.number(),
10436
+ emittedEvents: z.z.array(z.z.object({ type: z.z.string(), recordId: z.z.string().optional() })),
10437
+ notes: z.z.array(z.z.string()),
10438
+ fullScan: z.z
10439
+ .object({
10440
+ totalRecords: z.z.number(),
10441
+ totalPages: z.z.number(),
10442
+ previousSnapshotId: z.z.string().optional(),
10443
+ previousSnapshotRecordCount: z.z.number().optional(),
10444
+ previousSnapshotMissing: z.z.boolean(),
10445
+ newSnapshotId: z.z.string().optional(),
10446
+ isBaseline: z.z.boolean(),
10447
+ })
10448
+ .optional(),
10449
+ pullLatest: z.z
10450
+ .object({
10451
+ stateBefore: z.z.object({ id: z.z.string().optional(), datetime: z.z.string().optional() }).optional(),
10452
+ stateAfter: z.z.object({ id: z.z.string().optional(), datetime: z.z.string().optional() }).optional(),
10453
+ pagesScanned: z.z.number(),
10454
+ scannedRecords: z.z.array(z.z.object({ id: z.z.string(), datetime: z.z.string().optional() })),
10455
+ newRecordIds: z.z.array(z.z.string()),
10456
+ isBaseline: z.z.boolean(),
10457
+ })
10458
+ .optional(),
10459
+ });
10384
10460
 
10385
10461
  exports.ExternalEventTypeImplementationType = void 0;
10386
10462
  (function (ExternalEventTypeImplementationType) {
@@ -10825,6 +10901,7 @@ const GenerateOptionsRequest = z.z.object({
10825
10901
  connectorVersion: z.z.string().optional(),
10826
10902
  });
10827
10903
  const ConnectPayload = z.z.object({
10904
+ type: ConnectionType.optional(),
10828
10905
  requestId: z.z.string().optional(),
10829
10906
  integrationKey: z.z.string().optional(),
10830
10907
  integrationId: z.z.string().optional(),
@@ -11201,6 +11278,7 @@ const CheckpointApiResponse = z.z.object({
11201
11278
  checkpointNumber: z.z.number(),
11202
11279
  snapshot: z.z.record(z.z.string(), z.z.unknown()),
11203
11280
  createdAt: z.z.string(),
11281
+ asyncRequestId: z.z.string().optional(),
11204
11282
  metadata: z.z.record(z.z.string(), z.z.unknown()).optional(),
11205
11283
  });
11206
11284
  const CheckpointDiffOperationSchema = z.z.object({
@@ -12274,8 +12352,8 @@ const AgentSession = z.z.object({
12274
12352
  id: z.z.string(),
12275
12353
  workspaceId: z.z.string(),
12276
12354
  orgWorkspaceId: z.z.string().optional(),
12277
- workspaceElementType: z.z.enum(exports.WorkspaceElementType),
12278
- workspaceElementId: z.z.string(),
12355
+ workspaceElementType: z.z.enum(exports.WorkspaceElementType).optional(),
12356
+ workspaceElementId: z.z.string().optional(),
12279
12357
  type: z.z.string(),
12280
12358
  status: z.z.enum(exports.AgentSessionStatus),
12281
12359
  prompt: z.z.string(),
@@ -12290,6 +12368,8 @@ const AgentSession = z.z.object({
12290
12368
  hasWorker: z.z.boolean(),
12291
12369
  isExternal: z.z.boolean().optional(),
12292
12370
  agentName: z.z.enum(exports.AgentName).optional(),
12371
+ agentHarnessId: z.z.string().optional(),
12372
+ agentHarnessSnapshotId: z.z.string().optional(),
12293
12373
  output: z.z.record(z.z.string(), z.z.unknown()).optional(),
12294
12374
  createdAt: z.z.iso.datetime(),
12295
12375
  updatedAt: z.z.iso.datetime(),
@@ -12306,6 +12386,7 @@ const CreateAgentSession = z.z.object({
12306
12386
  isExternal: z.z.boolean().optional(),
12307
12387
  modelId: AIGatewaySupportedModelIdSchema.optional(),
12308
12388
  agentName: z.z.enum(exports.AgentName).optional(),
12389
+ agentHarnessId: z.z.string().min(1).optional(),
12309
12390
  promptAttachments: z.z.array(AgentSessionAttachment).optional(),
12310
12391
  });
12311
12392
  const AgentSessionInputSchema = z.z.object({
@@ -12830,6 +12911,30 @@ const WorkspaceElementSpecs = {
12830
12911
  namePlural: 'Connected Products',
12831
12912
  hasKey: true,
12832
12913
  },
12914
+ [exports.WorkspaceElementType.AgentHarness]: {
12915
+ type: exports.WorkspaceElementType.AgentHarness,
12916
+ apiPath: 'agent/harness',
12917
+ collectionName: 'agent-harnesses',
12918
+ name: 'Agent Harness',
12919
+ namePlural: 'Agent Harnesses',
12920
+ hasKey: true,
12921
+ },
12922
+ [exports.WorkspaceElementType.AgentSkill]: {
12923
+ type: exports.WorkspaceElementType.AgentSkill,
12924
+ apiPath: 'agent/skills',
12925
+ collectionName: 'agent-skills',
12926
+ name: 'Agent Skill',
12927
+ namePlural: 'Agent Skills',
12928
+ hasKey: true,
12929
+ },
12930
+ [exports.WorkspaceElementType.AgentInstruction]: {
12931
+ type: exports.WorkspaceElementType.AgentInstruction,
12932
+ apiPath: 'agent/instructions',
12933
+ collectionName: 'agent-instructions',
12934
+ name: 'Agent Instruction',
12935
+ namePlural: 'Agent Instructions',
12936
+ hasKey: true,
12937
+ },
12833
12938
  };
12834
12939
  function getEditablePathsForElementType(elementType) {
12835
12940
  return getEditablePathsForElementType$1(WorkspaceElementSpecs, elementType);
@@ -12889,6 +12994,11 @@ function getConnectorVersionPath(connectorUuid, version) {
12889
12994
  const versionDir = version === CONNECTOR_VERSION_DEVELOPMENT ? 'development' : version;
12890
12995
  return `${connectorsPath}/${connectorUuid}/${versionDir}/src.zip`;
12891
12996
  }
12997
+ function getConnectorVersionSpecPath(connectorUuid, version) {
12998
+ const connectorsPath = WorkspaceElementSpecs[exports.WorkspaceElementType.Connector].apiPath;
12999
+ const versionDir = version === CONNECTOR_VERSION_DEVELOPMENT ? 'development' : version;
13000
+ return `${connectorsPath}/${connectorUuid}/${versionDir}/spec.yml`;
13001
+ }
12892
13002
 
12893
13003
  class SelfAccessor {
12894
13004
  constructor(client) {
@@ -13840,6 +13950,13 @@ const GenerateWorkspaceAccessTokenRequest = z.z.object({
13840
13950
  name: z.z.string().optional().describe('Name for the generated token'),
13841
13951
  fields: z.z.record(z.z.string(), z.z.any()).optional().describe('Custom fields to include in the token'),
13842
13952
  connectedProductId: z.z.string().optional().describe('[INTERNAL] Connected product ID'),
13953
+ expiresIn: z.z
13954
+ .number()
13955
+ .int()
13956
+ .positive()
13957
+ .max(3600 * 24 * 90)
13958
+ .optional()
13959
+ .describe('[INTERNAL] Token lifetime in seconds (default: 1 hour, max: 90 days)'),
13843
13960
  });
13844
13961
  const GenerateWorkspaceAccessTokenResponse = z.z.object({
13845
13962
  token: z.z.string().describe('The generated access token'),
@@ -13935,9 +14052,44 @@ function compareWorkspaceExports(baseExport, targetExport, options = { includeDe
13935
14052
  allSelectors.add(selector);
13936
14053
  }
13937
14054
  }
14055
+ const baseSelectorByUuid = new Map();
14056
+ for (const [selector, base] of baseMap) {
14057
+ if (base.element.uuid)
14058
+ baseSelectorByUuid.set(base.element.uuid, selector);
14059
+ }
14060
+ const pairs = [];
14061
+ const uuidPairedBaseSelectors = new Set();
14062
+ const uuidPairedTargetSelectors = new Set();
14063
+ for (const [selector, target] of targetMap) {
14064
+ const uuid = target.element.uuid;
14065
+ if (!uuid)
14066
+ continue;
14067
+ const baseSelector = baseSelectorByUuid.get(uuid);
14068
+ if (baseSelector === undefined || uuidPairedBaseSelectors.has(baseSelector))
14069
+ continue;
14070
+ const base = baseMap.get(baseSelector);
14071
+ if (base.type !== target.type)
14072
+ continue;
14073
+ pairs.push({ base, target });
14074
+ uuidPairedBaseSelectors.add(baseSelector);
14075
+ uuidPairedTargetSelectors.add(selector);
14076
+ }
13938
14077
  for (const selector of allSelectors) {
13939
14078
  const base = baseMap.get(selector);
13940
14079
  const target = targetMap.get(selector);
14080
+ const baseFree = base !== undefined && !uuidPairedBaseSelectors.has(selector);
14081
+ const targetFree = target !== undefined && !uuidPairedTargetSelectors.has(selector);
14082
+ if (baseFree && targetFree) {
14083
+ pairs.push({ base, target });
14084
+ }
14085
+ else if (baseFree) {
14086
+ pairs.push({ base });
14087
+ }
14088
+ else if (targetFree) {
14089
+ pairs.push({ target });
14090
+ }
14091
+ }
14092
+ for (const { base, target } of pairs) {
13941
14093
  if (base && target && base.element.uuid !== target.element.uuid) {
13942
14094
  sourceUuidByTargetUuid.set(target.element.uuid, base.element.uuid);
13943
14095
  }
@@ -13954,9 +14106,12 @@ function compareWorkspaceExports(baseExport, targetExport, options = { includeDe
13954
14106
  changes[change.uuid] = { elementType: subject.type, path };
13955
14107
  comparison[change.type].add(change.uuid);
13956
14108
  if (options.includeDiff) {
14109
+ const basePath = base
14110
+ ? getMembraneElementPath(base.type, base.element.key, getIntegrationIdentifier(base.element, integrationMap))
14111
+ : path;
13957
14112
  const baseYaml = base ? yaml__namespace.dump(base.element, { sortKeys: true }) : '';
13958
14113
  const targetYaml = target ? yaml__namespace.dump(target.element, { sortKeys: true }) : '';
13959
- diffs.push(diff.createTwoFilesPatch(`a/${path}`, `b/${path}`, baseYaml, targetYaml));
14114
+ diffs.push(diff.createTwoFilesPatch(`a/${basePath}`, `b/${path}`, baseYaml, targetYaml));
13960
14115
  }
13961
14116
  }
13962
14117
  const result = { comparison, changes, sourceUuidByTargetUuid };
@@ -14120,11 +14275,21 @@ exports.OrgUserRole = void 0;
14120
14275
  OrgUserRole["Member"] = "member";
14121
14276
  OrgUserRole["ReadOnly"] = "read-only";
14122
14277
  })(exports.OrgUserRole || (exports.OrgUserRole = {}));
14278
+ exports.UserWorkspaceRole = void 0;
14279
+ (function (UserWorkspaceRole) {
14280
+ UserWorkspaceRole["Admin"] = "admin";
14281
+ UserWorkspaceRole["Member"] = "member";
14282
+ UserWorkspaceRole["ReadOnly"] = "read-only";
14283
+ })(exports.UserWorkspaceRole || (exports.UserWorkspaceRole = {}));
14123
14284
  exports.OrgUserStatus = void 0;
14124
14285
  (function (OrgUserStatus) {
14125
14286
  OrgUserStatus["Invited"] = "invited";
14126
14287
  OrgUserStatus["Active"] = "active";
14127
14288
  })(exports.OrgUserStatus || (exports.OrgUserStatus = {}));
14289
+ const UserWorkspaceAccess = z.z.object({
14290
+ workspaceId: z.z.string(),
14291
+ role: z.z.enum(exports.UserWorkspaceRole),
14292
+ });
14128
14293
  const OrgLimits = z.z.object({
14129
14294
  numberOfWorkspaces: z.z.number().optional(),
14130
14295
  todayUsage: z.z.number().optional(),
@@ -14295,19 +14460,23 @@ const BaseOrgUser = z.z.object({
14295
14460
  role: z.z.string(),
14296
14461
  status: z.z.string(),
14297
14462
  workspaces: z.z.array(z.z.string()).optional(),
14463
+ workspacesWithRoles: z.z.array(UserWorkspaceAccess).optional(),
14298
14464
  });
14299
14465
  const FullOrgUser = BaseOrgUser.extend({
14300
14466
  user: FullPlatformUser,
14301
14467
  org: Org,
14468
+ workspaces: z.z.array(OrgWorkspace).or(z.z.array(z.z.string())).optional(),
14302
14469
  });
14303
14470
  const CreateOrgUserRequest = z.z.object({
14304
14471
  email: z.z.string(),
14305
14472
  workspaces: z.z.array(z.z.string()).optional(),
14473
+ workspacesWithRoles: z.z.array(UserWorkspaceAccess).optional(),
14306
14474
  });
14307
14475
  const UpdateOrgUserRequest = z.z.object({
14308
14476
  role: z.z.enum(exports.OrgUserRole).optional(),
14309
14477
  status: z.z.enum(exports.OrgUserStatus).optional(),
14310
14478
  workspaces: z.z.array(z.z.string()).optional(),
14479
+ workspacesWithRoles: z.z.array(UserWorkspaceAccess).optional(),
14311
14480
  });
14312
14481
  const OrgInvitation = z.z.object({
14313
14482
  id: z.z.string(),
@@ -14350,6 +14519,19 @@ const CreateOrgWorkspaceRequest = z.z.object({
14350
14519
  const RotateOrgWorkspaceSecretResponse = z.z.object({
14351
14520
  secret: z.z.string().describe('The new workspace secret'),
14352
14521
  });
14522
+ const GenerateOrgAccessTokenRequest = z.z.object({
14523
+ expiresIn: z.z
14524
+ .number()
14525
+ .int()
14526
+ .positive()
14527
+ .max(3600 * 24 * 90)
14528
+ .optional()
14529
+ .describe('Token lifetime in seconds (default: 30 days, max: 90 days)'),
14530
+ name: z.z.string().optional().describe('Name identifying the token holder in logs (carried in the token subject)'),
14531
+ });
14532
+ const GenerateOrgAccessTokenResponse = z.z.object({
14533
+ token: z.z.string().describe('The generated read-only organization access token'),
14534
+ });
14353
14535
  const AccountResponse = z.z.object({
14354
14536
  user: FullPlatformUser.optional(),
14355
14537
  workspace: OrgWorkspace.optional(),
@@ -15606,12 +15788,12 @@ class ConnectionLevelFlowsAccessor extends ConnectionLevelElementsListAccessor {
15606
15788
  }
15607
15789
  }
15608
15790
 
15609
- var ConnectionType;
15610
- (function (ConnectionType) {
15611
- ConnectionType["IFRAME"] = "iframe";
15612
- ConnectionType["POPUP"] = "popup";
15613
- ConnectionType["REDIRECT"] = "redirect";
15614
- })(ConnectionType || (ConnectionType = {}));
15791
+ var ConnectionDisplayMode;
15792
+ (function (ConnectionDisplayMode) {
15793
+ ConnectionDisplayMode["IFRAME"] = "iframe";
15794
+ ConnectionDisplayMode["POPUP"] = "popup";
15795
+ ConnectionDisplayMode["REDIRECT"] = "redirect";
15796
+ })(ConnectionDisplayMode || (ConnectionDisplayMode = {}));
15615
15797
  class ConnectionsAccessor extends ElementInstanceListAccessor {
15616
15798
  constructor(client) {
15617
15799
  super(client, 'connections');
@@ -15775,10 +15957,10 @@ class ConnectionProxy {
15775
15957
  }
15776
15958
  }
15777
15959
  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);
15960
+ 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 : {};
15961
+ let connectionType = type === 'mcp' ? ConnectionDisplayMode.POPUP : await detectConnectionType(options);
15780
15962
  if (redirectUri) {
15781
- connectionType = ConnectionType.REDIRECT;
15963
+ connectionType = ConnectionDisplayMode.REDIRECT;
15782
15964
  }
15783
15965
  const freshToken = await client.getToken();
15784
15966
  const connectPath = 'connect';
@@ -15787,6 +15969,7 @@ async function createOrUpdateConnection(options) {
15787
15969
  const requestId = simpleUniqueId() + simpleUniqueId();
15788
15970
  const payload = {
15789
15971
  token: freshToken,
15972
+ type,
15790
15973
  input,
15791
15974
  connectorParameters,
15792
15975
  integrationKey,
@@ -15801,6 +15984,7 @@ async function createOrUpdateConnection(options) {
15801
15984
  connectionRequestId,
15802
15985
  requestId,
15803
15986
  redirectUri,
15987
+ customState,
15804
15988
  };
15805
15989
  let cancelCheckInterval;
15806
15990
  let lateEventsTimeout;
@@ -15864,7 +16048,7 @@ async function createOrUpdateConnection(options) {
15864
16048
  input.value = JSON.stringify(payload);
15865
16049
  form.appendChild(input);
15866
16050
  document.body.appendChild(form);
15867
- if (connectionType === ConnectionType.IFRAME) {
16051
+ if (connectionType === ConnectionDisplayMode.IFRAME) {
15868
16052
  const iframeElement = document.createElement('iframe');
15869
16053
  iframeElement.id = targetElementId;
15870
16054
  iframeElement.name = targetElementId;
@@ -15879,12 +16063,12 @@ async function createOrUpdateConnection(options) {
15879
16063
  form.submit();
15880
16064
  document.body.removeChild(form);
15881
16065
  }
15882
- if (connectionType === ConnectionType.REDIRECT) {
16066
+ if (connectionType === ConnectionDisplayMode.REDIRECT) {
15883
16067
  form.target = '_self';
15884
16068
  form.submit();
15885
16069
  document.body.removeChild(form);
15886
16070
  }
15887
- if (connectionType === ConnectionType.POPUP) {
16071
+ if (connectionType === ConnectionDisplayMode.POPUP) {
15888
16072
  const width = Math.min(Math.round(screen.width * 0.7), 1000);
15889
16073
  const height = Math.min(Math.round(screen.height * 0.6), 800);
15890
16074
  const left = Math.round((screen.width - width) / 2);
@@ -15933,9 +16117,9 @@ async function detectConnectionType({ client, authOptionKey, connectorId, connec
15933
16117
  });
15934
16118
  const option = connectionOptions.find((option) => option.key == authOptionKey);
15935
16119
  if ((option === null || option === void 0 ? void 0 : option.type) === 'client-credentials') {
15936
- return ConnectionType.IFRAME;
16120
+ return ConnectionDisplayMode.IFRAME;
15937
16121
  }
15938
- return ConnectionType.POPUP;
16122
+ return ConnectionDisplayMode.POPUP;
15939
16123
  }
15940
16124
  const createCrossWindowListener = ({ requestId, handlers, }) => {
15941
16125
  const listener = (event) => {
@@ -16423,6 +16607,124 @@ const ScenarioTemplate = z.z.object({
16423
16607
  handyElements: z.z.array(HandyScenarioTemplateElement).optional(),
16424
16608
  });
16425
16609
 
16610
+ const AgentInstruction = z.z.object({
16611
+ id: z.z.string(),
16612
+ workspaceId: z.z.string(),
16613
+ name: z.z.string(),
16614
+ key: z.z.string(),
16615
+ text: z.z.string().min(1),
16616
+ revision: z.z.string().optional(),
16617
+ archivedAt: z.z.iso.datetime().optional(),
16618
+ createdAt: z.z.iso.datetime().optional(),
16619
+ updatedAt: z.z.iso.datetime().optional(),
16620
+ });
16621
+ const CreateAgentInstructionRequest = z.z.object({
16622
+ name: z.z.string().min(1),
16623
+ key: z.z.string().min(1).optional(),
16624
+ text: z.z.string().min(1),
16625
+ });
16626
+ const UpdateAgentInstructionRequest = CreateAgentInstructionRequest.partial();
16627
+ const FindAgentInstructionQuery = PaginationQuery.merge(SearchQuery).merge(IncludeArchivedQuery);
16628
+
16629
+ const AgentSkill = z.z.object({
16630
+ id: z.z.string(),
16631
+ workspaceId: z.z.string(),
16632
+ name: z.z.string(),
16633
+ key: z.z.string(),
16634
+ description: z.z.string().min(1),
16635
+ body: z.z.string().min(1),
16636
+ sourceUrl: z.z.url().optional(),
16637
+ revision: z.z.string().optional(),
16638
+ archivedAt: z.z.iso.datetime().optional(),
16639
+ createdAt: z.z.iso.datetime().optional(),
16640
+ updatedAt: z.z.iso.datetime().optional(),
16641
+ });
16642
+ const CreateAgentSkillRequest = z.z.object({
16643
+ name: z.z.string().min(1),
16644
+ key: z.z.string().min(1).optional(),
16645
+ description: z.z.string().min(1),
16646
+ body: z.z.string().min(1),
16647
+ sourceUrl: z.z.url().optional(),
16648
+ });
16649
+ const UpdateAgentSkillRequest = CreateAgentSkillRequest.partial();
16650
+ const PreviewAgentSkillSourceRequest = z.z.object({
16651
+ sourceUrl: z.z.url(),
16652
+ });
16653
+ const PreviewAgentSkillSourceResponse = z.z.object({
16654
+ name: z.z.string().min(1),
16655
+ key: z.z.string().min(1).optional(),
16656
+ description: z.z.string().min(1),
16657
+ body: z.z.string().min(1),
16658
+ sourceUrl: z.z.url(),
16659
+ });
16660
+ const FindAgentSkillQuery = PaginationQuery.merge(SearchQuery).merge(IncludeArchivedQuery);
16661
+
16662
+ const AgentTool = z.z.object({
16663
+ id: z.z.string().min(1),
16664
+ name: z.z.string().min(1),
16665
+ description: z.z.string().min(1),
16666
+ enabledByDefault: z.z.boolean().default(false),
16667
+ });
16668
+
16669
+ const AgentHarnessReferenceList = z.z.array(z.z.string());
16670
+ const AgentHarnessReferenceListWithDefault = AgentHarnessReferenceList.default([]);
16671
+ const AgentHarness = z.z.object({
16672
+ id: z.z.string(),
16673
+ workspaceId: z.z.string(),
16674
+ name: z.z.string(),
16675
+ key: z.z.string(),
16676
+ description: z.z.string().optional(),
16677
+ systemPrompt: z.z.string().optional(),
16678
+ defaultModel: AIGatewaySupportedModelIdSchema,
16679
+ toolIds: AgentHarnessReferenceListWithDefault,
16680
+ skillIds: AgentHarnessReferenceListWithDefault,
16681
+ instructionIds: AgentHarnessReferenceListWithDefault,
16682
+ tools: z.z.array(AgentTool).default([]),
16683
+ skills: z.z.array(AgentSkill).default([]),
16684
+ instructions: z.z.array(AgentInstruction).default([]),
16685
+ revision: z.z.string().optional(),
16686
+ archivedAt: z.z.iso.datetime().optional(),
16687
+ createdAt: z.z.iso.datetime().optional(),
16688
+ updatedAt: z.z.iso.datetime().optional(),
16689
+ });
16690
+ const CreateAgentHarnessRequest = z.z.object({
16691
+ name: z.z.string().min(1),
16692
+ key: z.z.string().min(1).optional(),
16693
+ description: z.z.string().optional(),
16694
+ systemPrompt: z.z.string().optional(),
16695
+ defaultModel: AIGatewaySupportedModelIdSchema,
16696
+ toolIds: AgentHarnessReferenceList.optional(),
16697
+ skillIds: AgentHarnessReferenceList.optional(),
16698
+ instructionIds: AgentHarnessReferenceList.optional(),
16699
+ });
16700
+ const UpdateAgentHarnessRequest = CreateAgentHarnessRequest.partial();
16701
+ const FindAgentHarnessQuery = PaginationQuery.merge(SearchQuery).merge(IncludeArchivedQuery);
16702
+
16703
+ const AgentHarnessSnapshotReferenceList = z.z.array(z.z.string()).default([]);
16704
+ const AgentHarnessSnapshot = z.z.object({
16705
+ id: z.z.string(),
16706
+ workspaceId: z.z.string(),
16707
+ agentHarnessId: z.z.string(),
16708
+ agentHarnessRevision: z.z.string().optional(),
16709
+ name: z.z.string(),
16710
+ key: z.z.string(),
16711
+ description: z.z.string().optional(),
16712
+ systemPrompt: z.z.string().default(''),
16713
+ defaultModel: AIGatewaySupportedModelIdSchema,
16714
+ hash: z.z.string().optional(),
16715
+ toolIds: AgentHarnessSnapshotReferenceList,
16716
+ tools: z.z.array(AgentTool).default([]),
16717
+ skillIds: AgentHarnessSnapshotReferenceList,
16718
+ skills: z.z.array(AgentSkill).default([]),
16719
+ instructionIds: AgentHarnessSnapshotReferenceList,
16720
+ instructions: z.z.array(AgentInstruction).default([]),
16721
+ createdAt: z.z.iso.datetime().optional(),
16722
+ updatedAt: z.z.iso.datetime().optional(),
16723
+ });
16724
+ const FindAgentHarnessSnapshotQuery = PaginationQuery.extend({
16725
+ agentHarnessId: z.z.string().optional(),
16726
+ });
16727
+
16426
16728
  function formatSessionCost(cost) {
16427
16729
  if (cost === undefined || cost === null)
16428
16730
  return '-';
@@ -16436,6 +16738,7 @@ const SessionCredentials = z.z.object({
16436
16738
  });
16437
16739
  const SessionParameters = z.z.object({
16438
16740
  id: z.z.string().optional(),
16741
+ leaseId: z.z.string().uuid().optional(),
16439
16742
  accessToken: z.z.string().optional(),
16440
16743
  credentials: SessionCredentials.optional(),
16441
16744
  apiUri: z.z.string().optional(),
@@ -16448,10 +16751,28 @@ const SessionParameters = z.z.object({
16448
16751
  openRouterApiKey: z.z.string().optional(),
16449
16752
  modelId: z.z.string().optional(),
16450
16753
  agentName: z.z.enum(exports.AgentName).optional(),
16754
+ agentHarnessSnapshotId: z.z.string().optional(),
16451
16755
  engine: z.z.enum(['opencode', 'inline']).optional(),
16452
16756
  attachments: z.z.array(AgentSessionAttachment).optional(),
16453
16757
  });
16454
16758
 
16759
+ const AGENT_WORKSPACE_ELEMENT_CONTEXT_TYPES = [
16760
+ exports.WorkspaceElementType.Integration,
16761
+ exports.WorkspaceElementType.Connection,
16762
+ exports.WorkspaceElementType.Action,
16763
+ exports.WorkspaceElementType.Flow,
16764
+ exports.WorkspaceElementType.DataSource,
16765
+ exports.WorkspaceElementType.FieldMapping,
16766
+ exports.WorkspaceElementType.DataLinkTable,
16767
+ exports.WorkspaceElementType.AppDataSchema,
16768
+ exports.WorkspaceElementType.AppEventType,
16769
+ exports.WorkspaceElementType.ExternalEventType,
16770
+ ];
16771
+ const AGENT_WORKSPACE_ELEMENT_CONTEXT_TYPE_SET = new Set(AGENT_WORKSPACE_ELEMENT_CONTEXT_TYPES);
16772
+ function canFetchAgentWorkspaceElementContext(elementType) {
16773
+ return !!elementType && AGENT_WORKSPACE_ELEMENT_CONTEXT_TYPE_SET.has(elementType);
16774
+ }
16775
+
16455
16776
  exports.AsyncRequestStatus = void 0;
16456
16777
  (function (AsyncRequestStatus) {
16457
16778
  AsyncRequestStatus["PENDING"] = "pending";
@@ -16563,6 +16884,81 @@ const PlatformUserTokenListResponse = z.z.object({
16563
16884
  items: z.z.array(PlatformUserToken),
16564
16885
  });
16565
16886
 
16887
+ const MCP_PROTOCOL_VERSION = '2025-11-25';
16888
+ const McpConnectionInput = z.z.object({
16889
+ mcpServerUrl: z.z.string().url().optional(),
16890
+ });
16891
+ const ProtectedResourceMetadata = z.z.object({
16892
+ resource: z.z.string().url(),
16893
+ authorization_servers: z.z.array(z.z.string().url()).min(1),
16894
+ bearer_methods_supported: z.z.array(z.z.string()).optional(),
16895
+ scopes_supported: z.z.array(z.z.string()).optional(),
16896
+ });
16897
+ const AuthorizationServerMetadata = z.z
16898
+ .object({
16899
+ issuer: z.z.string().url(),
16900
+ authorization_endpoint: z.z.string().url(),
16901
+ token_endpoint: z.z.string().url(),
16902
+ registration_endpoint: z.z.string().url().optional(),
16903
+ scopes_supported: z.z.array(z.z.string()).optional(),
16904
+ response_types_supported: z.z.array(z.z.string()).optional(),
16905
+ grant_types_supported: z.z.array(z.z.string()).optional(),
16906
+ code_challenge_methods_supported: z.z.array(z.z.string()).optional(),
16907
+ token_endpoint_auth_methods_supported: z.z.array(z.z.string()).optional(),
16908
+ client_id_metadata_document_supported: z.z.boolean().optional(),
16909
+ })
16910
+ .passthrough();
16911
+ const DynamicClientRegistrationResponse = z.z
16912
+ .object({
16913
+ client_id: z.z.string(),
16914
+ client_secret: z.z.string().optional(),
16915
+ client_id_issued_at: z.z.number().optional(),
16916
+ client_secret_expires_at: z.z.number().optional(),
16917
+ registration_access_token: z.z.string().optional(),
16918
+ registration_client_uri: z.z.string().url().optional(),
16919
+ })
16920
+ .passthrough();
16921
+ const McpTokenResponse = z.z
16922
+ .object({
16923
+ access_token: z.z.string(),
16924
+ token_type: z.z.string(),
16925
+ expires_in: z.z.number().optional(),
16926
+ refresh_token: z.z.string().optional(),
16927
+ scope: z.z.string().optional(),
16928
+ })
16929
+ .passthrough();
16930
+ const McpTool = z.z
16931
+ .object({
16932
+ name: z.z.string(),
16933
+ description: z.z.string().optional(),
16934
+ inputSchema: z.z.record(z.z.string(), z.z.unknown()),
16935
+ })
16936
+ .passthrough();
16937
+ const McpSynthesizedAction = z.z.object({
16938
+ mcp: z.z.literal(true),
16939
+ id: z.z.string(),
16940
+ connectionId: z.z.string(),
16941
+ key: z.z.string(),
16942
+ name: z.z.string(),
16943
+ description: z.z.string().optional(),
16944
+ inputSchema: z.z.record(z.z.string(), z.z.unknown()).optional(),
16945
+ isReadOnly: z.z.literal(true),
16946
+ });
16947
+ const McpAuthState = z.z.object({
16948
+ asIssuer: z.z.string().url(),
16949
+ tokenEndpoint: z.z.string().url(),
16950
+ clientId: z.z.string(),
16951
+ clientSecret: z.z.string().optional(),
16952
+ canonicalResource: z.z.string(),
16953
+ scope: z.z.string().optional(),
16954
+ });
16955
+ const McpCredentials = z.z.object({
16956
+ accessToken: z.z.string(),
16957
+ refreshToken: z.z.string().optional(),
16958
+ expiresAt: z.z.coerce.date().optional(),
16959
+ tokenType: z.z.string().default('Bearer'),
16960
+ });
16961
+
16566
16962
  const WORKSPACE_TOKEN_GRANT_TYPES = ['mcp-oauth', 'agent-session', 'api'];
16567
16963
  const WorkspaceTokenGrantType = z.z.enum(WORKSPACE_TOKEN_GRANT_TYPES);
16568
16964
  const WorkspaceToken = z.z.object({
@@ -17216,6 +17612,7 @@ injectFormulaCatalog(getFormula, isFormula, hasFormulas);
17216
17612
 
17217
17613
  exports.ACTIONS = ACTIONS;
17218
17614
  exports.AGENTIC_CONNECTION_REQUEST_SCREEN_PATH = AGENTIC_CONNECTION_REQUEST_SCREEN_PATH;
17615
+ exports.AGENT_WORKSPACE_ELEMENT_CONTEXT_TYPES = AGENT_WORKSPACE_ELEMENT_CONTEXT_TYPES;
17219
17616
  exports.AIGatewaySupportedModelIdSchema = AIGatewaySupportedModelIdSchema;
17220
17617
  exports.AI_GATEWAY_PROVIDER_MODELS = AI_GATEWAY_PROVIDER_MODELS;
17221
17618
  exports.AI_GATEWAY_SUPPORTED_MODELS = AI_GATEWAY_SUPPORTED_MODELS;
@@ -17244,9 +17641,14 @@ exports.ActionSnapshot = ActionSnapshot;
17244
17641
  exports.ActionsAccessor = ActionsAccessor;
17245
17642
  exports.ActivityLogRecord = ActivityLogRecord;
17246
17643
  exports.ActivityStatsQuery = ActivityStatsQuery;
17644
+ exports.AgentHarness = AgentHarness;
17645
+ exports.AgentHarnessSnapshot = AgentHarnessSnapshot;
17646
+ exports.AgentInstruction = AgentInstruction;
17247
17647
  exports.AgentSession = AgentSession;
17248
17648
  exports.AgentSessionAttachment = AgentSessionAttachment;
17249
17649
  exports.AgentSessionInputSchema = AgentSessionInputSchema;
17650
+ exports.AgentSkill = AgentSkill;
17651
+ exports.AgentTool = AgentTool;
17250
17652
  exports.AiAgentAudience = AiAgentAudience;
17251
17653
  exports.AiAgentParameters = AiAgentParameters;
17252
17654
  exports.AiAgentType = AiAgentType;
@@ -17280,6 +17682,7 @@ exports.AsyncRequestStatusSchema = AsyncRequestStatusSchema;
17280
17682
  exports.AsyncRequestTriggerResponse = AsyncRequestTriggerResponse;
17281
17683
  exports.AuthContextPermissionsSchema = AuthContextPermissionsSchema;
17282
17684
  exports.AuthContextSettings = AuthContextSettings;
17685
+ exports.AuthorizationServerMetadata = AuthorizationServerMetadata;
17283
17686
  exports.BackwardCompatibleDataSourceEditableProperties = BackwardCompatibleDataSourceEditableProperties;
17284
17687
  exports.BadRequestError = BadRequestError;
17285
17688
  exports.BaseAction = BaseAction;
@@ -17378,6 +17781,7 @@ exports.ConnectionRequest = ConnectionRequest;
17378
17781
  exports.ConnectionSelector = ConnectionSelector;
17379
17782
  exports.ConnectionSpec = ConnectionSpec;
17380
17783
  exports.ConnectionTestResponse = ConnectionTestResponse;
17784
+ exports.ConnectionType = ConnectionType;
17381
17785
  exports.ConnectionsAccessor = ConnectionsAccessor;
17382
17786
  exports.Connector = Connector;
17383
17787
  exports.ConnectorAuth = ConnectorAuth;
@@ -17417,9 +17821,13 @@ exports.ConnectorUdmSpec = ConnectorUdmSpec;
17417
17821
  exports.ConnectorUiSpec = ConnectorUiSpec;
17418
17822
  exports.ConnectorVersion = ConnectorVersion;
17419
17823
  exports.ConnectorVersionData = ConnectorVersionData;
17824
+ exports.ConnectorVersionExportProperties = ConnectorVersionExportProperties;
17420
17825
  exports.CreateActionInstanceRequest = CreateActionInstanceRequest;
17421
17826
  exports.CreateActionRequest = CreateActionRequest;
17827
+ exports.CreateAgentHarnessRequest = CreateAgentHarnessRequest;
17828
+ exports.CreateAgentInstructionRequest = CreateAgentInstructionRequest;
17422
17829
  exports.CreateAgentSession = CreateAgentSession;
17830
+ exports.CreateAgentSkillRequest = CreateAgentSkillRequest;
17423
17831
  exports.CreateAlert = CreateAlert;
17424
17832
  exports.CreateConnectedProductRequest = CreateConnectedProductRequest;
17425
17833
  exports.CreateConnectionRequest = CreateConnectionRequest;
@@ -17545,6 +17953,7 @@ exports.DbBackedCountsSchema = DbBackedCountsSchema;
17545
17953
  exports.DependencyError = DependencyError;
17546
17954
  exports.DomainFromEmail = DomainFromEmail;
17547
17955
  exports.DownstreamFlowNodeRunSchema = DownstreamFlowNodeRunSchema;
17956
+ exports.DynamicClientRegistrationResponse = DynamicClientRegistrationResponse;
17548
17957
  exports.EDITABLE_LIMITS = EDITABLE_LIMITS;
17549
17958
  exports.EXTERNAL_EVENT_TYPE_FUNCTION_KEYS = EXTERNAL_EVENT_TYPE_FUNCTION_KEYS;
17550
17959
  exports.ElementAccessor = ElementAccessor;
@@ -17560,8 +17969,10 @@ exports.ErrorDataSchema = ErrorDataSchema;
17560
17969
  exports.Eval = Eval;
17561
17970
  exports.ExternalApiLogApiResponse = ExternalApiLogApiResponse;
17562
17971
  exports.ExternalEvent = ExternalEvent;
17972
+ exports.ExternalEventLogFlowTriggerSkipReason = ExternalEventLogFlowTriggerSkipReason;
17563
17973
  exports.ExternalEventLogRecordApiResponse = ExternalEventLogRecordApiResponse;
17564
17974
  exports.ExternalEventPullApiResponse = ExternalEventPullApiResponse;
17975
+ exports.ExternalEventPullTelemetry = ExternalEventPullTelemetry;
17565
17976
  exports.ExternalEventSubscriptionAccessor = ExternalEventSubscriptionAccessor;
17566
17977
  exports.ExternalEventSubscriptionApiResponse = ExternalEventSubscriptionApiResponse;
17567
17978
  exports.ExternalEventSubscriptionConfig = ExternalEventSubscriptionConfig;
@@ -17584,6 +17995,10 @@ exports.FindActionInstancesQuery = FindActionInstancesQuery;
17584
17995
  exports.FindActionRunLogsQuery = FindActionRunLogsQuery;
17585
17996
  exports.FindActionRunLogsResponse = FindActionRunLogsResponse;
17586
17997
  exports.FindActionsQuery = FindActionsQuery;
17998
+ exports.FindAgentHarnessQuery = FindAgentHarnessQuery;
17999
+ exports.FindAgentHarnessSnapshotQuery = FindAgentHarnessSnapshotQuery;
18000
+ exports.FindAgentInstructionQuery = FindAgentInstructionQuery;
18001
+ exports.FindAgentSkillQuery = FindAgentSkillQuery;
17587
18002
  exports.FindAlertsQuery = FindAlertsQuery;
17588
18003
  exports.FindAppDataSchemaInstancesQuery = FindAppDataSchemaInstancesQuery;
17589
18004
  exports.FindAppDataSchemasQuery = FindAppDataSchemasQuery;
@@ -17655,6 +18070,8 @@ exports.FullOrgUser = FullOrgUser;
17655
18070
  exports.FullPlatformUser = FullPlatformUser;
17656
18071
  exports.FunctionDefinition = FunctionDefinition;
17657
18072
  exports.GenerateOptionsRequest = GenerateOptionsRequest;
18073
+ exports.GenerateOrgAccessTokenRequest = GenerateOrgAccessTokenRequest;
18074
+ exports.GenerateOrgAccessTokenResponse = GenerateOrgAccessTokenResponse;
17658
18075
  exports.GenerateWorkspaceAccessTokenRequest = GenerateWorkspaceAccessTokenRequest;
17659
18076
  exports.GenerateWorkspaceAccessTokenResponse = GenerateWorkspaceAccessTokenResponse;
17660
18077
  exports.GeneratedConnectorOption = GeneratedConnectorOption;
@@ -17718,6 +18135,7 @@ exports.ListOrgWorkspacesResponse = ListOrgWorkspacesResponse;
17718
18135
  exports.ListPublicConnectorsQuery = ListPublicConnectorsQuery;
17719
18136
  exports.ListPublicPackagesQuery = ListPublicPackagesQuery;
17720
18137
  exports.ListableAsyncRequestType = ListableAsyncRequestType;
18138
+ exports.MCP_PROTOCOL_VERSION = MCP_PROTOCOL_VERSION;
17721
18139
  exports.MEMBRANE_CLI_CLIENT_ID = MEMBRANE_CLI_CLIENT_ID;
17722
18140
  exports.MEMBRANE_ELEMENT_CONFIG_FILE_NAME = MEMBRANE_ELEMENT_CONFIG_FILE_NAME;
17723
18141
  exports.MEMBRANE_SESSION_ID_HEADER = MEMBRANE_SESSION_ID_HEADER;
@@ -17725,6 +18143,12 @@ exports.MIN_FULL_SYNC_INTERVAL_SECONDS = MIN_FULL_SYNC_INTERVAL_SECONDS;
17725
18143
  exports.MIN_PULL_UPDATES_INTERVAL_SECONDS = MIN_PULL_UPDATES_INTERVAL_SECONDS;
17726
18144
  exports.MappingFunction = MappingFunction;
17727
18145
  exports.MappingSchema = MappingSchema;
18146
+ exports.McpAuthState = McpAuthState;
18147
+ exports.McpConnectionInput = McpConnectionInput;
18148
+ exports.McpCredentials = McpCredentials;
18149
+ exports.McpSynthesizedAction = McpSynthesizedAction;
18150
+ exports.McpTokenResponse = McpTokenResponse;
18151
+ exports.McpTool = McpTool;
17728
18152
  exports.MembraneAgentKey = MembraneAgentKey;
17729
18153
  exports.MembraneAxiosInstance = axios;
17730
18154
  exports.MembraneClient = MembraneClient;
@@ -17786,6 +18210,9 @@ exports.PlatformUser = PlatformUser;
17786
18210
  exports.PlatformUserToken = PlatformUserToken;
17787
18211
  exports.PlatformUserTokenGrantType = PlatformUserTokenGrantType;
17788
18212
  exports.PlatformUserTokenListResponse = PlatformUserTokenListResponse;
18213
+ exports.PreviewAgentSkillSourceRequest = PreviewAgentSkillSourceRequest;
18214
+ exports.PreviewAgentSkillSourceResponse = PreviewAgentSkillSourceResponse;
18215
+ exports.ProtectedResourceMetadata = ProtectedResourceMetadata;
17789
18216
  exports.RATE_LIMITS = RATE_LIMITS;
17790
18217
  exports.REFERENCE_ELEMENT_TYPE_SELF = REFERENCE_ELEMENT_TYPE_SELF;
17791
18218
  exports.RateLimitExceededError = RateLimitExceededError;
@@ -17821,6 +18248,9 @@ exports.UNIFIED_DATA_MODELS = UNIFIED_DATA_MODELS;
17821
18248
  exports.UnitRunError = UnitRunError;
17822
18249
  exports.UpdateActionInstanceRequest = UpdateActionInstanceRequest;
17823
18250
  exports.UpdateActionRequest = UpdateActionRequest;
18251
+ exports.UpdateAgentHarnessRequest = UpdateAgentHarnessRequest;
18252
+ exports.UpdateAgentInstructionRequest = UpdateAgentInstructionRequest;
18253
+ exports.UpdateAgentSkillRequest = UpdateAgentSkillRequest;
17824
18254
  exports.UpdateConnectedProductRequest = UpdateConnectedProductRequest;
17825
18255
  exports.UpdateConnectionRequest = UpdateConnectionRequest;
17826
18256
  exports.UpdateConnectorRequest = UpdateConnectorRequest;
@@ -17845,6 +18275,7 @@ exports.UpdateWorkspaceLimitsRequest = UpdateWorkspaceLimitsRequest;
17845
18275
  exports.UpdateWorkspaceRequest = UpdateWorkspaceRequest;
17846
18276
  exports.UpstreamFlowNodeRunSchema = UpstreamFlowNodeRunSchema;
17847
18277
  exports.UserAccessor = UserAccessor;
18278
+ exports.UserWorkspaceAccess = UserWorkspaceAccess;
17848
18279
  exports.UsersAccessor = UsersAccessor;
17849
18280
  exports.ValidateSelfHostingTokenRequest = ValidateSelfHostingTokenRequest;
17850
18281
  exports.ValidateSelfHostingTokenResponse = ValidateSelfHostingTokenResponse;
@@ -17879,6 +18310,7 @@ exports.buildActionSnapshot = buildActionSnapshot;
17879
18310
  exports.buildData = buildData;
17880
18311
  exports.buildDataSchema = buildDataSchema;
17881
18312
  exports.buildValue = buildValue;
18313
+ exports.canFetchAgentWorkspaceElementContext = canFetchAgentWorkspaceElementContext;
17882
18314
  exports.compareElementMaps = compareElementMaps;
17883
18315
  exports.compareWorkspaceExports = compareWorkspaceExports;
17884
18316
  exports.compressDataSchema = compressDataSchema;
@@ -17918,6 +18350,7 @@ exports.getChildNodeKeys = getChildNodeKeys;
17918
18350
  exports.getConnectionRequestUrl = getConnectionRequestUrl;
17919
18351
  exports.getConnectorSpecPath = getConnectorSpecPath;
17920
18352
  exports.getConnectorVersionPath = getConnectorVersionPath;
18353
+ exports.getConnectorVersionSpecPath = getConnectorVersionSpecPath;
17921
18354
  exports.getDataCollectionCreateFields = getDataCollectionCreateFields;
17922
18355
  exports.getDataCollectionUpdateFields = getDataCollectionUpdateFields;
17923
18356
  exports.getDataLocationMethodPath = getDataLocationMethodPath;