@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,20 +1,87 @@
1
- import { BaseMembraneInterface } from '../../types';
1
+ import { z } from 'zod';
2
2
  import { DataLinkDirection } from '../data-link-tables';
3
- export interface BaseDataLinkTableInstance extends BaseMembraneInterface {
4
- dataLinkTableId?: string;
5
- connectionId?: string;
3
+ export declare const BaseDataLinkTableInstance: z.ZodObject<{
4
+ id: z.ZodString;
5
+ name: z.ZodString;
6
+ key: z.ZodOptional<z.ZodString>;
7
+ uuid: z.ZodOptional<z.ZodString>;
8
+ description: z.ZodOptional<z.ZodString>;
9
+ state: z.ZodOptional<z.ZodNativeEnum<typeof import("../../types").WorkspaceElementState>>;
10
+ errors: z.ZodOptional<z.ZodArray<any, "many">>;
11
+ revision: z.ZodOptional<z.ZodString>;
12
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
13
+ createdAt: z.ZodOptional<z.ZodString>;
14
+ updatedAt: z.ZodOptional<z.ZodString>;
15
+ } & {
16
+ dataLinkTableId: z.ZodOptional<z.ZodString>;
17
+ connectionId: z.ZodOptional<z.ZodString>;
18
+ integrationId: z.ZodString;
19
+ instanceKey: z.ZodOptional<z.ZodString>;
20
+ userId: z.ZodString;
21
+ archivedAt: z.ZodOptional<z.ZodString>;
22
+ }, "strip", z.ZodTypeAny, {
23
+ id: string;
24
+ name: string;
25
+ userId: string;
6
26
  integrationId: string;
7
- instanceKey?: string;
27
+ key?: string | undefined;
28
+ uuid?: string | undefined;
29
+ description?: string | undefined;
30
+ state?: import("../../types").WorkspaceElementState | undefined;
31
+ errors?: any[] | undefined;
32
+ revision?: string | undefined;
33
+ isDeactivated?: boolean | undefined;
34
+ createdAt?: string | undefined;
35
+ updatedAt?: string | undefined;
36
+ archivedAt?: string | undefined;
37
+ instanceKey?: string | undefined;
38
+ connectionId?: string | undefined;
39
+ dataLinkTableId?: string | undefined;
40
+ }, {
41
+ id: string;
42
+ name: string;
8
43
  userId: string;
9
- archivedAt?: string;
10
- }
11
- export interface DataLink {
44
+ integrationId: string;
45
+ key?: string | undefined;
46
+ uuid?: string | undefined;
47
+ description?: string | undefined;
48
+ state?: import("../../types").WorkspaceElementState | undefined;
49
+ errors?: any[] | undefined;
50
+ revision?: string | undefined;
51
+ isDeactivated?: boolean | undefined;
52
+ createdAt?: string | undefined;
53
+ updatedAt?: string | undefined;
54
+ archivedAt?: string | undefined;
55
+ instanceKey?: string | undefined;
56
+ connectionId?: string | undefined;
57
+ dataLinkTableId?: string | undefined;
58
+ }>;
59
+ export type BaseDataLinkTableInstance = z.infer<typeof BaseDataLinkTableInstance>;
60
+ export declare const DataLink: z.ZodObject<{
61
+ id: z.ZodString;
62
+ dataLinkTableInstanceId: z.ZodString;
63
+ externalRecordId: z.ZodString;
64
+ appRecordId: z.ZodString;
65
+ direction: z.ZodNativeEnum<typeof DataLinkDirection>;
66
+ }, "strip", z.ZodTypeAny, {
12
67
  id: string;
68
+ direction: DataLinkDirection;
13
69
  dataLinkTableInstanceId: string;
14
70
  externalRecordId: string;
15
71
  appRecordId: string;
72
+ }, {
73
+ id: string;
16
74
  direction: DataLinkDirection;
17
- }
18
- export interface DataLinkTableConfig {
75
+ dataLinkTableInstanceId: string;
76
+ externalRecordId: string;
77
+ appRecordId: string;
78
+ }>;
79
+ export type DataLink = z.infer<typeof DataLink>;
80
+ export declare const DataLinkTableConfig: z.ZodObject<{
81
+ key: z.ZodString;
82
+ }, "strip", z.ZodTypeAny, {
83
+ key: string;
84
+ }, {
19
85
  key: string;
20
- }
86
+ }>;
87
+ export type DataLinkTableConfig = z.infer<typeof DataLinkTableConfig>;
@@ -1,9 +1,48 @@
1
- import { BaseMembraneInterface } from '../../types';
1
+ import { z } from 'zod';
2
2
  export declare enum DataLinkDirection {
3
3
  IMPORT = "import",
4
4
  EXPORT = "export",
5
5
  BOTH = "both"
6
6
  }
7
- export interface BaseDataLinkTable extends BaseMembraneInterface {
8
- archivedAt?: string;
9
- }
7
+ export declare const BaseDataLinkTable: z.ZodObject<{
8
+ id: z.ZodString;
9
+ name: z.ZodString;
10
+ key: z.ZodOptional<z.ZodString>;
11
+ uuid: z.ZodOptional<z.ZodString>;
12
+ description: z.ZodOptional<z.ZodString>;
13
+ state: z.ZodOptional<z.ZodNativeEnum<typeof import("../../types").WorkspaceElementState>>;
14
+ errors: z.ZodOptional<z.ZodArray<any, "many">>;
15
+ revision: z.ZodOptional<z.ZodString>;
16
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
17
+ createdAt: z.ZodOptional<z.ZodString>;
18
+ updatedAt: z.ZodOptional<z.ZodString>;
19
+ } & {
20
+ archivedAt: z.ZodOptional<z.ZodString>;
21
+ }, "strip", z.ZodTypeAny, {
22
+ id: string;
23
+ name: string;
24
+ key?: string | undefined;
25
+ uuid?: string | undefined;
26
+ description?: string | undefined;
27
+ state?: import("../../types").WorkspaceElementState | undefined;
28
+ errors?: any[] | undefined;
29
+ revision?: string | undefined;
30
+ isDeactivated?: boolean | undefined;
31
+ createdAt?: string | undefined;
32
+ updatedAt?: string | undefined;
33
+ archivedAt?: string | undefined;
34
+ }, {
35
+ id: string;
36
+ name: string;
37
+ key?: string | undefined;
38
+ uuid?: string | undefined;
39
+ description?: string | undefined;
40
+ state?: import("../../types").WorkspaceElementState | undefined;
41
+ errors?: any[] | undefined;
42
+ revision?: string | undefined;
43
+ isDeactivated?: boolean | undefined;
44
+ createdAt?: string | undefined;
45
+ updatedAt?: string | undefined;
46
+ archivedAt?: string | undefined;
47
+ }>;
48
+ export type BaseDataLinkTable = z.infer<typeof BaseDataLinkTable>;