@membranehq/sdk 0.5.0 → 0.5.1

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 +13011 -5117
  2. package/dist/bundle.js +149 -1
  3. package/dist/bundle.js.map +1 -1
  4. package/dist/dts/accessors/connections-accessors.d.ts +31 -10
  5. package/dist/dts/accessors/integrations-accessors.d.ts +31 -10
  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 +529 -10
  11. package/dist/dts/workspace-elements/api/actions-api.d.ts +393 -90
  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 +387 -97
  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 +541 -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 +1590 -12
  22. package/dist/dts/workspace-elements/api/data-sources-api.d.ts +357 -79
  23. package/dist/dts/workspace-elements/api/external-event-log-records-api.d.ts +696 -19
  24. package/dist/dts/workspace-elements/api/external-event-pulls-api.d.ts +702 -19
  25. package/dist/dts/workspace-elements/api/external-event-subscriptions-api.d.ts +559 -10
  26. package/dist/dts/workspace-elements/api/external-events-api.d.ts +169 -27
  27. package/dist/dts/workspace-elements/api/field-mapping-instances-api.d.ts +2786 -14
  28. package/dist/dts/workspace-elements/api/field-mappings-api.d.ts +367 -69
  29. package/dist/dts/workspace-elements/api/flow-runs-api.d.ts +1652 -47
  30. package/dist/dts/workspace-elements/api/flows-api.d.ts +1040 -257
  31. package/dist/dts/workspace-elements/api/index.d.ts +1 -1
  32. package/dist/dts/workspace-elements/api/integrations-api.d.ts +121 -37
  33. package/dist/dts/workspace-elements/api/scenarios-api.d.ts +151 -26
  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 +28 -12
  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 +18 -12
  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 +6 -6
  53. package/dist/dts/workspace-elements/base/flow-instances/types.d.ts +26 -11
  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 +26 -12
  56. package/dist/dts/workspace-elements/base/integrations/types.d.ts +557 -67
  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 +4 -3
  61. package/dist/index.d.ts +21959 -8561
  62. package/dist/index.js +258 -109
  63. package/dist/index.js.map +1 -1
  64. package/dist/index.module.d.mts +21959 -8561
  65. package/dist/index.module.mjs +225 -101
  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,14 +1,5 @@
1
1
  import { PaginationQuery } from '../../entity-repository';
2
- import { BaseScreen } from '../base/screens';
3
- export declare enum ScreenType {
4
- Integration = "integration"
5
- }
6
- export declare enum ScreenBlockType {
7
- Flow = "flow",
8
- FieldMapping = "field-mapping",
9
- DataSource = "data-source",
10
- Action = "action"
11
- }
2
+ import { ScreenBlockType, ScreenType } from '../base/screens';
12
3
  export interface ScreenBlockApi {
13
4
  type: ScreenBlockType;
14
5
  [key: string]: any;
@@ -30,6 +21,35 @@ export interface CreateScreenRequest extends UpdateScreenRequest {
30
21
  export interface FindScreensQuery extends PaginationQuery {
31
22
  type?: ScreenType;
32
23
  }
33
- export interface Screen extends BaseScreen {
34
- }
35
- export type ScreenApiResponse = Screen;
24
+ export declare const ScreenApiResponse: import("zod").ZodObject<{
25
+ id: import("zod").ZodString;
26
+ name: import("zod").ZodString;
27
+ } & {
28
+ type: import("zod").ZodNativeEnum<typeof ScreenType>;
29
+ key: import("zod").ZodOptional<import("zod").ZodString>;
30
+ blocks: import("zod").ZodArray<import("zod").ZodIntersection<import("zod").ZodObject<{
31
+ type: import("zod").ZodNativeEnum<typeof ScreenBlockType>;
32
+ }, "strip", import("zod").ZodTypeAny, {
33
+ type: ScreenBlockType;
34
+ }, {
35
+ type: ScreenBlockType;
36
+ }>, import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>, "many">;
37
+ }, "strip", import("zod").ZodTypeAny, {
38
+ type: ScreenType;
39
+ id: string;
40
+ name: string;
41
+ blocks: ({
42
+ type: ScreenBlockType;
43
+ } & Record<string, any>)[];
44
+ key?: string | undefined;
45
+ }, {
46
+ type: ScreenType;
47
+ id: string;
48
+ name: string;
49
+ blocks: ({
50
+ type: ScreenBlockType;
51
+ } & Record<string, any>)[];
52
+ key?: string | undefined;
53
+ }>;
54
+ export type ScreenApiResponse = typeof ScreenApiResponse._type;
55
+ export type Screen = ScreenApiResponse;
@@ -1,5 +1,4 @@
1
1
  import { z } from 'zod';
2
- import { WorkspaceElementState } from '../../types';
3
2
  import { ActionType } from '../actions/action-types';
4
3
  export declare enum ActionDependencyType {
5
4
  FieldMapping = "FieldMapping",
@@ -22,32 +21,44 @@ export type ActionDependency = z.infer<typeof ActionDependency>;
22
21
  export declare const BaseActionInstance: z.ZodObject<{
23
22
  id: z.ZodString;
24
23
  name: z.ZodString;
25
- revision: z.ZodString;
24
+ } & {
25
+ key: z.ZodOptional<z.ZodString>;
26
+ uuid: z.ZodOptional<z.ZodString>;
27
+ description: z.ZodOptional<z.ZodString>;
28
+ state: z.ZodOptional<z.ZodNativeEnum<typeof import("../../types").WorkspaceElementState>>;
29
+ errors: z.ZodOptional<z.ZodArray<any, "many">>;
30
+ revision: z.ZodOptional<z.ZodString>;
31
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
32
+ createdAt: z.ZodOptional<z.ZodString>;
33
+ updatedAt: z.ZodOptional<z.ZodString>;
34
+ archivedAt: z.ZodOptional<z.ZodString>;
35
+ } & {
26
36
  parentId: z.ZodOptional<z.ZodString>;
27
37
  parentRevision: z.ZodOptional<z.ZodString>;
28
38
  universalParentId: z.ZodOptional<z.ZodString>;
29
39
  userId: z.ZodString;
30
40
  instanceKey: z.ZodOptional<z.ZodString>;
31
- createdAt: z.ZodOptional<z.ZodString>;
32
- updatedAt: z.ZodOptional<z.ZodString>;
33
- archivedAt: z.ZodOptional<z.ZodString>;
34
41
  type: z.ZodNativeEnum<typeof ActionType>;
35
42
  inputSchema: z.ZodOptional<z.ZodAny>;
36
43
  config: z.ZodOptional<z.ZodAny>;
37
44
  outputSchema: z.ZodOptional<z.ZodAny>;
38
45
  isOutdated: z.ZodOptional<z.ZodBoolean>;
39
- state: z.ZodNativeEnum<typeof WorkspaceElementState>;
40
46
  }, "strip", z.ZodTypeAny, {
41
47
  type: ActionType;
42
48
  id: string;
43
49
  name: string;
44
- state: WorkspaceElementState;
45
50
  userId: string;
46
- revision: string;
47
- instanceKey?: string | undefined;
51
+ key?: string | undefined;
52
+ uuid?: string | undefined;
53
+ description?: string | undefined;
54
+ state?: import("../../types").WorkspaceElementState | undefined;
55
+ errors?: any[] | undefined;
56
+ revision?: string | undefined;
57
+ isDeactivated?: boolean | undefined;
48
58
  createdAt?: string | undefined;
49
59
  updatedAt?: string | undefined;
50
60
  archivedAt?: string | undefined;
61
+ instanceKey?: string | undefined;
51
62
  parentId?: string | undefined;
52
63
  parentRevision?: string | undefined;
53
64
  inputSchema?: any;
@@ -59,13 +70,18 @@ export declare const BaseActionInstance: z.ZodObject<{
59
70
  type: ActionType;
60
71
  id: string;
61
72
  name: string;
62
- state: WorkspaceElementState;
63
73
  userId: string;
64
- revision: string;
65
- instanceKey?: string | undefined;
74
+ key?: string | undefined;
75
+ uuid?: string | undefined;
76
+ description?: string | undefined;
77
+ state?: import("../../types").WorkspaceElementState | undefined;
78
+ errors?: any[] | undefined;
79
+ revision?: string | undefined;
80
+ isDeactivated?: boolean | undefined;
66
81
  createdAt?: string | undefined;
67
82
  updatedAt?: string | undefined;
68
83
  archivedAt?: string | undefined;
84
+ instanceKey?: string | undefined;
69
85
  parentId?: string | undefined;
70
86
  parentRevision?: string | undefined;
71
87
  inputSchema?: any;
@@ -1,39 +1,41 @@
1
1
  import { z } from 'zod';
2
- export declare enum ActionRunStatus {
3
- RUNNING = "running",
2
+ export declare enum ActionRunLogStatus {
4
3
  SUCCESS = "success",
5
- ERROR = "error",
6
- QUEUED = "queued"
4
+ ERROR = "error"
7
5
  }
8
6
  export declare const BaseActionRunLogRecord: z.ZodObject<{
9
7
  id: z.ZodString;
8
+ name: z.ZodString;
9
+ } & {
10
10
  actionId: z.ZodString;
11
11
  integrationId: z.ZodString;
12
12
  connectionId: z.ZodString;
13
13
  input: z.ZodOptional<z.ZodAny>;
14
14
  output: z.ZodOptional<z.ZodAny>;
15
- status: z.ZodNativeEnum<typeof ActionRunStatus>;
16
- startedAt: z.ZodString;
15
+ status: z.ZodNativeEnum<typeof ActionRunLogStatus>;
16
+ createdAt: z.ZodString;
17
17
  completedAt: z.ZodOptional<z.ZodString>;
18
18
  error: any;
19
19
  }, "strip", z.ZodTypeAny, {
20
- status: ActionRunStatus;
20
+ status: ActionRunLogStatus;
21
21
  id: string;
22
+ name: string;
23
+ createdAt: string;
22
24
  connectionId: string;
23
25
  integrationId: string;
24
26
  actionId: string;
25
- startedAt: string;
26
27
  error?: any;
27
28
  input?: any;
28
29
  output?: any;
29
30
  completedAt?: string | undefined;
30
31
  }, {
31
- status: ActionRunStatus;
32
+ status: ActionRunLogStatus;
32
33
  id: string;
34
+ name: string;
35
+ createdAt: string;
33
36
  connectionId: string;
34
37
  integrationId: string;
35
38
  actionId: string;
36
- startedAt: string;
37
39
  error?: any;
38
40
  input?: any;
39
41
  output?: any;
@@ -3,16 +3,23 @@ import { ActionType } from './action-types';
3
3
  import { DataSchema } from '../../../data-schema';
4
4
  export declare const BaseAction: z.ZodObject<{
5
5
  id: z.ZodString;
6
- key: z.ZodString;
7
6
  name: z.ZodString;
8
- revision: z.ZodString;
7
+ } & {
8
+ key: z.ZodOptional<z.ZodString>;
9
+ uuid: z.ZodOptional<z.ZodString>;
10
+ description: z.ZodOptional<z.ZodString>;
11
+ state: z.ZodOptional<z.ZodNativeEnum<typeof import("../../types").WorkspaceElementState>>;
12
+ errors: z.ZodOptional<z.ZodArray<any, "many">>;
13
+ revision: z.ZodOptional<z.ZodString>;
14
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
15
+ createdAt: z.ZodOptional<z.ZodString>;
16
+ updatedAt: z.ZodOptional<z.ZodString>;
17
+ archivedAt: z.ZodOptional<z.ZodString>;
18
+ } & {
9
19
  integrationId: z.ZodOptional<z.ZodString>;
10
20
  parentId: z.ZodOptional<z.ZodString>;
11
21
  parentRevision: z.ZodOptional<z.ZodString>;
12
22
  isCustomized: z.ZodOptional<z.ZodBoolean>;
13
- createdAt: z.ZodOptional<z.ZodString>;
14
- updatedAt: z.ZodOptional<z.ZodString>;
15
- archivedAt: z.ZodOptional<z.ZodString>;
16
23
  type: z.ZodNativeEnum<typeof ActionType>;
17
24
  inputSchema: z.ZodOptional<z.ZodType<DataSchema, z.ZodTypeDef, DataSchema>>;
18
25
  config: z.ZodOptional<z.ZodAny>;
@@ -23,15 +30,20 @@ export declare const BaseAction: z.ZodObject<{
23
30
  outputSchema: z.ZodOptional<z.ZodType<DataSchema, z.ZodTypeDef, DataSchema>>;
24
31
  dependencies: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
25
32
  }, "strip", z.ZodTypeAny, {
26
- key: string;
27
33
  type: ActionType;
28
34
  id: string;
29
35
  name: string;
30
- revision: string;
31
- integrationId?: string | undefined;
36
+ key?: string | undefined;
37
+ uuid?: string | undefined;
38
+ description?: string | undefined;
39
+ state?: import("../../types").WorkspaceElementState | undefined;
40
+ errors?: any[] | undefined;
41
+ revision?: string | undefined;
42
+ isDeactivated?: boolean | undefined;
32
43
  createdAt?: string | undefined;
33
44
  updatedAt?: string | undefined;
34
45
  archivedAt?: string | undefined;
46
+ integrationId?: string | undefined;
35
47
  parentId?: string | undefined;
36
48
  parentRevision?: string | undefined;
37
49
  isCustomized?: boolean | undefined;
@@ -44,15 +56,20 @@ export declare const BaseAction: z.ZodObject<{
44
56
  outputSchema?: DataSchema | undefined;
45
57
  dependencies?: any[] | undefined;
46
58
  }, {
47
- key: string;
48
59
  type: ActionType;
49
60
  id: string;
50
61
  name: string;
51
- revision: string;
52
- integrationId?: string | undefined;
62
+ key?: string | undefined;
63
+ uuid?: string | undefined;
64
+ description?: string | undefined;
65
+ state?: import("../../types").WorkspaceElementState | undefined;
66
+ errors?: any[] | undefined;
67
+ revision?: string | undefined;
68
+ isDeactivated?: boolean | undefined;
53
69
  createdAt?: string | undefined;
54
70
  updatedAt?: string | undefined;
55
71
  archivedAt?: string | undefined;
72
+ integrationId?: string | undefined;
56
73
  parentId?: string | undefined;
57
74
  parentRevision?: string | undefined;
58
75
  isCustomized?: boolean | undefined;
@@ -2,10 +2,15 @@ import { z } from 'zod';
2
2
  export declare const BaseAppDataSchemaInstance: z.ZodObject<{
3
3
  id: z.ZodString;
4
4
  name: z.ZodString;
5
- } & {
6
- key: z.ZodString;
5
+ key: z.ZodOptional<z.ZodString>;
6
+ uuid: z.ZodOptional<z.ZodString>;
7
+ description: z.ZodOptional<z.ZodString>;
7
8
  state: z.ZodOptional<z.ZodNativeEnum<typeof import("../../types").WorkspaceElementState>>;
8
9
  errors: z.ZodOptional<z.ZodArray<any, "many">>;
10
+ revision: z.ZodOptional<z.ZodString>;
11
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
12
+ createdAt: z.ZodOptional<z.ZodString>;
13
+ updatedAt: z.ZodOptional<z.ZodString>;
9
14
  } & {
10
15
  appId: z.ZodString;
11
16
  userId: z.ZodString;
@@ -16,32 +21,44 @@ export declare const BaseAppDataSchemaInstance: z.ZodObject<{
16
21
  error: any;
17
22
  archivedAt: z.ZodOptional<z.ZodString>;
18
23
  }, "strip", z.ZodTypeAny, {
19
- key: string;
20
24
  id: string;
21
25
  name: string;
22
26
  userId: string;
23
27
  appId: string;
24
28
  appDataSchemaId: string;
25
29
  appDataSchemaRevision: string;
30
+ key?: string | undefined;
26
31
  error?: any;
32
+ uuid?: string | undefined;
33
+ description?: string | undefined;
27
34
  state?: import("../../types").WorkspaceElementState | undefined;
28
35
  errors?: any[] | undefined;
36
+ revision?: string | undefined;
37
+ isDeactivated?: boolean | undefined;
38
+ createdAt?: string | undefined;
39
+ updatedAt?: string | undefined;
40
+ archivedAt?: string | undefined;
29
41
  instanceKey?: string | undefined;
30
42
  schema?: any;
31
- archivedAt?: string | undefined;
32
43
  }, {
33
- key: string;
34
44
  id: string;
35
45
  name: string;
36
46
  userId: string;
37
47
  appId: string;
38
48
  appDataSchemaId: string;
39
49
  appDataSchemaRevision: string;
50
+ key?: string | undefined;
40
51
  error?: any;
52
+ uuid?: string | undefined;
53
+ description?: string | undefined;
41
54
  state?: import("../../types").WorkspaceElementState | undefined;
42
55
  errors?: any[] | undefined;
56
+ revision?: string | undefined;
57
+ isDeactivated?: boolean | undefined;
58
+ createdAt?: string | undefined;
59
+ updatedAt?: string | undefined;
60
+ archivedAt?: string | undefined;
43
61
  instanceKey?: string | undefined;
44
62
  schema?: any;
45
- archivedAt?: string | undefined;
46
63
  }>;
47
64
  export type BaseAppDataSchemaInstance = z.infer<typeof BaseAppDataSchemaInstance>;
@@ -2,34 +2,48 @@ import { z } from 'zod';
2
2
  export declare const BaseAppDataSchema: z.ZodObject<{
3
3
  id: z.ZodString;
4
4
  name: z.ZodString;
5
- } & {
6
- key: z.ZodString;
5
+ key: z.ZodOptional<z.ZodString>;
6
+ uuid: z.ZodOptional<z.ZodString>;
7
+ description: z.ZodOptional<z.ZodString>;
7
8
  state: z.ZodOptional<z.ZodNativeEnum<typeof import("../../types").WorkspaceElementState>>;
8
9
  errors: z.ZodOptional<z.ZodArray<any, "many">>;
10
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
11
+ createdAt: z.ZodOptional<z.ZodString>;
12
+ updatedAt: z.ZodOptional<z.ZodString>;
9
13
  } & {
10
14
  schema: z.ZodAny;
11
15
  code: z.ZodOptional<z.ZodString>;
12
16
  archivedAt: z.ZodOptional<z.ZodString>;
13
17
  revision: z.ZodOptional<z.ZodString>;
14
18
  }, "strip", z.ZodTypeAny, {
15
- key: string;
16
19
  id: string;
17
20
  name: string;
21
+ key?: string | undefined;
18
22
  code?: string | undefined;
23
+ uuid?: string | undefined;
24
+ description?: string | undefined;
19
25
  state?: import("../../types").WorkspaceElementState | undefined;
20
26
  errors?: any[] | undefined;
21
- schema?: any;
22
- archivedAt?: string | undefined;
23
27
  revision?: string | undefined;
28
+ isDeactivated?: boolean | undefined;
29
+ createdAt?: string | undefined;
30
+ updatedAt?: string | undefined;
31
+ archivedAt?: string | undefined;
32
+ schema?: any;
24
33
  }, {
25
- key: string;
26
34
  id: string;
27
35
  name: string;
36
+ key?: string | undefined;
28
37
  code?: string | undefined;
38
+ uuid?: string | undefined;
39
+ description?: string | undefined;
29
40
  state?: import("../../types").WorkspaceElementState | undefined;
30
41
  errors?: any[] | undefined;
31
- schema?: any;
32
- archivedAt?: string | undefined;
33
42
  revision?: string | undefined;
43
+ isDeactivated?: boolean | undefined;
44
+ createdAt?: string | undefined;
45
+ updatedAt?: string | undefined;
46
+ archivedAt?: string | undefined;
47
+ schema?: any;
34
48
  }>;
35
49
  export type BaseAppDataSchema = z.infer<typeof BaseAppDataSchema>;
@@ -3,10 +3,14 @@ import { DataSchema } from '../../../data-schema';
3
3
  export declare const BaseAppEventSubscription: z.ZodObject<{
4
4
  id: z.ZodString;
5
5
  name: z.ZodString;
6
- } & {
7
- key: z.ZodString;
6
+ key: z.ZodOptional<z.ZodString>;
7
+ uuid: z.ZodOptional<z.ZodString>;
8
+ description: z.ZodOptional<z.ZodString>;
8
9
  state: z.ZodOptional<z.ZodNativeEnum<typeof import("../../types").WorkspaceElementState>>;
9
10
  errors: z.ZodOptional<z.ZodArray<any, "many">>;
11
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
12
+ createdAt: z.ZodOptional<z.ZodString>;
13
+ updatedAt: z.ZodOptional<z.ZodString>;
10
14
  } & {
11
15
  revision: z.ZodString;
12
16
  appEventTypeId: z.ZodString;
@@ -16,7 +20,7 @@ export declare const BaseAppEventSubscription: z.ZodObject<{
16
20
  schema: z.ZodOptional<z.ZodType<DataSchema, z.ZodTypeDef, DataSchema>>;
17
21
  webhookUri: z.ZodString;
18
22
  subscriptionRequest: z.ZodObject<{
19
- method: z.ZodOptional<z.ZodNativeEnum<typeof import("../../../http-requests").HttpRequestMethod>>;
23
+ method: z.ZodOptional<z.ZodPipeline<z.ZodString, z.ZodNativeEnum<typeof import("../../../http-requests").HttpRequestMethod>>>;
20
24
  uri: z.ZodAny;
21
25
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
22
26
  query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
@@ -29,7 +33,7 @@ export declare const BaseAppEventSubscription: z.ZodObject<{
29
33
  query?: Record<string, any> | undefined;
30
34
  }, {
31
35
  headers?: Record<string, any> | undefined;
32
- method?: import("../../../http-requests").HttpRequestMethod | undefined;
36
+ method?: string | undefined;
33
37
  body?: any;
34
38
  uri?: any;
35
39
  query?: Record<string, any> | undefined;
@@ -37,12 +41,11 @@ export declare const BaseAppEventSubscription: z.ZodObject<{
37
41
  subscriptionResponse: z.ZodOptional<z.ZodAny>;
38
42
  archivedAt: z.ZodOptional<z.ZodString>;
39
43
  }, "strip", z.ZodTypeAny, {
40
- key: string;
41
44
  id: string;
42
45
  name: string;
46
+ revision: string;
43
47
  userId: string;
44
48
  webhookUri: string;
45
- revision: string;
46
49
  appEventTypeId: string;
47
50
  isSubscribed: boolean;
48
51
  subscriptionRequest: {
@@ -52,33 +55,44 @@ export declare const BaseAppEventSubscription: z.ZodObject<{
52
55
  uri?: any;
53
56
  query?: Record<string, any> | undefined;
54
57
  };
58
+ key?: string | undefined;
59
+ uuid?: string | undefined;
60
+ description?: string | undefined;
55
61
  state?: import("../../types").WorkspaceElementState | undefined;
56
62
  errors?: any[] | undefined;
63
+ isDeactivated?: boolean | undefined;
64
+ createdAt?: string | undefined;
65
+ updatedAt?: string | undefined;
66
+ archivedAt?: string | undefined;
57
67
  instanceKey?: string | undefined;
58
68
  schema?: DataSchema | undefined;
59
- archivedAt?: string | undefined;
60
69
  subscriptionResponse?: any;
61
70
  }, {
62
- key: string;
63
71
  id: string;
64
72
  name: string;
73
+ revision: string;
65
74
  userId: string;
66
75
  webhookUri: string;
67
- revision: string;
68
76
  appEventTypeId: string;
69
77
  isSubscribed: boolean;
70
78
  subscriptionRequest: {
71
79
  headers?: Record<string, any> | undefined;
72
- method?: import("../../../http-requests").HttpRequestMethod | undefined;
80
+ method?: string | undefined;
73
81
  body?: any;
74
82
  uri?: any;
75
83
  query?: Record<string, any> | undefined;
76
84
  };
85
+ key?: string | undefined;
86
+ uuid?: string | undefined;
87
+ description?: string | undefined;
77
88
  state?: import("../../types").WorkspaceElementState | undefined;
78
89
  errors?: any[] | undefined;
90
+ isDeactivated?: boolean | undefined;
91
+ createdAt?: string | undefined;
92
+ updatedAt?: string | undefined;
93
+ archivedAt?: string | undefined;
79
94
  instanceKey?: string | undefined;
80
95
  schema?: DataSchema | undefined;
81
- archivedAt?: string | undefined;
82
96
  subscriptionResponse?: any;
83
97
  }>;
84
98
  export type BaseAppEventSubscription = z.infer<typeof BaseAppEventSubscription>;
@@ -3,15 +3,19 @@ import { DataSchema } from '../../../data-schema';
3
3
  export declare const BaseAppEventType: z.ZodObject<{
4
4
  id: z.ZodString;
5
5
  name: z.ZodString;
6
- } & {
7
- key: z.ZodString;
6
+ key: z.ZodOptional<z.ZodString>;
7
+ uuid: z.ZodOptional<z.ZodString>;
8
+ description: z.ZodOptional<z.ZodString>;
8
9
  state: z.ZodOptional<z.ZodNativeEnum<typeof import("../../types").WorkspaceElementState>>;
9
10
  errors: z.ZodOptional<z.ZodArray<any, "many">>;
11
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
12
+ createdAt: z.ZodOptional<z.ZodString>;
13
+ updatedAt: z.ZodOptional<z.ZodString>;
10
14
  } & {
11
15
  revision: z.ZodString;
12
16
  archivedAt: z.ZodOptional<z.ZodString>;
13
17
  subscribeRequest: z.ZodOptional<z.ZodObject<{
14
- method: z.ZodOptional<z.ZodNativeEnum<typeof import("../../../http-requests").HttpRequestMethod>>;
18
+ method: z.ZodOptional<z.ZodPipeline<z.ZodString, z.ZodNativeEnum<typeof import("../../../http-requests").HttpRequestMethod>>>;
15
19
  uri: z.ZodAny;
16
20
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
17
21
  query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
@@ -24,7 +28,7 @@ export declare const BaseAppEventType: z.ZodObject<{
24
28
  query?: Record<string, any> | undefined;
25
29
  }, {
26
30
  headers?: Record<string, any> | undefined;
27
- method?: import("../../../http-requests").HttpRequestMethod | undefined;
31
+ method?: string | undefined;
28
32
  body?: any;
29
33
  uri?: any;
30
34
  query?: Record<string, any> | undefined;
@@ -34,15 +38,20 @@ export declare const BaseAppEventType: z.ZodObject<{
34
38
  globalWebhookUri: z.ZodString;
35
39
  userIdFormula: z.ZodOptional<z.ZodAny>;
36
40
  }, "strip", z.ZodTypeAny, {
37
- key: string;
38
41
  id: string;
39
42
  name: string;
40
43
  revision: string;
41
44
  globalWebhookUri: string;
45
+ key?: string | undefined;
46
+ uuid?: string | undefined;
47
+ description?: string | undefined;
42
48
  state?: import("../../types").WorkspaceElementState | undefined;
43
49
  errors?: any[] | undefined;
44
- schema?: DataSchema | undefined;
50
+ isDeactivated?: boolean | undefined;
51
+ createdAt?: string | undefined;
52
+ updatedAt?: string | undefined;
45
53
  archivedAt?: string | undefined;
54
+ schema?: DataSchema | undefined;
46
55
  subscribeRequest?: {
47
56
  headers?: Record<string, any> | undefined;
48
57
  method?: import("../../../http-requests").HttpRequestMethod | undefined;
@@ -53,18 +62,23 @@ export declare const BaseAppEventType: z.ZodObject<{
53
62
  example?: any;
54
63
  userIdFormula?: any;
55
64
  }, {
56
- key: string;
57
65
  id: string;
58
66
  name: string;
59
67
  revision: string;
60
68
  globalWebhookUri: string;
69
+ key?: string | undefined;
70
+ uuid?: string | undefined;
71
+ description?: string | undefined;
61
72
  state?: import("../../types").WorkspaceElementState | undefined;
62
73
  errors?: any[] | undefined;
63
- schema?: DataSchema | undefined;
74
+ isDeactivated?: boolean | undefined;
75
+ createdAt?: string | undefined;
76
+ updatedAt?: string | undefined;
64
77
  archivedAt?: string | undefined;
78
+ schema?: DataSchema | undefined;
65
79
  subscribeRequest?: {
66
80
  headers?: Record<string, any> | undefined;
67
- method?: import("../../../http-requests").HttpRequestMethod | undefined;
81
+ method?: string | undefined;
68
82
  body?: any;
69
83
  uri?: any;
70
84
  query?: Record<string, any> | undefined;
@@ -29,59 +29,65 @@ export declare const BaseConnection: z.ZodObject<{
29
29
  } & {
30
30
  name: z.ZodString;
31
31
  userId: z.ZodString;
32
+ isTest: z.ZodOptional<z.ZodBoolean>;
32
33
  disconnected: z.ZodOptional<z.ZodBoolean>;
34
+ isDefunct: z.ZodOptional<z.ZodBoolean>;
33
35
  error: any;
34
36
  integrationId: z.ZodString;
35
37
  credentials: z.ZodOptional<z.ZodUnknown>;
36
38
  parameters: z.ZodOptional<z.ZodUnknown>;
37
39
  connectorParameters: z.ZodOptional<z.ZodUnknown>;
38
- accessToken: z.ZodOptional<z.ZodString>;
39
- refreshToken: z.ZodOptional<z.ZodString>;
40
40
  createdAt: z.ZodString;
41
41
  updatedAt: z.ZodString;
42
42
  lastActiveAt: z.ZodOptional<z.ZodString>;
43
43
  nextCredentialsRefreshAt: z.ZodOptional<z.ZodString>;
44
44
  archivedAt: z.ZodOptional<z.ZodString>;
45
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
45
46
  state: z.ZodOptional<z.ZodNativeEnum<typeof WorkspaceElementState>>;
46
47
  errors: z.ZodOptional<z.ZodArray<any, "many">>;
48
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
47
49
  }, "strip", z.ZodTypeAny, {
48
50
  id: string;
49
51
  name: string;
50
- userId: string;
51
- integrationId: string;
52
52
  createdAt: string;
53
53
  updatedAt: string;
54
+ userId: string;
55
+ integrationId: string;
54
56
  error?: any;
55
57
  state?: WorkspaceElementState | undefined;
56
58
  errors?: any[] | undefined;
57
- accessToken?: string | undefined;
59
+ isDeactivated?: boolean | undefined;
60
+ archivedAt?: string | undefined;
58
61
  credentials?: unknown;
59
62
  parameters?: unknown;
60
63
  connectorParameters?: unknown;
64
+ isTest?: boolean | undefined;
61
65
  disconnected?: boolean | undefined;
62
- refreshToken?: string | undefined;
66
+ isDefunct?: boolean | undefined;
63
67
  lastActiveAt?: string | undefined;
64
68
  nextCredentialsRefreshAt?: string | undefined;
65
- archivedAt?: string | undefined;
69
+ meta?: Record<string, any> | undefined;
66
70
  }, {
67
71
  id: string;
68
72
  name: string;
69
- userId: string;
70
- integrationId: string;
71
73
  createdAt: string;
72
74
  updatedAt: string;
75
+ userId: string;
76
+ integrationId: string;
73
77
  error?: any;
74
78
  state?: WorkspaceElementState | undefined;
75
79
  errors?: any[] | undefined;
76
- accessToken?: string | undefined;
80
+ isDeactivated?: boolean | undefined;
81
+ archivedAt?: string | undefined;
77
82
  credentials?: unknown;
78
83
  parameters?: unknown;
79
84
  connectorParameters?: unknown;
85
+ isTest?: boolean | undefined;
80
86
  disconnected?: boolean | undefined;
81
- refreshToken?: string | undefined;
87
+ isDefunct?: boolean | undefined;
82
88
  lastActiveAt?: string | undefined;
83
89
  nextCredentialsRefreshAt?: string | undefined;
84
- archivedAt?: string | undefined;
90
+ meta?: Record<string, any> | undefined;
85
91
  }>;
86
92
  export type BaseConnection = z.infer<typeof BaseConnection>;
87
93
  export interface ConnectionSpec extends ConnectorSpec {
@@ -8,23 +8,29 @@ export declare const BaseCustomer: z.ZodObject<{
8
8
  lastActiveAt: z.ZodOptional<z.ZodString>;
9
9
  isTest: z.ZodOptional<z.ZodBoolean>;
10
10
  isBillable: z.ZodOptional<z.ZodBoolean>;
11
+ createdAt: z.ZodOptional<z.ZodString>;
12
+ archivedAt: z.ZodOptional<z.ZodString>;
11
13
  }, "strip", z.ZodTypeAny, {
12
14
  id: string;
13
15
  name: string;
14
16
  internalId: string;
17
+ createdAt?: string | undefined;
18
+ archivedAt?: string | undefined;
15
19
  credentials?: any;
16
20
  fields?: Record<string, any> | undefined;
17
- lastActiveAt?: string | undefined;
18
21
  isTest?: boolean | undefined;
22
+ lastActiveAt?: string | undefined;
19
23
  isBillable?: boolean | undefined;
20
24
  }, {
21
25
  id: string;
22
26
  name: string;
23
27
  internalId: string;
28
+ createdAt?: string | undefined;
29
+ archivedAt?: string | undefined;
24
30
  credentials?: any;
25
31
  fields?: Record<string, any> | undefined;
26
- lastActiveAt?: string | undefined;
27
32
  isTest?: boolean | undefined;
33
+ lastActiveAt?: string | undefined;
28
34
  isBillable?: boolean | undefined;
29
35
  }>;
30
36
  export type BaseCustomer = z.infer<typeof BaseCustomer>;