@membranehq/sdk 0.9.9 → 0.9.11

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 (56) hide show
  1. package/dist/bundle.d.ts +281 -239
  2. package/dist/bundle.js +24 -6
  3. package/dist/bundle.js.map +1 -1
  4. package/dist/dts/accessors/base-accessors.d.ts +1 -1
  5. package/dist/dts/alerts/types.d.ts +2 -1
  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/orgs/types.d.ts +3 -0
  11. package/dist/dts/scenario-templates/index.d.ts +1 -1
  12. package/dist/dts/usage/types.d.ts +1 -0
  13. package/dist/dts/workspace-elements/api/action-run-log-records-api.d.ts +212 -1
  14. package/dist/dts/workspace-elements/api/actions-api.d.ts +3 -0
  15. package/dist/dts/workspace-elements/api/app-data-schema-instances-api.d.ts +1 -1
  16. package/dist/dts/workspace-elements/api/app-data-schemas-api.d.ts +1 -1
  17. package/dist/dts/workspace-elements/api/app-event-subscriptions-api.d.ts +12 -8
  18. package/dist/dts/workspace-elements/api/app-event-types-api.d.ts +22 -13
  19. package/dist/dts/workspace-elements/api/connections-api.d.ts +11 -5
  20. package/dist/dts/workspace-elements/api/connectors-api.d.ts +7 -0
  21. package/dist/dts/workspace-elements/api/data-link-table-instances-api.d.ts +55 -17
  22. package/dist/dts/workspace-elements/api/data-source-instances-api.d.ts +17 -0
  23. package/dist/dts/workspace-elements/api/data-sources-api.d.ts +2 -2
  24. package/dist/dts/workspace-elements/api/external-apps-api.d.ts +10 -0
  25. package/dist/dts/workspace-elements/api/external-event-pulls-api.d.ts +11 -0
  26. package/dist/dts/workspace-elements/api/external-events-api.d.ts +1 -8
  27. package/dist/dts/workspace-elements/api/field-mapping-instances-api.d.ts +1 -1
  28. package/dist/dts/workspace-elements/api/field-mappings-api.d.ts +1 -1
  29. package/dist/dts/workspace-elements/api/flows-api.d.ts +1 -1
  30. package/dist/dts/workspace-elements/api/index.d.ts +2 -0
  31. package/dist/dts/workspace-elements/api/integrations-api.d.ts +26 -8
  32. package/dist/dts/workspace-elements/api/packages-api.d.ts +23 -9
  33. package/dist/dts/workspace-elements/api/screens-api.d.ts +7 -4
  34. package/dist/dts/workspace-elements/base/action-run-log-records/types.d.ts +1 -0
  35. package/dist/dts/workspace-elements/base/data-sources/index.d.ts +2 -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/integrations/index.d.ts +122 -1
  39. package/dist/dts/workspace-elements/base/packages/index.d.ts +36 -6
  40. package/dist/dts/workspace-elements/types.d.ts +16 -0
  41. package/dist/dts/workspace-elements-catalog/index.d.ts +8 -7
  42. package/dist/index.browser.d.mts +1451 -1007
  43. package/dist/index.browser.d.ts +1451 -1007
  44. package/dist/index.browser.js +243 -60
  45. package/dist/index.browser.js.map +1 -1
  46. package/dist/index.browser.mjs +217 -61
  47. package/dist/index.browser.mjs.map +1 -1
  48. package/dist/index.node.d.mts +1451 -1007
  49. package/dist/index.node.d.ts +1451 -1007
  50. package/dist/index.node.js +243 -60
  51. package/dist/index.node.js.map +1 -1
  52. package/dist/index.node.mjs +217 -61
  53. package/dist/index.node.mjs.map +1 -1
  54. package/package.json +2 -2
  55. package/dist/dts/apps/index.d.ts +0 -1
  56. package/dist/dts/workspace-elements/base/integrations/types.d.ts +0 -104
@@ -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>;
@@ -134,6 +136,7 @@ export declare const BaseIntegrationLevelMembraneInterfaceExportProperties: z.Zo
134
136
  parentUuid: z.ZodOptional<z.ZodString>;
135
137
  isCustomized: z.ZodOptional<z.ZodBoolean>;
136
138
  }, z.core.$strip>;
139
+ export type BaseIntegrationLevelMembraneInterfaceExportProperties = z.infer<typeof BaseIntegrationLevelMembraneInterfaceExportProperties>;
137
140
  export declare const IntegrationLevelMembraneInterfaceSelectorQuery: z.ZodObject<{
138
141
  layer: z.ZodOptional<z.ZodEnum<{
139
142
  connection: "connection";
@@ -196,3 +199,16 @@ export interface WorkspaceElementDependency extends WorkspaceElementReference {
196
199
  dependencyType: WorkspaceElementDependencyType;
197
200
  data?: unknown;
198
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>;