@membranehq/sdk 0.5.1 → 0.6.0

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 (66) hide show
  1. package/dist/bundle.d.ts +1949 -3947
  2. package/dist/bundle.js +9 -4
  3. package/dist/bundle.js.map +1 -1
  4. package/dist/dts/accessors/action-instances-accessors.d.ts +5 -2
  5. package/dist/dts/accessors/actions-accessors.d.ts +2 -2
  6. package/dist/dts/accessors/connections-accessors.d.ts +8 -22
  7. package/dist/dts/accessors/integrations-accessors.d.ts +8 -22
  8. package/dist/dts/errors/index.d.ts +10 -1
  9. package/dist/dts/workspace-elements/api/action-instances-api.d.ts +122 -68
  10. package/dist/dts/workspace-elements/api/action-run-log-records-api.d.ts +74 -189
  11. package/dist/dts/workspace-elements/api/actions-api.d.ts +253 -531
  12. package/dist/dts/workspace-elements/api/app-data-schema-instances-api.d.ts +21 -21
  13. package/dist/dts/workspace-elements/api/app-data-schemas-api.d.ts +7 -7
  14. package/dist/dts/workspace-elements/api/app-event-log-records-api.d.ts +22 -22
  15. package/dist/dts/workspace-elements/api/app-event-subscriptions-api.d.ts +18 -18
  16. package/dist/dts/workspace-elements/api/app-event-types-api.d.ts +7 -7
  17. package/dist/dts/workspace-elements/api/connections-api.d.ts +354 -273
  18. package/dist/dts/workspace-elements/api/data-link-table-instances-api.d.ts +55 -149
  19. package/dist/dts/workspace-elements/api/data-link-tables-api.d.ts +7 -7
  20. package/dist/dts/workspace-elements/api/data-source-instances-api.d.ts +60 -154
  21. package/dist/dts/workspace-elements/api/data-sources-api.d.ts +62 -254
  22. package/dist/dts/workspace-elements/api/external-event-log-records-api.d.ts +45 -139
  23. package/dist/dts/workspace-elements/api/external-event-pulls-api.d.ts +45 -139
  24. package/dist/dts/workspace-elements/api/external-event-subscriptions-api.d.ts +40 -134
  25. package/dist/dts/workspace-elements/api/external-events-api.d.ts +20 -128
  26. package/dist/dts/workspace-elements/api/field-mapping-instances-api.d.ts +158 -374
  27. package/dist/dts/workspace-elements/api/field-mappings-api.d.ts +56 -248
  28. package/dist/dts/workspace-elements/api/flow-runs-api.d.ts +140 -356
  29. package/dist/dts/workspace-elements/api/flows-api.d.ts +265 -753
  30. package/dist/dts/workspace-elements/api/integrations-api.d.ts +135 -101
  31. package/dist/dts/workspace-elements/api/scenarios-api.d.ts +21 -105
  32. package/dist/dts/workspace-elements/base/action-instances/types.d.ts +13 -13
  33. package/dist/dts/workspace-elements/base/action-run-log-records/types.d.ts +4 -3
  34. package/dist/dts/workspace-elements/base/actions/index.d.ts +111 -1
  35. package/dist/dts/workspace-elements/base/app-data-schema-instances/types.d.ts +11 -10
  36. package/dist/dts/workspace-elements/base/app-data-schemas/types.d.ts +7 -7
  37. package/dist/dts/workspace-elements/base/app-event-subscriptions/types.d.ts +7 -7
  38. package/dist/dts/workspace-elements/base/app-event-types/types.d.ts +7 -7
  39. package/dist/dts/workspace-elements/base/connections/types.d.ts +14 -19
  40. package/dist/dts/workspace-elements/base/data-link-table-instances/types.d.ts +7 -7
  41. package/dist/dts/workspace-elements/base/data-link-tables/types.d.ts +7 -7
  42. package/dist/dts/workspace-elements/base/data-source-instances/types.d.ts +10 -9
  43. package/dist/dts/workspace-elements/base/data-sources/types.d.ts +8 -8
  44. package/dist/dts/workspace-elements/base/external-event-log-records/types.d.ts +4 -3
  45. package/dist/dts/workspace-elements/base/external-event-pulls/types.d.ts +4 -3
  46. package/dist/dts/workspace-elements/base/external-event-subscriptions/types.d.ts +4 -3
  47. package/dist/dts/workspace-elements/base/field-mapping-instances/types.d.ts +11 -10
  48. package/dist/dts/workspace-elements/base/field-mappings/types.d.ts +9 -9
  49. package/dist/dts/workspace-elements/base/flow-instances/schemas.d.ts +12 -12
  50. package/dist/dts/workspace-elements/base/flow-instances/types.d.ts +17 -16
  51. package/dist/dts/workspace-elements/base/flow-runs/flow-node-runs.d.ts +16 -16
  52. package/dist/dts/workspace-elements/base/flow-runs/types.d.ts +6 -5
  53. package/dist/dts/workspace-elements/base/flows/types.d.ts +21 -21
  54. package/dist/dts/workspace-elements/base/integrations/types.d.ts +48 -455
  55. package/dist/dts/workspace-elements/base/scenarios/types.d.ts +7 -7
  56. package/dist/dts/workspace-elements/types.d.ts +53 -9
  57. package/dist/dts/workspace-elements-catalog/index.d.ts +3 -0
  58. package/dist/dts/workspaces/types.d.ts +3 -1
  59. package/dist/index.d.ts +2791 -5337
  60. package/dist/index.js +70 -66
  61. package/dist/index.js.map +1 -1
  62. package/dist/index.module.d.mts +2791 -5337
  63. package/dist/index.module.mjs +67 -66
  64. package/dist/index.module.mjs.map +1 -1
  65. package/package.json +1 -3
  66. package/dist/dts/workspace-elements/base/actions/types.d.ts +0 -85
@@ -1,9 +1,12 @@
1
1
  import { IntegrationAppApiClient } from '../api-client';
2
+ import { OpenConfigurationOptions } from '../iframe';
2
3
  import { ElementInstanceAccessor, ElementInstanceListAccessor } from './base-accessors';
3
4
  import { InstanceKeyQuery } from '../integration-elements/common';
4
5
  import { ConnectionLevelElementAccessor, ConnectionLevelElementsListAccessor } from '../integration-elements/connection-level-element.accessor';
5
- import { ActionInstance } from '../workspace-elements/api/action-instances-api';
6
- import { ActionInstanceSelector, ActionRunResponse, CreateActionInstanceRequest, FindActionInstancesQuery, ListActionInstancesForConnectionQuery, OpenActionConfigurationOptions, UpdateActionInstanceRequest } from '../workspace-elements/api/actions-api';
6
+ import { ActionInstance, ActionInstanceSelector, CreateActionInstanceRequest, FindActionInstancesQuery, ListActionInstancesForConnectionQuery, UpdateActionInstanceRequest } from '../workspace-elements/api/action-instances-api';
7
+ import { ActionRunResponse } from '../workspace-elements/api/actions-api';
8
+ export interface OpenActionConfigurationOptions extends OpenConfigurationOptions {
9
+ }
7
10
  export declare class ActionInstancesAccessor extends ElementInstanceListAccessor<ActionInstance, FindActionInstancesQuery> {
8
11
  constructor(client: IntegrationAppApiClient);
9
12
  }
@@ -1,7 +1,7 @@
1
1
  import { IntegrationAppApiClient } from '../api-client';
2
2
  import { ElementAccessor, ElementListAccessor } from './base-accessors';
3
3
  import { IntegrationLevelElementAccessor, IntegrationLevelElementsListAccessor } from '../integration-elements/integration-level-element.accessor';
4
- import { Action, ActionSelector, CreateActionRequest, FindActionsQuery, ListActionsForIntegrationQuery, UpdateActionRequest } from '../workspace-elements/api/actions-api';
4
+ import { Action, ActionSelector, CreateActionRequest, FindActionsQuery, UpdateActionRequest } from '../workspace-elements/api/actions-api';
5
5
  export declare class ActionsAccessor extends ElementListAccessor<Action, FindActionsQuery, CreateActionRequest> {
6
6
  constructor(client: IntegrationAppApiClient);
7
7
  }
@@ -16,7 +16,7 @@ export declare class IntegrationLevelActionAccessor extends IntegrationLevelElem
16
16
  actionSelector: string;
17
17
  constructor(client: IntegrationAppApiClient, integrationSelector: string, actionSelector: string);
18
18
  }
19
- export declare class IntegrationLevelActionsListAccessor extends IntegrationLevelElementsListAccessor<Action, ListActionsForIntegrationQuery, Omit<CreateActionRequest, 'integrationId'>> {
19
+ export declare class IntegrationLevelActionsListAccessor extends IntegrationLevelElementsListAccessor<Action, Omit<FindActionsQuery, 'integrationId'>, Omit<CreateActionRequest, 'integrationId'>> {
20
20
  client: IntegrationAppApiClient;
21
21
  integrationSelector: string;
22
22
  constructor(client: IntegrationAppApiClient, integrationSelector: string);
@@ -47,37 +47,24 @@ export declare class ConnectionAccessor {
47
47
  updatedAt: string;
48
48
  userId: string;
49
49
  integrationId: string;
50
- error?: any;
50
+ error?: import("../errors").ErrorDataSchema | undefined;
51
51
  integration?: {
52
52
  id: string;
53
53
  name: string;
54
- baseUri: string;
55
54
  logoUri: string;
56
55
  key?: string | undefined;
57
56
  uuid?: string | undefined;
58
57
  description?: string | undefined;
59
58
  state?: import("..").WorkspaceElementState | undefined;
60
- errors?: any[] | undefined;
59
+ errors?: import("../errors").ErrorDataSchema[] | undefined;
61
60
  revision?: string | undefined;
62
- isDeactivated?: boolean | undefined;
63
61
  createdAt?: string | undefined;
64
62
  updatedAt?: string | undefined;
65
63
  archivedAt?: string | undefined;
64
+ isDeactivated?: boolean | undefined;
66
65
  parameters?: any;
67
- parametersSchema?: import("..").DataSchema | undefined;
68
- isTest?: boolean | undefined;
69
66
  connectorId?: string | undefined;
70
67
  connectorVersion?: string | undefined;
71
- authOptions?: {
72
- key: string;
73
- type: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials";
74
- description?: string | undefined;
75
- title?: string | undefined;
76
- ui?: {
77
- schema?: any;
78
- helpUri?: string | undefined;
79
- } | undefined;
80
- }[] | undefined;
81
68
  oAuthCallbackUri?: string | undefined;
82
69
  hasMissingParameters?: boolean | undefined;
83
70
  hasDocumentation?: boolean | undefined;
@@ -89,16 +76,15 @@ export declare class ConnectionAccessor {
89
76
  eventsCount?: number | undefined;
90
77
  hasGlobalWebhooks?: boolean | undefined;
91
78
  hasUdm?: boolean | undefined;
79
+ isTest?: boolean | undefined;
92
80
  appUuid?: string | undefined;
93
81
  authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
94
82
  } | undefined;
95
83
  state?: import("..").WorkspaceElementState | undefined;
96
- errors?: any[] | undefined;
97
- isDeactivated?: boolean | undefined;
84
+ errors?: import("../errors").ErrorDataSchema[] | undefined;
98
85
  archivedAt?: string | undefined;
99
- credentials?: unknown;
100
- parameters?: unknown;
101
- connectorParameters?: unknown;
86
+ isDeactivated?: boolean | undefined;
87
+ authOptionKey?: string | undefined;
102
88
  user?: {
103
89
  id: string;
104
90
  name: string;
@@ -112,11 +98,11 @@ export declare class ConnectionAccessor {
112
98
  isBillable?: boolean | undefined;
113
99
  } | undefined;
114
100
  isTest?: boolean | undefined;
101
+ meta?: Record<string, any> | undefined;
115
102
  disconnected?: boolean | undefined;
116
103
  isDefunct?: boolean | undefined;
117
104
  lastActiveAt?: string | undefined;
118
105
  nextCredentialsRefreshAt?: string | undefined;
119
- meta?: Record<string, any> | undefined;
120
106
  } | undefined>;
121
107
  openReconnectUI({}?: OpenConfigurationOptions): Promise<void>;
122
108
  refreshCredentials(): Promise<void>;
@@ -51,37 +51,24 @@ export declare class IntegrationAccessor extends ElementAccessor<Integration, Up
51
51
  updatedAt: string;
52
52
  userId: string;
53
53
  integrationId: string;
54
- error?: any;
54
+ error?: import("..").ErrorDataSchema | undefined;
55
55
  integration?: {
56
56
  id: string;
57
57
  name: string;
58
- baseUri: string;
59
58
  logoUri: string;
60
59
  key?: string | undefined;
61
60
  uuid?: string | undefined;
62
61
  description?: string | undefined;
63
62
  state?: import("..").WorkspaceElementState | undefined;
64
- errors?: any[] | undefined;
63
+ errors?: import("..").ErrorDataSchema[] | undefined;
65
64
  revision?: string | undefined;
66
- isDeactivated?: boolean | undefined;
67
65
  createdAt?: string | undefined;
68
66
  updatedAt?: string | undefined;
69
67
  archivedAt?: string | undefined;
68
+ isDeactivated?: boolean | undefined;
70
69
  parameters?: any;
71
- parametersSchema?: import("..").DataSchema | undefined;
72
- isTest?: boolean | undefined;
73
70
  connectorId?: string | undefined;
74
71
  connectorVersion?: string | undefined;
75
- authOptions?: {
76
- key: string;
77
- type: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials";
78
- description?: string | undefined;
79
- title?: string | undefined;
80
- ui?: {
81
- schema?: any;
82
- helpUri?: string | undefined;
83
- } | undefined;
84
- }[] | undefined;
85
72
  oAuthCallbackUri?: string | undefined;
86
73
  hasMissingParameters?: boolean | undefined;
87
74
  hasDocumentation?: boolean | undefined;
@@ -93,16 +80,15 @@ export declare class IntegrationAccessor extends ElementAccessor<Integration, Up
93
80
  eventsCount?: number | undefined;
94
81
  hasGlobalWebhooks?: boolean | undefined;
95
82
  hasUdm?: boolean | undefined;
83
+ isTest?: boolean | undefined;
96
84
  appUuid?: string | undefined;
97
85
  authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
98
86
  } | undefined;
99
87
  state?: import("..").WorkspaceElementState | undefined;
100
- errors?: any[] | undefined;
101
- isDeactivated?: boolean | undefined;
88
+ errors?: import("..").ErrorDataSchema[] | undefined;
102
89
  archivedAt?: string | undefined;
103
- credentials?: unknown;
104
- parameters?: unknown;
105
- connectorParameters?: unknown;
90
+ isDeactivated?: boolean | undefined;
91
+ authOptionKey?: string | undefined;
106
92
  user?: {
107
93
  id: string;
108
94
  name: string;
@@ -116,11 +102,11 @@ export declare class IntegrationAccessor extends ElementAccessor<Integration, Up
116
102
  isBillable?: boolean | undefined;
117
103
  } | undefined;
118
104
  isTest?: boolean | undefined;
105
+ meta?: Record<string, any> | undefined;
119
106
  disconnected?: boolean | undefined;
120
107
  isDefunct?: boolean | undefined;
121
108
  lastActiveAt?: string | undefined;
122
109
  nextCredentialsRefreshAt?: string | undefined;
123
- meta?: Record<string, any> | undefined;
124
110
  } | undefined>;
125
111
  createConnection({ parameters, name }: {
126
112
  parameters?: any;
@@ -28,7 +28,16 @@ export declare enum ConnectionErrorKey {
28
28
  export declare enum ConcurrencyErrorKey {
29
29
  LOCK_TIMEOUT = "lock_timeout"
30
30
  }
31
- export declare const ErrorDataSchema: any;
31
+ export interface ErrorDataSchema {
32
+ type?: ErrorType;
33
+ key?: string;
34
+ message: string;
35
+ data?: any;
36
+ stack?: any;
37
+ causedByError?: ErrorDataSchema;
38
+ logs?: any[];
39
+ }
40
+ export declare const ErrorDataSchema: z.ZodType<ErrorDataSchema>;
32
41
  interface ErrorDataFields extends z.infer<typeof ErrorDataSchema> {
33
42
  }
34
43
  export type ErrorConstructorArg = string | ErrorDataFields | Error;
@@ -1,25 +1,27 @@
1
1
  import { z } from 'zod';
2
+ import { ConnectionSelector } from './connections-api';
3
+ import { ElementInstanceSelector } from '../../accessors';
2
4
  export declare const ActionInstanceApiResponse: z.ZodObject<{
3
5
  id: z.ZodString;
4
- name: z.ZodString;
5
- } & {
6
6
  key: z.ZodOptional<z.ZodString>;
7
7
  uuid: z.ZodOptional<z.ZodString>;
8
8
  description: z.ZodOptional<z.ZodString>;
9
+ } & {
10
+ name: z.ZodString;
9
11
  state: z.ZodOptional<z.ZodNativeEnum<typeof import("..").WorkspaceElementState>>;
10
- errors: z.ZodOptional<z.ZodArray<any, "many">>;
12
+ errors: z.ZodOptional<z.ZodArray<z.ZodType<import("../..").ErrorDataSchema, z.ZodTypeDef, import("../..").ErrorDataSchema>, "many">>;
11
13
  revision: z.ZodOptional<z.ZodString>;
12
- isDeactivated: z.ZodOptional<z.ZodBoolean>;
13
14
  createdAt: z.ZodOptional<z.ZodString>;
14
15
  updatedAt: z.ZodOptional<z.ZodString>;
15
16
  archivedAt: z.ZodOptional<z.ZodString>;
17
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
16
18
  } & {
17
19
  parentId: z.ZodOptional<z.ZodString>;
18
20
  parentRevision: z.ZodOptional<z.ZodString>;
19
21
  universalParentId: z.ZodOptional<z.ZodString>;
20
22
  userId: z.ZodString;
21
23
  instanceKey: z.ZodOptional<z.ZodString>;
22
- type: z.ZodNativeEnum<typeof import("../base/actions").ActionType>;
24
+ type: z.ZodOptional<z.ZodNativeEnum<typeof import("../base/actions").ActionType>>;
23
25
  inputSchema: z.ZodOptional<z.ZodAny>;
24
26
  config: z.ZodOptional<z.ZodAny>;
25
27
  outputSchema: z.ZodOptional<z.ZodAny>;
@@ -61,100 +63,87 @@ export declare const ActionInstanceApiResponse: z.ZodObject<{
61
63
  }>>;
62
64
  parent: z.ZodOptional<z.ZodObject<{
63
65
  id: z.ZodString;
64
- name: z.ZodString;
65
- } & {
66
- key: z.ZodOptional<z.ZodString>;
67
- uuid: z.ZodOptional<z.ZodString>;
68
- description: z.ZodOptional<z.ZodString>;
69
66
  state: z.ZodOptional<z.ZodNativeEnum<typeof import("..").WorkspaceElementState>>;
70
- errors: z.ZodOptional<z.ZodArray<any, "many">>;
67
+ errors: z.ZodOptional<z.ZodArray<z.ZodType<import("../..").ErrorDataSchema, z.ZodTypeDef, import("../..").ErrorDataSchema>, "many">>;
71
68
  revision: z.ZodOptional<z.ZodString>;
72
- isDeactivated: z.ZodOptional<z.ZodBoolean>;
73
69
  createdAt: z.ZodOptional<z.ZodString>;
74
70
  updatedAt: z.ZodOptional<z.ZodString>;
75
71
  archivedAt: z.ZodOptional<z.ZodString>;
76
- } & {
72
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
73
+ uuid: z.ZodOptional<z.ZodString>;
74
+ description: z.ZodOptional<z.ZodString>;
77
75
  integrationId: z.ZodOptional<z.ZodString>;
78
76
  parentId: z.ZodOptional<z.ZodString>;
79
- parentRevision: z.ZodOptional<z.ZodString>;
80
- isCustomized: z.ZodOptional<z.ZodBoolean>;
81
- type: z.ZodNativeEnum<typeof import("../base/actions").ActionType>;
82
77
  inputSchema: z.ZodOptional<z.ZodType<import("../..").DataSchema, z.ZodTypeDef, import("../..").DataSchema>>;
78
+ type: z.ZodOptional<z.ZodNativeEnum<typeof import("../base/actions").ActionType>>;
83
79
  config: z.ZodOptional<z.ZodAny>;
84
80
  outputMapping: z.ZodOptional<z.ZodAny>;
85
81
  customOutputSchema: z.ZodOptional<z.ZodType<import("../..").DataSchema, z.ZodTypeDef, import("../..").DataSchema>>;
86
- defaultOutputSchema: z.ZodOptional<z.ZodType<import("../..").DataSchema, z.ZodTypeDef, import("../..").DataSchema>>;
87
- transformedOutputSchema: z.ZodOptional<z.ZodType<import("../..").DataSchema, z.ZodTypeDef, import("../..").DataSchema>>;
88
- outputSchema: z.ZodOptional<z.ZodType<import("../..").DataSchema, z.ZodTypeDef, import("../..").DataSchema>>;
89
- dependencies: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
82
+ } & {
83
+ key: z.ZodString;
84
+ name: z.ZodString;
85
+ isCustomized: z.ZodOptional<z.ZodBoolean>;
86
+ parentRevision: z.ZodOptional<z.ZodString>;
90
87
  }, "strip", z.ZodTypeAny, {
91
- type: import("../base/actions").ActionType;
88
+ key: string;
92
89
  id: string;
93
90
  name: string;
94
- key?: string | undefined;
91
+ type?: import("../base/actions").ActionType | undefined;
95
92
  uuid?: string | undefined;
96
93
  description?: string | undefined;
97
94
  state?: import("..").WorkspaceElementState | undefined;
98
- errors?: any[] | undefined;
95
+ errors?: import("../..").ErrorDataSchema[] | undefined;
99
96
  revision?: string | undefined;
100
- isDeactivated?: boolean | undefined;
101
97
  createdAt?: string | undefined;
102
98
  updatedAt?: string | undefined;
103
99
  archivedAt?: string | undefined;
100
+ isDeactivated?: boolean | undefined;
104
101
  integrationId?: string | undefined;
105
102
  parentId?: string | undefined;
106
- parentRevision?: string | undefined;
107
- isCustomized?: boolean | undefined;
108
103
  inputSchema?: import("../..").DataSchema | undefined;
109
104
  config?: any;
110
105
  outputMapping?: any;
111
106
  customOutputSchema?: import("../..").DataSchema | undefined;
112
- defaultOutputSchema?: import("../..").DataSchema | undefined;
113
- transformedOutputSchema?: import("../..").DataSchema | undefined;
114
- outputSchema?: import("../..").DataSchema | undefined;
115
- dependencies?: any[] | undefined;
107
+ isCustomized?: boolean | undefined;
108
+ parentRevision?: string | undefined;
116
109
  }, {
117
- type: import("../base/actions").ActionType;
110
+ key: string;
118
111
  id: string;
119
112
  name: string;
120
- key?: string | undefined;
113
+ type?: import("../base/actions").ActionType | undefined;
121
114
  uuid?: string | undefined;
122
115
  description?: string | undefined;
123
116
  state?: import("..").WorkspaceElementState | undefined;
124
- errors?: any[] | undefined;
117
+ errors?: import("../..").ErrorDataSchema[] | undefined;
125
118
  revision?: string | undefined;
126
- isDeactivated?: boolean | undefined;
127
119
  createdAt?: string | undefined;
128
120
  updatedAt?: string | undefined;
129
121
  archivedAt?: string | undefined;
122
+ isDeactivated?: boolean | undefined;
130
123
  integrationId?: string | undefined;
131
124
  parentId?: string | undefined;
132
- parentRevision?: string | undefined;
133
- isCustomized?: boolean | undefined;
134
125
  inputSchema?: import("../..").DataSchema | undefined;
135
126
  config?: any;
136
127
  outputMapping?: any;
137
128
  customOutputSchema?: import("../..").DataSchema | undefined;
138
- defaultOutputSchema?: import("../..").DataSchema | undefined;
139
- transformedOutputSchema?: import("../..").DataSchema | undefined;
140
- outputSchema?: import("../..").DataSchema | undefined;
141
- dependencies?: any[] | undefined;
129
+ isCustomized?: boolean | undefined;
130
+ parentRevision?: string | undefined;
142
131
  }>>;
143
132
  }, "strip", z.ZodTypeAny, {
144
- type: import("../base/actions").ActionType;
145
133
  id: string;
146
134
  name: string;
147
135
  userId: string;
148
136
  key?: string | undefined;
137
+ type?: import("../base/actions").ActionType | undefined;
149
138
  uuid?: string | undefined;
150
139
  description?: string | undefined;
151
140
  state?: import("..").WorkspaceElementState | undefined;
152
- errors?: any[] | undefined;
141
+ errors?: import("../..").ErrorDataSchema[] | undefined;
153
142
  revision?: string | undefined;
154
- isDeactivated?: boolean | undefined;
155
143
  createdAt?: string | undefined;
156
144
  updatedAt?: string | undefined;
157
145
  archivedAt?: string | undefined;
146
+ isDeactivated?: boolean | undefined;
158
147
  instanceKey?: string | undefined;
159
148
  user?: {
160
149
  id: string;
@@ -169,54 +158,50 @@ export declare const ActionInstanceApiResponse: z.ZodObject<{
169
158
  isBillable?: boolean | undefined;
170
159
  } | undefined;
171
160
  parentId?: string | undefined;
172
- parentRevision?: string | undefined;
173
161
  inputSchema?: any;
174
162
  config?: any;
163
+ parentRevision?: string | undefined;
175
164
  outputSchema?: any;
176
165
  universalParentId?: string | undefined;
177
166
  isOutdated?: boolean | undefined;
178
167
  parent?: {
179
- type: import("../base/actions").ActionType;
168
+ key: string;
180
169
  id: string;
181
170
  name: string;
182
- key?: string | undefined;
171
+ type?: import("../base/actions").ActionType | undefined;
183
172
  uuid?: string | undefined;
184
173
  description?: string | undefined;
185
174
  state?: import("..").WorkspaceElementState | undefined;
186
- errors?: any[] | undefined;
175
+ errors?: import("../..").ErrorDataSchema[] | undefined;
187
176
  revision?: string | undefined;
188
- isDeactivated?: boolean | undefined;
189
177
  createdAt?: string | undefined;
190
178
  updatedAt?: string | undefined;
191
179
  archivedAt?: string | undefined;
180
+ isDeactivated?: boolean | undefined;
192
181
  integrationId?: string | undefined;
193
182
  parentId?: string | undefined;
194
- parentRevision?: string | undefined;
195
- isCustomized?: boolean | undefined;
196
183
  inputSchema?: import("../..").DataSchema | undefined;
197
184
  config?: any;
198
185
  outputMapping?: any;
199
186
  customOutputSchema?: import("../..").DataSchema | undefined;
200
- defaultOutputSchema?: import("../..").DataSchema | undefined;
201
- transformedOutputSchema?: import("../..").DataSchema | undefined;
202
- outputSchema?: import("../..").DataSchema | undefined;
203
- dependencies?: any[] | undefined;
187
+ isCustomized?: boolean | undefined;
188
+ parentRevision?: string | undefined;
204
189
  } | undefined;
205
190
  }, {
206
- type: import("../base/actions").ActionType;
207
191
  id: string;
208
192
  name: string;
209
193
  userId: string;
210
194
  key?: string | undefined;
195
+ type?: import("../base/actions").ActionType | undefined;
211
196
  uuid?: string | undefined;
212
197
  description?: string | undefined;
213
198
  state?: import("..").WorkspaceElementState | undefined;
214
- errors?: any[] | undefined;
199
+ errors?: import("../..").ErrorDataSchema[] | undefined;
215
200
  revision?: string | undefined;
216
- isDeactivated?: boolean | undefined;
217
201
  createdAt?: string | undefined;
218
202
  updatedAt?: string | undefined;
219
203
  archivedAt?: string | undefined;
204
+ isDeactivated?: boolean | undefined;
220
205
  instanceKey?: string | undefined;
221
206
  user?: {
222
207
  id: string;
@@ -231,39 +216,108 @@ export declare const ActionInstanceApiResponse: z.ZodObject<{
231
216
  isBillable?: boolean | undefined;
232
217
  } | undefined;
233
218
  parentId?: string | undefined;
234
- parentRevision?: string | undefined;
235
219
  inputSchema?: any;
236
220
  config?: any;
221
+ parentRevision?: string | undefined;
237
222
  outputSchema?: any;
238
223
  universalParentId?: string | undefined;
239
224
  isOutdated?: boolean | undefined;
240
225
  parent?: {
241
- type: import("../base/actions").ActionType;
226
+ key: string;
242
227
  id: string;
243
228
  name: string;
244
- key?: string | undefined;
229
+ type?: import("../base/actions").ActionType | undefined;
245
230
  uuid?: string | undefined;
246
231
  description?: string | undefined;
247
232
  state?: import("..").WorkspaceElementState | undefined;
248
- errors?: any[] | undefined;
233
+ errors?: import("../..").ErrorDataSchema[] | undefined;
249
234
  revision?: string | undefined;
250
- isDeactivated?: boolean | undefined;
251
235
  createdAt?: string | undefined;
252
236
  updatedAt?: string | undefined;
253
237
  archivedAt?: string | undefined;
238
+ isDeactivated?: boolean | undefined;
254
239
  integrationId?: string | undefined;
255
240
  parentId?: string | undefined;
256
- parentRevision?: string | undefined;
257
- isCustomized?: boolean | undefined;
258
241
  inputSchema?: import("../..").DataSchema | undefined;
259
242
  config?: any;
260
243
  outputMapping?: any;
261
244
  customOutputSchema?: import("../..").DataSchema | undefined;
262
- defaultOutputSchema?: import("../..").DataSchema | undefined;
263
- transformedOutputSchema?: import("../..").DataSchema | undefined;
264
- outputSchema?: import("../..").DataSchema | undefined;
265
- dependencies?: any[] | undefined;
245
+ isCustomized?: boolean | undefined;
246
+ parentRevision?: string | undefined;
266
247
  } | undefined;
267
248
  }>;
268
249
  export type ActionInstanceApiResponse = z.infer<typeof ActionInstanceApiResponse>;
269
250
  export type ActionInstance = ActionInstanceApiResponse;
251
+ export interface ActionInstanceSelector extends ConnectionSelector, ElementInstanceSelector {
252
+ }
253
+ export declare const ListActionInstancesForConnectionQuery: z.ZodObject<{
254
+ parentId: z.ZodOptional<z.ZodString>;
255
+ universalParentId: z.ZodOptional<z.ZodString>;
256
+ } & {
257
+ limit: z.ZodOptional<z.ZodNumber>;
258
+ cursor: z.ZodOptional<z.ZodString>;
259
+ }, "strip", z.ZodTypeAny, {
260
+ limit?: number | undefined;
261
+ cursor?: string | undefined;
262
+ parentId?: string | undefined;
263
+ universalParentId?: string | undefined;
264
+ }, {
265
+ limit?: number | undefined;
266
+ cursor?: string | undefined;
267
+ parentId?: string | undefined;
268
+ universalParentId?: string | undefined;
269
+ }>;
270
+ export type ListActionInstancesForConnectionQuery = z.infer<typeof ListActionInstancesForConnectionQuery>;
271
+ export declare const FindActionInstancesQuery: z.ZodObject<{
272
+ parentId: z.ZodOptional<z.ZodString>;
273
+ universalParentId: z.ZodOptional<z.ZodString>;
274
+ } & {
275
+ limit: z.ZodOptional<z.ZodNumber>;
276
+ cursor: z.ZodOptional<z.ZodString>;
277
+ } & {
278
+ integrationKey: z.ZodOptional<z.ZodString>;
279
+ integrationId: z.ZodOptional<z.ZodString>;
280
+ userId: z.ZodOptional<z.ZodString>;
281
+ connectionId: z.ZodOptional<z.ZodString>;
282
+ }, "strip", z.ZodTypeAny, {
283
+ limit?: number | undefined;
284
+ cursor?: string | undefined;
285
+ userId?: string | undefined;
286
+ connectionId?: string | undefined;
287
+ integrationId?: string | undefined;
288
+ integrationKey?: string | undefined;
289
+ parentId?: string | undefined;
290
+ universalParentId?: string | undefined;
291
+ }, {
292
+ limit?: number | undefined;
293
+ cursor?: string | undefined;
294
+ userId?: string | undefined;
295
+ connectionId?: string | undefined;
296
+ integrationId?: string | undefined;
297
+ integrationKey?: string | undefined;
298
+ parentId?: string | undefined;
299
+ universalParentId?: string | undefined;
300
+ }>;
301
+ export type FindActionInstancesQuery = z.infer<typeof FindActionInstancesQuery>;
302
+ export declare const CreateActionInstanceRequest: z.ZodObject<{
303
+ parentId: z.ZodString;
304
+ connectionId: z.ZodString;
305
+ config: z.ZodOptional<z.ZodAny>;
306
+ }, "strip", z.ZodTypeAny, {
307
+ connectionId: string;
308
+ parentId: string;
309
+ config?: any;
310
+ }, {
311
+ connectionId: string;
312
+ parentId: string;
313
+ config?: any;
314
+ }>;
315
+ export type CreateActionInstanceRequest = z.infer<typeof CreateActionInstanceRequest>;
316
+ export declare const UpdateActionInstanceRequest: z.ZodObject<{
317
+ config: z.ZodOptional<z.ZodAny>;
318
+ }, "strip", z.ZodTypeAny, {
319
+ config?: any;
320
+ }, {
321
+ config?: any;
322
+ }>;
323
+ export type UpdateActionInstanceRequest = z.infer<typeof UpdateActionInstanceRequest>;