@membranehq/sdk 0.4.0 → 0.5.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.
- package/dist/bundle.d.ts +8370 -1268
- package/dist/bundle.js +2216 -2085
- package/dist/bundle.js.map +1 -1
- package/dist/dts/accessors/connections-accessors.d.ts +57 -1
- package/dist/dts/accessors/integrations-accessors.d.ts +57 -1
- package/dist/dts/api-client.d.ts +1 -0
- package/dist/dts/client.d.ts +1 -0
- package/dist/dts/data-schema/types.d.ts +4 -3
- package/dist/dts/entity-repository.d.ts +87 -20
- package/dist/dts/formulas/dataSchemaRef.d.ts +2 -2
- package/dist/dts/http-requests.d.ts +20 -6
- package/dist/dts/iframe.d.ts +12 -4
- package/dist/dts/index.d.ts +2 -1
- package/dist/dts/sse/index.d.ts +1 -0
- package/dist/dts/sse/workspace-elements.d.ts +9 -0
- package/dist/dts/workspace-elements/api/actions-api.d.ts +702 -40
- package/dist/dts/workspace-elements/api/connections-api.d.ts +702 -41
- package/dist/dts/workspace-elements/api/customers-api.d.ts +56 -13
- package/dist/dts/workspace-elements/api/data-sources-api.d.ts +834 -77
- package/dist/dts/workspace-elements/api/external-events-api.d.ts +440 -6
- package/dist/dts/workspace-elements/api/field-mappings-api.d.ts +586 -6
- package/dist/dts/workspace-elements/api/flow-runs-api.d.ts +1 -1
- package/dist/dts/workspace-elements/api/flows-api.d.ts +2417 -50
- package/dist/dts/workspace-elements/api/integrations-api.d.ts +253 -24
- package/dist/dts/workspace-elements/api/scenarios-api.d.ts +397 -34
- package/dist/dts/workspace-elements/api/screens-api.d.ts +2 -2
- package/dist/dts/workspace-elements/base/action-instances/types.d.ts +61 -14
- package/dist/dts/workspace-elements/base/action-run-log-records/types.d.ts +30 -7
- package/dist/dts/workspace-elements/base/actions/types.d.ts +60 -17
- package/dist/dts/workspace-elements/base/app-data-schema-instances/types.d.ts +42 -7
- package/dist/dts/workspace-elements/base/app-data-schemas/types.d.ts +35 -7
- package/dist/dts/workspace-elements/base/app-event-subscriptions/types.d.ts +78 -9
- package/dist/dts/workspace-elements/base/app-event-types/types.d.ts +70 -7
- package/dist/dts/workspace-elements/base/connections/types.d.ts +76 -20
- package/dist/dts/workspace-elements/base/connectors/types.d.ts +14 -2
- package/dist/dts/workspace-elements/base/customers/index.d.ts +26 -6
- package/dist/dts/workspace-elements/base/data-collections/schemas.d.ts +75 -74
- package/dist/dts/workspace-elements/base/data-link-table-instances/types.d.ts +61 -11
- package/dist/dts/workspace-elements/base/data-link-tables/types.d.ts +26 -4
- package/dist/dts/workspace-elements/base/data-source-instances/types.d.ts +1030 -19
- package/dist/dts/workspace-elements/base/data-sources/types.d.ts +89 -22
- package/dist/dts/workspace-elements/base/external-event-log-records/types.d.ts +31 -8
- package/dist/dts/workspace-elements/base/external-event-pulls/types.d.ts +35 -8
- package/dist/dts/workspace-elements/base/external-event-subscriptions/types.d.ts +199 -23
- package/dist/dts/workspace-elements/base/external-events/types.d.ts +145 -5
- package/dist/dts/workspace-elements/base/field-mapping-instances/types.d.ts +74 -16
- package/dist/dts/workspace-elements/base/field-mappings/types.d.ts +91 -14
- package/dist/dts/workspace-elements/base/flow-instances/schemas.d.ts +39 -39
- package/dist/dts/workspace-elements/base/flow-instances/types.d.ts +155 -24
- package/dist/dts/workspace-elements/base/flow-runs/flow-node-runs.d.ts +20 -20
- package/dist/dts/workspace-elements/base/flow-runs/types.d.ts +114 -19
- package/dist/dts/workspace-elements/base/flows/types.d.ts +220 -26
- package/dist/dts/workspace-elements/base/integrations/types.d.ts +497 -24
- package/dist/dts/workspace-elements/base/scenarios/types.d.ts +723 -23
- package/dist/dts/workspace-elements/base/screens/types.d.ts +40 -6
- package/dist/index.d.ts +12141 -2138
- package/dist/index.js +1555 -522
- package/dist/index.js.map +1 -1
- package/dist/index.module.d.mts +12141 -2138
- package/dist/index.module.mjs +1414 -490
- package/dist/index.module.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1,25 +1,68 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
1
2
|
import { ActionType } from './action-types';
|
|
2
|
-
import { WorkspaceElementDependency } from '../..';
|
|
3
3
|
import { DataSchema } from '../../../data-schema';
|
|
4
|
-
export
|
|
5
|
-
id:
|
|
4
|
+
export declare const BaseAction: z.ZodObject<{
|
|
5
|
+
id: z.ZodString;
|
|
6
|
+
key: z.ZodString;
|
|
7
|
+
name: z.ZodString;
|
|
8
|
+
revision: z.ZodString;
|
|
9
|
+
integrationId: z.ZodOptional<z.ZodString>;
|
|
10
|
+
parentId: z.ZodOptional<z.ZodString>;
|
|
11
|
+
parentRevision: z.ZodOptional<z.ZodString>;
|
|
12
|
+
isCustomized: z.ZodOptional<z.ZodBoolean>;
|
|
13
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
14
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
15
|
+
archivedAt: z.ZodOptional<z.ZodString>;
|
|
16
|
+
type: z.ZodNativeEnum<typeof ActionType>;
|
|
17
|
+
inputSchema: z.ZodOptional<z.ZodType<DataSchema, z.ZodTypeDef, DataSchema>>;
|
|
18
|
+
config: z.ZodOptional<z.ZodAny>;
|
|
19
|
+
outputMapping: z.ZodOptional<z.ZodAny>;
|
|
20
|
+
customOutputSchema: z.ZodOptional<z.ZodType<DataSchema, z.ZodTypeDef, DataSchema>>;
|
|
21
|
+
defaultOutputSchema: z.ZodOptional<z.ZodType<DataSchema, z.ZodTypeDef, DataSchema>>;
|
|
22
|
+
transformedOutputSchema: z.ZodOptional<z.ZodType<DataSchema, z.ZodTypeDef, DataSchema>>;
|
|
23
|
+
outputSchema: z.ZodOptional<z.ZodType<DataSchema, z.ZodTypeDef, DataSchema>>;
|
|
24
|
+
dependencies: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
25
|
+
}, "strip", z.ZodTypeAny, {
|
|
6
26
|
key: string;
|
|
27
|
+
type: ActionType;
|
|
28
|
+
id: string;
|
|
7
29
|
name: string;
|
|
8
30
|
revision: string;
|
|
9
|
-
integrationId?: string;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
31
|
+
integrationId?: string | undefined;
|
|
32
|
+
createdAt?: string | undefined;
|
|
33
|
+
updatedAt?: string | undefined;
|
|
34
|
+
archivedAt?: string | undefined;
|
|
35
|
+
parentId?: string | undefined;
|
|
36
|
+
parentRevision?: string | undefined;
|
|
37
|
+
isCustomized?: boolean | undefined;
|
|
38
|
+
inputSchema?: DataSchema | undefined;
|
|
39
|
+
config?: any;
|
|
40
|
+
outputMapping?: any;
|
|
41
|
+
customOutputSchema?: DataSchema | undefined;
|
|
42
|
+
defaultOutputSchema?: DataSchema | undefined;
|
|
43
|
+
transformedOutputSchema?: DataSchema | undefined;
|
|
44
|
+
outputSchema?: DataSchema | undefined;
|
|
45
|
+
dependencies?: any[] | undefined;
|
|
46
|
+
}, {
|
|
47
|
+
key: string;
|
|
16
48
|
type: ActionType;
|
|
17
|
-
|
|
49
|
+
id: string;
|
|
50
|
+
name: string;
|
|
51
|
+
revision: string;
|
|
52
|
+
integrationId?: string | undefined;
|
|
53
|
+
createdAt?: string | undefined;
|
|
54
|
+
updatedAt?: string | undefined;
|
|
55
|
+
archivedAt?: string | undefined;
|
|
56
|
+
parentId?: string | undefined;
|
|
57
|
+
parentRevision?: string | undefined;
|
|
58
|
+
isCustomized?: boolean | undefined;
|
|
59
|
+
inputSchema?: DataSchema | undefined;
|
|
18
60
|
config?: any;
|
|
19
61
|
outputMapping?: any;
|
|
20
|
-
customOutputSchema?: DataSchema;
|
|
21
|
-
defaultOutputSchema?: DataSchema;
|
|
22
|
-
transformedOutputSchema?: DataSchema;
|
|
23
|
-
outputSchema?: DataSchema;
|
|
24
|
-
dependencies?:
|
|
25
|
-
}
|
|
62
|
+
customOutputSchema?: DataSchema | undefined;
|
|
63
|
+
defaultOutputSchema?: DataSchema | undefined;
|
|
64
|
+
transformedOutputSchema?: DataSchema | undefined;
|
|
65
|
+
outputSchema?: DataSchema | undefined;
|
|
66
|
+
dependencies?: any[] | undefined;
|
|
67
|
+
}>;
|
|
68
|
+
export type BaseAction = z.infer<typeof BaseAction>;
|
|
@@ -1,12 +1,47 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const BaseAppDataSchemaInstance: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
name: z.ZodString;
|
|
5
|
+
} & {
|
|
6
|
+
key: z.ZodString;
|
|
7
|
+
state: z.ZodOptional<z.ZodNativeEnum<typeof import("../../types").WorkspaceElementState>>;
|
|
8
|
+
errors: z.ZodOptional<z.ZodArray<any, "many">>;
|
|
9
|
+
} & {
|
|
10
|
+
appId: z.ZodString;
|
|
11
|
+
userId: z.ZodString;
|
|
12
|
+
appDataSchemaId: z.ZodString;
|
|
13
|
+
appDataSchemaRevision: z.ZodString;
|
|
14
|
+
instanceKey: z.ZodOptional<z.ZodString>;
|
|
15
|
+
schema: z.ZodOptional<z.ZodAny>;
|
|
16
|
+
error: any;
|
|
17
|
+
archivedAt: z.ZodOptional<z.ZodString>;
|
|
18
|
+
}, "strip", z.ZodTypeAny, {
|
|
19
|
+
key: string;
|
|
20
|
+
id: string;
|
|
21
|
+
name: string;
|
|
22
|
+
userId: string;
|
|
4
23
|
appId: string;
|
|
24
|
+
appDataSchemaId: string;
|
|
25
|
+
appDataSchemaRevision: string;
|
|
26
|
+
error?: any;
|
|
27
|
+
state?: import("../../types").WorkspaceElementState | undefined;
|
|
28
|
+
errors?: any[] | undefined;
|
|
29
|
+
instanceKey?: string | undefined;
|
|
30
|
+
schema?: any;
|
|
31
|
+
archivedAt?: string | undefined;
|
|
32
|
+
}, {
|
|
33
|
+
key: string;
|
|
34
|
+
id: string;
|
|
35
|
+
name: string;
|
|
5
36
|
userId: string;
|
|
37
|
+
appId: string;
|
|
6
38
|
appDataSchemaId: string;
|
|
7
39
|
appDataSchemaRevision: string;
|
|
8
|
-
|
|
40
|
+
error?: any;
|
|
41
|
+
state?: import("../../types").WorkspaceElementState | undefined;
|
|
42
|
+
errors?: any[] | undefined;
|
|
43
|
+
instanceKey?: string | undefined;
|
|
9
44
|
schema?: any;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
45
|
+
archivedAt?: string | undefined;
|
|
46
|
+
}>;
|
|
47
|
+
export type BaseAppDataSchemaInstance = z.infer<typeof BaseAppDataSchemaInstance>;
|
|
@@ -1,7 +1,35 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const BaseAppDataSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
name: z.ZodString;
|
|
5
|
+
} & {
|
|
6
|
+
key: z.ZodString;
|
|
7
|
+
state: z.ZodOptional<z.ZodNativeEnum<typeof import("../../types").WorkspaceElementState>>;
|
|
8
|
+
errors: z.ZodOptional<z.ZodArray<any, "many">>;
|
|
9
|
+
} & {
|
|
10
|
+
schema: z.ZodAny;
|
|
11
|
+
code: z.ZodOptional<z.ZodString>;
|
|
12
|
+
archivedAt: z.ZodOptional<z.ZodString>;
|
|
13
|
+
revision: z.ZodOptional<z.ZodString>;
|
|
14
|
+
}, "strip", z.ZodTypeAny, {
|
|
15
|
+
key: string;
|
|
16
|
+
id: string;
|
|
17
|
+
name: string;
|
|
18
|
+
code?: string | undefined;
|
|
19
|
+
state?: import("../../types").WorkspaceElementState | undefined;
|
|
20
|
+
errors?: any[] | undefined;
|
|
21
|
+
schema?: any;
|
|
22
|
+
archivedAt?: string | undefined;
|
|
23
|
+
revision?: string | undefined;
|
|
24
|
+
}, {
|
|
25
|
+
key: string;
|
|
26
|
+
id: string;
|
|
27
|
+
name: string;
|
|
28
|
+
code?: string | undefined;
|
|
29
|
+
state?: import("../../types").WorkspaceElementState | undefined;
|
|
30
|
+
errors?: any[] | undefined;
|
|
31
|
+
schema?: any;
|
|
32
|
+
archivedAt?: string | undefined;
|
|
33
|
+
revision?: string | undefined;
|
|
34
|
+
}>;
|
|
35
|
+
export type BaseAppDataSchema = z.infer<typeof BaseAppDataSchema>;
|
|
@@ -1,15 +1,84 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
1
2
|
import { DataSchema } from '../../../data-schema';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
export declare const BaseAppEventSubscription: z.ZodObject<{
|
|
4
|
+
id: z.ZodString;
|
|
5
|
+
name: z.ZodString;
|
|
6
|
+
} & {
|
|
7
|
+
key: z.ZodString;
|
|
8
|
+
state: z.ZodOptional<z.ZodNativeEnum<typeof import("../../types").WorkspaceElementState>>;
|
|
9
|
+
errors: z.ZodOptional<z.ZodArray<any, "many">>;
|
|
10
|
+
} & {
|
|
11
|
+
revision: z.ZodString;
|
|
12
|
+
appEventTypeId: z.ZodString;
|
|
13
|
+
userId: z.ZodString;
|
|
14
|
+
instanceKey: z.ZodOptional<z.ZodString>;
|
|
15
|
+
isSubscribed: z.ZodBoolean;
|
|
16
|
+
schema: z.ZodOptional<z.ZodType<DataSchema, z.ZodTypeDef, DataSchema>>;
|
|
17
|
+
webhookUri: z.ZodString;
|
|
18
|
+
subscriptionRequest: z.ZodObject<{
|
|
19
|
+
method: z.ZodOptional<z.ZodNativeEnum<typeof import("../../../http-requests").HttpRequestMethod>>;
|
|
20
|
+
uri: z.ZodAny;
|
|
21
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
22
|
+
query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
23
|
+
body: z.ZodOptional<z.ZodAny>;
|
|
24
|
+
}, "strip", z.ZodTypeAny, {
|
|
25
|
+
headers?: Record<string, any> | undefined;
|
|
26
|
+
method?: import("../../../http-requests").HttpRequestMethod | undefined;
|
|
27
|
+
body?: any;
|
|
28
|
+
uri?: any;
|
|
29
|
+
query?: Record<string, any> | undefined;
|
|
30
|
+
}, {
|
|
31
|
+
headers?: Record<string, any> | undefined;
|
|
32
|
+
method?: import("../../../http-requests").HttpRequestMethod | undefined;
|
|
33
|
+
body?: any;
|
|
34
|
+
uri?: any;
|
|
35
|
+
query?: Record<string, any> | undefined;
|
|
36
|
+
}>;
|
|
37
|
+
subscriptionResponse: z.ZodOptional<z.ZodAny>;
|
|
38
|
+
archivedAt: z.ZodOptional<z.ZodString>;
|
|
39
|
+
}, "strip", z.ZodTypeAny, {
|
|
40
|
+
key: string;
|
|
41
|
+
id: string;
|
|
42
|
+
name: string;
|
|
43
|
+
userId: string;
|
|
44
|
+
webhookUri: string;
|
|
5
45
|
revision: string;
|
|
6
46
|
appEventTypeId: string;
|
|
7
|
-
userId: string;
|
|
8
|
-
instanceKey?: string;
|
|
9
47
|
isSubscribed: boolean;
|
|
10
|
-
|
|
48
|
+
subscriptionRequest: {
|
|
49
|
+
headers?: Record<string, any> | undefined;
|
|
50
|
+
method?: import("../../../http-requests").HttpRequestMethod | undefined;
|
|
51
|
+
body?: any;
|
|
52
|
+
uri?: any;
|
|
53
|
+
query?: Record<string, any> | undefined;
|
|
54
|
+
};
|
|
55
|
+
state?: import("../../types").WorkspaceElementState | undefined;
|
|
56
|
+
errors?: any[] | undefined;
|
|
57
|
+
instanceKey?: string | undefined;
|
|
58
|
+
schema?: DataSchema | undefined;
|
|
59
|
+
archivedAt?: string | undefined;
|
|
60
|
+
subscriptionResponse?: any;
|
|
61
|
+
}, {
|
|
62
|
+
key: string;
|
|
63
|
+
id: string;
|
|
64
|
+
name: string;
|
|
65
|
+
userId: string;
|
|
11
66
|
webhookUri: string;
|
|
12
|
-
|
|
67
|
+
revision: string;
|
|
68
|
+
appEventTypeId: string;
|
|
69
|
+
isSubscribed: boolean;
|
|
70
|
+
subscriptionRequest: {
|
|
71
|
+
headers?: Record<string, any> | undefined;
|
|
72
|
+
method?: import("../../../http-requests").HttpRequestMethod | undefined;
|
|
73
|
+
body?: any;
|
|
74
|
+
uri?: any;
|
|
75
|
+
query?: Record<string, any> | undefined;
|
|
76
|
+
};
|
|
77
|
+
state?: import("../../types").WorkspaceElementState | undefined;
|
|
78
|
+
errors?: any[] | undefined;
|
|
79
|
+
instanceKey?: string | undefined;
|
|
80
|
+
schema?: DataSchema | undefined;
|
|
81
|
+
archivedAt?: string | undefined;
|
|
13
82
|
subscriptionResponse?: any;
|
|
14
|
-
|
|
15
|
-
|
|
83
|
+
}>;
|
|
84
|
+
export type BaseAppEventSubscription = z.infer<typeof BaseAppEventSubscription>;
|
|
@@ -1,12 +1,75 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
1
2
|
import { DataSchema } from '../../../data-schema';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
export declare const BaseAppEventType: z.ZodObject<{
|
|
4
|
+
id: z.ZodString;
|
|
5
|
+
name: z.ZodString;
|
|
6
|
+
} & {
|
|
7
|
+
key: z.ZodString;
|
|
8
|
+
state: z.ZodOptional<z.ZodNativeEnum<typeof import("../../types").WorkspaceElementState>>;
|
|
9
|
+
errors: z.ZodOptional<z.ZodArray<any, "many">>;
|
|
10
|
+
} & {
|
|
11
|
+
revision: z.ZodString;
|
|
12
|
+
archivedAt: z.ZodOptional<z.ZodString>;
|
|
13
|
+
subscribeRequest: z.ZodOptional<z.ZodObject<{
|
|
14
|
+
method: z.ZodOptional<z.ZodNativeEnum<typeof import("../../../http-requests").HttpRequestMethod>>;
|
|
15
|
+
uri: z.ZodAny;
|
|
16
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
17
|
+
query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
18
|
+
body: z.ZodOptional<z.ZodAny>;
|
|
19
|
+
}, "strip", z.ZodTypeAny, {
|
|
20
|
+
headers?: Record<string, any> | undefined;
|
|
21
|
+
method?: import("../../../http-requests").HttpRequestMethod | undefined;
|
|
22
|
+
body?: any;
|
|
23
|
+
uri?: any;
|
|
24
|
+
query?: Record<string, any> | undefined;
|
|
25
|
+
}, {
|
|
26
|
+
headers?: Record<string, any> | undefined;
|
|
27
|
+
method?: import("../../../http-requests").HttpRequestMethod | undefined;
|
|
28
|
+
body?: any;
|
|
29
|
+
uri?: any;
|
|
30
|
+
query?: Record<string, any> | undefined;
|
|
31
|
+
}>>;
|
|
32
|
+
example: z.ZodOptional<z.ZodAny>;
|
|
33
|
+
schema: z.ZodOptional<z.ZodType<DataSchema, z.ZodTypeDef, DataSchema>>;
|
|
34
|
+
globalWebhookUri: z.ZodString;
|
|
35
|
+
userIdFormula: z.ZodOptional<z.ZodAny>;
|
|
36
|
+
}, "strip", z.ZodTypeAny, {
|
|
37
|
+
key: string;
|
|
38
|
+
id: string;
|
|
39
|
+
name: string;
|
|
5
40
|
revision: string;
|
|
6
|
-
|
|
7
|
-
|
|
41
|
+
globalWebhookUri: string;
|
|
42
|
+
state?: import("../../types").WorkspaceElementState | undefined;
|
|
43
|
+
errors?: any[] | undefined;
|
|
44
|
+
schema?: DataSchema | undefined;
|
|
45
|
+
archivedAt?: string | undefined;
|
|
46
|
+
subscribeRequest?: {
|
|
47
|
+
headers?: Record<string, any> | undefined;
|
|
48
|
+
method?: import("../../../http-requests").HttpRequestMethod | undefined;
|
|
49
|
+
body?: any;
|
|
50
|
+
uri?: any;
|
|
51
|
+
query?: Record<string, any> | undefined;
|
|
52
|
+
} | undefined;
|
|
8
53
|
example?: any;
|
|
9
|
-
|
|
54
|
+
userIdFormula?: any;
|
|
55
|
+
}, {
|
|
56
|
+
key: string;
|
|
57
|
+
id: string;
|
|
58
|
+
name: string;
|
|
59
|
+
revision: string;
|
|
10
60
|
globalWebhookUri: string;
|
|
61
|
+
state?: import("../../types").WorkspaceElementState | undefined;
|
|
62
|
+
errors?: any[] | undefined;
|
|
63
|
+
schema?: DataSchema | undefined;
|
|
64
|
+
archivedAt?: string | undefined;
|
|
65
|
+
subscribeRequest?: {
|
|
66
|
+
headers?: Record<string, any> | undefined;
|
|
67
|
+
method?: import("../../../http-requests").HttpRequestMethod | undefined;
|
|
68
|
+
body?: any;
|
|
69
|
+
uri?: any;
|
|
70
|
+
query?: Record<string, any> | undefined;
|
|
71
|
+
} | undefined;
|
|
72
|
+
example?: any;
|
|
11
73
|
userIdFormula?: any;
|
|
12
|
-
}
|
|
74
|
+
}>;
|
|
75
|
+
export type BaseAppEventType = z.infer<typeof BaseAppEventType>;
|
|
@@ -1,33 +1,89 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { WorkspaceElementState } from '../../types';
|
|
3
3
|
import { ConnectorUiSpec, ConnectorSpec } from '../connectors/types';
|
|
4
|
-
export
|
|
5
|
-
path:
|
|
6
|
-
method
|
|
7
|
-
pathParameters
|
|
8
|
-
headers
|
|
9
|
-
query
|
|
4
|
+
export declare const ConnectionRequest: z.ZodObject<{
|
|
5
|
+
path: z.ZodAny;
|
|
6
|
+
method: z.ZodOptional<z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>>;
|
|
7
|
+
pathParameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
8
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
9
|
+
query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
10
|
+
data: z.ZodOptional<z.ZodAny>;
|
|
11
|
+
}, "strip", z.ZodTypeAny, {
|
|
12
|
+
headers?: Record<string, string> | undefined;
|
|
13
|
+
method?: "GET" | "POST" | "DELETE" | "PUT" | "PATCH" | undefined;
|
|
10
14
|
data?: any;
|
|
11
|
-
|
|
12
|
-
|
|
15
|
+
path?: any;
|
|
16
|
+
query?: Record<string, string> | undefined;
|
|
17
|
+
pathParameters?: Record<string, string> | undefined;
|
|
18
|
+
}, {
|
|
19
|
+
headers?: Record<string, string> | undefined;
|
|
20
|
+
method?: "GET" | "POST" | "DELETE" | "PUT" | "PATCH" | undefined;
|
|
21
|
+
data?: any;
|
|
22
|
+
path?: any;
|
|
23
|
+
query?: Record<string, string> | undefined;
|
|
24
|
+
pathParameters?: Record<string, string> | undefined;
|
|
25
|
+
}>;
|
|
26
|
+
export type ConnectionRequest = z.infer<typeof ConnectionRequest>;
|
|
27
|
+
export declare const BaseConnection: z.ZodObject<{
|
|
28
|
+
id: z.ZodString;
|
|
29
|
+
} & {
|
|
30
|
+
name: z.ZodString;
|
|
31
|
+
userId: z.ZodString;
|
|
32
|
+
disconnected: z.ZodOptional<z.ZodBoolean>;
|
|
33
|
+
error: any;
|
|
34
|
+
integrationId: z.ZodString;
|
|
35
|
+
credentials: z.ZodOptional<z.ZodUnknown>;
|
|
36
|
+
parameters: z.ZodOptional<z.ZodUnknown>;
|
|
37
|
+
connectorParameters: z.ZodOptional<z.ZodUnknown>;
|
|
38
|
+
accessToken: z.ZodOptional<z.ZodString>;
|
|
39
|
+
refreshToken: z.ZodOptional<z.ZodString>;
|
|
40
|
+
createdAt: z.ZodString;
|
|
41
|
+
updatedAt: z.ZodString;
|
|
42
|
+
lastActiveAt: z.ZodOptional<z.ZodString>;
|
|
43
|
+
nextCredentialsRefreshAt: z.ZodOptional<z.ZodString>;
|
|
44
|
+
archivedAt: z.ZodOptional<z.ZodString>;
|
|
45
|
+
state: z.ZodOptional<z.ZodNativeEnum<typeof WorkspaceElementState>>;
|
|
46
|
+
errors: z.ZodOptional<z.ZodArray<any, "many">>;
|
|
47
|
+
}, "strip", z.ZodTypeAny, {
|
|
48
|
+
id: string;
|
|
13
49
|
name: string;
|
|
14
50
|
userId: string;
|
|
15
|
-
disconnected?: boolean;
|
|
16
|
-
error?: ErrorData;
|
|
17
51
|
integrationId: string;
|
|
52
|
+
createdAt: string;
|
|
53
|
+
updatedAt: string;
|
|
54
|
+
error?: any;
|
|
55
|
+
state?: WorkspaceElementState | undefined;
|
|
56
|
+
errors?: any[] | undefined;
|
|
57
|
+
accessToken?: string | undefined;
|
|
18
58
|
credentials?: unknown;
|
|
19
59
|
parameters?: unknown;
|
|
20
60
|
connectorParameters?: unknown;
|
|
21
|
-
|
|
22
|
-
refreshToken?: string;
|
|
61
|
+
disconnected?: boolean | undefined;
|
|
62
|
+
refreshToken?: string | undefined;
|
|
63
|
+
lastActiveAt?: string | undefined;
|
|
64
|
+
nextCredentialsRefreshAt?: string | undefined;
|
|
65
|
+
archivedAt?: string | undefined;
|
|
66
|
+
}, {
|
|
67
|
+
id: string;
|
|
68
|
+
name: string;
|
|
69
|
+
userId: string;
|
|
70
|
+
integrationId: string;
|
|
23
71
|
createdAt: string;
|
|
24
72
|
updatedAt: string;
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
73
|
+
error?: any;
|
|
74
|
+
state?: WorkspaceElementState | undefined;
|
|
75
|
+
errors?: any[] | undefined;
|
|
76
|
+
accessToken?: string | undefined;
|
|
77
|
+
credentials?: unknown;
|
|
78
|
+
parameters?: unknown;
|
|
79
|
+
connectorParameters?: unknown;
|
|
80
|
+
disconnected?: boolean | undefined;
|
|
81
|
+
refreshToken?: string | undefined;
|
|
82
|
+
lastActiveAt?: string | undefined;
|
|
83
|
+
nextCredentialsRefreshAt?: string | undefined;
|
|
84
|
+
archivedAt?: string | undefined;
|
|
85
|
+
}>;
|
|
86
|
+
export type BaseConnection = z.infer<typeof BaseConnection>;
|
|
31
87
|
export interface ConnectionSpec extends ConnectorSpec {
|
|
32
88
|
}
|
|
33
89
|
export type ConnectionUiSpec = ConnectorUiSpec;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
1
2
|
import { ConnectorAuth } from './auth';
|
|
2
3
|
import { ConnectorMethodImplementation } from './methods';
|
|
3
4
|
import { ConnectorOperationHandler } from './operations';
|
|
@@ -56,9 +57,20 @@ export interface ConnectorSpec {
|
|
|
56
57
|
workspaceId?: string;
|
|
57
58
|
data?: any;
|
|
58
59
|
}
|
|
59
|
-
export
|
|
60
|
+
export declare const MinimalConnector: z.ZodObject<{
|
|
61
|
+
id: z.ZodString;
|
|
62
|
+
key: z.ZodString;
|
|
63
|
+
name: z.ZodString;
|
|
64
|
+
logoUri: z.ZodString;
|
|
65
|
+
}, "strip", z.ZodTypeAny, {
|
|
66
|
+
key: string;
|
|
60
67
|
id: string;
|
|
68
|
+
name: string;
|
|
69
|
+
logoUri: string;
|
|
70
|
+
}, {
|
|
61
71
|
key: string;
|
|
72
|
+
id: string;
|
|
62
73
|
name: string;
|
|
63
74
|
logoUri: string;
|
|
64
|
-
}
|
|
75
|
+
}>;
|
|
76
|
+
export type MinimalConnector = z.infer<typeof MinimalConnector>;
|
|
@@ -1,10 +1,30 @@
|
|
|
1
|
-
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const BaseCustomer: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
name: z.ZodString;
|
|
5
|
+
internalId: z.ZodString;
|
|
6
|
+
fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
7
|
+
credentials: z.ZodOptional<z.ZodAny>;
|
|
8
|
+
lastActiveAt: z.ZodOptional<z.ZodString>;
|
|
9
|
+
isTest: z.ZodOptional<z.ZodBoolean>;
|
|
10
|
+
isBillable: z.ZodOptional<z.ZodBoolean>;
|
|
11
|
+
}, "strip", z.ZodTypeAny, {
|
|
2
12
|
id: string;
|
|
3
13
|
name: string;
|
|
4
14
|
internalId: string;
|
|
5
|
-
fields?: Record<string, any>;
|
|
6
15
|
credentials?: any;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
16
|
+
fields?: Record<string, any> | undefined;
|
|
17
|
+
lastActiveAt?: string | undefined;
|
|
18
|
+
isTest?: boolean | undefined;
|
|
19
|
+
isBillable?: boolean | undefined;
|
|
20
|
+
}, {
|
|
21
|
+
id: string;
|
|
22
|
+
name: string;
|
|
23
|
+
internalId: string;
|
|
24
|
+
credentials?: any;
|
|
25
|
+
fields?: Record<string, any> | undefined;
|
|
26
|
+
lastActiveAt?: string | undefined;
|
|
27
|
+
isTest?: boolean | undefined;
|
|
28
|
+
isBillable?: boolean | undefined;
|
|
29
|
+
}>;
|
|
30
|
+
export type BaseCustomer = z.infer<typeof BaseCustomer>;
|