@membranehq/sdk 0.5.0 → 0.5.2

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 (69) hide show
  1. package/dist/bundle.d.ts +10513 -4612
  2. package/dist/bundle.js +149 -1
  3. package/dist/bundle.js.map +1 -1
  4. package/dist/dts/accessors/connections-accessors.d.ts +22 -15
  5. package/dist/dts/accessors/integrations-accessors.d.ts +22 -15
  6. package/dist/dts/data-schema/index.d.ts +0 -1
  7. package/dist/dts/entity-repository.d.ts +7 -6
  8. package/dist/dts/http-requests.d.ts +2 -2
  9. package/dist/dts/workspace-elements/api/action-instances-api.d.ts +269 -8
  10. package/dist/dts/workspace-elements/api/action-run-log-records-api.d.ts +435 -10
  11. package/dist/dts/workspace-elements/api/actions-api.d.ts +225 -114
  12. package/dist/dts/workspace-elements/api/app-data-schema-instances-api.d.ts +203 -8
  13. package/dist/dts/workspace-elements/api/app-data-schemas-api.d.ts +49 -3
  14. package/dist/dts/workspace-elements/api/app-event-log-records-api.d.ts +376 -0
  15. package/dist/dts/workspace-elements/api/app-event-subscriptions-api.d.ts +293 -8
  16. package/dist/dts/workspace-elements/api/app-event-types-api.d.ts +88 -3
  17. package/dist/dts/workspace-elements/api/connections-api.d.ts +505 -135
  18. package/dist/dts/workspace-elements/api/customers-api.d.ts +38 -5
  19. package/dist/dts/workspace-elements/api/data-link-table-instances-api.d.ts +447 -12
  20. package/dist/dts/workspace-elements/api/data-link-tables-api.d.ts +43 -2
  21. package/dist/dts/workspace-elements/api/data-source-instances-api.d.ts +1496 -12
  22. package/dist/dts/workspace-elements/api/data-sources-api.d.ts +189 -103
  23. package/dist/dts/workspace-elements/api/external-event-log-records-api.d.ts +602 -19
  24. package/dist/dts/workspace-elements/api/external-event-pulls-api.d.ts +608 -19
  25. package/dist/dts/workspace-elements/api/external-event-subscriptions-api.d.ts +465 -10
  26. package/dist/dts/workspace-elements/api/external-events-api.d.ts +75 -41
  27. package/dist/dts/workspace-elements/api/field-mapping-instances-api.d.ts +2570 -14
  28. package/dist/dts/workspace-elements/api/field-mappings-api.d.ts +199 -93
  29. package/dist/dts/workspace-elements/api/flow-runs-api.d.ts +1436 -47
  30. package/dist/dts/workspace-elements/api/flows-api.d.ts +590 -295
  31. package/dist/dts/workspace-elements/api/index.d.ts +1 -1
  32. package/dist/dts/workspace-elements/api/integrations-api.d.ts +176 -58
  33. package/dist/dts/workspace-elements/api/scenarios-api.d.ts +77 -36
  34. package/dist/dts/workspace-elements/api/screens-api.d.ts +33 -13
  35. package/dist/dts/workspace-elements/base/action-instances/types.d.ts +31 -15
  36. package/dist/dts/workspace-elements/base/action-run-log-records/types.d.ts +12 -10
  37. package/dist/dts/workspace-elements/base/actions/types.d.ts +28 -11
  38. package/dist/dts/workspace-elements/base/app-data-schema-instances/types.d.ts +23 -6
  39. package/dist/dts/workspace-elements/base/app-data-schemas/types.d.ts +22 -8
  40. package/dist/dts/workspace-elements/base/app-event-subscriptions/types.d.ts +25 -11
  41. package/dist/dts/workspace-elements/base/app-event-types/types.d.ts +23 -9
  42. package/dist/dts/workspace-elements/base/connections/types.d.ts +21 -21
  43. package/dist/dts/workspace-elements/base/customers/index.d.ts +8 -2
  44. package/dist/dts/workspace-elements/base/data-collections/schemas.d.ts +18 -18
  45. package/dist/dts/workspace-elements/base/data-link-table-instances/types.d.ts +23 -6
  46. package/dist/dts/workspace-elements/base/data-link-tables/types.d.ts +21 -4
  47. package/dist/dts/workspace-elements/base/data-source-instances/types.d.ts +59 -41
  48. package/dist/dts/workspace-elements/base/data-sources/types.d.ts +16 -8
  49. package/dist/dts/workspace-elements/base/external-event-subscriptions/types.d.ts +2 -5
  50. package/dist/dts/workspace-elements/base/field-mapping-instances/types.d.ts +23 -5
  51. package/dist/dts/workspace-elements/base/field-mappings/types.d.ts +20 -6
  52. package/dist/dts/workspace-elements/base/flow-instances/schemas.d.ts +2 -2
  53. package/dist/dts/workspace-elements/base/flow-instances/types.d.ts +24 -9
  54. package/dist/dts/workspace-elements/base/flow-runs/types.d.ts +14 -1
  55. package/dist/dts/workspace-elements/base/flows/types.d.ts +20 -6
  56. package/dist/dts/workspace-elements/base/integrations/types.d.ts +187 -104
  57. package/dist/dts/workspace-elements/base/scenarios/types.d.ts +21 -4
  58. package/dist/dts/workspace-elements/base/screens/types.d.ts +9 -1
  59. package/dist/dts/workspace-elements/types.d.ts +25 -3
  60. package/dist/dts/workspaces/types.d.ts +5 -4
  61. package/dist/index.d.ts +20345 -9526
  62. package/dist/index.js +268 -115
  63. package/dist/index.js.map +1 -1
  64. package/dist/index.module.d.mts +20345 -9526
  65. package/dist/index.module.mjs +234 -107
  66. package/dist/index.module.mjs.map +1 -1
  67. package/package.json +3 -2
  68. package/dist/dts/data-schema/schemas.d.ts +0 -4
  69. package/dist/dts/workspace-elements/api/app-events-api.d.ts +0 -17
@@ -1,7 +1,5 @@
1
+ import { z } from 'zod';
1
2
  import { PaginationQuery } from '../../entity-repository';
2
- import { BaseAppDataSchemaInstance } from '../base/app-data-schema-instances';
3
- import { BaseAppDataSchema } from '../base/app-data-schemas';
4
- import { BaseCustomer } from '../base/customers';
5
3
  export interface FindAppDataSchemaInstancesQuery extends PaginationQuery {
6
4
  id?: string;
7
5
  userId?: string;
@@ -19,8 +17,205 @@ export interface UpdateAppDataSchemaInstanceRequest {
19
17
  }
20
18
  export interface CreateAppDataSchemaInstanceRequest {
21
19
  }
22
- export interface AppDataSchemaInstance extends BaseAppDataSchemaInstance {
23
- user?: BaseCustomer;
24
- appDataSchema?: BaseAppDataSchema;
25
- }
26
- export type AppDataSchemaInstanceApiResponse = AppDataSchemaInstance;
20
+ export declare const AppDataSchemaInstanceApiResponse: z.ZodObject<{
21
+ id: z.ZodString;
22
+ name: z.ZodString;
23
+ key: z.ZodOptional<z.ZodString>;
24
+ uuid: z.ZodOptional<z.ZodString>;
25
+ description: z.ZodOptional<z.ZodString>;
26
+ state: z.ZodOptional<z.ZodNativeEnum<typeof import("..").WorkspaceElementState>>;
27
+ errors: z.ZodOptional<z.ZodArray<any, "many">>;
28
+ revision: z.ZodOptional<z.ZodString>;
29
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
30
+ createdAt: z.ZodOptional<z.ZodString>;
31
+ updatedAt: z.ZodOptional<z.ZodString>;
32
+ } & {
33
+ appId: z.ZodString;
34
+ userId: z.ZodString;
35
+ appDataSchemaId: z.ZodString;
36
+ appDataSchemaRevision: z.ZodString;
37
+ instanceKey: z.ZodOptional<z.ZodString>;
38
+ schema: z.ZodOptional<z.ZodAny>;
39
+ error: any;
40
+ archivedAt: z.ZodOptional<z.ZodString>;
41
+ } & {
42
+ user: z.ZodOptional<z.ZodObject<{
43
+ id: z.ZodString;
44
+ name: z.ZodString;
45
+ internalId: z.ZodString;
46
+ fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
47
+ credentials: z.ZodOptional<z.ZodAny>;
48
+ lastActiveAt: z.ZodOptional<z.ZodString>;
49
+ isTest: z.ZodOptional<z.ZodBoolean>;
50
+ isBillable: z.ZodOptional<z.ZodBoolean>;
51
+ createdAt: z.ZodOptional<z.ZodString>;
52
+ archivedAt: z.ZodOptional<z.ZodString>;
53
+ }, "strip", z.ZodTypeAny, {
54
+ id: string;
55
+ name: string;
56
+ internalId: string;
57
+ createdAt?: string | undefined;
58
+ archivedAt?: string | undefined;
59
+ credentials?: any;
60
+ fields?: Record<string, any> | undefined;
61
+ isTest?: boolean | undefined;
62
+ lastActiveAt?: string | undefined;
63
+ isBillable?: boolean | undefined;
64
+ }, {
65
+ id: string;
66
+ name: string;
67
+ internalId: string;
68
+ createdAt?: string | undefined;
69
+ archivedAt?: string | undefined;
70
+ credentials?: any;
71
+ fields?: Record<string, any> | undefined;
72
+ isTest?: boolean | undefined;
73
+ lastActiveAt?: string | undefined;
74
+ isBillable?: boolean | undefined;
75
+ }>>;
76
+ appDataSchema: z.ZodOptional<z.ZodObject<{
77
+ id: z.ZodString;
78
+ name: z.ZodString;
79
+ key: z.ZodOptional<z.ZodString>;
80
+ uuid: z.ZodOptional<z.ZodString>;
81
+ description: z.ZodOptional<z.ZodString>;
82
+ state: z.ZodOptional<z.ZodNativeEnum<typeof import("..").WorkspaceElementState>>;
83
+ errors: z.ZodOptional<z.ZodArray<any, "many">>;
84
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
85
+ createdAt: z.ZodOptional<z.ZodString>;
86
+ updatedAt: z.ZodOptional<z.ZodString>;
87
+ } & {
88
+ schema: z.ZodAny;
89
+ code: z.ZodOptional<z.ZodString>;
90
+ archivedAt: z.ZodOptional<z.ZodString>;
91
+ revision: z.ZodOptional<z.ZodString>;
92
+ }, "strip", z.ZodTypeAny, {
93
+ id: string;
94
+ name: string;
95
+ key?: string | undefined;
96
+ code?: string | undefined;
97
+ uuid?: string | undefined;
98
+ description?: string | undefined;
99
+ state?: import("..").WorkspaceElementState | undefined;
100
+ errors?: any[] | undefined;
101
+ revision?: string | undefined;
102
+ isDeactivated?: boolean | undefined;
103
+ createdAt?: string | undefined;
104
+ updatedAt?: string | undefined;
105
+ archivedAt?: string | undefined;
106
+ schema?: any;
107
+ }, {
108
+ id: string;
109
+ name: string;
110
+ key?: string | undefined;
111
+ code?: string | undefined;
112
+ uuid?: string | undefined;
113
+ description?: string | undefined;
114
+ state?: import("..").WorkspaceElementState | undefined;
115
+ errors?: any[] | undefined;
116
+ revision?: string | undefined;
117
+ isDeactivated?: boolean | undefined;
118
+ createdAt?: string | undefined;
119
+ updatedAt?: string | undefined;
120
+ archivedAt?: string | undefined;
121
+ schema?: any;
122
+ }>>;
123
+ }, "strip", z.ZodTypeAny, {
124
+ id: string;
125
+ name: string;
126
+ userId: string;
127
+ appId: string;
128
+ appDataSchemaId: string;
129
+ appDataSchemaRevision: string;
130
+ key?: string | undefined;
131
+ error?: any;
132
+ uuid?: string | undefined;
133
+ description?: string | undefined;
134
+ state?: import("..").WorkspaceElementState | undefined;
135
+ errors?: any[] | undefined;
136
+ revision?: string | undefined;
137
+ isDeactivated?: boolean | undefined;
138
+ createdAt?: string | undefined;
139
+ updatedAt?: string | undefined;
140
+ archivedAt?: string | undefined;
141
+ instanceKey?: string | undefined;
142
+ schema?: any;
143
+ user?: {
144
+ id: string;
145
+ name: string;
146
+ internalId: string;
147
+ createdAt?: string | undefined;
148
+ archivedAt?: string | undefined;
149
+ credentials?: any;
150
+ fields?: Record<string, any> | undefined;
151
+ isTest?: boolean | undefined;
152
+ lastActiveAt?: string | undefined;
153
+ isBillable?: boolean | undefined;
154
+ } | undefined;
155
+ appDataSchema?: {
156
+ id: string;
157
+ name: string;
158
+ key?: string | undefined;
159
+ code?: string | undefined;
160
+ uuid?: string | undefined;
161
+ description?: string | undefined;
162
+ state?: import("..").WorkspaceElementState | undefined;
163
+ errors?: any[] | undefined;
164
+ revision?: string | undefined;
165
+ isDeactivated?: boolean | undefined;
166
+ createdAt?: string | undefined;
167
+ updatedAt?: string | undefined;
168
+ archivedAt?: string | undefined;
169
+ schema?: any;
170
+ } | undefined;
171
+ }, {
172
+ id: string;
173
+ name: string;
174
+ userId: string;
175
+ appId: string;
176
+ appDataSchemaId: string;
177
+ appDataSchemaRevision: string;
178
+ key?: string | undefined;
179
+ error?: any;
180
+ uuid?: string | undefined;
181
+ description?: string | undefined;
182
+ state?: import("..").WorkspaceElementState | undefined;
183
+ errors?: any[] | undefined;
184
+ revision?: string | undefined;
185
+ isDeactivated?: boolean | undefined;
186
+ createdAt?: string | undefined;
187
+ updatedAt?: string | undefined;
188
+ archivedAt?: string | undefined;
189
+ instanceKey?: string | undefined;
190
+ schema?: any;
191
+ user?: {
192
+ id: string;
193
+ name: string;
194
+ internalId: string;
195
+ createdAt?: string | undefined;
196
+ archivedAt?: string | undefined;
197
+ credentials?: any;
198
+ fields?: Record<string, any> | undefined;
199
+ isTest?: boolean | undefined;
200
+ lastActiveAt?: string | undefined;
201
+ isBillable?: boolean | undefined;
202
+ } | undefined;
203
+ appDataSchema?: {
204
+ id: string;
205
+ name: string;
206
+ key?: string | undefined;
207
+ code?: string | undefined;
208
+ uuid?: string | undefined;
209
+ description?: string | undefined;
210
+ state?: import("..").WorkspaceElementState | undefined;
211
+ errors?: any[] | undefined;
212
+ revision?: string | undefined;
213
+ isDeactivated?: boolean | undefined;
214
+ createdAt?: string | undefined;
215
+ updatedAt?: string | undefined;
216
+ archivedAt?: string | undefined;
217
+ schema?: any;
218
+ } | undefined;
219
+ }>;
220
+ export type AppDataSchemaInstanceApiResponse = z.infer<typeof AppDataSchemaInstanceApiResponse>;
221
+ export type AppDataSchemaInstance = AppDataSchemaInstanceApiResponse;
@@ -1,5 +1,4 @@
1
1
  import { PaginationQuery } from '../../entity-repository';
2
- import { BaseAppDataSchema } from '../base/app-data-schemas';
3
2
  export interface FindAppDataSchemasQuery extends PaginationQuery {
4
3
  }
5
4
  export type CreateAppDataSchemaRequest = {
@@ -15,5 +14,52 @@ export type UpdateAppDataSchemaRequest = {
15
14
  code?: string;
16
15
  archivedAt?: string;
17
16
  };
18
- export type AppDataSchema = BaseAppDataSchema;
19
- export type AppDataSchemaApiResponse = AppDataSchema;
17
+ export declare const AppDataSchemaApiResponse: import("zod").ZodObject<{
18
+ id: import("zod").ZodString;
19
+ name: import("zod").ZodString;
20
+ key: import("zod").ZodOptional<import("zod").ZodString>;
21
+ uuid: import("zod").ZodOptional<import("zod").ZodString>;
22
+ description: import("zod").ZodOptional<import("zod").ZodString>;
23
+ state: import("zod").ZodOptional<import("zod").ZodNativeEnum<typeof import("..").WorkspaceElementState>>;
24
+ errors: import("zod").ZodOptional<import("zod").ZodArray<any, "many">>;
25
+ isDeactivated: import("zod").ZodOptional<import("zod").ZodBoolean>;
26
+ createdAt: import("zod").ZodOptional<import("zod").ZodString>;
27
+ updatedAt: import("zod").ZodOptional<import("zod").ZodString>;
28
+ } & {
29
+ schema: import("zod").ZodAny;
30
+ code: import("zod").ZodOptional<import("zod").ZodString>;
31
+ archivedAt: import("zod").ZodOptional<import("zod").ZodString>;
32
+ revision: import("zod").ZodOptional<import("zod").ZodString>;
33
+ }, "strip", import("zod").ZodTypeAny, {
34
+ id: string;
35
+ name: string;
36
+ key?: string | undefined;
37
+ code?: string | undefined;
38
+ uuid?: string | undefined;
39
+ description?: string | undefined;
40
+ state?: import("..").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
+ schema?: any;
48
+ }, {
49
+ id: string;
50
+ name: string;
51
+ key?: string | undefined;
52
+ code?: string | undefined;
53
+ uuid?: string | undefined;
54
+ description?: string | undefined;
55
+ state?: import("..").WorkspaceElementState | undefined;
56
+ errors?: any[] | undefined;
57
+ revision?: string | undefined;
58
+ isDeactivated?: boolean | undefined;
59
+ createdAt?: string | undefined;
60
+ updatedAt?: string | undefined;
61
+ archivedAt?: string | undefined;
62
+ schema?: any;
63
+ }>;
64
+ export type AppDataSchemaApiResponse = typeof AppDataSchemaApiResponse._type;
65
+ export type AppDataSchema = AppDataSchemaApiResponse;
@@ -0,0 +1,376 @@
1
+ import { z } from 'zod';
2
+ export declare const AppEventLogRecordApiResponse: z.ZodObject<{
3
+ id: z.ZodString;
4
+ name: z.ZodOptional<z.ZodString>;
5
+ userId: z.ZodString;
6
+ user: z.ZodOptional<z.ZodObject<{
7
+ id: z.ZodString;
8
+ name: z.ZodString;
9
+ internalId: z.ZodString;
10
+ fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
11
+ credentials: z.ZodOptional<z.ZodAny>;
12
+ lastActiveAt: z.ZodOptional<z.ZodString>;
13
+ isTest: z.ZodOptional<z.ZodBoolean>;
14
+ isBillable: z.ZodOptional<z.ZodBoolean>;
15
+ createdAt: z.ZodOptional<z.ZodString>;
16
+ archivedAt: z.ZodOptional<z.ZodString>;
17
+ }, "strip", z.ZodTypeAny, {
18
+ id: string;
19
+ name: string;
20
+ internalId: string;
21
+ createdAt?: string | undefined;
22
+ archivedAt?: string | undefined;
23
+ credentials?: any;
24
+ fields?: Record<string, any> | undefined;
25
+ isTest?: boolean | undefined;
26
+ lastActiveAt?: string | undefined;
27
+ isBillable?: boolean | undefined;
28
+ }, {
29
+ id: string;
30
+ name: string;
31
+ internalId: string;
32
+ createdAt?: string | undefined;
33
+ archivedAt?: string | undefined;
34
+ credentials?: any;
35
+ fields?: Record<string, any> | undefined;
36
+ isTest?: boolean | undefined;
37
+ lastActiveAt?: string | undefined;
38
+ isBillable?: boolean | undefined;
39
+ }>>;
40
+ appEventTypeId: z.ZodString;
41
+ appEventType: z.ZodOptional<z.ZodObject<{
42
+ id: z.ZodString;
43
+ name: z.ZodString;
44
+ key: z.ZodOptional<z.ZodString>;
45
+ uuid: z.ZodOptional<z.ZodString>;
46
+ description: z.ZodOptional<z.ZodString>;
47
+ state: z.ZodOptional<z.ZodNativeEnum<typeof import("..").WorkspaceElementState>>;
48
+ errors: z.ZodOptional<z.ZodArray<any, "many">>;
49
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
50
+ createdAt: z.ZodOptional<z.ZodString>;
51
+ updatedAt: z.ZodOptional<z.ZodString>;
52
+ } & {
53
+ revision: z.ZodString;
54
+ archivedAt: z.ZodOptional<z.ZodString>;
55
+ subscribeRequest: z.ZodOptional<z.ZodObject<{
56
+ method: z.ZodOptional<z.ZodPipeline<z.ZodString, z.ZodNativeEnum<typeof import("../..").HttpRequestMethod>>>;
57
+ uri: z.ZodAny;
58
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
59
+ query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
60
+ body: z.ZodOptional<z.ZodAny>;
61
+ }, "strip", z.ZodTypeAny, {
62
+ headers?: Record<string, any> | undefined;
63
+ method?: import("../..").HttpRequestMethod | undefined;
64
+ body?: any;
65
+ uri?: any;
66
+ query?: Record<string, any> | undefined;
67
+ }, {
68
+ headers?: Record<string, any> | undefined;
69
+ method?: string | undefined;
70
+ body?: any;
71
+ uri?: any;
72
+ query?: Record<string, any> | undefined;
73
+ }>>;
74
+ example: z.ZodOptional<z.ZodAny>;
75
+ schema: z.ZodOptional<z.ZodType<import("../..").DataSchema, z.ZodTypeDef, import("../..").DataSchema>>;
76
+ globalWebhookUri: z.ZodString;
77
+ userIdFormula: z.ZodOptional<z.ZodAny>;
78
+ }, "strip", z.ZodTypeAny, {
79
+ id: string;
80
+ name: string;
81
+ revision: string;
82
+ globalWebhookUri: string;
83
+ key?: string | undefined;
84
+ uuid?: string | undefined;
85
+ description?: string | undefined;
86
+ state?: import("..").WorkspaceElementState | undefined;
87
+ errors?: any[] | undefined;
88
+ isDeactivated?: boolean | undefined;
89
+ createdAt?: string | undefined;
90
+ updatedAt?: string | undefined;
91
+ archivedAt?: string | undefined;
92
+ schema?: import("../..").DataSchema | undefined;
93
+ subscribeRequest?: {
94
+ headers?: Record<string, any> | undefined;
95
+ method?: import("../..").HttpRequestMethod | undefined;
96
+ body?: any;
97
+ uri?: any;
98
+ query?: Record<string, any> | undefined;
99
+ } | undefined;
100
+ example?: any;
101
+ userIdFormula?: any;
102
+ }, {
103
+ id: string;
104
+ name: string;
105
+ revision: string;
106
+ globalWebhookUri: string;
107
+ key?: string | undefined;
108
+ uuid?: string | undefined;
109
+ description?: string | undefined;
110
+ state?: import("..").WorkspaceElementState | undefined;
111
+ errors?: any[] | undefined;
112
+ isDeactivated?: boolean | undefined;
113
+ createdAt?: string | undefined;
114
+ updatedAt?: string | undefined;
115
+ archivedAt?: string | undefined;
116
+ schema?: import("../..").DataSchema | undefined;
117
+ subscribeRequest?: {
118
+ headers?: Record<string, any> | undefined;
119
+ method?: string | undefined;
120
+ body?: any;
121
+ uri?: any;
122
+ query?: Record<string, any> | undefined;
123
+ } | undefined;
124
+ example?: any;
125
+ userIdFormula?: any;
126
+ }>>;
127
+ appEventSubscriptionId: z.ZodString;
128
+ appEventSubscription: z.ZodOptional<z.ZodObject<{
129
+ id: z.ZodString;
130
+ name: z.ZodString;
131
+ key: z.ZodOptional<z.ZodString>;
132
+ uuid: z.ZodOptional<z.ZodString>;
133
+ description: z.ZodOptional<z.ZodString>;
134
+ state: z.ZodOptional<z.ZodNativeEnum<typeof import("..").WorkspaceElementState>>;
135
+ errors: z.ZodOptional<z.ZodArray<any, "many">>;
136
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
137
+ createdAt: z.ZodOptional<z.ZodString>;
138
+ updatedAt: z.ZodOptional<z.ZodString>;
139
+ } & {
140
+ revision: z.ZodString;
141
+ appEventTypeId: z.ZodString;
142
+ userId: z.ZodString;
143
+ instanceKey: z.ZodOptional<z.ZodString>;
144
+ isSubscribed: z.ZodBoolean;
145
+ schema: z.ZodOptional<z.ZodType<import("../..").DataSchema, z.ZodTypeDef, import("../..").DataSchema>>;
146
+ webhookUri: z.ZodString;
147
+ subscriptionRequest: z.ZodObject<{
148
+ method: z.ZodOptional<z.ZodPipeline<z.ZodString, z.ZodNativeEnum<typeof import("../..").HttpRequestMethod>>>;
149
+ uri: z.ZodAny;
150
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
151
+ query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
152
+ body: z.ZodOptional<z.ZodAny>;
153
+ }, "strip", z.ZodTypeAny, {
154
+ headers?: Record<string, any> | undefined;
155
+ method?: import("../..").HttpRequestMethod | undefined;
156
+ body?: any;
157
+ uri?: any;
158
+ query?: Record<string, any> | undefined;
159
+ }, {
160
+ headers?: Record<string, any> | undefined;
161
+ method?: string | undefined;
162
+ body?: any;
163
+ uri?: any;
164
+ query?: Record<string, any> | undefined;
165
+ }>;
166
+ subscriptionResponse: z.ZodOptional<z.ZodAny>;
167
+ archivedAt: z.ZodOptional<z.ZodString>;
168
+ }, "strip", z.ZodTypeAny, {
169
+ id: string;
170
+ name: string;
171
+ revision: string;
172
+ userId: string;
173
+ webhookUri: string;
174
+ appEventTypeId: string;
175
+ isSubscribed: boolean;
176
+ subscriptionRequest: {
177
+ headers?: Record<string, any> | undefined;
178
+ method?: import("../..").HttpRequestMethod | undefined;
179
+ body?: any;
180
+ uri?: any;
181
+ query?: Record<string, any> | undefined;
182
+ };
183
+ key?: string | undefined;
184
+ uuid?: string | undefined;
185
+ description?: string | undefined;
186
+ state?: import("..").WorkspaceElementState | undefined;
187
+ errors?: any[] | undefined;
188
+ isDeactivated?: boolean | undefined;
189
+ createdAt?: string | undefined;
190
+ updatedAt?: string | undefined;
191
+ archivedAt?: string | undefined;
192
+ instanceKey?: string | undefined;
193
+ schema?: import("../..").DataSchema | undefined;
194
+ subscriptionResponse?: any;
195
+ }, {
196
+ id: string;
197
+ name: string;
198
+ revision: string;
199
+ userId: string;
200
+ webhookUri: string;
201
+ appEventTypeId: string;
202
+ isSubscribed: boolean;
203
+ subscriptionRequest: {
204
+ headers?: Record<string, any> | undefined;
205
+ method?: string | undefined;
206
+ body?: any;
207
+ uri?: any;
208
+ query?: Record<string, any> | undefined;
209
+ };
210
+ key?: string | undefined;
211
+ uuid?: string | undefined;
212
+ description?: string | undefined;
213
+ state?: import("..").WorkspaceElementState | undefined;
214
+ errors?: any[] | undefined;
215
+ isDeactivated?: boolean | undefined;
216
+ createdAt?: string | undefined;
217
+ updatedAt?: string | undefined;
218
+ archivedAt?: string | undefined;
219
+ instanceKey?: string | undefined;
220
+ schema?: import("../..").DataSchema | undefined;
221
+ subscriptionResponse?: any;
222
+ }>>;
223
+ event: z.ZodAny;
224
+ datetime: z.ZodString;
225
+ launchedFlowRunIds: z.ZodArray<z.ZodString, "many">;
226
+ }, "strip", z.ZodTypeAny, {
227
+ id: string;
228
+ userId: string;
229
+ datetime: string;
230
+ appEventTypeId: string;
231
+ appEventSubscriptionId: string;
232
+ launchedFlowRunIds: string[];
233
+ name?: string | undefined;
234
+ event?: any;
235
+ user?: {
236
+ id: string;
237
+ name: string;
238
+ internalId: string;
239
+ createdAt?: string | undefined;
240
+ archivedAt?: string | undefined;
241
+ credentials?: any;
242
+ fields?: Record<string, any> | undefined;
243
+ isTest?: boolean | undefined;
244
+ lastActiveAt?: string | undefined;
245
+ isBillable?: boolean | undefined;
246
+ } | undefined;
247
+ appEventType?: {
248
+ id: string;
249
+ name: string;
250
+ revision: string;
251
+ globalWebhookUri: string;
252
+ key?: string | undefined;
253
+ uuid?: string | undefined;
254
+ description?: string | undefined;
255
+ state?: import("..").WorkspaceElementState | undefined;
256
+ errors?: any[] | undefined;
257
+ isDeactivated?: boolean | undefined;
258
+ createdAt?: string | undefined;
259
+ updatedAt?: string | undefined;
260
+ archivedAt?: string | undefined;
261
+ schema?: import("../..").DataSchema | undefined;
262
+ subscribeRequest?: {
263
+ headers?: Record<string, any> | undefined;
264
+ method?: import("../..").HttpRequestMethod | undefined;
265
+ body?: any;
266
+ uri?: any;
267
+ query?: Record<string, any> | undefined;
268
+ } | undefined;
269
+ example?: any;
270
+ userIdFormula?: any;
271
+ } | undefined;
272
+ appEventSubscription?: {
273
+ id: string;
274
+ name: string;
275
+ revision: string;
276
+ userId: string;
277
+ webhookUri: string;
278
+ appEventTypeId: string;
279
+ isSubscribed: boolean;
280
+ subscriptionRequest: {
281
+ headers?: Record<string, any> | undefined;
282
+ method?: import("../..").HttpRequestMethod | undefined;
283
+ body?: any;
284
+ uri?: any;
285
+ query?: Record<string, any> | undefined;
286
+ };
287
+ key?: string | undefined;
288
+ uuid?: string | undefined;
289
+ description?: string | undefined;
290
+ state?: import("..").WorkspaceElementState | undefined;
291
+ errors?: any[] | undefined;
292
+ isDeactivated?: boolean | undefined;
293
+ createdAt?: string | undefined;
294
+ updatedAt?: string | undefined;
295
+ archivedAt?: string | undefined;
296
+ instanceKey?: string | undefined;
297
+ schema?: import("../..").DataSchema | undefined;
298
+ subscriptionResponse?: any;
299
+ } | undefined;
300
+ }, {
301
+ id: string;
302
+ userId: string;
303
+ datetime: string;
304
+ appEventTypeId: string;
305
+ appEventSubscriptionId: string;
306
+ launchedFlowRunIds: string[];
307
+ name?: string | undefined;
308
+ event?: any;
309
+ user?: {
310
+ id: string;
311
+ name: string;
312
+ internalId: string;
313
+ createdAt?: string | undefined;
314
+ archivedAt?: string | undefined;
315
+ credentials?: any;
316
+ fields?: Record<string, any> | undefined;
317
+ isTest?: boolean | undefined;
318
+ lastActiveAt?: string | undefined;
319
+ isBillable?: boolean | undefined;
320
+ } | undefined;
321
+ appEventType?: {
322
+ id: string;
323
+ name: string;
324
+ revision: string;
325
+ globalWebhookUri: string;
326
+ key?: string | undefined;
327
+ uuid?: string | undefined;
328
+ description?: string | undefined;
329
+ state?: import("..").WorkspaceElementState | undefined;
330
+ errors?: any[] | undefined;
331
+ isDeactivated?: boolean | undefined;
332
+ createdAt?: string | undefined;
333
+ updatedAt?: string | undefined;
334
+ archivedAt?: string | undefined;
335
+ schema?: import("../..").DataSchema | undefined;
336
+ subscribeRequest?: {
337
+ headers?: Record<string, any> | undefined;
338
+ method?: string | undefined;
339
+ body?: any;
340
+ uri?: any;
341
+ query?: Record<string, any> | undefined;
342
+ } | undefined;
343
+ example?: any;
344
+ userIdFormula?: any;
345
+ } | undefined;
346
+ appEventSubscription?: {
347
+ id: string;
348
+ name: string;
349
+ revision: string;
350
+ userId: string;
351
+ webhookUri: string;
352
+ appEventTypeId: string;
353
+ isSubscribed: boolean;
354
+ subscriptionRequest: {
355
+ headers?: Record<string, any> | undefined;
356
+ method?: string | undefined;
357
+ body?: any;
358
+ uri?: any;
359
+ query?: Record<string, any> | undefined;
360
+ };
361
+ key?: string | undefined;
362
+ uuid?: string | undefined;
363
+ description?: string | undefined;
364
+ state?: import("..").WorkspaceElementState | undefined;
365
+ errors?: any[] | undefined;
366
+ isDeactivated?: boolean | undefined;
367
+ createdAt?: string | undefined;
368
+ updatedAt?: string | undefined;
369
+ archivedAt?: string | undefined;
370
+ instanceKey?: string | undefined;
371
+ schema?: import("../..").DataSchema | undefined;
372
+ subscriptionResponse?: any;
373
+ } | undefined;
374
+ }>;
375
+ export type AppEventLogRecordApiResponse = z.infer<typeof AppEventLogRecordApiResponse>;
376
+ export type AppEvent = AppEventLogRecordApiResponse;