@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
@@ -1,7 +1,49 @@
1
- import { BaseWorkspaceElement } from '../..';
2
- import { ScreenType, ScreenBlock } from '../../api/screens-api';
3
- export interface BaseScreen extends BaseWorkspaceElement {
4
- type: ScreenType;
5
- key?: string;
6
- blocks: ScreenBlock[];
1
+ import { z } from 'zod';
2
+ export declare enum ScreenType {
3
+ Integration = "integration"
4
+ }
5
+ export declare enum ScreenBlockType {
6
+ Flow = "flow",
7
+ FieldMapping = "field-mapping",
8
+ DataSource = "data-source",
9
+ Action = "action"
7
10
  }
11
+ export declare const ScreenBlock: z.ZodIntersection<z.ZodObject<{
12
+ type: z.ZodNativeEnum<typeof ScreenBlockType>;
13
+ }, "strip", z.ZodTypeAny, {
14
+ type: ScreenBlockType;
15
+ }, {
16
+ type: ScreenBlockType;
17
+ }>, z.ZodRecord<z.ZodString, z.ZodAny>>;
18
+ export type ScreenBlock = z.infer<typeof ScreenBlock>;
19
+ export declare const BaseScreen: z.ZodObject<{
20
+ id: z.ZodString;
21
+ name: z.ZodString;
22
+ } & {
23
+ type: z.ZodNativeEnum<typeof ScreenType>;
24
+ key: z.ZodOptional<z.ZodString>;
25
+ blocks: z.ZodArray<z.ZodIntersection<z.ZodObject<{
26
+ type: z.ZodNativeEnum<typeof ScreenBlockType>;
27
+ }, "strip", z.ZodTypeAny, {
28
+ type: ScreenBlockType;
29
+ }, {
30
+ type: ScreenBlockType;
31
+ }>, z.ZodRecord<z.ZodString, z.ZodAny>>, "many">;
32
+ }, "strip", z.ZodTypeAny, {
33
+ type: ScreenType;
34
+ id: string;
35
+ name: string;
36
+ blocks: ({
37
+ type: ScreenBlockType;
38
+ } & Record<string, any>)[];
39
+ key?: string | undefined;
40
+ }, {
41
+ type: ScreenType;
42
+ id: string;
43
+ name: string;
44
+ blocks: ({
45
+ type: ScreenBlockType;
46
+ } & Record<string, any>)[];
47
+ key?: string | undefined;
48
+ }>;
49
+ export type BaseScreen = z.infer<typeof BaseScreen>;
@@ -28,6 +28,7 @@ export declare enum WorkspaceElementType {
28
28
  DataLinkTableInstance = "data-link-table-instance",
29
29
  AppEventType = "app-event-type",
30
30
  AppEventSubscription = "app-event-subscription",
31
+ AppEventLogRecord = "app-event-log-record",
31
32
  AppDataSchema = "app-data-schema",
32
33
  AppDataSchemaInstance = "app-data-schema-instance",
33
34
  ExternalEventSubscription = "external-event-subscription",
@@ -76,21 +77,42 @@ export declare const BaseMembraneInterface: z.ZodObject<{
76
77
  id: z.ZodString;
77
78
  name: z.ZodString;
78
79
  } & {
79
- key: z.ZodString;
80
+ key: z.ZodOptional<z.ZodString>;
81
+ uuid: z.ZodOptional<z.ZodString>;
82
+ description: z.ZodOptional<z.ZodString>;
80
83
  state: z.ZodOptional<z.ZodNativeEnum<typeof WorkspaceElementState>>;
81
84
  errors: z.ZodOptional<z.ZodArray<any, "many">>;
85
+ revision: z.ZodOptional<z.ZodString>;
86
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
87
+ createdAt: z.ZodOptional<z.ZodString>;
88
+ updatedAt: z.ZodOptional<z.ZodString>;
89
+ archivedAt: z.ZodOptional<z.ZodString>;
82
90
  }, "strip", z.ZodTypeAny, {
83
- key: string;
84
91
  id: string;
85
92
  name: string;
93
+ key?: string | undefined;
94
+ uuid?: string | undefined;
95
+ description?: string | undefined;
86
96
  state?: WorkspaceElementState | undefined;
87
97
  errors?: any[] | undefined;
98
+ revision?: string | undefined;
99
+ isDeactivated?: boolean | undefined;
100
+ createdAt?: string | undefined;
101
+ updatedAt?: string | undefined;
102
+ archivedAt?: string | undefined;
88
103
  }, {
89
- key: string;
90
104
  id: string;
91
105
  name: string;
106
+ key?: string | undefined;
107
+ uuid?: string | undefined;
108
+ description?: string | undefined;
92
109
  state?: WorkspaceElementState | undefined;
93
110
  errors?: any[] | undefined;
111
+ revision?: string | undefined;
112
+ isDeactivated?: boolean | undefined;
113
+ createdAt?: string | undefined;
114
+ updatedAt?: string | undefined;
115
+ archivedAt?: string | undefined;
94
116
  }>;
95
117
  export type BaseMembraneInterface = z.infer<typeof BaseMembraneInterface>;
96
118
  export interface WorkspaceElementReference {
@@ -3,7 +3,7 @@ import { User } from '../workspace-elements/api/customers-api';
3
3
  import { ConnectorAuth, RestApiClientOptions } from '../workspace-elements/base/connectors';
4
4
  export declare enum WorkspaceOnboardingStep {
5
5
  AddConnectors = "add-connectors",
6
- ConnectYourApp = "connect-your-app",
6
+ ConnectYourApp = "first-connection",
7
7
  BuildIntegrations = "build-integrations",
8
8
  Completed = "completed"
9
9
  }
@@ -66,7 +66,8 @@ export interface UserWorkspaceSettings {
66
66
  }
67
67
  export declare enum WorkspaceNotificationType {
68
68
  WorkspaceUpdate = "workspace-update",
69
- CopilotActivity = "copilot-activity"
69
+ CopilotActivity = "copilot-activity",
70
+ LocalClientUpdate = "local-client-update"
70
71
  }
71
72
  export interface WorkspaceNotification<DataType = unknown> {
72
73
  type: WorkspaceNotificationType;
@@ -111,7 +112,7 @@ export declare const enum CustomerLimits {
111
112
  WebhookRequestsPerCustomerPerSecond = "webhookRequestsPerCustomerPerSecond",
112
113
  WebhookRequestsPerCustomerPerHour = "webhookRequestsPerCustomerPerHour"
113
114
  }
114
- export declare const enum LimitUnits {
115
+ export declare enum LimitUnits {
115
116
  Number = "number",
116
117
  Msec = "msec",
117
118
  Mb = "Mb"