@membranehq/sdk 0.9.8 → 0.9.10

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 (58) hide show
  1. package/dist/bundle.d.ts +290 -247
  2. package/dist/bundle.js +12284 -3529
  3. package/dist/bundle.js.map +1 -1
  4. package/dist/dts/accessors/base-accessors.d.ts +9 -7
  5. package/dist/dts/agent/session.d.ts +8 -10
  6. package/dist/dts/{entity-repository.d.ts → api/index.d.ts} +31 -8
  7. package/dist/dts/index.browser.d.ts +2 -2
  8. package/dist/dts/integration-elements/connection-level-element.accessor.d.ts +1 -1
  9. package/dist/dts/integration-elements/integration-level-element.accessor.d.ts +1 -1
  10. package/dist/dts/scenario-templates/index.d.ts +1 -1
  11. package/dist/dts/usage/types.d.ts +1 -0
  12. package/dist/dts/workspace-elements/api/action-run-log-records-api.d.ts +212 -1
  13. package/dist/dts/workspace-elements/api/actions-api.d.ts +4 -1
  14. package/dist/dts/workspace-elements/api/app-data-schema-instances-api.d.ts +1 -1
  15. package/dist/dts/workspace-elements/api/app-data-schemas-api.d.ts +1 -1
  16. package/dist/dts/workspace-elements/api/app-event-subscriptions-api.d.ts +12 -8
  17. package/dist/dts/workspace-elements/api/app-event-types-api.d.ts +22 -13
  18. package/dist/dts/workspace-elements/api/connections-api.d.ts +11 -5
  19. package/dist/dts/workspace-elements/api/connectors-api.d.ts +7 -0
  20. package/dist/dts/workspace-elements/api/data-link-table-instances-api.d.ts +55 -17
  21. package/dist/dts/workspace-elements/api/data-source-instances-api.d.ts +17 -0
  22. package/dist/dts/workspace-elements/api/data-sources-api.d.ts +2 -2
  23. package/dist/dts/workspace-elements/api/external-apps-api.d.ts +10 -0
  24. package/dist/dts/workspace-elements/api/external-event-pulls-api.d.ts +11 -0
  25. package/dist/dts/workspace-elements/api/external-events-api.d.ts +1 -8
  26. package/dist/dts/workspace-elements/api/field-mapping-instances-api.d.ts +1 -1
  27. package/dist/dts/workspace-elements/api/field-mappings-api.d.ts +1 -1
  28. package/dist/dts/workspace-elements/api/flows-api.d.ts +1 -1
  29. package/dist/dts/workspace-elements/api/index.d.ts +2 -0
  30. package/dist/dts/workspace-elements/api/integrations-api.d.ts +26 -8
  31. package/dist/dts/workspace-elements/api/packages-api.d.ts +23 -9
  32. package/dist/dts/workspace-elements/api/screens-api.d.ts +7 -4
  33. package/dist/dts/workspace-elements/base/action-run-log-records/types.d.ts +1 -0
  34. package/dist/dts/workspace-elements/base/actions/index.d.ts +1 -0
  35. package/dist/dts/workspace-elements/base/data-sources/index.d.ts +3 -0
  36. package/dist/dts/{apps/types.d.ts → workspace-elements/base/external-apps/index.d.ts} +1 -0
  37. package/dist/dts/workspace-elements/base/external-events/api.d.ts +1 -1
  38. package/dist/dts/workspace-elements/base/field-mappings/index.d.ts +1 -0
  39. package/dist/dts/workspace-elements/base/flows/index.d.ts +1 -0
  40. package/dist/dts/workspace-elements/base/integrations/index.d.ts +122 -1
  41. package/dist/dts/workspace-elements/base/packages/index.d.ts +37 -6
  42. package/dist/dts/workspace-elements/types.d.ts +17 -0
  43. package/dist/dts/workspace-elements-catalog/index.d.ts +8 -7
  44. package/dist/index.browser.d.mts +1801 -1356
  45. package/dist/index.browser.d.ts +1801 -1356
  46. package/dist/index.browser.js +258 -71
  47. package/dist/index.browser.js.map +1 -1
  48. package/dist/index.browser.mjs +231 -72
  49. package/dist/index.browser.mjs.map +1 -1
  50. package/dist/index.node.d.mts +1801 -1356
  51. package/dist/index.node.d.ts +1801 -1356
  52. package/dist/index.node.js +258 -71
  53. package/dist/index.node.js.map +1 -1
  54. package/dist/index.node.mjs +231 -72
  55. package/dist/index.node.mjs.map +1 -1
  56. package/package.json +2 -2
  57. package/dist/dts/apps/index.d.ts +0 -1
  58. package/dist/dts/workspace-elements/base/integrations/types.d.ts +0 -104
@@ -1,14 +1,16 @@
1
1
  import { z } from 'zod';
2
- import { IntegrationElementType } from '../../../integration-elements';
2
+ import { WorkspaceElementType } from '../../types';
3
+ export declare const PACKAGE_VERSION_DEVELOPMENT = "dev";
4
+ export declare const PACKAGE_VERSION_LATEST = "latest";
3
5
  export declare const PackageElement: z.ZodObject<{
4
6
  id: z.ZodString;
5
- type: z.ZodEnum<typeof IntegrationElementType>;
7
+ type: z.ZodEnum<typeof WorkspaceElementType>;
6
8
  element: z.ZodOptional<z.ZodAny>;
7
9
  }, z.core.$strip>;
8
10
  export type PackageElement = z.infer<typeof PackageElement>;
9
11
  export declare const PackageElementExport: z.ZodObject<{
10
12
  uuid: z.ZodString;
11
- type: z.ZodEnum<typeof IntegrationElementType>;
13
+ type: z.ZodEnum<typeof WorkspaceElementType>;
12
14
  element: z.ZodOptional<z.ZodAny>;
13
15
  }, z.core.$strip>;
14
16
  export type PackageElementExport = z.infer<typeof PackageElementExport>;
@@ -25,9 +27,10 @@ export declare const PackageEditableProperties: z.ZodObject<{
25
27
  connectionId: z.ZodOptional<z.ZodString>;
26
28
  instanceKey: z.ZodOptional<z.ZodString>;
27
29
  scenarioTemplateId: z.ZodOptional<z.ZodString>;
30
+ externalAppId: z.ZodOptional<z.ZodString>;
28
31
  elements: z.ZodOptional<z.ZodArray<z.ZodObject<{
29
32
  id: z.ZodString;
30
- type: z.ZodEnum<typeof IntegrationElementType>;
33
+ type: z.ZodEnum<typeof WorkspaceElementType>;
31
34
  element: z.ZodOptional<z.ZodAny>;
32
35
  }, z.core.$strip>>>;
33
36
  }, z.core.$strip>;
@@ -40,9 +43,10 @@ export declare const PackageExportProperties: z.ZodObject<{
40
43
  meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
41
44
  integrationUuid: z.ZodOptional<z.ZodString>;
42
45
  parentUuid: z.ZodOptional<z.ZodString>;
46
+ isCustomized: z.ZodOptional<z.ZodBoolean>;
43
47
  elements: z.ZodOptional<z.ZodArray<z.ZodObject<{
44
48
  uuid: z.ZodString;
45
- type: z.ZodEnum<typeof IntegrationElementType>;
49
+ type: z.ZodEnum<typeof WorkspaceElementType>;
46
50
  element: z.ZodOptional<z.ZodAny>;
47
51
  }, z.core.$strip>>>;
48
52
  }, z.core.$strip>;
@@ -72,9 +76,10 @@ export declare const BasePackage: z.ZodObject<{
72
76
  connectionId: z.ZodOptional<z.ZodString>;
73
77
  instanceKey: z.ZodOptional<z.ZodString>;
74
78
  scenarioTemplateId: z.ZodOptional<z.ZodString>;
79
+ externalAppId: z.ZodOptional<z.ZodString>;
75
80
  elements: z.ZodOptional<z.ZodArray<z.ZodObject<{
76
81
  id: z.ZodString;
77
- type: z.ZodEnum<typeof IntegrationElementType>;
82
+ type: z.ZodEnum<typeof WorkspaceElementType>;
78
83
  element: z.ZodOptional<z.ZodAny>;
79
84
  }, z.core.$strip>>>;
80
85
  key: z.ZodString;
@@ -82,3 +87,29 @@ export declare const BasePackage: z.ZodObject<{
82
87
  isCustomized: z.ZodOptional<z.ZodBoolean>;
83
88
  }, z.core.$strip>;
84
89
  export type BasePackage = z.infer<typeof BasePackage>;
90
+ export declare const WritablePackageVersionData: z.ZodObject<{
91
+ elements: z.ZodOptional<z.ZodArray<z.ZodObject<{
92
+ id: z.ZodString;
93
+ type: z.ZodEnum<typeof WorkspaceElementType>;
94
+ element: z.ZodOptional<z.ZodAny>;
95
+ }, z.core.$strip>>>;
96
+ }, z.core.$strip>;
97
+ export type WritablePackageVersionData = z.infer<typeof WritablePackageVersionData>;
98
+ export declare const PackageVersionData: z.ZodObject<{
99
+ elements: z.ZodOptional<z.ZodArray<z.ZodObject<{
100
+ id: z.ZodString;
101
+ type: z.ZodEnum<typeof WorkspaceElementType>;
102
+ element: z.ZodOptional<z.ZodAny>;
103
+ }, z.core.$strip>>>;
104
+ version: z.ZodOptional<z.ZodString>;
105
+ changelog: z.ZodOptional<z.ZodString>;
106
+ parentPackageVersion: z.ZodOptional<z.ZodString>;
107
+ }, z.core.$strip>;
108
+ export type PackageVersionData = z.infer<typeof PackageVersionData>;
109
+ export declare const PackageVersionListItem: z.ZodObject<{
110
+ id: z.ZodString;
111
+ version: z.ZodString;
112
+ changelog: z.ZodOptional<z.ZodString>;
113
+ parentPackageVersion: z.ZodOptional<z.ZodString>;
114
+ }, z.core.$strip>;
115
+ export type PackageVersionListItem = z.infer<typeof PackageVersionListItem>;
@@ -113,6 +113,7 @@ export declare const BaseIntegrationLevelMembraneInterfaceEditableProperties: z.
113
113
  connectionId: z.ZodOptional<z.ZodString>;
114
114
  instanceKey: z.ZodOptional<z.ZodString>;
115
115
  }, z.core.$strip>;
116
+ export type BaseIntegrationLevelMembraneInterfaceEditableProperties = z.infer<typeof BaseIntegrationLevelMembraneInterfaceEditableProperties>;
116
117
  export declare const BaseIntegrationLevelMembraneInterfaceReadOnlyProperties: z.ZodObject<{
117
118
  name: z.ZodString;
118
119
  state: z.ZodOptional<z.ZodEnum<typeof WorkspaceElementState>>;
@@ -124,6 +125,7 @@ export declare const BaseIntegrationLevelMembraneInterfaceReadOnlyProperties: z.
124
125
  isDeactivated: z.ZodOptional<z.ZodBoolean>;
125
126
  isCustomized: z.ZodOptional<z.ZodBoolean>;
126
127
  }, z.core.$strip>;
128
+ export type BaseIntegrationLevelMembraneInterfaceReadOnlyProperties = z.infer<typeof BaseIntegrationLevelMembraneInterfaceReadOnlyProperties>;
127
129
  export declare const BaseIntegrationLevelMembraneInterfaceExportProperties: z.ZodObject<{
128
130
  uuid: z.ZodOptional<z.ZodString>;
129
131
  key: z.ZodOptional<z.ZodString>;
@@ -132,7 +134,9 @@ export declare const BaseIntegrationLevelMembraneInterfaceExportProperties: z.Zo
132
134
  meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
133
135
  integrationUuid: z.ZodOptional<z.ZodString>;
134
136
  parentUuid: z.ZodOptional<z.ZodString>;
137
+ isCustomized: z.ZodOptional<z.ZodBoolean>;
135
138
  }, z.core.$strip>;
139
+ export type BaseIntegrationLevelMembraneInterfaceExportProperties = z.infer<typeof BaseIntegrationLevelMembraneInterfaceExportProperties>;
136
140
  export declare const IntegrationLevelMembraneInterfaceSelectorQuery: z.ZodObject<{
137
141
  layer: z.ZodOptional<z.ZodEnum<{
138
142
  connection: "connection";
@@ -195,3 +199,16 @@ export interface WorkspaceElementDependency extends WorkspaceElementReference {
195
199
  dependencyType: WorkspaceElementDependencyType;
196
200
  data?: unknown;
197
201
  }
202
+ export declare const WorkspaceElementSearchQuery: z.ZodObject<{
203
+ q: z.ZodString;
204
+ elementType: z.ZodOptional<z.ZodEnum<typeof WorkspaceElementType>>;
205
+ limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
206
+ cursor: z.ZodOptional<z.ZodString>;
207
+ }, z.core.$strip>;
208
+ export type WorkspaceElementSearchQuery = z.infer<typeof WorkspaceElementSearchQuery>;
209
+ export declare const WorkspaceElementSearchResult: z.ZodObject<{
210
+ elementType: z.ZodEnum<typeof WorkspaceElementType>;
211
+ elementId: z.ZodString;
212
+ name: z.ZodString;
213
+ }, z.core.$strip>;
214
+ export type WorkspaceElementSearchResult = z.infer<typeof WorkspaceElementSearchResult>;
@@ -7,17 +7,18 @@ export interface WorkspaceElementSpec {
7
7
  apiPath: string;
8
8
  name: string;
9
9
  namePlural: string;
10
- createSchema?: z.ZodObject<any>;
11
- updateSchema?: z.ZodObject<any>;
12
- editablePropertiesSchema?: z.ZodObject<any>;
13
- backwardCompatibleEditablePropertiesSchema?: z.ZodObject<any>;
14
- exportPropertiesSchema?: z.ZodObject<any>;
15
- apiResponseSchema?: z.ZodObject<any>;
16
- findQuerySchema?: z.ZodObject<any>;
10
+ createSchema?: z.ZodObject;
11
+ updateSchema?: z.ZodObject;
12
+ editablePropertiesSchema?: z.ZodObject;
13
+ backwardCompatibleEditablePropertiesSchema?: z.ZodObject;
14
+ exportPropertiesSchema?: z.ZodObject;
15
+ apiResponseSchema?: z.ZodObject;
16
+ findQuerySchema?: z.ZodObject;
17
17
  isMembraneInterface?: boolean;
18
18
  isIntegrationLevel?: boolean;
19
19
  parentFieldKey?: string;
20
20
  universalParentFieldKey?: string;
21
+ canBeAddedToPackage?: boolean;
21
22
  }
22
23
  export interface WorkspaceElements {
23
24
  flows?: Record<string, CreateFlowRequest>;