@keystrokehq/plain 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -0
- package/dist/action.cjs +21 -0
- package/dist/action.cjs.map +1 -0
- package/dist/action.mjs +21 -0
- package/dist/action.mjs.map +1 -0
- package/dist/actions/add-customer-to-group.cjs +56 -0
- package/dist/actions/add-customer-to-group.cjs.map +1 -0
- package/dist/actions/add-customer-to-group.d.cts +9 -0
- package/dist/actions/add-customer-to-group.d.cts.map +1 -0
- package/dist/actions/add-customer-to-group.d.mts +9 -0
- package/dist/actions/add-customer-to-group.d.mts.map +1 -0
- package/dist/actions/add-customer-to-group.mjs +55 -0
- package/dist/actions/add-customer-to-group.mjs.map +1 -0
- package/dist/actions/create-customer-group.cjs +45 -0
- package/dist/actions/create-customer-group.cjs.map +1 -0
- package/dist/actions/create-customer-group.d.cts +9 -0
- package/dist/actions/create-customer-group.d.cts.map +1 -0
- package/dist/actions/create-customer-group.d.mts +9 -0
- package/dist/actions/create-customer-group.d.mts.map +1 -0
- package/dist/actions/create-customer-group.mjs +44 -0
- package/dist/actions/create-customer-group.mjs.map +1 -0
- package/dist/actions/create-thread.cjs +52 -0
- package/dist/actions/create-thread.cjs.map +1 -0
- package/dist/actions/create-thread.d.cts +9 -0
- package/dist/actions/create-thread.d.cts.map +1 -0
- package/dist/actions/create-thread.d.mts +9 -0
- package/dist/actions/create-thread.d.mts.map +1 -0
- package/dist/actions/create-thread.mjs +51 -0
- package/dist/actions/create-thread.mjs.map +1 -0
- package/dist/actions/delete-customer.cjs +27 -0
- package/dist/actions/delete-customer.cjs.map +1 -0
- package/dist/actions/delete-customer.d.cts +9 -0
- package/dist/actions/delete-customer.d.cts.map +1 -0
- package/dist/actions/delete-customer.d.mts +9 -0
- package/dist/actions/delete-customer.d.mts.map +1 -0
- package/dist/actions/delete-customer.mjs +26 -0
- package/dist/actions/delete-customer.mjs.map +1 -0
- package/dist/actions/delete-user.cjs +27 -0
- package/dist/actions/delete-user.cjs.map +1 -0
- package/dist/actions/delete-user.d.cts +9 -0
- package/dist/actions/delete-user.d.cts.map +1 -0
- package/dist/actions/delete-user.d.mts +9 -0
- package/dist/actions/delete-user.d.mts.map +1 -0
- package/dist/actions/delete-user.mjs +26 -0
- package/dist/actions/delete-user.mjs.map +1 -0
- package/dist/actions/fetch-company.cjs +33 -0
- package/dist/actions/fetch-company.cjs.map +1 -0
- package/dist/actions/fetch-company.d.cts +9 -0
- package/dist/actions/fetch-company.d.cts.map +1 -0
- package/dist/actions/fetch-company.d.mts +9 -0
- package/dist/actions/fetch-company.d.mts.map +1 -0
- package/dist/actions/fetch-company.mjs +32 -0
- package/dist/actions/fetch-company.mjs.map +1 -0
- package/dist/actions/fetch-issues.cjs +34 -0
- package/dist/actions/fetch-issues.cjs.map +1 -0
- package/dist/actions/fetch-issues.d.cts +9 -0
- package/dist/actions/fetch-issues.d.cts.map +1 -0
- package/dist/actions/fetch-issues.d.mts +9 -0
- package/dist/actions/fetch-issues.d.mts.map +1 -0
- package/dist/actions/fetch-issues.mjs +33 -0
- package/dist/actions/fetch-issues.mjs.map +1 -0
- package/dist/actions/fetch-tier.cjs +31 -0
- package/dist/actions/fetch-tier.cjs.map +1 -0
- package/dist/actions/fetch-tier.d.cts +9 -0
- package/dist/actions/fetch-tier.d.cts.map +1 -0
- package/dist/actions/fetch-tier.d.mts +9 -0
- package/dist/actions/fetch-tier.d.mts.map +1 -0
- package/dist/actions/fetch-tier.mjs +30 -0
- package/dist/actions/fetch-tier.mjs.map +1 -0
- package/dist/actions/get-customer-by-email.cjs +31 -0
- package/dist/actions/get-customer-by-email.cjs.map +1 -0
- package/dist/actions/get-customer-by-email.d.cts +9 -0
- package/dist/actions/get-customer-by-email.d.cts.map +1 -0
- package/dist/actions/get-customer-by-email.d.mts +9 -0
- package/dist/actions/get-customer-by-email.d.mts.map +1 -0
- package/dist/actions/get-customer-by-email.mjs +30 -0
- package/dist/actions/get-customer-by-email.mjs.map +1 -0
- package/dist/actions/get-customer-by-id.cjs +22 -0
- package/dist/actions/get-customer-by-id.cjs.map +1 -0
- package/dist/actions/get-customer-by-id.d.cts +9 -0
- package/dist/actions/get-customer-by-id.d.cts.map +1 -0
- package/dist/actions/get-customer-by-id.d.mts +9 -0
- package/dist/actions/get-customer-by-id.d.mts.map +1 -0
- package/dist/actions/get-customer-by-id.mjs +19 -0
- package/dist/actions/get-customer-by-id.mjs.map +1 -0
- package/dist/actions/get-customers.cjs +55 -0
- package/dist/actions/get-customers.cjs.map +1 -0
- package/dist/actions/get-customers.d.cts +9 -0
- package/dist/actions/get-customers.d.cts.map +1 -0
- package/dist/actions/get-customers.d.mts +9 -0
- package/dist/actions/get-customers.d.mts.map +1 -0
- package/dist/actions/get-customers.mjs +54 -0
- package/dist/actions/get-customers.mjs.map +1 -0
- package/dist/actions/get-thread-by-id.cjs +62 -0
- package/dist/actions/get-thread-by-id.cjs.map +1 -0
- package/dist/actions/get-thread-by-id.d.cts +9 -0
- package/dist/actions/get-thread-by-id.d.cts.map +1 -0
- package/dist/actions/get-thread-by-id.d.mts +9 -0
- package/dist/actions/get-thread-by-id.d.mts.map +1 -0
- package/dist/actions/get-thread-by-id.mjs +61 -0
- package/dist/actions/get-thread-by-id.mjs.map +1 -0
- package/dist/actions/get-user-by-id.cjs +27 -0
- package/dist/actions/get-user-by-id.cjs.map +1 -0
- package/dist/actions/get-user-by-id.d.cts +9 -0
- package/dist/actions/get-user-by-id.d.cts.map +1 -0
- package/dist/actions/get-user-by-id.d.mts +9 -0
- package/dist/actions/get-user-by-id.d.mts.map +1 -0
- package/dist/actions/get-user-by-id.mjs +26 -0
- package/dist/actions/get-user-by-id.mjs.map +1 -0
- package/dist/actions/index.cjs +45 -0
- package/dist/actions/index.d.cts +23 -0
- package/dist/actions/index.d.mts +23 -0
- package/dist/actions/index.mjs +23 -0
- package/dist/actions/list-customer-groups.cjs +45 -0
- package/dist/actions/list-customer-groups.cjs.map +1 -0
- package/dist/actions/list-customer-groups.d.cts +9 -0
- package/dist/actions/list-customer-groups.d.cts.map +1 -0
- package/dist/actions/list-customer-groups.d.mts +9 -0
- package/dist/actions/list-customer-groups.d.mts.map +1 -0
- package/dist/actions/list-customer-groups.mjs +44 -0
- package/dist/actions/list-customer-groups.mjs.map +1 -0
- package/dist/actions/list-tiers.cjs +41 -0
- package/dist/actions/list-tiers.cjs.map +1 -0
- package/dist/actions/list-tiers.d.cts +9 -0
- package/dist/actions/list-tiers.d.cts.map +1 -0
- package/dist/actions/list-tiers.d.mts +9 -0
- package/dist/actions/list-tiers.d.mts.map +1 -0
- package/dist/actions/list-tiers.mjs +40 -0
- package/dist/actions/list-tiers.mjs.map +1 -0
- package/dist/actions/query-threads.cjs +43 -0
- package/dist/actions/query-threads.cjs.map +1 -0
- package/dist/actions/query-threads.d.cts +9 -0
- package/dist/actions/query-threads.d.cts.map +1 -0
- package/dist/actions/query-threads.d.mts +9 -0
- package/dist/actions/query-threads.d.mts.map +1 -0
- package/dist/actions/query-threads.mjs +42 -0
- package/dist/actions/query-threads.mjs.map +1 -0
- package/dist/actions/remove-customer-from-group.cjs +41 -0
- package/dist/actions/remove-customer-from-group.cjs.map +1 -0
- package/dist/actions/remove-customer-from-group.d.cts +9 -0
- package/dist/actions/remove-customer-from-group.d.cts.map +1 -0
- package/dist/actions/remove-customer-from-group.d.mts +9 -0
- package/dist/actions/remove-customer-from-group.d.mts.map +1 -0
- package/dist/actions/remove-customer-from-group.mjs +40 -0
- package/dist/actions/remove-customer-from-group.mjs.map +1 -0
- package/dist/actions/run-graphql-query.cjs +34 -0
- package/dist/actions/run-graphql-query.cjs.map +1 -0
- package/dist/actions/run-graphql-query.d.cts +9 -0
- package/dist/actions/run-graphql-query.d.cts.map +1 -0
- package/dist/actions/run-graphql-query.d.mts +9 -0
- package/dist/actions/run-graphql-query.d.mts.map +1 -0
- package/dist/actions/run-graphql-query.mjs +33 -0
- package/dist/actions/run-graphql-query.mjs.map +1 -0
- package/dist/actions/send-message.cjs +37 -0
- package/dist/actions/send-message.cjs.map +1 -0
- package/dist/actions/send-message.d.cts +9 -0
- package/dist/actions/send-message.d.cts.map +1 -0
- package/dist/actions/send-message.d.mts +9 -0
- package/dist/actions/send-message.d.mts.map +1 -0
- package/dist/actions/send-message.mjs +36 -0
- package/dist/actions/send-message.mjs.map +1 -0
- package/dist/actions/update-company.cjs +45 -0
- package/dist/actions/update-company.cjs.map +1 -0
- package/dist/actions/update-company.d.cts +9 -0
- package/dist/actions/update-company.d.cts.map +1 -0
- package/dist/actions/update-company.d.mts +9 -0
- package/dist/actions/update-company.d.mts.map +1 -0
- package/dist/actions/update-company.mjs +44 -0
- package/dist/actions/update-company.mjs.map +1 -0
- package/dist/actions/update-thread.cjs +39 -0
- package/dist/actions/update-thread.cjs.map +1 -0
- package/dist/actions/update-thread.d.cts +9 -0
- package/dist/actions/update-thread.d.cts.map +1 -0
- package/dist/actions/update-thread.d.mts +9 -0
- package/dist/actions/update-thread.d.mts.map +1 -0
- package/dist/actions/update-thread.mjs +38 -0
- package/dist/actions/update-thread.mjs.map +1 -0
- package/dist/actions/upsert-customer.cjs +82 -0
- package/dist/actions/upsert-customer.cjs.map +1 -0
- package/dist/actions/upsert-customer.d.cts +9 -0
- package/dist/actions/upsert-customer.d.cts.map +1 -0
- package/dist/actions/upsert-customer.d.mts +9 -0
- package/dist/actions/upsert-customer.d.mts.map +1 -0
- package/dist/actions/upsert-customer.mjs +81 -0
- package/dist/actions/upsert-customer.mjs.map +1 -0
- package/dist/app.cjs +9 -0
- package/dist/app.cjs.map +1 -0
- package/dist/app.d.cts +5 -0
- package/dist/app.d.cts.map +1 -0
- package/dist/app.d.mts +5 -0
- package/dist/app.d.mts.map +1 -0
- package/dist/app.mjs +10 -0
- package/dist/app.mjs.map +1 -0
- package/dist/catalog.cjs +15 -0
- package/dist/catalog.cjs.map +1 -0
- package/dist/catalog.d.cts +14 -0
- package/dist/catalog.d.cts.map +1 -0
- package/dist/catalog.d.mts +14 -0
- package/dist/catalog.d.mts.map +1 -0
- package/dist/catalog.mjs +15 -0
- package/dist/catalog.mjs.map +1 -0
- package/dist/execute.cjs +18 -0
- package/dist/execute.cjs.map +1 -0
- package/dist/execute.mjs +18 -0
- package/dist/execute.mjs.map +1 -0
- package/dist/index.cjs +50 -0
- package/dist/index.d.cts +25 -0
- package/dist/index.d.mts +25 -0
- package/dist/index.mjs +26 -0
- package/package.json +49 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/remove-customer-from-group.d.ts
|
|
4
|
+
declare const PlainRemoveCustomerFromGroupInput: z.ZodTypeAny;
|
|
5
|
+
declare const PlainRemoveCustomerFromGroupOutput: z.ZodTypeAny;
|
|
6
|
+
declare const plainRemoveCustomerFromGroup: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { plainRemoveCustomerFromGroup };
|
|
9
|
+
//# sourceMappingURL=remove-customer-from-group.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"remove-customer-from-group.d.cts","names":[],"sources":["../../src/actions/remove-customer-from-group.ts"],"mappings":";;;cAIa,iCAAA,EAAmC,CAAA,CAAE,UAMhD;AAAA,cAYW,kCAAA,EAAoC,CAAA,CAAE,UAEjD;AAAA,cAEW,4BAAA,gCAA4B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/remove-customer-from-group.d.ts
|
|
4
|
+
declare const PlainRemoveCustomerFromGroupInput: z.ZodTypeAny;
|
|
5
|
+
declare const PlainRemoveCustomerFromGroupOutput: z.ZodTypeAny;
|
|
6
|
+
declare const plainRemoveCustomerFromGroup: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { plainRemoveCustomerFromGroup };
|
|
9
|
+
//# sourceMappingURL=remove-customer-from-group.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"remove-customer-from-group.d.mts","names":[],"sources":["../../src/actions/remove-customer-from-group.ts"],"mappings":";;;cAIa,iCAAA,EAAmC,CAAA,CAAE,UAMhD;AAAA,cAYW,kCAAA,EAAoC,CAAA,CAAE,UAEjD;AAAA,cAEW,4BAAA,gCAA4B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/remove-customer-from-group.ts
|
|
4
|
+
const PlainRemoveCustomerFromGroupInput = z.object({
|
|
5
|
+
customerId: z.string().describe("Plain customer ID (format: 'c_01ABC...') of the customer to remove from groups."),
|
|
6
|
+
customerGroupIdentifiers: z.array(z.object({
|
|
7
|
+
customerGroupId: z.string().describe("Plain internal ID of the customer group (e.g., 'cg_01ABC...').").optional(),
|
|
8
|
+
customerGroupKey: z.string().describe("Unique key of the customer group (e.g., 'premium_tier').").optional()
|
|
9
|
+
})).describe("List of customer group identifiers to remove the customer from. Must contain at least one identifier. Each identifier must specify either customerGroupId or customerGroupKey.")
|
|
10
|
+
});
|
|
11
|
+
const PlainRemoveCustomerFromGroup_MutationFieldErrorSchema = z.object({
|
|
12
|
+
type: z.enum([
|
|
13
|
+
"VALIDATION",
|
|
14
|
+
"REQUIRED",
|
|
15
|
+
"NOT_FOUND"
|
|
16
|
+
]).describe("Type of field error."),
|
|
17
|
+
field: z.string().describe("Name of the field where error occurred."),
|
|
18
|
+
message: z.string().describe("Technical error message.")
|
|
19
|
+
});
|
|
20
|
+
const PlainRemoveCustomerFromGroup_MutationErrorSchema = z.object({
|
|
21
|
+
code: z.string().describe("Fixed error code from the API."),
|
|
22
|
+
type: z.enum([
|
|
23
|
+
"VALIDATION",
|
|
24
|
+
"FORBIDDEN",
|
|
25
|
+
"INTERNAL"
|
|
26
|
+
]).describe("Type of error."),
|
|
27
|
+
fields: z.array(PlainRemoveCustomerFromGroup_MutationFieldErrorSchema).describe("List of field-specific errors, if any.").nullable().optional(),
|
|
28
|
+
message: z.string().describe("Technical error message.")
|
|
29
|
+
});
|
|
30
|
+
const plainRemoveCustomerFromGroup = action("PLAIN_REMOVE_CUSTOMER_FROM_GROUP", {
|
|
31
|
+
slug: "plain-remove-customer-from-group",
|
|
32
|
+
name: "Remove Customer From Group",
|
|
33
|
+
description: "Removes a customer from one or more customer groups in Plain. Use this action to revoke customer group memberships. The customer must be a member of the specified group(s) - attempting to remove a customer from a group they're not in will result in an error. Groups can be identified by either their Plain internal ID (customerGroupId) or their unique key (customerGroupKey). Common use cases: - Downgrade customer tier (e.g., remove from premium_tier group) - Remove customer from beta access groups - Clean up group memberships after customer status changes",
|
|
34
|
+
input: PlainRemoveCustomerFromGroupInput,
|
|
35
|
+
output: z.object({ error: PlainRemoveCustomerFromGroup_MutationErrorSchema.nullable().optional() })
|
|
36
|
+
});
|
|
37
|
+
//#endregion
|
|
38
|
+
export { plainRemoveCustomerFromGroup };
|
|
39
|
+
|
|
40
|
+
//# sourceMappingURL=remove-customer-from-group.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"remove-customer-from-group.mjs","names":[],"sources":["../../src/actions/remove-customer-from-group.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainRemoveCustomerFromGroupInput: z.ZodTypeAny = z.object({\n customerId: z.string().describe(\"Plain customer ID (format: 'c_01ABC...') of the customer to remove from groups.\"),\n customerGroupIdentifiers: z.array(z.object({\n customerGroupId: z.string().describe(\"Plain internal ID of the customer group (e.g., 'cg_01ABC...').\").optional(),\n customerGroupKey: z.string().describe(\"Unique key of the customer group (e.g., 'premium_tier').\").optional(),\n})).describe(\"List of customer group identifiers to remove the customer from. Must contain at least one identifier. Each identifier must specify either customerGroupId or customerGroupKey.\"),\n});\nconst PlainRemoveCustomerFromGroup_MutationFieldErrorSchema: z.ZodTypeAny = z.object({\n type: z.enum([\"VALIDATION\", \"REQUIRED\", \"NOT_FOUND\"]).describe(\"Type of field error.\"),\n field: z.string().describe(\"Name of the field where error occurred.\"),\n message: z.string().describe(\"Technical error message.\"),\n});\nconst PlainRemoveCustomerFromGroup_MutationErrorSchema: z.ZodTypeAny = z.object({\n code: z.string().describe(\"Fixed error code from the API.\"),\n type: z.enum([\"VALIDATION\", \"FORBIDDEN\", \"INTERNAL\"]).describe(\"Type of error.\"),\n fields: z.array(PlainRemoveCustomerFromGroup_MutationFieldErrorSchema).describe(\"List of field-specific errors, if any.\").nullable().optional(),\n message: z.string().describe(\"Technical error message.\"),\n});\nexport const PlainRemoveCustomerFromGroupOutput: z.ZodTypeAny = z.object({\n error: PlainRemoveCustomerFromGroup_MutationErrorSchema.nullable().optional(),\n});\n\nexport const plainRemoveCustomerFromGroup = action(\"PLAIN_REMOVE_CUSTOMER_FROM_GROUP\", {\n slug: \"plain-remove-customer-from-group\",\n name: \"Remove Customer From Group\",\n description: \"Removes a customer from one or more customer groups in Plain. Use this action to revoke customer group memberships. The customer must be a member of the specified group(s) - attempting to remove a customer from a group they're not in will result in an error. Groups can be identified by either their Plain internal ID (customerGroupId) or their unique key (customerGroupKey). Common use cases: - Downgrade customer tier (e.g., remove from premium_tier group) - Remove customer from beta access groups - Clean up group memberships after customer status changes\",\n input: PlainRemoveCustomerFromGroupInput,\n output: PlainRemoveCustomerFromGroupOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAkD,EAAE,OAAO;CACtE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF;CACjH,0BAA0B,EAAE,MAAM,EAAE,OAAO;EAC3C,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;EAChH,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CAC7G,CAAC,CAAC,CAAC,CAAC,SAAS,gLAAgL;AAC7L,CAAC;AACD,MAAM,wDAAsE,EAAE,OAAO;CACnF,MAAM,EAAE,KAAK;EAAC;EAAc;EAAY;CAAW,CAAC,CAAC,CAAC,SAAS,sBAAsB;CACrF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;CACpE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;AACzD,CAAC;AACD,MAAM,mDAAiE,EAAE,OAAO;CAC9E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;CAC1D,MAAM,EAAE,KAAK;EAAC;EAAc;EAAa;CAAU,CAAC,CAAC,CAAC,SAAS,gBAAgB;CAC/E,QAAQ,EAAE,MAAM,qDAAqD,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9I,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;AACzD,CAAC;AAKD,MAAa,+BAA+B,OAAO,oCAAoC;CACrF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT8D,EAAE,OAAO,EACvE,OAAO,iDAAiD,SAAS,CAAC,CAAC,SAAS,EAC9E,CAOU;AACV,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/run-graphql-query.ts
|
|
4
|
+
const PlainRunGraphqlQueryInput = zod.z.object({
|
|
5
|
+
query: zod.z.string().describe("A valid GraphQL query or mutation string for Plain API. Use this for any operation not covered by specific actions. Supports queries, mutations, inline fragments, and variables. DateTime fields (e.g., createdAt, updatedAt) are objects requiring subfield selection: use createdAt { iso8601 } — omitting subfields causes GRAPHQL_VALIDATION_FAILED. For paginated connections, request pageInfo { hasNextPage endCursor } and pass endCursor as the cursor argument in subsequent queries."),
|
|
6
|
+
variables: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Variables for the GraphQL operation. Keys must match variable names in the query (without '$'). Use empty dict {} if no variables needed. Date range filter values must be UTC-normalized; non-UTC timestamps in createdAt or updatedAt filters silently exclude boundary records.").optional()
|
|
7
|
+
});
|
|
8
|
+
const PlainRunGraphqlQuery_GraphqlErrorLocationSchema = zod.z.object({
|
|
9
|
+
line: zod.z.number().int().describe("The line number where the error occurred."),
|
|
10
|
+
column: zod.z.number().int().describe("The column number where the error occurred.")
|
|
11
|
+
}).describe("Indicates where in the GraphQL document the error occurred.");
|
|
12
|
+
const PlainRunGraphqlQuery_GraphqlErrorExtensionsSchema = zod.z.object({ code: zod.z.string().describe("Machine-readable error code (e.g., input_validation, forbidden, internal, not_found, customer_already_exists_with_email, attachment_file_size_too_large, insufficient_permissions, etc.). Plain documents 77+ specific error codes.").nullable().optional() }).describe("Additional arbitrary information about the error.");
|
|
13
|
+
const PlainRunGraphqlQuery_GraphqlErrorSchema = zod.z.object({
|
|
14
|
+
path: zod.z.array(zod.z.string()).describe("The path of the response field which experienced the error. This allows clients to identify which part of the requested data caused the error.").nullable().optional(),
|
|
15
|
+
message: zod.z.string().describe("A human-readable description of the error that occurred."),
|
|
16
|
+
locations: zod.z.array(PlainRunGraphqlQuery_GraphqlErrorLocationSchema).describe("Indicates where in the GraphQL document the error occurred.").nullable().optional(),
|
|
17
|
+
extensions: PlainRunGraphqlQuery_GraphqlErrorExtensionsSchema.nullable().optional()
|
|
18
|
+
}).describe("Information about an error that occurred during validation or execution.");
|
|
19
|
+
const PlainRunGraphqlQueryOutput = zod.z.object({
|
|
20
|
+
data: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Contains the result of the executed GraphQL operation. The structure mirrors the shape of the query. May contain partial data if errors occurred during field resolver execution. This field is not present if errors occurred before execution could start.").nullable().optional(),
|
|
21
|
+
errors: zod.z.array(PlainRunGraphqlQuery_GraphqlErrorSchema).describe("Contains information about any errors that occurred during validation or execution. This field is not present if no errors occurred. Each error contains message, locations, path, and extensions fields.").nullable().optional(),
|
|
22
|
+
extensions: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Optional field for additional metadata about the response. Content is at the discretion of the GraphQL implementation.").nullable().optional()
|
|
23
|
+
}).describe("Standard GraphQL response format containing data, errors, and optional extensions.");
|
|
24
|
+
const plainRunGraphqlQuery = require_action.action("PLAIN_RUN_GRAPHQL_QUERY", {
|
|
25
|
+
slug: "plain-run-graphql-query",
|
|
26
|
+
name: "Run GraphQL Query",
|
|
27
|
+
description: "Execute any GraphQL query or mutation against Plain API. Use when no specific action exists or for complex operations like thread timelines, advanced filtering, and custom data retrieval. Supports queries, mutations, fragments, and variables.",
|
|
28
|
+
input: PlainRunGraphqlQueryInput,
|
|
29
|
+
output: PlainRunGraphqlQueryOutput
|
|
30
|
+
});
|
|
31
|
+
//#endregion
|
|
32
|
+
exports.plainRunGraphqlQuery = plainRunGraphqlQuery;
|
|
33
|
+
|
|
34
|
+
//# sourceMappingURL=run-graphql-query.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run-graphql-query.cjs","names":["z","action"],"sources":["../../src/actions/run-graphql-query.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainRunGraphqlQueryInput: z.ZodTypeAny = z.object({\n query: z.string().describe(\"A valid GraphQL query or mutation string for Plain API. Use this for any operation not covered by specific actions. Supports queries, mutations, inline fragments, and variables. DateTime fields (e.g., createdAt, updatedAt) are objects requiring subfield selection: use createdAt { iso8601 } — omitting subfields causes GRAPHQL_VALIDATION_FAILED. For paginated connections, request pageInfo { hasNextPage endCursor } and pass endCursor as the cursor argument in subsequent queries.\"),\n variables: z.record(z.string(), z.unknown()).describe(\"Variables for the GraphQL operation. Keys must match variable names in the query (without '$'). Use empty dict {} if no variables needed. Date range filter values must be UTC-normalized; non-UTC timestamps in createdAt or updatedAt filters silently exclude boundary records.\").optional(),\n});\nconst PlainRunGraphqlQuery_GraphqlErrorLocationSchema: z.ZodTypeAny = z.object({\n line: z.number().int().describe(\"The line number where the error occurred.\"),\n column: z.number().int().describe(\"The column number where the error occurred.\"),\n}).describe(\"Indicates where in the GraphQL document the error occurred.\");\nconst PlainRunGraphqlQuery_GraphqlErrorExtensionsSchema: z.ZodTypeAny = z.object({\n code: z.string().describe(\"Machine-readable error code (e.g., input_validation, forbidden, internal, not_found, customer_already_exists_with_email, attachment_file_size_too_large, insufficient_permissions, etc.). Plain documents 77+ specific error codes.\").nullable().optional(),\n}).describe(\"Additional arbitrary information about the error.\");\nconst PlainRunGraphqlQuery_GraphqlErrorSchema: z.ZodTypeAny = z.object({\n path: z.array(z.string()).describe(\"The path of the response field which experienced the error. This allows clients to identify which part of the requested data caused the error.\").nullable().optional(),\n message: z.string().describe(\"A human-readable description of the error that occurred.\"),\n locations: z.array(PlainRunGraphqlQuery_GraphqlErrorLocationSchema).describe(\"Indicates where in the GraphQL document the error occurred.\").nullable().optional(),\n extensions: PlainRunGraphqlQuery_GraphqlErrorExtensionsSchema.nullable().optional(),\n}).describe(\"Information about an error that occurred during validation or execution.\");\nexport const PlainRunGraphqlQueryOutput: z.ZodTypeAny = z.object({\n data: z.record(z.string(), z.unknown()).describe(\"Contains the result of the executed GraphQL operation. The structure mirrors the shape of the query. May contain partial data if errors occurred during field resolver execution. This field is not present if errors occurred before execution could start.\").nullable().optional(),\n errors: z.array(PlainRunGraphqlQuery_GraphqlErrorSchema).describe(\"Contains information about any errors that occurred during validation or execution. This field is not present if no errors occurred. Each error contains message, locations, path, and extensions fields.\").nullable().optional(),\n extensions: z.record(z.string(), z.unknown()).describe(\"Optional field for additional metadata about the response. Content is at the discretion of the GraphQL implementation.\").nullable().optional(),\n}).describe(\"Standard GraphQL response format containing data, errors, and optional extensions.\");\n\nexport const plainRunGraphqlQuery = action(\"PLAIN_RUN_GRAPHQL_QUERY\", {\n slug: \"plain-run-graphql-query\",\n name: \"Run GraphQL Query\",\n description: \"Execute any GraphQL query or mutation against Plain API. Use when no specific action exists or for complex operations like thread timelines, advanced filtering, and custom data retrieval. Supports queries, mutations, fragments, and variables.\",\n input: PlainRunGraphqlQueryInput,\n output: PlainRunGraphqlQueryOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA0CA,IAAAA,EAAE,OAAO;CAC9D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,keAAke;CAC7f,WAAWA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oRAAoR,CAAC,CAAC,SAAS;AACvV,CAAC;AACD,MAAM,kDAAgEA,IAAAA,EAAE,OAAO;CAC7E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C;CAC3E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C;AACjF,CAAC,CAAC,CAAC,SAAS,6DAA6D;AACzE,MAAM,oDAAkEA,IAAAA,EAAE,OAAO,EAC/E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qOAAqO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACvR,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAM,0CAAwDA,IAAAA,EAAE,OAAO;CACrE,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gJAAgJ,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzM,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D;CACvF,WAAWA,IAAAA,EAAE,MAAM,+CAA+C,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChK,YAAY,kDAAkD,SAAS,CAAC,CAAC,SAAS;AACpF,CAAC,CAAC,CAAC,SAAS,0EAA0E;AACtF,MAAa,6BAA2CA,IAAAA,EAAE,OAAO;CAC/D,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8PAA8P,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrU,QAAQA,IAAAA,EAAE,MAAM,uCAAuC,CAAC,CAAC,SAAS,2MAA2M,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnS,YAAYA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wHAAwH,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvM,CAAC,CAAC,CAAC,SAAS,oFAAoF;AAEhG,MAAa,uBAAuBC,eAAAA,OAAO,2BAA2B;CACpE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/run-graphql-query.d.ts
|
|
4
|
+
declare const PlainRunGraphqlQueryInput: z.ZodTypeAny;
|
|
5
|
+
declare const PlainRunGraphqlQueryOutput: z.ZodTypeAny;
|
|
6
|
+
declare const plainRunGraphqlQuery: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { plainRunGraphqlQuery };
|
|
9
|
+
//# sourceMappingURL=run-graphql-query.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run-graphql-query.d.cts","names":[],"sources":["../../src/actions/run-graphql-query.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAGxC;AAAA,cAcW,0BAAA,EAA4B,CAAA,CAAE,UAIsD;AAAA,cAEpF,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/run-graphql-query.d.ts
|
|
4
|
+
declare const PlainRunGraphqlQueryInput: z.ZodTypeAny;
|
|
5
|
+
declare const PlainRunGraphqlQueryOutput: z.ZodTypeAny;
|
|
6
|
+
declare const plainRunGraphqlQuery: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { plainRunGraphqlQuery };
|
|
9
|
+
//# sourceMappingURL=run-graphql-query.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run-graphql-query.d.mts","names":[],"sources":["../../src/actions/run-graphql-query.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAGxC;AAAA,cAcW,0BAAA,EAA4B,CAAA,CAAE,UAIsD;AAAA,cAEpF,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/run-graphql-query.ts
|
|
4
|
+
const PlainRunGraphqlQueryInput = z.object({
|
|
5
|
+
query: z.string().describe("A valid GraphQL query or mutation string for Plain API. Use this for any operation not covered by specific actions. Supports queries, mutations, inline fragments, and variables. DateTime fields (e.g., createdAt, updatedAt) are objects requiring subfield selection: use createdAt { iso8601 } — omitting subfields causes GRAPHQL_VALIDATION_FAILED. For paginated connections, request pageInfo { hasNextPage endCursor } and pass endCursor as the cursor argument in subsequent queries."),
|
|
6
|
+
variables: z.record(z.string(), z.unknown()).describe("Variables for the GraphQL operation. Keys must match variable names in the query (without '$'). Use empty dict {} if no variables needed. Date range filter values must be UTC-normalized; non-UTC timestamps in createdAt or updatedAt filters silently exclude boundary records.").optional()
|
|
7
|
+
});
|
|
8
|
+
const PlainRunGraphqlQuery_GraphqlErrorLocationSchema = z.object({
|
|
9
|
+
line: z.number().int().describe("The line number where the error occurred."),
|
|
10
|
+
column: z.number().int().describe("The column number where the error occurred.")
|
|
11
|
+
}).describe("Indicates where in the GraphQL document the error occurred.");
|
|
12
|
+
const PlainRunGraphqlQuery_GraphqlErrorExtensionsSchema = z.object({ code: z.string().describe("Machine-readable error code (e.g., input_validation, forbidden, internal, not_found, customer_already_exists_with_email, attachment_file_size_too_large, insufficient_permissions, etc.). Plain documents 77+ specific error codes.").nullable().optional() }).describe("Additional arbitrary information about the error.");
|
|
13
|
+
const PlainRunGraphqlQuery_GraphqlErrorSchema = z.object({
|
|
14
|
+
path: z.array(z.string()).describe("The path of the response field which experienced the error. This allows clients to identify which part of the requested data caused the error.").nullable().optional(),
|
|
15
|
+
message: z.string().describe("A human-readable description of the error that occurred."),
|
|
16
|
+
locations: z.array(PlainRunGraphqlQuery_GraphqlErrorLocationSchema).describe("Indicates where in the GraphQL document the error occurred.").nullable().optional(),
|
|
17
|
+
extensions: PlainRunGraphqlQuery_GraphqlErrorExtensionsSchema.nullable().optional()
|
|
18
|
+
}).describe("Information about an error that occurred during validation or execution.");
|
|
19
|
+
const plainRunGraphqlQuery = action("PLAIN_RUN_GRAPHQL_QUERY", {
|
|
20
|
+
slug: "plain-run-graphql-query",
|
|
21
|
+
name: "Run GraphQL Query",
|
|
22
|
+
description: "Execute any GraphQL query or mutation against Plain API. Use when no specific action exists or for complex operations like thread timelines, advanced filtering, and custom data retrieval. Supports queries, mutations, fragments, and variables.",
|
|
23
|
+
input: PlainRunGraphqlQueryInput,
|
|
24
|
+
output: z.object({
|
|
25
|
+
data: z.record(z.string(), z.unknown()).describe("Contains the result of the executed GraphQL operation. The structure mirrors the shape of the query. May contain partial data if errors occurred during field resolver execution. This field is not present if errors occurred before execution could start.").nullable().optional(),
|
|
26
|
+
errors: z.array(PlainRunGraphqlQuery_GraphqlErrorSchema).describe("Contains information about any errors that occurred during validation or execution. This field is not present if no errors occurred. Each error contains message, locations, path, and extensions fields.").nullable().optional(),
|
|
27
|
+
extensions: z.record(z.string(), z.unknown()).describe("Optional field for additional metadata about the response. Content is at the discretion of the GraphQL implementation.").nullable().optional()
|
|
28
|
+
}).describe("Standard GraphQL response format containing data, errors, and optional extensions.")
|
|
29
|
+
});
|
|
30
|
+
//#endregion
|
|
31
|
+
export { plainRunGraphqlQuery };
|
|
32
|
+
|
|
33
|
+
//# sourceMappingURL=run-graphql-query.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run-graphql-query.mjs","names":[],"sources":["../../src/actions/run-graphql-query.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainRunGraphqlQueryInput: z.ZodTypeAny = z.object({\n query: z.string().describe(\"A valid GraphQL query or mutation string for Plain API. Use this for any operation not covered by specific actions. Supports queries, mutations, inline fragments, and variables. DateTime fields (e.g., createdAt, updatedAt) are objects requiring subfield selection: use createdAt { iso8601 } — omitting subfields causes GRAPHQL_VALIDATION_FAILED. For paginated connections, request pageInfo { hasNextPage endCursor } and pass endCursor as the cursor argument in subsequent queries.\"),\n variables: z.record(z.string(), z.unknown()).describe(\"Variables for the GraphQL operation. Keys must match variable names in the query (without '$'). Use empty dict {} if no variables needed. Date range filter values must be UTC-normalized; non-UTC timestamps in createdAt or updatedAt filters silently exclude boundary records.\").optional(),\n});\nconst PlainRunGraphqlQuery_GraphqlErrorLocationSchema: z.ZodTypeAny = z.object({\n line: z.number().int().describe(\"The line number where the error occurred.\"),\n column: z.number().int().describe(\"The column number where the error occurred.\"),\n}).describe(\"Indicates where in the GraphQL document the error occurred.\");\nconst PlainRunGraphqlQuery_GraphqlErrorExtensionsSchema: z.ZodTypeAny = z.object({\n code: z.string().describe(\"Machine-readable error code (e.g., input_validation, forbidden, internal, not_found, customer_already_exists_with_email, attachment_file_size_too_large, insufficient_permissions, etc.). Plain documents 77+ specific error codes.\").nullable().optional(),\n}).describe(\"Additional arbitrary information about the error.\");\nconst PlainRunGraphqlQuery_GraphqlErrorSchema: z.ZodTypeAny = z.object({\n path: z.array(z.string()).describe(\"The path of the response field which experienced the error. This allows clients to identify which part of the requested data caused the error.\").nullable().optional(),\n message: z.string().describe(\"A human-readable description of the error that occurred.\"),\n locations: z.array(PlainRunGraphqlQuery_GraphqlErrorLocationSchema).describe(\"Indicates where in the GraphQL document the error occurred.\").nullable().optional(),\n extensions: PlainRunGraphqlQuery_GraphqlErrorExtensionsSchema.nullable().optional(),\n}).describe(\"Information about an error that occurred during validation or execution.\");\nexport const PlainRunGraphqlQueryOutput: z.ZodTypeAny = z.object({\n data: z.record(z.string(), z.unknown()).describe(\"Contains the result of the executed GraphQL operation. The structure mirrors the shape of the query. May contain partial data if errors occurred during field resolver execution. This field is not present if errors occurred before execution could start.\").nullable().optional(),\n errors: z.array(PlainRunGraphqlQuery_GraphqlErrorSchema).describe(\"Contains information about any errors that occurred during validation or execution. This field is not present if no errors occurred. Each error contains message, locations, path, and extensions fields.\").nullable().optional(),\n extensions: z.record(z.string(), z.unknown()).describe(\"Optional field for additional metadata about the response. Content is at the discretion of the GraphQL implementation.\").nullable().optional(),\n}).describe(\"Standard GraphQL response format containing data, errors, and optional extensions.\");\n\nexport const plainRunGraphqlQuery = action(\"PLAIN_RUN_GRAPHQL_QUERY\", {\n slug: \"plain-run-graphql-query\",\n name: \"Run GraphQL Query\",\n description: \"Execute any GraphQL query or mutation against Plain API. Use when no specific action exists or for complex operations like thread timelines, advanced filtering, and custom data retrieval. Supports queries, mutations, fragments, and variables.\",\n input: PlainRunGraphqlQueryInput,\n output: PlainRunGraphqlQueryOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA0C,EAAE,OAAO;CAC9D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,keAAke;CAC7f,WAAW,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oRAAoR,CAAC,CAAC,SAAS;AACvV,CAAC;AACD,MAAM,kDAAgE,EAAE,OAAO;CAC7E,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C;CAC3E,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C;AACjF,CAAC,CAAC,CAAC,SAAS,6DAA6D;AACzE,MAAM,oDAAkE,EAAE,OAAO,EAC/E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qOAAqO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACvR,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAM,0CAAwD,EAAE,OAAO;CACrE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gJAAgJ,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzM,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D;CACvF,WAAW,EAAE,MAAM,+CAA+C,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChK,YAAY,kDAAkD,SAAS,CAAC,CAAC,SAAS;AACpF,CAAC,CAAC,CAAC,SAAS,0EAA0E;AAOtF,MAAa,uBAAuB,OAAO,2BAA2B;CACpE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAXsD,EAAE,OAAO;EAC/D,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8PAA8P,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrU,QAAQ,EAAE,MAAM,uCAAuC,CAAC,CAAC,SAAS,2MAA2M,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnS,YAAY,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wHAAwH,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvM,CAAC,CAAC,CAAC,SAAS,oFAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/send-message.ts
|
|
4
|
+
const PlainSendMessageInput = zod.z.object({
|
|
5
|
+
threadId: zod.z.string().describe("Unique identifier of the thread to reply to"),
|
|
6
|
+
textContent: zod.z.string().describe("Plain text content of the message. If you want to send markdown-formatted content, provide the same content here and in markdownContent."),
|
|
7
|
+
impersonation: zod.z.object({ asCustomer: zod.z.object({ customerIdentifier: zod.z.object({
|
|
8
|
+
customerId: zod.z.string().describe("Plain customer ID to identify the customer").optional(),
|
|
9
|
+
externalId: zod.z.string().describe("External ID for the customer").optional(),
|
|
10
|
+
emailAddress: zod.z.string().describe("Email address of the customer").optional()
|
|
11
|
+
}).describe("Identifier of the customer to impersonate") }).describe("Send the message as this customer") }).describe("Impersonate a customer when sending the message").optional(),
|
|
12
|
+
markdownContent: zod.z.string().describe("Optional markdown-formatted content of the message. If provided, textContent should contain the plain text version of the same content.").optional(),
|
|
13
|
+
channelSpecificOptions: zod.z.object({ email: zod.z.object({
|
|
14
|
+
hiddenRecipients: zod.z.array(zod.z.object({
|
|
15
|
+
name: zod.z.string().describe("Name of the recipient").optional(),
|
|
16
|
+
email: zod.z.string().describe("Email address of the recipient")
|
|
17
|
+
})).describe("List of BCC recipients").optional(),
|
|
18
|
+
additionalRecipients: zod.z.array(zod.z.object({
|
|
19
|
+
name: zod.z.string().describe("Name of the recipient").optional(),
|
|
20
|
+
email: zod.z.string().describe("Email address of the recipient")
|
|
21
|
+
})).describe("List of CC recipients").optional()
|
|
22
|
+
}).describe("Email-specific options like CC/BCC").optional() }).describe("Channel-specific options such as email CC/BCC recipients").optional()
|
|
23
|
+
});
|
|
24
|
+
const PlainSendMessage_ReplyToThreadOutputSchema = zod.z.object({ __typename: zod.z.string().describe("GraphQL type name, typically 'ReplyToThreadOutput'") });
|
|
25
|
+
const PlainSendMessage_SendMessagePayloadSchema = zod.z.object({ replyToThread: PlainSendMessage_ReplyToThreadOutputSchema.nullable() });
|
|
26
|
+
const PlainSendMessageOutput = zod.z.object({ data: PlainSendMessage_SendMessagePayloadSchema.nullable() });
|
|
27
|
+
const plainSendMessage = require_action.action("PLAIN_SEND_MESSAGE", {
|
|
28
|
+
slug: "plain-send-message",
|
|
29
|
+
name: "Send Message",
|
|
30
|
+
description: "Tool to send a new message within a thread. Use after identifying the thread and preparing message content.",
|
|
31
|
+
input: PlainSendMessageInput,
|
|
32
|
+
output: PlainSendMessageOutput
|
|
33
|
+
});
|
|
34
|
+
//#endregion
|
|
35
|
+
exports.plainSendMessage = plainSendMessage;
|
|
36
|
+
|
|
37
|
+
//# sourceMappingURL=send-message.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"send-message.cjs","names":["z","action"],"sources":["../../src/actions/send-message.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainSendMessageInput: z.ZodTypeAny = z.object({\n threadId: z.string().describe(\"Unique identifier of the thread to reply to\"),\n textContent: z.string().describe(\"Plain text content of the message. If you want to send markdown-formatted content, provide the same content here and in markdownContent.\"),\n impersonation: z.object({\n asCustomer: z.object({\n customerIdentifier: z.object({\n customerId: z.string().describe(\"Plain customer ID to identify the customer\").optional(),\n externalId: z.string().describe(\"External ID for the customer\").optional(),\n emailAddress: z.string().describe(\"Email address of the customer\").optional(),\n}).describe(\"Identifier of the customer to impersonate\"),\n}).describe(\"Send the message as this customer\"),\n}).describe(\"Impersonate a customer when sending the message\").optional(),\n markdownContent: z.string().describe(\"Optional markdown-formatted content of the message. If provided, textContent should contain the plain text version of the same content.\").optional(),\n channelSpecificOptions: z.object({\n email: z.object({\n hiddenRecipients: z.array(z.object({\n name: z.string().describe(\"Name of the recipient\").optional(),\n email: z.string().describe(\"Email address of the recipient\"),\n})).describe(\"List of BCC recipients\").optional(),\n additionalRecipients: z.array(z.object({\n name: z.string().describe(\"Name of the recipient\").optional(),\n email: z.string().describe(\"Email address of the recipient\"),\n})).describe(\"List of CC recipients\").optional(),\n}).describe(\"Email-specific options like CC/BCC\").optional(),\n}).describe(\"Channel-specific options such as email CC/BCC recipients\").optional(),\n});\nconst PlainSendMessage_ReplyToThreadOutputSchema: z.ZodTypeAny = z.object({\n __typename: z.string().describe(\"GraphQL type name, typically 'ReplyToThreadOutput'\"),\n});\nconst PlainSendMessage_SendMessagePayloadSchema: z.ZodTypeAny = z.object({\n replyToThread: PlainSendMessage_ReplyToThreadOutputSchema.nullable(),\n});\nexport const PlainSendMessageOutput: z.ZodTypeAny = z.object({\n data: PlainSendMessage_SendMessagePayloadSchema.nullable(),\n});\n\nexport const plainSendMessage = action(\"PLAIN_SEND_MESSAGE\", {\n slug: \"plain-send-message\",\n name: \"Send Message\",\n description: \"Tool to send a new message within a thread. Use after identifying the thread and preparing message content.\",\n input: PlainSendMessageInput,\n output: PlainSendMessageOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAsCA,IAAAA,EAAE,OAAO;CAC1D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;CAC3E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0IAA0I;CAC3K,eAAeA,IAAAA,EAAE,OAAO,EACxB,YAAYA,IAAAA,EAAE,OAAO,EACrB,oBAAoBA,IAAAA,EAAE,OAAO;EAC7B,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;EACvF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;EACzE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAC9E,CAAC,CAAC,CAAC,SAAS,2CAA2C,EACvD,CAAC,CAAC,CAAC,SAAS,mCAAmC,EAC/C,CAAC,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CACtE,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yIAAyI,CAAC,CAAC,SAAS;CACzL,wBAAwBA,IAAAA,EAAE,OAAO,EACjC,OAAOA,IAAAA,EAAE,OAAO;EAChB,kBAAkBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;GACnC,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;GAC5D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;EAC7D,CAAC,CAAC,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;EAC9C,sBAAsBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;GACvC,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;GAC5D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;EAC7D,CAAC,CAAC,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAC/C,CAAC,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,EAC3D,CAAC,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;AACjF,CAAC;AACD,MAAM,6CAA2DA,IAAAA,EAAE,OAAO,EACxE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,EACtF,CAAC;AACD,MAAM,4CAA0DA,IAAAA,EAAE,OAAO,EACvE,eAAe,2CAA2C,SAAS,EACrE,CAAC;AACD,MAAa,yBAAuCA,IAAAA,EAAE,OAAO,EAC3D,MAAM,0CAA0C,SAAS,EAC3D,CAAC;AAED,MAAa,mBAAmBC,eAAAA,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/send-message.d.ts
|
|
4
|
+
declare const PlainSendMessageInput: z.ZodTypeAny;
|
|
5
|
+
declare const PlainSendMessageOutput: z.ZodTypeAny;
|
|
6
|
+
declare const plainSendMessage: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { plainSendMessage };
|
|
9
|
+
//# sourceMappingURL=send-message.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"send-message.d.cts","names":[],"sources":["../../src/actions/send-message.ts"],"mappings":";;;cAIa,qBAAA,EAAuB,CAAA,CAAE,UAyBpC;AAAA,cAOW,sBAAA,EAAwB,CAAA,CAAE,UAErC;AAAA,cAEW,gBAAA,gCAAgB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/send-message.d.ts
|
|
4
|
+
declare const PlainSendMessageInput: z.ZodTypeAny;
|
|
5
|
+
declare const PlainSendMessageOutput: z.ZodTypeAny;
|
|
6
|
+
declare const plainSendMessage: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { plainSendMessage };
|
|
9
|
+
//# sourceMappingURL=send-message.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"send-message.d.mts","names":[],"sources":["../../src/actions/send-message.ts"],"mappings":";;;cAIa,qBAAA,EAAuB,CAAA,CAAE,UAyBpC;AAAA,cAOW,sBAAA,EAAwB,CAAA,CAAE,UAErC;AAAA,cAEW,gBAAA,gCAAgB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/send-message.ts
|
|
4
|
+
const PlainSendMessageInput = z.object({
|
|
5
|
+
threadId: z.string().describe("Unique identifier of the thread to reply to"),
|
|
6
|
+
textContent: z.string().describe("Plain text content of the message. If you want to send markdown-formatted content, provide the same content here and in markdownContent."),
|
|
7
|
+
impersonation: z.object({ asCustomer: z.object({ customerIdentifier: z.object({
|
|
8
|
+
customerId: z.string().describe("Plain customer ID to identify the customer").optional(),
|
|
9
|
+
externalId: z.string().describe("External ID for the customer").optional(),
|
|
10
|
+
emailAddress: z.string().describe("Email address of the customer").optional()
|
|
11
|
+
}).describe("Identifier of the customer to impersonate") }).describe("Send the message as this customer") }).describe("Impersonate a customer when sending the message").optional(),
|
|
12
|
+
markdownContent: z.string().describe("Optional markdown-formatted content of the message. If provided, textContent should contain the plain text version of the same content.").optional(),
|
|
13
|
+
channelSpecificOptions: z.object({ email: z.object({
|
|
14
|
+
hiddenRecipients: z.array(z.object({
|
|
15
|
+
name: z.string().describe("Name of the recipient").optional(),
|
|
16
|
+
email: z.string().describe("Email address of the recipient")
|
|
17
|
+
})).describe("List of BCC recipients").optional(),
|
|
18
|
+
additionalRecipients: z.array(z.object({
|
|
19
|
+
name: z.string().describe("Name of the recipient").optional(),
|
|
20
|
+
email: z.string().describe("Email address of the recipient")
|
|
21
|
+
})).describe("List of CC recipients").optional()
|
|
22
|
+
}).describe("Email-specific options like CC/BCC").optional() }).describe("Channel-specific options such as email CC/BCC recipients").optional()
|
|
23
|
+
});
|
|
24
|
+
const PlainSendMessage_ReplyToThreadOutputSchema = z.object({ __typename: z.string().describe("GraphQL type name, typically 'ReplyToThreadOutput'") });
|
|
25
|
+
const PlainSendMessage_SendMessagePayloadSchema = z.object({ replyToThread: PlainSendMessage_ReplyToThreadOutputSchema.nullable() });
|
|
26
|
+
const plainSendMessage = action("PLAIN_SEND_MESSAGE", {
|
|
27
|
+
slug: "plain-send-message",
|
|
28
|
+
name: "Send Message",
|
|
29
|
+
description: "Tool to send a new message within a thread. Use after identifying the thread and preparing message content.",
|
|
30
|
+
input: PlainSendMessageInput,
|
|
31
|
+
output: z.object({ data: PlainSendMessage_SendMessagePayloadSchema.nullable() })
|
|
32
|
+
});
|
|
33
|
+
//#endregion
|
|
34
|
+
export { plainSendMessage };
|
|
35
|
+
|
|
36
|
+
//# sourceMappingURL=send-message.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"send-message.mjs","names":[],"sources":["../../src/actions/send-message.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainSendMessageInput: z.ZodTypeAny = z.object({\n threadId: z.string().describe(\"Unique identifier of the thread to reply to\"),\n textContent: z.string().describe(\"Plain text content of the message. If you want to send markdown-formatted content, provide the same content here and in markdownContent.\"),\n impersonation: z.object({\n asCustomer: z.object({\n customerIdentifier: z.object({\n customerId: z.string().describe(\"Plain customer ID to identify the customer\").optional(),\n externalId: z.string().describe(\"External ID for the customer\").optional(),\n emailAddress: z.string().describe(\"Email address of the customer\").optional(),\n}).describe(\"Identifier of the customer to impersonate\"),\n}).describe(\"Send the message as this customer\"),\n}).describe(\"Impersonate a customer when sending the message\").optional(),\n markdownContent: z.string().describe(\"Optional markdown-formatted content of the message. If provided, textContent should contain the plain text version of the same content.\").optional(),\n channelSpecificOptions: z.object({\n email: z.object({\n hiddenRecipients: z.array(z.object({\n name: z.string().describe(\"Name of the recipient\").optional(),\n email: z.string().describe(\"Email address of the recipient\"),\n})).describe(\"List of BCC recipients\").optional(),\n additionalRecipients: z.array(z.object({\n name: z.string().describe(\"Name of the recipient\").optional(),\n email: z.string().describe(\"Email address of the recipient\"),\n})).describe(\"List of CC recipients\").optional(),\n}).describe(\"Email-specific options like CC/BCC\").optional(),\n}).describe(\"Channel-specific options such as email CC/BCC recipients\").optional(),\n});\nconst PlainSendMessage_ReplyToThreadOutputSchema: z.ZodTypeAny = z.object({\n __typename: z.string().describe(\"GraphQL type name, typically 'ReplyToThreadOutput'\"),\n});\nconst PlainSendMessage_SendMessagePayloadSchema: z.ZodTypeAny = z.object({\n replyToThread: PlainSendMessage_ReplyToThreadOutputSchema.nullable(),\n});\nexport const PlainSendMessageOutput: z.ZodTypeAny = z.object({\n data: PlainSendMessage_SendMessagePayloadSchema.nullable(),\n});\n\nexport const plainSendMessage = action(\"PLAIN_SEND_MESSAGE\", {\n slug: \"plain-send-message\",\n name: \"Send Message\",\n description: \"Tool to send a new message within a thread. Use after identifying the thread and preparing message content.\",\n input: PlainSendMessageInput,\n output: PlainSendMessageOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAsC,EAAE,OAAO;CAC1D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;CAC3E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,0IAA0I;CAC3K,eAAe,EAAE,OAAO,EACxB,YAAY,EAAE,OAAO,EACrB,oBAAoB,EAAE,OAAO;EAC7B,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;EACvF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;EACzE,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAC9E,CAAC,CAAC,CAAC,SAAS,2CAA2C,EACvD,CAAC,CAAC,CAAC,SAAS,mCAAmC,EAC/C,CAAC,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CACtE,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,yIAAyI,CAAC,CAAC,SAAS;CACzL,wBAAwB,EAAE,OAAO,EACjC,OAAO,EAAE,OAAO;EAChB,kBAAkB,EAAE,MAAM,EAAE,OAAO;GACnC,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;GAC5D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;EAC7D,CAAC,CAAC,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;EAC9C,sBAAsB,EAAE,MAAM,EAAE,OAAO;GACvC,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;GAC5D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;EAC7D,CAAC,CAAC,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAC/C,CAAC,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,EAC3D,CAAC,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;AACjF,CAAC;AACD,MAAM,6CAA2D,EAAE,OAAO,EACxE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,EACtF,CAAC;AACD,MAAM,4CAA0D,EAAE,OAAO,EACvE,eAAe,2CAA2C,SAAS,EACrE,CAAC;AAKD,MAAa,mBAAmB,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATkD,EAAE,OAAO,EAC3D,MAAM,0CAA0C,SAAS,EAC3D,CAOU;AACV,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/update-company.ts
|
|
4
|
+
const PlainUpdateCompanyInput = zod.z.object({
|
|
5
|
+
name: zod.z.string().describe("Name for the company."),
|
|
6
|
+
companyId: zod.z.string().describe("Existing company ID to update (format: 'co_...'). Provide either companyId OR companyDomainName.").optional(),
|
|
7
|
+
domainName: zod.z.string().describe("Domain name for the company (e.g., 'acme.com')."),
|
|
8
|
+
contractValue: zod.z.number().int().describe("Optional contract value in cents. Must be non-negative.").optional(),
|
|
9
|
+
companyDomainName: zod.z.string().describe("Company domain name for lookup/upsert (e.g., 'acme.com'). Provide either companyId OR companyDomainName.").optional(),
|
|
10
|
+
accountOwnerUserId: zod.z.string().describe("ID of the user to assign as account owner.").optional()
|
|
11
|
+
});
|
|
12
|
+
const PlainUpdateCompany_MutationFieldErrorSchema = zod.z.object({
|
|
13
|
+
type: zod.z.string().describe("Category of the field error (e.g., VALIDATION, REQUIRED, NOT_FOUND)."),
|
|
14
|
+
field: zod.z.string().describe("Name of the input field with an error."),
|
|
15
|
+
message: zod.z.string().describe("Technical description of the field error.")
|
|
16
|
+
});
|
|
17
|
+
const PlainUpdateCompany_MutationErrorSchema = zod.z.object({
|
|
18
|
+
code: zod.z.string().describe("Fixed error code for handling specific errors."),
|
|
19
|
+
type: zod.z.string().describe("Category of the error (e.g., VALIDATION, FORBIDDEN, INTERNAL)."),
|
|
20
|
+
fields: zod.z.array(PlainUpdateCompany_MutationFieldErrorSchema).describe("List of field-level errors if validation failed.").nullable().optional(),
|
|
21
|
+
message: zod.z.string().describe("Technical description of the mutation error.")
|
|
22
|
+
});
|
|
23
|
+
const PlainUpdateCompany_CreatedAtSchema = zod.z.object({ iso8601: zod.z.string().describe("ISO 8601 timestamp of creation.") });
|
|
24
|
+
const PlainUpdateCompany_CompanySchema = zod.z.object({
|
|
25
|
+
id: zod.z.string().describe("Unique ID of the company."),
|
|
26
|
+
name: zod.z.string().describe("Name of the company."),
|
|
27
|
+
createdAt: PlainUpdateCompany_CreatedAtSchema.nullable(),
|
|
28
|
+
domainName: zod.z.string().describe("Domain name of the company.")
|
|
29
|
+
});
|
|
30
|
+
const PlainUpdateCompanyOutput = zod.z.object({
|
|
31
|
+
error: PlainUpdateCompany_MutationErrorSchema.nullable().optional(),
|
|
32
|
+
result: zod.z.string().describe("Upsert result: 'CREATED' or 'UPDATED'."),
|
|
33
|
+
company: PlainUpdateCompany_CompanySchema.nullable()
|
|
34
|
+
});
|
|
35
|
+
const plainUpdateCompany = require_action.action("PLAIN_UPDATE_COMPANY", {
|
|
36
|
+
slug: "plain-update-company",
|
|
37
|
+
name: "Update Company",
|
|
38
|
+
description: "Upserts (creates or updates) a company in Plain. Provide either companyId (for updating an existing company by ID) or companyDomainName (for upserting by domain). Use this to create new companies, update existing company details (name, domain, contract value), or assign account owners.",
|
|
39
|
+
input: PlainUpdateCompanyInput,
|
|
40
|
+
output: PlainUpdateCompanyOutput
|
|
41
|
+
});
|
|
42
|
+
//#endregion
|
|
43
|
+
exports.plainUpdateCompany = plainUpdateCompany;
|
|
44
|
+
|
|
45
|
+
//# sourceMappingURL=update-company.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-company.cjs","names":["z","action"],"sources":["../../src/actions/update-company.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainUpdateCompanyInput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name for the company.\"),\n companyId: z.string().describe(\"Existing company ID to update (format: 'co_...'). Provide either companyId OR companyDomainName.\").optional(),\n domainName: z.string().describe(\"Domain name for the company (e.g., 'acme.com').\"),\n contractValue: z.number().int().describe(\"Optional contract value in cents. Must be non-negative.\").optional(),\n companyDomainName: z.string().describe(\"Company domain name for lookup/upsert (e.g., 'acme.com'). Provide either companyId OR companyDomainName.\").optional(),\n accountOwnerUserId: z.string().describe(\"ID of the user to assign as account owner.\").optional(),\n});\nconst PlainUpdateCompany_MutationFieldErrorSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Category of the field error (e.g., VALIDATION, REQUIRED, NOT_FOUND).\"),\n field: z.string().describe(\"Name of the input field with an error.\"),\n message: z.string().describe(\"Technical description of the field error.\"),\n});\nconst PlainUpdateCompany_MutationErrorSchema: z.ZodTypeAny = z.object({\n code: z.string().describe(\"Fixed error code for handling specific errors.\"),\n type: z.string().describe(\"Category of the error (e.g., VALIDATION, FORBIDDEN, INTERNAL).\"),\n fields: z.array(PlainUpdateCompany_MutationFieldErrorSchema).describe(\"List of field-level errors if validation failed.\").nullable().optional(),\n message: z.string().describe(\"Technical description of the mutation error.\"),\n});\nconst PlainUpdateCompany_CreatedAtSchema: z.ZodTypeAny = z.object({\n iso8601: z.string().describe(\"ISO 8601 timestamp of creation.\"),\n});\nconst PlainUpdateCompany_CompanySchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique ID of the company.\"),\n name: z.string().describe(\"Name of the company.\"),\n createdAt: PlainUpdateCompany_CreatedAtSchema.nullable(),\n domainName: z.string().describe(\"Domain name of the company.\"),\n});\nexport const PlainUpdateCompanyOutput: z.ZodTypeAny = z.object({\n error: PlainUpdateCompany_MutationErrorSchema.nullable().optional(),\n result: z.string().describe(\"Upsert result: 'CREATED' or 'UPDATED'.\"),\n company: PlainUpdateCompany_CompanySchema.nullable(),\n});\n\nexport const plainUpdateCompany = action(\"PLAIN_UPDATE_COMPANY\", {\n slug: \"plain-update-company\",\n name: \"Update Company\",\n description: \"Upserts (creates or updates) a company in Plain. Provide either companyId (for updating an existing company by ID) or companyDomainName (for upserting by domain). Use this to create new companies, update existing company details (name, domain, contract value), or assign account owners.\",\n input: PlainUpdateCompanyInput,\n output: PlainUpdateCompanyOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAAwCA,IAAAA,EAAE,OAAO;CAC5D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;CACjD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;CAC5I,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;CACjF,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CAC7G,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0GAA0G,CAAC,CAAC,SAAS;CAC5J,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;AACjG,CAAC;AACD,MAAM,8CAA4DA,IAAAA,EAAE,OAAO;CACzE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE;CAChG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;CACnE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;AAC1E,CAAC;AACD,MAAM,yCAAuDA,IAAAA,EAAE,OAAO;CACpE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;CAC1E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE;CAC1F,QAAQA,IAAAA,EAAE,MAAM,2CAA2C,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9I,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;AAC7E,CAAC;AACD,MAAM,qCAAmDA,IAAAA,EAAE,OAAO,EAChE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,EAChE,CAAC;AACD,MAAM,mCAAiDA,IAAAA,EAAE,OAAO;CAC9D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CACnD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;CAChD,WAAW,mCAAmC,SAAS;CACvD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;AAC/D,CAAC;AACD,MAAa,2BAAyCA,IAAAA,EAAE,OAAO;CAC7D,OAAO,uCAAuC,SAAS,CAAC,CAAC,SAAS;CAClE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;CACpE,SAAS,iCAAiC,SAAS;AACrD,CAAC;AAED,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/update-company.d.ts
|
|
4
|
+
declare const PlainUpdateCompanyInput: z.ZodTypeAny;
|
|
5
|
+
declare const PlainUpdateCompanyOutput: z.ZodTypeAny;
|
|
6
|
+
declare const plainUpdateCompany: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { plainUpdateCompany };
|
|
9
|
+
//# sourceMappingURL=update-company.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-company.d.cts","names":[],"sources":["../../src/actions/update-company.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAOtC;AAAA,cAqBW,wBAAA,EAA0B,CAAA,CAAE,UAIvC;AAAA,cAEW,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/update-company.d.ts
|
|
4
|
+
declare const PlainUpdateCompanyInput: z.ZodTypeAny;
|
|
5
|
+
declare const PlainUpdateCompanyOutput: z.ZodTypeAny;
|
|
6
|
+
declare const plainUpdateCompany: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { plainUpdateCompany };
|
|
9
|
+
//# sourceMappingURL=update-company.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-company.d.mts","names":[],"sources":["../../src/actions/update-company.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAOtC;AAAA,cAqBW,wBAAA,EAA0B,CAAA,CAAE,UAIvC;AAAA,cAEW,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/update-company.ts
|
|
4
|
+
const PlainUpdateCompanyInput = z.object({
|
|
5
|
+
name: z.string().describe("Name for the company."),
|
|
6
|
+
companyId: z.string().describe("Existing company ID to update (format: 'co_...'). Provide either companyId OR companyDomainName.").optional(),
|
|
7
|
+
domainName: z.string().describe("Domain name for the company (e.g., 'acme.com')."),
|
|
8
|
+
contractValue: z.number().int().describe("Optional contract value in cents. Must be non-negative.").optional(),
|
|
9
|
+
companyDomainName: z.string().describe("Company domain name for lookup/upsert (e.g., 'acme.com'). Provide either companyId OR companyDomainName.").optional(),
|
|
10
|
+
accountOwnerUserId: z.string().describe("ID of the user to assign as account owner.").optional()
|
|
11
|
+
});
|
|
12
|
+
const PlainUpdateCompany_MutationFieldErrorSchema = z.object({
|
|
13
|
+
type: z.string().describe("Category of the field error (e.g., VALIDATION, REQUIRED, NOT_FOUND)."),
|
|
14
|
+
field: z.string().describe("Name of the input field with an error."),
|
|
15
|
+
message: z.string().describe("Technical description of the field error.")
|
|
16
|
+
});
|
|
17
|
+
const PlainUpdateCompany_MutationErrorSchema = z.object({
|
|
18
|
+
code: z.string().describe("Fixed error code for handling specific errors."),
|
|
19
|
+
type: z.string().describe("Category of the error (e.g., VALIDATION, FORBIDDEN, INTERNAL)."),
|
|
20
|
+
fields: z.array(PlainUpdateCompany_MutationFieldErrorSchema).describe("List of field-level errors if validation failed.").nullable().optional(),
|
|
21
|
+
message: z.string().describe("Technical description of the mutation error.")
|
|
22
|
+
});
|
|
23
|
+
const PlainUpdateCompany_CreatedAtSchema = z.object({ iso8601: z.string().describe("ISO 8601 timestamp of creation.") });
|
|
24
|
+
const PlainUpdateCompany_CompanySchema = z.object({
|
|
25
|
+
id: z.string().describe("Unique ID of the company."),
|
|
26
|
+
name: z.string().describe("Name of the company."),
|
|
27
|
+
createdAt: PlainUpdateCompany_CreatedAtSchema.nullable(),
|
|
28
|
+
domainName: z.string().describe("Domain name of the company.")
|
|
29
|
+
});
|
|
30
|
+
const plainUpdateCompany = action("PLAIN_UPDATE_COMPANY", {
|
|
31
|
+
slug: "plain-update-company",
|
|
32
|
+
name: "Update Company",
|
|
33
|
+
description: "Upserts (creates or updates) a company in Plain. Provide either companyId (for updating an existing company by ID) or companyDomainName (for upserting by domain). Use this to create new companies, update existing company details (name, domain, contract value), or assign account owners.",
|
|
34
|
+
input: PlainUpdateCompanyInput,
|
|
35
|
+
output: z.object({
|
|
36
|
+
error: PlainUpdateCompany_MutationErrorSchema.nullable().optional(),
|
|
37
|
+
result: z.string().describe("Upsert result: 'CREATED' or 'UPDATED'."),
|
|
38
|
+
company: PlainUpdateCompany_CompanySchema.nullable()
|
|
39
|
+
})
|
|
40
|
+
});
|
|
41
|
+
//#endregion
|
|
42
|
+
export { plainUpdateCompany };
|
|
43
|
+
|
|
44
|
+
//# sourceMappingURL=update-company.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-company.mjs","names":[],"sources":["../../src/actions/update-company.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainUpdateCompanyInput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name for the company.\"),\n companyId: z.string().describe(\"Existing company ID to update (format: 'co_...'). Provide either companyId OR companyDomainName.\").optional(),\n domainName: z.string().describe(\"Domain name for the company (e.g., 'acme.com').\"),\n contractValue: z.number().int().describe(\"Optional contract value in cents. Must be non-negative.\").optional(),\n companyDomainName: z.string().describe(\"Company domain name for lookup/upsert (e.g., 'acme.com'). Provide either companyId OR companyDomainName.\").optional(),\n accountOwnerUserId: z.string().describe(\"ID of the user to assign as account owner.\").optional(),\n});\nconst PlainUpdateCompany_MutationFieldErrorSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Category of the field error (e.g., VALIDATION, REQUIRED, NOT_FOUND).\"),\n field: z.string().describe(\"Name of the input field with an error.\"),\n message: z.string().describe(\"Technical description of the field error.\"),\n});\nconst PlainUpdateCompany_MutationErrorSchema: z.ZodTypeAny = z.object({\n code: z.string().describe(\"Fixed error code for handling specific errors.\"),\n type: z.string().describe(\"Category of the error (e.g., VALIDATION, FORBIDDEN, INTERNAL).\"),\n fields: z.array(PlainUpdateCompany_MutationFieldErrorSchema).describe(\"List of field-level errors if validation failed.\").nullable().optional(),\n message: z.string().describe(\"Technical description of the mutation error.\"),\n});\nconst PlainUpdateCompany_CreatedAtSchema: z.ZodTypeAny = z.object({\n iso8601: z.string().describe(\"ISO 8601 timestamp of creation.\"),\n});\nconst PlainUpdateCompany_CompanySchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique ID of the company.\"),\n name: z.string().describe(\"Name of the company.\"),\n createdAt: PlainUpdateCompany_CreatedAtSchema.nullable(),\n domainName: z.string().describe(\"Domain name of the company.\"),\n});\nexport const PlainUpdateCompanyOutput: z.ZodTypeAny = z.object({\n error: PlainUpdateCompany_MutationErrorSchema.nullable().optional(),\n result: z.string().describe(\"Upsert result: 'CREATED' or 'UPDATED'.\"),\n company: PlainUpdateCompany_CompanySchema.nullable(),\n});\n\nexport const plainUpdateCompany = action(\"PLAIN_UPDATE_COMPANY\", {\n slug: \"plain-update-company\",\n name: \"Update Company\",\n description: \"Upserts (creates or updates) a company in Plain. Provide either companyId (for updating an existing company by ID) or companyDomainName (for upserting by domain). Use this to create new companies, update existing company details (name, domain, contract value), or assign account owners.\",\n input: PlainUpdateCompanyInput,\n output: PlainUpdateCompanyOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAAwC,EAAE,OAAO;CAC5D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;CACjD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;CAC5I,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;CACjF,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CAC7G,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,0GAA0G,CAAC,CAAC,SAAS;CAC5J,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;AACjG,CAAC;AACD,MAAM,8CAA4D,EAAE,OAAO;CACzE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE;CAChG,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;CACnE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;AAC1E,CAAC;AACD,MAAM,yCAAuD,EAAE,OAAO;CACpE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;CAC1E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE;CAC1F,QAAQ,EAAE,MAAM,2CAA2C,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9I,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;AAC7E,CAAC;AACD,MAAM,qCAAmD,EAAE,OAAO,EAChE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,EAChE,CAAC;AACD,MAAM,mCAAiD,EAAE,OAAO;CAC9D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CACnD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;CAChD,WAAW,mCAAmC,SAAS;CACvD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;AAC/D,CAAC;AAOD,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAXoD,EAAE,OAAO;EAC7D,OAAO,uCAAuC,SAAS,CAAC,CAAC,SAAS;EAClE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;EACpE,SAAS,iCAAiC,SAAS;CACrD,CAOU;AACV,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/update-thread.ts
|
|
4
|
+
const PlainUpdateThreadInput = zod.z.object({
|
|
5
|
+
title: zod.z.string().describe("New title for the thread"),
|
|
6
|
+
threadId: zod.z.string().describe("Unique identifier of the thread to update")
|
|
7
|
+
});
|
|
8
|
+
const PlainUpdateThread_MutationFieldErrorSchema = zod.z.object({
|
|
9
|
+
type: zod.z.string().describe("Type of the field error, e.g., REQUIRED or VALIDATION"),
|
|
10
|
+
field: zod.z.string().describe("The name of the field with an error"),
|
|
11
|
+
message: zod.z.string().describe("Technical message describing the field error")
|
|
12
|
+
});
|
|
13
|
+
const PlainUpdateThread_MutationErrorSchema = zod.z.object({
|
|
14
|
+
code: zod.z.string().describe("Fixed error code identifying the error"),
|
|
15
|
+
type: zod.z.string().describe("High-level error type, e.g., VALIDATION or FORBIDDEN"),
|
|
16
|
+
fields: zod.z.array(PlainUpdateThread_MutationFieldErrorSchema).describe("List of field-specific errors, if any").nullable().optional(),
|
|
17
|
+
message: zod.z.string().describe("Technical message describing the mutation failure")
|
|
18
|
+
});
|
|
19
|
+
const PlainUpdateThread_DateTimeModelSchema = zod.z.object({ iso8601: zod.z.string().describe("ISO 8601 timestamp string") });
|
|
20
|
+
const PlainUpdateThread_ThreadModelSchema = zod.z.object({
|
|
21
|
+
id: zod.z.string().describe("Thread unique identifier"),
|
|
22
|
+
title: zod.z.string().describe("Thread title"),
|
|
23
|
+
updatedAt: PlainUpdateThread_DateTimeModelSchema.nullable()
|
|
24
|
+
});
|
|
25
|
+
const PlainUpdateThreadOutput = zod.z.object({
|
|
26
|
+
error: PlainUpdateThread_MutationErrorSchema.nullable().optional(),
|
|
27
|
+
thread: PlainUpdateThread_ThreadModelSchema.nullable().optional()
|
|
28
|
+
});
|
|
29
|
+
const plainUpdateThread = require_action.action("PLAIN_UPDATE_THREAD", {
|
|
30
|
+
slug: "plain-update-thread",
|
|
31
|
+
name: "Update Thread",
|
|
32
|
+
description: "Tool to update a thread's title. Use when renaming a thread after confirming its ID.",
|
|
33
|
+
input: PlainUpdateThreadInput,
|
|
34
|
+
output: PlainUpdateThreadOutput
|
|
35
|
+
});
|
|
36
|
+
//#endregion
|
|
37
|
+
exports.plainUpdateThread = plainUpdateThread;
|
|
38
|
+
|
|
39
|
+
//# sourceMappingURL=update-thread.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-thread.cjs","names":["z","action"],"sources":["../../src/actions/update-thread.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainUpdateThreadInput: z.ZodTypeAny = z.object({\n title: z.string().describe(\"New title for the thread\"),\n threadId: z.string().describe(\"Unique identifier of the thread to update\"),\n});\nconst PlainUpdateThread_MutationFieldErrorSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Type of the field error, e.g., REQUIRED or VALIDATION\"),\n field: z.string().describe(\"The name of the field with an error\"),\n message: z.string().describe(\"Technical message describing the field error\"),\n});\nconst PlainUpdateThread_MutationErrorSchema: z.ZodTypeAny = z.object({\n code: z.string().describe(\"Fixed error code identifying the error\"),\n type: z.string().describe(\"High-level error type, e.g., VALIDATION or FORBIDDEN\"),\n fields: z.array(PlainUpdateThread_MutationFieldErrorSchema).describe(\"List of field-specific errors, if any\").nullable().optional(),\n message: z.string().describe(\"Technical message describing the mutation failure\"),\n});\nconst PlainUpdateThread_DateTimeModelSchema: z.ZodTypeAny = z.object({\n iso8601: z.string().describe(\"ISO 8601 timestamp string\"),\n});\nconst PlainUpdateThread_ThreadModelSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Thread unique identifier\"),\n title: z.string().describe(\"Thread title\"),\n updatedAt: PlainUpdateThread_DateTimeModelSchema.nullable(),\n});\nexport const PlainUpdateThreadOutput: z.ZodTypeAny = z.object({\n error: PlainUpdateThread_MutationErrorSchema.nullable().optional(),\n thread: PlainUpdateThread_ThreadModelSchema.nullable().optional(),\n});\n\nexport const plainUpdateThread = action(\"PLAIN_UPDATE_THREAD\", {\n slug: \"plain-update-thread\",\n name: \"Update Thread\",\n description: \"Tool to update a thread's title. Use when renaming a thread after confirming its ID.\",\n input: PlainUpdateThreadInput,\n output: PlainUpdateThreadOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAuCA,IAAAA,EAAE,OAAO;CAC3D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;CACrD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;AAC3E,CAAC;AACD,MAAM,6CAA2DA,IAAAA,EAAE,OAAO;CACxE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;CACjF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CAChE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;AAC7E,CAAC;AACD,MAAM,wCAAsDA,IAAAA,EAAE,OAAO;CACnE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;CAClE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;CAChF,QAAQA,IAAAA,EAAE,MAAM,0CAA0C,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClI,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;AAClF,CAAC;AACD,MAAM,wCAAsDA,IAAAA,EAAE,OAAO,EACnE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,EAC1D,CAAC;AACD,MAAM,sCAAoDA,IAAAA,EAAE,OAAO;CACjE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;CAClD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc;CACzC,WAAW,sCAAsC,SAAS;AAC5D,CAAC;AACD,MAAa,0BAAwCA,IAAAA,EAAE,OAAO;CAC5D,OAAO,sCAAsC,SAAS,CAAC,CAAC,SAAS;CACjE,QAAQ,oCAAoC,SAAS,CAAC,CAAC,SAAS;AAClE,CAAC;AAED,MAAa,oBAAoBC,eAAAA,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/update-thread.d.ts
|
|
4
|
+
declare const PlainUpdateThreadInput: z.ZodTypeAny;
|
|
5
|
+
declare const PlainUpdateThreadOutput: z.ZodTypeAny;
|
|
6
|
+
declare const plainUpdateThread: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { plainUpdateThread };
|
|
9
|
+
//# sourceMappingURL=update-thread.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-thread.d.cts","names":[],"sources":["../../src/actions/update-thread.ts"],"mappings":";;;cAIa,sBAAA,EAAwB,CAAA,CAAE,UAGrC;AAAA,cAoBW,uBAAA,EAAyB,CAAA,CAAE,UAGtC;AAAA,cAEW,iBAAA,gCAAiB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/update-thread.d.ts
|
|
4
|
+
declare const PlainUpdateThreadInput: z.ZodTypeAny;
|
|
5
|
+
declare const PlainUpdateThreadOutput: z.ZodTypeAny;
|
|
6
|
+
declare const plainUpdateThread: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { plainUpdateThread };
|
|
9
|
+
//# sourceMappingURL=update-thread.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-thread.d.mts","names":[],"sources":["../../src/actions/update-thread.ts"],"mappings":";;;cAIa,sBAAA,EAAwB,CAAA,CAAE,UAGrC;AAAA,cAoBW,uBAAA,EAAyB,CAAA,CAAE,UAGtC;AAAA,cAEW,iBAAA,gCAAiB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|