@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 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();