@membranehq/sdk 0.4.0 → 0.5.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.
Files changed (82) hide show
  1. package/dist/bundle.d.ts +16299 -1303
  2. package/dist/bundle.js +3980 -3701
  3. package/dist/bundle.js.map +1 -1
  4. package/dist/dts/accessors/connections-accessors.d.ts +78 -1
  5. package/dist/dts/accessors/integrations-accessors.d.ts +78 -1
  6. package/dist/dts/api-client.d.ts +1 -0
  7. package/dist/dts/client.d.ts +1 -0
  8. package/dist/dts/data-schema/index.d.ts +0 -1
  9. package/dist/dts/data-schema/types.d.ts +4 -3
  10. package/dist/dts/entity-repository.d.ts +88 -20
  11. package/dist/dts/formulas/dataSchemaRef.d.ts +2 -2
  12. package/dist/dts/http-requests.d.ts +20 -6
  13. package/dist/dts/iframe.d.ts +12 -4
  14. package/dist/dts/index.d.ts +2 -1
  15. package/dist/dts/sse/index.d.ts +1 -0
  16. package/dist/dts/sse/workspace-elements.d.ts +9 -0
  17. package/dist/dts/workspace-elements/api/action-instances-api.d.ts +269 -8
  18. package/dist/dts/workspace-elements/api/action-run-log-records-api.d.ts +529 -10
  19. package/dist/dts/workspace-elements/api/actions-api.d.ts +1010 -45
  20. package/dist/dts/workspace-elements/api/app-data-schema-instances-api.d.ts +203 -8
  21. package/dist/dts/workspace-elements/api/app-data-schemas-api.d.ts +49 -3
  22. package/dist/dts/workspace-elements/api/app-event-log-records-api.d.ts +376 -0
  23. package/dist/dts/workspace-elements/api/app-event-subscriptions-api.d.ts +293 -8
  24. package/dist/dts/workspace-elements/api/app-event-types-api.d.ts +88 -3
  25. package/dist/dts/workspace-elements/api/connections-api.d.ts +993 -42
  26. package/dist/dts/workspace-elements/api/customers-api.d.ts +92 -16
  27. package/dist/dts/workspace-elements/api/data-link-table-instances-api.d.ts +541 -12
  28. package/dist/dts/workspace-elements/api/data-link-tables-api.d.ts +43 -2
  29. package/dist/dts/workspace-elements/api/data-source-instances-api.d.ts +1590 -12
  30. package/dist/dts/workspace-elements/api/data-sources-api.d.ts +1113 -78
  31. package/dist/dts/workspace-elements/api/external-event-log-records-api.d.ts +696 -19
  32. package/dist/dts/workspace-elements/api/external-event-pulls-api.d.ts +702 -19
  33. package/dist/dts/workspace-elements/api/external-event-subscriptions-api.d.ts +559 -10
  34. package/dist/dts/workspace-elements/api/external-events-api.d.ts +582 -6
  35. package/dist/dts/workspace-elements/api/field-mapping-instances-api.d.ts +2786 -14
  36. package/dist/dts/workspace-elements/api/field-mappings-api.d.ts +885 -7
  37. package/dist/dts/workspace-elements/api/flow-runs-api.d.ts +1652 -47
  38. package/dist/dts/workspace-elements/api/flows-api.d.ts +3202 -52
  39. package/dist/dts/workspace-elements/api/index.d.ts +1 -1
  40. package/dist/dts/workspace-elements/api/integrations-api.d.ts +339 -26
  41. package/dist/dts/workspace-elements/api/scenarios-api.d.ts +523 -35
  42. package/dist/dts/workspace-elements/api/screens-api.d.ts +35 -15
  43. package/dist/dts/workspace-elements/base/action-instances/types.d.ts +78 -15
  44. package/dist/dts/workspace-elements/base/action-run-log-records/types.d.ts +37 -12
  45. package/dist/dts/workspace-elements/base/actions/types.d.ts +78 -18
  46. package/dist/dts/workspace-elements/base/app-data-schema-instances/types.d.ts +59 -7
  47. package/dist/dts/workspace-elements/base/app-data-schemas/types.d.ts +49 -7
  48. package/dist/dts/workspace-elements/base/app-event-subscriptions/types.d.ts +92 -9
  49. package/dist/dts/workspace-elements/base/app-event-types/types.d.ts +84 -7
  50. package/dist/dts/workspace-elements/base/connections/types.d.ts +82 -20
  51. package/dist/dts/workspace-elements/base/connectors/types.d.ts +14 -2
  52. package/dist/dts/workspace-elements/base/customers/index.d.ts +32 -6
  53. package/dist/dts/workspace-elements/base/data-collections/schemas.d.ts +93 -92
  54. package/dist/dts/workspace-elements/base/data-link-table-instances/types.d.ts +78 -11
  55. package/dist/dts/workspace-elements/base/data-link-tables/types.d.ts +43 -4
  56. package/dist/dts/workspace-elements/base/data-source-instances/types.d.ts +1048 -19
  57. package/dist/dts/workspace-elements/base/data-sources/types.d.ts +97 -22
  58. package/dist/dts/workspace-elements/base/external-event-log-records/types.d.ts +31 -8
  59. package/dist/dts/workspace-elements/base/external-event-pulls/types.d.ts +35 -8
  60. package/dist/dts/workspace-elements/base/external-event-subscriptions/types.d.ts +197 -24
  61. package/dist/dts/workspace-elements/base/external-events/types.d.ts +145 -5
  62. package/dist/dts/workspace-elements/base/field-mapping-instances/types.d.ts +92 -16
  63. package/dist/dts/workspace-elements/base/field-mappings/types.d.ts +105 -14
  64. package/dist/dts/workspace-elements/base/flow-instances/schemas.d.ts +43 -43
  65. package/dist/dts/workspace-elements/base/flow-instances/types.d.ts +170 -24
  66. package/dist/dts/workspace-elements/base/flow-runs/flow-node-runs.d.ts +20 -20
  67. package/dist/dts/workspace-elements/base/flow-runs/types.d.ts +127 -19
  68. package/dist/dts/workspace-elements/base/flows/types.d.ts +234 -26
  69. package/dist/dts/workspace-elements/base/integrations/types.d.ts +988 -25
  70. package/dist/dts/workspace-elements/base/scenarios/types.d.ts +740 -23
  71. package/dist/dts/workspace-elements/base/screens/types.d.ts +48 -6
  72. package/dist/dts/workspace-elements/types.d.ts +25 -3
  73. package/dist/dts/workspaces/types.d.ts +4 -3
  74. package/dist/index.d.ts +26481 -3080
  75. package/dist/index.js +1717 -535
  76. package/dist/index.js.map +1 -1
  77. package/dist/index.module.d.mts +26481 -3080
  78. package/dist/index.module.mjs +1550 -502
  79. package/dist/index.module.mjs.map +1 -1
  80. package/package.json +3 -2
  81. package/dist/dts/data-schema/schemas.d.ts +0 -4
  82. package/dist/dts/workspace-elements/api/app-events-api.d.ts +0 -17
@@ -40,7 +40,84 @@ export declare class ConnectionAccessor {
40
40
  parameters?: any;
41
41
  authOptionKey?: string;
42
42
  connectorParameters?: any;
43
- }): Promise<Connection | undefined>;
43
+ }): Promise<{
44
+ id: string;
45
+ name: string;
46
+ createdAt: string;
47
+ updatedAt: string;
48
+ userId: string;
49
+ integrationId: string;
50
+ error?: any;
51
+ integration?: {
52
+ id: string;
53
+ name: string;
54
+ baseUri: string;
55
+ logoUri: string;
56
+ key?: string | undefined;
57
+ uuid?: string | undefined;
58
+ description?: string | undefined;
59
+ state?: import("..").WorkspaceElementState | undefined;
60
+ errors?: any[] | undefined;
61
+ revision?: string | undefined;
62
+ isDeactivated?: boolean | undefined;
63
+ createdAt?: string | undefined;
64
+ updatedAt?: string | undefined;
65
+ archivedAt?: string | undefined;
66
+ parameters?: any;
67
+ parametersSchema?: import("..").DataSchema | undefined;
68
+ isTest?: boolean | undefined;
69
+ connectorId?: string | undefined;
70
+ connectorVersion?: string | undefined;
71
+ authOptions?: {
72
+ key: string;
73
+ type: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials";
74
+ description?: string | undefined;
75
+ title?: string | undefined;
76
+ ui?: {
77
+ schema?: any;
78
+ helpUri?: string | undefined;
79
+ } | undefined;
80
+ }[] | undefined;
81
+ oAuthCallbackUri?: string | undefined;
82
+ hasMissingParameters?: boolean | undefined;
83
+ hasDocumentation?: boolean | undefined;
84
+ hasOperations?: boolean | undefined;
85
+ operationsCount?: number | undefined;
86
+ hasData?: boolean | undefined;
87
+ dataCollectionsCount?: number | undefined;
88
+ hasEvents?: boolean | undefined;
89
+ eventsCount?: number | undefined;
90
+ hasGlobalWebhooks?: boolean | undefined;
91
+ hasUdm?: boolean | undefined;
92
+ appUuid?: string | undefined;
93
+ authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
94
+ } | undefined;
95
+ state?: import("..").WorkspaceElementState | undefined;
96
+ errors?: any[] | undefined;
97
+ isDeactivated?: boolean | undefined;
98
+ archivedAt?: string | undefined;
99
+ credentials?: unknown;
100
+ parameters?: unknown;
101
+ connectorParameters?: unknown;
102
+ user?: {
103
+ id: string;
104
+ name: string;
105
+ internalId: string;
106
+ createdAt?: string | undefined;
107
+ archivedAt?: string | undefined;
108
+ credentials?: any;
109
+ fields?: Record<string, any> | undefined;
110
+ isTest?: boolean | undefined;
111
+ lastActiveAt?: string | undefined;
112
+ isBillable?: boolean | undefined;
113
+ } | undefined;
114
+ isTest?: boolean | undefined;
115
+ disconnected?: boolean | undefined;
116
+ isDefunct?: boolean | undefined;
117
+ lastActiveAt?: string | undefined;
118
+ nextCredentialsRefreshAt?: string | undefined;
119
+ meta?: Record<string, any> | undefined;
120
+ } | undefined>;
44
121
  openReconnectUI({}?: OpenConfigurationOptions): Promise<void>;
45
122
  refreshCredentials(): Promise<void>;
46
123
  getPath(subpath?: string, query?: Record<string, any>): string;
@@ -44,7 +44,84 @@ export declare class IntegrationAccessor extends ElementAccessor<Integration, Up
44
44
  } | {
45
45
  sameWindow?: false;
46
46
  redirectUri?: never;
47
- })): Promise<Connection | undefined>;
47
+ })): Promise<{
48
+ id: string;
49
+ name: string;
50
+ createdAt: string;
51
+ updatedAt: string;
52
+ userId: string;
53
+ integrationId: string;
54
+ error?: any;
55
+ integration?: {
56
+ id: string;
57
+ name: string;
58
+ baseUri: string;
59
+ logoUri: string;
60
+ key?: string | undefined;
61
+ uuid?: string | undefined;
62
+ description?: string | undefined;
63
+ state?: import("..").WorkspaceElementState | undefined;
64
+ errors?: any[] | undefined;
65
+ revision?: string | undefined;
66
+ isDeactivated?: boolean | undefined;
67
+ createdAt?: string | undefined;
68
+ updatedAt?: string | undefined;
69
+ archivedAt?: string | undefined;
70
+ parameters?: any;
71
+ parametersSchema?: import("..").DataSchema | undefined;
72
+ isTest?: boolean | undefined;
73
+ connectorId?: string | undefined;
74
+ connectorVersion?: string | undefined;
75
+ authOptions?: {
76
+ key: string;
77
+ type: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials";
78
+ description?: string | undefined;
79
+ title?: string | undefined;
80
+ ui?: {
81
+ schema?: any;
82
+ helpUri?: string | undefined;
83
+ } | undefined;
84
+ }[] | undefined;
85
+ oAuthCallbackUri?: string | undefined;
86
+ hasMissingParameters?: boolean | undefined;
87
+ hasDocumentation?: boolean | undefined;
88
+ hasOperations?: boolean | undefined;
89
+ operationsCount?: number | undefined;
90
+ hasData?: boolean | undefined;
91
+ dataCollectionsCount?: number | undefined;
92
+ hasEvents?: boolean | undefined;
93
+ eventsCount?: number | undefined;
94
+ hasGlobalWebhooks?: boolean | undefined;
95
+ hasUdm?: boolean | undefined;
96
+ appUuid?: string | undefined;
97
+ authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
98
+ } | undefined;
99
+ state?: import("..").WorkspaceElementState | undefined;
100
+ errors?: any[] | undefined;
101
+ isDeactivated?: boolean | undefined;
102
+ archivedAt?: string | undefined;
103
+ credentials?: unknown;
104
+ parameters?: unknown;
105
+ connectorParameters?: unknown;
106
+ user?: {
107
+ id: string;
108
+ name: string;
109
+ internalId: string;
110
+ createdAt?: string | undefined;
111
+ archivedAt?: string | undefined;
112
+ credentials?: any;
113
+ fields?: Record<string, any> | undefined;
114
+ isTest?: boolean | undefined;
115
+ lastActiveAt?: string | undefined;
116
+ isBillable?: boolean | undefined;
117
+ } | undefined;
118
+ isTest?: boolean | undefined;
119
+ disconnected?: boolean | undefined;
120
+ isDefunct?: boolean | undefined;
121
+ lastActiveAt?: string | undefined;
122
+ nextCredentialsRefreshAt?: string | undefined;
123
+ meta?: Record<string, any> | undefined;
124
+ } | undefined>;
48
125
  createConnection({ parameters, name }: {
49
126
  parameters?: any;
50
127
  name?: string;
@@ -24,6 +24,7 @@ export declare class IntegrationAppApiClient {
24
24
  put<T = any>(uri: string, data?: any, options?: AxiosRequestConfig): Promise<T>;
25
25
  patch<T = any>(uri: string, data?: any, options?: AxiosRequestConfig): Promise<T>;
26
26
  delete<T = any>(uri: string, data?: any, options?: AxiosRequestConfig): Promise<T>;
27
+ createEventSource(uri: string, queryParams?: Record<string, any>): Promise<EventSource>;
27
28
  getEmbedUri(page: string, pageParams?: Record<string, any>, options?: {
28
29
  embedMode: 'isolated-embed' | 'popup-embed';
29
30
  }): Promise<string>;
@@ -51,6 +51,7 @@ export declare class IntegrationAppClient extends IntegrationAppApiClient {
51
51
  get customers(): CustomersAccessor;
52
52
  scenario(selector: string): ScenarioAccessor;
53
53
  get scenarios(): ScenariosAccessor;
54
+ createEventSource(uri: string, queryParams?: Record<string, any>): Promise<EventSource>;
54
55
  connectionRequest(connectionId: string, uri: string, data?: any): Promise<any>;
55
56
  }
56
57
  export {};
@@ -1,4 +1,3 @@
1
1
  export * from './create';
2
2
  export * from './merge';
3
- export * from './schemas';
4
3
  export * from './types';
@@ -1,4 +1,4 @@
1
- import { DataRecord } from '../workspace-elements/base/data-collections';
1
+ import { z } from 'zod';
2
2
  export interface DataSchema {
3
3
  title?: string;
4
4
  description?: string;
@@ -10,9 +10,9 @@ export interface DataSchema {
10
10
  items?: DataSchema;
11
11
  additionalProperties?: boolean | DataSchema;
12
12
  enum?: string[];
13
- referenceRecords?: DataRecord[];
13
+ referenceRecords?: any[];
14
14
  referenceCollection?: {
15
- key: any;
15
+ key?: any;
16
16
  parameters?: Record<string, any>;
17
17
  };
18
18
  referenceUdm?: string;
@@ -34,3 +34,4 @@ export interface DataSchema {
34
34
  referenceCollectionPath?: string;
35
35
  referenceCollectionUri?: string;
36
36
  }
37
+ export declare const DataSchema: z.ZodType<DataSchema>;
@@ -1,23 +1,91 @@
1
- export type CommonListElementsQuery = SearchQuery & PaginationQuery & IncludeArchivedQuery;
2
- export type CommonInstancesListQuery = CommonListElementsQuery & {
3
- userId?: string;
4
- instanceKey?: string;
5
- };
6
- export type CommonIntegrationOrConnectionQuery = {
7
- connectionId?: string;
8
- integrationId?: string;
9
- integrationKey?: string;
10
- };
11
- export type IncludeArchivedQuery = {
12
- includeArchived?: boolean;
13
- };
14
- export type SearchQuery = {
15
- search?: string;
16
- };
17
- export type PaginationQuery = {
18
- limit?: number;
19
- cursor?: string;
20
- };
1
+ import { z } from 'zod';
2
+ export declare const zodBooleanCoercion: () => z.ZodEffects<z.ZodBoolean, boolean, unknown>;
3
+ export declare const IncludeArchivedQuery: z.ZodObject<{
4
+ includeArchived: z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
5
+ }, "strip", z.ZodTypeAny, {
6
+ includeArchived?: boolean | undefined;
7
+ }, {
8
+ includeArchived?: unknown;
9
+ }>;
10
+ export type IncludeArchivedQuery = z.infer<typeof IncludeArchivedQuery>;
11
+ export declare const SearchQuery: z.ZodObject<{
12
+ search: z.ZodOptional<z.ZodString>;
13
+ }, "strip", z.ZodTypeAny, {
14
+ search?: string | undefined;
15
+ }, {
16
+ search?: string | undefined;
17
+ }>;
18
+ export type SearchQuery = z.infer<typeof SearchQuery>;
19
+ export declare const PaginationQuery: z.ZodObject<{
20
+ limit: z.ZodOptional<z.ZodNumber>;
21
+ cursor: z.ZodOptional<z.ZodString>;
22
+ }, "strip", z.ZodTypeAny, {
23
+ limit?: number | undefined;
24
+ cursor?: string | undefined;
25
+ }, {
26
+ limit?: number | undefined;
27
+ cursor?: string | undefined;
28
+ }>;
29
+ export type PaginationQuery = z.infer<typeof PaginationQuery>;
30
+ export declare const CommonListElementsQuery: z.ZodObject<{
31
+ search: z.ZodOptional<z.ZodString>;
32
+ } & {
33
+ limit: z.ZodOptional<z.ZodNumber>;
34
+ cursor: z.ZodOptional<z.ZodString>;
35
+ } & {
36
+ includeArchived: z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
37
+ }, "strip", z.ZodTypeAny, {
38
+ search?: string | undefined;
39
+ includeArchived?: boolean | undefined;
40
+ limit?: number | undefined;
41
+ cursor?: string | undefined;
42
+ }, {
43
+ search?: string | undefined;
44
+ includeArchived?: unknown;
45
+ limit?: number | undefined;
46
+ cursor?: string | undefined;
47
+ }>;
48
+ export type CommonListElementsQuery = z.infer<typeof CommonListElementsQuery>;
49
+ export declare const CommonInstancesListQuery: z.ZodObject<{
50
+ search: z.ZodOptional<z.ZodString>;
51
+ } & {
52
+ limit: z.ZodOptional<z.ZodNumber>;
53
+ cursor: z.ZodOptional<z.ZodString>;
54
+ } & {
55
+ includeArchived: z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
56
+ } & {
57
+ userId: z.ZodOptional<z.ZodString>;
58
+ instanceKey: z.ZodOptional<z.ZodString>;
59
+ }, "strip", z.ZodTypeAny, {
60
+ search?: string | undefined;
61
+ includeArchived?: boolean | undefined;
62
+ limit?: number | undefined;
63
+ cursor?: string | undefined;
64
+ userId?: string | undefined;
65
+ instanceKey?: string | undefined;
66
+ }, {
67
+ search?: string | undefined;
68
+ includeArchived?: unknown;
69
+ limit?: number | undefined;
70
+ cursor?: string | undefined;
71
+ userId?: string | undefined;
72
+ instanceKey?: string | undefined;
73
+ }>;
74
+ export type CommonInstancesListQuery = z.infer<typeof CommonInstancesListQuery>;
75
+ export declare const CommonIntegrationOrConnectionQuery: z.ZodObject<{
76
+ connectionId: z.ZodOptional<z.ZodString>;
77
+ integrationId: z.ZodOptional<z.ZodString>;
78
+ integrationKey: z.ZodOptional<z.ZodString>;
79
+ }, "strip", z.ZodTypeAny, {
80
+ connectionId?: string | undefined;
81
+ integrationId?: string | undefined;
82
+ integrationKey?: string | undefined;
83
+ }, {
84
+ connectionId?: string | undefined;
85
+ integrationId?: string | undefined;
86
+ integrationKey?: string | undefined;
87
+ }>;
88
+ export type CommonIntegrationOrConnectionQuery = z.infer<typeof CommonIntegrationOrConnectionQuery>;
21
89
  export declare class PaginationResponse<T> {
22
90
  items: T[];
23
91
  cursor?: string;
@@ -13,8 +13,8 @@ export declare class DataSchemaRef extends DataBuilderFormulaBase<DataSchemaRefA
13
13
  value: any;
14
14
  constructor(value: any);
15
15
  getValue(): undefined;
16
- resolveValue(params: ResolveFormulaParams): Promise<any>;
17
- resolveDataCollection(args: DataSchemaRegArgsDataCollection, params: ResolveFormulaParams): Promise<any>;
16
+ resolveValue(params: ResolveFormulaParams): Promise<import("..").DataSchema | undefined>;
17
+ resolveDataCollection(args: DataSchemaRegArgsDataCollection, params: ResolveFormulaParams): Promise<import("..").DataSchema | undefined>;
18
18
  resolveInternalDataSchema(args: DataSchemaRegArgsInternalDataSchema, params: ResolveFormulaParams): Promise<import("..").DataSchema | undefined>;
19
19
  getSchema(): {
20
20
  type: string;
@@ -1,3 +1,4 @@
1
+ import { z } from 'zod';
1
2
  export declare enum HttpRequestMethod {
2
3
  GET = "GET",
3
4
  POST = "POST",
@@ -5,13 +6,26 @@ export declare enum HttpRequestMethod {
5
6
  PUT = "PUT",
6
7
  DELETE = "DELETE"
7
8
  }
8
- export interface HttpRequestSpec {
9
- method?: HttpRequestMethod;
10
- uri: any;
11
- headers?: Record<string, any>;
12
- query?: Record<string, any>;
9
+ export declare const HttpRequestSpec: z.ZodObject<{
10
+ method: z.ZodOptional<z.ZodPipeline<z.ZodString, z.ZodNativeEnum<typeof HttpRequestMethod>>>;
11
+ uri: z.ZodAny;
12
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
13
+ query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
14
+ body: z.ZodOptional<z.ZodAny>;
15
+ }, "strip", z.ZodTypeAny, {
16
+ headers?: Record<string, any> | undefined;
17
+ method?: HttpRequestMethod | undefined;
13
18
  body?: any;
14
- }
19
+ uri?: any;
20
+ query?: Record<string, any> | undefined;
21
+ }, {
22
+ headers?: Record<string, any> | undefined;
23
+ method?: string | undefined;
24
+ body?: any;
25
+ uri?: any;
26
+ query?: Record<string, any> | undefined;
27
+ }>;
28
+ export type HttpRequestSpec = z.infer<typeof HttpRequestSpec>;
15
29
  export declare const HTTP_REQUEST_SCHEMA: {
16
30
  type: string;
17
31
  properties: {
@@ -1,8 +1,16 @@
1
+ import { z } from 'zod';
1
2
  export declare const POPUP_ELEMENT_ID = "__integration-app-popup";
2
- export interface OpenConfigurationOptions {
3
- onClose?: () => void;
4
- showPoweredBy?: boolean;
5
- }
3
+ export declare const OpenConfigurationOptions: z.ZodObject<{
4
+ onClose: z.ZodOptional<z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodUnknown>>;
5
+ showPoweredBy: z.ZodOptional<z.ZodBoolean>;
6
+ }, "strip", z.ZodTypeAny, {
7
+ onClose?: ((...args: unknown[]) => unknown) | undefined;
8
+ showPoweredBy?: boolean | undefined;
9
+ }, {
10
+ onClose?: ((...args: unknown[]) => unknown) | undefined;
11
+ showPoweredBy?: boolean | undefined;
12
+ }>;
13
+ export type OpenConfigurationOptions = z.infer<typeof OpenConfigurationOptions>;
6
14
  export type OpenIframeOptions = OpenConfigurationOptions & {
7
15
  [key: string]: (...args: any[]) => void;
8
16
  };
@@ -24,5 +24,6 @@ export * from './workspace-updates';
24
24
  export * from './orgs';
25
25
  export * from './webhooks';
26
26
  export * from './alerts';
27
- export * from './accessors/';
27
+ export * from './accessors';
28
+ export * from './sse';
28
29
  export { IntegrationAppClient } from './client';
@@ -0,0 +1 @@
1
+ export * from './workspace-elements';
@@ -0,0 +1,9 @@
1
+ import { WorkspaceElementType } from '../workspace-elements';
2
+ export declare enum WorkspaceSyncEventType {
3
+ ElementUpdate = "element-update"
4
+ }
5
+ export interface WorkspaceSyncEvent {
6
+ type: WorkspaceSyncEventType;
7
+ elementType: WorkspaceElementType;
8
+ elementId: string;
9
+ }