@zapier/zapier-sdk 0.12.1 → 0.13.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 +6 -0
- package/README.md +137 -76
- package/dist/api/schemas.d.ts +10 -865
- package/dist/api/schemas.d.ts.map +1 -1
- package/dist/api/schemas.js +0 -6
- package/dist/index.cjs +42 -31
- package/dist/index.d.mts +69 -427
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +42 -31
- package/dist/plugins/apps/schemas.d.ts +9 -1
- package/dist/plugins/apps/schemas.d.ts.map +1 -1
- package/dist/plugins/findFirstAuthentication/schemas.js +1 -1
- package/dist/plugins/findUniqueAuthentication/schemas.js +1 -1
- package/dist/plugins/getApp/schemas.js +1 -1
- package/dist/plugins/getAuthentication/index.test.js +1 -1
- package/dist/plugins/listActions/index.d.ts +1 -0
- package/dist/plugins/listActions/index.d.ts.map +1 -1
- package/dist/plugins/listActions/schemas.d.ts +3 -0
- package/dist/plugins/listActions/schemas.d.ts.map +1 -1
- package/dist/plugins/listActions/schemas.js +2 -1
- package/dist/plugins/listApps/index.d.ts +1 -0
- package/dist/plugins/listApps/index.d.ts.map +1 -1
- package/dist/plugins/listApps/schemas.d.ts +3 -0
- package/dist/plugins/listApps/schemas.d.ts.map +1 -1
- package/dist/plugins/listApps/schemas.js +1 -0
- package/dist/plugins/listAuthentications/index.d.ts +1 -0
- package/dist/plugins/listAuthentications/index.d.ts.map +1 -1
- package/dist/plugins/listAuthentications/schemas.d.ts +3 -0
- package/dist/plugins/listAuthentications/schemas.d.ts.map +1 -1
- package/dist/plugins/listAuthentications/schemas.js +2 -1
- package/dist/plugins/listInputFieldChoices/index.d.ts +1 -0
- package/dist/plugins/listInputFieldChoices/index.d.ts.map +1 -1
- package/dist/plugins/listInputFieldChoices/schemas.d.ts +3 -0
- package/dist/plugins/listInputFieldChoices/schemas.d.ts.map +1 -1
- package/dist/plugins/listInputFieldChoices/schemas.js +1 -0
- package/dist/plugins/listInputFields/index.d.ts +1 -0
- package/dist/plugins/listInputFields/index.d.ts.map +1 -1
- package/dist/plugins/listInputFields/schemas.d.ts +3 -0
- package/dist/plugins/listInputFields/schemas.d.ts.map +1 -1
- package/dist/plugins/listInputFields/schemas.js +1 -0
- package/dist/plugins/runAction/index.d.ts +1 -0
- package/dist/plugins/runAction/index.d.ts.map +1 -1
- package/dist/plugins/runAction/schemas.d.ts +3 -0
- package/dist/plugins/runAction/schemas.d.ts.map +1 -1
- package/dist/plugins/runAction/schemas.js +1 -0
- package/dist/schemas/Action.d.ts +4 -206
- package/dist/schemas/Action.d.ts.map +1 -1
- package/dist/schemas/Action.js +3 -2
- package/dist/schemas/App.d.ts.map +1 -1
- package/dist/schemas/App.js +1 -0
- package/dist/schemas/Auth.d.ts +10 -10
- package/dist/schemas/Auth.js +1 -1
- package/dist/types/properties.d.ts.map +1 -1
- package/dist/types/properties.js +4 -1
- package/dist/utils/domain-utils.d.ts +2 -2
- package/dist/utils/domain-utils.d.ts.map +1 -1
- package/dist/utils/domain-utils.js +19 -8
- package/dist/utils/schema-utils.d.ts +1 -0
- package/dist/utils/schema-utils.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/api/schemas.ts +0 -6
- package/src/index.ts +1 -0
- package/src/plugins/apps/schemas.ts +7 -1
- package/src/plugins/findFirstAuthentication/schemas.ts +1 -1
- package/src/plugins/findUniqueAuthentication/schemas.ts +1 -1
- package/src/plugins/getApp/schemas.ts +1 -1
- package/src/plugins/getAuthentication/index.test.ts +1 -1
- package/src/plugins/listActions/index.ts +1 -0
- package/src/plugins/listActions/schemas.ts +2 -1
- package/src/plugins/listApps/index.ts +4 -1
- package/src/plugins/listApps/schemas.ts +1 -0
- package/src/plugins/listAuthentications/index.ts +1 -0
- package/src/plugins/listAuthentications/schemas.ts +2 -1
- package/src/plugins/listInputFieldChoices/index.ts +1 -0
- package/src/plugins/listInputFieldChoices/schemas.ts +1 -0
- package/src/plugins/listInputFields/index.ts +1 -0
- package/src/plugins/listInputFields/schemas.ts +1 -0
- package/src/plugins/runAction/index.ts +4 -1
- package/src/plugins/runAction/schemas.ts +1 -0
- package/src/schemas/Action.ts +3 -2
- package/src/schemas/App.ts +1 -0
- package/src/schemas/Auth.ts +1 -1
- package/src/types/properties.ts +4 -1
- package/src/utils/domain-utils.ts +22 -9
- package/src/utils/schema-utils.ts +1 -0
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../src/api/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;GAIG;AAMH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;EAK5B,CAAC;AAEH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0CrB,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;EAE5B,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;EAElC,CAAC;AAEH,eAAO,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../src/api/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;GAIG;AAMH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;EAK5B,CAAC;AAEH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0CrB,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;EAE5B,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAK5C,CAAC;AAMH,eAAO,MAAM,6BAA6B;;;;;;EAExC,CAAC;AAEH,eAAO,MAAM,8BAA8B;;;;;;;;;EAGzC,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;EAsCnC,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAOpC,CAAC"}
|
package/dist/api/schemas.js
CHANGED
|
@@ -76,16 +76,10 @@ export const ActionSchema = z.object({
|
|
|
76
76
|
]),
|
|
77
77
|
key: z.string(),
|
|
78
78
|
name: z.string(),
|
|
79
|
-
noun: z.string().optional(),
|
|
80
79
|
description: z.string(),
|
|
81
|
-
description_html: z.string().optional(),
|
|
82
80
|
is_important: z.boolean().optional(),
|
|
83
81
|
is_hidden: z.boolean().optional(),
|
|
84
|
-
needs: z.array(NeedSchema).optional(),
|
|
85
|
-
meta: z.string().optional(),
|
|
86
82
|
selected_api: z.string().optional(),
|
|
87
|
-
links: ActionLinksSchema.optional(),
|
|
88
|
-
permissions: ActionPermissionsSchema.optional(),
|
|
89
83
|
});
|
|
90
84
|
export const ChoiceSchema = z.object({
|
|
91
85
|
value: z.union([z.string(), z.number()]),
|
package/dist/index.cjs
CHANGED
|
@@ -37,7 +37,7 @@ var MAX_PAGE_LIMIT = 1e4;
|
|
|
37
37
|
|
|
38
38
|
// src/types/properties.ts
|
|
39
39
|
var AppKeyPropertySchema = withPositional(
|
|
40
|
-
zod.z.string().min(1).describe("App key (e.g., 'SlackCLIAPI')")
|
|
40
|
+
zod.z.string().min(1).describe("App key (e.g., 'SlackCLIAPI' or slug like 'github')")
|
|
41
41
|
);
|
|
42
42
|
var ActionTypePropertySchema = zod.z.enum([
|
|
43
43
|
"read",
|
|
@@ -694,7 +694,8 @@ var ListAppsSchema = zod.z.object({
|
|
|
694
694
|
),
|
|
695
695
|
search: zod.z.string().optional().describe("Search for apps by name"),
|
|
696
696
|
pageSize: zod.z.number().min(1).optional().describe("Number of apps per page"),
|
|
697
|
-
maxItems: zod.z.number().min(1).optional().describe("Maximum total items to return across all pages")
|
|
697
|
+
maxItems: zod.z.number().min(1).optional().describe("Maximum total items to return across all pages"),
|
|
698
|
+
cursor: zod.z.string().optional().describe("Cursor to start from")
|
|
698
699
|
}).describe("List all available apps with optional filtering");
|
|
699
700
|
var NeedChoicesSchema = zod.z.object({
|
|
700
701
|
key: zod.z.string().optional(),
|
|
@@ -743,10 +744,10 @@ var NeedSchema = zod.z.object({
|
|
|
743
744
|
]).optional(),
|
|
744
745
|
list: zod.z.boolean().optional()
|
|
745
746
|
});
|
|
746
|
-
|
|
747
|
+
zod.z.object({
|
|
747
748
|
action_url: zod.z.string().optional()
|
|
748
749
|
});
|
|
749
|
-
|
|
750
|
+
zod.z.object({
|
|
750
751
|
can_use: zod.z.boolean().optional()
|
|
751
752
|
});
|
|
752
753
|
var ActionSchema = zod.z.object({
|
|
@@ -763,16 +764,10 @@ var ActionSchema = zod.z.object({
|
|
|
763
764
|
]),
|
|
764
765
|
key: zod.z.string(),
|
|
765
766
|
name: zod.z.string(),
|
|
766
|
-
noun: zod.z.string().optional(),
|
|
767
767
|
description: zod.z.string(),
|
|
768
|
-
description_html: zod.z.string().optional(),
|
|
769
768
|
is_important: zod.z.boolean().optional(),
|
|
770
769
|
is_hidden: zod.z.boolean().optional(),
|
|
771
|
-
|
|
772
|
-
meta: zod.z.string().optional(),
|
|
773
|
-
selected_api: zod.z.string().optional(),
|
|
774
|
-
links: ActionLinksSchema.optional(),
|
|
775
|
-
permissions: ActionPermissionsSchema.optional()
|
|
770
|
+
selected_api: zod.z.string().optional()
|
|
776
771
|
});
|
|
777
772
|
var ChoiceSchema = zod.z.object({
|
|
778
773
|
value: zod.z.union([zod.z.string(), zod.z.number()]),
|
|
@@ -1102,6 +1097,7 @@ var AppItemSchema = withFormatter(
|
|
|
1102
1097
|
return {
|
|
1103
1098
|
title: item.title,
|
|
1104
1099
|
key: item.key,
|
|
1100
|
+
keys: [item.slug, item.key].filter(Boolean),
|
|
1105
1101
|
description: item.description,
|
|
1106
1102
|
details: []
|
|
1107
1103
|
};
|
|
@@ -1136,7 +1132,7 @@ function normalizeImplementationMetaToAppItem(implementationMeta) {
|
|
|
1136
1132
|
}
|
|
1137
1133
|
function normalizeAuthenticationItem(auth, options = {}) {
|
|
1138
1134
|
let appKey = options.app_key;
|
|
1139
|
-
let
|
|
1135
|
+
let appVersion = options.app_version;
|
|
1140
1136
|
if (auth.selected_api) {
|
|
1141
1137
|
const [extractedAppKey, extractedVersion] = splitVersionedKey(
|
|
1142
1138
|
auth.selected_api
|
|
@@ -1144,8 +1140,8 @@ function normalizeAuthenticationItem(auth, options = {}) {
|
|
|
1144
1140
|
if (!appKey) {
|
|
1145
1141
|
appKey = extractedAppKey;
|
|
1146
1142
|
}
|
|
1147
|
-
if (!
|
|
1148
|
-
|
|
1143
|
+
if (!appVersion) {
|
|
1144
|
+
appVersion = extractedVersion;
|
|
1149
1145
|
}
|
|
1150
1146
|
}
|
|
1151
1147
|
const {
|
|
@@ -1166,17 +1162,25 @@ function normalizeAuthenticationItem(auth, options = {}) {
|
|
|
1166
1162
|
// Map marked_stale_at to expired_at
|
|
1167
1163
|
app_key: appKey,
|
|
1168
1164
|
// App key from implementations endpoint or parsed from selected_api
|
|
1169
|
-
|
|
1165
|
+
app_version: appVersion,
|
|
1170
1166
|
// Version from selected_api or provided
|
|
1171
1167
|
user_id: userId
|
|
1172
1168
|
// Map customuser_id to user_id
|
|
1173
1169
|
};
|
|
1174
1170
|
}
|
|
1175
1171
|
function normalizeActionItem(action) {
|
|
1176
|
-
const { name, type, selected_api:
|
|
1172
|
+
const { name, type, selected_api: selectedApi } = action;
|
|
1173
|
+
const [appKey, appVersion] = selectedApi ? splitVersionedKey(selectedApi) : ["", void 0];
|
|
1177
1174
|
return {
|
|
1178
|
-
|
|
1179
|
-
|
|
1175
|
+
// Only include the fields we want - explicitly list them
|
|
1176
|
+
id: action.id,
|
|
1177
|
+
key: action.key,
|
|
1178
|
+
description: action.description,
|
|
1179
|
+
is_important: action.is_important,
|
|
1180
|
+
is_hidden: action.is_hidden,
|
|
1181
|
+
// Transformed fields
|
|
1182
|
+
app_key: appKey,
|
|
1183
|
+
app_version: appVersion,
|
|
1180
1184
|
action_type: type,
|
|
1181
1185
|
title: name,
|
|
1182
1186
|
// Map name to title
|
|
@@ -1316,18 +1320,21 @@ var listAppsPlugin = ({ context }) => {
|
|
|
1316
1320
|
};
|
|
1317
1321
|
var ListActionsSchema = zod.z.object({
|
|
1318
1322
|
appKey: AppKeyPropertySchema.describe(
|
|
1319
|
-
"App key of actions to list (e.g., 'SlackCLIAPI')"
|
|
1323
|
+
"App key of actions to list (e.g., 'SlackCLIAPI' or slug like 'github')"
|
|
1320
1324
|
),
|
|
1321
1325
|
actionType: ActionTypePropertySchema.optional().describe(
|
|
1322
1326
|
"Filter actions by type"
|
|
1323
1327
|
),
|
|
1324
1328
|
pageSize: zod.z.number().min(1).optional().describe("Number of actions per page"),
|
|
1325
|
-
maxItems: zod.z.number().min(1).optional().describe("Maximum total items to return across all pages")
|
|
1329
|
+
maxItems: zod.z.number().min(1).optional().describe("Maximum total items to return across all pages"),
|
|
1330
|
+
cursor: zod.z.string().optional().describe("Cursor to start from")
|
|
1326
1331
|
}).describe("List all actions for a specific app");
|
|
1327
1332
|
var ActionItemSchema = withFormatter(
|
|
1328
|
-
ActionSchema.omit({ type: true, name: true }).extend({
|
|
1333
|
+
ActionSchema.omit({ type: true, name: true, selected_api: true }).extend({
|
|
1329
1334
|
app_key: zod.z.string(),
|
|
1330
|
-
//
|
|
1335
|
+
// App key without version (extracted from selected_api)
|
|
1336
|
+
app_version: zod.z.string().optional(),
|
|
1337
|
+
// Version extracted from selected_api
|
|
1331
1338
|
action_type: ActionSchema.shape.type,
|
|
1332
1339
|
// Mapped from original 'type' field
|
|
1333
1340
|
title: zod.z.string(),
|
|
@@ -1639,7 +1646,8 @@ var ListInputFieldsSchema = zod.z.object({
|
|
|
1639
1646
|
"Current input values that may affect available fields"
|
|
1640
1647
|
),
|
|
1641
1648
|
pageSize: zod.z.number().min(1).optional().describe("Number of input fields per page"),
|
|
1642
|
-
maxItems: zod.z.number().min(1).optional().describe("Maximum total items to return across all pages")
|
|
1649
|
+
maxItems: zod.z.number().min(1).optional().describe("Maximum total items to return across all pages"),
|
|
1650
|
+
cursor: zod.z.string().optional().describe("Cursor to start from")
|
|
1643
1651
|
}).describe("Get the input fields required for a specific action");
|
|
1644
1652
|
var BaseFieldItemSchema = zod.z.object({
|
|
1645
1653
|
type: zod.z.string(),
|
|
@@ -1926,7 +1934,7 @@ var listInputFieldsPlugin = ({ context }) => {
|
|
|
1926
1934
|
};
|
|
1927
1935
|
var ListAuthenticationsSchema = zod.z.object({
|
|
1928
1936
|
appKey: AppKeyPropertySchema.optional().describe(
|
|
1929
|
-
"App key of authentications to list (e.g., 'SlackCLIAPI')"
|
|
1937
|
+
"App key of authentications to list (e.g., 'SlackCLIAPI' or slug like 'github')"
|
|
1930
1938
|
),
|
|
1931
1939
|
authenticationIds: zod.z.array(zod.z.string()).optional().describe("List of authentication IDs to filter by"),
|
|
1932
1940
|
search: zod.z.string().optional().describe("Search term to filter authentications by title"),
|
|
@@ -1936,7 +1944,8 @@ var ListAuthenticationsSchema = zod.z.object({
|
|
|
1936
1944
|
"Filter by owner, 'me' for your own authentications or a specific user ID"
|
|
1937
1945
|
),
|
|
1938
1946
|
pageSize: zod.z.number().min(1).optional().describe("Number of authentications per page"),
|
|
1939
|
-
maxItems: zod.z.number().min(1).optional().describe("Maximum total items to return across all pages")
|
|
1947
|
+
maxItems: zod.z.number().min(1).optional().describe("Maximum total items to return across all pages"),
|
|
1948
|
+
cursor: zod.z.string().optional().describe("Cursor to start from")
|
|
1940
1949
|
}).describe("List available authentications with optional filtering");
|
|
1941
1950
|
var AuthenticationItemSchema = withFormatter(
|
|
1942
1951
|
AuthenticationSchema.omit({ selected_api: true, customuser_id: true }).extend(
|
|
@@ -1949,7 +1958,7 @@ var AuthenticationItemSchema = withFormatter(
|
|
|
1949
1958
|
// Mapped from marked_stale_at
|
|
1950
1959
|
app_key: zod.z.string().optional(),
|
|
1951
1960
|
// App key from implementations endpoint
|
|
1952
|
-
|
|
1961
|
+
app_version: zod.z.string().optional(),
|
|
1953
1962
|
// Version extracted from implementation_id
|
|
1954
1963
|
user_id: zod.z.number().optional()
|
|
1955
1964
|
}
|
|
@@ -2070,7 +2079,7 @@ var listAuthenticationsPlugin = ({ context }) => {
|
|
|
2070
2079
|
};
|
|
2071
2080
|
var GetAppSchema = zod.z.object({
|
|
2072
2081
|
appKey: AppKeyPropertySchema.describe(
|
|
2073
|
-
"App key of app to fetch (e.g., 'SlackCLIAPI')"
|
|
2082
|
+
"App key of app to fetch (e.g., 'SlackCLIAPI' or slug like 'github')"
|
|
2074
2083
|
)
|
|
2075
2084
|
}).describe("Get detailed information about a specific app");
|
|
2076
2085
|
|
|
@@ -2209,7 +2218,7 @@ var getAuthenticationPlugin = ({ context }) => {
|
|
|
2209
2218
|
};
|
|
2210
2219
|
var FindFirstAuthenticationSchema = zod.z.object({
|
|
2211
2220
|
appKey: AppKeyPropertySchema.optional().describe(
|
|
2212
|
-
"App key of authentication to find (e.g., 'SlackCLIAPI')"
|
|
2221
|
+
"App key of authentication to find (e.g., 'SlackCLIAPI' or slug like 'github')"
|
|
2213
2222
|
),
|
|
2214
2223
|
search: zod.z.string().optional().describe("Search term to filter authentications by title"),
|
|
2215
2224
|
title: zod.z.string().optional().describe("Filter authentications by exact title match"),
|
|
@@ -2254,7 +2263,7 @@ var findFirstAuthenticationPlugin = ({ sdk }) => {
|
|
|
2254
2263
|
};
|
|
2255
2264
|
var FindUniqueAuthenticationSchema = zod.z.object({
|
|
2256
2265
|
appKey: AppKeyPropertySchema.optional().describe(
|
|
2257
|
-
"App key of authentication to find (e.g., 'SlackCLIAPI')"
|
|
2266
|
+
"App key of authentication to find (e.g., 'SlackCLIAPI' or slug like 'github')"
|
|
2258
2267
|
),
|
|
2259
2268
|
search: zod.z.string().optional().describe("Search term to filter authentications by title"),
|
|
2260
2269
|
title: zod.z.string().optional().describe("Filter authentications by exact title match"),
|
|
@@ -2312,7 +2321,8 @@ var RunActionSchema = zod.z.object({
|
|
|
2312
2321
|
"Input parameters for the action"
|
|
2313
2322
|
),
|
|
2314
2323
|
pageSize: zod.z.number().min(1).optional().describe("Number of results per page"),
|
|
2315
|
-
maxItems: zod.z.number().min(1).optional().describe("Maximum total items to return across all pages")
|
|
2324
|
+
maxItems: zod.z.number().min(1).optional().describe("Maximum total items to return across all pages"),
|
|
2325
|
+
cursor: zod.z.string().optional().describe("Cursor to start from")
|
|
2316
2326
|
}).describe("Execute an action with the given inputs");
|
|
2317
2327
|
|
|
2318
2328
|
// src/plugins/runAction/index.ts
|
|
@@ -3651,7 +3661,8 @@ var ListInputFieldChoicesSchema = zod.z.object({
|
|
|
3651
3661
|
page: zod.z.number().int().min(0).optional().describe("Page number for paginated results"),
|
|
3652
3662
|
// Pagination options (SDK-level)
|
|
3653
3663
|
pageSize: zod.z.number().min(1).optional().describe("Number of choices per page"),
|
|
3654
|
-
maxItems: zod.z.number().min(1).optional().describe("Maximum total items to return across all pages")
|
|
3664
|
+
maxItems: zod.z.number().min(1).optional().describe("Maximum total items to return across all pages"),
|
|
3665
|
+
cursor: zod.z.string().optional().describe("Cursor to start from")
|
|
3655
3666
|
}).describe("Get the available choices for a dynamic dropdown input field");
|
|
3656
3667
|
|
|
3657
3668
|
// src/plugins/listInputFieldChoices/index.ts
|