@membranehq/sdk 0.16.0 → 0.17.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 +90 -0
- package/dist/bundle.js +373 -297
- package/dist/bundle.js.map +1 -1
- package/dist/dts/accessors/connections-accessors.d.ts +2 -0
- package/dist/dts/accessors/external-event-subscriptions-accessors.d.ts +1 -0
- package/dist/dts/accessors/integrations-accessors.d.ts +1 -0
- package/dist/dts/agent/index.d.ts +1 -0
- package/dist/dts/agent/session.d.ts +2 -0
- package/dist/dts/agent/worker-contracts.d.ts +43 -0
- package/dist/dts/api-client.d.ts +1 -1
- package/dist/dts/client-tokens/index.d.ts +1 -0
- package/dist/dts/client-tokens/types.d.ts +57 -0
- package/dist/dts/client.d.ts +1 -1
- package/dist/dts/index.browser.d.ts +2 -0
- package/dist/dts/oauth/index.d.ts +1 -0
- package/dist/dts/oauth/types.d.ts +15 -0
- package/dist/dts/workspace-elements/api/action-run-log-records-api.d.ts +10 -0
- package/dist/dts/workspace-elements/api/actions-api.d.ts +24 -0
- package/dist/dts/workspace-elements/api/connections-api.d.ts +7 -2
- package/dist/dts/workspace-elements/api/data-link-table-instances-api.d.ts +1 -0
- package/dist/dts/workspace-elements/api/data-sources-api.d.ts +20 -0
- package/dist/dts/workspace-elements/api/external-api-logs-api.d.ts +1 -0
- package/dist/dts/workspace-elements/api/external-event-log-records-api.d.ts +1 -0
- package/dist/dts/workspace-elements/api/external-event-pulls-api.d.ts +1 -0
- package/dist/dts/workspace-elements/api/external-event-subscriptions-api.d.ts +1 -0
- package/dist/dts/workspace-elements/api/external-events-api.d.ts +1 -0
- package/dist/dts/workspace-elements/api/field-mappings-api.d.ts +44 -0
- package/dist/dts/workspace-elements/api/flow-runs-api.d.ts +6 -0
- package/dist/dts/workspace-elements/api/flows-api.d.ts +20 -0
- package/dist/dts/workspace-elements/api/integrations-api.d.ts +7 -0
- package/dist/dts/workspace-elements/api/packages-api.d.ts +9 -0
- package/dist/dts/workspace-elements/base/action-instances/index.d.ts +2 -0
- package/dist/dts/workspace-elements/base/actions/index.d.ts +6 -0
- package/dist/dts/workspace-elements/base/connection-requests/index.d.ts +39 -0
- package/dist/dts/workspace-elements/base/connections/index.d.ts +0 -15
- package/dist/dts/workspace-elements/base/connectors/auth-success-records.d.ts +13 -0
- package/dist/dts/workspace-elements/base/connectors/index.d.ts +51 -40
- package/dist/dts/workspace-elements/base/data-sources/index.d.ts +8 -0
- package/dist/dts/workspace-elements/base/field-mappings/index.d.ts +14 -0
- package/dist/dts/workspace-elements/base/flows/index.d.ts +6 -0
- package/dist/dts/workspace-elements/base/index.d.ts +1 -0
- package/dist/dts/workspace-elements/base/integrations/index.d.ts +9 -1
- package/dist/dts/workspace-elements/base/packages/index.d.ts +4 -0
- package/dist/dts/workspace-elements/types.d.ts +4 -0
- package/dist/index.browser.d.mts +427 -60
- package/dist/index.browser.d.ts +427 -60
- package/dist/index.browser.js +158 -20
- package/dist/index.browser.js.map +1 -1
- package/dist/index.browser.mjs +141 -20
- package/dist/index.browser.mjs.map +1 -1
- package/dist/index.node.d.mts +427 -60
- package/dist/index.node.d.ts +427 -60
- package/dist/index.node.js +158 -20
- package/dist/index.node.js.map +1 -1
- package/dist/index.node.mjs +141 -20
- package/dist/index.node.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.browser.js
CHANGED
|
@@ -3549,6 +3549,10 @@ const BaseIntegrationLevelMembraneInterfaceEditableProperties = BaseMembraneInte
|
|
|
3549
3549
|
.string()
|
|
3550
3550
|
.optional()
|
|
3551
3551
|
.describe('UUID of the integration; alternative to integrationId when creating from export. Resolved to integrationId by the API.'),
|
|
3552
|
+
integrationKey: z.z
|
|
3553
|
+
.string()
|
|
3554
|
+
.optional()
|
|
3555
|
+
.describe('Key of the integration; alternative to integrationId. Resolved to integrationId by the API.'),
|
|
3552
3556
|
parentId: z.z
|
|
3553
3557
|
.string()
|
|
3554
3558
|
.optional()
|
|
@@ -3557,6 +3561,10 @@ const BaseIntegrationLevelMembraneInterfaceEditableProperties = BaseMembraneInte
|
|
|
3557
3561
|
.string()
|
|
3558
3562
|
.optional()
|
|
3559
3563
|
.describe('UUID of the parent element; alternative to parentId when creating (e.g. from export). Resolved to parentId by the API.'),
|
|
3564
|
+
parentKey: z.z
|
|
3565
|
+
.string()
|
|
3566
|
+
.optional()
|
|
3567
|
+
.describe('Key of the parent element; alternative to parentId. Resolved to parentId by the API.'),
|
|
3560
3568
|
connectionId: z.z
|
|
3561
3569
|
.string()
|
|
3562
3570
|
.optional()
|
|
@@ -3713,6 +3721,8 @@ const FieldMappingSpecificProperties = z.z.object({
|
|
|
3713
3721
|
instanceKey: z.z.string().optional(),
|
|
3714
3722
|
fieldMappingId: z.z.string().optional(),
|
|
3715
3723
|
universalFieldMappingId: z.z.string().optional(),
|
|
3724
|
+
dataSourceId: z.z.string().optional(),
|
|
3725
|
+
dataSourceUuid: z.z.string().optional(),
|
|
3716
3726
|
dataSourceKey: z.z.string().optional(),
|
|
3717
3727
|
appSchema: DataSchema.optional(),
|
|
3718
3728
|
direction: z.z.enum(exports.FieldMappingDirection).optional(),
|
|
@@ -3914,6 +3924,39 @@ const ActionReadOnlyProperties = BaseIntegrationLevelMembraneInterfaceReadOnlyPr
|
|
|
3914
3924
|
const BaseAction = BaseMembraneInterface.merge(ActionEditableProperties).merge(ActionReadOnlyProperties);
|
|
3915
3925
|
const BaseActionInstance = BaseAction;
|
|
3916
3926
|
|
|
3927
|
+
const CONNECTION_REQUEST_SCREEN_PATH = 'screens/connect';
|
|
3928
|
+
const CONNECTION_REQUEST_ID_PARAM = 'connectionRequestId';
|
|
3929
|
+
function getConnectionRequestUrl(baseUri, requestId) {
|
|
3930
|
+
return `${baseUri}/${CONNECTION_REQUEST_SCREEN_PATH}?${CONNECTION_REQUEST_ID_PARAM}=${requestId}`;
|
|
3931
|
+
}
|
|
3932
|
+
const CreateConnectionRequestPayload = z.z.object({
|
|
3933
|
+
integrationId: z.z.string().optional(),
|
|
3934
|
+
integrationKey: z.z.string().optional(),
|
|
3935
|
+
connectorId: z.z.string().optional(),
|
|
3936
|
+
connectorVersion: z.z.string().optional(),
|
|
3937
|
+
connectionId: z.z.string().optional(),
|
|
3938
|
+
name: z.z.string().optional(),
|
|
3939
|
+
allowMultipleConnections: z.z.boolean().optional(),
|
|
3940
|
+
connectorParameters: z.z.record(z.z.string(), z.z.unknown()).optional(),
|
|
3941
|
+
});
|
|
3942
|
+
const ConnectionRequest = z.z.object({
|
|
3943
|
+
requestId: z.z.string(),
|
|
3944
|
+
tenantId: z.z.string(),
|
|
3945
|
+
integrationId: z.z.string().optional(),
|
|
3946
|
+
integrationKey: z.z.string().optional(),
|
|
3947
|
+
connectorId: z.z.string().optional(),
|
|
3948
|
+
connectorVersion: z.z.string().optional(),
|
|
3949
|
+
connectionId: z.z.string().optional(),
|
|
3950
|
+
name: z.z.string().optional(),
|
|
3951
|
+
allowMultipleConnections: z.z.boolean().optional(),
|
|
3952
|
+
connectorParameters: z.z.record(z.z.string(), z.z.unknown()).optional(),
|
|
3953
|
+
status: z.z.enum(['pending', 'success', 'cancelled', 'error']),
|
|
3954
|
+
resultConnectionId: z.z.string().optional(),
|
|
3955
|
+
resultError: ErrorDataSchema.optional(),
|
|
3956
|
+
createdAt: z.z.coerce.date(),
|
|
3957
|
+
url: z.z.string(),
|
|
3958
|
+
});
|
|
3959
|
+
|
|
3917
3960
|
const ConnectionEditableProperties = z.z.object({
|
|
3918
3961
|
name: z.z.string().optional(),
|
|
3919
3962
|
meta: z.z.record(z.z.string(), z.z.any()).optional(),
|
|
@@ -3922,14 +3965,6 @@ const ConnectionEditableProperties = z.z.object({
|
|
|
3922
3965
|
connectorParameters: z.z.unknown().optional(),
|
|
3923
3966
|
input: z.z.unknown().optional(),
|
|
3924
3967
|
});
|
|
3925
|
-
const ConnectionRequest = z.z.object({
|
|
3926
|
-
path: z.z.any(),
|
|
3927
|
-
method: z.z.enum(['GET', 'POST', 'PUT', 'PATCH', 'DELETE']).optional(),
|
|
3928
|
-
pathParameters: z.z.record(z.z.string(), z.z.string()).optional(),
|
|
3929
|
-
headers: z.z.record(z.z.string(), z.z.string()).optional(),
|
|
3930
|
-
query: z.z.record(z.z.string(), z.z.string()).optional(),
|
|
3931
|
-
data: z.z.any().optional(),
|
|
3932
|
-
});
|
|
3933
3968
|
const BaseConnection = BaseWorkspaceElement.extend({
|
|
3934
3969
|
...TenantLayerElement.shape,
|
|
3935
3970
|
name: z.z.string(),
|
|
@@ -8946,6 +8981,18 @@ const ConnectorEventHandlerMethods = {
|
|
|
8946
8981
|
},
|
|
8947
8982
|
};
|
|
8948
8983
|
|
|
8984
|
+
const ConnectorAuthSuccessRecord = z.z.object({
|
|
8985
|
+
id: z.z.string(),
|
|
8986
|
+
connectorId: z.z.string(),
|
|
8987
|
+
connectorVersion: z.z.string(),
|
|
8988
|
+
authOptionKey: z.z.string().optional(),
|
|
8989
|
+
connectorParameters: z.z.any().optional(),
|
|
8990
|
+
connectionInput: z.z.any().optional(),
|
|
8991
|
+
credentials: z.z.any().optional(),
|
|
8992
|
+
logs: z.z.array(z.z.any()),
|
|
8993
|
+
createdAt: z.z.string(),
|
|
8994
|
+
});
|
|
8995
|
+
|
|
8949
8996
|
const CONNECTOR_VERSION_DEVELOPMENT = 'dev';
|
|
8950
8997
|
const CONNECTOR_VERSION_LATEST = 'latest';
|
|
8951
8998
|
const CONNECTOR_CATEGORIES = [
|
|
@@ -8994,7 +9041,8 @@ const ConnectorSpec = z.z.object({
|
|
|
8994
9041
|
operations: z.z.array(z.z.any()).optional(),
|
|
8995
9042
|
test: ConnectorMethodImplementation.optional(),
|
|
8996
9043
|
hasReadme: z.z.boolean().optional(),
|
|
8997
|
-
|
|
9044
|
+
externalAppId: z.z.string().optional(),
|
|
9045
|
+
appUuid: z.z.string().optional().describe('[INTERNAL] Deprecated: resolved to externalAppId'),
|
|
8998
9046
|
knowledgeBaseUuid: z.z.string().optional(),
|
|
8999
9047
|
workspaceId: z.z.string().optional(),
|
|
9000
9048
|
data: z.z.any().optional(),
|
|
@@ -9086,7 +9134,9 @@ const WriteableConnectorFields = z.z
|
|
|
9086
9134
|
key: z.z.string().optional(),
|
|
9087
9135
|
name: z.z.string().optional(),
|
|
9088
9136
|
logoUri: z.z.string().optional(),
|
|
9089
|
-
|
|
9137
|
+
externalAppId: z.z.string().optional(),
|
|
9138
|
+
externalAppUuid: z.z.string().optional(),
|
|
9139
|
+
appUuid: z.z.string().optional().describe('[INTERNAL] Deprecated: resolved to externalAppId'),
|
|
9090
9140
|
categories: z.z.array(z.z.string()).optional(),
|
|
9091
9141
|
})
|
|
9092
9142
|
.extend(WritableConnectorVersionData.shape);
|
|
@@ -9102,7 +9152,7 @@ const BaseConnector = z.z.object({
|
|
|
9102
9152
|
id: z.z.string(),
|
|
9103
9153
|
key: z.z.string(),
|
|
9104
9154
|
uuid: z.z.string(),
|
|
9105
|
-
|
|
9155
|
+
externalAppId: z.z.string().optional(),
|
|
9106
9156
|
name: z.z.string(),
|
|
9107
9157
|
logoUri: z.z.string(),
|
|
9108
9158
|
categories: z.z.array(z.z.string()).optional(),
|
|
@@ -9738,25 +9788,30 @@ const BaseIntegration = BaseMembraneInterface.extend({
|
|
|
9738
9788
|
hasGlobalWebhooks: z.z.boolean().optional(),
|
|
9739
9789
|
hasUdm: z.z.boolean().optional(),
|
|
9740
9790
|
isTest: z.z.boolean().optional(),
|
|
9741
|
-
|
|
9791
|
+
externalAppId: z.z.string().optional(),
|
|
9792
|
+
appUuid: z.z.string().optional().describe('[INTERNAL] Deprecated: Use externalAppId instead'),
|
|
9742
9793
|
isDeactivated: z.z.boolean().optional(),
|
|
9743
9794
|
authType: z.z.enum(CONNECTOR_AUTH_TYPES).optional(),
|
|
9744
9795
|
optionsConfig: IntegrationOptions.optional(),
|
|
9745
9796
|
});
|
|
9746
9797
|
const IntegrationEditableProperties = BaseMembraneInterfaceEditableProperties.extend({
|
|
9747
9798
|
logoUri: z.z.string().optional(),
|
|
9748
|
-
|
|
9799
|
+
externalAppId: z.z.string().optional(),
|
|
9800
|
+
externalAppUuid: z.z.string().optional(),
|
|
9801
|
+
appUuid: z.z.string().optional().describe('[INTERNAL] Deprecated: resolved to externalAppId'),
|
|
9749
9802
|
oAuthCallbackUri: z.z.url().or(z.z.literal('')).optional(),
|
|
9750
9803
|
logoBase64: z.z.string().optional(),
|
|
9751
9804
|
connectorVersion: z.z.string().optional(),
|
|
9752
9805
|
connectorId: z.z.string().optional(),
|
|
9753
9806
|
connectorUuid: z.z.string().optional(),
|
|
9807
|
+
connectorKey: z.z
|
|
9808
|
+
.string()
|
|
9809
|
+
.optional()
|
|
9810
|
+
.describe('Key of the connector; alternative to connectorId. Resolved to connectorId by the API.'),
|
|
9754
9811
|
parameters: z.z.record(z.z.string(), z.z.any()).optional(),
|
|
9755
9812
|
optionsConfig: IntegrationOptions.optional(),
|
|
9756
9813
|
});
|
|
9757
|
-
const IntegrationExportProperties = IntegrationEditableProperties
|
|
9758
|
-
connectorUuid: z.z.string().optional(),
|
|
9759
|
-
});
|
|
9814
|
+
const IntegrationExportProperties = IntegrationEditableProperties;
|
|
9760
9815
|
const AppliedToIntegrations = (elementSchema) => z.z.array(z.z.object({
|
|
9761
9816
|
element: elementSchema,
|
|
9762
9817
|
integration: BaseIntegration,
|
|
@@ -10234,7 +10289,7 @@ const CreateConnectionRequest = ConnectionEditableProperties.extend({
|
|
|
10234
10289
|
externalAppId: z.z.string().optional(),
|
|
10235
10290
|
});
|
|
10236
10291
|
const UpdateConnectionRequest = ConnectionEditableProperties;
|
|
10237
|
-
const
|
|
10292
|
+
const ConnectionExportProperties = ConnectionEditableProperties.omit({
|
|
10238
10293
|
credentials: true,
|
|
10239
10294
|
connectorParameters: true,
|
|
10240
10295
|
input: true,
|
|
@@ -10313,6 +10368,7 @@ const ConnectPayload = z.z.object({
|
|
|
10313
10368
|
allowMultipleConnections: z.z.boolean().optional(),
|
|
10314
10369
|
redirectUri: z.z.string().optional(),
|
|
10315
10370
|
customState: z.z.string().optional(),
|
|
10371
|
+
connectionRequestId: z.z.string().optional(),
|
|
10316
10372
|
});
|
|
10317
10373
|
const ConnectUIOptions = ConnectPayload.omit({ input: true, redirectUri: true }).extend({
|
|
10318
10374
|
theme: z.z.enum(['light', 'dark', 'auto']).optional(),
|
|
@@ -11534,6 +11590,7 @@ const WorkspaceElementSpecs = {
|
|
|
11534
11590
|
apiPath: 'connections',
|
|
11535
11591
|
name: 'Connection',
|
|
11536
11592
|
namePlural: 'Connections',
|
|
11593
|
+
exportPropertiesSchema: ConnectionExportProperties,
|
|
11537
11594
|
hasKey: false,
|
|
11538
11595
|
hasUuid: false,
|
|
11539
11596
|
},
|
|
@@ -11609,6 +11666,7 @@ const WorkspaceElementSpecs = {
|
|
|
11609
11666
|
namePlural: 'Flows',
|
|
11610
11667
|
parentFieldKey: 'flowId',
|
|
11611
11668
|
universalParentFieldKey: 'universalFlowId',
|
|
11669
|
+
exportPropertiesSchema: FlowExportProperties,
|
|
11612
11670
|
isMembraneInterface: true,
|
|
11613
11671
|
isProOnly: true,
|
|
11614
11672
|
},
|
|
@@ -14397,7 +14455,7 @@ class ConnectionProxy {
|
|
|
14397
14455
|
}
|
|
14398
14456
|
}
|
|
14399
14457
|
async function createOrUpdateConnection(options) {
|
|
14400
|
-
const { connectionId, integrationKey, integrationId, connectorId, connectorVersion, name, input, connectorParameters, allowMultipleConnections, authOptionKey, apiUri, token, redirectUri, onPopupClosed, } = options !== null && options !== void 0 ? options : {};
|
|
14458
|
+
const { connectionId, integrationKey, integrationId, connectorId, connectorVersion, name, input, connectorParameters, allowMultipleConnections, authOptionKey, connectionRequestId, apiUri, token, redirectUri, onPopupClosed, } = options !== null && options !== void 0 ? options : {};
|
|
14401
14459
|
let connectionType = await detectConnectionType(options);
|
|
14402
14460
|
if (redirectUri) {
|
|
14403
14461
|
connectionType = ConnectionType.REDIRECT;
|
|
@@ -14417,6 +14475,7 @@ async function createOrUpdateConnection(options) {
|
|
|
14417
14475
|
name,
|
|
14418
14476
|
authOptionKey,
|
|
14419
14477
|
allowMultipleConnections,
|
|
14478
|
+
connectionRequestId,
|
|
14420
14479
|
requestId,
|
|
14421
14480
|
redirectUri,
|
|
14422
14481
|
};
|
|
@@ -14979,6 +15038,9 @@ class ExternalEventSubscriptionAccessor {
|
|
|
14979
15038
|
async resubscribe() {
|
|
14980
15039
|
await this.client.post(this.getPath('resubscribe'));
|
|
14981
15040
|
}
|
|
15041
|
+
async refreshWebhook() {
|
|
15042
|
+
await this.client.post(this.getPath('refresh-webhook'));
|
|
15043
|
+
}
|
|
14982
15044
|
async pullEvents() {
|
|
14983
15045
|
await this.client.post(this.getPath('pull-events'));
|
|
14984
15046
|
}
|
|
@@ -15067,6 +15129,8 @@ exports.AgentName = void 0;
|
|
|
15067
15129
|
AgentName["MEMBRANE"] = "membrane";
|
|
15068
15130
|
AgentName["MEMBRANE_CORE"] = "membrane-core";
|
|
15069
15131
|
AgentName["SELF_INTEGRATING"] = "self-integrating";
|
|
15132
|
+
AgentName["CONNECTION_BUILDING"] = "connection-building";
|
|
15133
|
+
AgentName["ACTION_BUILDING"] = "action-building";
|
|
15070
15134
|
AgentName["UNIVERSE"] = "universe";
|
|
15071
15135
|
})(exports.AgentName || (exports.AgentName = {}));
|
|
15072
15136
|
const AgentSession = z.z.object({
|
|
@@ -15116,6 +15180,27 @@ const PatchAgentSessionSchema = z.z.object({
|
|
|
15116
15180
|
status: z.z.enum(exports.AgentSessionStatus).optional(),
|
|
15117
15181
|
});
|
|
15118
15182
|
|
|
15183
|
+
const SessionCredentials = z.z.object({
|
|
15184
|
+
accessKeyId: z.z.string().min(1),
|
|
15185
|
+
secretAccessKey: z.z.string().min(1),
|
|
15186
|
+
sessionToken: z.z.string().min(1),
|
|
15187
|
+
});
|
|
15188
|
+
const SessionParameters = z.z.object({
|
|
15189
|
+
id: z.z.string().optional(),
|
|
15190
|
+
accessToken: z.z.string().optional(),
|
|
15191
|
+
credentials: SessionCredentials.optional(),
|
|
15192
|
+
apiUri: z.z.string().optional(),
|
|
15193
|
+
prompt: z.z.string().optional(),
|
|
15194
|
+
elementType: z.z.string().optional(),
|
|
15195
|
+
elementId: z.z.string().optional(),
|
|
15196
|
+
customerId: z.z.string().optional(),
|
|
15197
|
+
opencodeSessionUuid: z.z.string().optional(),
|
|
15198
|
+
sessionFilesZipUri: z.z.string().optional(),
|
|
15199
|
+
openRouterApiKey: z.z.string().optional(),
|
|
15200
|
+
modelId: z.z.string().optional(),
|
|
15201
|
+
agentName: z.z.enum(exports.AgentName).optional(),
|
|
15202
|
+
});
|
|
15203
|
+
|
|
15119
15204
|
exports.AsyncRequestStatus = void 0;
|
|
15120
15205
|
(function (AsyncRequestStatus) {
|
|
15121
15206
|
AsyncRequestStatus["PENDING"] = "pending";
|
|
@@ -15153,6 +15238,42 @@ const ValidateSelfHostingTokenResponse = z.z.object({
|
|
|
15153
15238
|
orgName: z.z.string().optional(),
|
|
15154
15239
|
});
|
|
15155
15240
|
|
|
15241
|
+
const CLIENT_TOKEN_GRANT_TYPES = ['mcp-oauth', 'cli-oauth', 'agent-session', 'api'];
|
|
15242
|
+
const ClientTokenGrantType = z.z.enum(CLIENT_TOKEN_GRANT_TYPES);
|
|
15243
|
+
const ClientToken = z.z.object({
|
|
15244
|
+
id: z.z.string(),
|
|
15245
|
+
workspaceId: z.z.string().optional(),
|
|
15246
|
+
platformUserId: z.z.string().optional(),
|
|
15247
|
+
tenantId: z.z.string().optional(),
|
|
15248
|
+
grantType: ClientTokenGrantType,
|
|
15249
|
+
grantId: z.z.string().optional(),
|
|
15250
|
+
grantName: z.z.string().optional(),
|
|
15251
|
+
accessToken: z.z.string().optional(),
|
|
15252
|
+
createdAt: z.z.string(),
|
|
15253
|
+
});
|
|
15254
|
+
const CreateClientTokenRequest = z.z.object({
|
|
15255
|
+
grantType: ClientTokenGrantType,
|
|
15256
|
+
grantId: z.z.string(),
|
|
15257
|
+
grantName: z.z.string(),
|
|
15258
|
+
tenantId: z.z.string().optional(),
|
|
15259
|
+
});
|
|
15260
|
+
const ClientTokenListResponse = z.z.object({
|
|
15261
|
+
items: z.z.array(ClientToken),
|
|
15262
|
+
});
|
|
15263
|
+
|
|
15264
|
+
const MEMBRANE_CLI_CLIENT_ID = 'membrane-cli';
|
|
15265
|
+
const OAUTH_SCOPE_PLATFORM_USER = 'platform-user';
|
|
15266
|
+
const OAUTH_SCOPE_TENANT = 'tenant';
|
|
15267
|
+
const OAUTH_SCOPES = [OAUTH_SCOPE_PLATFORM_USER, OAUTH_SCOPE_TENANT];
|
|
15268
|
+
const OAuthTokenResponse = z.z.object({
|
|
15269
|
+
access_token: z.z.string(),
|
|
15270
|
+
token_type: z.z.string(),
|
|
15271
|
+
expires_in: z.z.number(),
|
|
15272
|
+
refresh_token: z.z.string().optional(),
|
|
15273
|
+
default_workspace_id: z.z.string().optional(),
|
|
15274
|
+
default_tenant_id: z.z.string().optional(),
|
|
15275
|
+
});
|
|
15276
|
+
|
|
15156
15277
|
const CONSOLE_ACCOUNT_API_TOKEN_PATH = 'settings/account/api-token';
|
|
15157
15278
|
|
|
15158
15279
|
class UI {
|
|
@@ -15215,7 +15336,7 @@ function decodeJWT(token) {
|
|
|
15215
15336
|
const axiosGlobal = ((axiosOriginal === null || axiosOriginal === void 0 ? void 0 : axiosOriginal.default) || axiosOriginal);
|
|
15216
15337
|
const axios = axiosGlobal.create();
|
|
15217
15338
|
const DEFAULT_API_URI = 'https://api.getmembrane.com';
|
|
15218
|
-
const DEFAULT_UI_URI = 'https://
|
|
15339
|
+
const DEFAULT_UI_URI = 'https://ui.getmembrane.com';
|
|
15219
15340
|
const membraneClientOptionsSchema = z.z
|
|
15220
15341
|
.object({
|
|
15221
15342
|
token: z.z.string().nullish(),
|
|
@@ -15676,6 +15797,9 @@ exports.BaseOrgUser = BaseOrgUser;
|
|
|
15676
15797
|
exports.BasePackage = BasePackage;
|
|
15677
15798
|
exports.BaseScreen = BaseScreen;
|
|
15678
15799
|
exports.BaseWorkspaceElement = BaseWorkspaceElement;
|
|
15800
|
+
exports.CLIENT_TOKEN_GRANT_TYPES = CLIENT_TOKEN_GRANT_TYPES;
|
|
15801
|
+
exports.CONNECTION_REQUEST_ID_PARAM = CONNECTION_REQUEST_ID_PARAM;
|
|
15802
|
+
exports.CONNECTION_REQUEST_SCREEN_PATH = CONNECTION_REQUEST_SCREEN_PATH;
|
|
15679
15803
|
exports.CONNECTOR_AUTH_TYPES = CONNECTOR_AUTH_TYPES;
|
|
15680
15804
|
exports.CONNECTOR_CATEGORIES = CONNECTOR_CATEGORIES;
|
|
15681
15805
|
exports.CONNECTOR_DATA_DIR = CONNECTOR_DATA_DIR;
|
|
@@ -15690,6 +15814,9 @@ exports.CONSOLE_ACCOUNT_API_TOKEN_PATH = CONSOLE_ACCOUNT_API_TOKEN_PATH;
|
|
|
15690
15814
|
exports.CheckpointApiResponse = CheckpointApiResponse;
|
|
15691
15815
|
exports.CheckpointDiffOperationSchema = CheckpointDiffOperationSchema;
|
|
15692
15816
|
exports.CheckpointDiffResponseSchema = CheckpointDiffResponseSchema;
|
|
15817
|
+
exports.ClientToken = ClientToken;
|
|
15818
|
+
exports.ClientTokenGrantType = ClientTokenGrantType;
|
|
15819
|
+
exports.ClientTokenListResponse = ClientTokenListResponse;
|
|
15693
15820
|
exports.CommonFindElementsQuery = CommonFindElementsQuery;
|
|
15694
15821
|
exports.CommonFindInstancesQuery = CommonFindInstancesQuery;
|
|
15695
15822
|
exports.CommonInstancesListQuery = CommonInstancesListQuery;
|
|
@@ -15705,7 +15832,7 @@ exports.ConnectionApiResponseWithSecrets = ConnectionApiResponseWithSecrets;
|
|
|
15705
15832
|
exports.ConnectionDataCollectionAccessor = ConnectionDataCollectionAccessor;
|
|
15706
15833
|
exports.ConnectionEditableProperties = ConnectionEditableProperties;
|
|
15707
15834
|
exports.ConnectionError = ConnectionError;
|
|
15708
|
-
exports.
|
|
15835
|
+
exports.ConnectionExportProperties = ConnectionExportProperties;
|
|
15709
15836
|
exports.ConnectionLevelActionAccessor = ConnectionLevelActionAccessor;
|
|
15710
15837
|
exports.ConnectionLevelActionsAccessor = ConnectionLevelActionsAccessor;
|
|
15711
15838
|
exports.ConnectionLevelDataSourceAccessor = ConnectionLevelDataSourceAccessor;
|
|
@@ -15736,6 +15863,7 @@ exports.ConnectorAuthOAuth1 = ConnectorAuthOAuth1;
|
|
|
15736
15863
|
exports.ConnectorAuthOAuth2 = ConnectorAuthOAuth2;
|
|
15737
15864
|
exports.ConnectorAuthProxy = ConnectorAuthProxy;
|
|
15738
15865
|
exports.ConnectorAuthSpec = ConnectorAuthSpec;
|
|
15866
|
+
exports.ConnectorAuthSuccessRecord = ConnectorAuthSuccessRecord;
|
|
15739
15867
|
exports.ConnectorAuthWithFunctions = ConnectorAuthWithFunctions;
|
|
15740
15868
|
exports.ConnectorDataCollectionEventImplementationType = ConnectorDataCollectionEventImplementationType;
|
|
15741
15869
|
exports.ConnectorDataCollectionMethodKeys = ConnectorDataCollectionMethodKeys;
|
|
@@ -15766,7 +15894,9 @@ exports.CreateActionInstanceRequest = CreateActionInstanceRequest;
|
|
|
15766
15894
|
exports.CreateActionRequest = CreateActionRequest;
|
|
15767
15895
|
exports.CreateAgentSession = CreateAgentSession;
|
|
15768
15896
|
exports.CreateAlert = CreateAlert;
|
|
15897
|
+
exports.CreateClientTokenRequest = CreateClientTokenRequest;
|
|
15769
15898
|
exports.CreateConnectionRequest = CreateConnectionRequest;
|
|
15899
|
+
exports.CreateConnectionRequestPayload = CreateConnectionRequestPayload;
|
|
15770
15900
|
exports.CreateConnectorRequest = CreateConnectorRequest;
|
|
15771
15901
|
exports.CreateCustomerRequest = CreateCustomerRequest;
|
|
15772
15902
|
exports.CreateDataLinkTableRequest = CreateDataLinkTableRequest;
|
|
@@ -16005,6 +16135,7 @@ exports.ListFlowInstancesForConnectionQuery = ListFlowInstancesForConnectionQuer
|
|
|
16005
16135
|
exports.ListIncomingWebhooksQuery = ListIncomingWebhooksQuery;
|
|
16006
16136
|
exports.ListPublicConnectorsQuery = ListPublicConnectorsQuery;
|
|
16007
16137
|
exports.ListPublicPackagesQuery = ListPublicPackagesQuery;
|
|
16138
|
+
exports.MEMBRANE_CLI_CLIENT_ID = MEMBRANE_CLI_CLIENT_ID;
|
|
16008
16139
|
exports.MEMBRANE_ELEMENT_CONFIG_FILE_NAME = MEMBRANE_ELEMENT_CONFIG_FILE_NAME;
|
|
16009
16140
|
exports.MIN_FULL_SYNC_INTERVAL_SECONDS = MIN_FULL_SYNC_INTERVAL_SECONDS;
|
|
16010
16141
|
exports.MIN_PULL_UPDATES_INTERVAL_SECONDS = MIN_PULL_UPDATES_INTERVAL_SECONDS;
|
|
@@ -16020,6 +16151,10 @@ exports.NotAuthenticatedError = NotAuthenticatedError;
|
|
|
16020
16151
|
exports.NotFoundError = NotFoundError;
|
|
16021
16152
|
exports.OAUTH1_CONFIG_SCHEMA = OAUTH1_CONFIG_SCHEMA;
|
|
16022
16153
|
exports.OAUTH_CONFIG_SCHEMA = OAUTH_CONFIG_SCHEMA;
|
|
16154
|
+
exports.OAUTH_SCOPES = OAUTH_SCOPES;
|
|
16155
|
+
exports.OAUTH_SCOPE_PLATFORM_USER = OAUTH_SCOPE_PLATFORM_USER;
|
|
16156
|
+
exports.OAUTH_SCOPE_TENANT = OAUTH_SCOPE_TENANT;
|
|
16157
|
+
exports.OAuthTokenResponse = OAuthTokenResponse;
|
|
16023
16158
|
exports.OpenRouterNotConfiguredError = OpenRouterNotConfiguredError;
|
|
16024
16159
|
exports.OpenapiMappingSchema = OpenapiMappingSchema;
|
|
16025
16160
|
exports.OperationMappingFunction = OperationMappingFunction;
|
|
@@ -16071,6 +16206,8 @@ exports.ScreensAccessor = ScreensAccessor;
|
|
|
16071
16206
|
exports.SearchQuery = SearchQuery;
|
|
16072
16207
|
exports.SelfAccessor = SelfAccessor;
|
|
16073
16208
|
exports.SelfHostingToken = SelfHostingToken;
|
|
16209
|
+
exports.SessionCredentials = SessionCredentials;
|
|
16210
|
+
exports.SessionParameters = SessionParameters;
|
|
16074
16211
|
exports.StatsFilterQuery = StatsFilterQuery;
|
|
16075
16212
|
exports.TenantLayerElement = TenantLayerElement;
|
|
16076
16213
|
exports.UNIFIED_DATA_MODELS = UNIFIED_DATA_MODELS;
|
|
@@ -16152,6 +16289,7 @@ exports.getAlertTypesByCategory = getAlertTypesByCategory;
|
|
|
16152
16289
|
exports.getAllEventMethodFilePaths = getAllEventMethodFilePaths;
|
|
16153
16290
|
exports.getBusinessDaysBetween = getBusinessDaysBetween;
|
|
16154
16291
|
exports.getChildNodeKeys = getChildNodeKeys;
|
|
16292
|
+
exports.getConnectionRequestUrl = getConnectionRequestUrl;
|
|
16155
16293
|
exports.getConnectorSpecPath = getConnectorSpecPath;
|
|
16156
16294
|
exports.getConnectorVersionPath = getConnectorVersionPath;
|
|
16157
16295
|
exports.getDataCollectionCreateFields = getDataCollectionCreateFields;
|