@membranehq/sdk 0.26.1 → 0.27.1

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.
@@ -1,3 +1,4 @@
1
+ export declare const API_CONTRACT_VERSION = "1.9";
1
2
  export declare const API_VERSIONS: {
2
3
  readonly LEGACY: "legacy";
3
4
  readonly '2025-10-21': "2025-10-21";
@@ -4,7 +4,8 @@ export declare enum AsyncRequestStatus {
4
4
  PENDING = "pending",
5
5
  ACTIVE = "active",
6
6
  COMPLETED = "completed",
7
- FAILED = "failed"
7
+ FAILED = "failed",
8
+ CANCELLED = "cancelled"
8
9
  }
9
10
  export type AsyncRequestStatusResponse<T = Record<string, any>> = {
10
11
  id: string;
@@ -12,5 +12,6 @@ export declare const OAuthTokenResponse: z.ZodObject<{
12
12
  refresh_token: z.ZodOptional<z.ZodString>;
13
13
  default_workspace_key: z.ZodOptional<z.ZodString>;
14
14
  default_tenant_key: z.ZodOptional<z.ZodString>;
15
+ email: z.ZodOptional<z.ZodString>;
15
16
  }, z.core.$strip>;
16
17
  export type OAuthTokenResponse = z.infer<typeof OAuthTokenResponse>;
@@ -7,9 +7,10 @@ export declare enum WebhookTypeEnum {
7
7
  TASK_ACTIVITY_CREATED = "task-activity-created",
8
8
  CONNECTOR_VERSION_PUBLISHED = "connector-version-published",
9
9
  AGENT_SESSION_FINISHED = "agent-session-finished",
10
- SEND_ALERT_EMAIL = "send-alert-email"
10
+ SEND_ALERT_EMAIL = "send-alert-email",
11
+ PUBLIC_PACKAGE_ACTION_RUN_FAILED = "public-package-action-run-failed"
11
12
  }
12
- export type WebhookType = WebhookTypeEnum.USER_INVITED_TO_ORG | WebhookTypeEnum.ORG_ACCESS_REQUESTED | WebhookTypeEnum.ORG_CREATED | WebhookTypeEnum.TASK_CREATED | WebhookTypeEnum.TASK_UPDATED | WebhookTypeEnum.TASK_ACTIVITY_CREATED | WebhookTypeEnum.CONNECTOR_VERSION_PUBLISHED | WebhookTypeEnum.AGENT_SESSION_FINISHED | WebhookTypeEnum.SEND_ALERT_EMAIL;
13
+ export type WebhookType = WebhookTypeEnum.USER_INVITED_TO_ORG | WebhookTypeEnum.ORG_ACCESS_REQUESTED | WebhookTypeEnum.ORG_CREATED | WebhookTypeEnum.TASK_CREATED | WebhookTypeEnum.TASK_UPDATED | WebhookTypeEnum.TASK_ACTIVITY_CREATED | WebhookTypeEnum.CONNECTOR_VERSION_PUBLISHED | WebhookTypeEnum.AGENT_SESSION_FINISHED | WebhookTypeEnum.SEND_ALERT_EMAIL | WebhookTypeEnum.PUBLIC_PACKAGE_ACTION_RUN_FAILED;
13
14
  export interface Webhook {
14
15
  type: WebhookType;
15
16
  url: string;
@@ -3,9 +3,7 @@ import { ErrorDataSchema } from '../../../errors';
3
3
  export declare const CONNECTION_REQUEST_SCREEN_PATH = "screens/connect";
4
4
  export declare const AGENTIC_CONNECTION_REQUEST_SCREEN_PATH = "screens/connections";
5
5
  export declare const CONNECTION_REQUEST_ID_PARAM = "connectionRequestId";
6
- export declare function getConnectionRequestUrl(baseUri: string, requestId: string, options?: {
7
- prompt?: string;
8
- }): string;
6
+ export declare function getConnectionRequestUrl(baseUri: string, requestId: string): string;
9
7
  export declare const CreateConnectionRequestPayload: z.ZodObject<{
10
8
  integrationId: z.ZodOptional<z.ZodString>;
11
9
  integrationKey: z.ZodOptional<z.ZodString>;
@@ -779,9 +779,7 @@ type BaseActionInstance = BaseAction;
779
779
  declare const CONNECTION_REQUEST_SCREEN_PATH = "screens/connect";
780
780
  declare const AGENTIC_CONNECTION_REQUEST_SCREEN_PATH = "screens/connections";
781
781
  declare const CONNECTION_REQUEST_ID_PARAM = "connectionRequestId";
782
- declare function getConnectionRequestUrl(baseUri: string, requestId: string, options?: {
783
- prompt?: string;
784
- }): string;
782
+ declare function getConnectionRequestUrl(baseUri: string, requestId: string): string;
785
783
  declare const CreateConnectionRequestPayload: z.ZodObject<{
786
784
  integrationId: z.ZodOptional<z.ZodString>;
787
785
  integrationKey: z.ZodOptional<z.ZodString>;
@@ -24211,9 +24209,10 @@ declare enum WebhookTypeEnum {
24211
24209
  TASK_ACTIVITY_CREATED = "task-activity-created",
24212
24210
  CONNECTOR_VERSION_PUBLISHED = "connector-version-published",
24213
24211
  AGENT_SESSION_FINISHED = "agent-session-finished",
24214
- SEND_ALERT_EMAIL = "send-alert-email"
24212
+ SEND_ALERT_EMAIL = "send-alert-email",
24213
+ PUBLIC_PACKAGE_ACTION_RUN_FAILED = "public-package-action-run-failed"
24215
24214
  }
24216
- type WebhookType = WebhookTypeEnum.USER_INVITED_TO_ORG | WebhookTypeEnum.ORG_ACCESS_REQUESTED | WebhookTypeEnum.ORG_CREATED | WebhookTypeEnum.TASK_CREATED | WebhookTypeEnum.TASK_UPDATED | WebhookTypeEnum.TASK_ACTIVITY_CREATED | WebhookTypeEnum.CONNECTOR_VERSION_PUBLISHED | WebhookTypeEnum.AGENT_SESSION_FINISHED | WebhookTypeEnum.SEND_ALERT_EMAIL;
24215
+ type WebhookType = WebhookTypeEnum.USER_INVITED_TO_ORG | WebhookTypeEnum.ORG_ACCESS_REQUESTED | WebhookTypeEnum.ORG_CREATED | WebhookTypeEnum.TASK_CREATED | WebhookTypeEnum.TASK_UPDATED | WebhookTypeEnum.TASK_ACTIVITY_CREATED | WebhookTypeEnum.CONNECTOR_VERSION_PUBLISHED | WebhookTypeEnum.AGENT_SESSION_FINISHED | WebhookTypeEnum.SEND_ALERT_EMAIL | WebhookTypeEnum.PUBLIC_PACKAGE_ACTION_RUN_FAILED;
24217
24216
  interface Webhook {
24218
24217
  type: WebhookType;
24219
24218
  url: string;
@@ -24716,7 +24715,8 @@ declare enum AsyncRequestStatus {
24716
24715
  PENDING = "pending",
24717
24716
  ACTIVE = "active",
24718
24717
  COMPLETED = "completed",
24719
- FAILED = "failed"
24718
+ FAILED = "failed",
24719
+ CANCELLED = "cancelled"
24720
24720
  }
24721
24721
  type AsyncRequestStatusResponse<T = Record<string, any>> = {
24722
24722
  id: string;
@@ -24858,6 +24858,7 @@ declare const OAuthTokenResponse: z.ZodObject<{
24858
24858
  refresh_token: z.ZodOptional<z.ZodString>;
24859
24859
  default_workspace_key: z.ZodOptional<z.ZodString>;
24860
24860
  default_tenant_key: z.ZodOptional<z.ZodString>;
24861
+ email: z.ZodOptional<z.ZodString>;
24861
24862
  }, z.core.$strip>;
24862
24863
  type OAuthTokenResponse = z.infer<typeof OAuthTokenResponse>;
24863
24864
 
@@ -779,9 +779,7 @@ type BaseActionInstance = BaseAction;
779
779
  declare const CONNECTION_REQUEST_SCREEN_PATH = "screens/connect";
780
780
  declare const AGENTIC_CONNECTION_REQUEST_SCREEN_PATH = "screens/connections";
781
781
  declare const CONNECTION_REQUEST_ID_PARAM = "connectionRequestId";
782
- declare function getConnectionRequestUrl(baseUri: string, requestId: string, options?: {
783
- prompt?: string;
784
- }): string;
782
+ declare function getConnectionRequestUrl(baseUri: string, requestId: string): string;
785
783
  declare const CreateConnectionRequestPayload: z.ZodObject<{
786
784
  integrationId: z.ZodOptional<z.ZodString>;
787
785
  integrationKey: z.ZodOptional<z.ZodString>;
@@ -24211,9 +24209,10 @@ declare enum WebhookTypeEnum {
24211
24209
  TASK_ACTIVITY_CREATED = "task-activity-created",
24212
24210
  CONNECTOR_VERSION_PUBLISHED = "connector-version-published",
24213
24211
  AGENT_SESSION_FINISHED = "agent-session-finished",
24214
- SEND_ALERT_EMAIL = "send-alert-email"
24212
+ SEND_ALERT_EMAIL = "send-alert-email",
24213
+ PUBLIC_PACKAGE_ACTION_RUN_FAILED = "public-package-action-run-failed"
24215
24214
  }
24216
- type WebhookType = WebhookTypeEnum.USER_INVITED_TO_ORG | WebhookTypeEnum.ORG_ACCESS_REQUESTED | WebhookTypeEnum.ORG_CREATED | WebhookTypeEnum.TASK_CREATED | WebhookTypeEnum.TASK_UPDATED | WebhookTypeEnum.TASK_ACTIVITY_CREATED | WebhookTypeEnum.CONNECTOR_VERSION_PUBLISHED | WebhookTypeEnum.AGENT_SESSION_FINISHED | WebhookTypeEnum.SEND_ALERT_EMAIL;
24215
+ type WebhookType = WebhookTypeEnum.USER_INVITED_TO_ORG | WebhookTypeEnum.ORG_ACCESS_REQUESTED | WebhookTypeEnum.ORG_CREATED | WebhookTypeEnum.TASK_CREATED | WebhookTypeEnum.TASK_UPDATED | WebhookTypeEnum.TASK_ACTIVITY_CREATED | WebhookTypeEnum.CONNECTOR_VERSION_PUBLISHED | WebhookTypeEnum.AGENT_SESSION_FINISHED | WebhookTypeEnum.SEND_ALERT_EMAIL | WebhookTypeEnum.PUBLIC_PACKAGE_ACTION_RUN_FAILED;
24217
24216
  interface Webhook {
24218
24217
  type: WebhookType;
24219
24218
  url: string;
@@ -24716,7 +24715,8 @@ declare enum AsyncRequestStatus {
24716
24715
  PENDING = "pending",
24717
24716
  ACTIVE = "active",
24718
24717
  COMPLETED = "completed",
24719
- FAILED = "failed"
24718
+ FAILED = "failed",
24719
+ CANCELLED = "cancelled"
24720
24720
  }
24721
24721
  type AsyncRequestStatusResponse<T = Record<string, any>> = {
24722
24722
  id: string;
@@ -24858,6 +24858,7 @@ declare const OAuthTokenResponse: z.ZodObject<{
24858
24858
  refresh_token: z.ZodOptional<z.ZodString>;
24859
24859
  default_workspace_key: z.ZodOptional<z.ZodString>;
24860
24860
  default_tenant_key: z.ZodOptional<z.ZodString>;
24861
+ email: z.ZodOptional<z.ZodString>;
24861
24862
  }, z.core.$strip>;
24862
24863
  type OAuthTokenResponse = z.infer<typeof OAuthTokenResponse>;
24863
24864
 
@@ -3987,9 +3987,8 @@ const BaseActionInstance = BaseAction;
3987
3987
  const CONNECTION_REQUEST_SCREEN_PATH = 'screens/connect';
3988
3988
  const AGENTIC_CONNECTION_REQUEST_SCREEN_PATH = 'screens/connections';
3989
3989
  const CONNECTION_REQUEST_ID_PARAM = 'connectionRequestId';
3990
- function getConnectionRequestUrl(baseUri, requestId, options) {
3991
- const screenPath = (options === null || options === void 0 ? void 0 : options.prompt) ? AGENTIC_CONNECTION_REQUEST_SCREEN_PATH : CONNECTION_REQUEST_SCREEN_PATH;
3992
- return `${baseUri}/${screenPath}?${CONNECTION_REQUEST_ID_PARAM}=${requestId}`;
3990
+ function getConnectionRequestUrl(baseUri, requestId) {
3991
+ return `${baseUri}/${AGENTIC_CONNECTION_REQUEST_SCREEN_PATH}?${CONNECTION_REQUEST_ID_PARAM}=${requestId}`;
3993
3992
  }
3994
3993
  const CreateConnectionRequestPayload = z.z.object({
3995
3994
  integrationId: z.z.string().optional(),
@@ -13851,6 +13850,7 @@ exports.WebhookTypeEnum = void 0;
13851
13850
  WebhookTypeEnum["CONNECTOR_VERSION_PUBLISHED"] = "connector-version-published";
13852
13851
  WebhookTypeEnum["AGENT_SESSION_FINISHED"] = "agent-session-finished";
13853
13852
  WebhookTypeEnum["SEND_ALERT_EMAIL"] = "send-alert-email";
13853
+ WebhookTypeEnum["PUBLIC_PACKAGE_ACTION_RUN_FAILED"] = "public-package-action-run-failed";
13854
13854
  })(exports.WebhookTypeEnum || (exports.WebhookTypeEnum = {}));
13855
13855
 
13856
13856
  const IntegrationSpecificElementSelector = z.object({
@@ -15856,6 +15856,7 @@ exports.AsyncRequestStatus = void 0;
15856
15856
  AsyncRequestStatus["ACTIVE"] = "active";
15857
15857
  AsyncRequestStatus["COMPLETED"] = "completed";
15858
15858
  AsyncRequestStatus["FAILED"] = "failed";
15859
+ AsyncRequestStatus["CANCELLED"] = "cancelled";
15859
15860
  })(exports.AsyncRequestStatus || (exports.AsyncRequestStatus = {}));
15860
15861
  const AsyncRequestTriggerResponse = z.z.object({
15861
15862
  jobId: z.z.string(),
@@ -15938,6 +15939,7 @@ const OAuthTokenResponse = z.z.object({
15938
15939
  refresh_token: z.z.string().optional(),
15939
15940
  default_workspace_key: z.z.string().optional(),
15940
15941
  default_tenant_key: z.z.string().optional(),
15942
+ email: z.z.string().optional(),
15941
15943
  });
15942
15944
 
15943
15945
  const CONSOLE_ACCOUNT_API_TOKEN_PATH = 'settings/account/api-token';