@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.node.js
CHANGED
|
@@ -3573,6 +3573,10 @@ const BaseIntegrationLevelMembraneInterfaceEditableProperties = BaseMembraneInte
|
|
|
3573
3573
|
.string()
|
|
3574
3574
|
.optional()
|
|
3575
3575
|
.describe('UUID of the integration; alternative to integrationId when creating from export. Resolved to integrationId by the API.'),
|
|
3576
|
+
integrationKey: z.z
|
|
3577
|
+
.string()
|
|
3578
|
+
.optional()
|
|
3579
|
+
.describe('Key of the integration; alternative to integrationId. Resolved to integrationId by the API.'),
|
|
3576
3580
|
parentId: z.z
|
|
3577
3581
|
.string()
|
|
3578
3582
|
.optional()
|
|
@@ -3581,6 +3585,10 @@ const BaseIntegrationLevelMembraneInterfaceEditableProperties = BaseMembraneInte
|
|
|
3581
3585
|
.string()
|
|
3582
3586
|
.optional()
|
|
3583
3587
|
.describe('UUID of the parent element; alternative to parentId when creating (e.g. from export). Resolved to parentId by the API.'),
|
|
3588
|
+
parentKey: z.z
|
|
3589
|
+
.string()
|
|
3590
|
+
.optional()
|
|
3591
|
+
.describe('Key of the parent element; alternative to parentId. Resolved to parentId by the API.'),
|
|
3584
3592
|
connectionId: z.z
|
|
3585
3593
|
.string()
|
|
3586
3594
|
.optional()
|
|
@@ -3737,6 +3745,8 @@ const FieldMappingSpecificProperties = z.z.object({
|
|
|
3737
3745
|
instanceKey: z.z.string().optional(),
|
|
3738
3746
|
fieldMappingId: z.z.string().optional(),
|
|
3739
3747
|
universalFieldMappingId: z.z.string().optional(),
|
|
3748
|
+
dataSourceId: z.z.string().optional(),
|
|
3749
|
+
dataSourceUuid: z.z.string().optional(),
|
|
3740
3750
|
dataSourceKey: z.z.string().optional(),
|
|
3741
3751
|
appSchema: DataSchema.optional(),
|
|
3742
3752
|
direction: z.z.enum(exports.FieldMappingDirection).optional(),
|
|
@@ -3938,6 +3948,39 @@ const ActionReadOnlyProperties = BaseIntegrationLevelMembraneInterfaceReadOnlyPr
|
|
|
3938
3948
|
const BaseAction = BaseMembraneInterface.merge(ActionEditableProperties).merge(ActionReadOnlyProperties);
|
|
3939
3949
|
const BaseActionInstance = BaseAction;
|
|
3940
3950
|
|
|
3951
|
+
const CONNECTION_REQUEST_SCREEN_PATH = 'screens/connect';
|
|
3952
|
+
const CONNECTION_REQUEST_ID_PARAM = 'connectionRequestId';
|
|
3953
|
+
function getConnectionRequestUrl(baseUri, requestId) {
|
|
3954
|
+
return `${baseUri}/${CONNECTION_REQUEST_SCREEN_PATH}?${CONNECTION_REQUEST_ID_PARAM}=${requestId}`;
|
|
3955
|
+
}
|
|
3956
|
+
const CreateConnectionRequestPayload = z.z.object({
|
|
3957
|
+
integrationId: z.z.string().optional(),
|
|
3958
|
+
integrationKey: z.z.string().optional(),
|
|
3959
|
+
connectorId: z.z.string().optional(),
|
|
3960
|
+
connectorVersion: z.z.string().optional(),
|
|
3961
|
+
connectionId: z.z.string().optional(),
|
|
3962
|
+
name: z.z.string().optional(),
|
|
3963
|
+
allowMultipleConnections: z.z.boolean().optional(),
|
|
3964
|
+
connectorParameters: z.z.record(z.z.string(), z.z.unknown()).optional(),
|
|
3965
|
+
});
|
|
3966
|
+
const ConnectionRequest = z.z.object({
|
|
3967
|
+
requestId: z.z.string(),
|
|
3968
|
+
tenantId: z.z.string(),
|
|
3969
|
+
integrationId: z.z.string().optional(),
|
|
3970
|
+
integrationKey: z.z.string().optional(),
|
|
3971
|
+
connectorId: z.z.string().optional(),
|
|
3972
|
+
connectorVersion: z.z.string().optional(),
|
|
3973
|
+
connectionId: z.z.string().optional(),
|
|
3974
|
+
name: z.z.string().optional(),
|
|
3975
|
+
allowMultipleConnections: z.z.boolean().optional(),
|
|
3976
|
+
connectorParameters: z.z.record(z.z.string(), z.z.unknown()).optional(),
|
|
3977
|
+
status: z.z.enum(['pending', 'success', 'cancelled', 'error']),
|
|
3978
|
+
resultConnectionId: z.z.string().optional(),
|
|
3979
|
+
resultError: ErrorDataSchema.optional(),
|
|
3980
|
+
createdAt: z.z.coerce.date(),
|
|
3981
|
+
url: z.z.string(),
|
|
3982
|
+
});
|
|
3983
|
+
|
|
3941
3984
|
const ConnectionEditableProperties = z.z.object({
|
|
3942
3985
|
name: z.z.string().optional(),
|
|
3943
3986
|
meta: z.z.record(z.z.string(), z.z.any()).optional(),
|
|
@@ -3946,14 +3989,6 @@ const ConnectionEditableProperties = z.z.object({
|
|
|
3946
3989
|
connectorParameters: z.z.unknown().optional(),
|
|
3947
3990
|
input: z.z.unknown().optional(),
|
|
3948
3991
|
});
|
|
3949
|
-
const ConnectionRequest = z.z.object({
|
|
3950
|
-
path: z.z.any(),
|
|
3951
|
-
method: z.z.enum(['GET', 'POST', 'PUT', 'PATCH', 'DELETE']).optional(),
|
|
3952
|
-
pathParameters: z.z.record(z.z.string(), z.z.string()).optional(),
|
|
3953
|
-
headers: z.z.record(z.z.string(), z.z.string()).optional(),
|
|
3954
|
-
query: z.z.record(z.z.string(), z.z.string()).optional(),
|
|
3955
|
-
data: z.z.any().optional(),
|
|
3956
|
-
});
|
|
3957
3992
|
const BaseConnection = BaseWorkspaceElement.extend({
|
|
3958
3993
|
...TenantLayerElement.shape,
|
|
3959
3994
|
name: z.z.string(),
|
|
@@ -8970,6 +9005,18 @@ const ConnectorEventHandlerMethods = {
|
|
|
8970
9005
|
},
|
|
8971
9006
|
};
|
|
8972
9007
|
|
|
9008
|
+
const ConnectorAuthSuccessRecord = z.z.object({
|
|
9009
|
+
id: z.z.string(),
|
|
9010
|
+
connectorId: z.z.string(),
|
|
9011
|
+
connectorVersion: z.z.string(),
|
|
9012
|
+
authOptionKey: z.z.string().optional(),
|
|
9013
|
+
connectorParameters: z.z.any().optional(),
|
|
9014
|
+
connectionInput: z.z.any().optional(),
|
|
9015
|
+
credentials: z.z.any().optional(),
|
|
9016
|
+
logs: z.z.array(z.z.any()),
|
|
9017
|
+
createdAt: z.z.string(),
|
|
9018
|
+
});
|
|
9019
|
+
|
|
8973
9020
|
const CONNECTOR_VERSION_DEVELOPMENT = 'dev';
|
|
8974
9021
|
const CONNECTOR_VERSION_LATEST = 'latest';
|
|
8975
9022
|
const CONNECTOR_CATEGORIES = [
|
|
@@ -9018,7 +9065,8 @@ const ConnectorSpec = z.z.object({
|
|
|
9018
9065
|
operations: z.z.array(z.z.any()).optional(),
|
|
9019
9066
|
test: ConnectorMethodImplementation.optional(),
|
|
9020
9067
|
hasReadme: z.z.boolean().optional(),
|
|
9021
|
-
|
|
9068
|
+
externalAppId: z.z.string().optional(),
|
|
9069
|
+
appUuid: z.z.string().optional().describe('[INTERNAL] Deprecated: resolved to externalAppId'),
|
|
9022
9070
|
knowledgeBaseUuid: z.z.string().optional(),
|
|
9023
9071
|
workspaceId: z.z.string().optional(),
|
|
9024
9072
|
data: z.z.any().optional(),
|
|
@@ -9110,7 +9158,9 @@ const WriteableConnectorFields = z.z
|
|
|
9110
9158
|
key: z.z.string().optional(),
|
|
9111
9159
|
name: z.z.string().optional(),
|
|
9112
9160
|
logoUri: z.z.string().optional(),
|
|
9113
|
-
|
|
9161
|
+
externalAppId: z.z.string().optional(),
|
|
9162
|
+
externalAppUuid: z.z.string().optional(),
|
|
9163
|
+
appUuid: z.z.string().optional().describe('[INTERNAL] Deprecated: resolved to externalAppId'),
|
|
9114
9164
|
categories: z.z.array(z.z.string()).optional(),
|
|
9115
9165
|
})
|
|
9116
9166
|
.extend(WritableConnectorVersionData.shape);
|
|
@@ -9126,7 +9176,7 @@ const BaseConnector = z.z.object({
|
|
|
9126
9176
|
id: z.z.string(),
|
|
9127
9177
|
key: z.z.string(),
|
|
9128
9178
|
uuid: z.z.string(),
|
|
9129
|
-
|
|
9179
|
+
externalAppId: z.z.string().optional(),
|
|
9130
9180
|
name: z.z.string(),
|
|
9131
9181
|
logoUri: z.z.string(),
|
|
9132
9182
|
categories: z.z.array(z.z.string()).optional(),
|
|
@@ -9762,25 +9812,30 @@ const BaseIntegration = BaseMembraneInterface.extend({
|
|
|
9762
9812
|
hasGlobalWebhooks: z.z.boolean().optional(),
|
|
9763
9813
|
hasUdm: z.z.boolean().optional(),
|
|
9764
9814
|
isTest: z.z.boolean().optional(),
|
|
9765
|
-
|
|
9815
|
+
externalAppId: z.z.string().optional(),
|
|
9816
|
+
appUuid: z.z.string().optional().describe('[INTERNAL] Deprecated: Use externalAppId instead'),
|
|
9766
9817
|
isDeactivated: z.z.boolean().optional(),
|
|
9767
9818
|
authType: z.z.enum(CONNECTOR_AUTH_TYPES).optional(),
|
|
9768
9819
|
optionsConfig: IntegrationOptions.optional(),
|
|
9769
9820
|
});
|
|
9770
9821
|
const IntegrationEditableProperties = BaseMembraneInterfaceEditableProperties.extend({
|
|
9771
9822
|
logoUri: z.z.string().optional(),
|
|
9772
|
-
|
|
9823
|
+
externalAppId: z.z.string().optional(),
|
|
9824
|
+
externalAppUuid: z.z.string().optional(),
|
|
9825
|
+
appUuid: z.z.string().optional().describe('[INTERNAL] Deprecated: resolved to externalAppId'),
|
|
9773
9826
|
oAuthCallbackUri: z.z.url().or(z.z.literal('')).optional(),
|
|
9774
9827
|
logoBase64: z.z.string().optional(),
|
|
9775
9828
|
connectorVersion: z.z.string().optional(),
|
|
9776
9829
|
connectorId: z.z.string().optional(),
|
|
9777
9830
|
connectorUuid: z.z.string().optional(),
|
|
9831
|
+
connectorKey: z.z
|
|
9832
|
+
.string()
|
|
9833
|
+
.optional()
|
|
9834
|
+
.describe('Key of the connector; alternative to connectorId. Resolved to connectorId by the API.'),
|
|
9778
9835
|
parameters: z.z.record(z.z.string(), z.z.any()).optional(),
|
|
9779
9836
|
optionsConfig: IntegrationOptions.optional(),
|
|
9780
9837
|
});
|
|
9781
|
-
const IntegrationExportProperties = IntegrationEditableProperties
|
|
9782
|
-
connectorUuid: z.z.string().optional(),
|
|
9783
|
-
});
|
|
9838
|
+
const IntegrationExportProperties = IntegrationEditableProperties;
|
|
9784
9839
|
const AppliedToIntegrations = (elementSchema) => z.z.array(z.z.object({
|
|
9785
9840
|
element: elementSchema,
|
|
9786
9841
|
integration: BaseIntegration,
|
|
@@ -10258,7 +10313,7 @@ const CreateConnectionRequest = ConnectionEditableProperties.extend({
|
|
|
10258
10313
|
externalAppId: z.z.string().optional(),
|
|
10259
10314
|
});
|
|
10260
10315
|
const UpdateConnectionRequest = ConnectionEditableProperties;
|
|
10261
|
-
const
|
|
10316
|
+
const ConnectionExportProperties = ConnectionEditableProperties.omit({
|
|
10262
10317
|
credentials: true,
|
|
10263
10318
|
connectorParameters: true,
|
|
10264
10319
|
input: true,
|
|
@@ -10337,6 +10392,7 @@ const ConnectPayload = z.z.object({
|
|
|
10337
10392
|
allowMultipleConnections: z.z.boolean().optional(),
|
|
10338
10393
|
redirectUri: z.z.string().optional(),
|
|
10339
10394
|
customState: z.z.string().optional(),
|
|
10395
|
+
connectionRequestId: z.z.string().optional(),
|
|
10340
10396
|
});
|
|
10341
10397
|
const ConnectUIOptions = ConnectPayload.omit({ input: true, redirectUri: true }).extend({
|
|
10342
10398
|
theme: z.z.enum(['light', 'dark', 'auto']).optional(),
|
|
@@ -11558,6 +11614,7 @@ const WorkspaceElementSpecs = {
|
|
|
11558
11614
|
apiPath: 'connections',
|
|
11559
11615
|
name: 'Connection',
|
|
11560
11616
|
namePlural: 'Connections',
|
|
11617
|
+
exportPropertiesSchema: ConnectionExportProperties,
|
|
11561
11618
|
hasKey: false,
|
|
11562
11619
|
hasUuid: false,
|
|
11563
11620
|
},
|
|
@@ -11633,6 +11690,7 @@ const WorkspaceElementSpecs = {
|
|
|
11633
11690
|
namePlural: 'Flows',
|
|
11634
11691
|
parentFieldKey: 'flowId',
|
|
11635
11692
|
universalParentFieldKey: 'universalFlowId',
|
|
11693
|
+
exportPropertiesSchema: FlowExportProperties,
|
|
11636
11694
|
isMembraneInterface: true,
|
|
11637
11695
|
isProOnly: true,
|
|
11638
11696
|
},
|
|
@@ -14421,7 +14479,7 @@ class ConnectionProxy {
|
|
|
14421
14479
|
}
|
|
14422
14480
|
}
|
|
14423
14481
|
async function createOrUpdateConnection(options) {
|
|
14424
|
-
const { connectionId, integrationKey, integrationId, connectorId, connectorVersion, name, input, connectorParameters, allowMultipleConnections, authOptionKey, apiUri, token, redirectUri, onPopupClosed, } = options !== null && options !== void 0 ? options : {};
|
|
14482
|
+
const { connectionId, integrationKey, integrationId, connectorId, connectorVersion, name, input, connectorParameters, allowMultipleConnections, authOptionKey, connectionRequestId, apiUri, token, redirectUri, onPopupClosed, } = options !== null && options !== void 0 ? options : {};
|
|
14425
14483
|
let connectionType = await detectConnectionType(options);
|
|
14426
14484
|
if (redirectUri) {
|
|
14427
14485
|
connectionType = ConnectionType.REDIRECT;
|
|
@@ -14441,6 +14499,7 @@ async function createOrUpdateConnection(options) {
|
|
|
14441
14499
|
name,
|
|
14442
14500
|
authOptionKey,
|
|
14443
14501
|
allowMultipleConnections,
|
|
14502
|
+
connectionRequestId,
|
|
14444
14503
|
requestId,
|
|
14445
14504
|
redirectUri,
|
|
14446
14505
|
};
|
|
@@ -15003,6 +15062,9 @@ class ExternalEventSubscriptionAccessor {
|
|
|
15003
15062
|
async resubscribe() {
|
|
15004
15063
|
await this.client.post(this.getPath('resubscribe'));
|
|
15005
15064
|
}
|
|
15065
|
+
async refreshWebhook() {
|
|
15066
|
+
await this.client.post(this.getPath('refresh-webhook'));
|
|
15067
|
+
}
|
|
15006
15068
|
async pullEvents() {
|
|
15007
15069
|
await this.client.post(this.getPath('pull-events'));
|
|
15008
15070
|
}
|
|
@@ -15091,6 +15153,8 @@ exports.AgentName = void 0;
|
|
|
15091
15153
|
AgentName["MEMBRANE"] = "membrane";
|
|
15092
15154
|
AgentName["MEMBRANE_CORE"] = "membrane-core";
|
|
15093
15155
|
AgentName["SELF_INTEGRATING"] = "self-integrating";
|
|
15156
|
+
AgentName["CONNECTION_BUILDING"] = "connection-building";
|
|
15157
|
+
AgentName["ACTION_BUILDING"] = "action-building";
|
|
15094
15158
|
AgentName["UNIVERSE"] = "universe";
|
|
15095
15159
|
})(exports.AgentName || (exports.AgentName = {}));
|
|
15096
15160
|
const AgentSession = z.z.object({
|
|
@@ -15140,6 +15204,27 @@ const PatchAgentSessionSchema = z.z.object({
|
|
|
15140
15204
|
status: z.z.enum(exports.AgentSessionStatus).optional(),
|
|
15141
15205
|
});
|
|
15142
15206
|
|
|
15207
|
+
const SessionCredentials = z.z.object({
|
|
15208
|
+
accessKeyId: z.z.string().min(1),
|
|
15209
|
+
secretAccessKey: z.z.string().min(1),
|
|
15210
|
+
sessionToken: z.z.string().min(1),
|
|
15211
|
+
});
|
|
15212
|
+
const SessionParameters = z.z.object({
|
|
15213
|
+
id: z.z.string().optional(),
|
|
15214
|
+
accessToken: z.z.string().optional(),
|
|
15215
|
+
credentials: SessionCredentials.optional(),
|
|
15216
|
+
apiUri: z.z.string().optional(),
|
|
15217
|
+
prompt: z.z.string().optional(),
|
|
15218
|
+
elementType: z.z.string().optional(),
|
|
15219
|
+
elementId: z.z.string().optional(),
|
|
15220
|
+
customerId: z.z.string().optional(),
|
|
15221
|
+
opencodeSessionUuid: z.z.string().optional(),
|
|
15222
|
+
sessionFilesZipUri: z.z.string().optional(),
|
|
15223
|
+
openRouterApiKey: z.z.string().optional(),
|
|
15224
|
+
modelId: z.z.string().optional(),
|
|
15225
|
+
agentName: z.z.enum(exports.AgentName).optional(),
|
|
15226
|
+
});
|
|
15227
|
+
|
|
15143
15228
|
exports.AsyncRequestStatus = void 0;
|
|
15144
15229
|
(function (AsyncRequestStatus) {
|
|
15145
15230
|
AsyncRequestStatus["PENDING"] = "pending";
|
|
@@ -15177,6 +15262,42 @@ const ValidateSelfHostingTokenResponse = z.z.object({
|
|
|
15177
15262
|
orgName: z.z.string().optional(),
|
|
15178
15263
|
});
|
|
15179
15264
|
|
|
15265
|
+
const CLIENT_TOKEN_GRANT_TYPES = ['mcp-oauth', 'cli-oauth', 'agent-session', 'api'];
|
|
15266
|
+
const ClientTokenGrantType = z.z.enum(CLIENT_TOKEN_GRANT_TYPES);
|
|
15267
|
+
const ClientToken = z.z.object({
|
|
15268
|
+
id: z.z.string(),
|
|
15269
|
+
workspaceId: z.z.string().optional(),
|
|
15270
|
+
platformUserId: z.z.string().optional(),
|
|
15271
|
+
tenantId: z.z.string().optional(),
|
|
15272
|
+
grantType: ClientTokenGrantType,
|
|
15273
|
+
grantId: z.z.string().optional(),
|
|
15274
|
+
grantName: z.z.string().optional(),
|
|
15275
|
+
accessToken: z.z.string().optional(),
|
|
15276
|
+
createdAt: z.z.string(),
|
|
15277
|
+
});
|
|
15278
|
+
const CreateClientTokenRequest = z.z.object({
|
|
15279
|
+
grantType: ClientTokenGrantType,
|
|
15280
|
+
grantId: z.z.string(),
|
|
15281
|
+
grantName: z.z.string(),
|
|
15282
|
+
tenantId: z.z.string().optional(),
|
|
15283
|
+
});
|
|
15284
|
+
const ClientTokenListResponse = z.z.object({
|
|
15285
|
+
items: z.z.array(ClientToken),
|
|
15286
|
+
});
|
|
15287
|
+
|
|
15288
|
+
const MEMBRANE_CLI_CLIENT_ID = 'membrane-cli';
|
|
15289
|
+
const OAUTH_SCOPE_PLATFORM_USER = 'platform-user';
|
|
15290
|
+
const OAUTH_SCOPE_TENANT = 'tenant';
|
|
15291
|
+
const OAUTH_SCOPES = [OAUTH_SCOPE_PLATFORM_USER, OAUTH_SCOPE_TENANT];
|
|
15292
|
+
const OAuthTokenResponse = z.z.object({
|
|
15293
|
+
access_token: z.z.string(),
|
|
15294
|
+
token_type: z.z.string(),
|
|
15295
|
+
expires_in: z.z.number(),
|
|
15296
|
+
refresh_token: z.z.string().optional(),
|
|
15297
|
+
default_workspace_id: z.z.string().optional(),
|
|
15298
|
+
default_tenant_id: z.z.string().optional(),
|
|
15299
|
+
});
|
|
15300
|
+
|
|
15180
15301
|
const CONSOLE_ACCOUNT_API_TOKEN_PATH = 'settings/account/api-token';
|
|
15181
15302
|
|
|
15182
15303
|
class UI {
|
|
@@ -15239,7 +15360,7 @@ function decodeJWT(token) {
|
|
|
15239
15360
|
const axiosGlobal = ((axiosOriginal === null || axiosOriginal === void 0 ? void 0 : axiosOriginal.default) || axiosOriginal);
|
|
15240
15361
|
const axios = axiosGlobal.create();
|
|
15241
15362
|
const DEFAULT_API_URI = 'https://api.getmembrane.com';
|
|
15242
|
-
const DEFAULT_UI_URI = 'https://
|
|
15363
|
+
const DEFAULT_UI_URI = 'https://ui.getmembrane.com';
|
|
15243
15364
|
const membraneClientOptionsSchema = z.z
|
|
15244
15365
|
.object({
|
|
15245
15366
|
token: z.z.string().nullish(),
|
|
@@ -15880,7 +16001,10 @@ exports.BaseOrgUser = BaseOrgUser;
|
|
|
15880
16001
|
exports.BasePackage = BasePackage;
|
|
15881
16002
|
exports.BaseScreen = BaseScreen;
|
|
15882
16003
|
exports.BaseWorkspaceElement = BaseWorkspaceElement;
|
|
16004
|
+
exports.CLIENT_TOKEN_GRANT_TYPES = CLIENT_TOKEN_GRANT_TYPES;
|
|
15883
16005
|
exports.CONFIG_FILE_NAME = CONFIG_FILE_NAME;
|
|
16006
|
+
exports.CONNECTION_REQUEST_ID_PARAM = CONNECTION_REQUEST_ID_PARAM;
|
|
16007
|
+
exports.CONNECTION_REQUEST_SCREEN_PATH = CONNECTION_REQUEST_SCREEN_PATH;
|
|
15884
16008
|
exports.CONNECTOR_AUTH_TYPES = CONNECTOR_AUTH_TYPES;
|
|
15885
16009
|
exports.CONNECTOR_CATEGORIES = CONNECTOR_CATEGORIES;
|
|
15886
16010
|
exports.CONNECTOR_DATA_DIR = CONNECTOR_DATA_DIR;
|
|
@@ -15895,6 +16019,9 @@ exports.CONSOLE_ACCOUNT_API_TOKEN_PATH = CONSOLE_ACCOUNT_API_TOKEN_PATH;
|
|
|
15895
16019
|
exports.CheckpointApiResponse = CheckpointApiResponse;
|
|
15896
16020
|
exports.CheckpointDiffOperationSchema = CheckpointDiffOperationSchema;
|
|
15897
16021
|
exports.CheckpointDiffResponseSchema = CheckpointDiffResponseSchema;
|
|
16022
|
+
exports.ClientToken = ClientToken;
|
|
16023
|
+
exports.ClientTokenGrantType = ClientTokenGrantType;
|
|
16024
|
+
exports.ClientTokenListResponse = ClientTokenListResponse;
|
|
15898
16025
|
exports.CommonFindElementsQuery = CommonFindElementsQuery;
|
|
15899
16026
|
exports.CommonFindInstancesQuery = CommonFindInstancesQuery;
|
|
15900
16027
|
exports.CommonInstancesListQuery = CommonInstancesListQuery;
|
|
@@ -15910,7 +16037,7 @@ exports.ConnectionApiResponseWithSecrets = ConnectionApiResponseWithSecrets;
|
|
|
15910
16037
|
exports.ConnectionDataCollectionAccessor = ConnectionDataCollectionAccessor;
|
|
15911
16038
|
exports.ConnectionEditableProperties = ConnectionEditableProperties;
|
|
15912
16039
|
exports.ConnectionError = ConnectionError;
|
|
15913
|
-
exports.
|
|
16040
|
+
exports.ConnectionExportProperties = ConnectionExportProperties;
|
|
15914
16041
|
exports.ConnectionLevelActionAccessor = ConnectionLevelActionAccessor;
|
|
15915
16042
|
exports.ConnectionLevelActionsAccessor = ConnectionLevelActionsAccessor;
|
|
15916
16043
|
exports.ConnectionLevelDataSourceAccessor = ConnectionLevelDataSourceAccessor;
|
|
@@ -15941,6 +16068,7 @@ exports.ConnectorAuthOAuth1 = ConnectorAuthOAuth1;
|
|
|
15941
16068
|
exports.ConnectorAuthOAuth2 = ConnectorAuthOAuth2;
|
|
15942
16069
|
exports.ConnectorAuthProxy = ConnectorAuthProxy;
|
|
15943
16070
|
exports.ConnectorAuthSpec = ConnectorAuthSpec;
|
|
16071
|
+
exports.ConnectorAuthSuccessRecord = ConnectorAuthSuccessRecord;
|
|
15944
16072
|
exports.ConnectorAuthWithFunctions = ConnectorAuthWithFunctions;
|
|
15945
16073
|
exports.ConnectorDataCollectionEventImplementationType = ConnectorDataCollectionEventImplementationType;
|
|
15946
16074
|
exports.ConnectorDataCollectionMethodKeys = ConnectorDataCollectionMethodKeys;
|
|
@@ -15971,7 +16099,9 @@ exports.CreateActionInstanceRequest = CreateActionInstanceRequest;
|
|
|
15971
16099
|
exports.CreateActionRequest = CreateActionRequest;
|
|
15972
16100
|
exports.CreateAgentSession = CreateAgentSession;
|
|
15973
16101
|
exports.CreateAlert = CreateAlert;
|
|
16102
|
+
exports.CreateClientTokenRequest = CreateClientTokenRequest;
|
|
15974
16103
|
exports.CreateConnectionRequest = CreateConnectionRequest;
|
|
16104
|
+
exports.CreateConnectionRequestPayload = CreateConnectionRequestPayload;
|
|
15975
16105
|
exports.CreateConnectorRequest = CreateConnectorRequest;
|
|
15976
16106
|
exports.CreateCustomerRequest = CreateCustomerRequest;
|
|
15977
16107
|
exports.CreateDataLinkTableRequest = CreateDataLinkTableRequest;
|
|
@@ -16210,6 +16340,7 @@ exports.ListFlowInstancesForConnectionQuery = ListFlowInstancesForConnectionQuer
|
|
|
16210
16340
|
exports.ListIncomingWebhooksQuery = ListIncomingWebhooksQuery;
|
|
16211
16341
|
exports.ListPublicConnectorsQuery = ListPublicConnectorsQuery;
|
|
16212
16342
|
exports.ListPublicPackagesQuery = ListPublicPackagesQuery;
|
|
16343
|
+
exports.MEMBRANE_CLI_CLIENT_ID = MEMBRANE_CLI_CLIENT_ID;
|
|
16213
16344
|
exports.MEMBRANE_ELEMENT_CONFIG_FILE_NAME = MEMBRANE_ELEMENT_CONFIG_FILE_NAME;
|
|
16214
16345
|
exports.MIN_FULL_SYNC_INTERVAL_SECONDS = MIN_FULL_SYNC_INTERVAL_SECONDS;
|
|
16215
16346
|
exports.MIN_PULL_UPDATES_INTERVAL_SECONDS = MIN_PULL_UPDATES_INTERVAL_SECONDS;
|
|
@@ -16226,6 +16357,10 @@ exports.NotAuthenticatedError = NotAuthenticatedError;
|
|
|
16226
16357
|
exports.NotFoundError = NotFoundError;
|
|
16227
16358
|
exports.OAUTH1_CONFIG_SCHEMA = OAUTH1_CONFIG_SCHEMA;
|
|
16228
16359
|
exports.OAUTH_CONFIG_SCHEMA = OAUTH_CONFIG_SCHEMA;
|
|
16360
|
+
exports.OAUTH_SCOPES = OAUTH_SCOPES;
|
|
16361
|
+
exports.OAUTH_SCOPE_PLATFORM_USER = OAUTH_SCOPE_PLATFORM_USER;
|
|
16362
|
+
exports.OAUTH_SCOPE_TENANT = OAUTH_SCOPE_TENANT;
|
|
16363
|
+
exports.OAuthTokenResponse = OAuthTokenResponse;
|
|
16229
16364
|
exports.OpenRouterNotConfiguredError = OpenRouterNotConfiguredError;
|
|
16230
16365
|
exports.OpenapiMappingSchema = OpenapiMappingSchema;
|
|
16231
16366
|
exports.OperationMappingFunction = OperationMappingFunction;
|
|
@@ -16277,6 +16412,8 @@ exports.ScreensAccessor = ScreensAccessor;
|
|
|
16277
16412
|
exports.SearchQuery = SearchQuery;
|
|
16278
16413
|
exports.SelfAccessor = SelfAccessor;
|
|
16279
16414
|
exports.SelfHostingToken = SelfHostingToken;
|
|
16415
|
+
exports.SessionCredentials = SessionCredentials;
|
|
16416
|
+
exports.SessionParameters = SessionParameters;
|
|
16280
16417
|
exports.StatsFilterQuery = StatsFilterQuery;
|
|
16281
16418
|
exports.TenantLayerElement = TenantLayerElement;
|
|
16282
16419
|
exports.UNIFIED_DATA_MODELS = UNIFIED_DATA_MODELS;
|
|
@@ -16358,6 +16495,7 @@ exports.getAlertTypesByCategory = getAlertTypesByCategory;
|
|
|
16358
16495
|
exports.getAllEventMethodFilePaths = getAllEventMethodFilePaths;
|
|
16359
16496
|
exports.getBusinessDaysBetween = getBusinessDaysBetween;
|
|
16360
16497
|
exports.getChildNodeKeys = getChildNodeKeys;
|
|
16498
|
+
exports.getConnectionRequestUrl = getConnectionRequestUrl;
|
|
16361
16499
|
exports.getConnectorSpecPath = getConnectorSpecPath;
|
|
16362
16500
|
exports.getConnectorVersionPath = getConnectorVersionPath;
|
|
16363
16501
|
exports.getDataCollectionCreateFields = getDataCollectionCreateFields;
|