@zapier/zapier-sdk 0.50.0 → 0.51.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/CHANGELOG.md +10 -0
- package/README.md +1 -1
- package/dist/api/auth.d.ts +1 -6
- package/dist/api/auth.d.ts.map +1 -1
- package/dist/api/auth.js +34 -27
- package/dist/api/client.d.ts.map +1 -1
- package/dist/api/client.js +3 -2
- package/dist/api/index.d.ts +1 -1
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/index.js +1 -1
- package/dist/api/schemas.d.ts +3 -3
- package/dist/auth.d.ts +13 -2
- package/dist/auth.d.ts.map +1 -1
- package/dist/auth.js +95 -11
- package/dist/experimental.cjs +167 -29
- package/dist/experimental.d.mts +2 -2
- package/dist/experimental.d.ts +26 -26
- package/dist/experimental.mjs +166 -30
- package/dist/{index-BQ2ii0Bs.d.mts → index-C52BjTXh.d.mts} +109 -2
- package/dist/{index-BQ2ii0Bs.d.ts → index-C52BjTXh.d.ts} +109 -2
- package/dist/index.cjs +167 -29
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.mjs +166 -30
- package/dist/plugins/apps/index.d.ts +2 -2
- package/dist/plugins/deprecated/inputFields.d.ts +18 -18
- package/dist/plugins/getAction/index.d.ts +6 -6
- package/dist/plugins/getAction/schemas.d.ts +4 -4
- package/dist/plugins/getActionInputFieldsSchema/index.d.ts +5 -5
- package/dist/plugins/getActionInputFieldsSchema/schemas.d.ts +4 -4
- package/dist/plugins/listActionInputFieldChoices/index.d.ts +5 -5
- package/dist/plugins/listActionInputFieldChoices/schemas.d.ts +4 -4
- package/dist/plugins/listActionInputFields/index.d.ts +5 -5
- package/dist/plugins/listActionInputFields/schemas.d.ts +4 -4
- package/dist/plugins/listActions/index.d.ts +3 -3
- package/dist/plugins/listActions/schemas.d.ts +4 -4
- package/dist/plugins/runAction/index.d.ts +5 -5
- package/dist/plugins/runAction/schemas.d.ts +4 -4
- package/dist/plugins/triggers/getTriggerInputFieldsSchema/index.d.ts +2 -2
- package/dist/plugins/triggers/listTriggerInputFieldChoices/index.d.ts +2 -2
- package/dist/plugins/triggers/listTriggerInputFields/index.d.ts +2 -2
- package/dist/schemas/Action.d.ts +1 -1
- package/dist/sdk.d.ts +52 -52
- package/dist/types/properties.d.ts +1 -1
- package/dist/utils/telemetry.d.ts +11 -0
- package/dist/utils/telemetry.d.ts.map +1 -0
- package/dist/utils/telemetry.js +19 -0
- package/package.json +1 -1
|
@@ -4,18 +4,18 @@ import type { ConnectionsPluginProvides } from "../connections";
|
|
|
4
4
|
export declare const getActionInputFieldsSchemaPlugin: (sdk: {
|
|
5
5
|
getAction: (options?: {
|
|
6
6
|
app: string;
|
|
7
|
-
actionType: "filter" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write"
|
|
7
|
+
actionType: "filter" | "write" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write";
|
|
8
8
|
action: string;
|
|
9
9
|
} | {
|
|
10
10
|
appKey: string;
|
|
11
|
-
actionType: "filter" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write"
|
|
11
|
+
actionType: "filter" | "write" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write";
|
|
12
12
|
actionKey: string;
|
|
13
13
|
} | undefined) => Promise<{
|
|
14
14
|
data: {
|
|
15
15
|
description: string;
|
|
16
16
|
key: string;
|
|
17
17
|
app_key: string;
|
|
18
|
-
action_type: "filter" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write"
|
|
18
|
+
action_type: "filter" | "write" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write";
|
|
19
19
|
title: string;
|
|
20
20
|
type: "action";
|
|
21
21
|
id?: string | undefined;
|
|
@@ -44,7 +44,7 @@ export declare const getActionInputFieldsSchemaPlugin: (sdk: {
|
|
|
44
44
|
}) => {
|
|
45
45
|
getActionInputFieldsSchema: (options?: {
|
|
46
46
|
app: string;
|
|
47
|
-
actionType: "filter" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write"
|
|
47
|
+
actionType: "filter" | "write" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write";
|
|
48
48
|
action: string;
|
|
49
49
|
connection?: string | number | undefined;
|
|
50
50
|
connectionId?: string | number | null | undefined;
|
|
@@ -52,7 +52,7 @@ export declare const getActionInputFieldsSchemaPlugin: (sdk: {
|
|
|
52
52
|
inputs?: Record<string, unknown> | undefined;
|
|
53
53
|
} | {
|
|
54
54
|
appKey: string;
|
|
55
|
-
actionType: "filter" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write"
|
|
55
|
+
actionType: "filter" | "write" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write";
|
|
56
56
|
actionKey: string;
|
|
57
57
|
connection?: string | number | undefined;
|
|
58
58
|
connectionId?: string | number | null | undefined;
|
|
@@ -5,13 +5,13 @@ export declare const GetActionInputFieldsSchemaSchema: z.ZodObject<{
|
|
|
5
5
|
};
|
|
6
6
|
actionType: z.ZodEnum<{
|
|
7
7
|
filter: "filter";
|
|
8
|
+
write: "write";
|
|
8
9
|
read: "read";
|
|
9
10
|
read_bulk: "read_bulk";
|
|
10
11
|
run: "run";
|
|
11
12
|
search: "search";
|
|
12
13
|
search_and_write: "search_and_write";
|
|
13
14
|
search_or_write: "search_or_write";
|
|
14
|
-
write: "write";
|
|
15
15
|
}>;
|
|
16
16
|
action: z.ZodString & {
|
|
17
17
|
_def: z.core.$ZodStringDef & import("../..").PositionalMetadata;
|
|
@@ -27,13 +27,13 @@ declare const GetActionInputFieldsSchemaSchemaDeprecated: z.ZodObject<{
|
|
|
27
27
|
};
|
|
28
28
|
actionType: z.ZodEnum<{
|
|
29
29
|
filter: "filter";
|
|
30
|
+
write: "write";
|
|
30
31
|
read: "read";
|
|
31
32
|
read_bulk: "read_bulk";
|
|
32
33
|
run: "run";
|
|
33
34
|
search: "search";
|
|
34
35
|
search_and_write: "search_and_write";
|
|
35
36
|
search_or_write: "search_or_write";
|
|
36
|
-
write: "write";
|
|
37
37
|
}>;
|
|
38
38
|
actionKey: z.ZodString;
|
|
39
39
|
connection: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
@@ -47,13 +47,13 @@ export declare const GetActionInputFieldsSchemaInputSchema: z.ZodUnion<readonly
|
|
|
47
47
|
};
|
|
48
48
|
actionType: z.ZodEnum<{
|
|
49
49
|
filter: "filter";
|
|
50
|
+
write: "write";
|
|
50
51
|
read: "read";
|
|
51
52
|
read_bulk: "read_bulk";
|
|
52
53
|
run: "run";
|
|
53
54
|
search: "search";
|
|
54
55
|
search_and_write: "search_and_write";
|
|
55
56
|
search_or_write: "search_or_write";
|
|
56
|
-
write: "write";
|
|
57
57
|
}>;
|
|
58
58
|
action: z.ZodString & {
|
|
59
59
|
_def: z.core.$ZodStringDef & import("../..").PositionalMetadata;
|
|
@@ -68,13 +68,13 @@ export declare const GetActionInputFieldsSchemaInputSchema: z.ZodUnion<readonly
|
|
|
68
68
|
};
|
|
69
69
|
actionType: z.ZodEnum<{
|
|
70
70
|
filter: "filter";
|
|
71
|
+
write: "write";
|
|
71
72
|
read: "read";
|
|
72
73
|
read_bulk: "read_bulk";
|
|
73
74
|
run: "run";
|
|
74
75
|
search: "search";
|
|
75
76
|
search_and_write: "search_and_write";
|
|
76
77
|
search_or_write: "search_or_write";
|
|
77
|
-
write: "write";
|
|
78
78
|
}>;
|
|
79
79
|
actionKey: z.ZodString;
|
|
80
80
|
connection: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
@@ -4,18 +4,18 @@ import type { ConnectionsPluginProvides } from "../connections";
|
|
|
4
4
|
export declare const listActionInputFieldChoicesPlugin: (sdk: {
|
|
5
5
|
getAction: (options?: {
|
|
6
6
|
app: string;
|
|
7
|
-
actionType: "filter" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write"
|
|
7
|
+
actionType: "filter" | "write" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write";
|
|
8
8
|
action: string;
|
|
9
9
|
} | {
|
|
10
10
|
appKey: string;
|
|
11
|
-
actionType: "filter" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write"
|
|
11
|
+
actionType: "filter" | "write" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write";
|
|
12
12
|
actionKey: string;
|
|
13
13
|
} | undefined) => Promise<{
|
|
14
14
|
data: {
|
|
15
15
|
description: string;
|
|
16
16
|
key: string;
|
|
17
17
|
app_key: string;
|
|
18
|
-
action_type: "filter" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write"
|
|
18
|
+
action_type: "filter" | "write" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write";
|
|
19
19
|
title: string;
|
|
20
20
|
type: "action";
|
|
21
21
|
id?: string | undefined;
|
|
@@ -44,7 +44,7 @@ export declare const listActionInputFieldChoicesPlugin: (sdk: {
|
|
|
44
44
|
}) => {
|
|
45
45
|
listActionInputFieldChoices: (options?: (({
|
|
46
46
|
app: string;
|
|
47
|
-
actionType: "filter" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write"
|
|
47
|
+
actionType: "filter" | "write" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write";
|
|
48
48
|
action: string;
|
|
49
49
|
inputField: string;
|
|
50
50
|
connection?: string | number | undefined;
|
|
@@ -57,7 +57,7 @@ export declare const listActionInputFieldChoicesPlugin: (sdk: {
|
|
|
57
57
|
cursor?: string | undefined;
|
|
58
58
|
} | {
|
|
59
59
|
appKey: string;
|
|
60
|
-
actionType: "filter" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write"
|
|
60
|
+
actionType: "filter" | "write" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write";
|
|
61
61
|
actionKey: string;
|
|
62
62
|
inputFieldKey: string;
|
|
63
63
|
connection?: string | number | undefined;
|
|
@@ -13,13 +13,13 @@ export declare const ListActionInputFieldChoicesSchema: z.ZodObject<{
|
|
|
13
13
|
};
|
|
14
14
|
actionType: z.ZodEnum<{
|
|
15
15
|
filter: "filter";
|
|
16
|
+
write: "write";
|
|
16
17
|
read: "read";
|
|
17
18
|
read_bulk: "read_bulk";
|
|
18
19
|
run: "run";
|
|
19
20
|
search: "search";
|
|
20
21
|
search_and_write: "search_and_write";
|
|
21
22
|
search_or_write: "search_or_write";
|
|
22
|
-
write: "write";
|
|
23
23
|
}>;
|
|
24
24
|
action: z.ZodString & {
|
|
25
25
|
_def: z.core.$ZodStringDef & import("../..").PositionalMetadata;
|
|
@@ -42,13 +42,13 @@ declare const ListActionInputFieldChoicesSchemaDeprecated: z.ZodObject<{
|
|
|
42
42
|
};
|
|
43
43
|
actionType: z.ZodEnum<{
|
|
44
44
|
filter: "filter";
|
|
45
|
+
write: "write";
|
|
45
46
|
read: "read";
|
|
46
47
|
read_bulk: "read_bulk";
|
|
47
48
|
run: "run";
|
|
48
49
|
search: "search";
|
|
49
50
|
search_and_write: "search_and_write";
|
|
50
51
|
search_or_write: "search_or_write";
|
|
51
|
-
write: "write";
|
|
52
52
|
}>;
|
|
53
53
|
actionKey: z.ZodString;
|
|
54
54
|
inputFieldKey: z.ZodString;
|
|
@@ -67,13 +67,13 @@ export declare const ListActionInputFieldChoicesInputSchema: z.ZodUnion<readonly
|
|
|
67
67
|
};
|
|
68
68
|
actionType: z.ZodEnum<{
|
|
69
69
|
filter: "filter";
|
|
70
|
+
write: "write";
|
|
70
71
|
read: "read";
|
|
71
72
|
read_bulk: "read_bulk";
|
|
72
73
|
run: "run";
|
|
73
74
|
search: "search";
|
|
74
75
|
search_and_write: "search_and_write";
|
|
75
76
|
search_or_write: "search_or_write";
|
|
76
|
-
write: "write";
|
|
77
77
|
}>;
|
|
78
78
|
action: z.ZodString & {
|
|
79
79
|
_def: z.core.$ZodStringDef & import("../..").PositionalMetadata;
|
|
@@ -95,13 +95,13 @@ export declare const ListActionInputFieldChoicesInputSchema: z.ZodUnion<readonly
|
|
|
95
95
|
};
|
|
96
96
|
actionType: z.ZodEnum<{
|
|
97
97
|
filter: "filter";
|
|
98
|
+
write: "write";
|
|
98
99
|
read: "read";
|
|
99
100
|
read_bulk: "read_bulk";
|
|
100
101
|
run: "run";
|
|
101
102
|
search: "search";
|
|
102
103
|
search_and_write: "search_and_write";
|
|
103
104
|
search_or_write: "search_or_write";
|
|
104
|
-
write: "write";
|
|
105
105
|
}>;
|
|
106
106
|
actionKey: z.ZodString;
|
|
107
107
|
inputFieldKey: z.ZodString;
|
|
@@ -71,18 +71,18 @@ export declare const listActionInputFieldsPlugin: (sdk: {
|
|
|
71
71
|
} & {
|
|
72
72
|
getAction: (options?: {
|
|
73
73
|
app: string;
|
|
74
|
-
actionType: "filter" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write"
|
|
74
|
+
actionType: "filter" | "write" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write";
|
|
75
75
|
action: string;
|
|
76
76
|
} | {
|
|
77
77
|
appKey: string;
|
|
78
|
-
actionType: "filter" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write"
|
|
78
|
+
actionType: "filter" | "write" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write";
|
|
79
79
|
actionKey: string;
|
|
80
80
|
} | undefined) => Promise<{
|
|
81
81
|
data: {
|
|
82
82
|
description: string;
|
|
83
83
|
key: string;
|
|
84
84
|
app_key: string;
|
|
85
|
-
action_type: "filter" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write"
|
|
85
|
+
action_type: "filter" | "write" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write";
|
|
86
86
|
title: string;
|
|
87
87
|
type: "action";
|
|
88
88
|
id?: string | undefined;
|
|
@@ -111,7 +111,7 @@ export declare const listActionInputFieldsPlugin: (sdk: {
|
|
|
111
111
|
}) => {
|
|
112
112
|
listActionInputFields: (options?: (({
|
|
113
113
|
app: string;
|
|
114
|
-
actionType: "filter" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write"
|
|
114
|
+
actionType: "filter" | "write" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write";
|
|
115
115
|
action: string;
|
|
116
116
|
connection?: string | number | undefined;
|
|
117
117
|
connectionId?: string | number | null | undefined;
|
|
@@ -122,7 +122,7 @@ export declare const listActionInputFieldsPlugin: (sdk: {
|
|
|
122
122
|
cursor?: string | undefined;
|
|
123
123
|
} | {
|
|
124
124
|
appKey: string;
|
|
125
|
-
actionType: "filter" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write"
|
|
125
|
+
actionType: "filter" | "write" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write";
|
|
126
126
|
actionKey: string;
|
|
127
127
|
connection?: string | number | undefined;
|
|
128
128
|
connectionId?: string | number | null | undefined;
|
|
@@ -7,13 +7,13 @@ export declare const ListActionInputFieldsSchema: z.ZodObject<{
|
|
|
7
7
|
};
|
|
8
8
|
actionType: z.ZodEnum<{
|
|
9
9
|
filter: "filter";
|
|
10
|
+
write: "write";
|
|
10
11
|
read: "read";
|
|
11
12
|
read_bulk: "read_bulk";
|
|
12
13
|
run: "run";
|
|
13
14
|
search: "search";
|
|
14
15
|
search_and_write: "search_and_write";
|
|
15
16
|
search_or_write: "search_or_write";
|
|
16
|
-
write: "write";
|
|
17
17
|
}>;
|
|
18
18
|
action: z.ZodString & {
|
|
19
19
|
_def: z.core.$ZodStringDef & import("../..").PositionalMetadata;
|
|
@@ -32,13 +32,13 @@ declare const ListActionInputFieldsSchemaDeprecated: z.ZodObject<{
|
|
|
32
32
|
};
|
|
33
33
|
actionType: z.ZodEnum<{
|
|
34
34
|
filter: "filter";
|
|
35
|
+
write: "write";
|
|
35
36
|
read: "read";
|
|
36
37
|
read_bulk: "read_bulk";
|
|
37
38
|
run: "run";
|
|
38
39
|
search: "search";
|
|
39
40
|
search_and_write: "search_and_write";
|
|
40
41
|
search_or_write: "search_or_write";
|
|
41
|
-
write: "write";
|
|
42
42
|
}>;
|
|
43
43
|
actionKey: z.ZodString;
|
|
44
44
|
connection: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
@@ -55,13 +55,13 @@ export declare const ListActionInputFieldsInputSchema: z.ZodUnion<readonly [z.Zo
|
|
|
55
55
|
};
|
|
56
56
|
actionType: z.ZodEnum<{
|
|
57
57
|
filter: "filter";
|
|
58
|
+
write: "write";
|
|
58
59
|
read: "read";
|
|
59
60
|
read_bulk: "read_bulk";
|
|
60
61
|
run: "run";
|
|
61
62
|
search: "search";
|
|
62
63
|
search_and_write: "search_and_write";
|
|
63
64
|
search_or_write: "search_or_write";
|
|
64
|
-
write: "write";
|
|
65
65
|
}>;
|
|
66
66
|
action: z.ZodString & {
|
|
67
67
|
_def: z.core.$ZodStringDef & import("../..").PositionalMetadata;
|
|
@@ -79,13 +79,13 @@ export declare const ListActionInputFieldsInputSchema: z.ZodUnion<readonly [z.Zo
|
|
|
79
79
|
};
|
|
80
80
|
actionType: z.ZodEnum<{
|
|
81
81
|
filter: "filter";
|
|
82
|
+
write: "write";
|
|
82
83
|
read: "read";
|
|
83
84
|
read_bulk: "read_bulk";
|
|
84
85
|
run: "run";
|
|
85
86
|
search: "search";
|
|
86
87
|
search_and_write: "search_and_write";
|
|
87
88
|
search_or_write: "search_or_write";
|
|
88
|
-
write: "write";
|
|
89
89
|
}>;
|
|
90
90
|
actionKey: z.ZodString;
|
|
91
91
|
connection: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
@@ -45,13 +45,13 @@ export declare const listActionsPlugin: (sdk: {
|
|
|
45
45
|
}) => {
|
|
46
46
|
listActions: (options?: (({
|
|
47
47
|
app: string;
|
|
48
|
-
actionType?: "filter" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write" |
|
|
48
|
+
actionType?: "filter" | "write" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write" | undefined;
|
|
49
49
|
pageSize?: number | undefined;
|
|
50
50
|
maxItems?: number | undefined;
|
|
51
51
|
cursor?: string | undefined;
|
|
52
52
|
} | {
|
|
53
53
|
appKey: string;
|
|
54
|
-
actionType?: "filter" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write" |
|
|
54
|
+
actionType?: "filter" | "write" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write" | undefined;
|
|
55
55
|
pageSize?: number | undefined;
|
|
56
56
|
maxItems?: number | undefined;
|
|
57
57
|
cursor?: string | undefined;
|
|
@@ -63,7 +63,7 @@ export declare const listActionsPlugin: (sdk: {
|
|
|
63
63
|
description: string;
|
|
64
64
|
key: string;
|
|
65
65
|
app_key: string;
|
|
66
|
-
action_type: "filter" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write"
|
|
66
|
+
action_type: "filter" | "write" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write";
|
|
67
67
|
title: string;
|
|
68
68
|
type: "action";
|
|
69
69
|
id?: string | undefined;
|
|
@@ -5,13 +5,13 @@ export declare const ListActionsSchema: z.ZodObject<{
|
|
|
5
5
|
};
|
|
6
6
|
actionType: z.ZodOptional<z.ZodEnum<{
|
|
7
7
|
filter: "filter";
|
|
8
|
+
write: "write";
|
|
8
9
|
read: "read";
|
|
9
10
|
read_bulk: "read_bulk";
|
|
10
11
|
run: "run";
|
|
11
12
|
search: "search";
|
|
12
13
|
search_and_write: "search_and_write";
|
|
13
14
|
search_or_write: "search_or_write";
|
|
14
|
-
write: "write";
|
|
15
15
|
}>>;
|
|
16
16
|
pageSize: z.ZodOptional<z.ZodNumber>;
|
|
17
17
|
maxItems: z.ZodOptional<z.ZodNumber>;
|
|
@@ -23,13 +23,13 @@ declare const ListActionsSchemaDeprecated: z.ZodObject<{
|
|
|
23
23
|
};
|
|
24
24
|
actionType: z.ZodOptional<z.ZodEnum<{
|
|
25
25
|
filter: "filter";
|
|
26
|
+
write: "write";
|
|
26
27
|
read: "read";
|
|
27
28
|
read_bulk: "read_bulk";
|
|
28
29
|
run: "run";
|
|
29
30
|
search: "search";
|
|
30
31
|
search_and_write: "search_and_write";
|
|
31
32
|
search_or_write: "search_or_write";
|
|
32
|
-
write: "write";
|
|
33
33
|
}>>;
|
|
34
34
|
pageSize: z.ZodOptional<z.ZodNumber>;
|
|
35
35
|
maxItems: z.ZodOptional<z.ZodNumber>;
|
|
@@ -41,13 +41,13 @@ export declare const ListActionsInputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
41
41
|
};
|
|
42
42
|
actionType: z.ZodOptional<z.ZodEnum<{
|
|
43
43
|
filter: "filter";
|
|
44
|
+
write: "write";
|
|
44
45
|
read: "read";
|
|
45
46
|
read_bulk: "read_bulk";
|
|
46
47
|
run: "run";
|
|
47
48
|
search: "search";
|
|
48
49
|
search_and_write: "search_and_write";
|
|
49
50
|
search_or_write: "search_or_write";
|
|
50
|
-
write: "write";
|
|
51
51
|
}>>;
|
|
52
52
|
pageSize: z.ZodOptional<z.ZodNumber>;
|
|
53
53
|
maxItems: z.ZodOptional<z.ZodNumber>;
|
|
@@ -58,13 +58,13 @@ export declare const ListActionsInputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
58
58
|
};
|
|
59
59
|
actionType: z.ZodOptional<z.ZodEnum<{
|
|
60
60
|
filter: "filter";
|
|
61
|
+
write: "write";
|
|
61
62
|
read: "read";
|
|
62
63
|
read_bulk: "read_bulk";
|
|
63
64
|
run: "run";
|
|
64
65
|
search: "search";
|
|
65
66
|
search_and_write: "search_and_write";
|
|
66
67
|
search_or_write: "search_or_write";
|
|
67
|
-
write: "write";
|
|
68
68
|
}>>;
|
|
69
69
|
pageSize: z.ZodOptional<z.ZodNumber>;
|
|
70
70
|
maxItems: z.ZodOptional<z.ZodNumber>;
|
|
@@ -6,18 +6,18 @@ export declare const CONTEXT_CACHE_MAX_SIZE = 500;
|
|
|
6
6
|
export declare const runActionPlugin: (sdk: {
|
|
7
7
|
getAction: (options?: {
|
|
8
8
|
app: string;
|
|
9
|
-
actionType: "filter" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write"
|
|
9
|
+
actionType: "filter" | "write" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write";
|
|
10
10
|
action: string;
|
|
11
11
|
} | {
|
|
12
12
|
appKey: string;
|
|
13
|
-
actionType: "filter" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write"
|
|
13
|
+
actionType: "filter" | "write" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write";
|
|
14
14
|
actionKey: string;
|
|
15
15
|
} | undefined) => Promise<{
|
|
16
16
|
data: {
|
|
17
17
|
description: string;
|
|
18
18
|
key: string;
|
|
19
19
|
app_key: string;
|
|
20
|
-
action_type: "filter" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write"
|
|
20
|
+
action_type: "filter" | "write" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write";
|
|
21
21
|
title: string;
|
|
22
22
|
type: "action";
|
|
23
23
|
id?: string | undefined;
|
|
@@ -112,7 +112,7 @@ export declare const runActionPlugin: (sdk: {
|
|
|
112
112
|
}) => {
|
|
113
113
|
runAction: (options?: (({
|
|
114
114
|
app: string;
|
|
115
|
-
actionType: "filter" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write"
|
|
115
|
+
actionType: "filter" | "write" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write";
|
|
116
116
|
action: string;
|
|
117
117
|
connection?: string | number | undefined;
|
|
118
118
|
connectionId?: string | number | null | undefined;
|
|
@@ -124,7 +124,7 @@ export declare const runActionPlugin: (sdk: {
|
|
|
124
124
|
cursor?: string | undefined;
|
|
125
125
|
} | {
|
|
126
126
|
appKey: string;
|
|
127
|
-
actionType: "filter" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write"
|
|
127
|
+
actionType: "filter" | "write" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write";
|
|
128
128
|
actionKey: string;
|
|
129
129
|
connection?: string | number | undefined;
|
|
130
130
|
connectionId?: string | number | null | undefined;
|
|
@@ -5,13 +5,13 @@ export declare const RunActionSchema: z.ZodObject<{
|
|
|
5
5
|
};
|
|
6
6
|
actionType: z.ZodEnum<{
|
|
7
7
|
filter: "filter";
|
|
8
|
+
write: "write";
|
|
8
9
|
read: "read";
|
|
9
10
|
read_bulk: "read_bulk";
|
|
10
11
|
run: "run";
|
|
11
12
|
search: "search";
|
|
12
13
|
search_and_write: "search_and_write";
|
|
13
14
|
search_or_write: "search_or_write";
|
|
14
|
-
write: "write";
|
|
15
15
|
}>;
|
|
16
16
|
action: z.ZodString & {
|
|
17
17
|
_def: z.core.$ZodStringDef & import("../..").PositionalMetadata;
|
|
@@ -31,13 +31,13 @@ declare const RunActionSchemaDeprecated: z.ZodObject<{
|
|
|
31
31
|
};
|
|
32
32
|
actionType: z.ZodEnum<{
|
|
33
33
|
filter: "filter";
|
|
34
|
+
write: "write";
|
|
34
35
|
read: "read";
|
|
35
36
|
read_bulk: "read_bulk";
|
|
36
37
|
run: "run";
|
|
37
38
|
search: "search";
|
|
38
39
|
search_and_write: "search_and_write";
|
|
39
40
|
search_or_write: "search_or_write";
|
|
40
|
-
write: "write";
|
|
41
41
|
}>;
|
|
42
42
|
actionKey: z.ZodString;
|
|
43
43
|
connection: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
@@ -55,13 +55,13 @@ export declare const RunActionInputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
55
55
|
};
|
|
56
56
|
actionType: z.ZodEnum<{
|
|
57
57
|
filter: "filter";
|
|
58
|
+
write: "write";
|
|
58
59
|
read: "read";
|
|
59
60
|
read_bulk: "read_bulk";
|
|
60
61
|
run: "run";
|
|
61
62
|
search: "search";
|
|
62
63
|
search_and_write: "search_and_write";
|
|
63
64
|
search_or_write: "search_or_write";
|
|
64
|
-
write: "write";
|
|
65
65
|
}>;
|
|
66
66
|
action: z.ZodString & {
|
|
67
67
|
_def: z.core.$ZodStringDef & import("../..").PositionalMetadata;
|
|
@@ -80,13 +80,13 @@ export declare const RunActionInputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
80
80
|
};
|
|
81
81
|
actionType: z.ZodEnum<{
|
|
82
82
|
filter: "filter";
|
|
83
|
+
write: "write";
|
|
83
84
|
read: "read";
|
|
84
85
|
read_bulk: "read_bulk";
|
|
85
86
|
run: "run";
|
|
86
87
|
search: "search";
|
|
87
88
|
search_and_write: "search_and_write";
|
|
88
89
|
search_or_write: "search_or_write";
|
|
89
|
-
write: "write";
|
|
90
90
|
}>;
|
|
91
91
|
actionKey: z.ZodString;
|
|
92
92
|
connection: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const getTriggerInputFieldsSchemaPlugin: (sdk: {
|
|
2
2
|
getActionInputFieldsSchema: (options?: {
|
|
3
3
|
app: string;
|
|
4
|
-
actionType: "filter" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write"
|
|
4
|
+
actionType: "filter" | "write" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write";
|
|
5
5
|
action: string;
|
|
6
6
|
connection?: string | number | undefined;
|
|
7
7
|
connectionId?: string | number | null | undefined;
|
|
@@ -9,7 +9,7 @@ export declare const getTriggerInputFieldsSchemaPlugin: (sdk: {
|
|
|
9
9
|
inputs?: Record<string, unknown> | undefined;
|
|
10
10
|
} | {
|
|
11
11
|
appKey: string;
|
|
12
|
-
actionType: "filter" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write"
|
|
12
|
+
actionType: "filter" | "write" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write";
|
|
13
13
|
actionKey: string;
|
|
14
14
|
connection?: string | number | undefined;
|
|
15
15
|
connectionId?: string | number | null | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const listTriggerInputFieldChoicesPlugin: (sdk: {
|
|
2
2
|
listActionInputFieldChoices: (options?: (({
|
|
3
3
|
app: string;
|
|
4
|
-
actionType: "filter" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write"
|
|
4
|
+
actionType: "filter" | "write" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write";
|
|
5
5
|
action: string;
|
|
6
6
|
inputField: string;
|
|
7
7
|
connection?: string | number | undefined;
|
|
@@ -14,7 +14,7 @@ export declare const listTriggerInputFieldChoicesPlugin: (sdk: {
|
|
|
14
14
|
cursor?: string | undefined;
|
|
15
15
|
} | {
|
|
16
16
|
appKey: string;
|
|
17
|
-
actionType: "filter" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write"
|
|
17
|
+
actionType: "filter" | "write" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write";
|
|
18
18
|
actionKey: string;
|
|
19
19
|
inputFieldKey: string;
|
|
20
20
|
connection?: string | number | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const listTriggerInputFieldsPlugin: (sdk: {
|
|
2
2
|
listActionInputFields: (options?: (({
|
|
3
3
|
app: string;
|
|
4
|
-
actionType: "filter" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write"
|
|
4
|
+
actionType: "filter" | "write" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write";
|
|
5
5
|
action: string;
|
|
6
6
|
connection?: string | number | undefined;
|
|
7
7
|
connectionId?: string | number | null | undefined;
|
|
@@ -12,7 +12,7 @@ export declare const listTriggerInputFieldsPlugin: (sdk: {
|
|
|
12
12
|
cursor?: string | undefined;
|
|
13
13
|
} | {
|
|
14
14
|
appKey: string;
|
|
15
|
-
actionType: "filter" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write"
|
|
15
|
+
actionType: "filter" | "write" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write";
|
|
16
16
|
actionKey: string;
|
|
17
17
|
connection?: string | number | undefined;
|
|
18
18
|
connectionId?: string | number | null | undefined;
|
package/dist/schemas/Action.d.ts
CHANGED
|
@@ -9,13 +9,13 @@ export declare const ActionItemSchema: z.ZodObject<{
|
|
|
9
9
|
app_version: z.ZodOptional<z.ZodString>;
|
|
10
10
|
action_type: z.ZodEnum<{
|
|
11
11
|
filter: "filter";
|
|
12
|
+
write: "write";
|
|
12
13
|
read: "read";
|
|
13
14
|
read_bulk: "read_bulk";
|
|
14
15
|
run: "run";
|
|
15
16
|
search: "search";
|
|
16
17
|
search_and_write: "search_and_write";
|
|
17
18
|
search_or_write: "search_or_write";
|
|
18
|
-
write: "write";
|
|
19
19
|
}>;
|
|
20
20
|
title: z.ZodString;
|
|
21
21
|
type: z.ZodLiteral<"action">;
|