@membranehq/sdk 0.9.4 → 0.9.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/LICENSE +1 -1
- package/README.md +3 -3
- package/dist/bundle.d.ts +1 -0
- package/dist/dts/agent/session.d.ts +1 -0
- package/dist/dts/orgs/types.d.ts +3 -3
- 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 +1 -0
- package/dist/dts/workspace-elements/api/external-event-subscriptions-api.d.ts +11 -0
- package/dist/dts/workspace-elements/base/external-event-subscriptions/types.d.ts +1 -0
- package/dist/dts/workspaces/compare.d.ts +5 -1
- package/dist/index.browser.d.mts +27 -6
- package/dist/index.browser.d.ts +27 -6
- package/dist/index.browser.js +18 -4
- package/dist/index.browser.js.map +1 -1
- package/dist/index.browser.mjs +18 -5
- package/dist/index.browser.mjs.map +1 -1
- package/dist/index.node.d.mts +27 -6
- package/dist/index.node.d.ts +27 -6
- package/dist/index.node.js +18 -4
- package/dist/index.node.js.map +1 -1
- package/dist/index.node.mjs +18 -5
- package/dist/index.node.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.browser.js
CHANGED
|
@@ -9346,6 +9346,7 @@ const BaseExternalEventSubscription = z.z.object({
|
|
|
9346
9346
|
nextRefreshTimestamp: z.z.number().optional(),
|
|
9347
9347
|
globalWebhookKey: z.z.string().optional(),
|
|
9348
9348
|
globalWebhookEventSelector: z.z.string().optional(),
|
|
9349
|
+
webhookUri: z.z.string().optional(),
|
|
9349
9350
|
});
|
|
9350
9351
|
|
|
9351
9352
|
exports.ExternalEventLogStatus = void 0;
|
|
@@ -9761,10 +9762,12 @@ const AppDataSchemaInstanceApiResponse = BaseAppDataSchemaInstance.extend({
|
|
|
9761
9762
|
});
|
|
9762
9763
|
|
|
9763
9764
|
const ListExternalEventLogRecordsQuery = CommonListElementsQuery.extend({
|
|
9765
|
+
userId: z.z.string().optional(),
|
|
9764
9766
|
connectionId: z.z.string().optional(),
|
|
9765
9767
|
integrationId: z.z.string().optional(),
|
|
9766
9768
|
externalEventSubscriptionId: z.z.string().optional(),
|
|
9767
9769
|
status: z.z.enum(exports.ExternalEventLogStatus).optional(),
|
|
9770
|
+
startedAfter: z.z.string().optional(),
|
|
9768
9771
|
});
|
|
9769
9772
|
const ExternalEventLogRecordApiResponse = BaseExternalEventLogRecord.extend({
|
|
9770
9773
|
user: BaseCustomer.optional(),
|
|
@@ -9786,6 +9789,11 @@ const ExternalEventPullApiResponse = BaseExternalEventPull.extend({
|
|
|
9786
9789
|
connection: BaseConnection.optional(),
|
|
9787
9790
|
});
|
|
9788
9791
|
|
|
9792
|
+
const ListExternalEventSubscriptionsQuery = CommonListElementsQuery.extend({
|
|
9793
|
+
userId: z.z.string().optional(),
|
|
9794
|
+
connectionId: z.z.string().optional(),
|
|
9795
|
+
integrationId: z.z.string().optional(),
|
|
9796
|
+
});
|
|
9789
9797
|
const ExternalEventSubscriptionApiResponse = BaseExternalEventSubscription.extend({
|
|
9790
9798
|
user: BaseCustomer.optional(),
|
|
9791
9799
|
connection: BaseConnection.optional(),
|
|
@@ -10777,11 +10785,12 @@ exports.WorkspaceElementChangeType = void 0;
|
|
|
10777
10785
|
})(exports.WorkspaceElementChangeType || (exports.WorkspaceElementChangeType = {}));
|
|
10778
10786
|
function compareWorkspaceExports(baseExport, targetExport) {
|
|
10779
10787
|
const changes = [];
|
|
10780
|
-
const
|
|
10788
|
+
const comparison = {
|
|
10781
10789
|
[exports.WorkspaceElementChangeType.CREATE]: new Set(),
|
|
10782
10790
|
[exports.WorkspaceElementChangeType.UPDATE]: new Set(),
|
|
10783
10791
|
[exports.WorkspaceElementChangeType.DELETE]: new Set(),
|
|
10784
10792
|
};
|
|
10793
|
+
const sourceUuidByTargetUuid = new Map();
|
|
10785
10794
|
const integrationMap = buildIntegrationsMap([
|
|
10786
10795
|
...(baseExport[exports.WorkspaceElementType.Integration] || []),
|
|
10787
10796
|
...(targetExport[exports.WorkspaceElementType.Integration] || []),
|
|
@@ -10810,15 +10819,18 @@ function compareWorkspaceExports(baseExport, targetExport) {
|
|
|
10810
10819
|
for (const selector of allSelectors) {
|
|
10811
10820
|
const baseElement = baseMap.get(selector);
|
|
10812
10821
|
const targetElement = targetMap.get(selector);
|
|
10822
|
+
if (baseElement && targetElement && baseElement.uuid !== targetElement.uuid) {
|
|
10823
|
+
sourceUuidByTargetUuid.set(targetElement.uuid, baseElement.uuid);
|
|
10824
|
+
}
|
|
10813
10825
|
const change = compareElementExports(baseElement, targetElement);
|
|
10814
10826
|
if (change) {
|
|
10815
10827
|
changes.push(change);
|
|
10816
10828
|
}
|
|
10817
10829
|
}
|
|
10818
10830
|
changes.forEach((change) => {
|
|
10819
|
-
|
|
10831
|
+
comparison[change.type].add(change.uuid);
|
|
10820
10832
|
});
|
|
10821
|
-
return
|
|
10833
|
+
return { comparison, sourceUuidByTargetUuid };
|
|
10822
10834
|
}
|
|
10823
10835
|
function compareElementExports(baseElement, targetElement) {
|
|
10824
10836
|
if (baseElement && !targetElement) {
|
|
@@ -10941,7 +10953,7 @@ const OrgSchema = z.z.object({
|
|
|
10941
10953
|
todayUsagePercent: z.z.number().optional(),
|
|
10942
10954
|
domains: z.z.array(z.z.string()).optional(),
|
|
10943
10955
|
featureFlags: z.z.array(z.z.string()).optional(),
|
|
10944
|
-
|
|
10956
|
+
freeAiCredits: z.z.number().optional(),
|
|
10945
10957
|
paidAiCredits: z.z.number().optional(),
|
|
10946
10958
|
stripeCustomerId: z.z.string().optional(),
|
|
10947
10959
|
autoChargeEnabled: z.z.boolean().optional(),
|
|
@@ -12732,6 +12744,7 @@ const AgentSession = z.z.object({
|
|
|
12732
12744
|
sessionFilesZipUri: z.z.string().url().optional(),
|
|
12733
12745
|
logs: z.z.array(z.z.any()).optional(),
|
|
12734
12746
|
usage: z.z.number().optional(),
|
|
12747
|
+
summary: z.z.string().optional(),
|
|
12735
12748
|
});
|
|
12736
12749
|
const CreateAgentSession = z.z.object({
|
|
12737
12750
|
workspaceElementType: z.z.enum(exports.WorkspaceElementType).optional(),
|
|
@@ -13352,6 +13365,7 @@ exports.ListActionInstancesForConnectionQuery = ListActionInstancesForConnection
|
|
|
13352
13365
|
exports.ListDataSourceInstancesForConnectionQuery = ListDataSourceInstancesForConnectionQuery;
|
|
13353
13366
|
exports.ListExternalEventLogRecordsQuery = ListExternalEventLogRecordsQuery;
|
|
13354
13367
|
exports.ListExternalEventPullsQuery = ListExternalEventPullsQuery;
|
|
13368
|
+
exports.ListExternalEventSubscriptionsQuery = ListExternalEventSubscriptionsQuery;
|
|
13355
13369
|
exports.ListFlowInstancesForConnectionQuery = ListFlowInstancesForConnectionQuery;
|
|
13356
13370
|
exports.MEMBRANE_ELEMENT_CONFIG_FILE_NAME = MEMBRANE_ELEMENT_CONFIG_FILE_NAME;
|
|
13357
13371
|
exports.MIN_FULL_SYNC_INTERVAL_SECONDS = MIN_FULL_SYNC_INTERVAL_SECONDS;
|