@membranehq/sdk 0.22.0 → 0.22.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.
- package/dist/bundle.d.ts +14 -0
- package/dist/bundle.js +3 -0
- package/dist/bundle.js.map +1 -1
- package/dist/dts/accessors/connections-accessors.d.ts +1 -0
- package/dist/dts/accessors/integrations-accessors.d.ts +1 -0
- package/dist/dts/orgs/types.d.ts +10 -0
- package/dist/dts/workspace-elements/api/action-run-log-records-api.d.ts +2 -0
- package/dist/dts/workspace-elements/api/actions-api.d.ts +2 -0
- package/dist/dts/workspace-elements/api/app-data-schema-instances-api.d.ts +1 -0
- package/dist/dts/workspace-elements/api/app-event-log-records-api.d.ts +1 -0
- package/dist/dts/workspace-elements/api/app-event-subscriptions-api.d.ts +1 -0
- package/dist/dts/workspace-elements/api/connections-api.d.ts +3 -0
- package/dist/dts/workspace-elements/api/customers-api.d.ts +4 -0
- 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 +2 -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/field-mappings-api.d.ts +2 -0
- package/dist/dts/workspace-elements/api/flow-runs-api.d.ts +2 -0
- package/dist/dts/workspace-elements/api/flows-api.d.ts +2 -0
- package/dist/dts/workspace-elements/api/incoming-webhooks-api.d.ts +1 -0
- package/dist/dts/workspace-elements/base/customers/index.d.ts +1 -0
- package/dist/index.browser.d.mts +41 -0
- package/dist/index.browser.d.ts +41 -0
- package/dist/index.browser.js +10 -2
- package/dist/index.browser.js.map +1 -1
- package/dist/index.browser.mjs +10 -2
- package/dist/index.browser.mjs.map +1 -1
- package/dist/index.node.d.mts +41 -0
- package/dist/index.node.d.ts +41 -0
- package/dist/index.node.js +10 -2
- package/dist/index.node.js.map +1 -1
- package/dist/index.node.mjs +10 -2
- package/dist/index.node.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.browser.mjs
CHANGED
|
@@ -10003,6 +10003,7 @@ const BaseCustomer = z.object({
|
|
|
10003
10003
|
isTest: z.boolean().optional(),
|
|
10004
10004
|
isBillable: z.boolean().optional(),
|
|
10005
10005
|
isActive: z.boolean().optional(),
|
|
10006
|
+
aiCreditsRolling30DayLimit: z.number().min(0).nullable().optional(),
|
|
10006
10007
|
createdAt: z.string().optional(),
|
|
10007
10008
|
archivedAt: z.string().optional(),
|
|
10008
10009
|
});
|
|
@@ -10857,12 +10858,14 @@ const CreateCustomerRequest = z.object({
|
|
|
10857
10858
|
internalId: z.string().optional(),
|
|
10858
10859
|
fields: z.any().optional(),
|
|
10859
10860
|
credentials: z.any().optional(),
|
|
10861
|
+
aiCreditsRolling30DayLimit: z.number().min(0).nullable().optional(),
|
|
10860
10862
|
});
|
|
10861
10863
|
const UpdateCustomerRequest = z.object({
|
|
10862
10864
|
name: z.string().optional(),
|
|
10863
10865
|
internalId: z.string().optional(),
|
|
10864
10866
|
fields: z.any().optional(),
|
|
10865
10867
|
credentials: z.any().optional(),
|
|
10868
|
+
aiCreditsRolling30DayLimit: z.number().min(0).nullable().optional(),
|
|
10866
10869
|
});
|
|
10867
10870
|
const FindCustomersQuery = z
|
|
10868
10871
|
.object({
|
|
@@ -13369,8 +13372,8 @@ function compareWorkspaceExports(baseExport, targetExport, options = { includeDe
|
|
|
13369
13372
|
changes[change.uuid] = { elementType: subject.type, path };
|
|
13370
13373
|
comparison[change.type].add(change.uuid);
|
|
13371
13374
|
if (options.includeDiff) {
|
|
13372
|
-
const baseYaml = base ? yaml.dump(base.element) : '';
|
|
13373
|
-
const targetYaml = target ? yaml.dump(target.element) : '';
|
|
13375
|
+
const baseYaml = base ? yaml.dump(base.element, { sortKeys: true }) : '';
|
|
13376
|
+
const targetYaml = target ? yaml.dump(target.element, { sortKeys: true }) : '';
|
|
13374
13377
|
diffs.push(createTwoFilesPatch(`a/${path}`, `b/${path}`, baseYaml, targetYaml));
|
|
13375
13378
|
}
|
|
13376
13379
|
}
|
|
@@ -13514,6 +13517,7 @@ const Org = z.object({
|
|
|
13514
13517
|
freeAiCredits: z.number().optional(),
|
|
13515
13518
|
paidAiCredits: z.number().optional(),
|
|
13516
13519
|
freeAiMonthlyCredits: z.number().nullable().optional(),
|
|
13520
|
+
defaultTenantAiCreditsRolling30DayLimit: z.number().min(0).nullable().optional(),
|
|
13517
13521
|
stripeCustomerId: z.string().optional(),
|
|
13518
13522
|
autoChargeEnabled: z.boolean().optional(),
|
|
13519
13523
|
autoChargeThreshold: z.number().optional(),
|
|
@@ -13557,6 +13561,7 @@ const OrgWorkspace = z.object({
|
|
|
13557
13561
|
trialEndDate: z.string().optional(),
|
|
13558
13562
|
featureFlags: z.array(z.string()).optional(),
|
|
13559
13563
|
logoUri: z.string().optional(),
|
|
13564
|
+
defaultTenantAiCreditsRolling30DayLimit: z.number().min(0).nullable().optional(),
|
|
13560
13565
|
});
|
|
13561
13566
|
const OrgWorkspaceUser = z.object({
|
|
13562
13567
|
id: z.string(),
|
|
@@ -13578,6 +13583,7 @@ const CreateOrgRequest = z.object({
|
|
|
13578
13583
|
const UpdateOrgRequest = z.object({
|
|
13579
13584
|
name: z.string().min(1).optional(),
|
|
13580
13585
|
domains: z.array(z.string()).optional(),
|
|
13586
|
+
defaultTenantAiCreditsRolling30DayLimit: z.number().min(0).nullable().optional(),
|
|
13581
13587
|
});
|
|
13582
13588
|
const BaseOrgUser = z.object({
|
|
13583
13589
|
id: z.string(),
|
|
@@ -14343,6 +14349,7 @@ async function openIframe(uri, callbacks = {}, { mountTargetSelector } = {}) {
|
|
|
14343
14349
|
const iframe = document.createElement('iframe');
|
|
14344
14350
|
iframe.id = POPUP_ELEMENT_ID;
|
|
14345
14351
|
iframe.src = uri;
|
|
14352
|
+
iframe.setAttribute('allow', 'clipboard-write');
|
|
14346
14353
|
document.body.classList.add(BODY_CLASS);
|
|
14347
14354
|
showIframeLoader();
|
|
14348
14355
|
appendToContainer(iframe);
|
|
@@ -14369,6 +14376,7 @@ async function openIframeWithPost(url, postData, callbacks = {}, { mountTargetSe
|
|
|
14369
14376
|
const iframe = document.createElement('iframe');
|
|
14370
14377
|
iframe.id = POPUP_ELEMENT_ID;
|
|
14371
14378
|
iframe.name = iframeName;
|
|
14379
|
+
iframe.setAttribute('allow', 'clipboard-write');
|
|
14372
14380
|
const form = document.createElement('form');
|
|
14373
14381
|
form.method = 'POST';
|
|
14374
14382
|
form.action = url;
|