@membranehq/sdk 0.17.1 → 0.17.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 +2 -1
- package/dist/bundle.js +4 -2
- package/dist/bundle.js.map +1 -1
- package/dist/dts/client-tokens/types.d.ts +21 -2
- package/dist/dts/oauth/types.d.ts +2 -2
- package/dist/dts/workspace-elements/api/connected-products-api.d.ts +83 -0
- package/dist/dts/workspace-elements/api/index.d.ts +1 -0
- package/dist/dts/workspace-elements/base/connected-products/index.d.ts +58 -0
- package/dist/dts/workspace-elements/base/connection-requests/index.d.ts +2 -0
- package/dist/dts/workspace-elements/base/index.d.ts +1 -0
- package/dist/dts/workspace-elements/types.d.ts +2 -1
- package/dist/dts/workspaces/compare.d.ts +7 -0
- package/dist/index.browser.d.mts +177 -7
- package/dist/index.browser.d.ts +177 -7
- package/dist/index.browser.js +128 -21
- package/dist/index.browser.js.map +1 -1
- package/dist/index.browser.mjs +99 -22
- package/dist/index.browser.mjs.map +1 -1
- package/dist/index.node.d.mts +177 -7
- package/dist/index.node.d.ts +177 -7
- package/dist/index.node.js +110 -23
- package/dist/index.node.js.map +1 -1
- package/dist/index.node.mjs +99 -23
- package/dist/index.node.mjs.map +1 -1
- package/package.json +2 -1
package/dist/bundle.d.ts
CHANGED
|
@@ -119,7 +119,8 @@ declare enum WorkspaceElementType {
|
|
|
119
119
|
ExternalEventLogRecord = "external-event-log-record",
|
|
120
120
|
ExternalEventPull = "external-event-pull",
|
|
121
121
|
Screen = "screen",
|
|
122
|
-
ActionRunLogRecord = "action-run-log-record"
|
|
122
|
+
ActionRunLogRecord = "action-run-log-record",
|
|
123
|
+
ConnectedProduct = "connected-product"
|
|
123
124
|
}
|
|
124
125
|
declare enum WorkspaceElementState {
|
|
125
126
|
CONFIGURATION_ERROR = "CONFIGURATION_ERROR",
|
package/dist/bundle.js
CHANGED
|
@@ -22161,6 +22161,7 @@
|
|
|
22161
22161
|
WorkspaceElementType["ExternalEventPull"] = "external-event-pull";
|
|
22162
22162
|
WorkspaceElementType["Screen"] = "screen";
|
|
22163
22163
|
WorkspaceElementType["ActionRunLogRecord"] = "action-run-log-record";
|
|
22164
|
+
WorkspaceElementType["ConnectedProduct"] = "connected-product";
|
|
22164
22165
|
})(WorkspaceElementType || (WorkspaceElementType = {}));
|
|
22165
22166
|
var WorkspaceEventType;
|
|
22166
22167
|
(function (WorkspaceEventType) {
|
|
@@ -22920,6 +22921,7 @@
|
|
|
22920
22921
|
const { stopSSE } = createSSEListener({
|
|
22921
22922
|
apiUri: apiUri,
|
|
22922
22923
|
requestId,
|
|
22924
|
+
token,
|
|
22923
22925
|
handler: eventHandler,
|
|
22924
22926
|
});
|
|
22925
22927
|
function cleanup() {
|
|
@@ -23034,8 +23036,8 @@
|
|
|
23034
23036
|
},
|
|
23035
23037
|
};
|
|
23036
23038
|
};
|
|
23037
|
-
const createSSEListener = ({ apiUri, requestId, handler, }) => {
|
|
23038
|
-
const sseUrl = urljoin(apiUri, '/sse/connection-events', requestId)
|
|
23039
|
+
const createSSEListener = ({ apiUri, requestId, token, handler, }) => {
|
|
23040
|
+
const sseUrl = urljoin(apiUri, '/sse/connection-events', requestId) + `?token=${encodeURIComponent(token)}`;
|
|
23039
23041
|
let eventSource = null;
|
|
23040
23042
|
const closeSseConnection = () => {
|
|
23041
23043
|
eventSource === null || eventSource === void 0 ? void 0 : eventSource.close();
|