@keystrokehq/plain 0.1.4 → 0.1.6
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/add-customer-to-group.cjs +1 -0
- package/dist/actions/add-customer-to-group.cjs.map +1 -1
- package/dist/actions/add-customer-to-group.d.cts +3 -9
- package/dist/actions/add-customer-to-group.d.cts.map +1 -1
- package/dist/actions/add-customer-to-group.d.mts +3 -9
- package/dist/actions/add-customer-to-group.d.mts.map +1 -1
- package/dist/actions/add-customer-to-group.mjs +1 -0
- package/dist/actions/add-customer-to-group.mjs.map +1 -1
- package/dist/actions/create-customer-group.cjs +1 -0
- package/dist/actions/create-customer-group.cjs.map +1 -1
- package/dist/actions/create-customer-group.d.cts +3 -6
- package/dist/actions/create-customer-group.d.cts.map +1 -1
- package/dist/actions/create-customer-group.d.mts +3 -6
- package/dist/actions/create-customer-group.d.mts.map +1 -1
- package/dist/actions/create-customer-group.mjs +1 -0
- package/dist/actions/create-customer-group.mjs.map +1 -1
- package/dist/actions/create-thread.cjs +1 -0
- package/dist/actions/create-thread.cjs.map +1 -1
- package/dist/actions/create-thread.d.cts +3 -18
- package/dist/actions/create-thread.d.cts.map +1 -1
- package/dist/actions/create-thread.d.mts +3 -18
- package/dist/actions/create-thread.d.mts.map +1 -1
- package/dist/actions/create-thread.mjs +1 -0
- package/dist/actions/create-thread.mjs.map +1 -1
- package/dist/actions/delete-customer.cjs +1 -0
- package/dist/actions/delete-customer.cjs.map +1 -1
- package/dist/actions/delete-customer.d.cts +3 -3
- package/dist/actions/delete-customer.d.cts.map +1 -1
- package/dist/actions/delete-customer.d.mts +3 -3
- package/dist/actions/delete-customer.d.mts.map +1 -1
- package/dist/actions/delete-customer.mjs +1 -0
- package/dist/actions/delete-customer.mjs.map +1 -1
- package/dist/actions/delete-user.cjs +1 -0
- package/dist/actions/delete-user.cjs.map +1 -1
- package/dist/actions/delete-user.d.cts +3 -3
- package/dist/actions/delete-user.d.cts.map +1 -1
- package/dist/actions/delete-user.d.mts +3 -3
- package/dist/actions/delete-user.d.mts.map +1 -1
- package/dist/actions/delete-user.mjs +1 -0
- package/dist/actions/delete-user.mjs.map +1 -1
- package/dist/actions/fetch-company.cjs +1 -0
- package/dist/actions/fetch-company.cjs.map +1 -1
- package/dist/actions/fetch-company.d.cts +3 -3
- package/dist/actions/fetch-company.d.cts.map +1 -1
- package/dist/actions/fetch-company.d.mts +3 -3
- package/dist/actions/fetch-company.d.mts.map +1 -1
- package/dist/actions/fetch-company.mjs +1 -0
- package/dist/actions/fetch-company.mjs.map +1 -1
- package/dist/actions/fetch-issues.cjs +1 -0
- package/dist/actions/fetch-issues.cjs.map +1 -1
- package/dist/actions/fetch-issues.d.cts +3 -5
- package/dist/actions/fetch-issues.d.cts.map +1 -1
- package/dist/actions/fetch-issues.d.mts +3 -5
- package/dist/actions/fetch-issues.d.mts.map +1 -1
- package/dist/actions/fetch-issues.mjs +1 -0
- package/dist/actions/fetch-issues.mjs.map +1 -1
- package/dist/actions/fetch-tier.cjs +1 -0
- package/dist/actions/fetch-tier.cjs.map +1 -1
- package/dist/actions/fetch-tier.d.cts +3 -3
- package/dist/actions/fetch-tier.d.cts.map +1 -1
- package/dist/actions/fetch-tier.d.mts +3 -3
- package/dist/actions/fetch-tier.d.mts.map +1 -1
- package/dist/actions/fetch-tier.mjs +1 -0
- package/dist/actions/fetch-tier.mjs.map +1 -1
- package/dist/actions/get-customer-by-email.cjs +1 -0
- package/dist/actions/get-customer-by-email.cjs.map +1 -1
- package/dist/actions/get-customer-by-email.d.cts +3 -3
- package/dist/actions/get-customer-by-email.d.cts.map +1 -1
- package/dist/actions/get-customer-by-email.d.mts +3 -3
- package/dist/actions/get-customer-by-email.d.mts.map +1 -1
- package/dist/actions/get-customer-by-email.mjs +1 -0
- package/dist/actions/get-customer-by-email.mjs.map +1 -1
- package/dist/actions/get-customer-by-id.cjs +1 -0
- package/dist/actions/get-customer-by-id.cjs.map +1 -1
- package/dist/actions/get-customer-by-id.d.cts +3 -3
- package/dist/actions/get-customer-by-id.d.cts.map +1 -1
- package/dist/actions/get-customer-by-id.d.mts +3 -3
- package/dist/actions/get-customer-by-id.d.mts.map +1 -1
- package/dist/actions/get-customer-by-id.mjs +1 -0
- package/dist/actions/get-customer-by-id.mjs.map +1 -1
- package/dist/actions/get-customers.cjs +1 -0
- package/dist/actions/get-customers.cjs.map +1 -1
- package/dist/actions/get-customers.d.cts +3 -15
- package/dist/actions/get-customers.d.cts.map +1 -1
- package/dist/actions/get-customers.d.mts +3 -15
- package/dist/actions/get-customers.d.mts.map +1 -1
- package/dist/actions/get-customers.mjs +1 -0
- package/dist/actions/get-customers.mjs.map +1 -1
- package/dist/actions/get-thread-by-id.cjs +1 -0
- package/dist/actions/get-thread-by-id.cjs.map +1 -1
- package/dist/actions/get-thread-by-id.d.cts +3 -3
- package/dist/actions/get-thread-by-id.d.cts.map +1 -1
- package/dist/actions/get-thread-by-id.d.mts +3 -3
- package/dist/actions/get-thread-by-id.d.mts.map +1 -1
- package/dist/actions/get-thread-by-id.mjs +1 -0
- package/dist/actions/get-thread-by-id.mjs.map +1 -1
- package/dist/actions/get-user-by-id.cjs +1 -0
- package/dist/actions/get-user-by-id.cjs.map +1 -1
- package/dist/actions/get-user-by-id.d.cts +3 -3
- package/dist/actions/get-user-by-id.d.cts.map +1 -1
- package/dist/actions/get-user-by-id.d.mts +3 -3
- package/dist/actions/get-user-by-id.d.mts.map +1 -1
- package/dist/actions/get-user-by-id.mjs +1 -0
- package/dist/actions/get-user-by-id.mjs.map +1 -1
- package/dist/actions/list-customer-groups.cjs +1 -0
- package/dist/actions/list-customer-groups.cjs.map +1 -1
- package/dist/actions/list-customer-groups.d.cts +3 -9
- package/dist/actions/list-customer-groups.d.cts.map +1 -1
- package/dist/actions/list-customer-groups.d.mts +3 -9
- package/dist/actions/list-customer-groups.d.mts.map +1 -1
- package/dist/actions/list-customer-groups.mjs +1 -0
- package/dist/actions/list-customer-groups.mjs.map +1 -1
- package/dist/actions/list-tiers.cjs +1 -0
- package/dist/actions/list-tiers.cjs.map +1 -1
- package/dist/actions/list-tiers.d.cts +3 -6
- package/dist/actions/list-tiers.d.cts.map +1 -1
- package/dist/actions/list-tiers.d.mts +3 -6
- package/dist/actions/list-tiers.d.mts.map +1 -1
- package/dist/actions/list-tiers.mjs +1 -0
- package/dist/actions/list-tiers.mjs.map +1 -1
- package/dist/actions/query-threads.cjs +1 -0
- package/dist/actions/query-threads.cjs.map +1 -1
- package/dist/actions/query-threads.d.cts +3 -4
- package/dist/actions/query-threads.d.cts.map +1 -1
- package/dist/actions/query-threads.d.mts +3 -4
- package/dist/actions/query-threads.d.mts.map +1 -1
- package/dist/actions/query-threads.mjs +1 -0
- package/dist/actions/query-threads.mjs.map +1 -1
- package/dist/actions/remove-customer-from-group.cjs +1 -0
- package/dist/actions/remove-customer-from-group.cjs.map +1 -1
- package/dist/actions/remove-customer-from-group.d.cts +3 -8
- package/dist/actions/remove-customer-from-group.d.cts.map +1 -1
- package/dist/actions/remove-customer-from-group.d.mts +3 -8
- package/dist/actions/remove-customer-from-group.d.mts.map +1 -1
- package/dist/actions/remove-customer-from-group.mjs +1 -0
- package/dist/actions/remove-customer-from-group.mjs.map +1 -1
- package/dist/actions/run-graphql-query.cjs +1 -0
- package/dist/actions/run-graphql-query.cjs.map +1 -1
- package/dist/actions/run-graphql-query.d.cts +3 -4
- package/dist/actions/run-graphql-query.d.cts.map +1 -1
- package/dist/actions/run-graphql-query.d.mts +3 -4
- package/dist/actions/run-graphql-query.d.mts.map +1 -1
- package/dist/actions/run-graphql-query.mjs +1 -0
- package/dist/actions/run-graphql-query.mjs.map +1 -1
- package/dist/actions/send-message.cjs +1 -0
- package/dist/actions/send-message.cjs.map +1 -1
- package/dist/actions/send-message.d.cts +3 -28
- package/dist/actions/send-message.d.cts.map +1 -1
- package/dist/actions/send-message.d.mts +3 -28
- package/dist/actions/send-message.d.mts.map +1 -1
- package/dist/actions/send-message.mjs +1 -0
- package/dist/actions/send-message.mjs.map +1 -1
- package/dist/actions/update-company.cjs +1 -0
- package/dist/actions/update-company.cjs.map +1 -1
- package/dist/actions/update-company.d.cts +3 -8
- package/dist/actions/update-company.d.cts.map +1 -1
- package/dist/actions/update-company.d.mts +3 -8
- package/dist/actions/update-company.d.mts.map +1 -1
- package/dist/actions/update-company.mjs +1 -0
- package/dist/actions/update-company.mjs.map +1 -1
- package/dist/actions/update-thread.cjs +1 -0
- package/dist/actions/update-thread.cjs.map +1 -1
- package/dist/actions/update-thread.d.cts +3 -4
- package/dist/actions/update-thread.d.cts.map +1 -1
- package/dist/actions/update-thread.d.mts +3 -4
- package/dist/actions/update-thread.d.mts.map +1 -1
- package/dist/actions/update-thread.mjs +1 -0
- package/dist/actions/update-thread.mjs.map +1 -1
- package/dist/actions/upsert-customer.cjs +1 -0
- package/dist/actions/upsert-customer.cjs.map +1 -1
- package/dist/actions/upsert-customer.d.cts +3 -42
- package/dist/actions/upsert-customer.d.cts.map +1 -1
- package/dist/actions/upsert-customer.d.mts +3 -42
- package/dist/actions/upsert-customer.d.mts.map +1 -1
- package/dist/actions/upsert-customer.mjs +1 -0
- package/dist/actions/upsert-customer.mjs.map +1 -1
- package/dist/app.cjs +5 -2
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +7 -1
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +7 -1
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +3 -2
- package/dist/app.mjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-customers.d.cts","names":[],"sources":["../../src/actions/get-customers.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-customers.d.cts","names":[],"sources":["../../src/actions/get-customers.ts"],"mappings":";;;;;cAMa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cA4CtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;cAIvB,iBAAA,EAAmB,SAAA,QACvB,sBAAA,SACA,uBAAA,SACA,KAAA,CAAM,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { plain } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-customers.d.ts
|
|
@@ -45,21 +47,7 @@ declare const PlainGetCustomersOutput: z.ZodObject<{
|
|
|
45
47
|
totalCount: z.ZodNullable<z.ZodNumber>;
|
|
46
48
|
}, z.core.$loose>>;
|
|
47
49
|
}, z.core.$loose>;
|
|
48
|
-
declare const plainGetCustomers:
|
|
49
|
-
last?: number | undefined;
|
|
50
|
-
after?: string | undefined;
|
|
51
|
-
first?: number | undefined;
|
|
52
|
-
before?: string | undefined;
|
|
53
|
-
sortBy?: {
|
|
54
|
-
field: string;
|
|
55
|
-
direction: "ASC" | "DESC";
|
|
56
|
-
} | undefined;
|
|
57
|
-
filters?: {
|
|
58
|
-
isMarkedAsSpam?: boolean | undefined;
|
|
59
|
-
customerGroupIds?: string[] | undefined;
|
|
60
|
-
customerGroupKeys?: string[] | undefined;
|
|
61
|
-
} | undefined;
|
|
62
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
50
|
+
declare const plainGetCustomers: AppAction<typeof PlainGetCustomersInput, typeof PlainGetCustomersOutput, typeof plain.credential>;
|
|
63
51
|
//#endregion
|
|
64
52
|
export { plainGetCustomers };
|
|
65
53
|
//# sourceMappingURL=get-customers.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-customers.d.mts","names":[],"sources":["../../src/actions/get-customers.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-customers.d.mts","names":[],"sources":["../../src/actions/get-customers.ts"],"mappings":";;;;;cAMa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cA4CtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;cAIvB,iBAAA,EAAmB,SAAA,QACvB,sBAAA,SACA,uBAAA,SACA,KAAA,CAAM,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-customers.mjs","names":[],"sources":["../../src/actions/get-customers.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainGetCustomersInput = z.object({\n last: z.number().int().describe(\"Number of customers to fetch before the 'before' cursor. Must be ≥ 1.\").optional(),\n after: z.string().describe(\"Cursor for forward pagination. Use with 'first'.\").optional(),\n first: z.number().int().describe(\"Number of customers to fetch after the 'after' cursor. Must be ≥ 1.\").optional(),\n before: z.string().describe(\"Cursor for backward pagination. Use with 'last'.\").optional(),\n sortBy: z.object({\n field: z.string().describe(\"Which customer field to sort by (e.g., 'FULL_NAME', 'UPDATED_AT').\"),\n direction: z.enum([\"ASC\", \"DESC\"]).describe(\"Sort order: ASC for ascending, DESC for descending.\"),\n}).describe(\"Sorting instructions for the customers list.\").optional(),\n filters: z.object({\n isMarkedAsSpam: z.boolean().describe(\"If set, only returns customers whose spam status matches this flag.\").optional(),\n customerGroupIds: z.array(z.string()).describe(\"Filters customers to those with at least one of the given customer group IDs.\").optional(),\n customerGroupKeys: z.array(z.string()).describe(\"Filters customers to those with at least one of the given customer group keys.\").optional(),\n}).describe(\"Filters to apply when fetching customers.\").optional(),\n}).describe(\"Request parameters for fetching a paginated, filtered, and sorted list of customers.\");\nconst PlainGetCustomers_CustomerEmailSchema = z.object({\n email: z.string().describe(\"Customer's email address.\").nullable(),\n isVerified: z.boolean().describe(\"Whether the email is verified.\").nullable(),\n}).passthrough();\nconst PlainGetCustomers_MarkedAsSpamAtSchema = z.object({\n iso8601: z.string().describe(\"ISO8601 timestamp when the customer was marked as spam.\").nullable(),\n}).passthrough();\nconst PlainGetCustomers_CustomerNodeSchema = z.object({\n id: z.string().nullable(),\n email: PlainGetCustomers_CustomerEmailSchema.nullable(),\n fullName: z.string().nullable(),\n shortName: z.string().nullable().optional(),\n externalId: z.string().nullable().optional(),\n markedAsSpamAt: PlainGetCustomers_MarkedAsSpamAtSchema.nullable().optional(),\n}).passthrough();\nconst PlainGetCustomers_CustomersEdgeSchema = z.object({\n node: PlainGetCustomers_CustomerNodeSchema.nullable(),\n}).passthrough();\nconst PlainGetCustomers_PageInfoSchema = z.object({\n endCursor: z.string().nullable().optional(),\n hasNextPage: z.boolean().nullable(),\n startCursor: z.string().nullable().optional(),\n hasPreviousPage: z.boolean().nullable(),\n}).passthrough();\nconst PlainGetCustomers_CustomersConnectionSchema = z.object({\n edges: z.array(PlainGetCustomers_CustomersEdgeSchema),\n pageInfo: PlainGetCustomers_PageInfoSchema.nullable(),\n totalCount: z.number().int().nullable(),\n}).passthrough();\nexport const PlainGetCustomersOutput = z.object({\n customers: PlainGetCustomers_CustomersConnectionSchema.nullable(),\n}).passthrough();\n\nexport const plainGetCustomers = action(\"PLAIN_GET_CUSTOMERS\", {\n slug: \"plain-get-customers\",\n name: \"Get Customers\",\n description: \"Tool to fetch a list of customers. Use when retrieving multiple customer records with pagination, filtering, or sorting.\",\n input: PlainGetCustomersInput,\n output: PlainGetCustomersOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-customers.mjs","names":[],"sources":["../../src/actions/get-customers.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { plain } from \"../app\";\n\nexport const PlainGetCustomersInput = z.object({\n last: z.number().int().describe(\"Number of customers to fetch before the 'before' cursor. Must be ≥ 1.\").optional(),\n after: z.string().describe(\"Cursor for forward pagination. Use with 'first'.\").optional(),\n first: z.number().int().describe(\"Number of customers to fetch after the 'after' cursor. Must be ≥ 1.\").optional(),\n before: z.string().describe(\"Cursor for backward pagination. Use with 'last'.\").optional(),\n sortBy: z.object({\n field: z.string().describe(\"Which customer field to sort by (e.g., 'FULL_NAME', 'UPDATED_AT').\"),\n direction: z.enum([\"ASC\", \"DESC\"]).describe(\"Sort order: ASC for ascending, DESC for descending.\"),\n}).describe(\"Sorting instructions for the customers list.\").optional(),\n filters: z.object({\n isMarkedAsSpam: z.boolean().describe(\"If set, only returns customers whose spam status matches this flag.\").optional(),\n customerGroupIds: z.array(z.string()).describe(\"Filters customers to those with at least one of the given customer group IDs.\").optional(),\n customerGroupKeys: z.array(z.string()).describe(\"Filters customers to those with at least one of the given customer group keys.\").optional(),\n}).describe(\"Filters to apply when fetching customers.\").optional(),\n}).describe(\"Request parameters for fetching a paginated, filtered, and sorted list of customers.\");\nconst PlainGetCustomers_CustomerEmailSchema = z.object({\n email: z.string().describe(\"Customer's email address.\").nullable(),\n isVerified: z.boolean().describe(\"Whether the email is verified.\").nullable(),\n}).passthrough();\nconst PlainGetCustomers_MarkedAsSpamAtSchema = z.object({\n iso8601: z.string().describe(\"ISO8601 timestamp when the customer was marked as spam.\").nullable(),\n}).passthrough();\nconst PlainGetCustomers_CustomerNodeSchema = z.object({\n id: z.string().nullable(),\n email: PlainGetCustomers_CustomerEmailSchema.nullable(),\n fullName: z.string().nullable(),\n shortName: z.string().nullable().optional(),\n externalId: z.string().nullable().optional(),\n markedAsSpamAt: PlainGetCustomers_MarkedAsSpamAtSchema.nullable().optional(),\n}).passthrough();\nconst PlainGetCustomers_CustomersEdgeSchema = z.object({\n node: PlainGetCustomers_CustomerNodeSchema.nullable(),\n}).passthrough();\nconst PlainGetCustomers_PageInfoSchema = z.object({\n endCursor: z.string().nullable().optional(),\n hasNextPage: z.boolean().nullable(),\n startCursor: z.string().nullable().optional(),\n hasPreviousPage: z.boolean().nullable(),\n}).passthrough();\nconst PlainGetCustomers_CustomersConnectionSchema = z.object({\n edges: z.array(PlainGetCustomers_CustomersEdgeSchema),\n pageInfo: PlainGetCustomers_PageInfoSchema.nullable(),\n totalCount: z.number().int().nullable(),\n}).passthrough();\nexport const PlainGetCustomersOutput = z.object({\n customers: PlainGetCustomers_CustomersConnectionSchema.nullable(),\n}).passthrough();\n\nexport const plainGetCustomers: AppAction<\n typeof PlainGetCustomersInput,\n typeof PlainGetCustomersOutput,\n typeof plain.credential\n> = action(\"PLAIN_GET_CUSTOMERS\", {\n slug: \"plain-get-customers\",\n name: \"Get Customers\",\n description: \"Tool to fetch a list of customers. Use when retrieving multiple customer records with pagination, filtering, or sorting.\",\n input: PlainGetCustomersInput,\n output: PlainGetCustomersOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,yBAAyB,EAAE,OAAO;CAC7C,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;CAClH,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CACxF,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CACjH,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CACzF,QAAQ,EAAE,OAAO;EACjB,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE;EAC/F,WAAW,EAAE,KAAK,CAAC,OAAO,MAAM,CAAC,CAAC,CAAC,SAAS,qDAAqD;CACnG,CAAC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACnE,SAAS,EAAE,OAAO;EAClB,gBAAgB,EAAE,QAAQ,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;EACrH,kBAAkB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;EACzI,mBAAmB,EAAE,MAAM,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D,OAAO,EAAE,MAAM,qCAAqC;CACpD,UAAU,iCAAiC,SAAS;CACpD,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS;AACxC,CAAC,CAAC,CAAC,YAAY;AAKf,MAAa,oBAIT,OAAO,uBAAuB;CAChC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAbqC,EAAE,OAAO,EAC9C,WAAW,4CAA4C,SAAS,EAClE,CAAC,CAAC,CAAC,YAWO;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-thread-by-id.cjs","names":["z","action"],"sources":["../../src/actions/get-thread-by-id.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainGetThreadByIdInput = z.object({\n id: z.string().describe(\"Unique thread identifier in format: prefix_26chars (e.g., th_01ABC...). Use LIST_THREADS or CREATE_THREAD to obtain valid IDs.\"),\n}).describe(\"Request model for fetching a thread by its ID.\");\nconst PlainGetThreadById_LabelTypeSchema = z.object({\n id: z.string().describe(\"Label type unique identifier\").nullable(),\n name: z.string().describe(\"Label type name\").nullable(),\n}).passthrough();\nconst PlainGetThreadById_LabelSchema = z.object({\n id: z.string().describe(\"Label unique identifier\").nullable(),\n labelType: PlainGetThreadById_LabelTypeSchema.nullable(),\n}).passthrough();\nconst PlainGetThreadById_DateTimeSchema = z.object({\n iso8601: z.string().describe(\"ISO8601 timestamp\").nullable(),\n}).passthrough();\nconst PlainGetThreadById_CustomerEmailSchema = z.object({\n email: z.string().describe(\"Email address of the customer\").nullable(),\n isVerified: z.boolean().describe(\"Whether the email is verified\").nullable(),\n verifiedAt: PlainGetThreadById_DateTimeSchema.nullable().optional(),\n}).passthrough();\nconst PlainGetThreadById_CustomerSchema = z.object({\n id: z.string().describe(\"Customer unique identifier\").nullable(),\n email: PlainGetThreadById_CustomerEmailSchema.nullable(),\n status: z.string().describe(\"Customer status\").nullable(),\n fullName: z.string().describe(\"Full name of the customer\").nullable(),\n createdAt: PlainGetThreadById_DateTimeSchema.nullable(),\n shortName: z.string().describe(\"Short/display name of the customer\").nullable().optional(),\n updatedAt: PlainGetThreadById_DateTimeSchema.nullable(),\n externalId: z.string().describe(\"External identifier for the customer\").nullable().optional(),\n}).passthrough();\nconst PlainGetThreadById_UserSchema = z.object({\n id: z.string().describe(\"User unique identifier\").nullable(),\n email: z.string().describe(\"Email address of the user\").nullable().optional(),\n fullName: z.string().describe(\"Full name of the user\").nullable().optional(),\n}).passthrough();\nconst PlainGetThreadById_ThreadSchema = z.object({\n id: z.string().describe(\"Thread unique identifier\").nullable(),\n ref: z.string().describe(\"Human-readable thread reference\").nullable(),\n title: z.string().describe(\"Title of the thread\").nullable().optional(),\n labels: z.array(PlainGetThreadById_LabelSchema).describe(\"Labels assigned to the thread\").nullable().optional(),\n status: z.string().describe(\"Current status of the thread\").nullable(),\n customer: PlainGetThreadById_CustomerSchema.nullable(),\n priority: z.number().int().describe(\"Priority level of the thread\").nullable(),\n createdAt: PlainGetThreadById_DateTimeSchema.nullable(),\n updatedAt: PlainGetThreadById_DateTimeSchema.nullable(),\n assignedAt: PlainGetThreadById_DateTimeSchema.nullable().optional(),\n assignedTo: PlainGetThreadById_UserSchema.nullable().optional(),\n externalId: z.string().describe(\"External identifier for the thread\").nullable().optional(),\n previewText: z.string().describe(\"Preview text of the thread\").nullable().optional(),\n statusChangedAt: PlainGetThreadById_DateTimeSchema.nullable(),\n}).passthrough();\nconst PlainGetThreadById_GetThreadByIdDataSchema = z.object({\n thread: PlainGetThreadById_ThreadSchema.nullable().optional(),\n}).passthrough();\nexport const PlainGetThreadByIdOutput = z.object({\n data: PlainGetThreadById_GetThreadByIdDataSchema.nullable(),\n}).passthrough().describe(\"Response model for fetching a thread by ID.\");\n\nexport const plainGetThreadById = action(\"PLAIN_GET_THREAD_BY_ID\", {\n slug: \"plain-get-thread-by-id\",\n name: \"Get Thread By ID\",\n description: \"Fetches comprehensive details of a specific thread by ID, including customer info, status, priority, labels, and assignments. Returns null if thread not found.\",\n input: PlainGetThreadByIdInput,\n output: PlainGetThreadByIdOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-thread-by-id.cjs","names":["z","action"],"sources":["../../src/actions/get-thread-by-id.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { plain } from \"../app\";\n\nexport const PlainGetThreadByIdInput = z.object({\n id: z.string().describe(\"Unique thread identifier in format: prefix_26chars (e.g., th_01ABC...). Use LIST_THREADS or CREATE_THREAD to obtain valid IDs.\"),\n}).describe(\"Request model for fetching a thread by its ID.\");\nconst PlainGetThreadById_LabelTypeSchema = z.object({\n id: z.string().describe(\"Label type unique identifier\").nullable(),\n name: z.string().describe(\"Label type name\").nullable(),\n}).passthrough();\nconst PlainGetThreadById_LabelSchema = z.object({\n id: z.string().describe(\"Label unique identifier\").nullable(),\n labelType: PlainGetThreadById_LabelTypeSchema.nullable(),\n}).passthrough();\nconst PlainGetThreadById_DateTimeSchema = z.object({\n iso8601: z.string().describe(\"ISO8601 timestamp\").nullable(),\n}).passthrough();\nconst PlainGetThreadById_CustomerEmailSchema = z.object({\n email: z.string().describe(\"Email address of the customer\").nullable(),\n isVerified: z.boolean().describe(\"Whether the email is verified\").nullable(),\n verifiedAt: PlainGetThreadById_DateTimeSchema.nullable().optional(),\n}).passthrough();\nconst PlainGetThreadById_CustomerSchema = z.object({\n id: z.string().describe(\"Customer unique identifier\").nullable(),\n email: PlainGetThreadById_CustomerEmailSchema.nullable(),\n status: z.string().describe(\"Customer status\").nullable(),\n fullName: z.string().describe(\"Full name of the customer\").nullable(),\n createdAt: PlainGetThreadById_DateTimeSchema.nullable(),\n shortName: z.string().describe(\"Short/display name of the customer\").nullable().optional(),\n updatedAt: PlainGetThreadById_DateTimeSchema.nullable(),\n externalId: z.string().describe(\"External identifier for the customer\").nullable().optional(),\n}).passthrough();\nconst PlainGetThreadById_UserSchema = z.object({\n id: z.string().describe(\"User unique identifier\").nullable(),\n email: z.string().describe(\"Email address of the user\").nullable().optional(),\n fullName: z.string().describe(\"Full name of the user\").nullable().optional(),\n}).passthrough();\nconst PlainGetThreadById_ThreadSchema = z.object({\n id: z.string().describe(\"Thread unique identifier\").nullable(),\n ref: z.string().describe(\"Human-readable thread reference\").nullable(),\n title: z.string().describe(\"Title of the thread\").nullable().optional(),\n labels: z.array(PlainGetThreadById_LabelSchema).describe(\"Labels assigned to the thread\").nullable().optional(),\n status: z.string().describe(\"Current status of the thread\").nullable(),\n customer: PlainGetThreadById_CustomerSchema.nullable(),\n priority: z.number().int().describe(\"Priority level of the thread\").nullable(),\n createdAt: PlainGetThreadById_DateTimeSchema.nullable(),\n updatedAt: PlainGetThreadById_DateTimeSchema.nullable(),\n assignedAt: PlainGetThreadById_DateTimeSchema.nullable().optional(),\n assignedTo: PlainGetThreadById_UserSchema.nullable().optional(),\n externalId: z.string().describe(\"External identifier for the thread\").nullable().optional(),\n previewText: z.string().describe(\"Preview text of the thread\").nullable().optional(),\n statusChangedAt: PlainGetThreadById_DateTimeSchema.nullable(),\n}).passthrough();\nconst PlainGetThreadById_GetThreadByIdDataSchema = z.object({\n thread: PlainGetThreadById_ThreadSchema.nullable().optional(),\n}).passthrough();\nexport const PlainGetThreadByIdOutput = z.object({\n data: PlainGetThreadById_GetThreadByIdDataSchema.nullable(),\n}).passthrough().describe(\"Response model for fetching a thread by ID.\");\n\nexport const plainGetThreadById: AppAction<\n typeof PlainGetThreadByIdInput,\n typeof PlainGetThreadByIdOutput,\n typeof plain.credential\n> = action(\"PLAIN_GET_THREAD_BY_ID\", {\n slug: \"plain-get-thread-by-id\",\n name: \"Get Thread By ID\",\n description: \"Fetches comprehensive details of a specific thread by ID, including customer info, status, priority, labels, and assignments. Returns null if thread not found.\",\n input: PlainGetThreadByIdInput,\n output: PlainGetThreadByIdOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,0BAA0BA,IAAAA,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AS;CACtD,WAAW,kCAAkC,SAAS;CACtD,YAAY,kCAAkC,SAAS,CAAC,CAAC,SAAS;CAClE,YAAY,8BAA8B,SAAS,CAAC,CAAC,SAAS;CAC9D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,iBAAiB,kCAAkC,SAAS;AAC9D,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,6CAA6CA,IAAAA,EAAE,OAAO,EAC1D,QAAQ,gCAAgC,SAAS,CAAC,CAAC,SAAS,EAC9D,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,2BAA2BA,IAAAA,EAAE,OAAO,EAC/C,MAAM,2CAA2C,SAAS,EAC5D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AAEvE,MAAa,qBAITC,eAAAA,OAAO,0BAA0B;CACnC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { plain } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-thread-by-id.d.ts
|
|
@@ -61,9 +63,7 @@ declare const PlainGetThreadByIdOutput: z.ZodObject<{
|
|
|
61
63
|
}, z.core.$loose>>>;
|
|
62
64
|
}, z.core.$loose>>;
|
|
63
65
|
}, z.core.$loose>;
|
|
64
|
-
declare const plainGetThreadById:
|
|
65
|
-
id: string;
|
|
66
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
66
|
+
declare const plainGetThreadById: AppAction<typeof PlainGetThreadByIdInput, typeof PlainGetThreadByIdOutput, typeof plain.credential>;
|
|
67
67
|
//#endregion
|
|
68
68
|
export { plainGetThreadById };
|
|
69
69
|
//# sourceMappingURL=get-thread-by-id.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-thread-by-id.d.cts","names":[],"sources":["../../src/actions/get-thread-by-id.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-thread-by-id.d.cts","names":[],"sources":["../../src/actions/get-thread-by-id.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;cAqDvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAIxB,kBAAA,EAAoB,SAAA,QACxB,uBAAA,SACA,wBAAA,SACA,KAAA,CAAM,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { plain } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-thread-by-id.d.ts
|
|
@@ -61,9 +63,7 @@ declare const PlainGetThreadByIdOutput: z.ZodObject<{
|
|
|
61
63
|
}, z.core.$loose>>>;
|
|
62
64
|
}, z.core.$loose>>;
|
|
63
65
|
}, z.core.$loose>;
|
|
64
|
-
declare const plainGetThreadById:
|
|
65
|
-
id: string;
|
|
66
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
66
|
+
declare const plainGetThreadById: AppAction<typeof PlainGetThreadByIdInput, typeof PlainGetThreadByIdOutput, typeof plain.credential>;
|
|
67
67
|
//#endregion
|
|
68
68
|
export { plainGetThreadById };
|
|
69
69
|
//# sourceMappingURL=get-thread-by-id.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-thread-by-id.d.mts","names":[],"sources":["../../src/actions/get-thread-by-id.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-thread-by-id.d.mts","names":[],"sources":["../../src/actions/get-thread-by-id.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;cAqDvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAIxB,kBAAA,EAAoB,SAAA,QACxB,uBAAA,SACA,wBAAA,SACA,KAAA,CAAM,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-thread-by-id.mjs","names":[],"sources":["../../src/actions/get-thread-by-id.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainGetThreadByIdInput = z.object({\n id: z.string().describe(\"Unique thread identifier in format: prefix_26chars (e.g., th_01ABC...). Use LIST_THREADS or CREATE_THREAD to obtain valid IDs.\"),\n}).describe(\"Request model for fetching a thread by its ID.\");\nconst PlainGetThreadById_LabelTypeSchema = z.object({\n id: z.string().describe(\"Label type unique identifier\").nullable(),\n name: z.string().describe(\"Label type name\").nullable(),\n}).passthrough();\nconst PlainGetThreadById_LabelSchema = z.object({\n id: z.string().describe(\"Label unique identifier\").nullable(),\n labelType: PlainGetThreadById_LabelTypeSchema.nullable(),\n}).passthrough();\nconst PlainGetThreadById_DateTimeSchema = z.object({\n iso8601: z.string().describe(\"ISO8601 timestamp\").nullable(),\n}).passthrough();\nconst PlainGetThreadById_CustomerEmailSchema = z.object({\n email: z.string().describe(\"Email address of the customer\").nullable(),\n isVerified: z.boolean().describe(\"Whether the email is verified\").nullable(),\n verifiedAt: PlainGetThreadById_DateTimeSchema.nullable().optional(),\n}).passthrough();\nconst PlainGetThreadById_CustomerSchema = z.object({\n id: z.string().describe(\"Customer unique identifier\").nullable(),\n email: PlainGetThreadById_CustomerEmailSchema.nullable(),\n status: z.string().describe(\"Customer status\").nullable(),\n fullName: z.string().describe(\"Full name of the customer\").nullable(),\n createdAt: PlainGetThreadById_DateTimeSchema.nullable(),\n shortName: z.string().describe(\"Short/display name of the customer\").nullable().optional(),\n updatedAt: PlainGetThreadById_DateTimeSchema.nullable(),\n externalId: z.string().describe(\"External identifier for the customer\").nullable().optional(),\n}).passthrough();\nconst PlainGetThreadById_UserSchema = z.object({\n id: z.string().describe(\"User unique identifier\").nullable(),\n email: z.string().describe(\"Email address of the user\").nullable().optional(),\n fullName: z.string().describe(\"Full name of the user\").nullable().optional(),\n}).passthrough();\nconst PlainGetThreadById_ThreadSchema = z.object({\n id: z.string().describe(\"Thread unique identifier\").nullable(),\n ref: z.string().describe(\"Human-readable thread reference\").nullable(),\n title: z.string().describe(\"Title of the thread\").nullable().optional(),\n labels: z.array(PlainGetThreadById_LabelSchema).describe(\"Labels assigned to the thread\").nullable().optional(),\n status: z.string().describe(\"Current status of the thread\").nullable(),\n customer: PlainGetThreadById_CustomerSchema.nullable(),\n priority: z.number().int().describe(\"Priority level of the thread\").nullable(),\n createdAt: PlainGetThreadById_DateTimeSchema.nullable(),\n updatedAt: PlainGetThreadById_DateTimeSchema.nullable(),\n assignedAt: PlainGetThreadById_DateTimeSchema.nullable().optional(),\n assignedTo: PlainGetThreadById_UserSchema.nullable().optional(),\n externalId: z.string().describe(\"External identifier for the thread\").nullable().optional(),\n previewText: z.string().describe(\"Preview text of the thread\").nullable().optional(),\n statusChangedAt: PlainGetThreadById_DateTimeSchema.nullable(),\n}).passthrough();\nconst PlainGetThreadById_GetThreadByIdDataSchema = z.object({\n thread: PlainGetThreadById_ThreadSchema.nullable().optional(),\n}).passthrough();\nexport const PlainGetThreadByIdOutput = z.object({\n data: PlainGetThreadById_GetThreadByIdDataSchema.nullable(),\n}).passthrough().describe(\"Response model for fetching a thread by ID.\");\n\nexport const plainGetThreadById = action(\"PLAIN_GET_THREAD_BY_ID\", {\n slug: \"plain-get-thread-by-id\",\n name: \"Get Thread By ID\",\n description: \"Fetches comprehensive details of a specific thread by ID, including customer info, status, priority, labels, and assignments. Returns null if thread not found.\",\n input: PlainGetThreadByIdInput,\n output: PlainGetThreadByIdOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-thread-by-id.mjs","names":[],"sources":["../../src/actions/get-thread-by-id.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { plain } from \"../app\";\n\nexport const PlainGetThreadByIdInput = z.object({\n id: z.string().describe(\"Unique thread identifier in format: prefix_26chars (e.g., th_01ABC...). Use LIST_THREADS or CREATE_THREAD to obtain valid IDs.\"),\n}).describe(\"Request model for fetching a thread by its ID.\");\nconst PlainGetThreadById_LabelTypeSchema = z.object({\n id: z.string().describe(\"Label type unique identifier\").nullable(),\n name: z.string().describe(\"Label type name\").nullable(),\n}).passthrough();\nconst PlainGetThreadById_LabelSchema = z.object({\n id: z.string().describe(\"Label unique identifier\").nullable(),\n labelType: PlainGetThreadById_LabelTypeSchema.nullable(),\n}).passthrough();\nconst PlainGetThreadById_DateTimeSchema = z.object({\n iso8601: z.string().describe(\"ISO8601 timestamp\").nullable(),\n}).passthrough();\nconst PlainGetThreadById_CustomerEmailSchema = z.object({\n email: z.string().describe(\"Email address of the customer\").nullable(),\n isVerified: z.boolean().describe(\"Whether the email is verified\").nullable(),\n verifiedAt: PlainGetThreadById_DateTimeSchema.nullable().optional(),\n}).passthrough();\nconst PlainGetThreadById_CustomerSchema = z.object({\n id: z.string().describe(\"Customer unique identifier\").nullable(),\n email: PlainGetThreadById_CustomerEmailSchema.nullable(),\n status: z.string().describe(\"Customer status\").nullable(),\n fullName: z.string().describe(\"Full name of the customer\").nullable(),\n createdAt: PlainGetThreadById_DateTimeSchema.nullable(),\n shortName: z.string().describe(\"Short/display name of the customer\").nullable().optional(),\n updatedAt: PlainGetThreadById_DateTimeSchema.nullable(),\n externalId: z.string().describe(\"External identifier for the customer\").nullable().optional(),\n}).passthrough();\nconst PlainGetThreadById_UserSchema = z.object({\n id: z.string().describe(\"User unique identifier\").nullable(),\n email: z.string().describe(\"Email address of the user\").nullable().optional(),\n fullName: z.string().describe(\"Full name of the user\").nullable().optional(),\n}).passthrough();\nconst PlainGetThreadById_ThreadSchema = z.object({\n id: z.string().describe(\"Thread unique identifier\").nullable(),\n ref: z.string().describe(\"Human-readable thread reference\").nullable(),\n title: z.string().describe(\"Title of the thread\").nullable().optional(),\n labels: z.array(PlainGetThreadById_LabelSchema).describe(\"Labels assigned to the thread\").nullable().optional(),\n status: z.string().describe(\"Current status of the thread\").nullable(),\n customer: PlainGetThreadById_CustomerSchema.nullable(),\n priority: z.number().int().describe(\"Priority level of the thread\").nullable(),\n createdAt: PlainGetThreadById_DateTimeSchema.nullable(),\n updatedAt: PlainGetThreadById_DateTimeSchema.nullable(),\n assignedAt: PlainGetThreadById_DateTimeSchema.nullable().optional(),\n assignedTo: PlainGetThreadById_UserSchema.nullable().optional(),\n externalId: z.string().describe(\"External identifier for the thread\").nullable().optional(),\n previewText: z.string().describe(\"Preview text of the thread\").nullable().optional(),\n statusChangedAt: PlainGetThreadById_DateTimeSchema.nullable(),\n}).passthrough();\nconst PlainGetThreadById_GetThreadByIdDataSchema = z.object({\n thread: PlainGetThreadById_ThreadSchema.nullable().optional(),\n}).passthrough();\nexport const PlainGetThreadByIdOutput = z.object({\n data: PlainGetThreadById_GetThreadByIdDataSchema.nullable(),\n}).passthrough().describe(\"Response model for fetching a thread by ID.\");\n\nexport const plainGetThreadById: AppAction<\n typeof PlainGetThreadByIdInput,\n typeof PlainGetThreadByIdOutput,\n typeof plain.credential\n> = action(\"PLAIN_GET_THREAD_BY_ID\", {\n slug: \"plain-get-thread-by-id\",\n name: \"Get Thread By ID\",\n description: \"Fetches comprehensive details of a specific thread by ID, including customer info, status, priority, labels, and assignments. Returns null if thread not found.\",\n input: PlainGetThreadByIdInput,\n output: Pl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,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,iBAAiB,kCAAkC,SAAS;AAC9D,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,6CAA6C,EAAE,OAAO,EAC1D,QAAQ,gCAAgC,SAAS,CAAC,CAAC,SAAS,EAC9D,CAAC,CAAC,CAAC,YAAY;AAKf,MAAa,qBAIT,OAAO,0BAA0B;CACnC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAbsC,EAAE,OAAO,EAC/C,MAAM,2CAA2C,SAAS,EAC5D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-user-by-id.cjs","names":["z","action"],"sources":["../../src/actions/get-user-by-id.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainGetUserByIdInput = z.object({\n user_id: z.string().describe(\"Unique identifier of the workspace user/team member to fetch (format: u_XXXXXX)\"),\n}).describe(\"Request input for fetching a user by their unique identifier.\");\nconst PlainGetUserById_StatusChangedAtSchema = z.object({\n iso8601: z.string().describe(\"Timestamp when the user's status last changed in ISO 8601 format\").nullable(),\n}).passthrough();\nconst PlainGetUserById_UserSchema = 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 status: z.string().describe(\"Current status of the user\").nullable(),\n fullName: z.string().describe(\"Full name of the user\").nullable(),\n avatarUrl: z.string().describe(\"Avatar URL of the user, if available\").nullable().optional(),\n publicName: z.string().describe(\"Display name or short name of the user\").nullable(),\n statusChangedAt: PlainGetUserById_StatusChangedAtSchema.nullable(),\n}).passthrough().describe(\"User details returned by the getUser query.\");\nconst PlainGetUserById_GetUserByIdDataSchema = z.object({\n user: PlainGetUserById_UserSchema.nullable().optional(),\n}).passthrough();\nexport const PlainGetUserByIdOutput = z.object({\n data: PlainGetUserById_GetUserByIdDataSchema.nullable(),\n}).passthrough().describe(\"Response output containing user details from Plain.\");\n\nexport const plainGetUserById = action(\"PLAIN_GET_USER_BY_ID\", {\n slug: \"plain-get-user-by-id\",\n name: \"Get User By ID\",\n description: \"Fetch workspace user/team member by ID. Returns detailed information about a workspace team member including their name, email, status, and avatar. Note: This fetches workspace users (team members), not customers. Use GET_CUSTOMER_BY_ID for customer data.\",\n input: PlainGetUserByIdInput,\n output: PlainGetUserByIdOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-user-by-id.cjs","names":["z","action"],"sources":["../../src/actions/get-user-by-id.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { plain } from \"../app\";\n\nexport const PlainGetUserByIdInput = z.object({\n user_id: z.string().describe(\"Unique identifier of the workspace user/team member to fetch (format: u_XXXXXX)\"),\n}).describe(\"Request input for fetching a user by their unique identifier.\");\nconst PlainGetUserById_StatusChangedAtSchema = z.object({\n iso8601: z.string().describe(\"Timestamp when the user's status last changed in ISO 8601 format\").nullable(),\n}).passthrough();\nconst PlainGetUserById_UserSchema = 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 status: z.string().describe(\"Current status of the user\").nullable(),\n fullName: z.string().describe(\"Full name of the user\").nullable(),\n avatarUrl: z.string().describe(\"Avatar URL of the user, if available\").nullable().optional(),\n publicName: z.string().describe(\"Display name or short name of the user\").nullable(),\n statusChangedAt: PlainGetUserById_StatusChangedAtSchema.nullable(),\n}).passthrough().describe(\"User details returned by the getUser query.\");\nconst PlainGetUserById_GetUserByIdDataSchema = z.object({\n user: PlainGetUserById_UserSchema.nullable().optional(),\n}).passthrough();\nexport const PlainGetUserByIdOutput = z.object({\n data: PlainGetUserById_GetUserByIdDataSchema.nullable(),\n}).passthrough().describe(\"Response output containing user details from Plain.\");\n\nexport const plainGetUserById: AppAction<\n typeof PlainGetUserByIdInput,\n typeof PlainGetUserByIdOutput,\n typeof plain.credential\n> = action(\"PLAIN_GET_USER_BY_ID\", {\n slug: \"plain-get-user-by-id\",\n name: \"Get User By ID\",\n description: \"Fetch workspace user/team member by ID. Returns detailed information about a workspace team member including their name, email, status, and avatar. Note: This fetches workspace users (team members), not customers. Use GET_CUSTOMER_BY_ID for customer data.\",\n input: PlainGetUserByIdInput,\n output: PlainGetUserByIdOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,wBAAwBA,IAAAA,EAAE,OAAO,EAC5C,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,EAChH,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAM,yCAAyCA,IAAAA,EAAE,OAAO,EACtD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,EAC5G,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,8BAA8BA,IAAAA,EAAE,OAAO;CAC3C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAClE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACjE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACnE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAChE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACnF,iBAAiB,uCAAuC,SAAS;AACnE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AACvE,MAAM,yCAAyCA,IAAAA,EAAE,OAAO,EACtD,MAAM,4BAA4B,SAAS,CAAC,CAAC,SAAS,EACxD,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,yBAAyBA,IAAAA,EAAE,OAAO,EAC7C,MAAM,uCAAuC,SAAS,EACxD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAAqD;AAE/E,MAAa,mBAITC,eAAAA,OAAO,wBAAwB;CACjC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { plain } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-user-by-id.d.ts
|
|
@@ -19,9 +21,7 @@ declare const PlainGetUserByIdOutput: z.ZodObject<{
|
|
|
19
21
|
}, z.core.$loose>>>;
|
|
20
22
|
}, z.core.$loose>>;
|
|
21
23
|
}, z.core.$loose>;
|
|
22
|
-
declare const plainGetUserById:
|
|
23
|
-
user_id: string;
|
|
24
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
24
|
+
declare const plainGetUserById: AppAction<typeof PlainGetUserByIdInput, typeof PlainGetUserByIdOutput, typeof plain.credential>;
|
|
25
25
|
//#endregion
|
|
26
26
|
export { plainGetUserById };
|
|
27
27
|
//# sourceMappingURL=get-user-by-id.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-user-by-id.d.cts","names":[],"sources":["../../src/actions/get-user-by-id.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-user-by-id.d.cts","names":[],"sources":["../../src/actions/get-user-by-id.ts"],"mappings":";;;;;cAMa,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;cAkBrB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAItB,gBAAA,EAAkB,SAAA,QACtB,qBAAA,SACA,sBAAA,SACA,KAAA,CAAM,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { plain } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-user-by-id.d.ts
|
|
@@ -19,9 +21,7 @@ declare const PlainGetUserByIdOutput: z.ZodObject<{
|
|
|
19
21
|
}, z.core.$loose>>>;
|
|
20
22
|
}, z.core.$loose>>;
|
|
21
23
|
}, z.core.$loose>;
|
|
22
|
-
declare const plainGetUserById:
|
|
23
|
-
user_id: string;
|
|
24
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
24
|
+
declare const plainGetUserById: AppAction<typeof PlainGetUserByIdInput, typeof PlainGetUserByIdOutput, typeof plain.credential>;
|
|
25
25
|
//#endregion
|
|
26
26
|
export { plainGetUserById };
|
|
27
27
|
//# sourceMappingURL=get-user-by-id.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-user-by-id.d.mts","names":[],"sources":["../../src/actions/get-user-by-id.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-user-by-id.d.mts","names":[],"sources":["../../src/actions/get-user-by-id.ts"],"mappings":";;;;;cAMa,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;cAkBrB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAItB,gBAAA,EAAkB,SAAA,QACtB,qBAAA,SACA,sBAAA,SACA,KAAA,CAAM,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-user-by-id.mjs","names":[],"sources":["../../src/actions/get-user-by-id.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainGetUserByIdInput = z.object({\n user_id: z.string().describe(\"Unique identifier of the workspace user/team member to fetch (format: u_XXXXXX)\"),\n}).describe(\"Request input for fetching a user by their unique identifier.\");\nconst PlainGetUserById_StatusChangedAtSchema = z.object({\n iso8601: z.string().describe(\"Timestamp when the user's status last changed in ISO 8601 format\").nullable(),\n}).passthrough();\nconst PlainGetUserById_UserSchema = 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 status: z.string().describe(\"Current status of the user\").nullable(),\n fullName: z.string().describe(\"Full name of the user\").nullable(),\n avatarUrl: z.string().describe(\"Avatar URL of the user, if available\").nullable().optional(),\n publicName: z.string().describe(\"Display name or short name of the user\").nullable(),\n statusChangedAt: PlainGetUserById_StatusChangedAtSchema.nullable(),\n}).passthrough().describe(\"User details returned by the getUser query.\");\nconst PlainGetUserById_GetUserByIdDataSchema = z.object({\n user: PlainGetUserById_UserSchema.nullable().optional(),\n}).passthrough();\nexport const PlainGetUserByIdOutput = z.object({\n data: PlainGetUserById_GetUserByIdDataSchema.nullable(),\n}).passthrough().describe(\"Response output containing user details from Plain.\");\n\nexport const plainGetUserById = action(\"PLAIN_GET_USER_BY_ID\", {\n slug: \"plain-get-user-by-id\",\n name: \"Get User By ID\",\n description: \"Fetch workspace user/team member by ID. Returns detailed information about a workspace team member including their name, email, status, and avatar. Note: This fetches workspace users (team members), not customers. Use GET_CUSTOMER_BY_ID for customer data.\",\n input: PlainGetUserByIdInput,\n output: PlainGetUserByIdOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-user-by-id.mjs","names":[],"sources":["../../src/actions/get-user-by-id.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { plain } from \"../app\";\n\nexport const PlainGetUserByIdInput = z.object({\n user_id: z.string().describe(\"Unique identifier of the workspace user/team member to fetch (format: u_XXXXXX)\"),\n}).describe(\"Request input for fetching a user by their unique identifier.\");\nconst PlainGetUserById_StatusChangedAtSchema = z.object({\n iso8601: z.string().describe(\"Timestamp when the user's status last changed in ISO 8601 format\").nullable(),\n}).passthrough();\nconst PlainGetUserById_UserSchema = 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 status: z.string().describe(\"Current status of the user\").nullable(),\n fullName: z.string().describe(\"Full name of the user\").nullable(),\n avatarUrl: z.string().describe(\"Avatar URL of the user, if available\").nullable().optional(),\n publicName: z.string().describe(\"Display name or short name of the user\").nullable(),\n statusChangedAt: PlainGetUserById_StatusChangedAtSchema.nullable(),\n}).passthrough().describe(\"User details returned by the getUser query.\");\nconst PlainGetUserById_GetUserByIdDataSchema = z.object({\n user: PlainGetUserById_UserSchema.nullable().optional(),\n}).passthrough();\nexport const PlainGetUserByIdOutput = z.object({\n data: PlainGetUserById_GetUserByIdDataSchema.nullable(),\n}).passthrough().describe(\"Response output containing user details from Plain.\");\n\nexport const plainGetUserById: AppAction<\n typeof PlainGetUserByIdInput,\n typeof PlainGetUserByIdOutput,\n typeof plain.credential\n> = action(\"PLAIN_GET_USER_BY_ID\", {\n slug: \"plain-get-user-by-id\",\n name: \"Get User By ID\",\n description: \"Fetch workspace user/team member by ID. Returns detailed information about a workspace team member including their name, email, status, and avatar. Note: This fetches workspace users (team members), not customers. Use GET_CUSTOMER_BY_ID for customer data.\",\n input: PlainGetUserByIdInput,\n output: PlainGetUserByIdOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,wBAAwB,EAAE,OAAO,EAC5C,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,EAChH,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAM,yCAAyC,EAAE,OAAO,EACtD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,EAC5G,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,8BAA8B,EAAE,OAAO;CAC3C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAClE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACjE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACnE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAChE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACnF,iBAAiB,uCAAuC,SAAS;AACnE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AACvE,MAAM,yCAAyC,EAAE,OAAO,EACtD,MAAM,4BAA4B,SAAS,CAAC,CAAC,SAAS,EACxD,CAAC,CAAC,CAAC,YAAY;AAKf,MAAa,mBAIT,OAAO,wBAAwB;CACjC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAboC,EAAE,OAAO,EAC7C,MAAM,uCAAuC,SAAS,EACxD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-customer-groups.cjs","names":["z","action"],"sources":["../../src/actions/list-customer-groups.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainListCustomerGroupsInput = z.object({\n last: z.number().int().describe(\"Number of groups to fetch before the 'before' cursor. Must be ≥ 1.\").optional(),\n after: z.string().describe(\"Cursor for forward pagination. Use with 'first'.\").optional(),\n first: z.number().int().describe(\"Number of groups to fetch after the 'after' cursor. Must be ≥ 1.\").optional(),\n before: z.string().describe(\"Cursor for backward pagination. Use with 'last'.\").optional(),\n filters: z.object({\n externalIds: z.array(z.string()).describe(\"Only returns groups with these external IDs.\").optional(),\n}).describe(\"Filters to apply when fetching customer groups.\").optional(),\n}).describe(\"Request parameters for listing customer groups.\");\nconst PlainListCustomerGroups_CustomerGroupNodeSchema = z.object({\n id: z.string().describe(\"Unique identifier of the customer group.\").nullable(),\n key: z.string().describe(\"Key of the customer group.\").nullable(),\n name: z.string().describe(\"Name of the customer group.\").nullable(),\n color: z.string().describe(\"Hex color code assigned to the group.\").nullable(),\n createdAt: z.string().describe(\"ISO8601 timestamp when the group was created.\").nullable(),\n updatedAt: z.string().describe(\"ISO8601 timestamp when the group was last updated.\").nullable(),\n externalId: z.string().describe(\"External ID of the group.\").nullable().optional(),\n}).passthrough();\nconst PlainListCustomerGroups_CustomerGroupEdgeSchema = z.object({\n node: PlainListCustomerGroups_CustomerGroupNodeSchema.nullable(),\n cursor: z.string().describe(\"Cursor for pagination.\").nullable(),\n}).passthrough();\nconst PlainListCustomerGroups_PageInfoSchema = z.object({\n endCursor: z.string().nullable().optional(),\n hasNextPage: z.boolean().nullable(),\n startCursor: z.string().nullable().optional(),\n hasPreviousPage: z.boolean().nullable(),\n}).passthrough();\nconst PlainListCustomerGroups_CustomerGroupsConnectionSchema = z.object({\n edges: z.array(PlainListCustomerGroups_CustomerGroupEdgeSchema),\n pageInfo: PlainListCustomerGroups_PageInfoSchema.nullable(),\n}).passthrough();\nexport const PlainListCustomerGroupsOutput = z.object({\n customerGroups: PlainListCustomerGroups_CustomerGroupsConnectionSchema.nullable(),\n}).passthrough();\n\nexport const plainListCustomerGroups = action(\"PLAIN_LIST_CUSTOMER_GROUPS\", {\n slug: \"plain-list-customer-groups\",\n name: \"List Customer Groups\",\n description: \"Tool to list all customer groups. Use when you need to retrieve group metadata with optional pagination or filters.\",\n input: PlainListCustomerGroupsInput,\n output: PlainListCustomerGroupsOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-customer-groups.cjs","names":["z","action"],"sources":["../../src/actions/list-customer-groups.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { plain } from \"../app\";\n\nexport const PlainListCustomerGroupsInput = z.object({\n last: z.number().int().describe(\"Number of groups to fetch before the 'before' cursor. Must be ≥ 1.\").optional(),\n after: z.string().describe(\"Cursor for forward pagination. Use with 'first'.\").optional(),\n first: z.number().int().describe(\"Number of groups to fetch after the 'after' cursor. Must be ≥ 1.\").optional(),\n before: z.string().describe(\"Cursor for backward pagination. Use with 'last'.\").optional(),\n filters: z.object({\n externalIds: z.array(z.string()).describe(\"Only returns groups with these external IDs.\").optional(),\n}).describe(\"Filters to apply when fetching customer groups.\").optional(),\n}).describe(\"Request parameters for listing customer groups.\");\nconst PlainListCustomerGroups_CustomerGroupNodeSchema = z.object({\n id: z.string().describe(\"Unique identifier of the customer group.\").nullable(),\n key: z.string().describe(\"Key of the customer group.\").nullable(),\n name: z.string().describe(\"Name of the customer group.\").nullable(),\n color: z.string().describe(\"Hex color code assigned to the group.\").nullable(),\n createdAt: z.string().describe(\"ISO8601 timestamp when the group was created.\").nullable(),\n updatedAt: z.string().describe(\"ISO8601 timestamp when the group was last updated.\").nullable(),\n externalId: z.string().describe(\"External ID of the group.\").nullable().optional(),\n}).passthrough();\nconst PlainListCustomerGroups_CustomerGroupEdgeSchema = z.object({\n node: PlainListCustomerGroups_CustomerGroupNodeSchema.nullable(),\n cursor: z.string().describe(\"Cursor for pagination.\").nullable(),\n}).passthrough();\nconst PlainListCustomerGroups_PageInfoSchema = z.object({\n endCursor: z.string().nullable().optional(),\n hasNextPage: z.boolean().nullable(),\n startCursor: z.string().nullable().optional(),\n hasPreviousPage: z.boolean().nullable(),\n}).passthrough();\nconst PlainListCustomerGroups_CustomerGroupsConnectionSchema = z.object({\n edges: z.array(PlainListCustomerGroups_CustomerGroupEdgeSchema),\n pageInfo: PlainListCustomerGroups_PageInfoSchema.nullable(),\n}).passthrough();\nexport const PlainListCustomerGroupsOutput = z.object({\n customerGroups: PlainListCustomerGroups_CustomerGroupsConnectionSchema.nullable(),\n}).passthrough();\n\nexport const plainListCustomerGroups: AppAction<\n typeof PlainListCustomerGroupsInput,\n typeof PlainListCustomerGroupsOutput,\n typeof plain.credential\n> = action(\"PLAIN_LIST_CUSTOMER_GROUPS\", {\n slug: \"plain-list-customer-groups\",\n name: \"List Customer Groups\",\n description: \"Tool to list all customer groups. Use when you need to retrieve group metadata with optional pagination or filters.\",\n input: PlainListCustomerGroupsInput,\n output: PlainListCustomerGroupsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;CAC/G,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CACxF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CAC9G,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CACzF,SAASA,IAAAA,EAAE,OAAO,EAClB,aAAaA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,EACrG,CAAC,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;AACxE,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC7D,MAAM,kDAAkDA,IAAAA,EAAE,OAAO;CAC/D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAC7E,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAA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ACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { plain } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/list-customer-groups.d.ts
|
|
@@ -32,15 +34,7 @@ declare const PlainListCustomerGroupsOutput: z.ZodObject<{
|
|
|
32
34
|
}, z.core.$loose>>;
|
|
33
35
|
}, z.core.$loose>>;
|
|
34
36
|
}, z.core.$loose>;
|
|
35
|
-
declare const plainListCustomerGroups:
|
|
36
|
-
last?: number | undefined;
|
|
37
|
-
after?: string | undefined;
|
|
38
|
-
first?: number | undefined;
|
|
39
|
-
before?: string | undefined;
|
|
40
|
-
filters?: {
|
|
41
|
-
externalIds?: string[] | undefined;
|
|
42
|
-
} | undefined;
|
|
43
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
37
|
+
declare const plainListCustomerGroups: AppAction<typeof PlainListCustomerGroupsInput, typeof PlainListCustomerGroupsOutput, typeof plain.credential>;
|
|
44
38
|
//#endregion
|
|
45
39
|
export { plainListCustomerGroups };
|
|
46
40
|
//# sourceMappingURL=list-customer-groups.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-customer-groups.d.cts","names":[],"sources":["../../src/actions/list-customer-groups.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-customer-groups.d.cts","names":[],"sources":["../../src/actions/list-customer-groups.ts"],"mappings":";;;;;cAMa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;cAgC5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;cAI7B,uBAAA,EAAyB,SAAA,QAC7B,4BAAA,SACA,6BAAA,SACA,KAAA,CAAM,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { plain } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/list-customer-groups.d.ts
|
|
@@ -32,15 +34,7 @@ declare const PlainListCustomerGroupsOutput: z.ZodObject<{
|
|
|
32
34
|
}, z.core.$loose>>;
|
|
33
35
|
}, z.core.$loose>>;
|
|
34
36
|
}, z.core.$loose>;
|
|
35
|
-
declare const plainListCustomerGroups:
|
|
36
|
-
last?: number | undefined;
|
|
37
|
-
after?: string | undefined;
|
|
38
|
-
first?: number | undefined;
|
|
39
|
-
before?: string | undefined;
|
|
40
|
-
filters?: {
|
|
41
|
-
externalIds?: string[] | undefined;
|
|
42
|
-
} | undefined;
|
|
43
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
37
|
+
declare const plainListCustomerGroups: AppAction<typeof PlainListCustomerGroupsInput, typeof PlainListCustomerGroupsOutput, typeof plain.credential>;
|
|
44
38
|
//#endregion
|
|
45
39
|
export { plainListCustomerGroups };
|
|
46
40
|
//# sourceMappingURL=list-customer-groups.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-customer-groups.d.mts","names":[],"sources":["../../src/actions/list-customer-groups.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-customer-groups.d.mts","names":[],"sources":["../../src/actions/list-customer-groups.ts"],"mappings":";;;;;cAMa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;cAgC5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;cAI7B,uBAAA,EAAyB,SAAA,QAC7B,4BAAA,SACA,6BAAA,SACA,KAAA,CAAM,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-customer-groups.mjs","names":[],"sources":["../../src/actions/list-customer-groups.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainListCustomerGroupsInput = z.object({\n last: z.number().int().describe(\"Number of groups to fetch before the 'before' cursor. Must be ≥ 1.\").optional(),\n after: z.string().describe(\"Cursor for forward pagination. Use with 'first'.\").optional(),\n first: z.number().int().describe(\"Number of groups to fetch after the 'after' cursor. Must be ≥ 1.\").optional(),\n before: z.string().describe(\"Cursor for backward pagination. Use with 'last'.\").optional(),\n filters: z.object({\n externalIds: z.array(z.string()).describe(\"Only returns groups with these external IDs.\").optional(),\n}).describe(\"Filters to apply when fetching customer groups.\").optional(),\n}).describe(\"Request parameters for listing customer groups.\");\nconst PlainListCustomerGroups_CustomerGroupNodeSchema = z.object({\n id: z.string().describe(\"Unique identifier of the customer group.\").nullable(),\n key: z.string().describe(\"Key of the customer group.\").nullable(),\n name: z.string().describe(\"Name of the customer group.\").nullable(),\n color: z.string().describe(\"Hex color code assigned to the group.\").nullable(),\n createdAt: z.string().describe(\"ISO8601 timestamp when the group was created.\").nullable(),\n updatedAt: z.string().describe(\"ISO8601 timestamp when the group was last updated.\").nullable(),\n externalId: z.string().describe(\"External ID of the group.\").nullable().optional(),\n}).passthrough();\nconst PlainListCustomerGroups_CustomerGroupEdgeSchema = z.object({\n node: PlainListCustomerGroups_CustomerGroupNodeSchema.nullable(),\n cursor: z.string().describe(\"Cursor for pagination.\").nullable(),\n}).passthrough();\nconst PlainListCustomerGroups_PageInfoSchema = z.object({\n endCursor: z.string().nullable().optional(),\n hasNextPage: z.boolean().nullable(),\n startCursor: z.string().nullable().optional(),\n hasPreviousPage: z.boolean().nullable(),\n}).passthrough();\nconst PlainListCustomerGroups_CustomerGroupsConnectionSchema = z.object({\n edges: z.array(PlainListCustomerGroups_CustomerGroupEdgeSchema),\n pageInfo: PlainListCustomerGroups_PageInfoSchema.nullable(),\n}).passthrough();\nexport const PlainListCustomerGroupsOutput = z.object({\n customerGroups: PlainListCustomerGroups_CustomerGroupsConnectionSchema.nullable(),\n}).passthrough();\n\nexport const plainListCustomerGroups = action(\"PLAIN_LIST_CUSTOMER_GROUPS\", {\n slug: \"plain-list-customer-groups\",\n name: \"List Customer Groups\",\n description: \"Tool to list all customer groups. Use when you need to retrieve group metadata with optional pagination or filters.\",\n input: PlainListCustomerGroupsInput,\n output: PlainListCustomerGroupsOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-customer-groups.mjs","names":[],"sources":["../../src/actions/list-customer-groups.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { plain } from \"../app\";\n\nexport const PlainListCustomerGroupsInput = z.object({\n last: z.number().int().describe(\"Number of groups to fetch before the 'before' cursor. Must be ≥ 1.\").optional(),\n after: z.string().describe(\"Cursor for forward pagination. Use with 'first'.\").optional(),\n first: z.number().int().describe(\"Number of groups to fetch after the 'after' cursor. Must be ≥ 1.\").optional(),\n before: z.string().describe(\"Cursor for backward pagination. Use with 'last'.\").optional(),\n filters: z.object({\n externalIds: z.array(z.string()).describe(\"Only returns groups with these external IDs.\").optional(),\n}).describe(\"Filters to apply when fetching customer groups.\").optional(),\n}).describe(\"Request parameters for listing customer groups.\");\nconst PlainListCustomerGroups_CustomerGroupNodeSchema = z.object({\n id: z.string().describe(\"Unique identifier of the customer group.\").nullable(),\n key: z.string().describe(\"Key of the customer group.\").nullable(),\n name: z.string().describe(\"Name of the customer group.\").nullable(),\n color: z.string().describe(\"Hex color code assigned to the group.\").nullable(),\n createdAt: z.string().describe(\"ISO8601 timestamp when the group was created.\").nullable(),\n updatedAt: z.string().describe(\"ISO8601 timestamp when the group was last updated.\").nullable(),\n externalId: z.string().describe(\"External ID of the group.\").nullable().optional(),\n}).passthrough();\nconst PlainListCustomerGroups_CustomerGroupEdgeSchema = z.object({\n node: PlainListCustomerGroups_CustomerGroupNodeSchema.nullable(),\n cursor: z.string().describe(\"Cursor for pagination.\").nullable(),\n}).passthrough();\nconst PlainListCustomerGroups_PageInfoSchema = z.object({\n endCursor: z.string().nullable().optional(),\n hasNextPage: z.boolean().nullable(),\n startCursor: z.string().nullable().optional(),\n hasPreviousPage: z.boolean().nullable(),\n}).passthrough();\nconst PlainListCustomerGroups_CustomerGroupsConnectionSchema = z.object({\n edges: z.array(PlainListCustomerGroups_CustomerGroupEdgeSchema),\n pageInfo: PlainListCustomerGroups_PageInfoSchema.nullable(),\n}).passthrough();\nexport const PlainListCustomerGroupsOutput = z.object({\n customerGroups: PlainListCustomerGroups_CustomerGroupsConnectionSchema.nullable(),\n}).passthrough();\n\nexport const plainListCustomerGroups: AppAction<\n typeof PlainListCustomerGroupsInput,\n typeof PlainListCustomerGroupsOutput,\n typeof plain.credential\n> = action(\"PLAIN_LIST_CUSTOMER_GROUPS\", {\n slug: \"plain-list-customer-groups\",\n name: \"List Customer Groups\",\n description: \"Tool to list all customer groups. Use when you need to retrieve group metadata with optional pagination or filters.\",\n input: PlainListCustomerGroupsInput,\n output: PlainListCustomerGroupsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,+BAA+B,EAAE,OAAO;CACnD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;CAC/G,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CACxF,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CAC9G,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CACzF,SAAS,EAAE,OAAO,EAClB,aAAa,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,EACrG,CAAC,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;AACxE,CAAC,CAAC,CAAC,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,OAAO,EACpD,gBAAgB,uDAAuD,SAAS,EAClF,CAAC,CAAC,CAAC,YAWO;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-tiers.cjs","names":["z","action"],"sources":["../../src/actions/list-tiers.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainListTiersInput = z.object({\n last: z.number().int().describe(\"Number of items to fetch in backward pagination; must be ≥ 1.\").optional(),\n after: z.string().describe(\"Cursor for forward pagination, used together with 'first'.\").optional(),\n first: z.number().int().describe(\"Number of items to fetch in forward pagination; must be ≥ 1.\").optional(),\n before: z.string().describe(\"Cursor for backward pagination, used together with 'last'.\").optional(),\n}).describe(\"Request parameters for listing tiers. You must supply at least one of 'first' or 'last'\\nto paginate forward or backward through the result set.\");\nconst PlainListTiers_TierNodeSchema = z.object({\n id: z.string().describe(\"Unique identifier of the tier.\").nullable(),\n name: z.string().describe(\"Name of the tier.\").nullable().optional(),\n externalId: z.string().describe(\"External identifier for the tier, if any.\").nullable().optional(),\n defaultPriority: z.number().int().describe(\"Default priority level of the tier.\").nullable().optional(),\n}).passthrough();\nconst PlainListTiers_TierEdgeSchema = z.object({\n node: PlainListTiers_TierNodeSchema.nullable(),\n cursor: z.string().describe(\"Pagination cursor for this edge.\").nullable(),\n}).passthrough();\nconst PlainListTiers_PageInfoSchema = z.object({\n endCursor: z.string().describe(\"Cursor corresponding to the last result in the current page.\").nullable().optional(),\n hasNextPage: z.boolean().describe(\"Whether there is a next page of results.\").nullable(),\n startCursor: z.string().describe(\"Cursor corresponding to the first result in the current page.\").nullable().optional(),\n hasPreviousPage: z.boolean().describe(\"Whether there is a previous page of results.\").nullable(),\n}).passthrough();\nconst PlainListTiers_TiersConnectionSchema = z.object({\n edges: z.array(PlainListTiers_TierEdgeSchema).describe(\"List of tier edges for pagination.\"),\n pageInfo: PlainListTiers_PageInfoSchema.nullable(),\n}).passthrough();\nexport const PlainListTiersOutput = z.object({\n tiers: PlainListTiers_TiersConnectionSchema.nullable(),\n}).passthrough().describe(\"Response schema for listing tiers with pagination.\");\n\nexport const plainListTiers = action(\"PLAIN_LIST_TIERS\", {\n slug: \"plain-list-tiers\",\n name: \"List Tiers\",\n description: \"Tool to retrieve a list of tiers with pagination. Use when you need to browse available tiers after determining pagination cursors. Example: 'List tiers with first=25'.\",\n input: PlainListTiersInput,\n output: PlainListTiersOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-tiers.cjs","names":["z","action"],"sources":["../../src/actions/list-tiers.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { plain } from \"../app\";\n\nexport const PlainListTiersInput = z.object({\n last: z.number().int().describe(\"Number of items to fetch in backward pagination; must be ≥ 1.\").optional(),\n after: z.string().describe(\"Cursor for forward pagination, used together with 'first'.\").optional(),\n first: z.number().int().describe(\"Number of items to fetch in forward pagination; must be ≥ 1.\").optional(),\n before: z.string().describe(\"Cursor for backward pagination, used together with 'last'.\").optional(),\n}).describe(\"Request parameters for listing tiers. You must supply at least one of 'first' or 'last'\\nto paginate forward or backward through the result set.\");\nconst PlainListTiers_TierNodeSchema = z.object({\n id: z.string().describe(\"Unique identifier of the tier.\").nullable(),\n name: z.string().describe(\"Name of the tier.\").nullable().optional(),\n externalId: z.string().describe(\"External identifier for the tier, if any.\").nullable().optional(),\n defaultPriority: z.number().int().describe(\"Default priority level of the tier.\").nullable().optional(),\n}).passthrough();\nconst PlainListTiers_TierEdgeSchema = z.object({\n node: PlainListTiers_TierNodeSchema.nullable(),\n cursor: z.string().describe(\"Pagination cursor for this edge.\").nullable(),\n}).passthrough();\nconst PlainListTiers_PageInfoSchema = z.object({\n endCursor: z.string().describe(\"Cursor corresponding to the last result in the current page.\").nullable().optional(),\n hasNextPage: z.boolean().describe(\"Whether there is a next page of results.\").nullable(),\n startCursor: z.string().describe(\"Cursor corresponding to the first result in the current page.\").nullable().optional(),\n hasPreviousPage: z.boolean().describe(\"Whether there is a previous page of results.\").nullable(),\n}).passthrough();\nconst PlainListTiers_TiersConnectionSchema = z.object({\n edges: z.array(PlainListTiers_TierEdgeSchema).describe(\"List of tier edges for pagination.\"),\n pageInfo: PlainListTiers_PageInfoSchema.nullable(),\n}).passthrough();\nexport const PlainListTiersOutput = z.object({\n tiers: PlainListTiers_TiersConnectionSchema.nullable(),\n}).passthrough().describe(\"Response schema for listing tiers with pagination.\");\n\nexport const plainListTiers: AppAction<\n typeof PlainListTiersInput,\n typeof PlainListTiersOutput,\n typeof plain.credential\n> = action(\"PLAIN_LIST_TIERS\", {\n slug: \"plain-list-tiers\",\n name: \"List Tiers\",\n description: \"Tool to retrieve a list of tiers with pagination. Use when you need to browse available tiers after determining pagination cursors. Example: 'List tiers with first=25'.\",\n input: PlainListTiersInput,\n output: PlainListTiersOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,sBAAsBA,IAAAA,EAAE,OAAO;CAC1C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CAC1G,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CAClG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CAC1G,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;AACrG,CAAC,CAAC,CAAC,SAAS,kJAAkJ;AAC9J,MAAM,gCAAgCA,IAAAA,EAAE,OAAO;CAC7C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACnE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnE,YAAYA,IAA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1,3 +1,5 @@
|
|
|
1
|
+
import { plain } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/list-tiers.d.ts
|
|
@@ -26,12 +28,7 @@ declare const PlainListTiersOutput: z.ZodObject<{
|
|
|
26
28
|
}, z.core.$loose>>;
|
|
27
29
|
}, z.core.$loose>>;
|
|
28
30
|
}, z.core.$loose>;
|
|
29
|
-
declare const plainListTiers:
|
|
30
|
-
last?: number | undefined;
|
|
31
|
-
after?: string | undefined;
|
|
32
|
-
first?: number | undefined;
|
|
33
|
-
before?: string | undefined;
|
|
34
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
31
|
+
declare const plainListTiers: AppAction<typeof PlainListTiersInput, typeof PlainListTiersOutput, typeof plain.credential>;
|
|
35
32
|
//#endregion
|
|
36
33
|
export { plainListTiers };
|
|
37
34
|
//# sourceMappingURL=list-tiers.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-tiers.d.cts","names":[],"sources":["../../src/actions/list-tiers.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-tiers.d.cts","names":[],"sources":["../../src/actions/list-tiers.ts"],"mappings":";;;;;cAMa,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;;;cA0BnB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;cAIpB,cAAA,EAAgB,SAAA,QACpB,mBAAA,SACA,oBAAA,SACA,KAAA,CAAM,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { plain } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/list-tiers.d.ts
|
|
@@ -26,12 +28,7 @@ declare const PlainListTiersOutput: z.ZodObject<{
|
|
|
26
28
|
}, z.core.$loose>>;
|
|
27
29
|
}, z.core.$loose>>;
|
|
28
30
|
}, z.core.$loose>;
|
|
29
|
-
declare const plainListTiers:
|
|
30
|
-
last?: number | undefined;
|
|
31
|
-
after?: string | undefined;
|
|
32
|
-
first?: number | undefined;
|
|
33
|
-
before?: string | undefined;
|
|
34
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
31
|
+
declare const plainListTiers: AppAction<typeof PlainListTiersInput, typeof PlainListTiersOutput, typeof plain.credential>;
|
|
35
32
|
//#endregion
|
|
36
33
|
export { plainListTiers };
|
|
37
34
|
//# sourceMappingURL=list-tiers.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-tiers.d.mts","names":[],"sources":["../../src/actions/list-tiers.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-tiers.d.mts","names":[],"sources":["../../src/actions/list-tiers.ts"],"mappings":";;;;;cAMa,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;;;cA0BnB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;cAIpB,cAAA,EAAgB,SAAA,QACpB,mBAAA,SACA,oBAAA,SACA,KAAA,CAAM,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-tiers.mjs","names":[],"sources":["../../src/actions/list-tiers.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainListTiersInput = z.object({\n last: z.number().int().describe(\"Number of items to fetch in backward pagination; must be ≥ 1.\").optional(),\n after: z.string().describe(\"Cursor for forward pagination, used together with 'first'.\").optional(),\n first: z.number().int().describe(\"Number of items to fetch in forward pagination; must be ≥ 1.\").optional(),\n before: z.string().describe(\"Cursor for backward pagination, used together with 'last'.\").optional(),\n}).describe(\"Request parameters for listing tiers. You must supply at least one of 'first' or 'last'\\nto paginate forward or backward through the result set.\");\nconst PlainListTiers_TierNodeSchema = z.object({\n id: z.string().describe(\"Unique identifier of the tier.\").nullable(),\n name: z.string().describe(\"Name of the tier.\").nullable().optional(),\n externalId: z.string().describe(\"External identifier for the tier, if any.\").nullable().optional(),\n defaultPriority: z.number().int().describe(\"Default priority level of the tier.\").nullable().optional(),\n}).passthrough();\nconst PlainListTiers_TierEdgeSchema = z.object({\n node: PlainListTiers_TierNodeSchema.nullable(),\n cursor: z.string().describe(\"Pagination cursor for this edge.\").nullable(),\n}).passthrough();\nconst PlainListTiers_PageInfoSchema = z.object({\n endCursor: z.string().describe(\"Cursor corresponding to the last result in the current page.\").nullable().optional(),\n hasNextPage: z.boolean().describe(\"Whether there is a next page of results.\").nullable(),\n startCursor: z.string().describe(\"Cursor corresponding to the first result in the current page.\").nullable().optional(),\n hasPreviousPage: z.boolean().describe(\"Whether there is a previous page of results.\").nullable(),\n}).passthrough();\nconst PlainListTiers_TiersConnectionSchema = z.object({\n edges: z.array(PlainListTiers_TierEdgeSchema).describe(\"List of tier edges for pagination.\"),\n pageInfo: PlainListTiers_PageInfoSchema.nullable(),\n}).passthrough();\nexport const PlainListTiersOutput = z.object({\n tiers: PlainListTiers_TiersConnectionSchema.nullable(),\n}).passthrough().describe(\"Response schema for listing tiers with pagination.\");\n\nexport const plainListTiers = action(\"PLAIN_LIST_TIERS\", {\n slug: \"plain-list-tiers\",\n name: \"List Tiers\",\n description: \"Tool to retrieve a list of tiers with pagination. Use when you need to browse available tiers after determining pagination cursors. Example: 'List tiers with first=25'.\",\n input: PlainListTiersInput,\n output: PlainListTiersOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-tiers.mjs","names":[],"sources":["../../src/actions/list-tiers.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { plain } from \"../app\";\n\nexport const PlainListTiersInput = z.object({\n last: z.number().int().describe(\"Number of items to fetch in backward pagination; must be ≥ 1.\").optional(),\n after: z.string().describe(\"Cursor for forward pagination, used together with 'first'.\").optional(),\n first: z.number().int().describe(\"Number of items to fetch in forward pagination; must be ≥ 1.\").optional(),\n before: z.string().describe(\"Cursor for backward pagination, used together with 'last'.\").optional(),\n}).describe(\"Request parameters for listing tiers. You must supply at least one of 'first' or 'last'\\nto paginate forward or backward through the result set.\");\nconst PlainListTiers_TierNodeSchema = z.object({\n id: z.string().describe(\"Unique identifier of the tier.\").nullable(),\n name: z.string().describe(\"Name of the tier.\").nullable().optional(),\n externalId: z.string().describe(\"External identifier for the tier, if any.\").nullable().optional(),\n defaultPriority: z.number().int().describe(\"Default priority level of the tier.\").nullable().optional(),\n}).passthrough();\nconst PlainListTiers_TierEdgeSchema = z.object({\n node: PlainListTiers_TierNodeSchema.nullable(),\n cursor: z.string().describe(\"Pagination cursor for this edge.\").nullable(),\n}).passthrough();\nconst PlainListTiers_PageInfoSchema = z.object({\n endCursor: z.string().describe(\"Cursor corresponding to the last result in the current page.\").nullable().optional(),\n hasNextPage: z.boolean().describe(\"Whether there is a next page of results.\").nullable(),\n startCursor: z.string().describe(\"Cursor corresponding to the first result in the current page.\").nullable().optional(),\n hasPreviousPage: z.boolean().describe(\"Whether there is a previous page of results.\").nullable(),\n}).passthrough();\nconst PlainListTiers_TiersConnectionSchema = z.object({\n edges: z.array(PlainListTiers_TierEdgeSchema).describe(\"List of tier edges for pagination.\"),\n pageInfo: PlainListTiers_PageInfoSchema.nullable(),\n}).passthrough();\nexport const PlainListTiersOutput = z.object({\n tiers: PlainListTiers_TiersConnectionSchema.nullable(),\n}).passthrough().describe(\"Response schema for listing tiers with pagination.\");\n\nexport const plainListTiers: AppAction<\n typeof PlainListTiersInput,\n typeof PlainListTiersOutput,\n typeof plain.credential\n> = action(\"PLAIN_LIST_TIERS\", {\n slug: \"plain-list-tiers\",\n name: \"List Tiers\",\n description: \"Tool to retrieve a list of tiers with pagination. Use when you need to browse available tiers after determining pagination cursors. Example: 'List tiers with first=25'.\",\n input: PlainListTiersInput,\n output: PlainListTiersOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,sBAAsB,EAAE,OAAO;CAC1C,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CAC1G,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CAClG,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CAC1G,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;AACrG,CAAC,CAAC,CAAC,SAAS,kJAAkJ;AAC9J,MAAM,gCAAgC,EAAE,OAAO;CAC7C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACnE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,iBAAiB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxG,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,gCAAgC,EAAE,OAAO;CAC7C,MAAM,8BAA8B,SAAS;CAC7C,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;AAC3E,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,gCAAgC,EAAE,OAAO;CAC7C,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnH,aAAa,EAAE,QAAQ,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACvF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtH,iBAAiB,EAAE,QAAQ,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;AACjG,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,uCAAuC,EAAE,OAAO;CACpD,OAAO,EAAE,MAAM,6BAA6B,CAAC,CAAC,SAAS,oCAAoC;CAC3F,UAAU,8BAA8B,SAAS;AACnD,CAAC,CAAC,CAAC,YAAY;AAKf,MAAa,iBAIT,OAAO,oBAAoB;CAC7B,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAbkC,EAAE,OAAO,EAC3C,OAAO,qCAAqC,SAAS,EACvD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-threads.cjs","names":["z","action"],"sources":["../../src/actions/query-threads.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainQueryThreadsInput = z.object({\n cursor: z.string().describe(\"Cursor for pagination returned by a previous call. Omit for first page. Use the cursor from each response to fetch the next page; omitting it resets to the first page.\").optional(),\n statuses: z.array(z.string()).describe(\"Filter threads by status. Supported values: TODO, SNOOZED, DONE.\").optional(),\n});\nconst PlainQueryThreads_ThreadNodeSchema = z.object({\n id: z.string().describe(\"Unique ID of the thread.\").nullable(),\n ref: z.string().describe(\"Human-readable reference of the thread.\").nullable(),\n title: z.string().describe(\"Title of the thread.\").nullable(),\n status: z.string().describe(\"Current status of the thread.\").nullable(),\n priority: z.number().int().describe(\"Priority level of the thread.\").nullable().optional(),\n createdAt: z.record(z.string(), z.unknown()).describe(\"Creation timestamp object with iso8601 field.\"),\n updatedAt: z.record(z.string(), z.unknown()).describe(\"Last update timestamp object with iso8601 field.\"),\n}).passthrough();\nconst PlainQueryThreads_ThreadEdgeSchema = z.object({\n node: PlainQueryThreads_ThreadNodeSchema.nullable(),\n cursor: z.string().describe(\"Cursor for this edge.\").nullable(),\n}).passthrough();\nconst PlainQueryThreads_PageInfoSchema = z.object({\n endCursor: z.string().describe(\"Cursor of the last item in this page.\").nullable().optional(),\n hasNextPage: z.boolean().describe(\"True if there's a next page.\").nullable(),\n startCursor: z.string().describe(\"Cursor of the first item in this page.\").nullable().optional(),\n hasPreviousPage: z.boolean().describe(\"True if there's a previous page.\").nullable(),\n}).passthrough();\nconst PlainQueryThreads_ThreadsSchema = z.object({\n edges: z.array(PlainQueryThreads_ThreadEdgeSchema).describe(\"List of thread edges.\"),\n pageInfo: PlainQueryThreads_PageInfoSchema.nullable(),\n totalCount: z.number().int().describe(\"Total number of threads.\").nullable(),\n}).passthrough();\nexport const PlainQueryThreadsOutput = z.object({\n threads: PlainQueryThreads_ThreadsSchema.nullable(),\n}).passthrough();\n\nexport const plainQueryThreads = action(\"PLAIN_QUERY_THREADS\", {\n slug: \"plain-query-threads\",\n name: \"List Threads\",\n description: \"Tool to retrieve a paginated list of threads. Use when you need to list threads with optional status filtering.\",\n input: PlainQueryThreadsInput,\n output: PlainQueryThreadsOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"query-threads.cjs","names":["z","action"],"sources":["../../src/actions/query-threads.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { plain } from \"../app\";\n\nexport const PlainQueryThreadsInput = z.object({\n cursor: z.string().describe(\"Cursor for pagination returned by a previous call. Omit for first page. Use the cursor from each response to fetch the next page; omitting it resets to the first page.\").optional(),\n statuses: z.array(z.string()).describe(\"Filter threads by status. Supported values: TODO, SNOOZED, DONE.\").optional(),\n});\nconst PlainQueryThreads_ThreadNodeSchema = z.object({\n id: z.string().describe(\"Unique ID of the thread.\").nullable(),\n ref: z.string().describe(\"Human-readable reference of the thread.\").nullable(),\n title: z.string().describe(\"Title of the thread.\").nullable(),\n status: z.string().describe(\"Current status of the thread.\").nullable(),\n priority: z.number().int().describe(\"Priority level of the thread.\").nullable().optional(),\n createdAt: z.record(z.string(), z.unknown()).describe(\"Creation timestamp object with iso8601 field.\"),\n updatedAt: z.record(z.string(), z.unknown()).describe(\"Last update timestamp object with iso8601 field.\"),\n}).passthrough();\nconst PlainQueryThreads_ThreadEdgeSchema = z.object({\n node: PlainQueryThreads_ThreadNodeSchema.nullable(),\n cursor: z.string().describe(\"Cursor for this edge.\").nullable(),\n}).passthrough();\nconst PlainQueryThreads_PageInfoSchema = z.object({\n endCursor: z.string().describe(\"Cursor of the last item in this page.\").nullable().optional(),\n hasNextPage: z.boolean().describe(\"True if there's a next page.\").nullable(),\n startCursor: z.string().describe(\"Cursor of the first item in this page.\").nullable().optional(),\n hasPreviousPage: z.boolean().describe(\"True if there's a previous page.\").nullable(),\n}).passthrough();\nconst PlainQueryThreads_ThreadsSchema = z.object({\n edges: z.array(PlainQueryThreads_ThreadEdgeSchema).describe(\"List of thread edges.\"),\n pageInfo: PlainQueryThreads_PageInfoSchema.nullable(),\n totalCount: z.number().int().describe(\"Total number of threads.\").nullable(),\n}).passthrough();\nexport const PlainQueryThreadsOutput = z.object({\n threads: PlainQueryThreads_ThreadsSchema.nullable(),\n}).passthrough();\n\nexport const plainQueryThreads: AppAction<\n typeof PlainQueryThreadsInput,\n typeof PlainQueryThreadsOutput,\n typeof plain.credential\n> = action(\"PLAIN_QUERY_THREADS\", {\n slug: \"plain-query-threads\",\n name: \"List Threads\",\n description: \"Tool to retrieve a paginated list of threads. Use when you need to list threads with optional status filtering.\",\n input: PlainQueryThreadsInput,\n output: PlainQueryThreadsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,yBAAyBA,IAAAA,EAAE,OAAO;CAC7C,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yKAAyK,CAAC,CAAC,SAAS;CAChN,UAAU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