@membranehq/sdk 0.27.1 → 0.28.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 +33 -0
- package/dist/bundle.js +164 -121
- package/dist/bundle.js.map +1 -1
- package/dist/dts/accessors/connections-accessors.d.ts +3 -0
- package/dist/dts/accessors/integrations-accessors.d.ts +3 -0
- package/dist/dts/agent/index.d.ts +1 -0
- package/dist/dts/agent/session-cost.d.ts +1 -0
- package/dist/dts/agent/session.d.ts +1 -2
- package/dist/dts/api-version.generated.d.ts +1 -1
- package/dist/dts/oauth/types.d.ts +11 -5
- package/dist/dts/orgs/types.d.ts +102 -273
- package/dist/dts/webhooks/types.d.ts +3 -2
- package/dist/dts/workspace-elements/api/action-run-log-records-api.d.ts +6 -0
- package/dist/dts/workspace-elements/api/connected-products-api.d.ts +6 -21
- package/dist/dts/workspace-elements/api/connection-attempt-logs-api.d.ts +53 -0
- package/dist/dts/workspace-elements/api/connections-api.d.ts +12 -0
- package/dist/dts/workspace-elements/api/data-link-table-instances-api.d.ts +3 -0
- package/dist/dts/workspace-elements/api/data-sources-api.d.ts +6 -0
- package/dist/dts/workspace-elements/api/external-api-logs-api.d.ts +3 -0
- package/dist/dts/workspace-elements/api/external-event-log-records-api.d.ts +3 -0
- package/dist/dts/workspace-elements/api/external-event-pulls-api.d.ts +3 -0
- package/dist/dts/workspace-elements/api/external-event-subscriptions-api.d.ts +3 -0
- package/dist/dts/workspace-elements/api/field-mappings-api.d.ts +6 -0
- package/dist/dts/workspace-elements/api/flow-runs-api.d.ts +6 -0
- package/dist/dts/workspace-elements/api/flows-api.d.ts +6 -0
- package/dist/dts/workspace-elements/api/incoming-webhooks-api.d.ts +3 -0
- package/dist/dts/workspace-elements/api/index.d.ts +1 -0
- package/dist/dts/workspace-elements/api/integrations-api.d.ts +3 -0
- package/dist/dts/workspace-elements/base/connected-products/index.d.ts +9 -14
- package/dist/dts/workspace-elements/base/connection-attempt-logs/index.d.ts +21 -0
- package/dist/dts/workspace-elements/base/connections/index.d.ts +3 -0
- package/dist/dts/workspace-elements/base/connectors/functions.d.ts +1 -1
- package/dist/dts/workspace-elements/base/connectors/index.d.ts +3 -1
- package/dist/dts/workspace-elements/base/connectors/rest-api.d.ts +1 -1
- package/dist/dts/workspace-elements/base/index.d.ts +1 -0
- package/dist/dts/workspace-elements/paths.d.ts +2 -2
- package/dist/dts/workspaces/compare.d.ts +0 -2
- package/dist/index.browser.d.mts +288 -326
- package/dist/index.browser.d.ts +288 -326
- package/dist/index.browser.js +129 -68
- package/dist/index.browser.js.map +1 -1
- package/dist/index.browser.mjs +118 -64
- package/dist/index.browser.mjs.map +1 -1
- package/dist/index.node.d.mts +288 -326
- package/dist/index.node.d.ts +288 -326
- package/dist/index.node.js +129 -68
- package/dist/index.node.js.map +1 -1
- package/dist/index.node.mjs +118 -64
- package/dist/index.node.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.node.js
CHANGED
|
@@ -4052,10 +4052,13 @@ const BaseConnection = BaseWorkspaceElement.extend({
|
|
|
4052
4052
|
...TenantLayerElement.shape,
|
|
4053
4053
|
name: z.z.string(),
|
|
4054
4054
|
isTest: z.z.boolean().optional(),
|
|
4055
|
-
|
|
4055
|
+
connected: z.z.boolean().optional(),
|
|
4056
|
+
disconnected: z.z.boolean().optional().describe('[DEPRECATED] Use `connected` instead.'),
|
|
4056
4057
|
isDefunct: z.z.boolean().optional(),
|
|
4057
4058
|
state: z.z.enum(exports.WorkspaceElementState).optional(),
|
|
4058
|
-
|
|
4059
|
+
errors: z.z.array(ErrorDataSchema).optional(),
|
|
4060
|
+
requestError: ErrorDataSchema.optional(),
|
|
4061
|
+
error: ErrorDataSchema.optional().describe('[DEPRECATED] Use `requestError` and `errors` instead.'),
|
|
4059
4062
|
integrationId: z.z.string().optional(),
|
|
4060
4063
|
connectorId: z.z.string().optional(),
|
|
4061
4064
|
externalAppId: z.z.string().optional(),
|
|
@@ -4618,7 +4621,10 @@ function getEffectiveConnectorOption(connector, optionKey) {
|
|
|
4618
4621
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
4619
4622
|
const option = (_a = connector.options) === null || _a === void 0 ? void 0 : _a[optionKey];
|
|
4620
4623
|
if (!option) {
|
|
4621
|
-
|
|
4624
|
+
if (optionKey === '') {
|
|
4625
|
+
return connector;
|
|
4626
|
+
}
|
|
4627
|
+
return undefined;
|
|
4622
4628
|
}
|
|
4623
4629
|
const connectorInputSchema = (_b = connector.inputSchema) !== null && _b !== void 0 ? _b : (_c = connector.ui) === null || _c === void 0 ? void 0 : _c.schema;
|
|
4624
4630
|
const optionInputSchema = (_d = option === null || option === void 0 ? void 0 : option.inputSchema) !== null && _d !== void 0 ? _d : (_e = option === null || option === void 0 ? void 0 : option.ui) === null || _e === void 0 ? void 0 : _e.schema;
|
|
@@ -9227,7 +9233,7 @@ const ConnectorOption = WriteableConnectorOption.extend({
|
|
|
9227
9233
|
credentialsSchema: DataSchema.optional(),
|
|
9228
9234
|
});
|
|
9229
9235
|
const GeneratedConnectorOption = z.z.object({
|
|
9230
|
-
key: z.z.string(),
|
|
9236
|
+
key: z.z.string().optional(),
|
|
9231
9237
|
type: z.z.enum(CONNECTOR_AUTH_TYPES),
|
|
9232
9238
|
title: z.z.string().optional(),
|
|
9233
9239
|
description: z.z.string().optional(),
|
|
@@ -9299,6 +9305,7 @@ const BaseConnector = z.z.object({
|
|
|
9299
9305
|
isPublic: z.z.boolean().optional(),
|
|
9300
9306
|
popularity: z.z.number().optional(),
|
|
9301
9307
|
tenantId: z.z.string().optional(),
|
|
9308
|
+
archivedAt: z.z.string().optional().describe('When set, the connector is archived (soft-deleted).'),
|
|
9302
9309
|
});
|
|
9303
9310
|
const Connector = z.z.object({}).extend(BaseConnector.shape).extend(ConnectorVersionData.shape);
|
|
9304
9311
|
const MinimalConnector = z.z.object({
|
|
@@ -10275,10 +10282,22 @@ const BaseActionRunLogRecord = ActivityLogRecord.extend({
|
|
|
10275
10282
|
const ConnectedProductType = z.z.enum(['ai-agent', 'app']);
|
|
10276
10283
|
const ConnectedProductAudience = z.z.enum(['personal', 'customers']);
|
|
10277
10284
|
const AiAgentAudience = ConnectedProductAudience;
|
|
10278
|
-
const AiAgentType = z.z.enum([
|
|
10279
|
-
|
|
10280
|
-
|
|
10281
|
-
|
|
10285
|
+
const AiAgentType = z.z.enum([
|
|
10286
|
+
'claude-code',
|
|
10287
|
+
'codex',
|
|
10288
|
+
'openclaw',
|
|
10289
|
+
'cursor',
|
|
10290
|
+
'copilot',
|
|
10291
|
+
'windsurf',
|
|
10292
|
+
'claude',
|
|
10293
|
+
'chatgpt',
|
|
10294
|
+
'custom',
|
|
10295
|
+
]);
|
|
10296
|
+
const AiAgentParameters = z.z
|
|
10297
|
+
.object({
|
|
10298
|
+
agentType: z.z.string().optional(),
|
|
10299
|
+
})
|
|
10300
|
+
.passthrough();
|
|
10282
10301
|
const BaseConnectedProduct = z.z.object({
|
|
10283
10302
|
id: z.z.string(),
|
|
10284
10303
|
name: z.z.string(),
|
|
@@ -10292,6 +10311,16 @@ const BaseConnectedProduct = z.z.object({
|
|
|
10292
10311
|
archivedAt: z.z.string().optional(),
|
|
10293
10312
|
});
|
|
10294
10313
|
|
|
10314
|
+
const BaseConnectionAttemptLog = ActivityLogRecord.extend({
|
|
10315
|
+
connectorId: z.z.string().optional(),
|
|
10316
|
+
connectorVersion: z.z.string().optional(),
|
|
10317
|
+
authOptionKey: z.z.string().optional(),
|
|
10318
|
+
connectionRequestId: z.z.string().optional(),
|
|
10319
|
+
status: z.z.enum(['success', 'error']),
|
|
10320
|
+
error: ErrorDataSchema.optional(),
|
|
10321
|
+
createdAt: z.z.string(),
|
|
10322
|
+
});
|
|
10323
|
+
|
|
10295
10324
|
const ActionApiResponse = BaseAction.extend({
|
|
10296
10325
|
integration: BaseIntegration.optional(),
|
|
10297
10326
|
user: BaseCustomer.optional(),
|
|
@@ -10448,11 +10477,19 @@ const FindConnectionsQuery = PaginationQuery.merge(SearchQuery)
|
|
|
10448
10477
|
filterTitle: 'External App',
|
|
10449
10478
|
referenceElementType: exports.WorkspaceElementType.App,
|
|
10450
10479
|
}),
|
|
10480
|
+
connected: zodBooleanCoercion()
|
|
10481
|
+
.optional()
|
|
10482
|
+
.meta({
|
|
10483
|
+
filterTitle: 'Connected',
|
|
10484
|
+
isFlag: true,
|
|
10485
|
+
}),
|
|
10451
10486
|
disconnected: zodBooleanCoercion()
|
|
10452
10487
|
.optional()
|
|
10488
|
+
.describe('[DEPRECATED] Use `connected` instead.')
|
|
10453
10489
|
.meta({
|
|
10454
10490
|
filterTitle: 'Disconnected',
|
|
10455
10491
|
isFlag: true,
|
|
10492
|
+
hidden: true,
|
|
10456
10493
|
}),
|
|
10457
10494
|
isTest: zodBooleanCoercion()
|
|
10458
10495
|
.optional()
|
|
@@ -10592,6 +10629,7 @@ const ConnectPayload = z.z.object({
|
|
|
10592
10629
|
redirectUri: z.z.string().optional(),
|
|
10593
10630
|
customState: z.z.string().optional(),
|
|
10594
10631
|
connectionRequestId: z.z.string().optional(),
|
|
10632
|
+
intent: z.z.string().optional(),
|
|
10595
10633
|
});
|
|
10596
10634
|
const ConnectUIOptions = ConnectPayload.omit({ input: true, redirectUri: true }).extend({
|
|
10597
10635
|
theme: z.z.enum(['light', 'dark', 'auto']).optional(),
|
|
@@ -11589,6 +11627,14 @@ const FindConnectedProductsQuery = z.z
|
|
|
11589
11627
|
.merge(IncludeArchivedQuery);
|
|
11590
11628
|
const ConnectedProductApiResponse = BaseConnectedProduct;
|
|
11591
11629
|
|
|
11630
|
+
const ConnectionAttemptLogApiResponse = BaseConnectionAttemptLog;
|
|
11631
|
+
const FindConnectionAttemptLogsQuery = PaginationQuery.extend({
|
|
11632
|
+
connectionId: z.z.string().optional(),
|
|
11633
|
+
integrationId: z.z.string().optional(),
|
|
11634
|
+
status: z.z.enum(['success', 'error']).optional(),
|
|
11635
|
+
});
|
|
11636
|
+
const FindConnectionAttemptLogsResponse = createPaginationResponseSchema(ConnectionAttemptLogApiResponse);
|
|
11637
|
+
|
|
11592
11638
|
class DependencyError extends MembraneError {
|
|
11593
11639
|
constructor(arg, workspaceElementReference) {
|
|
11594
11640
|
super(arg);
|
|
@@ -11862,6 +11908,7 @@ exports.AgentName = void 0;
|
|
|
11862
11908
|
AgentName["ACTION_BUILDING"] = "action-building";
|
|
11863
11909
|
AgentName["UNIVERSE"] = "universe";
|
|
11864
11910
|
})(exports.AgentName || (exports.AgentName = {}));
|
|
11911
|
+
const MEMBRANE_SESSION_ID_HEADER = 'X-Membrane-Session-Id';
|
|
11865
11912
|
const AgentSession = z.z.object({
|
|
11866
11913
|
...TenantLayerElement.partial().shape,
|
|
11867
11914
|
id: z.z.string(),
|
|
@@ -11880,7 +11927,6 @@ const AgentSession = z.z.object({
|
|
|
11880
11927
|
summary: z.z.string().optional(),
|
|
11881
11928
|
cost: z.z.number().optional(),
|
|
11882
11929
|
state: z.z.enum(exports.AgentSessionState).default(exports.AgentSessionState.BUSY),
|
|
11883
|
-
usage: z.z.number().optional(),
|
|
11884
11930
|
hasWorker: z.z.boolean(),
|
|
11885
11931
|
isExternal: z.z.boolean().optional(),
|
|
11886
11932
|
agentName: z.z.enum(exports.AgentName).optional(),
|
|
@@ -11914,7 +11960,6 @@ const PatchAgentSessionSchema = z.z.object({
|
|
|
11914
11960
|
.describe('Last meaningful session progress timestamp used for inactivity timeout checks.'),
|
|
11915
11961
|
title: z.z.string().optional(),
|
|
11916
11962
|
summary: z.z.string().optional(),
|
|
11917
|
-
cost: z.z.number().optional(),
|
|
11918
11963
|
error: ErrorDataSchema.optional(),
|
|
11919
11964
|
opencodeSessionUuid: z.z.string().optional(),
|
|
11920
11965
|
output: z.z.record(z.z.string(), z.z.unknown()).optional(),
|
|
@@ -12455,14 +12500,14 @@ function parseMembraneElementPath(relativePath) {
|
|
|
12455
12500
|
}
|
|
12456
12501
|
return undefined;
|
|
12457
12502
|
}
|
|
12458
|
-
function getConnectorSpecPath(
|
|
12503
|
+
function getConnectorSpecPath(connectorUuid) {
|
|
12459
12504
|
const connectorsPath = WorkspaceElementSpecs[exports.WorkspaceElementType.Connector].apiPath;
|
|
12460
|
-
return `${connectorsPath}/${
|
|
12505
|
+
return `${connectorsPath}/${connectorUuid}/${connectorUuid}.yml`;
|
|
12461
12506
|
}
|
|
12462
|
-
function getConnectorVersionPath(
|
|
12507
|
+
function getConnectorVersionPath(connectorUuid, version) {
|
|
12463
12508
|
const connectorsPath = WorkspaceElementSpecs[exports.WorkspaceElementType.Connector].apiPath;
|
|
12464
12509
|
const versionDir = version === CONNECTOR_VERSION_DEVELOPMENT ? 'development' : version;
|
|
12465
|
-
return `${connectorsPath}/${
|
|
12510
|
+
return `${connectorsPath}/${connectorUuid}/${versionDir}/src.zip`;
|
|
12466
12511
|
}
|
|
12467
12512
|
|
|
12468
12513
|
class SelfAccessor {
|
|
@@ -13474,39 +13519,27 @@ function compareWorkspaceExports(baseExport, targetExport, options = { includeDe
|
|
|
13474
13519
|
[exports.WorkspaceElementChangeType.UPDATE]: new Set(),
|
|
13475
13520
|
[exports.WorkspaceElementChangeType.DELETE]: new Set(),
|
|
13476
13521
|
};
|
|
13477
|
-
const sourceUuidByTargetUuid = new Map();
|
|
13478
13522
|
const diffs = [];
|
|
13479
13523
|
const integrationMap = buildIntegrationsMap([
|
|
13480
13524
|
...(baseExport[exports.WorkspaceElementType.Integration] || []),
|
|
13481
13525
|
...(targetExport[exports.WorkspaceElementType.Integration] || []),
|
|
13482
13526
|
]);
|
|
13483
|
-
const
|
|
13484
|
-
const
|
|
13485
|
-
const allSelectors = new Set();
|
|
13527
|
+
const baseByUuid = new Map();
|
|
13528
|
+
const targetByUuid = new Map();
|
|
13486
13529
|
const allElementTypes = new Set([...Object.keys(baseExport), ...Object.keys(targetExport)]);
|
|
13487
13530
|
for (const elementType of allElementTypes) {
|
|
13488
13531
|
const type = elementType;
|
|
13489
|
-
const
|
|
13490
|
-
|
|
13491
|
-
|
|
13492
|
-
|
|
13493
|
-
|
|
13494
|
-
allSelectors.add(selector);
|
|
13495
|
-
}
|
|
13496
|
-
const targetElements = targetExport[type] || [];
|
|
13497
|
-
for (const element of targetElements) {
|
|
13498
|
-
const intIdentifier = getIntegrationIdentifier(element, integrationMap);
|
|
13499
|
-
const selector = getElementSelector(type, element.key, intIdentifier);
|
|
13500
|
-
targetMap.set(selector, { type, element });
|
|
13501
|
-
allSelectors.add(selector);
|
|
13502
|
-
}
|
|
13503
|
-
}
|
|
13504
|
-
for (const selector of allSelectors) {
|
|
13505
|
-
const base = baseMap.get(selector);
|
|
13506
|
-
const target = targetMap.get(selector);
|
|
13507
|
-
if (base && target && base.element.uuid !== target.element.uuid) {
|
|
13508
|
-
sourceUuidByTargetUuid.set(target.element.uuid, base.element.uuid);
|
|
13532
|
+
for (const element of baseExport[type] || []) {
|
|
13533
|
+
baseByUuid.set(element.uuid, { type, element });
|
|
13534
|
+
}
|
|
13535
|
+
for (const element of targetExport[type] || []) {
|
|
13536
|
+
targetByUuid.set(element.uuid, { type, element });
|
|
13509
13537
|
}
|
|
13538
|
+
}
|
|
13539
|
+
const allUuids = new Set([...baseByUuid.keys(), ...targetByUuid.keys()]);
|
|
13540
|
+
for (const uuid of allUuids) {
|
|
13541
|
+
const base = baseByUuid.get(uuid);
|
|
13542
|
+
const target = targetByUuid.get(uuid);
|
|
13510
13543
|
const change = compareElementExports(base === null || base === void 0 ? void 0 : base.element, target === null || target === void 0 ? void 0 : target.element);
|
|
13511
13544
|
if (options.includeDeletions === false && (change === null || change === void 0 ? void 0 : change.type) === exports.WorkspaceElementChangeType.DELETE) {
|
|
13512
13545
|
continue;
|
|
@@ -13525,7 +13558,7 @@ function compareWorkspaceExports(baseExport, targetExport, options = { includeDe
|
|
|
13525
13558
|
diffs.push(diff.createTwoFilesPatch(`a/${path}`, `b/${path}`, baseYaml, targetYaml));
|
|
13526
13559
|
}
|
|
13527
13560
|
}
|
|
13528
|
-
const result = { comparison, changes
|
|
13561
|
+
const result = { comparison, changes };
|
|
13529
13562
|
if (options.includeDiff) {
|
|
13530
13563
|
result.diff = diffs.join('\n').trim();
|
|
13531
13564
|
}
|
|
@@ -13562,12 +13595,6 @@ function getIntegrationIdentifier(element, integrationMap) {
|
|
|
13562
13595
|
}
|
|
13563
13596
|
return integrationIdentifier || element.integrationUuid || element.integrationId;
|
|
13564
13597
|
}
|
|
13565
|
-
function getElementSelector(type, key, integrationIdentifier) {
|
|
13566
|
-
if (integrationIdentifier) {
|
|
13567
|
-
return `${type}:${key}:${integrationIdentifier}`;
|
|
13568
|
-
}
|
|
13569
|
-
return `${type}:${key}`;
|
|
13570
|
-
}
|
|
13571
13598
|
function buildIntegrationsMap(integrations) {
|
|
13572
13599
|
const map = new Map();
|
|
13573
13600
|
for (const integration of integrations) {
|
|
@@ -13710,6 +13737,7 @@ const WorkspaceEditableFields = z.z.object({
|
|
|
13710
13737
|
alertDeliverySettings: AlertDeliverySettingsSchema.optional(),
|
|
13711
13738
|
jwksUri: z.z.string().nullable().optional(),
|
|
13712
13739
|
type: z.z.enum(exports.WorkspaceType).optional().describe('Workspace type (production or development)'),
|
|
13740
|
+
isReadOnly: z.z.boolean().optional().describe('Whether the workspace is in read-only mode'),
|
|
13713
13741
|
});
|
|
13714
13742
|
const OrgWorkspace = z.z
|
|
13715
13743
|
.object({
|
|
@@ -13734,12 +13762,38 @@ const OrgWorkspaceUpdateRequest = z.z
|
|
|
13734
13762
|
logoUri: z.z.string().optional(),
|
|
13735
13763
|
})
|
|
13736
13764
|
.merge(WorkspaceEditableFields);
|
|
13765
|
+
const WorkspaceOnboardingData = z.z
|
|
13766
|
+
.object({
|
|
13767
|
+
productSetup: z.z
|
|
13768
|
+
.object({
|
|
13769
|
+
type: ConnectedProductType.optional(),
|
|
13770
|
+
agentType: z.z.string().optional(),
|
|
13771
|
+
name: z.z.string().optional(),
|
|
13772
|
+
connectedProductId: z.z.string().optional(),
|
|
13773
|
+
})
|
|
13774
|
+
.optional(),
|
|
13775
|
+
connections: z.z
|
|
13776
|
+
.object({
|
|
13777
|
+
apps: z.z.array(z.z.object({
|
|
13778
|
+
externalAppId: z.z.string().optional(),
|
|
13779
|
+
name: z.z.string().optional(),
|
|
13780
|
+
url: z.z.string().optional(),
|
|
13781
|
+
status: z.z.enum(['pending', 'connected', 'skipped']).optional(),
|
|
13782
|
+
})),
|
|
13783
|
+
})
|
|
13784
|
+
.optional(),
|
|
13785
|
+
})
|
|
13786
|
+
.passthrough();
|
|
13737
13787
|
const OrgWorkspaceUser = z.z.object({
|
|
13738
13788
|
id: z.z.string(),
|
|
13739
13789
|
workspaceId: z.z.string(),
|
|
13740
13790
|
testCustomerId: z.z.string(),
|
|
13741
13791
|
userId: z.z.string(),
|
|
13742
13792
|
role: z.z.string(),
|
|
13793
|
+
onboardingData: WorkspaceOnboardingData.optional().describe('[INTERNAL]'),
|
|
13794
|
+
});
|
|
13795
|
+
const PatchUserWorkspaceSettings = z.z.object({
|
|
13796
|
+
onboardingData: WorkspaceOnboardingData.optional().describe('[INTERNAL]'),
|
|
13743
13797
|
});
|
|
13744
13798
|
const CreateOrgRequest = z.z.object({
|
|
13745
13799
|
name: z.z.string(),
|
|
@@ -13823,7 +13877,7 @@ const RotateOrgWorkspaceSecretResponse = z.z.object({
|
|
|
13823
13877
|
const AccountResponse = z.z.object({
|
|
13824
13878
|
user: FullPlatformUser.optional(),
|
|
13825
13879
|
workspace: OrgWorkspace.optional(),
|
|
13826
|
-
|
|
13880
|
+
hasWorkspaces: z.z.boolean().optional(),
|
|
13827
13881
|
workspaceUser: OrgWorkspaceUser.extend({
|
|
13828
13882
|
testCustomerId: z.z.string(),
|
|
13829
13883
|
}).optional(),
|
|
@@ -13851,6 +13905,7 @@ exports.WebhookTypeEnum = void 0;
|
|
|
13851
13905
|
WebhookTypeEnum["AGENT_SESSION_FINISHED"] = "agent-session-finished";
|
|
13852
13906
|
WebhookTypeEnum["SEND_ALERT_EMAIL"] = "send-alert-email";
|
|
13853
13907
|
WebhookTypeEnum["PUBLIC_PACKAGE_ACTION_RUN_FAILED"] = "public-package-action-run-failed";
|
|
13908
|
+
WebhookTypeEnum["BETTER_AUTH_SIGNUP_VERIFY"] = "better-auth-signup-verify";
|
|
13854
13909
|
})(exports.WebhookTypeEnum || (exports.WebhookTypeEnum = {}));
|
|
13855
13910
|
|
|
13856
13911
|
const IntegrationSpecificElementSelector = z.object({
|
|
@@ -15827,6 +15882,12 @@ const ScenarioTemplate = z.z.object({
|
|
|
15827
15882
|
handyElements: z.z.array(HandyScenarioTemplateElement).optional(),
|
|
15828
15883
|
});
|
|
15829
15884
|
|
|
15885
|
+
function formatSessionCost(cost) {
|
|
15886
|
+
if (cost === undefined || cost === null)
|
|
15887
|
+
return '-';
|
|
15888
|
+
return cost.toFixed(2);
|
|
15889
|
+
}
|
|
15890
|
+
|
|
15830
15891
|
const SessionCredentials = z.z.object({
|
|
15831
15892
|
accessKeyId: z.z.string().min(1),
|
|
15832
15893
|
secretAccessKey: z.z.string().min(1),
|
|
@@ -15916,22 +15977,14 @@ const ClientTokenListResponse = z.z.object({
|
|
|
15916
15977
|
});
|
|
15917
15978
|
|
|
15918
15979
|
const MEMBRANE_CLI_CLIENT_ID = 'membrane-cli';
|
|
15919
|
-
const
|
|
15920
|
-
const
|
|
15921
|
-
const
|
|
15922
|
-
const
|
|
15923
|
-
|
|
15924
|
-
|
|
15925
|
-
|
|
15926
|
-
|
|
15927
|
-
return scopes[0];
|
|
15928
|
-
for (const priorityScope of SCOPE_PRIORITY) {
|
|
15929
|
-
if (scopes.includes(priorityScope)) {
|
|
15930
|
-
return priorityScope;
|
|
15931
|
-
}
|
|
15932
|
-
}
|
|
15933
|
-
return scopes[0];
|
|
15934
|
-
}
|
|
15980
|
+
const OAUTH_TOKEN_TYPE_PLATFORM_USER = 'platform-user';
|
|
15981
|
+
const OAUTH_TOKEN_TYPE_TENANT = 'tenant';
|
|
15982
|
+
const OAUTH_TOKEN_TYPE_CONNECTION = 'connection';
|
|
15983
|
+
const OAUTH_TOKEN_TYPES = [
|
|
15984
|
+
OAUTH_TOKEN_TYPE_PLATFORM_USER,
|
|
15985
|
+
OAUTH_TOKEN_TYPE_TENANT,
|
|
15986
|
+
OAUTH_TOKEN_TYPE_CONNECTION,
|
|
15987
|
+
];
|
|
15935
15988
|
const OAuthTokenResponse = z.z.object({
|
|
15936
15989
|
access_token: z.z.string(),
|
|
15937
15990
|
token_type: z.z.string(),
|
|
@@ -15940,6 +15993,7 @@ const OAuthTokenResponse = z.z.object({
|
|
|
15940
15993
|
default_workspace_key: z.z.string().optional(),
|
|
15941
15994
|
default_tenant_key: z.z.string().optional(),
|
|
15942
15995
|
email: z.z.string().optional(),
|
|
15996
|
+
org_id: z.z.string().optional(),
|
|
15943
15997
|
});
|
|
15944
15998
|
|
|
15945
15999
|
const CONSOLE_ACCOUNT_API_TOKEN_PATH = 'settings/account/api-token';
|
|
@@ -16289,7 +16343,7 @@ class MembraneApiClient {
|
|
|
16289
16343
|
}
|
|
16290
16344
|
handleRequestError(err) {
|
|
16291
16345
|
var _a, _b;
|
|
16292
|
-
if (
|
|
16346
|
+
if ((err === null || err === void 0 ? void 0 : err.isAxiosError) && ((_b = (_a = err.response) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.type)) {
|
|
16293
16347
|
const error = getErrorFromData(err.response.data);
|
|
16294
16348
|
if (error)
|
|
16295
16349
|
throw error;
|
|
@@ -16569,6 +16623,7 @@ exports.BaseAppEventSubscription = BaseAppEventSubscription;
|
|
|
16569
16623
|
exports.BaseAppEventType = BaseAppEventType;
|
|
16570
16624
|
exports.BaseConnectedProduct = BaseConnectedProduct;
|
|
16571
16625
|
exports.BaseConnection = BaseConnection;
|
|
16626
|
+
exports.BaseConnectionAttemptLog = BaseConnectionAttemptLog;
|
|
16572
16627
|
exports.BaseConnector = BaseConnector;
|
|
16573
16628
|
exports.BaseCustomer = BaseCustomer;
|
|
16574
16629
|
exports.BaseDataLinkTable = BaseDataLinkTable;
|
|
@@ -16632,6 +16687,7 @@ exports.ConnectedProductType = ConnectedProductType;
|
|
|
16632
16687
|
exports.ConnectionAccessor = ConnectionAccessor;
|
|
16633
16688
|
exports.ConnectionApiResponse = ConnectionApiResponse;
|
|
16634
16689
|
exports.ConnectionApiResponseWithSecrets = ConnectionApiResponseWithSecrets;
|
|
16690
|
+
exports.ConnectionAttemptLogApiResponse = ConnectionAttemptLogApiResponse;
|
|
16635
16691
|
exports.ConnectionClientAction = ConnectionClientAction;
|
|
16636
16692
|
exports.ConnectionDataCollectionAccessor = ConnectionDataCollectionAccessor;
|
|
16637
16693
|
exports.ConnectionEditableProperties = ConnectionEditableProperties;
|
|
@@ -16860,6 +16916,8 @@ exports.FindAppEventSubscriptionsQuery = FindAppEventSubscriptionsQuery;
|
|
|
16860
16916
|
exports.FindAppEventTypesQuery = FindAppEventTypesQuery;
|
|
16861
16917
|
exports.FindAppEventsQuery = FindAppEventsQuery;
|
|
16862
16918
|
exports.FindConnectedProductsQuery = FindConnectedProductsQuery;
|
|
16919
|
+
exports.FindConnectionAttemptLogsQuery = FindConnectionAttemptLogsQuery;
|
|
16920
|
+
exports.FindConnectionAttemptLogsResponse = FindConnectionAttemptLogsResponse;
|
|
16863
16921
|
exports.FindConnectionsQuery = FindConnectionsQuery;
|
|
16864
16922
|
exports.FindConnectionsResponse = FindConnectionsResponse;
|
|
16865
16923
|
exports.FindCustomersQuery = FindCustomersQuery;
|
|
@@ -16982,6 +17040,7 @@ exports.ListPublicPackagesQuery = ListPublicPackagesQuery;
|
|
|
16982
17040
|
exports.ListWorkspacesQuery = ListWorkspacesQuery;
|
|
16983
17041
|
exports.MEMBRANE_CLI_CLIENT_ID = MEMBRANE_CLI_CLIENT_ID;
|
|
16984
17042
|
exports.MEMBRANE_ELEMENT_CONFIG_FILE_NAME = MEMBRANE_ELEMENT_CONFIG_FILE_NAME;
|
|
17043
|
+
exports.MEMBRANE_SESSION_ID_HEADER = MEMBRANE_SESSION_ID_HEADER;
|
|
16985
17044
|
exports.MIN_FULL_SYNC_INTERVAL_SECONDS = MIN_FULL_SYNC_INTERVAL_SECONDS;
|
|
16986
17045
|
exports.MIN_PULL_UPDATES_INTERVAL_SECONDS = MIN_PULL_UPDATES_INTERVAL_SECONDS;
|
|
16987
17046
|
exports.MappingFunction = MappingFunction;
|
|
@@ -16999,9 +17058,10 @@ exports.NotAuthenticatedError = NotAuthenticatedError;
|
|
|
16999
17058
|
exports.NotFoundError = NotFoundError;
|
|
17000
17059
|
exports.OAUTH1_CONFIG_SCHEMA = OAUTH1_CONFIG_SCHEMA;
|
|
17001
17060
|
exports.OAUTH_CONFIG_SCHEMA = OAUTH_CONFIG_SCHEMA;
|
|
17002
|
-
exports.
|
|
17003
|
-
exports.
|
|
17004
|
-
exports.
|
|
17061
|
+
exports.OAUTH_TOKEN_TYPES = OAUTH_TOKEN_TYPES;
|
|
17062
|
+
exports.OAUTH_TOKEN_TYPE_CONNECTION = OAUTH_TOKEN_TYPE_CONNECTION;
|
|
17063
|
+
exports.OAUTH_TOKEN_TYPE_PLATFORM_USER = OAUTH_TOKEN_TYPE_PLATFORM_USER;
|
|
17064
|
+
exports.OAUTH_TOKEN_TYPE_TENANT = OAUTH_TOKEN_TYPE_TENANT;
|
|
17005
17065
|
exports.OAuthTokenResponse = OAuthTokenResponse;
|
|
17006
17066
|
exports.OpenRouterNotConfiguredError = OpenRouterNotConfiguredError;
|
|
17007
17067
|
exports.OpenapiMappingSchema = OpenapiMappingSchema;
|
|
@@ -17035,6 +17095,7 @@ exports.PaginationQuery = PaginationQuery;
|
|
|
17035
17095
|
exports.PaginationResponse = PaginationResponse;
|
|
17036
17096
|
exports.PatchAgentSessionSchema = PatchAgentSessionSchema;
|
|
17037
17097
|
exports.PatchConnectionRequestPayload = PatchConnectionRequestPayload;
|
|
17098
|
+
exports.PatchUserWorkspaceSettings = PatchUserWorkspaceSettings;
|
|
17038
17099
|
exports.PendingQueueCountSchema = PendingQueueCountSchema;
|
|
17039
17100
|
exports.PendingTasksSummarySchema = PendingTasksSummarySchema;
|
|
17040
17101
|
exports.PlatformUser = PlatformUser;
|
|
@@ -17108,6 +17169,7 @@ exports.WorkspaceElementSearchResult = WorkspaceElementSearchResult;
|
|
|
17108
17169
|
exports.WorkspaceElementSpecs = WorkspaceElementSpecs;
|
|
17109
17170
|
exports.WorkspaceElementsStatsSchema = WorkspaceElementsStatsSchema;
|
|
17110
17171
|
exports.WorkspaceLimitsSchema = WorkspaceLimitsSchema;
|
|
17172
|
+
exports.WorkspaceOnboardingData = WorkspaceOnboardingData;
|
|
17111
17173
|
exports.WorkspacePublicKey = WorkspacePublicKey;
|
|
17112
17174
|
exports.WorkspaceSettingsSchema = WorkspaceSettingsSchema;
|
|
17113
17175
|
exports.WritableConnectorVersionData = WritableConnectorVersionData;
|
|
@@ -17144,6 +17206,7 @@ exports.findUdmCollectionMapping = findUdmCollectionMapping;
|
|
|
17144
17206
|
exports.findUdmDefaultCollection = findUdmDefaultCollection;
|
|
17145
17207
|
exports.findUdmRootLocation = findUdmRootLocation;
|
|
17146
17208
|
exports.findValueLocators = findValueLocators;
|
|
17209
|
+
exports.formatSessionCost = formatSessionCost;
|
|
17147
17210
|
exports.generateExampleFromSchema = generateExampleFromSchema;
|
|
17148
17211
|
exports.getActionInstanceVariableSchema = getActionInstanceVariableSchema;
|
|
17149
17212
|
exports.getActionRunTimeVariablesSchema = getActionRunTimeVariablesSchema;
|
|
@@ -17164,7 +17227,6 @@ exports.getDownstreamNodeKeys = getDownstreamNodeKeys;
|
|
|
17164
17227
|
exports.getEditablePathsForElementType = getEditablePathsForElementType;
|
|
17165
17228
|
exports.getEditablePathsFromSchema = getEditablePathsFromSchema;
|
|
17166
17229
|
exports.getEffectiveConnectorOption = getEffectiveConnectorOption;
|
|
17167
|
-
exports.getElementSelector = getElementSelector;
|
|
17168
17230
|
exports.getErrorFromData = getErrorFromData;
|
|
17169
17231
|
exports.getEventMethodFileKey = getEventMethodFileKey;
|
|
17170
17232
|
exports.getFilterFieldMeta = getFilterFieldMeta;
|
|
@@ -17253,7 +17315,6 @@ exports.schemaIsNumber = schemaIsNumber;
|
|
|
17253
17315
|
exports.schemaIsScalar = schemaIsScalar;
|
|
17254
17316
|
exports.schemaTypeFromValue = schemaTypeFromValue;
|
|
17255
17317
|
exports.schemaWithTitle = schemaWithTitle;
|
|
17256
|
-
exports.selectHighestPriorityScope = selectHighestPriorityScope;
|
|
17257
17318
|
exports.setEditablePropertiesForWorkspaceElement = setEditablePropertiesForWorkspaceElement;
|
|
17258
17319
|
exports.setSchemaAtLocator = setSchemaAtLocator;
|
|
17259
17320
|
exports.setValueAtLocator = setValueAtLocator;
|