@keystrokehq/folk 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/create-company.cjs +8 -8
- package/dist/actions/create-company.cjs.map +1 -1
- package/dist/actions/create-company.d.cts +62 -3
- package/dist/actions/create-company.d.cts.map +1 -1
- package/dist/actions/create-company.d.mts +62 -3
- package/dist/actions/create-company.d.mts.map +1 -1
- package/dist/actions/create-company.mjs +8 -8
- package/dist/actions/create-company.mjs.map +1 -1
- package/dist/actions/create-note.cjs +9 -9
- package/dist/actions/create-note.cjs.map +1 -1
- package/dist/actions/create-note.d.cts +47 -3
- package/dist/actions/create-note.d.cts.map +1 -1
- package/dist/actions/create-note.d.mts +47 -3
- package/dist/actions/create-note.d.mts.map +1 -1
- package/dist/actions/create-note.mjs +9 -9
- package/dist/actions/create-note.mjs.map +1 -1
- package/dist/actions/create-person.cjs +8 -8
- package/dist/actions/create-person.cjs.map +1 -1
- package/dist/actions/create-person.d.cts +67 -3
- package/dist/actions/create-person.d.cts.map +1 -1
- package/dist/actions/create-person.d.mts +67 -3
- package/dist/actions/create-person.d.mts.map +1 -1
- package/dist/actions/create-person.mjs +8 -8
- package/dist/actions/create-person.mjs.map +1 -1
- package/dist/actions/delete-company.cjs +1 -1
- package/dist/actions/delete-company.cjs.map +1 -1
- package/dist/actions/delete-company.d.cts +12 -3
- package/dist/actions/delete-company.d.cts.map +1 -1
- package/dist/actions/delete-company.d.mts +12 -3
- package/dist/actions/delete-company.d.mts.map +1 -1
- package/dist/actions/delete-company.mjs +1 -1
- package/dist/actions/delete-company.mjs.map +1 -1
- package/dist/actions/delete-note.cjs +1 -1
- package/dist/actions/delete-note.cjs.map +1 -1
- package/dist/actions/delete-note.d.cts +12 -3
- package/dist/actions/delete-note.d.cts.map +1 -1
- package/dist/actions/delete-note.d.mts +12 -3
- package/dist/actions/delete-note.d.mts.map +1 -1
- package/dist/actions/delete-note.mjs +1 -1
- package/dist/actions/delete-note.mjs.map +1 -1
- package/dist/actions/delete-person.cjs +1 -1
- package/dist/actions/delete-person.cjs.map +1 -1
- package/dist/actions/delete-person.d.cts +12 -3
- package/dist/actions/delete-person.d.cts.map +1 -1
- package/dist/actions/delete-person.d.mts +12 -3
- package/dist/actions/delete-person.d.mts.map +1 -1
- package/dist/actions/delete-person.mjs +1 -1
- package/dist/actions/delete-person.mjs.map +1 -1
- package/dist/actions/delete-reminder.cjs +1 -1
- package/dist/actions/delete-reminder.cjs.map +1 -1
- package/dist/actions/delete-reminder.d.cts +12 -3
- package/dist/actions/delete-reminder.d.cts.map +1 -1
- package/dist/actions/delete-reminder.d.mts +12 -3
- package/dist/actions/delete-reminder.d.mts.map +1 -1
- package/dist/actions/delete-reminder.mjs +1 -1
- package/dist/actions/delete-reminder.mjs.map +1 -1
- package/dist/actions/get-company.cjs +4 -4
- package/dist/actions/get-company.cjs.map +1 -1
- package/dist/actions/get-company.d.cts +22 -3
- package/dist/actions/get-company.d.cts.map +1 -1
- package/dist/actions/get-company.d.mts +22 -3
- package/dist/actions/get-company.d.mts.map +1 -1
- package/dist/actions/get-company.mjs +4 -4
- package/dist/actions/get-company.mjs.map +1 -1
- package/dist/actions/get-current-workspace-user.cjs +3 -3
- package/dist/actions/get-current-workspace-user.cjs.map +1 -1
- package/dist/actions/get-current-workspace-user.d.cts +9 -3
- package/dist/actions/get-current-workspace-user.d.cts.map +1 -1
- package/dist/actions/get-current-workspace-user.d.mts +9 -3
- package/dist/actions/get-current-workspace-user.d.mts.map +1 -1
- package/dist/actions/get-current-workspace-user.mjs +3 -3
- package/dist/actions/get-current-workspace-user.mjs.map +1 -1
- package/dist/actions/get-note.cjs +17 -17
- package/dist/actions/get-note.cjs.map +1 -1
- package/dist/actions/get-note.d.cts +75 -3
- package/dist/actions/get-note.d.cts.map +1 -1
- package/dist/actions/get-note.d.mts +75 -3
- package/dist/actions/get-note.d.mts.map +1 -1
- package/dist/actions/get-note.mjs +17 -17
- package/dist/actions/get-note.mjs.map +1 -1
- package/dist/actions/get-person.cjs +8 -8
- package/dist/actions/get-person.cjs.map +1 -1
- package/dist/actions/get-person.d.cts +36 -3
- package/dist/actions/get-person.d.cts.map +1 -1
- package/dist/actions/get-person.d.mts +36 -3
- package/dist/actions/get-person.d.mts.map +1 -1
- package/dist/actions/get-person.mjs +8 -8
- package/dist/actions/get-person.mjs.map +1 -1
- package/dist/actions/get-user.cjs +3 -3
- package/dist/actions/get-user.cjs.map +1 -1
- package/dist/actions/get-user.d.cts +14 -3
- package/dist/actions/get-user.d.cts.map +1 -1
- package/dist/actions/get-user.d.mts +14 -3
- package/dist/actions/get-user.d.mts.map +1 -1
- package/dist/actions/get-user.mjs +3 -3
- package/dist/actions/get-user.mjs.map +1 -1
- package/dist/actions/list-companies.cjs +8 -8
- package/dist/actions/list-companies.cjs.map +1 -1
- package/dist/actions/list-companies.d.cts +48 -3
- package/dist/actions/list-companies.d.cts.map +1 -1
- package/dist/actions/list-companies.d.mts +48 -3
- package/dist/actions/list-companies.d.mts.map +1 -1
- package/dist/actions/list-companies.mjs +8 -8
- package/dist/actions/list-companies.mjs.map +1 -1
- package/dist/actions/list-group-custom-fields.cjs +5 -5
- package/dist/actions/list-group-custom-fields.cjs.map +1 -1
- package/dist/actions/list-group-custom-fields.d.cts +45 -3
- package/dist/actions/list-group-custom-fields.d.cts.map +1 -1
- package/dist/actions/list-group-custom-fields.d.mts +45 -3
- package/dist/actions/list-group-custom-fields.d.mts.map +1 -1
- package/dist/actions/list-group-custom-fields.mjs +5 -5
- package/dist/actions/list-group-custom-fields.mjs.map +1 -1
- package/dist/actions/list-groups.cjs +2 -2
- package/dist/actions/list-groups.cjs.map +1 -1
- package/dist/actions/list-groups.d.cts +20 -3
- package/dist/actions/list-groups.d.cts.map +1 -1
- package/dist/actions/list-groups.d.mts +20 -3
- package/dist/actions/list-groups.d.mts.map +1 -1
- package/dist/actions/list-groups.mjs +2 -2
- package/dist/actions/list-groups.mjs.map +1 -1
- package/dist/actions/list-notes.cjs +17 -17
- package/dist/actions/list-notes.cjs.map +1 -1
- package/dist/actions/list-notes.d.cts +52 -3
- package/dist/actions/list-notes.d.cts.map +1 -1
- package/dist/actions/list-notes.d.mts +52 -3
- package/dist/actions/list-notes.d.mts.map +1 -1
- package/dist/actions/list-notes.mjs +17 -17
- package/dist/actions/list-notes.mjs.map +1 -1
- package/dist/actions/list-people.cjs +8 -8
- package/dist/actions/list-people.cjs.map +1 -1
- package/dist/actions/list-people.d.cts +57 -3
- package/dist/actions/list-people.d.cts.map +1 -1
- package/dist/actions/list-people.d.mts +57 -3
- package/dist/actions/list-people.d.mts.map +1 -1
- package/dist/actions/list-people.mjs +8 -8
- package/dist/actions/list-people.mjs.map +1 -1
- package/dist/actions/list-reminders.cjs +9 -9
- package/dist/actions/list-reminders.cjs.map +1 -1
- package/dist/actions/list-reminders.d.cts +49 -3
- package/dist/actions/list-reminders.d.cts.map +1 -1
- package/dist/actions/list-reminders.d.mts +49 -3
- package/dist/actions/list-reminders.d.mts.map +1 -1
- package/dist/actions/list-reminders.mjs +9 -9
- package/dist/actions/list-reminders.mjs.map +1 -1
- package/dist/actions/list-users.cjs +3 -3
- package/dist/actions/list-users.cjs.map +1 -1
- package/dist/actions/list-users.d.cts +21 -3
- package/dist/actions/list-users.d.cts.map +1 -1
- package/dist/actions/list-users.d.mts +21 -3
- package/dist/actions/list-users.d.mts.map +1 -1
- package/dist/actions/list-users.mjs +3 -3
- package/dist/actions/list-users.mjs.map +1 -1
- package/dist/actions/list-webhooks.cjs +7 -7
- package/dist/actions/list-webhooks.cjs.map +1 -1
- package/dist/actions/list-webhooks.d.cts +33 -3
- package/dist/actions/list-webhooks.d.cts.map +1 -1
- package/dist/actions/list-webhooks.d.mts +33 -3
- package/dist/actions/list-webhooks.d.mts.map +1 -1
- package/dist/actions/list-webhooks.mjs +7 -7
- package/dist/actions/list-webhooks.mjs.map +1 -1
- package/dist/actions/update-company.cjs +4 -4
- package/dist/actions/update-company.cjs.map +1 -1
- package/dist/actions/update-company.d.cts +43 -3
- package/dist/actions/update-company.d.cts.map +1 -1
- package/dist/actions/update-company.d.mts +43 -3
- package/dist/actions/update-company.d.mts.map +1 -1
- package/dist/actions/update-company.mjs +4 -4
- package/dist/actions/update-company.mjs.map +1 -1
- package/dist/actions/update-note.cjs +6 -6
- package/dist/actions/update-note.cjs.map +1 -1
- package/dist/actions/update-note.d.cts +35 -3
- package/dist/actions/update-note.d.cts.map +1 -1
- package/dist/actions/update-note.d.mts +35 -3
- package/dist/actions/update-note.d.mts.map +1 -1
- package/dist/actions/update-note.mjs +6 -6
- package/dist/actions/update-note.mjs.map +1 -1
- package/dist/actions/update-person.cjs +8 -8
- package/dist/actions/update-person.cjs.map +1 -1
- package/dist/actions/update-person.d.cts +75 -3
- package/dist/actions/update-person.d.cts.map +1 -1
- package/dist/actions/update-person.d.mts +75 -3
- package/dist/actions/update-person.d.mts.map +1 -1
- package/dist/actions/update-person.mjs +8 -8
- package/dist/actions/update-person.mjs.map +1 -1
- package/dist/catalog.cjs +7 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +8 -0
- package/dist/catalog.d.mts +8 -0
- package/dist/catalog.mjs +7 -1
- package/dist/catalog.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -3,9 +3,9 @@ import { z } from "zod";
|
|
|
3
3
|
//#region src/actions/get-user.ts
|
|
4
4
|
const FolkGetUserInput = z.object({ user_id: z.string().describe("The unique identifier of the user to retrieve") }).describe("Request schema for retrieving a user by their unique identifier.");
|
|
5
5
|
const FolkGetUser_UserDataSchema = z.object({
|
|
6
|
-
id: z.string().describe("Unique identifier of the user"),
|
|
7
|
-
email: z.string().describe("Email address of the user"),
|
|
8
|
-
fullName: z.string().describe("Full name of the user")
|
|
6
|
+
id: z.string().describe("Unique identifier of the user").nullable(),
|
|
7
|
+
email: z.string().describe("Email address of the user").nullable(),
|
|
8
|
+
fullName: z.string().describe("Full name of the user").nullable()
|
|
9
9
|
}).describe("Representation of a workspace user.");
|
|
10
10
|
const folkGetUser = action("FOLK_GET_USER", {
|
|
11
11
|
slug: "folk-get-user",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-user.mjs","names":[],"sources":["../../src/actions/get-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FolkGetUserInput
|
|
1
|
+
{"version":3,"file":"get-user.mjs","names":[],"sources":["../../src/actions/get-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FolkGetUserInput = z.object({\n user_id: z.string().describe(\"The unique identifier of the user to retrieve\"),\n}).describe(\"Request schema for retrieving a user by their unique identifier.\");\nconst FolkGetUser_UserDataSchema = z.object({\n id: z.string().describe(\"Unique identifier of the user\").nullable(),\n email: z.string().describe(\"Email address of the user\").nullable(),\n fullName: z.string().describe(\"Full name of the user\").nullable(),\n}).describe(\"Representation of a workspace user.\");\nexport const FolkGetUserOutput = z.object({\n data: FolkGetUser_UserDataSchema.nullable(),\n deprecations: z.array(z.string()).describe(\"Deprecation warnings, if any\").nullable().optional(),\n}).describe(\"Response schema for retrieving a user by ID.\");\n\nexport const folkGetUser = action(\"FOLK_GET_USER\", {\n slug: \"folk-get-user\",\n name: \"Get User\",\n description: \"Tool to retrieve a user by their unique identifier. Use when you need to get details of a specific workspace user.\",\n input: FolkGetUserInput,\n output: FolkGetUserOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mBAAmB,EAAE,OAAO,EACvC,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,EAC9E,CAAC,CAAC,CAAC,SAAS,kEAAkE;AAC9E,MAAM,6BAA6B,EAAE,OAAO;CAC1C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAClE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACjE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;AAClE,CAAC,CAAC,CAAC,SAAS,qCAAqC;AAMjD,MAAa,cAAc,OAAO,iBAAiB;CACjD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAV+B,EAAE,OAAO;EACxC,MAAM,2BAA2B,SAAS;EAC1C,cAAc,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,CAAC,CAAC,CAAC,SAAS,8CAOF;AACV,CAAC"}
|
|
@@ -8,24 +8,24 @@ const FolkListCompaniesInput = zod.z.object({
|
|
|
8
8
|
combinator: zod.z.enum(["and", "or"]).default("and").describe("Logical operator to combine multiple filters.").optional()
|
|
9
9
|
}).describe("Request parameters for listing companies in the workspace.");
|
|
10
10
|
const FolkListCompanies_FOLK_LIST_COMPANIESGroupSchema = zod.z.object({
|
|
11
|
-
id: zod.z.string().describe("Unique identifier of the group."),
|
|
12
|
-
name: zod.z.string().describe("Name of the group.")
|
|
11
|
+
id: zod.z.string().describe("Unique identifier of the group.").nullable(),
|
|
12
|
+
name: zod.z.string().describe("Name of the group.").nullable()
|
|
13
13
|
}).describe("A group object in the workspace.");
|
|
14
14
|
const FolkListCompanies_FOLK_LIST_COMPANIESCreatedBySchema = zod.z.object({
|
|
15
|
-
id: zod.z.string().describe("Unique identifier of the user."),
|
|
16
|
-
email: zod.z.string().describe("Email address of the user."),
|
|
17
|
-
fullName: zod.z.string().describe("Full name of the user.")
|
|
15
|
+
id: zod.z.string().describe("Unique identifier of the user.").nullable(),
|
|
16
|
+
email: zod.z.string().describe("Email address of the user.").nullable(),
|
|
17
|
+
fullName: zod.z.string().describe("Full name of the user.").nullable()
|
|
18
18
|
}).describe("User who created the company.");
|
|
19
19
|
const FolkListCompanies_FOLK_LIST_COMPANIESCompanySchema = zod.z.object({
|
|
20
|
-
id: zod.z.string().describe("Unique company identifier."),
|
|
21
|
-
name: zod.z.string().describe("Company name."),
|
|
20
|
+
id: zod.z.string().describe("Unique company identifier.").nullable(),
|
|
21
|
+
name: zod.z.string().describe("Company name.").nullable(),
|
|
22
22
|
urls: zod.z.array(zod.z.string()).describe("URLs associated with the company."),
|
|
23
23
|
emails: zod.z.array(zod.z.string()).describe("Email addresses for the company."),
|
|
24
24
|
groups: zod.z.array(FolkListCompanies_FOLK_LIST_COMPANIESGroupSchema).describe("Groups this company belongs to."),
|
|
25
25
|
phones: zod.z.array(zod.z.string()).describe("Phone numbers for the company."),
|
|
26
26
|
industry: zod.z.string().describe("Industry the company operates in.").nullable().optional(),
|
|
27
27
|
addresses: zod.z.array(zod.z.string()).describe("Postal addresses for the company."),
|
|
28
|
-
createdAt: zod.z.string().describe("ISO 8601 timestamp when the company was created."),
|
|
28
|
+
createdAt: zod.z.string().describe("ISO 8601 timestamp when the company was created.").nullable(),
|
|
29
29
|
createdBy: FolkListCompanies_FOLK_LIST_COMPANIESCreatedBySchema.nullable(),
|
|
30
30
|
description: zod.z.string().describe("Textual description of the company.").nullable().optional(),
|
|
31
31
|
employeeRange: zod.z.string().describe("Range of employees (e.g., '1-10', '11-50').").nullable().optional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-companies.cjs","names":["z","action"],"sources":["../../src/actions/list-companies.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FolkListCompaniesInput
|
|
1
|
+
{"version":3,"file":"list-companies.cjs","names":["z","action"],"sources":["../../src/actions/list-companies.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FolkListCompaniesInput = z.object({\n limit: z.number().int().default(20).describe(\"The number of items to return. Must be between 1 and 100.\").optional(),\n cursor: z.string().describe(\"A pagination cursor from a previous response's `pagination.nextLink`. Omit on the first call.\").optional(),\n filter: z.object({}).describe(\"Filters to apply, using `filter[attribute][operator]=value` syntax.\").optional(),\n combinator: z.enum([\"and\", \"or\"]).default(\"and\").describe(\"Logical operator to combine multiple filters.\").optional(),\n}).describe(\"Request parameters for listing companies in the workspace.\");\nconst FolkListCompanies_FOLK_LIST_COMPANIESGroupSchema = z.object({\n id: z.string().describe(\"Unique identifier of the group.\").nullable(),\n name: z.string().describe(\"Name of the group.\").nullable(),\n}).describe(\"A group object in the workspace.\");\nconst FolkListCompanies_FOLK_LIST_COMPANIESCreatedBySchema = z.object({\n id: z.string().describe(\"Unique identifier of the user.\").nullable(),\n email: z.string().describe(\"Email address of the user.\").nullable(),\n fullName: z.string().describe(\"Full name of the user.\").nullable(),\n}).describe(\"User who created the company.\");\nconst FolkListCompanies_FOLK_LIST_COMPANIESCompanySchema = z.object({\n id: z.string().describe(\"Unique company identifier.\").nullable(),\n name: z.string().describe(\"Company name.\").nullable(),\n urls: z.array(z.string()).describe(\"URLs associated with the company.\"),\n emails: z.array(z.string()).describe(\"Email addresses for the company.\"),\n groups: z.array(FolkListCompanies_FOLK_LIST_COMPANIESGroupSchema).describe(\"Groups this company belongs to.\"),\n phones: z.array(z.string()).describe(\"Phone numbers for the company.\"),\n industry: z.string().describe(\"Industry the company operates in.\").nullable().optional(),\n addresses: z.array(z.string()).describe(\"Postal addresses for the company.\"),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the company was created.\").nullable(),\n createdBy: FolkListCompanies_FOLK_LIST_COMPANIESCreatedBySchema.nullable(),\n description: z.string().describe(\"Textual description of the company.\").nullable().optional(),\n employeeRange: z.string().describe(\"Range of employees (e.g., '1-10', '11-50').\").nullable().optional(),\n fundingRaised: z.number().describe(\"Total funding raised by the company.\").nullable().optional(),\n foundationYear: z.number().int().describe(\"Year the company was founded.\").nullable().optional(),\n lastFundingDate: z.string().describe(\"Date of the last funding round.\").nullable().optional(),\n customFieldValues: z.record(z.string(), z.unknown()).describe(\"Custom field values keyed by group ID; values may be primitives or nested objects.\"),\n}).describe(\"A company object in the workspace.\");\nconst FolkListCompanies_FOLK_LIST_COMPANIESPaginationSchema = z.object({\n nextLink: z.string().describe(\"URL to fetch the next page of results. Omit if no further pages.\").nullable().optional(),\n}).describe(\"Pagination information for list-companies endpoint.\");\nconst FolkListCompanies_FOLK_LIST_COMPANIESDataSchema = z.object({\n items: z.array(FolkListCompanies_FOLK_LIST_COMPANIESCompanySchema).describe(\"List of retrieved companies.\"),\n pagination: FolkListCompanies_FOLK_LIST_COMPANIESPaginationSchema.nullable(),\n}).describe(\"Data envelope for list-companies response.\");\nexport const FolkListCompaniesOutput = z.object({\n data: FolkListCompanies_FOLK_LIST_COMPANIESDataSchema.nullable(),\n deprecations: z.array(z.string()).describe(\"List of deprecation warnings, if any.\").nullable().optional(),\n}).describe(\"Full response schema for list-companies.\");\n\nexport const folkListCompanies = action(\"FOLK_LIST_COMPANIES\", {\n slug: \"folk-list-companies\",\n name: \"List Companies\",\n description: \"Tool to list companies in the workspace. Use when you need a paginated overview of companies, optionally filtered.\",\n input: FolkListCompaniesInput,\n output: FolkListCompaniesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyBA,IAAAA,EAAE,OAAO;CAC7C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CACnH,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+FAA+F,CAAC,CAAC,SAAS;CACtI,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CAC9G,YAAYA,IAAAA,EAAE,KAAK,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;AACtH,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAM,mDAAmDA,IAAAA,EAAE,OAAO;CAChE,IAAIA,IAAAA,EAAE,OAAO,CA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,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,SAAS,0CAA0C;AAEtD,MAAa,oBAAoBC,eAAAA,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,54 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-companies.d.ts
|
|
4
|
-
declare const FolkListCompaniesInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const FolkListCompaniesInput: z.ZodObject<{
|
|
5
|
+
limit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
6
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
7
|
+
filter: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
|
|
8
|
+
combinator: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
9
|
+
and: "and";
|
|
10
|
+
or: "or";
|
|
11
|
+
}>>>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
declare const FolkListCompaniesOutput: z.ZodObject<{
|
|
14
|
+
data: z.ZodNullable<z.ZodObject<{
|
|
15
|
+
items: z.ZodArray<z.ZodObject<{
|
|
16
|
+
id: z.ZodNullable<z.ZodString>;
|
|
17
|
+
name: z.ZodNullable<z.ZodString>;
|
|
18
|
+
urls: z.ZodArray<z.ZodString>;
|
|
19
|
+
emails: z.ZodArray<z.ZodString>;
|
|
20
|
+
groups: z.ZodArray<z.ZodObject<{
|
|
21
|
+
id: z.ZodNullable<z.ZodString>;
|
|
22
|
+
name: z.ZodNullable<z.ZodString>;
|
|
23
|
+
}, z.core.$strip>>;
|
|
24
|
+
phones: z.ZodArray<z.ZodString>;
|
|
25
|
+
industry: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
+
addresses: z.ZodArray<z.ZodString>;
|
|
27
|
+
createdAt: z.ZodNullable<z.ZodString>;
|
|
28
|
+
createdBy: z.ZodNullable<z.ZodObject<{
|
|
29
|
+
id: z.ZodNullable<z.ZodString>;
|
|
30
|
+
email: z.ZodNullable<z.ZodString>;
|
|
31
|
+
fullName: z.ZodNullable<z.ZodString>;
|
|
32
|
+
}, z.core.$strip>>;
|
|
33
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
34
|
+
employeeRange: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35
|
+
fundingRaised: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
36
|
+
foundationYear: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
37
|
+
lastFundingDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
38
|
+
customFieldValues: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
39
|
+
}, z.core.$strip>>;
|
|
40
|
+
pagination: z.ZodNullable<z.ZodObject<{
|
|
41
|
+
nextLink: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
42
|
+
}, z.core.$strip>>;
|
|
43
|
+
}, z.core.$strip>>;
|
|
44
|
+
deprecations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
45
|
+
}, z.core.$strip>;
|
|
46
|
+
declare const folkListCompanies: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
47
|
+
limit?: number | undefined;
|
|
48
|
+
cursor?: string | undefined;
|
|
49
|
+
filter?: Record<string, never> | undefined;
|
|
50
|
+
combinator?: "and" | "or" | undefined;
|
|
51
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
52
|
//#endregion
|
|
8
53
|
export { folkListCompanies };
|
|
9
54
|
//# sourceMappingURL=list-companies.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-companies.d.cts","names":[],"sources":["../../src/actions/list-companies.ts"],"mappings":";;;cAIa,sBAAA,
|
|
1
|
+
{"version":3,"file":"list-companies.d.cts","names":[],"sources":["../../src/actions/list-companies.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;cAwCtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKvB,iBAAA,gCAAiB,wBAAA;;;WAM5B,MAAA"}
|
|
@@ -1,9 +1,54 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-companies.d.ts
|
|
4
|
-
declare const FolkListCompaniesInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const FolkListCompaniesInput: z.ZodObject<{
|
|
5
|
+
limit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
6
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
7
|
+
filter: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
|
|
8
|
+
combinator: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
9
|
+
and: "and";
|
|
10
|
+
or: "or";
|
|
11
|
+
}>>>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
declare const FolkListCompaniesOutput: z.ZodObject<{
|
|
14
|
+
data: z.ZodNullable<z.ZodObject<{
|
|
15
|
+
items: z.ZodArray<z.ZodObject<{
|
|
16
|
+
id: z.ZodNullable<z.ZodString>;
|
|
17
|
+
name: z.ZodNullable<z.ZodString>;
|
|
18
|
+
urls: z.ZodArray<z.ZodString>;
|
|
19
|
+
emails: z.ZodArray<z.ZodString>;
|
|
20
|
+
groups: z.ZodArray<z.ZodObject<{
|
|
21
|
+
id: z.ZodNullable<z.ZodString>;
|
|
22
|
+
name: z.ZodNullable<z.ZodString>;
|
|
23
|
+
}, z.core.$strip>>;
|
|
24
|
+
phones: z.ZodArray<z.ZodString>;
|
|
25
|
+
industry: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
+
addresses: z.ZodArray<z.ZodString>;
|
|
27
|
+
createdAt: z.ZodNullable<z.ZodString>;
|
|
28
|
+
createdBy: z.ZodNullable<z.ZodObject<{
|
|
29
|
+
id: z.ZodNullable<z.ZodString>;
|
|
30
|
+
email: z.ZodNullable<z.ZodString>;
|
|
31
|
+
fullName: z.ZodNullable<z.ZodString>;
|
|
32
|
+
}, z.core.$strip>>;
|
|
33
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
34
|
+
employeeRange: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35
|
+
fundingRaised: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
36
|
+
foundationYear: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
37
|
+
lastFundingDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
38
|
+
customFieldValues: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
39
|
+
}, z.core.$strip>>;
|
|
40
|
+
pagination: z.ZodNullable<z.ZodObject<{
|
|
41
|
+
nextLink: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
42
|
+
}, z.core.$strip>>;
|
|
43
|
+
}, z.core.$strip>>;
|
|
44
|
+
deprecations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
45
|
+
}, z.core.$strip>;
|
|
46
|
+
declare const folkListCompanies: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
47
|
+
limit?: number | undefined;
|
|
48
|
+
cursor?: string | undefined;
|
|
49
|
+
filter?: Record<string, never> | undefined;
|
|
50
|
+
combinator?: "and" | "or" | undefined;
|
|
51
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
52
|
//#endregion
|
|
8
53
|
export { folkListCompanies };
|
|
9
54
|
//# sourceMappingURL=list-companies.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-companies.d.mts","names":[],"sources":["../../src/actions/list-companies.ts"],"mappings":";;;cAIa,sBAAA,
|
|
1
|
+
{"version":3,"file":"list-companies.d.mts","names":[],"sources":["../../src/actions/list-companies.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;cAwCtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKvB,iBAAA,gCAAiB,wBAAA;;;WAM5B,MAAA"}
|
|
@@ -8,24 +8,24 @@ const FolkListCompaniesInput = z.object({
|
|
|
8
8
|
combinator: z.enum(["and", "or"]).default("and").describe("Logical operator to combine multiple filters.").optional()
|
|
9
9
|
}).describe("Request parameters for listing companies in the workspace.");
|
|
10
10
|
const FolkListCompanies_FOLK_LIST_COMPANIESGroupSchema = z.object({
|
|
11
|
-
id: z.string().describe("Unique identifier of the group."),
|
|
12
|
-
name: z.string().describe("Name of the group.")
|
|
11
|
+
id: z.string().describe("Unique identifier of the group.").nullable(),
|
|
12
|
+
name: z.string().describe("Name of the group.").nullable()
|
|
13
13
|
}).describe("A group object in the workspace.");
|
|
14
14
|
const FolkListCompanies_FOLK_LIST_COMPANIESCreatedBySchema = z.object({
|
|
15
|
-
id: z.string().describe("Unique identifier of the user."),
|
|
16
|
-
email: z.string().describe("Email address of the user."),
|
|
17
|
-
fullName: z.string().describe("Full name of the user.")
|
|
15
|
+
id: z.string().describe("Unique identifier of the user.").nullable(),
|
|
16
|
+
email: z.string().describe("Email address of the user.").nullable(),
|
|
17
|
+
fullName: z.string().describe("Full name of the user.").nullable()
|
|
18
18
|
}).describe("User who created the company.");
|
|
19
19
|
const FolkListCompanies_FOLK_LIST_COMPANIESCompanySchema = z.object({
|
|
20
|
-
id: z.string().describe("Unique company identifier."),
|
|
21
|
-
name: z.string().describe("Company name."),
|
|
20
|
+
id: z.string().describe("Unique company identifier.").nullable(),
|
|
21
|
+
name: z.string().describe("Company name.").nullable(),
|
|
22
22
|
urls: z.array(z.string()).describe("URLs associated with the company."),
|
|
23
23
|
emails: z.array(z.string()).describe("Email addresses for the company."),
|
|
24
24
|
groups: z.array(FolkListCompanies_FOLK_LIST_COMPANIESGroupSchema).describe("Groups this company belongs to."),
|
|
25
25
|
phones: z.array(z.string()).describe("Phone numbers for the company."),
|
|
26
26
|
industry: z.string().describe("Industry the company operates in.").nullable().optional(),
|
|
27
27
|
addresses: z.array(z.string()).describe("Postal addresses for the company."),
|
|
28
|
-
createdAt: z.string().describe("ISO 8601 timestamp when the company was created."),
|
|
28
|
+
createdAt: z.string().describe("ISO 8601 timestamp when the company was created.").nullable(),
|
|
29
29
|
createdBy: FolkListCompanies_FOLK_LIST_COMPANIESCreatedBySchema.nullable(),
|
|
30
30
|
description: z.string().describe("Textual description of the company.").nullable().optional(),
|
|
31
31
|
employeeRange: z.string().describe("Range of employees (e.g., '1-10', '11-50').").nullable().optional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-companies.mjs","names":[],"sources":["../../src/actions/list-companies.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FolkListCompaniesInput
|
|
1
|
+
{"version":3,"file":"list-companies.mjs","names":[],"sources":["../../src/actions/list-companies.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FolkListCompaniesInput = z.object({\n limit: z.number().int().default(20).describe(\"The number of items to return. Must be between 1 and 100.\").optional(),\n cursor: z.string().describe(\"A pagination cursor from a previous response's `pagination.nextLink`. Omit on the first call.\").optional(),\n filter: z.object({}).describe(\"Filters to apply, using `filter[attribute][operator]=value` syntax.\").optional(),\n combinator: z.enum([\"and\", \"or\"]).default(\"and\").describe(\"Logical operator to combine multiple filters.\").optional(),\n}).describe(\"Request parameters for listing companies in the workspace.\");\nconst FolkListCompanies_FOLK_LIST_COMPANIESGroupSchema = z.object({\n id: z.string().describe(\"Unique identifier of the group.\").nullable(),\n name: z.string().describe(\"Name of the group.\").nullable(),\n}).describe(\"A group object in the workspace.\");\nconst FolkListCompanies_FOLK_LIST_COMPANIESCreatedBySchema = z.object({\n id: z.string().describe(\"Unique identifier of the user.\").nullable(),\n email: z.string().describe(\"Email address of the user.\").nullable(),\n fullName: z.string().describe(\"Full name of the user.\").nullable(),\n}).describe(\"User who created the company.\");\nconst FolkListCompanies_FOLK_LIST_COMPANIESCompanySchema = z.object({\n id: z.string().describe(\"Unique company identifier.\").nullable(),\n name: z.string().describe(\"Company name.\").nullable(),\n urls: z.array(z.string()).describe(\"URLs associated with the company.\"),\n emails: z.array(z.string()).describe(\"Email addresses for the company.\"),\n groups: z.array(FolkListCompanies_FOLK_LIST_COMPANIESGroupSchema).describe(\"Groups this company belongs to.\"),\n phones: z.array(z.string()).describe(\"Phone numbers for the company.\"),\n industry: z.string().describe(\"Industry the company operates in.\").nullable().optional(),\n addresses: z.array(z.string()).describe(\"Postal addresses for the company.\"),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the company was created.\").nullable(),\n createdBy: FolkListCompanies_FOLK_LIST_COMPANIESCreatedBySchema.nullable(),\n description: z.string().describe(\"Textual description of the company.\").nullable().optional(),\n employeeRange: z.string().describe(\"Range of employees (e.g., '1-10', '11-50').\").nullable().optional(),\n fundingRaised: z.number().describe(\"Total funding raised by the company.\").nullable().optional(),\n foundationYear: z.number().int().describe(\"Year the company was founded.\").nullable().optional(),\n lastFundingDate: z.string().describe(\"Date of the last funding round.\").nullable().optional(),\n customFieldValues: z.record(z.string(), z.unknown()).describe(\"Custom field values keyed by group ID; values may be primitives or nested objects.\"),\n}).describe(\"A company object in the workspace.\");\nconst FolkListCompanies_FOLK_LIST_COMPANIESPaginationSchema = z.object({\n nextLink: z.string().describe(\"URL to fetch the next page of results. Omit if no further pages.\").nullable().optional(),\n}).describe(\"Pagination information for list-companies endpoint.\");\nconst FolkListCompanies_FOLK_LIST_COMPANIESDataSchema = z.object({\n items: z.array(FolkListCompanies_FOLK_LIST_COMPANIESCompanySchema).describe(\"List of retrieved companies.\"),\n pagination: FolkListCompanies_FOLK_LIST_COMPANIESPaginationSchema.nullable(),\n}).describe(\"Data envelope for list-companies response.\");\nexport const FolkListCompaniesOutput = z.object({\n data: FolkListCompanies_FOLK_LIST_COMPANIESDataSchema.nullable(),\n deprecations: z.array(z.string()).describe(\"List of deprecation warnings, if any.\").nullable().optional(),\n}).describe(\"Full response schema for list-companies.\");\n\nexport const folkListCompanies = action(\"FOLK_LIST_COMPANIES\", {\n slug: \"folk-list-companies\",\n name: \"List Companies\",\n description: \"Tool to list companies in the workspace. Use when you need a paginated overview of companies, optionally filtered.\",\n input: FolkListCompaniesInput,\n output: FolkListCompaniesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyB,EAAE,OAAO;CAC7C,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CACnH,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+FAA+F,CAAC,CAAC,SAAS;CACtI,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CAC9G,YAAY,EAAE,KAAK,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;AACtH,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAM,mDAAmD,EAAE,OAAO;CAChE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CACpE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;AAC3D,CAAC,CAAC,CAAC,SAAS,kCAAkC;AAC9C,MAAM,uDAAuD,EAAE,OAAO;CACpE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACnE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4B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SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,mBAAmB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oFAAoF;AACpJ,CAAC,CAAC,CAAC,SAAS,oCAAoC;AAChD,MAAM,wDAAwD,EAAE,OAAO,EACrE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACxH,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAM,kDAAkD,EAAE,OAAO;CAC/D,OAAO,EAAE,MAAM,kDAAkD,CAAC,CAAC,SAAS,8BAA8B;CAC1G,YAAY,sDAAsD,SAAS;AAC7E,CAAC,CAAC,CAAC,SAAS,4CAA4C;AAMxD,MAAa,oBAAoB,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVqC,EAAE,OAAO;EAC9C,MAAM,gDAAgD,SAAS;EAC/D,cAAc,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,CAAC,CAAC,CAAC,SAAS,0CAOF;AACV,CAAC"}
|
|
@@ -8,15 +8,15 @@ const FolkListGroupCustomFieldsInput = zod.z.object({
|
|
|
8
8
|
entity_type: zod.z.enum(["person", "company"]).describe("Entity type whose custom fields to list. Must be 'person' or 'company'.")
|
|
9
9
|
}).describe("Request schema for listing custom fields of a group and entity type.");
|
|
10
10
|
const FolkListGroupCustomFields_NumericFieldConfigSchema = zod.z.object({
|
|
11
|
-
format: zod.z.string().describe("Display format for numeric fields (e.g., 'currency')."),
|
|
11
|
+
format: zod.z.string().describe("Display format for numeric fields (e.g., 'currency').").nullable(),
|
|
12
12
|
currency: zod.z.string().describe("Currency code (e.g., 'USD') when format is 'currency'.").nullable().optional()
|
|
13
13
|
});
|
|
14
14
|
const FolkListGroupCustomFields_OptionSchema = zod.z.object({
|
|
15
|
-
color: zod.z.string().describe("Hex color code associated with the option."),
|
|
16
|
-
label: zod.z.string().describe("Display label of the option.")
|
|
15
|
+
color: zod.z.string().describe("Hex color code associated with the option.").nullable(),
|
|
16
|
+
label: zod.z.string().describe("Display label of the option.").nullable()
|
|
17
17
|
});
|
|
18
18
|
const FolkListGroupCustomFields_CustomFieldItemSchema = zod.z.object({
|
|
19
|
-
name: zod.z.string().describe("Name of the custom field."),
|
|
19
|
+
name: zod.z.string().describe("Name of the custom field.").nullable(),
|
|
20
20
|
type: zod.z.enum([
|
|
21
21
|
"singleSelect",
|
|
22
22
|
"multipleSelect",
|
|
@@ -27,7 +27,7 @@ const FolkListGroupCustomFields_CustomFieldItemSchema = zod.z.object({
|
|
|
27
27
|
"userField",
|
|
28
28
|
"objectField",
|
|
29
29
|
"magicField"
|
|
30
|
-
]).describe("Type of the custom field."),
|
|
30
|
+
]).describe("Type of the custom field.").nullable(),
|
|
31
31
|
config: FolkListGroupCustomFields_NumericFieldConfigSchema.nullable().optional(),
|
|
32
32
|
options: zod.z.array(FolkListGroupCustomFields_OptionSchema).describe("Available choices for select-type fields, if applicable.").nullable().optional()
|
|
33
33
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-group-custom-fields.cjs","names":["z","action"],"sources":["../../src/actions/list-group-custom-fields.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FolkListGroupCustomFieldsInput
|
|
1
|
+
{"version":3,"file":"list-group-custom-fields.cjs","names":["z","action"],"sources":["../../src/actions/list-group-custom-fields.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FolkListGroupCustomFieldsInput = z.object({\n limit: z.number().int().default(20).describe(\"Number of items to return (1-100). Defaults to 20.\").optional(),\n cursor: z.string().describe(\"Pagination cursor. Omit on first call; use `data.pagination.nextLink` from previous response for subsequent pages.\").optional(),\n group_id: z.string().describe(\"ID of the group (exactly 40 characters). Obtain via the list-groups endpoint.\"),\n entity_type: z.enum([\"person\", \"company\"]).describe(\"Entity type whose custom fields to list. Must be 'person' or 'company'.\"),\n}).describe(\"Request schema for listing custom fields of a group and entity type.\");\nconst FolkListGroupCustomFields_NumericFieldConfigSchema = z.object({\n format: z.string().describe(\"Display format for numeric fields (e.g., 'currency').\").nullable(),\n currency: z.string().describe(\"Currency code (e.g., 'USD') when format is 'currency'.\").nullable().optional(),\n});\nconst FolkListGroupCustomFields_OptionSchema = z.object({\n color: z.string().describe(\"Hex color code associated with the option.\").nullable(),\n label: z.string().describe(\"Display label of the option.\").nullable(),\n});\nconst FolkListGroupCustomFields_CustomFieldItemSchema = z.object({\n name: z.string().describe(\"Name of the custom field.\").nullable(),\n type: z.enum([\"singleSelect\", \"multipleSelect\", \"numericField\", \"textField\", \"contactField\", \"dateField\", \"userField\", \"objectField\", \"magicField\"]).describe(\"Type of the custom field.\").nullable(),\n config: FolkListGroupCustomFields_NumericFieldConfigSchema.nullable().optional(),\n options: z.array(FolkListGroupCustomFields_OptionSchema).describe(\"Available choices for select-type fields, if applicable.\").nullable().optional(),\n});\nconst FolkListGroupCustomFields_PaginationSchema = z.object({\n nextLink: z.string().describe(\"URL to retrieve the next page of results, if any.\").nullable().optional(),\n});\nconst FolkListGroupCustomFields_ListGroupCustomFieldsDataSchema = z.object({\n items: z.array(FolkListGroupCustomFields_CustomFieldItemSchema).describe(\"List of custom fields for the group and entity type.\"),\n pagination: FolkListGroupCustomFields_PaginationSchema.nullable(),\n});\nexport const FolkListGroupCustomFieldsOutput = z.object({\n data: FolkListGroupCustomFields_ListGroupCustomFieldsDataSchema.nullable(),\n deprecations: z.array(z.string()).describe(\"Deprecation warnings, if any.\").nullable().optional(),\n});\n\nexport const folkListGroupCustomFields = action(\"FOLK_LIST_GROUP_CUSTOM_FIELDS\", {\n slug: \"folk-list-group-custom-fields\",\n name: \"List Group Custom Fields\",\n description: \"Tool to list custom fields for a specific group and entity type. Use after selecting a group and entity type to inspect available custom fields.\",\n input: FolkListGroupCustomFieldsInput,\n output: FolkListGroupCustomFieldsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAC5G,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH,CAAC,CAAC,SAAS;CAC3J,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E;CAC7G,aAAaA,IAAAA,EAAE,KAAK,CAAC,UAAU,SAAS,CAAC,CAAC,CAAC,SAAS,yEAAyE;AAC/H,CAAC,CAAC,CAAC,SAAS,sEAAsE;AAClF,MAAM,qDAAqDA,IAAAA,EAAE,OAAO;CAClE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAC9F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9G,CAAC;AACD,MAAM,yCAAyCA,IAAAA,EAAE,OAAO;CACtD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CAClF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;AACtE,CAAC;AACD,MAAM,kDAAkDA,IAAAA,EAAE,OAAO;CAC/D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAChE,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAgB;EAAkB;EAAgB;EAAa;EAAgB;EAAa;EAAa;EAAe;CAAY,CAAC,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACpM,QAAQ,mDAAmD,SAAS,CAAC,CAAC,SAAS;CAC/E,SAASA,IAAAA,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpJ,CAAC;AACD,MAAM,6CAA6CA,IAAAA,EAAE,OAAO,EAC1D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACzG,CAAC;AACD,MAAM,4DAA4DA,IAAAA,EAAE,OAAO;CACzE,OAAOA,IAAAA,EAAE,MAAM,+CAA+C,CAAC,CAAC,SAAS,sDAAsD;CAC/H,YAAY,2CAA2C,SAAS;AAClE,CAAC;AACD,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,MAAM,0DAA0D,SAAS;CACzE,cAAcA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClG,CAAC;AAED,MAAa,4BAA4BC,eAAAA,OAAO,iCAAiC;CAC/E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,51 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-group-custom-fields.d.ts
|
|
4
|
-
declare const FolkListGroupCustomFieldsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const FolkListGroupCustomFieldsInput: z.ZodObject<{
|
|
5
|
+
limit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
6
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
7
|
+
group_id: z.ZodString;
|
|
8
|
+
entity_type: z.ZodEnum<{
|
|
9
|
+
person: "person";
|
|
10
|
+
company: "company";
|
|
11
|
+
}>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
declare const FolkListGroupCustomFieldsOutput: z.ZodObject<{
|
|
14
|
+
data: z.ZodNullable<z.ZodObject<{
|
|
15
|
+
items: z.ZodArray<z.ZodObject<{
|
|
16
|
+
name: z.ZodNullable<z.ZodString>;
|
|
17
|
+
type: z.ZodNullable<z.ZodEnum<{
|
|
18
|
+
singleSelect: "singleSelect";
|
|
19
|
+
multipleSelect: "multipleSelect";
|
|
20
|
+
numericField: "numericField";
|
|
21
|
+
textField: "textField";
|
|
22
|
+
contactField: "contactField";
|
|
23
|
+
dateField: "dateField";
|
|
24
|
+
userField: "userField";
|
|
25
|
+
objectField: "objectField";
|
|
26
|
+
magicField: "magicField";
|
|
27
|
+
}>>;
|
|
28
|
+
config: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
29
|
+
format: z.ZodNullable<z.ZodString>;
|
|
30
|
+
currency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31
|
+
}, z.core.$strip>>>;
|
|
32
|
+
options: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
33
|
+
color: z.ZodNullable<z.ZodString>;
|
|
34
|
+
label: z.ZodNullable<z.ZodString>;
|
|
35
|
+
}, z.core.$strip>>>>;
|
|
36
|
+
}, z.core.$strip>>;
|
|
37
|
+
pagination: z.ZodNullable<z.ZodObject<{
|
|
38
|
+
nextLink: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
39
|
+
}, z.core.$strip>>;
|
|
40
|
+
}, z.core.$strip>>;
|
|
41
|
+
deprecations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
42
|
+
}, z.core.$strip>;
|
|
43
|
+
declare const folkListGroupCustomFields: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
44
|
+
group_id: string;
|
|
45
|
+
entity_type: "person" | "company";
|
|
46
|
+
limit?: number | undefined;
|
|
47
|
+
cursor?: string | undefined;
|
|
48
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
49
|
//#endregion
|
|
8
50
|
export { folkListGroupCustomFields };
|
|
9
51
|
//# sourceMappingURL=list-group-custom-fields.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-group-custom-fields.d.cts","names":[],"sources":["../../src/actions/list-group-custom-fields.ts"],"mappings":";;;cAIa,8BAAA,
|
|
1
|
+
{"version":3,"file":"list-group-custom-fields.d.cts","names":[],"sources":["../../src/actions/list-group-custom-fields.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;cA2B9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAK/B,yBAAA,gCAAyB,wBAAA"}
|
|
@@ -1,9 +1,51 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-group-custom-fields.d.ts
|
|
4
|
-
declare const FolkListGroupCustomFieldsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const FolkListGroupCustomFieldsInput: z.ZodObject<{
|
|
5
|
+
limit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
6
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
7
|
+
group_id: z.ZodString;
|
|
8
|
+
entity_type: z.ZodEnum<{
|
|
9
|
+
person: "person";
|
|
10
|
+
company: "company";
|
|
11
|
+
}>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
declare const FolkListGroupCustomFieldsOutput: z.ZodObject<{
|
|
14
|
+
data: z.ZodNullable<z.ZodObject<{
|
|
15
|
+
items: z.ZodArray<z.ZodObject<{
|
|
16
|
+
name: z.ZodNullable<z.ZodString>;
|
|
17
|
+
type: z.ZodNullable<z.ZodEnum<{
|
|
18
|
+
singleSelect: "singleSelect";
|
|
19
|
+
multipleSelect: "multipleSelect";
|
|
20
|
+
numericField: "numericField";
|
|
21
|
+
textField: "textField";
|
|
22
|
+
contactField: "contactField";
|
|
23
|
+
dateField: "dateField";
|
|
24
|
+
userField: "userField";
|
|
25
|
+
objectField: "objectField";
|
|
26
|
+
magicField: "magicField";
|
|
27
|
+
}>>;
|
|
28
|
+
config: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
29
|
+
format: z.ZodNullable<z.ZodString>;
|
|
30
|
+
currency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31
|
+
}, z.core.$strip>>>;
|
|
32
|
+
options: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
33
|
+
color: z.ZodNullable<z.ZodString>;
|
|
34
|
+
label: z.ZodNullable<z.ZodString>;
|
|
35
|
+
}, z.core.$strip>>>>;
|
|
36
|
+
}, z.core.$strip>>;
|
|
37
|
+
pagination: z.ZodNullable<z.ZodObject<{
|
|
38
|
+
nextLink: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
39
|
+
}, z.core.$strip>>;
|
|
40
|
+
}, z.core.$strip>>;
|
|
41
|
+
deprecations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
42
|
+
}, z.core.$strip>;
|
|
43
|
+
declare const folkListGroupCustomFields: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
44
|
+
group_id: string;
|
|
45
|
+
entity_type: "person" | "company";
|
|
46
|
+
limit?: number | undefined;
|
|
47
|
+
cursor?: string | undefined;
|
|
48
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
49
|
//#endregion
|
|
8
50
|
export { folkListGroupCustomFields };
|
|
9
51
|
//# sourceMappingURL=list-group-custom-fields.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-group-custom-fields.d.mts","names":[],"sources":["../../src/actions/list-group-custom-fields.ts"],"mappings":";;;cAIa,8BAAA,
|
|
1
|
+
{"version":3,"file":"list-group-custom-fields.d.mts","names":[],"sources":["../../src/actions/list-group-custom-fields.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;cA2B9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAK/B,yBAAA,gCAAyB,wBAAA"}
|
|
@@ -8,15 +8,15 @@ const FolkListGroupCustomFieldsInput = z.object({
|
|
|
8
8
|
entity_type: z.enum(["person", "company"]).describe("Entity type whose custom fields to list. Must be 'person' or 'company'.")
|
|
9
9
|
}).describe("Request schema for listing custom fields of a group and entity type.");
|
|
10
10
|
const FolkListGroupCustomFields_NumericFieldConfigSchema = z.object({
|
|
11
|
-
format: z.string().describe("Display format for numeric fields (e.g., 'currency')."),
|
|
11
|
+
format: z.string().describe("Display format for numeric fields (e.g., 'currency').").nullable(),
|
|
12
12
|
currency: z.string().describe("Currency code (e.g., 'USD') when format is 'currency'.").nullable().optional()
|
|
13
13
|
});
|
|
14
14
|
const FolkListGroupCustomFields_OptionSchema = z.object({
|
|
15
|
-
color: z.string().describe("Hex color code associated with the option."),
|
|
16
|
-
label: z.string().describe("Display label of the option.")
|
|
15
|
+
color: z.string().describe("Hex color code associated with the option.").nullable(),
|
|
16
|
+
label: z.string().describe("Display label of the option.").nullable()
|
|
17
17
|
});
|
|
18
18
|
const FolkListGroupCustomFields_CustomFieldItemSchema = z.object({
|
|
19
|
-
name: z.string().describe("Name of the custom field."),
|
|
19
|
+
name: z.string().describe("Name of the custom field.").nullable(),
|
|
20
20
|
type: z.enum([
|
|
21
21
|
"singleSelect",
|
|
22
22
|
"multipleSelect",
|
|
@@ -27,7 +27,7 @@ const FolkListGroupCustomFields_CustomFieldItemSchema = z.object({
|
|
|
27
27
|
"userField",
|
|
28
28
|
"objectField",
|
|
29
29
|
"magicField"
|
|
30
|
-
]).describe("Type of the custom field."),
|
|
30
|
+
]).describe("Type of the custom field.").nullable(),
|
|
31
31
|
config: FolkListGroupCustomFields_NumericFieldConfigSchema.nullable().optional(),
|
|
32
32
|
options: z.array(FolkListGroupCustomFields_OptionSchema).describe("Available choices for select-type fields, if applicable.").nullable().optional()
|
|
33
33
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-group-custom-fields.mjs","names":[],"sources":["../../src/actions/list-group-custom-fields.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FolkListGroupCustomFieldsInput
|
|
1
|
+
{"version":3,"file":"list-group-custom-fields.mjs","names":[],"sources":["../../src/actions/list-group-custom-fields.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FolkListGroupCustomFieldsInput = z.object({\n limit: z.number().int().default(20).describe(\"Number of items to return (1-100). Defaults to 20.\").optional(),\n cursor: z.string().describe(\"Pagination cursor. Omit on first call; use `data.pagination.nextLink` from previous response for subsequent pages.\").optional(),\n group_id: z.string().describe(\"ID of the group (exactly 40 characters). Obtain via the list-groups endpoint.\"),\n entity_type: z.enum([\"person\", \"company\"]).describe(\"Entity type whose custom fields to list. Must be 'person' or 'company'.\"),\n}).describe(\"Request schema for listing custom fields of a group and entity type.\");\nconst FolkListGroupCustomFields_NumericFieldConfigSchema = z.object({\n format: z.string().describe(\"Display format for numeric fields (e.g., 'currency').\").nullable(),\n currency: z.string().describe(\"Currency code (e.g., 'USD') when format is 'currency'.\").nullable().optional(),\n});\nconst FolkListGroupCustomFields_OptionSchema = z.object({\n color: z.string().describe(\"Hex color code associated with the option.\").nullable(),\n label: z.string().describe(\"Display label of the option.\").nullable(),\n});\nconst FolkListGroupCustomFields_CustomFieldItemSchema = z.object({\n name: z.string().describe(\"Name of the custom field.\").nullable(),\n type: z.enum([\"singleSelect\", \"multipleSelect\", \"numericField\", \"textField\", \"contactField\", \"dateField\", \"userField\", \"objectField\", \"magicField\"]).describe(\"Type of the custom field.\").nullable(),\n config: FolkListGroupCustomFields_NumericFieldConfigSchema.nullable().optional(),\n options: z.array(FolkListGroupCustomFields_OptionSchema).describe(\"Available choices for select-type fields, if applicable.\").nullable().optional(),\n});\nconst FolkListGroupCustomFields_PaginationSchema = z.object({\n nextLink: z.string().describe(\"URL to retrieve the next page of results, if any.\").nullable().optional(),\n});\nconst FolkListGroupCustomFields_ListGroupCustomFieldsDataSchema = z.object({\n items: z.array(FolkListGroupCustomFields_CustomFieldItemSchema).describe(\"List of custom fields for the group and entity type.\"),\n pagination: FolkListGroupCustomFields_PaginationSchema.nullable(),\n});\nexport const FolkListGroupCustomFieldsOutput = z.object({\n data: FolkListGroupCustomFields_ListGroupCustomFieldsDataSchema.nullable(),\n deprecations: z.array(z.string()).describe(\"Deprecation warnings, if any.\").nullable().optional(),\n});\n\nexport const folkListGroupCustomFields = action(\"FOLK_LIST_GROUP_CUSTOM_FIELDS\", {\n slug: \"folk-list-group-custom-fields\",\n name: \"List Group Custom Fields\",\n description: \"Tool to list custom fields for a specific group and entity type. Use after selecting a group and entity type to inspect available custom fields.\",\n input: FolkListGroupCustomFieldsInput,\n output: FolkListGroupCustomFieldsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiC,EAAE,OAAO;CACrD,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAC5G,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH,CAAC,CAAC,SAAS;CAC3J,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E;CAC7G,aAAa,EAAE,KAAK,CAAC,UAAU,SAAS,CAAC,CAAC,CAAC,SAAS,yEAAyE;AAC/H,CAAC,CAAC,CAAC,SAAS,sEAAsE;AAClF,MAAM,qDAAqD,EAAE,OAAO;CAClE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAC9F,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,wD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("Cursor for pagination across multiple pages. Omit on first call. Use the `pagination.nextLink` value from a previous response for subsequent pages.").optional()
|
|
7
7
|
}).describe("Request parameters for listing workspace groups.");
|
|
8
8
|
const FolkListGroups_GroupItemSchema = zod.z.object({
|
|
9
|
-
id: zod.z.string().describe("Unique identifier of the group."),
|
|
10
|
-
name: zod.z.string().describe("Name of the group.")
|
|
9
|
+
id: zod.z.string().describe("Unique identifier of the group.").nullable(),
|
|
10
|
+
name: zod.z.string().describe("Name of the group.").nullable()
|
|
11
11
|
}).describe("A group object in the workspace.");
|
|
12
12
|
const FolkListGroups_PaginationSchema = zod.z.object({ nextLink: zod.z.string().describe("URL to the next page of results, if available.").nullable().optional() }).describe("Pagination information for list endpoints.");
|
|
13
13
|
const FolkListGroups_ListGroupsDataSchema = zod.z.object({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-groups.cjs","names":["z","action"],"sources":["../../src/actions/list-groups.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FolkListGroupsInput
|
|
1
|
+
{"version":3,"file":"list-groups.cjs","names":["z","action"],"sources":["../../src/actions/list-groups.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const FolkListGroupsInput = z.object({\n limit: z.number().int().default(20).describe(\"The number of items to return. Must be between 1 and 100.\").optional(),\n cursor: z.string().describe(\"Cursor for pagination across multiple pages. Omit on first call. Use the `pagination.nextLink` value from a previous response for subsequent pages.\").optional(),\n}).describe(\"Request parameters for listing workspace groups.\");\nconst FolkListGroups_GroupItemSchema = z.object({\n id: z.string().describe(\"Unique identifier of the group.\").nullable(),\n name: z.string().describe(\"Name of the group.\").nullable(),\n}).describe(\"A group object in the workspace.\");\nconst FolkListGroups_PaginationSchema = z.object({\n nextLink: z.string().describe(\"URL to the next page of results, if available.\").nullable().optional(),\n}).describe(\"Pagination information for list endpoints.\");\nconst FolkListGroups_ListGroupsDataSchema = z.object({\n items: z.array(FolkListGroups_GroupItemSchema).describe(\"List of group objects.\"),\n pagination: FolkListGroups_PaginationSchema.nullable().optional(),\n}).describe(\"The data envelope for list-groups response.\");\nexport const FolkListGroupsOutput = z.object({\n data: FolkListGroups_ListGroupsDataSchema.nullable(),\n deprecations: z.array(z.string()).describe(\"Array of deprecation warnings, if any.\").nullable().optional(),\n}).describe(\"Full response schema for list-groups.\");\n\nexport const folkListGroups = action(\"FOLK_LIST_GROUPS\", {\n slug: \"folk-list-groups\",\n name: \"List Groups\",\n description: \"Tool to list workspace groups. Use when you need to retrieve a paginated list of all workspace groups after authentication.\",\n input: FolkListGroupsInput,\n output: FolkListGroupsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sBAAsBA,IAAAA,EAAE,OAAO;CAC1C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CACnH,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qJAAqJ,CAAC,CAAC,SAAS;AAC9L,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAC9D,MAAM,iCAAiCA,IAAAA,EAAE,OAAO;CAC9C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CACpE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;AAC3D,CAAC,CAAC,CAAC,SAAS,kCAAkC;AAC9C,MAAM,kCAAkCA,IAAAA,EAAE,OAAO,EAC/C,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACtG,CAAC,CAAC,CAAC,SAAS,4CAA4C;AACxD,MAAM,sCAAsCA,IAAAA,EAAE,OAAO;CACnD,OAAOA,IAAAA,EAAE,MAAM,8BAA8B,CAAC,CAAC,SAAS,wBAAwB;CAChF,YAAY,gCAAgC,SAAS,CAAC,CAAC,SAAS;AAClE,CAAC,CAAC,CAAC,SAAS,6CAA6C;AACzD,MAAa,uBAAuBA,IAAAA,EAAE,OAAO;CAC3C,MAAM,oCAAoC,SAAS;CACnD,cAAcA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3G,CAAC,CAAC,CAAC,SAAS,uCAAuC;AAEnD,MAAa,iBAAiBC,eAAAA,OAAO,oBAAoB;CACvD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,26 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-groups.d.ts
|
|
4
|
-
declare const FolkListGroupsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const FolkListGroupsInput: z.ZodObject<{
|
|
5
|
+
limit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
6
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const FolkListGroupsOutput: z.ZodObject<{
|
|
9
|
+
data: z.ZodNullable<z.ZodObject<{
|
|
10
|
+
items: z.ZodArray<z.ZodObject<{
|
|
11
|
+
id: z.ZodNullable<z.ZodString>;
|
|
12
|
+
name: z.ZodNullable<z.ZodString>;
|
|
13
|
+
}, z.core.$strip>>;
|
|
14
|
+
pagination: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
15
|
+
nextLink: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
}, z.core.$strip>>>;
|
|
17
|
+
}, z.core.$strip>>;
|
|
18
|
+
deprecations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
19
|
+
}, z.core.$strip>;
|
|
20
|
+
declare const folkListGroups: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
21
|
+
limit?: number | undefined;
|
|
22
|
+
cursor?: string | undefined;
|
|
23
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
24
|
//#endregion
|
|
8
25
|
export { folkListGroups };
|
|
9
26
|
//# sourceMappingURL=list-groups.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-groups.d.cts","names":[],"sources":["../../src/actions/list-groups.ts"],"mappings":";;;cAIa,mBAAA,
|
|
1
|
+
{"version":3,"file":"list-groups.d.cts","names":[],"sources":["../../src/actions/list-groups.ts"],"mappings":";;;cAIa,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;cAenB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;;;cAKpB,cAAA,gCAAc,wBAAA"}
|