@membranehq/sdk 0.10.10 → 0.11.0

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
@@ -3401,7 +3401,6 @@ declare const CreateIntegrationRequest: z.ZodObject<{
3401
3401
  name: z.ZodOptional<z.ZodString>;
3402
3402
  description: z.ZodOptional<z.ZodString>;
3403
3403
  meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3404
- baseUri: z.ZodOptional<z.ZodString>;
3405
3404
  logoUri: z.ZodOptional<z.ZodString>;
3406
3405
  appUuid: z.ZodOptional<z.ZodString>;
3407
3406
  oAuthCallbackUri: z.ZodOptional<z.ZodUnion<[z.ZodURL, z.ZodLiteral<"">]>>;
@@ -3417,7 +3416,6 @@ declare const UpdateIntegrationRequest: z.ZodObject<{
3417
3416
  name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
3418
3417
  description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
3419
3418
  meta: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
3420
- baseUri: z.ZodOptional<z.ZodOptional<z.ZodString>>;
3421
3419
  logoUri: z.ZodOptional<z.ZodOptional<z.ZodString>>;
3422
3420
  appUuid: z.ZodOptional<z.ZodOptional<z.ZodString>>;
3423
3421
  oAuthCallbackUri: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodURL, z.ZodLiteral<"">]>>>;
@@ -3519,7 +3517,6 @@ declare const IntegrationApiResponse: z.ZodObject<{
3519
3517
  helpUri: z.ZodOptional<z.ZodString>;
3520
3518
  }, z.core.$strip>>;
3521
3519
  }, z.core.$strip>>>;
3522
- parametersSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
3523
3520
  }, z.core.$strip>;
3524
3521
  type IntegrationApiResponse = z.infer<typeof IntegrationApiResponse>;
3525
3522
 
@@ -5889,8 +5886,9 @@ declare class IntegrationAccessor extends ElementAccessor<IntegrationApiResponse
5889
5886
  getConnectorSpec(): Promise<ConnectionSpec>;
5890
5887
  open({ onClose }?: OpenIntegrationUIIntegrationConfigurationOptions): Promise<void>;
5891
5888
  openNewConnection({ allowMultipleConnections, name, connectorParameters, }?: OpenNewConnectionOptions): Promise<ConnectionApiResponse | null>;
5892
- connect({ name, parameters, connectorParameters, authOptionKey, allowMultipleConnections, redirectUri, sameWindow, onPopupClosed, }?: {
5889
+ connect({ name, input, parameters, connectorParameters, authOptionKey, allowMultipleConnections, redirectUri, sameWindow, onPopupClosed, }?: {
5893
5890
  name?: string;
5891
+ input?: any;
5894
5892
  parameters?: any;
5895
5893
  connectorParameters?: any;
5896
5894
  authOptionKey?: string;
package/dist/bundle.js CHANGED
@@ -20400,7 +20400,7 @@
20400
20400
  return createOrUpdateConnection({
20401
20401
  connectionId: connection.id,
20402
20402
  connectorSpec,
20403
- parameters,
20403
+ input: parameters,
20404
20404
  authOptionKey,
20405
20405
  connectorParameters,
20406
20406
  apiUri: this.client.apiUri,
@@ -20494,7 +20494,7 @@
20494
20494
  }
20495
20495
  }
20496
20496
  async function createOrUpdateConnection(options) {
20497
- const { connectionId, integrationId, connectorId, connectorVersion, name, parameters, connectorParameters, allowMultipleConnections, authOptionKey, connectorSpec, apiUri, token, redirectUri, onPopupClosed, } = options !== null && options !== void 0 ? options : {};
20497
+ const { connectionId, integrationId, connectorId, connectorVersion, name, input, connectorParameters, allowMultipleConnections, authOptionKey, connectorSpec, apiUri, token, redirectUri, onPopupClosed, } = options !== null && options !== void 0 ? options : {};
20498
20498
  const connectionType = getConnectionType({
20499
20499
  connectorSpec,
20500
20500
  authOptionKey,
@@ -20515,7 +20515,7 @@
20515
20515
  const requestId = simpleUniqueId() + simpleUniqueId();
20516
20516
  const payload = {
20517
20517
  token,
20518
- connectionParameters: parameters,
20518
+ input,
20519
20519
  connectorParameters,
20520
20520
  connectorId,
20521
20521
  connectorVersion,
@@ -20815,14 +20815,14 @@
20815
20815
  });
20816
20816
  });
20817
20817
  }
20818
- async connect({ name, parameters, connectorParameters, authOptionKey, allowMultipleConnections, redirectUri, sameWindow, onPopupClosed, } = {}) {
20818
+ async connect({ name, input, parameters, connectorParameters, authOptionKey, allowMultipleConnections, redirectUri, sameWindow, onPopupClosed, } = {}) {
20819
20819
  const integration = await this.get();
20820
20820
  const connectorSpec = await this.getConnectorSpec();
20821
20821
  return createOrUpdateConnection({
20822
20822
  integrationId: integration.id,
20823
20823
  connectorSpec,
20824
20824
  name,
20825
- parameters,
20825
+ input: input !== null && input !== void 0 ? input : parameters,
20826
20826
  connectorParameters,
20827
20827
  authOptionKey,
20828
20828
  allowMultipleConnections,