@membranehq/sdk 0.22.3 → 0.22.5
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 +19 -0
- package/dist/bundle.js +3 -2
- package/dist/bundle.js.map +1 -1
- package/dist/dts/index.browser.d.ts +1 -0
- package/dist/dts/membrane-instances/types.d.ts +14 -0
- package/dist/dts/org-instances/types.d.ts +32 -0
- package/dist/dts/orgs/types.d.ts +15 -0
- package/dist/dts/workspace-elements/base/connectors/auth.d.ts +26 -0
- package/dist/dts/workspace-elements/base/connectors/index.d.ts +38 -0
- package/dist/dts/workspace-elements-catalog/index.d.ts +1 -0
- package/dist/dts/workspaces/types.d.ts +4 -0
- package/dist/index.browser.d.mts +131 -1
- package/dist/index.browser.d.ts +131 -1
- package/dist/index.browser.js +39 -3
- package/dist/index.browser.js.map +1 -1
- package/dist/index.browser.mjs +36 -4
- package/dist/index.browser.mjs.map +1 -1
- package/dist/index.node.d.mts +131 -1
- package/dist/index.node.d.ts +131 -1
- package/dist/index.node.js +39 -3
- package/dist/index.node.js.map +1 -1
- package/dist/index.node.mjs +36 -4
- package/dist/index.node.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.browser.js
CHANGED
|
@@ -4282,6 +4282,7 @@ const ConnectorAuthSpec = z.z.object({
|
|
|
4282
4282
|
.optional(),
|
|
4283
4283
|
});
|
|
4284
4284
|
const ConnectorAuthHandlerBase = ConnectorAuthSpec.extend({
|
|
4285
|
+
parametersSchema: DataSchema.optional(),
|
|
4285
4286
|
credentialsSchema: DataSchema.optional(),
|
|
4286
4287
|
customCredentialsSchema: DataSchema.optional(),
|
|
4287
4288
|
makeApiClient: ConnectorMethodImplementationBase.optional(),
|
|
@@ -11986,6 +11987,7 @@ const WorkspaceElementSpecs = {
|
|
|
11986
11987
|
namePlural: 'Apps',
|
|
11987
11988
|
hasKey: true,
|
|
11988
11989
|
hasPublicLayer: true,
|
|
11990
|
+
remoteRepositories: true,
|
|
11989
11991
|
relatedIntegrationLayerElements: [
|
|
11990
11992
|
exports.WorkspaceElementType.Connection,
|
|
11991
11993
|
exports.WorkspaceElementType.Action,
|
|
@@ -12040,6 +12042,7 @@ const WorkspaceElementSpecs = {
|
|
|
12040
12042
|
exportPropertiesSchema: ConnectorExportProperties,
|
|
12041
12043
|
hasKey: true,
|
|
12042
12044
|
hasPublicLayer: true,
|
|
12045
|
+
remoteRepositories: true,
|
|
12043
12046
|
},
|
|
12044
12047
|
[exports.WorkspaceElementType.Connection]: {
|
|
12045
12048
|
type: exports.WorkspaceElementType.Connection,
|
|
@@ -12115,6 +12118,7 @@ const WorkspaceElementSpecs = {
|
|
|
12115
12118
|
hasParentChildRelationship: true,
|
|
12116
12119
|
hasKey: true,
|
|
12117
12120
|
hasPublicLayer: true,
|
|
12121
|
+
remoteRepositories: true,
|
|
12118
12122
|
isAgentic: true,
|
|
12119
12123
|
agentName: exports.AgentName.ACTION_BUILDING,
|
|
12120
12124
|
statsKey: 'actions',
|
|
@@ -13256,6 +13260,7 @@ const WorkspaceSettingsSchema = z.object({
|
|
|
13256
13260
|
enableActionRunLogs: z.boolean().optional(),
|
|
13257
13261
|
disableSecretKeyAuth: z.boolean().optional(),
|
|
13258
13262
|
useMembraneUniverse: z.boolean().optional(),
|
|
13263
|
+
useRemoteRepository: z.boolean().optional(),
|
|
13259
13264
|
});
|
|
13260
13265
|
const EngineWorkspaceSettingsSchema = WorkspaceSettingsSchema;
|
|
13261
13266
|
const WorkspacePublicKey = z.object({
|
|
@@ -13584,6 +13589,7 @@ const OrgWorkspace = z.z.object({
|
|
|
13584
13589
|
featureFlags: z.z.array(z.z.string()).optional(),
|
|
13585
13590
|
logoUri: z.z.string().optional(),
|
|
13586
13591
|
defaultTenantAiCreditsRolling30DayLimit: z.z.number().min(0).nullable().optional(),
|
|
13592
|
+
membraneInstanceId: z.z.string().optional(),
|
|
13587
13593
|
});
|
|
13588
13594
|
const OrgWorkspaceUser = z.z.object({
|
|
13589
13595
|
id: z.z.string(),
|
|
@@ -13601,6 +13607,9 @@ const CreateOrgRequest = z.z.object({
|
|
|
13601
13607
|
referralSource: z.z.string().optional(),
|
|
13602
13608
|
builder: z.z.array(z.z.enum(['me', 'team'])).optional(),
|
|
13603
13609
|
stripeCustomerId: z.z.string().optional(),
|
|
13610
|
+
signupSource: z.z
|
|
13611
|
+
.enum(['web', 'membrane-cli', 'claude', 'cursor', 'chatgpt', 'warp', 'lovable', 'openclaw', 'other'])
|
|
13612
|
+
.optional(),
|
|
13604
13613
|
});
|
|
13605
13614
|
const UpdateOrgRequest = z.z.object({
|
|
13606
13615
|
name: z.z.string().min(1).optional(),
|
|
@@ -14371,7 +14380,7 @@ async function openIframe(uri, callbacks = {}, { mountTargetSelector } = {}) {
|
|
|
14371
14380
|
const iframe = document.createElement('iframe');
|
|
14372
14381
|
iframe.id = POPUP_ELEMENT_ID;
|
|
14373
14382
|
iframe.src = uri;
|
|
14374
|
-
iframe.setAttribute('allow', 'clipboard-write');
|
|
14383
|
+
iframe.setAttribute('allow', 'clipboard-write *');
|
|
14375
14384
|
document.body.classList.add(BODY_CLASS);
|
|
14376
14385
|
showIframeLoader();
|
|
14377
14386
|
appendToContainer(iframe);
|
|
@@ -14398,7 +14407,7 @@ async function openIframeWithPost(url, postData, callbacks = {}, { mountTargetSe
|
|
|
14398
14407
|
const iframe = document.createElement('iframe');
|
|
14399
14408
|
iframe.id = POPUP_ELEMENT_ID;
|
|
14400
14409
|
iframe.name = iframeName;
|
|
14401
|
-
iframe.setAttribute('allow', 'clipboard-write');
|
|
14410
|
+
iframe.setAttribute('allow', 'clipboard-write *');
|
|
14402
14411
|
const form = document.createElement('form');
|
|
14403
14412
|
form.method = 'POST';
|
|
14404
14413
|
form.action = url;
|
|
@@ -15795,13 +15804,36 @@ const MembraneInstance = z.z.object({
|
|
|
15795
15804
|
name: z.z.string(),
|
|
15796
15805
|
apiBaseUri: z.z.string(),
|
|
15797
15806
|
consoleBaseUri: z.z.string().optional(),
|
|
15807
|
+
orgId: z.z.string().optional(),
|
|
15798
15808
|
});
|
|
15799
15809
|
const CreateMembraneInstanceRequest = z.z.object({
|
|
15800
15810
|
name: z.z.string().min(1),
|
|
15801
15811
|
apiBaseUri: z.z.string().min(1),
|
|
15802
15812
|
consoleBaseUri: z.z.string().min(1).optional(),
|
|
15813
|
+
orgId: z.z.string().min(1).optional(),
|
|
15814
|
+
});
|
|
15815
|
+
const ListMembraneInstancesQuery = PaginationQuery.extend({
|
|
15816
|
+
orgId: z.z.string().optional(),
|
|
15817
|
+
});
|
|
15818
|
+
const ListMembraneInstancesResponse = createPaginationResponseSchema(MembraneInstance);
|
|
15819
|
+
|
|
15820
|
+
const OrgInstanceType = z.z.enum(['membrane-hosted', 'self-hosted']);
|
|
15821
|
+
const OrgInstanceWorkspace = z.z.object({
|
|
15822
|
+
workspaceId: z.z.string(),
|
|
15823
|
+
workspaceName: z.z.string(),
|
|
15824
|
+
activeTenants: z.z.number().optional(),
|
|
15825
|
+
billableTenants: z.z.number().optional(),
|
|
15826
|
+
});
|
|
15827
|
+
const OrgInstance = z.z.object({
|
|
15828
|
+
id: z.z.string(),
|
|
15829
|
+
name: z.z.string(),
|
|
15830
|
+
type: OrgInstanceType,
|
|
15831
|
+
apiBaseUri: z.z.string(),
|
|
15832
|
+
consoleBaseUri: z.z.string().optional(),
|
|
15833
|
+
engineVersion: z.z.string().optional(),
|
|
15834
|
+
lastReportedAt: z.z.string().optional(),
|
|
15835
|
+
workspaces: z.z.array(OrgInstanceWorkspace),
|
|
15803
15836
|
});
|
|
15804
|
-
const ListMembraneInstancesQuery = PaginationQuery;
|
|
15805
15837
|
|
|
15806
15838
|
const API_VERSIONS = {
|
|
15807
15839
|
LEGACY: 'legacy',
|
|
@@ -16724,6 +16756,7 @@ exports.ListExternalEventSubscriptionsQuery = ListExternalEventSubscriptionsQuer
|
|
|
16724
16756
|
exports.ListFlowInstancesForConnectionQuery = ListFlowInstancesForConnectionQuery;
|
|
16725
16757
|
exports.ListIncomingWebhooksQuery = ListIncomingWebhooksQuery;
|
|
16726
16758
|
exports.ListMembraneInstancesQuery = ListMembraneInstancesQuery;
|
|
16759
|
+
exports.ListMembraneInstancesResponse = ListMembraneInstancesResponse;
|
|
16727
16760
|
exports.ListPublicConnectorsQuery = ListPublicConnectorsQuery;
|
|
16728
16761
|
exports.ListPublicPackagesQuery = ListPublicPackagesQuery;
|
|
16729
16762
|
exports.MEMBRANE_CLI_CLIENT_ID = MEMBRANE_CLI_CLIENT_ID;
|
|
@@ -16754,6 +16787,9 @@ exports.OperationMappingFunction = OperationMappingFunction;
|
|
|
16754
16787
|
exports.OperationMappingSchema = OperationMappingSchema;
|
|
16755
16788
|
exports.Or = Or;
|
|
16756
16789
|
exports.Org = Org;
|
|
16790
|
+
exports.OrgInstance = OrgInstance;
|
|
16791
|
+
exports.OrgInstanceType = OrgInstanceType;
|
|
16792
|
+
exports.OrgInstanceWorkspace = OrgInstanceWorkspace;
|
|
16757
16793
|
exports.OrgInvitation = OrgInvitation;
|
|
16758
16794
|
exports.OrgLimits = OrgLimits;
|
|
16759
16795
|
exports.OrgWorkspace = OrgWorkspace;
|