@membranehq/sdk 0.7.1 → 0.7.4

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 (85) hide show
  1. package/dist/bundle.d.ts +5200 -4617
  2. package/dist/bundle.js +10 -1
  3. package/dist/bundle.js.map +1 -1
  4. package/dist/dts/accessors/connections-accessors.d.ts +4 -3
  5. package/dist/dts/accessors/integrations-accessors.d.ts +4 -3
  6. package/dist/dts/accessors/scenarios-accessors.d.ts +4 -3
  7. package/dist/dts/config/config.test.d.ts +1 -0
  8. package/dist/dts/config/index.d.ts +42 -0
  9. package/dist/dts/entity-repository.d.ts +2 -2
  10. package/dist/dts/index.browser.d.ts +31 -0
  11. package/dist/dts/index.d.ts +2 -0
  12. package/dist/dts/index.node.d.ts +2 -0
  13. package/dist/dts/integration-elements/index.d.ts +0 -2
  14. package/dist/dts/{workspace-elements/base/scenarios/types.d.ts → scenario-templates/index.d.ts} +64 -169
  15. package/dist/dts/workspace-elements/api/action-instances-api.d.ts +39 -34
  16. package/dist/dts/workspace-elements/api/action-run-log-records-api.d.ts +37 -37
  17. package/dist/dts/workspace-elements/api/actions-api.d.ts +64 -46
  18. package/dist/dts/workspace-elements/api/app-data-schema-instances-api.d.ts +13 -0
  19. package/dist/dts/workspace-elements/api/app-data-schemas-api.d.ts +3 -0
  20. package/dist/dts/workspace-elements/api/app-event-log-records-api.d.ts +17 -2
  21. package/dist/dts/workspace-elements/api/app-event-subscriptions-api.d.ts +13 -0
  22. package/dist/dts/workspace-elements/api/app-event-types-api.d.ts +3 -0
  23. package/dist/dts/workspace-elements/api/connections-api.d.ts +57 -34
  24. package/dist/dts/workspace-elements/api/customers-api.d.ts +3 -0
  25. package/dist/dts/workspace-elements/api/data-link-table-instances-api.d.ts +29 -16
  26. package/dist/dts/workspace-elements/api/data-link-tables-api.d.ts +3 -0
  27. package/dist/dts/workspace-elements/api/data-source-instances-api.d.ts +51 -43
  28. package/dist/dts/workspace-elements/api/data-sources-api.d.ts +474 -441
  29. package/dist/dts/workspace-elements/api/external-event-log-records-api.d.ts +27 -22
  30. package/dist/dts/workspace-elements/api/external-event-pulls-api.d.ts +27 -22
  31. package/dist/dts/workspace-elements/api/external-event-subscriptions-api.d.ts +21 -16
  32. package/dist/dts/workspace-elements/api/external-events-api.d.ts +7 -0
  33. package/dist/dts/workspace-elements/api/field-mapping-instances-api.d.ts +144 -124
  34. package/dist/dts/workspace-elements/api/field-mappings-api.d.ts +250 -118
  35. package/dist/dts/workspace-elements/api/flow-runs-api.d.ts +122 -98
  36. package/dist/dts/workspace-elements/api/flows-api.d.ts +965 -826
  37. package/dist/dts/workspace-elements/api/integrations-api.d.ts +12 -14
  38. package/dist/dts/workspace-elements/api/scenarios-api.d.ts +434 -431
  39. package/dist/dts/workspace-elements/base/action-instances/types.d.ts +5 -5
  40. package/dist/dts/workspace-elements/base/action-run-log-records/types.d.ts +2 -2
  41. package/dist/dts/workspace-elements/base/actions/index.d.ts +18 -15
  42. package/dist/dts/workspace-elements/base/app-data-schema-instances/types.d.ts +3 -0
  43. package/dist/dts/workspace-elements/base/app-data-schemas/types.d.ts +3 -0
  44. package/dist/dts/workspace-elements/base/app-event-subscriptions/types.d.ts +3 -0
  45. package/dist/dts/workspace-elements/base/app-event-types/types.d.ts +3 -0
  46. package/dist/dts/workspace-elements/base/connections/types.d.ts +5 -8
  47. package/dist/dts/workspace-elements/base/customers/index.d.ts +3 -0
  48. package/dist/dts/workspace-elements/base/data-link-table-instances/types.d.ts +5 -2
  49. package/dist/dts/workspace-elements/base/data-link-tables/types.d.ts +3 -0
  50. package/dist/dts/workspace-elements/base/data-source-instances/types.d.ts +9 -6
  51. package/dist/dts/workspace-elements/base/data-sources/index.d.ts +153 -2
  52. package/dist/dts/workspace-elements/base/external-event-log-records/types.d.ts +2 -2
  53. package/dist/dts/workspace-elements/base/external-event-pulls/types.d.ts +2 -2
  54. package/dist/dts/workspace-elements/base/external-event-subscriptions/types.d.ts +2 -2
  55. package/dist/dts/workspace-elements/base/field-mapping-instances/types.d.ts +8 -5
  56. package/dist/dts/workspace-elements/base/field-mappings/index.d.ts +191 -1
  57. package/dist/dts/workspace-elements/base/flow-instances/schemas.d.ts +26 -26
  58. package/dist/dts/workspace-elements/base/flow-instances/types.d.ts +15 -12
  59. package/dist/dts/workspace-elements/base/flow-runs/types.d.ts +4 -4
  60. package/dist/dts/workspace-elements/base/flows/index.d.ts +300 -1
  61. package/dist/dts/workspace-elements/base/flows/nodes/base.d.ts +79 -1
  62. package/dist/dts/workspace-elements/base/flows/nodes/index.d.ts +1 -1
  63. package/dist/dts/workspace-elements/base/integrations/types.d.ts +18 -0
  64. package/dist/dts/workspace-elements/base/scenarios/index.d.ts +163 -1
  65. package/dist/dts/workspace-elements/types.d.ts +118 -0
  66. package/dist/dts/workspace-elements-catalog/index.d.ts +1 -0
  67. package/dist/{index.d.ts → index.browser.d.mts} +17282 -16311
  68. package/dist/{index.module.d.mts → index.browser.d.ts} +17282 -16311
  69. package/dist/{index.js → index.browser.js} +228 -255
  70. package/dist/index.browser.js.map +1 -0
  71. package/dist/{index.module.mjs → index.browser.mjs} +218 -250
  72. package/dist/index.browser.mjs.map +1 -0
  73. package/dist/index.node.d.mts +28306 -0
  74. package/dist/index.node.d.ts +28306 -0
  75. package/dist/index.node.js +13329 -0
  76. package/dist/index.node.js.map +1 -0
  77. package/dist/index.node.mjs +12853 -0
  78. package/dist/index.node.mjs.map +1 -0
  79. package/package.json +38 -15
  80. package/dist/dts/workspace-elements/base/data-sources/constants.d.ts +0 -4
  81. package/dist/dts/workspace-elements/base/data-sources/types.d.ts +0 -102
  82. package/dist/dts/workspace-elements/base/field-mappings/types.d.ts +0 -129
  83. package/dist/dts/workspace-elements/base/flows/types.d.ts +0 -241
  84. package/dist/index.js.map +0 -1
  85. package/dist/index.module.mjs.map +0 -1
@@ -45,8 +45,8 @@ export declare class ConnectionAccessor {
45
45
  name: string;
46
46
  createdAt: string;
47
47
  updatedAt: string;
48
- userId: string;
49
48
  integrationId: string;
49
+ userId: string;
50
50
  error?: import("../errors").ErrorDataSchema | undefined;
51
51
  integration?: {
52
52
  id: string;
@@ -55,6 +55,7 @@ export declare class ConnectionAccessor {
55
55
  key?: string | undefined;
56
56
  uuid?: string | undefined;
57
57
  description?: string | undefined;
58
+ meta?: Record<string, any> | undefined;
58
59
  state?: import("..").WorkspaceElementState | undefined;
59
60
  errors?: import("../errors").ErrorDataSchema[] | undefined;
60
61
  revision?: string | undefined;
@@ -80,8 +81,8 @@ export declare class ConnectionAccessor {
80
81
  appUuid?: string | undefined;
81
82
  authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
82
83
  } | undefined;
84
+ meta?: Record<string, any> | undefined;
83
85
  state?: import("..").WorkspaceElementState | undefined;
84
- errors?: import("../errors").ErrorDataSchema[] | undefined;
85
86
  archivedAt?: string | undefined;
86
87
  isDeactivated?: boolean | undefined;
87
88
  authOptionKey?: string | undefined;
@@ -89,6 +90,7 @@ export declare class ConnectionAccessor {
89
90
  id: string;
90
91
  name: string;
91
92
  internalId: string;
93
+ meta?: Record<string, any> | undefined;
92
94
  createdAt?: string | undefined;
93
95
  archivedAt?: string | undefined;
94
96
  credentials?: any;
@@ -98,7 +100,6 @@ export declare class ConnectionAccessor {
98
100
  isBillable?: boolean | undefined;
99
101
  } | undefined;
100
102
  isTest?: boolean | undefined;
101
- meta?: Record<string, any> | undefined;
102
103
  disconnected?: boolean | undefined;
103
104
  isDefunct?: boolean | undefined;
104
105
  lastActiveAt?: string | undefined;
@@ -49,8 +49,8 @@ export declare class IntegrationAccessor extends ElementAccessor<Integration, Up
49
49
  name: string;
50
50
  createdAt: string;
51
51
  updatedAt: string;
52
- userId: string;
53
52
  integrationId: string;
53
+ userId: string;
54
54
  error?: import("..").ErrorDataSchema | undefined;
55
55
  integration?: {
56
56
  id: string;
@@ -59,6 +59,7 @@ export declare class IntegrationAccessor extends ElementAccessor<Integration, Up
59
59
  key?: string | undefined;
60
60
  uuid?: string | undefined;
61
61
  description?: string | undefined;
62
+ meta?: Record<string, any> | undefined;
62
63
  state?: import("..").WorkspaceElementState | undefined;
63
64
  errors?: import("..").ErrorDataSchema[] | undefined;
64
65
  revision?: string | undefined;
@@ -84,8 +85,8 @@ export declare class IntegrationAccessor extends ElementAccessor<Integration, Up
84
85
  appUuid?: string | undefined;
85
86
  authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
86
87
  } | undefined;
88
+ meta?: Record<string, any> | undefined;
87
89
  state?: import("..").WorkspaceElementState | undefined;
88
- errors?: import("..").ErrorDataSchema[] | undefined;
89
90
  archivedAt?: string | undefined;
90
91
  isDeactivated?: boolean | undefined;
91
92
  authOptionKey?: string | undefined;
@@ -93,6 +94,7 @@ export declare class IntegrationAccessor extends ElementAccessor<Integration, Up
93
94
  id: string;
94
95
  name: string;
95
96
  internalId: string;
97
+ meta?: Record<string, any> | undefined;
96
98
  createdAt?: string | undefined;
97
99
  archivedAt?: string | undefined;
98
100
  credentials?: any;
@@ -102,7 +104,6 @@ export declare class IntegrationAccessor extends ElementAccessor<Integration, Up
102
104
  isBillable?: boolean | undefined;
103
105
  } | undefined;
104
106
  isTest?: boolean | undefined;
105
- meta?: Record<string, any> | undefined;
106
107
  disconnected?: boolean | undefined;
107
108
  isDefunct?: boolean | undefined;
108
109
  lastActiveAt?: string | undefined;
@@ -1,9 +1,10 @@
1
1
  import { MembraneApiClient } from '../api-client';
2
2
  import { ElementAccessor, ElementListAccessor } from './base-accessors';
3
- import { CreateScenarioRequest, FindScenariosQuery, Scenario, UpdateScenarioRequest } from '../workspace-elements/api/scenarios-api';
4
- export declare class ScenariosAccessor extends ElementListAccessor<Scenario, FindScenariosQuery, CreateScenarioRequest> {
3
+ import { ScenarioEditableProperties } from '../workspace-elements';
4
+ import { FindScenariosQuery, Scenario } from '../workspace-elements/api/scenarios-api';
5
+ export declare class ScenariosAccessor extends ElementListAccessor<Scenario, FindScenariosQuery, ScenarioEditableProperties> {
5
6
  constructor(client: MembraneApiClient);
6
7
  }
7
- export declare class ScenarioAccessor extends ElementAccessor<Scenario, UpdateScenarioRequest> {
8
+ export declare class ScenarioAccessor extends ElementAccessor<Scenario, Partial<ScenarioEditableProperties>> {
8
9
  constructor(client: MembraneApiClient, selector: string);
9
10
  }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,42 @@
1
+ import { z } from 'zod';
2
+ export declare const CONFIG_FILE_NAME = "membrane.config.yml";
3
+ export declare const membraneConfigSchema: z.ZodObject<{
4
+ workspaceKey: z.ZodString;
5
+ workspaceSecret: z.ZodString;
6
+ apiUri: z.ZodOptional<z.ZodString>;
7
+ testCustomerId: z.ZodOptional<z.ZodString>;
8
+ }, "strip", z.ZodTypeAny, {
9
+ workspaceKey: string;
10
+ workspaceSecret: string;
11
+ apiUri?: string | undefined;
12
+ testCustomerId?: string | undefined;
13
+ }, {
14
+ workspaceKey: string;
15
+ workspaceSecret: string;
16
+ apiUri?: string | undefined;
17
+ testCustomerId?: string | undefined;
18
+ }>;
19
+ export type MembraneConfig = z.infer<typeof membraneConfigSchema>;
20
+ export type PartialMembraneConfig = Partial<MembraneConfig>;
21
+ export interface LoadConfigOptions {
22
+ validate?: boolean;
23
+ useCache?: boolean;
24
+ }
25
+ export declare class MembraneConfigLoader {
26
+ private cachedConfig;
27
+ private cwd;
28
+ constructor(cwd?: string);
29
+ loadConfig(options?: LoadConfigOptions): PartialMembraneConfig;
30
+ hasValidConfig(): boolean;
31
+ hasWorkspaceCredentials(): boolean;
32
+ clearCache(): void;
33
+ updateConfig(newConfig: PartialMembraneConfig): PartialMembraneConfig;
34
+ saveToFile(config: PartialMembraneConfig): boolean;
35
+ getCwd(): string;
36
+ setCwd(newCwd: string): void;
37
+ private loadFromFile;
38
+ private loadFromEnv;
39
+ }
40
+ export declare function getDefaultMembraneConfigLoader(): MembraneConfigLoader;
41
+ export declare function loadMembraneConfig(cwd?: string, options?: LoadConfigOptions): PartialMembraneConfig;
42
+ export declare function hasMembraneCredentials(cwd?: string): boolean;
@@ -77,12 +77,12 @@ export declare const CommonIntegrationOrConnectionQuery: z.ZodObject<{
77
77
  integrationId: z.ZodOptional<z.ZodString>;
78
78
  integrationKey: z.ZodOptional<z.ZodString>;
79
79
  }, "strip", z.ZodTypeAny, {
80
- connectionId?: string | undefined;
81
80
  integrationId?: string | undefined;
81
+ connectionId?: string | undefined;
82
82
  integrationKey?: string | undefined;
83
83
  }, {
84
- connectionId?: string | undefined;
85
84
  integrationId?: string | undefined;
85
+ connectionId?: string | undefined;
86
86
  integrationKey?: string | undefined;
87
87
  }>;
88
88
  export type CommonIntegrationOrConnectionQuery = z.infer<typeof CommonIntegrationOrConnectionQuery>;
@@ -0,0 +1,31 @@
1
+ export * from './errors';
2
+ export * from './workspace-elements';
3
+ export * from './workspace-elements-catalog';
4
+ export * from './auth';
5
+ export * from './connector-copilot';
6
+ export * from './data-builder';
7
+ export * from './data-filter';
8
+ export * from './formulas';
9
+ export * from './locators';
10
+ export * from './error-tools';
11
+ export * from './data-form';
12
+ export * from './data-schema';
13
+ export * from './data-schema-utils';
14
+ export * from './date-time';
15
+ export * from './entity-repository';
16
+ export * from './http-requests';
17
+ export * from './integration-elements';
18
+ export * from './logging';
19
+ export * from './usage';
20
+ export * from './variables';
21
+ export * from './workspaces';
22
+ export * from './apps';
23
+ export * from './workspace-updates';
24
+ export * from './orgs';
25
+ export * from './webhooks';
26
+ export * from './alerts';
27
+ export * from './accessors';
28
+ export * from './sse';
29
+ export * from './scenario-templates';
30
+ export { MembraneClient as IntegrationAppClient } from './client';
31
+ export { MembraneClient as MembraneClient } from './client';
@@ -26,5 +26,7 @@ export * from './webhooks';
26
26
  export * from './alerts';
27
27
  export * from './accessors';
28
28
  export * from './sse';
29
+ export * from './scenario-templates';
30
+ export * from './config';
29
31
  export { MembraneClient as IntegrationAppClient } from './client';
30
32
  export { MembraneClient as MembraneClient } from './client';
@@ -0,0 +1,2 @@
1
+ export * from './index.browser';
2
+ export * from './config';
@@ -27,7 +27,6 @@ export interface ElementTemplateFields {
27
27
  integrationId?: string;
28
28
  integration?: Integration;
29
29
  parentId?: string;
30
- parentRevision?: string;
31
30
  isCustomized?: boolean;
32
31
  createdAt?: string;
33
32
  updatedAt?: string;
@@ -38,7 +37,6 @@ export interface ElementInstanceFields {
38
37
  name: string;
39
38
  revision: string;
40
39
  parentId?: string;
41
- parentRevision?: string;
42
40
  universalParentId?: string;
43
41
  userId: string;
44
42
  user?: Customer;
@@ -1,4 +1,6 @@
1
1
  import { z } from 'zod';
2
+ import { SearchQuery, PaginationQuery } from '../entity-repository';
3
+ import { IntegrationElementType } from '../integration-elements';
2
4
  export declare enum ScenarioTemplateCategory {
3
5
  DataExport = "data-export",
4
6
  DataImport = "data-import",
@@ -6,156 +8,6 @@ export declare enum ScenarioTemplateCategory {
6
8
  UnifiedApi = "unified-api",
7
9
  DataEnrichment = "data-enrichment"
8
10
  }
9
- export declare const ScenarioToDo: z.ZodObject<{
10
- name: z.ZodString;
11
- description: z.ZodString;
12
- isComplete: z.ZodBoolean;
13
- }, "strip", z.ZodTypeAny, {
14
- name: string;
15
- description: string;
16
- isComplete: boolean;
17
- }, {
18
- name: string;
19
- description: string;
20
- isComplete: boolean;
21
- }>;
22
- export type ScenarioToDo = z.infer<typeof ScenarioToDo>;
23
- export declare const ScenarioElement: z.ZodObject<{
24
- id: z.ZodString;
25
- type: z.ZodString;
26
- element: z.ZodOptional<z.ZodAny>;
27
- }, "strip", z.ZodTypeAny, {
28
- type: string;
29
- id: string;
30
- element?: any;
31
- }, {
32
- type: string;
33
- id: string;
34
- element?: any;
35
- }>;
36
- export type ScenarioElement = z.infer<typeof ScenarioElement>;
37
- export declare const BaseScenario: z.ZodObject<{
38
- id: z.ZodString;
39
- key: z.ZodOptional<z.ZodString>;
40
- uuid: z.ZodOptional<z.ZodString>;
41
- description: z.ZodOptional<z.ZodString>;
42
- name: z.ZodString;
43
- state: z.ZodOptional<z.ZodNativeEnum<typeof import("../../types").WorkspaceElementState>>;
44
- errors: z.ZodOptional<z.ZodArray<z.ZodType<import("../../..").ErrorDataSchema, z.ZodTypeDef, import("../../..").ErrorDataSchema>, "many">>;
45
- revision: z.ZodOptional<z.ZodString>;
46
- createdAt: z.ZodOptional<z.ZodString>;
47
- updatedAt: z.ZodOptional<z.ZodString>;
48
- isDeactivated: z.ZodOptional<z.ZodBoolean>;
49
- } & {
50
- appId: z.ZodString;
51
- scenarioTemplateId: z.ZodOptional<z.ZodString>;
52
- elements: z.ZodOptional<z.ZodArray<z.ZodObject<{
53
- id: z.ZodString;
54
- type: z.ZodString;
55
- element: z.ZodOptional<z.ZodAny>;
56
- }, "strip", z.ZodTypeAny, {
57
- type: string;
58
- id: string;
59
- element?: any;
60
- }, {
61
- type: string;
62
- id: string;
63
- element?: any;
64
- }>, "many">>;
65
- connectors: z.ZodOptional<z.ZodArray<z.ZodObject<{
66
- id: z.ZodString;
67
- key: z.ZodString;
68
- name: z.ZodString;
69
- logoUri: z.ZodString;
70
- }, "strip", z.ZodTypeAny, {
71
- key: string;
72
- id: string;
73
- name: string;
74
- logoUri: string;
75
- }, {
76
- key: string;
77
- id: string;
78
- name: string;
79
- logoUri: string;
80
- }>, "many">>;
81
- todos: z.ZodOptional<z.ZodArray<z.ZodObject<{
82
- name: z.ZodString;
83
- description: z.ZodString;
84
- isComplete: z.ZodBoolean;
85
- }, "strip", z.ZodTypeAny, {
86
- name: string;
87
- description: string;
88
- isComplete: boolean;
89
- }, {
90
- name: string;
91
- description: string;
92
- isComplete: boolean;
93
- }>, "many">>;
94
- archivedAt: z.ZodOptional<z.ZodString>;
95
- }, "strip", z.ZodTypeAny, {
96
- id: string;
97
- name: string;
98
- appId: string;
99
- key?: string | undefined;
100
- uuid?: string | undefined;
101
- description?: string | undefined;
102
- state?: import("../../types").WorkspaceElementState | undefined;
103
- errors?: import("../../..").ErrorDataSchema[] | undefined;
104
- revision?: string | undefined;
105
- createdAt?: string | undefined;
106
- updatedAt?: string | undefined;
107
- archivedAt?: string | undefined;
108
- isDeactivated?: boolean | undefined;
109
- scenarioTemplateId?: string | undefined;
110
- elements?: {
111
- type: string;
112
- id: string;
113
- element?: any;
114
- }[] | undefined;
115
- connectors?: {
116
- key: string;
117
- id: string;
118
- name: string;
119
- logoUri: string;
120
- }[] | undefined;
121
- todos?: {
122
- name: string;
123
- description: string;
124
- isComplete: boolean;
125
- }[] | undefined;
126
- }, {
127
- id: string;
128
- name: string;
129
- appId: string;
130
- key?: string | undefined;
131
- uuid?: string | undefined;
132
- description?: string | undefined;
133
- state?: import("../../types").WorkspaceElementState | undefined;
134
- errors?: import("../../..").ErrorDataSchema[] | undefined;
135
- revision?: string | undefined;
136
- createdAt?: string | undefined;
137
- updatedAt?: string | undefined;
138
- archivedAt?: string | undefined;
139
- isDeactivated?: boolean | undefined;
140
- scenarioTemplateId?: string | undefined;
141
- elements?: {
142
- type: string;
143
- id: string;
144
- element?: any;
145
- }[] | undefined;
146
- connectors?: {
147
- key: string;
148
- id: string;
149
- name: string;
150
- logoUri: string;
151
- }[] | undefined;
152
- todos?: {
153
- name: string;
154
- description: string;
155
- isComplete: boolean;
156
- }[] | undefined;
157
- }>;
158
- export type BaseScenario = z.infer<typeof BaseScenario>;
159
11
  export declare const HandyScenarioTemplateElement: z.ZodObject<{
160
12
  type: z.ZodString;
161
13
  integration: z.ZodOptional<z.ZodObject<{
@@ -538,17 +390,6 @@ export declare const ScenarioTemplate: z.ZodObject<{
538
390
  connectorId: string;
539
391
  }> | undefined;
540
392
  }>>>;
541
- todos: z.ZodOptional<z.ZodArray<z.ZodObject<Omit<{
542
- name: z.ZodString;
543
- description: z.ZodString;
544
- isComplete: z.ZodBoolean;
545
- }, "isComplete">, "strip", z.ZodTypeAny, {
546
- name: string;
547
- description: string;
548
- }, {
549
- name: string;
550
- description: string;
551
- }>, "many">>;
552
393
  connectors: z.ZodOptional<z.ZodArray<z.ZodObject<{
553
394
  id: z.ZodString;
554
395
  key: z.ZodString;
@@ -658,10 +499,6 @@ export declare const ScenarioTemplate: z.ZodObject<{
658
499
  name: string;
659
500
  logoUri: string;
660
501
  }[] | undefined;
661
- todos?: {
662
- name: string;
663
- description: string;
664
- }[] | undefined;
665
502
  shortDescription?: string | undefined;
666
503
  demoWorkspaceKey?: string | undefined;
667
504
  demoAppUri?: string | undefined;
@@ -715,10 +552,6 @@ export declare const ScenarioTemplate: z.ZodObject<{
715
552
  name: string;
716
553
  logoUri: string;
717
554
  }[] | undefined;
718
- todos?: {
719
- name: string;
720
- description: string;
721
- }[] | undefined;
722
555
  shortDescription?: string | undefined;
723
556
  demoWorkspaceKey?: string | undefined;
724
557
  demoAppUri?: string | undefined;
@@ -742,3 +575,65 @@ export declare const ScenarioTemplate: z.ZodObject<{
742
575
  }[] | undefined;
743
576
  }>;
744
577
  export type ScenarioTemplate = z.infer<typeof ScenarioTemplate>;
578
+ export interface FindScenarioTemplatesQuery extends SearchQuery, PaginationQuery {
579
+ }
580
+ export interface CreateScenarioTemplateRequest {
581
+ name: string;
582
+ shortDescription?: string;
583
+ description?: string;
584
+ demoWorkspaceKey?: string;
585
+ demoAppUri?: string;
586
+ demoGithubRepo?: string;
587
+ demoVideoYoutubeUri?: string;
588
+ tags?: string[];
589
+ elements?: ScenarioTemplateElementsApi;
590
+ }
591
+ export interface UpdateScenarioTemplateRequest {
592
+ name?: string;
593
+ key?: string;
594
+ shortDescription?: string;
595
+ description?: string;
596
+ demoWorkspaceKey?: string;
597
+ demoAppUri?: string;
598
+ demoGithubRepo?: string;
599
+ demoVideoYoutubeUri?: string;
600
+ tags?: string[];
601
+ elements?: ScenarioTemplateElementsApi;
602
+ }
603
+ export type ScenarioTemplateElementOverride = {
604
+ type: IntegrationElementType;
605
+ originalKey: string;
606
+ name: string;
607
+ key: string;
608
+ };
609
+ export type ScenarioTemplateKeyCollision = {
610
+ type: IntegrationElementType;
611
+ key: string;
612
+ };
613
+ export type ScenarioTemplateIntegration = {
614
+ id?: string;
615
+ connectorId: string;
616
+ key: string;
617
+ name: string;
618
+ logoUri: string;
619
+ };
620
+ export type ScenarioTemplateElementsApi = ElementsExportFields & {
621
+ integrations?: Record<string, ElementsExportFields & {
622
+ connectorId: string;
623
+ }>;
624
+ };
625
+ export interface HandyScenarioTemplateElementApi {
626
+ type: IntegrationElementType;
627
+ integration?: {
628
+ key: string;
629
+ connectorId: string;
630
+ };
631
+ integrations?: {
632
+ key: string;
633
+ connectorId: string;
634
+ }[];
635
+ fields: {
636
+ key: string;
637
+ name: string;
638
+ } & Record<string, any>;
639
+ }