@keystrokehq/plain 0.1.2 → 0.1.3
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/actions/add-customer-to-group.cjs +7 -7
- package/dist/actions/add-customer-to-group.cjs.map +1 -1
- package/dist/actions/add-customer-to-group.d.cts +8 -7
- package/dist/actions/add-customer-to-group.d.mts +8 -7
- package/dist/actions/add-customer-to-group.mjs +7 -7
- package/dist/actions/add-customer-to-group.mjs.map +1 -1
- package/dist/actions/create-customer-group.cjs +5 -5
- package/dist/actions/create-customer-group.cjs.map +1 -1
- package/dist/actions/create-customer-group.d.cts +6 -6
- package/dist/actions/create-customer-group.d.mts +6 -6
- package/dist/actions/create-customer-group.mjs +5 -5
- package/dist/actions/create-customer-group.mjs.map +1 -1
- package/dist/actions/create-thread.cjs +10 -10
- package/dist/actions/create-thread.cjs.map +1 -1
- package/dist/actions/create-thread.d.cts +11 -10
- package/dist/actions/create-thread.d.mts +11 -10
- package/dist/actions/create-thread.mjs +10 -10
- package/dist/actions/create-thread.mjs.map +1 -1
- package/dist/actions/delete-customer.cjs +3 -3
- package/dist/actions/delete-customer.cjs.map +1 -1
- package/dist/actions/delete-customer.d.cts +3 -3
- package/dist/actions/delete-customer.d.mts +3 -3
- package/dist/actions/delete-customer.mjs +3 -3
- package/dist/actions/delete-customer.mjs.map +1 -1
- package/dist/actions/delete-user.cjs +3 -3
- package/dist/actions/delete-user.cjs.map +1 -1
- package/dist/actions/delete-user.d.cts +3 -3
- package/dist/actions/delete-user.d.mts +3 -3
- package/dist/actions/delete-user.mjs +3 -3
- package/dist/actions/delete-user.mjs.map +1 -1
- package/dist/actions/fetch-company.cjs +3 -3
- package/dist/actions/fetch-company.cjs.map +1 -1
- package/dist/actions/fetch-company.d.cts +4 -4
- package/dist/actions/fetch-company.d.mts +4 -4
- package/dist/actions/fetch-company.mjs +3 -3
- package/dist/actions/fetch-company.mjs.map +1 -1
- package/dist/actions/fetch-issues.cjs +2 -2
- package/dist/actions/fetch-issues.cjs.map +1 -1
- package/dist/actions/fetch-issues.d.cts +2 -2
- package/dist/actions/fetch-issues.d.mts +2 -2
- package/dist/actions/fetch-issues.mjs +2 -2
- package/dist/actions/fetch-issues.mjs.map +1 -1
- package/dist/actions/fetch-tier.cjs +3 -3
- package/dist/actions/fetch-tier.cjs.map +1 -1
- package/dist/actions/fetch-tier.d.cts +4 -4
- package/dist/actions/fetch-tier.d.mts +4 -4
- package/dist/actions/fetch-tier.mjs +3 -3
- package/dist/actions/fetch-tier.mjs.map +1 -1
- package/dist/actions/get-customer-by-email.cjs +5 -5
- package/dist/actions/get-customer-by-email.cjs.map +1 -1
- package/dist/actions/get-customer-by-email.d.cts +6 -6
- package/dist/actions/get-customer-by-email.d.mts +6 -6
- package/dist/actions/get-customer-by-email.mjs +5 -5
- package/dist/actions/get-customer-by-email.mjs.map +1 -1
- package/dist/actions/get-customer-by-id.cjs +1 -1
- package/dist/actions/get-customer-by-id.cjs.map +1 -1
- package/dist/actions/get-customer-by-id.d.cts +1 -1
- package/dist/actions/get-customer-by-id.d.mts +1 -1
- package/dist/actions/get-customer-by-id.mjs +1 -1
- package/dist/actions/get-customer-by-id.mjs.map +1 -1
- package/dist/actions/get-customers.cjs +7 -7
- package/dist/actions/get-customers.cjs.map +1 -1
- package/dist/actions/get-customers.d.cts +7 -7
- package/dist/actions/get-customers.d.mts +7 -7
- package/dist/actions/get-customers.mjs +7 -7
- package/dist/actions/get-customers.mjs.map +1 -1
- package/dist/actions/get-thread-by-id.cjs +9 -9
- package/dist/actions/get-thread-by-id.cjs.map +1 -1
- package/dist/actions/get-thread-by-id.d.cts +15 -15
- package/dist/actions/get-thread-by-id.d.mts +15 -15
- package/dist/actions/get-thread-by-id.mjs +9 -9
- package/dist/actions/get-thread-by-id.mjs.map +1 -1
- package/dist/actions/get-user-by-id.cjs +4 -4
- package/dist/actions/get-user-by-id.cjs.map +1 -1
- package/dist/actions/get-user-by-id.d.cts +4 -4
- package/dist/actions/get-user-by-id.d.mts +4 -4
- package/dist/actions/get-user-by-id.mjs +4 -4
- package/dist/actions/get-user-by-id.mjs.map +1 -1
- package/dist/actions/list-customer-groups.cjs +5 -5
- package/dist/actions/list-customer-groups.cjs.map +1 -1
- package/dist/actions/list-customer-groups.d.cts +5 -5
- package/dist/actions/list-customer-groups.d.mts +5 -5
- package/dist/actions/list-customer-groups.mjs +5 -5
- package/dist/actions/list-customer-groups.mjs.map +1 -1
- package/dist/actions/list-tiers.cjs +5 -5
- package/dist/actions/list-tiers.cjs.map +1 -1
- package/dist/actions/list-tiers.d.cts +5 -5
- package/dist/actions/list-tiers.d.mts +5 -5
- package/dist/actions/list-tiers.mjs +5 -5
- package/dist/actions/list-tiers.mjs.map +1 -1
- package/dist/actions/query-threads.cjs +7 -7
- package/dist/actions/query-threads.cjs.map +1 -1
- package/dist/actions/query-threads.d.cts +7 -7
- package/dist/actions/query-threads.d.mts +7 -7
- package/dist/actions/query-threads.mjs +7 -7
- package/dist/actions/query-threads.mjs.map +1 -1
- package/dist/actions/remove-customer-from-group.cjs +4 -4
- package/dist/actions/remove-customer-from-group.cjs.map +1 -1
- package/dist/actions/remove-customer-from-group.d.cts +5 -4
- package/dist/actions/remove-customer-from-group.d.mts +5 -4
- package/dist/actions/remove-customer-from-group.mjs +4 -4
- package/dist/actions/remove-customer-from-group.mjs.map +1 -1
- package/dist/actions/run-graphql-query.cjs +4 -4
- package/dist/actions/run-graphql-query.cjs.map +1 -1
- package/dist/actions/run-graphql-query.d.cts +4 -4
- package/dist/actions/run-graphql-query.d.mts +4 -4
- package/dist/actions/run-graphql-query.mjs +4 -4
- package/dist/actions/run-graphql-query.mjs.map +1 -1
- package/dist/actions/send-message.cjs +5 -5
- package/dist/actions/send-message.cjs.map +1 -1
- package/dist/actions/send-message.d.cts +7 -5
- package/dist/actions/send-message.d.mts +7 -5
- package/dist/actions/send-message.mjs +5 -5
- package/dist/actions/send-message.mjs.map +1 -1
- package/dist/actions/update-company.cjs +5 -5
- package/dist/actions/update-company.cjs.map +1 -1
- package/dist/actions/update-company.d.cts +5 -5
- package/dist/actions/update-company.d.mts +5 -5
- package/dist/actions/update-company.mjs +5 -5
- package/dist/actions/update-company.mjs.map +1 -1
- package/dist/actions/update-thread.cjs +5 -5
- package/dist/actions/update-thread.cjs.map +1 -1
- package/dist/actions/update-thread.d.cts +5 -5
- package/dist/actions/update-thread.d.mts +5 -5
- package/dist/actions/update-thread.mjs +5 -5
- package/dist/actions/update-thread.mjs.map +1 -1
- package/dist/actions/upsert-customer.cjs +7 -7
- package/dist/actions/upsert-customer.cjs.map +1 -1
- package/dist/actions/upsert-customer.d.cts +9 -7
- package/dist/actions/upsert-customer.d.mts +9 -7
- package/dist/actions/upsert-customer.mjs +7 -7
- package/dist/actions/upsert-customer.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1 +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.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.object({\n __typename: z.string().describe(\"GraphQL type name, typically 'ReplyToThreadOutput'\").nullable(),\n});\nconst PlainSendMessage_SendMessagePayloadSchema = z.object({\n replyToThread: PlainSendMessage_ReplyToThreadOutputSchema.nullable(),\n});\nexport const PlainSendMessageOutput = 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,wBAAwBA,IAAAA,EAAE,OAAO;CAC5C,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;
|
|
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.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}).passthrough()).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}).passthrough()).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.object({\n __typename: z.string().describe(\"GraphQL type name, typically 'ReplyToThreadOutput'\").nullable(),\n}).passthrough();\nconst PlainSendMessage_SendMessagePayloadSchema = z.object({\n replyToThread: PlainSendMessage_ReplyToThreadOutputSchema.nullable(),\n}).passthrough();\nexport const PlainSendMessageOutput = z.object({\n data: PlainSendMessage_SendMessagePayloadSchema.nullable(),\n}).passthrough();\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,wBAAwBA,IAAAA,EAAE,OAAO;CAC5C,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,CA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@@ declare const PlainSendMessageInput: z.ZodObject<{
|
|
|
19
19
|
hiddenRecipients: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
20
20
|
name: z.ZodOptional<z.ZodString>;
|
|
21
21
|
email: z.ZodString;
|
|
22
|
-
}, z.core.$
|
|
22
|
+
}, z.core.$loose>>>;
|
|
23
23
|
additionalRecipients: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
24
24
|
name: z.ZodOptional<z.ZodString>;
|
|
25
25
|
email: z.ZodString;
|
|
26
|
-
}, z.core.$
|
|
26
|
+
}, z.core.$loose>>>;
|
|
27
27
|
}, z.core.$strip>>;
|
|
28
28
|
}, z.core.$strip>>;
|
|
29
29
|
}, z.core.$strip>;
|
|
@@ -31,9 +31,9 @@ declare const PlainSendMessageOutput: z.ZodObject<{
|
|
|
31
31
|
data: z.ZodNullable<z.ZodObject<{
|
|
32
32
|
replyToThread: z.ZodNullable<z.ZodObject<{
|
|
33
33
|
__typename: z.ZodNullable<z.ZodString>;
|
|
34
|
-
}, z.core.$
|
|
35
|
-
}, z.core.$
|
|
36
|
-
}, z.core.$
|
|
34
|
+
}, z.core.$loose>>;
|
|
35
|
+
}, z.core.$loose>>;
|
|
36
|
+
}, z.core.$loose>;
|
|
37
37
|
declare const plainSendMessage: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
38
38
|
threadId: string;
|
|
39
39
|
textContent: string;
|
|
@@ -50,10 +50,12 @@ declare const plainSendMessage: import("@keystrokehq/action").WorkflowActionDefi
|
|
|
50
50
|
channelSpecificOptions?: {
|
|
51
51
|
email?: {
|
|
52
52
|
hiddenRecipients?: {
|
|
53
|
+
[x: string]: unknown;
|
|
53
54
|
email: string;
|
|
54
55
|
name?: string | undefined;
|
|
55
56
|
}[] | undefined;
|
|
56
57
|
additionalRecipients?: {
|
|
58
|
+
[x: string]: unknown;
|
|
57
59
|
email: string;
|
|
58
60
|
name?: string | undefined;
|
|
59
61
|
}[] | undefined;
|
|
@@ -19,11 +19,11 @@ declare const PlainSendMessageInput: z.ZodObject<{
|
|
|
19
19
|
hiddenRecipients: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
20
20
|
name: z.ZodOptional<z.ZodString>;
|
|
21
21
|
email: z.ZodString;
|
|
22
|
-
}, z.core.$
|
|
22
|
+
}, z.core.$loose>>>;
|
|
23
23
|
additionalRecipients: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
24
24
|
name: z.ZodOptional<z.ZodString>;
|
|
25
25
|
email: z.ZodString;
|
|
26
|
-
}, z.core.$
|
|
26
|
+
}, z.core.$loose>>>;
|
|
27
27
|
}, z.core.$strip>>;
|
|
28
28
|
}, z.core.$strip>>;
|
|
29
29
|
}, z.core.$strip>;
|
|
@@ -31,9 +31,9 @@ declare const PlainSendMessageOutput: z.ZodObject<{
|
|
|
31
31
|
data: z.ZodNullable<z.ZodObject<{
|
|
32
32
|
replyToThread: z.ZodNullable<z.ZodObject<{
|
|
33
33
|
__typename: z.ZodNullable<z.ZodString>;
|
|
34
|
-
}, z.core.$
|
|
35
|
-
}, z.core.$
|
|
36
|
-
}, z.core.$
|
|
34
|
+
}, z.core.$loose>>;
|
|
35
|
+
}, z.core.$loose>>;
|
|
36
|
+
}, z.core.$loose>;
|
|
37
37
|
declare const plainSendMessage: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
38
38
|
threadId: string;
|
|
39
39
|
textContent: string;
|
|
@@ -50,10 +50,12 @@ declare const plainSendMessage: import("@keystrokehq/action").WorkflowActionDefi
|
|
|
50
50
|
channelSpecificOptions?: {
|
|
51
51
|
email?: {
|
|
52
52
|
hiddenRecipients?: {
|
|
53
|
+
[x: string]: unknown;
|
|
53
54
|
email: string;
|
|
54
55
|
name?: string | undefined;
|
|
55
56
|
}[] | undefined;
|
|
56
57
|
additionalRecipients?: {
|
|
58
|
+
[x: string]: unknown;
|
|
57
59
|
email: string;
|
|
58
60
|
name?: string | undefined;
|
|
59
61
|
}[] | undefined;
|
|
@@ -14,21 +14,21 @@ const PlainSendMessageInput = z.object({
|
|
|
14
14
|
hiddenRecipients: z.array(z.object({
|
|
15
15
|
name: z.string().describe("Name of the recipient").optional(),
|
|
16
16
|
email: z.string().describe("Email address of the recipient")
|
|
17
|
-
})).describe("List of BCC recipients").optional(),
|
|
17
|
+
}).passthrough()).describe("List of BCC recipients").optional(),
|
|
18
18
|
additionalRecipients: z.array(z.object({
|
|
19
19
|
name: z.string().describe("Name of the recipient").optional(),
|
|
20
20
|
email: z.string().describe("Email address of the recipient")
|
|
21
|
-
})).describe("List of CC recipients").optional()
|
|
21
|
+
}).passthrough()).describe("List of CC recipients").optional()
|
|
22
22
|
}).describe("Email-specific options like CC/BCC").optional() }).describe("Channel-specific options such as email CC/BCC recipients").optional()
|
|
23
23
|
});
|
|
24
|
-
const PlainSendMessage_ReplyToThreadOutputSchema = z.object({ __typename: z.string().describe("GraphQL type name, typically 'ReplyToThreadOutput'").nullable() });
|
|
25
|
-
const PlainSendMessage_SendMessagePayloadSchema = z.object({ replyToThread: PlainSendMessage_ReplyToThreadOutputSchema.nullable() });
|
|
24
|
+
const PlainSendMessage_ReplyToThreadOutputSchema = z.object({ __typename: z.string().describe("GraphQL type name, typically 'ReplyToThreadOutput'").nullable() }).passthrough();
|
|
25
|
+
const PlainSendMessage_SendMessagePayloadSchema = z.object({ replyToThread: PlainSendMessage_ReplyToThreadOutputSchema.nullable() }).passthrough();
|
|
26
26
|
const plainSendMessage = action("PLAIN_SEND_MESSAGE", {
|
|
27
27
|
slug: "plain-send-message",
|
|
28
28
|
name: "Send Message",
|
|
29
29
|
description: "Tool to send a new message within a thread. Use after identifying the thread and preparing message content.",
|
|
30
30
|
input: PlainSendMessageInput,
|
|
31
|
-
output: z.object({ data: PlainSendMessage_SendMessagePayloadSchema.nullable() })
|
|
31
|
+
output: z.object({ data: PlainSendMessage_SendMessagePayloadSchema.nullable() }).passthrough()
|
|
32
32
|
});
|
|
33
33
|
//#endregion
|
|
34
34
|
export { plainSendMessage };
|
|
@@ -1 +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.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.object({\n __typename: z.string().describe(\"GraphQL type name, typically 'ReplyToThreadOutput'\").nullable(),\n});\nconst PlainSendMessage_SendMessagePayloadSchema = z.object({\n replyToThread: PlainSendMessage_ReplyToThreadOutputSchema.nullable(),\n});\nexport const PlainSendMessageOutput = 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,wBAAwB,EAAE,OAAO;CAC5C,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;
|
|
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.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}).passthrough()).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}).passthrough()).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.object({\n __typename: z.string().describe(\"GraphQL type name, typically 'ReplyToThreadOutput'\").nullable(),\n}).passthrough();\nconst PlainSendMessage_SendMessagePayloadSchema = z.object({\n replyToThread: PlainSendMessage_ReplyToThreadOutputSchema.nullable(),\n}).passthrough();\nexport const PlainSendMessageOutput = z.object({\n data: PlainSendMessage_SendMessagePayloadSchema.nullable(),\n}).passthrough();\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,wBAAwB,EAAE,OAAO;CAC5C,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;CAC3E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,0IAA0I;CAC3K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,CAAC,SAAS,EACjG,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,4CAA4C,EAAE,OAAO,EACzD,eAAe,2CAA2C,SAAS,EACrE,CAAC,CAAC,CAAC,YAAY;AAKf,MAAa,mBAAmB,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAToC,EAAE,OAAO,EAC7C,MAAM,0CAA0C,SAAS,EAC3D,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|
|
@@ -13,25 +13,25 @@ const PlainUpdateCompany_MutationFieldErrorSchema = zod.z.object({
|
|
|
13
13
|
type: zod.z.string().describe("Category of the field error (e.g., VALIDATION, REQUIRED, NOT_FOUND).").nullable(),
|
|
14
14
|
field: zod.z.string().describe("Name of the input field with an error.").nullable(),
|
|
15
15
|
message: zod.z.string().describe("Technical description of the field error.").nullable()
|
|
16
|
-
});
|
|
16
|
+
}).passthrough();
|
|
17
17
|
const PlainUpdateCompany_MutationErrorSchema = zod.z.object({
|
|
18
18
|
code: zod.z.string().describe("Fixed error code for handling specific errors.").nullable(),
|
|
19
19
|
type: zod.z.string().describe("Category of the error (e.g., VALIDATION, FORBIDDEN, INTERNAL).").nullable(),
|
|
20
20
|
fields: zod.z.array(PlainUpdateCompany_MutationFieldErrorSchema).describe("List of field-level errors if validation failed.").nullable().optional(),
|
|
21
21
|
message: zod.z.string().describe("Technical description of the mutation error.").nullable()
|
|
22
|
-
});
|
|
23
|
-
const PlainUpdateCompany_CreatedAtSchema = zod.z.object({ iso8601: zod.z.string().describe("ISO 8601 timestamp of creation.").nullable() });
|
|
22
|
+
}).passthrough();
|
|
23
|
+
const PlainUpdateCompany_CreatedAtSchema = zod.z.object({ iso8601: zod.z.string().describe("ISO 8601 timestamp of creation.").nullable() }).passthrough();
|
|
24
24
|
const PlainUpdateCompany_CompanySchema = zod.z.object({
|
|
25
25
|
id: zod.z.string().describe("Unique ID of the company.").nullable(),
|
|
26
26
|
name: zod.z.string().describe("Name of the company.").nullable(),
|
|
27
27
|
createdAt: PlainUpdateCompany_CreatedAtSchema.nullable(),
|
|
28
28
|
domainName: zod.z.string().describe("Domain name of the company.").nullable()
|
|
29
|
-
});
|
|
29
|
+
}).passthrough();
|
|
30
30
|
const PlainUpdateCompanyOutput = zod.z.object({
|
|
31
31
|
error: PlainUpdateCompany_MutationErrorSchema.nullable().optional(),
|
|
32
32
|
result: zod.z.string().describe("Upsert result: 'CREATED' or 'UPDATED'.").nullable(),
|
|
33
33
|
company: PlainUpdateCompany_CompanySchema.nullable()
|
|
34
|
-
});
|
|
34
|
+
}).passthrough();
|
|
35
35
|
const plainUpdateCompany = require_action.action("PLAIN_UPDATE_COMPANY", {
|
|
36
36
|
slug: "plain-update-company",
|
|
37
37
|
name: "Update Company",
|
|
@@ -1 +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.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.object({\n type: z.string().describe(\"Category of the field error (e.g., VALIDATION, REQUIRED, NOT_FOUND).\").nullable(),\n field: z.string().describe(\"Name of the input field with an error.\").nullable(),\n message: z.string().describe(\"Technical description of the field error.\").nullable(),\n});\nconst PlainUpdateCompany_MutationErrorSchema = z.object({\n code: z.string().describe(\"Fixed error code for handling specific errors.\").nullable(),\n type: z.string().describe(\"Category of the error (e.g., VALIDATION, FORBIDDEN, INTERNAL).\").nullable(),\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.\").nullable(),\n});\nconst PlainUpdateCompany_CreatedAtSchema = z.object({\n iso8601: z.string().describe(\"ISO 8601 timestamp of creation.\").nullable(),\n});\nconst PlainUpdateCompany_CompanySchema = z.object({\n id: z.string().describe(\"Unique ID of the company.\").nullable(),\n name: z.string().describe(\"Name of the company.\").nullable(),\n createdAt: PlainUpdateCompany_CreatedAtSchema.nullable(),\n domainName: z.string().describe(\"Domain name of the company.\").nullable(),\n});\nexport const PlainUpdateCompanyOutput = z.object({\n error: PlainUpdateCompany_MutationErrorSchema.nullable().optional(),\n result: z.string().describe(\"Upsert result: 'CREATED' or 'UPDATED'.\").nullable(),\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,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,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,8CAA8CA,IAAAA,EAAE,OAAO;CAC3D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CAC3G,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC9E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;AACrF,CAAC;
|
|
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.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.object({\n type: z.string().describe(\"Category of the field error (e.g., VALIDATION, REQUIRED, NOT_FOUND).\").nullable(),\n field: z.string().describe(\"Name of the input field with an error.\").nullable(),\n message: z.string().describe(\"Technical description of the field error.\").nullable(),\n}).passthrough();\nconst PlainUpdateCompany_MutationErrorSchema = z.object({\n code: z.string().describe(\"Fixed error code for handling specific errors.\").nullable(),\n type: z.string().describe(\"Category of the error (e.g., VALIDATION, FORBIDDEN, INTERNAL).\").nullable(),\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.\").nullable(),\n}).passthrough();\nconst PlainUpdateCompany_CreatedAtSchema = z.object({\n iso8601: z.string().describe(\"ISO 8601 timestamp of creation.\").nullable(),\n}).passthrough();\nconst PlainUpdateCompany_CompanySchema = z.object({\n id: z.string().describe(\"Unique ID of the company.\").nullable(),\n name: z.string().describe(\"Name of the company.\").nullable(),\n createdAt: PlainUpdateCompany_CreatedAtSchema.nullable(),\n domainName: z.string().describe(\"Domain name of the company.\").nullable(),\n}).passthrough();\nexport const PlainUpdateCompanyOutput = z.object({\n error: PlainUpdateCompany_MutationErrorSchema.nullable().optional(),\n result: z.string().describe(\"Upsert result: 'CREATED' or 'UPDATED'.\").nullable(),\n company: PlainUpdateCompany_CompanySchema.nullable(),\n}).passthrough();\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,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,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,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a,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,OAAO,uCAAuC,SAAS,CAAC,CAAC,SAAS;CAClE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC/E,SAAS,iCAAiC,SAAS;AACrD,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -17,19 +17,19 @@ declare const PlainUpdateCompanyOutput: z.ZodObject<{
|
|
|
17
17
|
type: z.ZodNullable<z.ZodString>;
|
|
18
18
|
field: z.ZodNullable<z.ZodString>;
|
|
19
19
|
message: z.ZodNullable<z.ZodString>;
|
|
20
|
-
}, z.core.$
|
|
20
|
+
}, z.core.$loose>>>>;
|
|
21
21
|
message: z.ZodNullable<z.ZodString>;
|
|
22
|
-
}, z.core.$
|
|
22
|
+
}, z.core.$loose>>>;
|
|
23
23
|
result: z.ZodNullable<z.ZodString>;
|
|
24
24
|
company: z.ZodNullable<z.ZodObject<{
|
|
25
25
|
id: z.ZodNullable<z.ZodString>;
|
|
26
26
|
name: z.ZodNullable<z.ZodString>;
|
|
27
27
|
createdAt: z.ZodNullable<z.ZodObject<{
|
|
28
28
|
iso8601: z.ZodNullable<z.ZodString>;
|
|
29
|
-
}, z.core.$
|
|
29
|
+
}, z.core.$loose>>;
|
|
30
30
|
domainName: z.ZodNullable<z.ZodString>;
|
|
31
|
-
}, z.core.$
|
|
32
|
-
}, z.core.$
|
|
31
|
+
}, z.core.$loose>>;
|
|
32
|
+
}, z.core.$loose>;
|
|
33
33
|
declare const plainUpdateCompany: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
34
34
|
name: string;
|
|
35
35
|
domainName: string;
|
|
@@ -17,19 +17,19 @@ declare const PlainUpdateCompanyOutput: z.ZodObject<{
|
|
|
17
17
|
type: z.ZodNullable<z.ZodString>;
|
|
18
18
|
field: z.ZodNullable<z.ZodString>;
|
|
19
19
|
message: z.ZodNullable<z.ZodString>;
|
|
20
|
-
}, z.core.$
|
|
20
|
+
}, z.core.$loose>>>>;
|
|
21
21
|
message: z.ZodNullable<z.ZodString>;
|
|
22
|
-
}, z.core.$
|
|
22
|
+
}, z.core.$loose>>>;
|
|
23
23
|
result: z.ZodNullable<z.ZodString>;
|
|
24
24
|
company: z.ZodNullable<z.ZodObject<{
|
|
25
25
|
id: z.ZodNullable<z.ZodString>;
|
|
26
26
|
name: z.ZodNullable<z.ZodString>;
|
|
27
27
|
createdAt: z.ZodNullable<z.ZodObject<{
|
|
28
28
|
iso8601: z.ZodNullable<z.ZodString>;
|
|
29
|
-
}, z.core.$
|
|
29
|
+
}, z.core.$loose>>;
|
|
30
30
|
domainName: z.ZodNullable<z.ZodString>;
|
|
31
|
-
}, z.core.$
|
|
32
|
-
}, z.core.$
|
|
31
|
+
}, z.core.$loose>>;
|
|
32
|
+
}, z.core.$loose>;
|
|
33
33
|
declare const plainUpdateCompany: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
34
34
|
name: string;
|
|
35
35
|
domainName: string;
|
|
@@ -13,20 +13,20 @@ const PlainUpdateCompany_MutationFieldErrorSchema = z.object({
|
|
|
13
13
|
type: z.string().describe("Category of the field error (e.g., VALIDATION, REQUIRED, NOT_FOUND).").nullable(),
|
|
14
14
|
field: z.string().describe("Name of the input field with an error.").nullable(),
|
|
15
15
|
message: z.string().describe("Technical description of the field error.").nullable()
|
|
16
|
-
});
|
|
16
|
+
}).passthrough();
|
|
17
17
|
const PlainUpdateCompany_MutationErrorSchema = z.object({
|
|
18
18
|
code: z.string().describe("Fixed error code for handling specific errors.").nullable(),
|
|
19
19
|
type: z.string().describe("Category of the error (e.g., VALIDATION, FORBIDDEN, INTERNAL).").nullable(),
|
|
20
20
|
fields: z.array(PlainUpdateCompany_MutationFieldErrorSchema).describe("List of field-level errors if validation failed.").nullable().optional(),
|
|
21
21
|
message: z.string().describe("Technical description of the mutation error.").nullable()
|
|
22
|
-
});
|
|
23
|
-
const PlainUpdateCompany_CreatedAtSchema = z.object({ iso8601: z.string().describe("ISO 8601 timestamp of creation.").nullable() });
|
|
22
|
+
}).passthrough();
|
|
23
|
+
const PlainUpdateCompany_CreatedAtSchema = z.object({ iso8601: z.string().describe("ISO 8601 timestamp of creation.").nullable() }).passthrough();
|
|
24
24
|
const PlainUpdateCompany_CompanySchema = z.object({
|
|
25
25
|
id: z.string().describe("Unique ID of the company.").nullable(),
|
|
26
26
|
name: z.string().describe("Name of the company.").nullable(),
|
|
27
27
|
createdAt: PlainUpdateCompany_CreatedAtSchema.nullable(),
|
|
28
28
|
domainName: z.string().describe("Domain name of the company.").nullable()
|
|
29
|
-
});
|
|
29
|
+
}).passthrough();
|
|
30
30
|
const plainUpdateCompany = action("PLAIN_UPDATE_COMPANY", {
|
|
31
31
|
slug: "plain-update-company",
|
|
32
32
|
name: "Update Company",
|
|
@@ -36,7 +36,7 @@ const plainUpdateCompany = action("PLAIN_UPDATE_COMPANY", {
|
|
|
36
36
|
error: PlainUpdateCompany_MutationErrorSchema.nullable().optional(),
|
|
37
37
|
result: z.string().describe("Upsert result: 'CREATED' or 'UPDATED'.").nullable(),
|
|
38
38
|
company: PlainUpdateCompany_CompanySchema.nullable()
|
|
39
|
-
})
|
|
39
|
+
}).passthrough()
|
|
40
40
|
});
|
|
41
41
|
//#endregion
|
|
42
42
|
export { plainUpdateCompany };
|
|
@@ -1 +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.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.object({\n type: z.string().describe(\"Category of the field error (e.g., VALIDATION, REQUIRED, NOT_FOUND).\").nullable(),\n field: z.string().describe(\"Name of the input field with an error.\").nullable(),\n message: z.string().describe(\"Technical description of the field error.\").nullable(),\n});\nconst PlainUpdateCompany_MutationErrorSchema = z.object({\n code: z.string().describe(\"Fixed error code for handling specific errors.\").nullable(),\n type: z.string().describe(\"Category of the error (e.g., VALIDATION, FORBIDDEN, INTERNAL).\").nullable(),\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.\").nullable(),\n});\nconst PlainUpdateCompany_CreatedAtSchema = z.object({\n iso8601: z.string().describe(\"ISO 8601 timestamp of creation.\").nullable(),\n});\nconst PlainUpdateCompany_CompanySchema = z.object({\n id: z.string().describe(\"Unique ID of the company.\").nullable(),\n name: z.string().describe(\"Name of the company.\").nullable(),\n createdAt: PlainUpdateCompany_CreatedAtSchema.nullable(),\n domainName: z.string().describe(\"Domain name of the company.\").nullable(),\n});\nexport const PlainUpdateCompanyOutput = z.object({\n error: PlainUpdateCompany_MutationErrorSchema.nullable().optional(),\n result: z.string().describe(\"Upsert result: 'CREATED' or 'UPDATED'.\").nullable(),\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,0BAA0B,EAAE,OAAO;CAC9C,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,8CAA8C,EAAE,OAAO;CAC3D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CAC3G,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC9E,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;AACrF,CAAC;
|
|
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.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.object({\n type: z.string().describe(\"Category of the field error (e.g., VALIDATION, REQUIRED, NOT_FOUND).\").nullable(),\n field: z.string().describe(\"Name of the input field with an error.\").nullable(),\n message: z.string().describe(\"Technical description of the field error.\").nullable(),\n}).passthrough();\nconst PlainUpdateCompany_MutationErrorSchema = z.object({\n code: z.string().describe(\"Fixed error code for handling specific errors.\").nullable(),\n type: z.string().describe(\"Category of the error (e.g., VALIDATION, FORBIDDEN, INTERNAL).\").nullable(),\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.\").nullable(),\n}).passthrough();\nconst PlainUpdateCompany_CreatedAtSchema = z.object({\n iso8601: z.string().describe(\"ISO 8601 timestamp of creation.\").nullable(),\n}).passthrough();\nconst PlainUpdateCompany_CompanySchema = z.object({\n id: z.string().describe(\"Unique ID of the company.\").nullable(),\n name: z.string().describe(\"Name of the company.\").nullable(),\n createdAt: PlainUpdateCompany_CreatedAtSchema.nullable(),\n domainName: z.string().describe(\"Domain name of the company.\").nullable(),\n}).passthrough();\nexport const PlainUpdateCompanyOutput = z.object({\n error: PlainUpdateCompany_MutationErrorSchema.nullable().optional(),\n result: z.string().describe(\"Upsert result: 'CREATED' or 'UPDATED'.\").nullable(),\n company: PlainUpdateCompany_CompanySchema.nullable(),\n}).passthrough();\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,0BAA0B,EAAE,OAAO;CAC9C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;CACjD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG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CAAC,CAAC,SAAS;CAC3D,WAAW,mCAAmC,SAAS;CACvD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;AAC1E,CAAC,CAAC,CAAC,YAAY;AAOf,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAXsC,EAAE,OAAO;EAC/C,OAAO,uCAAuC,SAAS,CAAC,CAAC,SAAS;EAClE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;EAC/E,SAAS,iCAAiC,SAAS;CACrD,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|
|
@@ -9,23 +9,23 @@ const PlainUpdateThread_MutationFieldErrorSchema = zod.z.object({
|
|
|
9
9
|
type: zod.z.string().describe("Type of the field error, e.g., REQUIRED or VALIDATION").nullable(),
|
|
10
10
|
field: zod.z.string().describe("The name of the field with an error").nullable(),
|
|
11
11
|
message: zod.z.string().describe("Technical message describing the field error").nullable()
|
|
12
|
-
});
|
|
12
|
+
}).passthrough();
|
|
13
13
|
const PlainUpdateThread_MutationErrorSchema = zod.z.object({
|
|
14
14
|
code: zod.z.string().describe("Fixed error code identifying the error").nullable(),
|
|
15
15
|
type: zod.z.string().describe("High-level error type, e.g., VALIDATION or FORBIDDEN").nullable(),
|
|
16
16
|
fields: zod.z.array(PlainUpdateThread_MutationFieldErrorSchema).describe("List of field-specific errors, if any").nullable().optional(),
|
|
17
17
|
message: zod.z.string().describe("Technical message describing the mutation failure").nullable()
|
|
18
|
-
});
|
|
19
|
-
const PlainUpdateThread_DateTimeModelSchema = zod.z.object({ iso8601: zod.z.string().describe("ISO 8601 timestamp string").nullable() });
|
|
18
|
+
}).passthrough();
|
|
19
|
+
const PlainUpdateThread_DateTimeModelSchema = zod.z.object({ iso8601: zod.z.string().describe("ISO 8601 timestamp string").nullable() }).passthrough();
|
|
20
20
|
const PlainUpdateThread_ThreadModelSchema = zod.z.object({
|
|
21
21
|
id: zod.z.string().describe("Thread unique identifier").nullable(),
|
|
22
22
|
title: zod.z.string().describe("Thread title").nullable(),
|
|
23
23
|
updatedAt: PlainUpdateThread_DateTimeModelSchema.nullable()
|
|
24
|
-
});
|
|
24
|
+
}).passthrough();
|
|
25
25
|
const PlainUpdateThreadOutput = zod.z.object({
|
|
26
26
|
error: PlainUpdateThread_MutationErrorSchema.nullable().optional(),
|
|
27
27
|
thread: PlainUpdateThread_ThreadModelSchema.nullable().optional()
|
|
28
|
-
});
|
|
28
|
+
}).passthrough();
|
|
29
29
|
const plainUpdateThread = require_action.action("PLAIN_UPDATE_THREAD", {
|
|
30
30
|
slug: "plain-update-thread",
|
|
31
31
|
name: "Update Thread",
|
|
@@ -1 +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.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.object({\n type: z.string().describe(\"Type of the field error, e.g., REQUIRED or VALIDATION\").nullable(),\n field: z.string().describe(\"The name of the field with an error\").nullable(),\n message: z.string().describe(\"Technical message describing the field error\").nullable(),\n});\nconst PlainUpdateThread_MutationErrorSchema = z.object({\n code: z.string().describe(\"Fixed error code identifying the error\").nullable(),\n type: z.string().describe(\"High-level error type, e.g., VALIDATION or FORBIDDEN\").nullable(),\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\").nullable(),\n});\nconst PlainUpdateThread_DateTimeModelSchema = z.object({\n iso8601: z.string().describe(\"ISO 8601 timestamp string\").nullable(),\n});\nconst PlainUpdateThread_ThreadModelSchema = z.object({\n id: z.string().describe(\"Thread unique identifier\").nullable(),\n title: z.string().describe(\"Thread title\").nullable(),\n updatedAt: PlainUpdateThread_DateTimeModelSchema.nullable(),\n});\nexport const PlainUpdateThreadOutput = 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,yBAAyBA,IAAAA,EAAE,OAAO;CAC7C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;CACrD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;AAC3E,CAAC;AACD,MAAM,6CAA6CA,IAAAA,EAAE,OAAO;CAC1D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAC5F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC3E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;AACxF,CAAC;
|
|
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.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.object({\n type: z.string().describe(\"Type of the field error, e.g., REQUIRED or VALIDATION\").nullable(),\n field: z.string().describe(\"The name of the field with an error\").nullable(),\n message: z.string().describe(\"Technical message describing the field error\").nullable(),\n}).passthrough();\nconst PlainUpdateThread_MutationErrorSchema = z.object({\n code: z.string().describe(\"Fixed error code identifying the error\").nullable(),\n type: z.string().describe(\"High-level error type, e.g., VALIDATION or FORBIDDEN\").nullable(),\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\").nullable(),\n}).passthrough();\nconst PlainUpdateThread_DateTimeModelSchema = z.object({\n iso8601: z.string().describe(\"ISO 8601 timestamp string\").nullable(),\n}).passthrough();\nconst PlainUpdateThread_ThreadModelSchema = z.object({\n id: z.string().describe(\"Thread unique identifier\").nullable(),\n title: z.string().describe(\"Thread title\").nullable(),\n updatedAt: PlainUpdateThread_DateTimeModelSchema.nullable(),\n}).passthrough();\nexport const PlainUpdateThreadOutput = z.object({\n error: PlainUpdateThread_MutationErrorSchema.nullable().optional(),\n thread: PlainUpdateThread_ThreadModelSchema.nullable().optional(),\n}).passthrough();\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,yBAAyBA,IAAAA,EAAE,OAAO;CAC7C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;CACrD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;AAC3E,CAAC;AACD,MAAM,6CAA6CA,IAAAA,EAAE,OAAO;CAC1D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAC5F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC3E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;AACxF,CAAC,CAAC,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
message: z.ZodNullable<z.ZodString>;
|
|
16
|
-
}, z.core.$
|
|
16
|
+
}, z.core.$loose>>>>;
|
|
17
17
|
message: z.ZodNullable<z.ZodString>;
|
|
18
|
-
}, z.core.$
|
|
18
|
+
}, z.core.$loose>>>;
|
|
19
19
|
thread: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
20
20
|
id: z.ZodNullable<z.ZodString>;
|
|
21
21
|
title: z.ZodNullable<z.ZodString>;
|
|
22
22
|
updatedAt: z.ZodNullable<z.ZodObject<{
|
|
23
23
|
iso8601: z.ZodNullable<z.ZodString>;
|
|
24
|
-
}, z.core.$
|
|
25
|
-
}, z.core.$
|
|
26
|
-
}, z.core.$
|
|
24
|
+
}, z.core.$loose>>;
|
|
25
|
+
}, z.core.$loose>>>;
|
|
26
|
+
}, z.core.$loose>;
|
|
27
27
|
declare const plainUpdateThread: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
28
28
|
title: string;
|
|
29
29
|
threadId: string;
|
|
@@ -13,17 +13,17 @@ declare const PlainUpdateThreadOutput: z.ZodObject<{
|
|
|
13
13
|
type: z.ZodNullable<z.ZodString>;
|
|
14
14
|
field: z.ZodNullable<z.ZodString>;
|
|
15
15
|
message: z.ZodNullable<z.ZodString>;
|
|
16
|
-
}, z.core.$
|
|
16
|
+
}, z.core.$loose>>>>;
|
|
17
17
|
message: z.ZodNullable<z.ZodString>;
|
|
18
|
-
}, z.core.$
|
|
18
|
+
}, z.core.$loose>>>;
|
|
19
19
|
thread: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
20
20
|
id: z.ZodNullable<z.ZodString>;
|
|
21
21
|
title: z.ZodNullable<z.ZodString>;
|
|
22
22
|
updatedAt: z.ZodNullable<z.ZodObject<{
|
|
23
23
|
iso8601: z.ZodNullable<z.ZodString>;
|
|
24
|
-
}, z.core.$
|
|
25
|
-
}, z.core.$
|
|
26
|
-
}, z.core.$
|
|
24
|
+
}, z.core.$loose>>;
|
|
25
|
+
}, z.core.$loose>>>;
|
|
26
|
+
}, z.core.$loose>;
|
|
27
27
|
declare const plainUpdateThread: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
28
28
|
title: string;
|
|
29
29
|
threadId: string;
|
|
@@ -9,19 +9,19 @@ const PlainUpdateThread_MutationFieldErrorSchema = z.object({
|
|
|
9
9
|
type: z.string().describe("Type of the field error, e.g., REQUIRED or VALIDATION").nullable(),
|
|
10
10
|
field: z.string().describe("The name of the field with an error").nullable(),
|
|
11
11
|
message: z.string().describe("Technical message describing the field error").nullable()
|
|
12
|
-
});
|
|
12
|
+
}).passthrough();
|
|
13
13
|
const PlainUpdateThread_MutationErrorSchema = z.object({
|
|
14
14
|
code: z.string().describe("Fixed error code identifying the error").nullable(),
|
|
15
15
|
type: z.string().describe("High-level error type, e.g., VALIDATION or FORBIDDEN").nullable(),
|
|
16
16
|
fields: z.array(PlainUpdateThread_MutationFieldErrorSchema).describe("List of field-specific errors, if any").nullable().optional(),
|
|
17
17
|
message: z.string().describe("Technical message describing the mutation failure").nullable()
|
|
18
|
-
});
|
|
19
|
-
const PlainUpdateThread_DateTimeModelSchema = z.object({ iso8601: z.string().describe("ISO 8601 timestamp string").nullable() });
|
|
18
|
+
}).passthrough();
|
|
19
|
+
const PlainUpdateThread_DateTimeModelSchema = z.object({ iso8601: z.string().describe("ISO 8601 timestamp string").nullable() }).passthrough();
|
|
20
20
|
const PlainUpdateThread_ThreadModelSchema = z.object({
|
|
21
21
|
id: z.string().describe("Thread unique identifier").nullable(),
|
|
22
22
|
title: z.string().describe("Thread title").nullable(),
|
|
23
23
|
updatedAt: PlainUpdateThread_DateTimeModelSchema.nullable()
|
|
24
|
-
});
|
|
24
|
+
}).passthrough();
|
|
25
25
|
const plainUpdateThread = action("PLAIN_UPDATE_THREAD", {
|
|
26
26
|
slug: "plain-update-thread",
|
|
27
27
|
name: "Update Thread",
|
|
@@ -30,7 +30,7 @@ const plainUpdateThread = action("PLAIN_UPDATE_THREAD", {
|
|
|
30
30
|
output: z.object({
|
|
31
31
|
error: PlainUpdateThread_MutationErrorSchema.nullable().optional(),
|
|
32
32
|
thread: PlainUpdateThread_ThreadModelSchema.nullable().optional()
|
|
33
|
-
})
|
|
33
|
+
}).passthrough()
|
|
34
34
|
});
|
|
35
35
|
//#endregion
|
|
36
36
|
export { plainUpdateThread };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-thread.mjs","names":[],"sources":["../../src/actions/update-thread.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainUpdateThreadInput = 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.object({\n type: z.string().describe(\"Type of the field error, e.g., REQUIRED or VALIDATION\").nullable(),\n field: z.string().describe(\"The name of the field with an error\").nullable(),\n message: z.string().describe(\"Technical message describing the field error\").nullable(),\n});\nconst PlainUpdateThread_MutationErrorSchema = z.object({\n code: z.string().describe(\"Fixed error code identifying the error\").nullable(),\n type: z.string().describe(\"High-level error type, e.g., VALIDATION or FORBIDDEN\").nullable(),\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\").nullable(),\n});\nconst PlainUpdateThread_DateTimeModelSchema = z.object({\n iso8601: z.string().describe(\"ISO 8601 timestamp string\").nullable(),\n});\nconst PlainUpdateThread_ThreadModelSchema = z.object({\n id: z.string().describe(\"Thread unique identifier\").nullable(),\n title: z.string().describe(\"Thread title\").nullable(),\n updatedAt: PlainUpdateThread_DateTimeModelSchema.nullable(),\n});\nexport const PlainUpdateThreadOutput = 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,yBAAyB,EAAE,OAAO;CAC7C,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;CACrD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;AAC3E,CAAC;AACD,MAAM,6CAA6C,EAAE,OAAO;CAC1D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAC5F,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC3E,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;AACxF,CAAC;
|
|
1
|
+
{"version":3,"file":"update-thread.mjs","names":[],"sources":["../../src/actions/update-thread.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainUpdateThreadInput = 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.object({\n type: z.string().describe(\"Type of the field error, e.g., REQUIRED or VALIDATION\").nullable(),\n field: z.string().describe(\"The name of the field with an error\").nullable(),\n message: z.string().describe(\"Technical message describing the field error\").nullable(),\n}).passthrough();\nconst PlainUpdateThread_MutationErrorSchema = z.object({\n code: z.string().describe(\"Fixed error code identifying the error\").nullable(),\n type: z.string().describe(\"High-level error type, e.g., VALIDATION or FORBIDDEN\").nullable(),\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\").nullable(),\n}).passthrough();\nconst PlainUpdateThread_DateTimeModelSchema = z.object({\n iso8601: z.string().describe(\"ISO 8601 timestamp string\").nullable(),\n}).passthrough();\nconst PlainUpdateThread_ThreadModelSchema = z.object({\n id: z.string().describe(\"Thread unique identifier\").nullable(),\n title: z.string().describe(\"Thread title\").nullable(),\n updatedAt: PlainUpdateThread_DateTimeModelSchema.nullable(),\n}).passthrough();\nexport const PlainUpdateThreadOutput = z.object({\n error: PlainUpdateThread_MutationErrorSchema.nullable().optional(),\n thread: PlainUpdateThread_ThreadModelSchema.nullable().optional(),\n}).passthrough();\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,yBAAyB,EAAE,OAAO;CAC7C,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;CACrD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;AAC3E,CAAC;AACD,MAAM,6CAA6C,EAAE,OAAO;CAC1D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAC5F,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC3E,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;AACxF,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,wCAAwC,EAAE,OAAO;CACrD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC7E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC3F,QAAQ,EAAE,MAAM,0CAA0C,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClI,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;AAC7F,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,wCAAwC,EAAE,OAAO,EACrD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,EACrE,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,sCAAsC,EAAE,OAAO;CACnD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAC7D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS;CACpD,WAAW,sCAAsC,SAAS;AAC5D,CAAC,CAAC,CAAC,YAAY;AAMf,MAAa,oBAAoB,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVqC,EAAE,OAAO;EAC9C,OAAO,sCAAsC,SAAS,CAAC,CAAC,SAAS;EACjE,QAAQ,oCAAoC,SAAS,CAAC,CAAC,SAAS;CAClE,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|
|
@@ -13,12 +13,12 @@ const PlainUpsertCustomerInput = zod.z.object({
|
|
|
13
13
|
tenantIdentifiers: zod.z.array(zod.z.object({
|
|
14
14
|
tenantId: zod.z.string().describe("Plain internal ID of the tenant.").optional(),
|
|
15
15
|
external_id: zod.z.string().describe("External ID of the tenant.").optional()
|
|
16
|
-
}).describe("Identifier for a tenant. Provide exactly one field.")).describe("Tenants to assign on create.").optional(),
|
|
16
|
+
}).passthrough().describe("Identifier for a tenant. Provide exactly one field.")).describe("Tenants to assign on create.").optional(),
|
|
17
17
|
customerGroupIdentifiers: zod.z.array(zod.z.object({
|
|
18
18
|
external_id: zod.z.string().describe("Your external ID for the customer group.").optional(),
|
|
19
19
|
customerGroupId: zod.z.string().describe("Plain internal ID of the customer group.").optional(),
|
|
20
20
|
customerGroupKey: zod.z.string().describe("Unique key of the customer group.").optional()
|
|
21
|
-
}).describe("Identifier for a customer group. Provide exactly one field.")).describe("Groups to assign on create.").optional()
|
|
21
|
+
}).passthrough().describe("Identifier for a customer group. Provide exactly one field.")).describe("Groups to assign on create.").optional()
|
|
22
22
|
}).describe("Details for creation if not found."),
|
|
23
23
|
onUpdate: zod.z.object({
|
|
24
24
|
email: zod.z.object({
|
|
@@ -43,23 +43,23 @@ const PlainUpsertCustomer_MutationFieldErrorSchema = zod.z.object({
|
|
|
43
43
|
]).nullable(),
|
|
44
44
|
field: zod.z.string().nullable(),
|
|
45
45
|
message: zod.z.string().nullable()
|
|
46
|
-
});
|
|
46
|
+
}).passthrough();
|
|
47
47
|
const PlainUpsertCustomer_MutationErrorSchema = zod.z.object({
|
|
48
48
|
code: zod.z.string().nullable(),
|
|
49
49
|
fields: zod.z.array(PlainUpsertCustomer_MutationFieldErrorSchema).nullable(),
|
|
50
50
|
message: zod.z.string().nullable()
|
|
51
|
-
});
|
|
51
|
+
}).passthrough();
|
|
52
52
|
const PlainUpsertCustomer_EmailAddressInputSchema = zod.z.object({
|
|
53
53
|
email: zod.z.string().describe("The customer's email address.").nullable(),
|
|
54
54
|
isVerified: zod.z.boolean().describe("Whether the email address is already verified.").nullable()
|
|
55
|
-
}).describe("Input object for email address with verification status.");
|
|
55
|
+
}).passthrough().describe("Input object for email address with verification status.");
|
|
56
56
|
const PlainUpsertCustomer_CustomerResponseSchema = zod.z.object({
|
|
57
57
|
id: zod.z.string().nullable(),
|
|
58
58
|
email: PlainUpsertCustomer_EmailAddressInputSchema.nullable(),
|
|
59
59
|
fullName: zod.z.string().nullable(),
|
|
60
60
|
shortName: zod.z.string().nullable().optional(),
|
|
61
61
|
externalId: zod.z.string().nullable().optional()
|
|
62
|
-
});
|
|
62
|
+
}).passthrough();
|
|
63
63
|
const PlainUpsertCustomerOutput = zod.z.object({
|
|
64
64
|
error: PlainUpsertCustomer_MutationErrorSchema.nullable(),
|
|
65
65
|
result: zod.z.enum([
|
|
@@ -68,7 +68,7 @@ const PlainUpsertCustomerOutput = zod.z.object({
|
|
|
68
68
|
"NOOP"
|
|
69
69
|
]).nullable(),
|
|
70
70
|
customer: PlainUpsertCustomer_CustomerResponseSchema.nullable()
|
|
71
|
-
});
|
|
71
|
+
}).passthrough();
|
|
72
72
|
const plainUpsertCustomer = require_action.action("PLAIN_UPSERT_CUSTOMER", {
|
|
73
73
|
slug: "plain-upsert-customer",
|
|
74
74
|
name: "Upsert Customer",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upsert-customer.cjs","names":["z","action"],"sources":["../../src/actions/upsert-customer.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainUpsertCustomerInput = z.object({\n onCreate: z.object({\n email: z.object({\n email: z.string().describe(\"The customer's email address.\"),\n isVerified: z.boolean().describe(\"Whether the email address is already verified.\"),\n}).describe(\"Email details for the new customer.\"),\n fullName: z.string().describe(\"Full name for the new customer.\"),\n shortName: z.string().describe(\"Optional short name for the new customer.\").optional(),\n externalId: z.string().describe(\"External ID to set on customer creation.\").optional(),\n tenantIdentifiers: z.array(z.object({\n tenantId: z.string().describe(\"Plain internal ID of the tenant.\").optional(),\n external_id: z.string().describe(\"External ID of the tenant.\").optional(),\n}).describe(\"Identifier for a tenant. Provide exactly one field.\")).describe(\"Tenants to assign on create.\").optional(),\n customerGroupIdentifiers: z.array(z.object({\n external_id: z.string().describe(\"Your external ID for the customer group.\").optional(),\n customerGroupId: z.string().describe(\"Plain internal ID of the customer group.\").optional(),\n customerGroupKey: z.string().describe(\"Unique key of the customer group.\").optional(),\n}).describe(\"Identifier for a customer group. Provide exactly one field.\")).describe(\"Groups to assign on create.\").optional(),\n}).describe(\"Details for creation if not found.\"),\n onUpdate: z.object({\n email: z.object({\n email: z.string().describe(\"The customer's email address.\"),\n isVerified: z.boolean().describe(\"Whether the email address is already verified.\"),\n}).describe(\"Input object for email address with verification status.\").optional(),\n fullName: z.object({\n value: z.string().describe(\"The string value to set.\"),\n}).describe(\"Wrapper for required string inputs in onUpdate.\").optional(),\n shortName: z.object({\n value: z.string().describe(\"The optional string value to set.\").optional(),\n}).describe(\"Wrapper for optional string inputs in onUpdate.\").optional(),\n externalId: z.object({\n value: z.string().describe(\"The optional string value to set.\").optional(),\n}).describe(\"Wrapper for optional string inputs in onUpdate.\").optional(),\n}).describe(\"Details for update if found.\"),\n identifier: z.object({\n customerId: z.string().describe(\"Plain internal customer ID.\").optional(),\n externalId: z.string().describe(\"External ID of the customer in your system.\").optional(),\n emailAddress: z.string().describe(\"Customer's email address. Must be unique and valid format.\").optional(),\n}).describe(\"Selector for existing customer.\"),\n}).describe(\"Request input for upserting a customer.\");\nconst PlainUpsertCustomer_MutationFieldErrorSchema = z.object({\n type: z.enum([\"VALIDATION\", \"REQUIRED\", \"NOT_FOUND\"]).nullable(),\n field: z.string().nullable(),\n message: z.string().nullable(),\n});\nconst PlainUpsertCustomer_MutationErrorSchema = z.object({\n code: z.string().nullable(),\n fields: z.array(PlainUpsertCustomer_MutationFieldErrorSchema).nullable(),\n message: z.string().nullable(),\n});\nconst PlainUpsertCustomer_EmailAddressInputSchema = z.object({\n email: z.string().describe(\"The customer's email address.\").nullable(),\n isVerified: z.boolean().describe(\"Whether the email address is already verified.\").nullable(),\n}).describe(\"Input object for email address with verification status.\");\nconst PlainUpsertCustomer_CustomerResponseSchema = z.object({\n id: z.string().nullable(),\n email: PlainUpsertCustomer_EmailAddressInputSchema.nullable(),\n fullName: z.string().nullable(),\n shortName: z.string().nullable().optional(),\n externalId: z.string().nullable().optional(),\n});\nexport const PlainUpsertCustomerOutput = z.object({\n error: PlainUpsertCustomer_MutationErrorSchema.nullable(),\n result: z.enum([\"CREATED\", \"UPDATED\", \"NOOP\"]).nullable(),\n customer: PlainUpsertCustomer_CustomerResponseSchema.nullable(),\n});\n\nexport const plainUpsertCustomer = action(\"PLAIN_UPSERT_CUSTOMER\", {\n slug: \"plain-upsert-customer\",\n name: \"Upsert Customer\",\n description: \"Tool to upsert (create or update) a customer. Use when syncing or ensuring a customer record exists before subsequent actions.\",\n input: PlainUpsertCustomerInput,\n output: PlainUpsertCustomerOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,UAAUA,IAAAA,EAAE,OAAO;EACnB,OAAOA,IAAAA,EAAE,OAAO;GAChB,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;GAC1D,YAAYA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,gDAAgD;EACnF,CAAC,CAAC,CAAC,SAAS,qCAAqC;EAC/C,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;EAC/D,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;EACrF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;EACrF,mBAAmBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;GACpC,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;GAC3E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;EAC1E,CAAC,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;
|
|
1
|
+
{"version":3,"file":"upsert-customer.cjs","names":["z","action"],"sources":["../../src/actions/upsert-customer.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainUpsertCustomerInput = z.object({\n onCreate: z.object({\n email: z.object({\n email: z.string().describe(\"The customer's email address.\"),\n isVerified: z.boolean().describe(\"Whether the email address is already verified.\"),\n}).describe(\"Email details for the new customer.\"),\n fullName: z.string().describe(\"Full name for the new customer.\"),\n shortName: z.string().describe(\"Optional short name for the new customer.\").optional(),\n externalId: z.string().describe(\"External ID to set on customer creation.\").optional(),\n tenantIdentifiers: z.array(z.object({\n tenantId: z.string().describe(\"Plain internal ID of the tenant.\").optional(),\n external_id: z.string().describe(\"External ID of the tenant.\").optional(),\n}).passthrough().describe(\"Identifier for a tenant. Provide exactly one field.\")).describe(\"Tenants to assign on create.\").optional(),\n customerGroupIdentifiers: z.array(z.object({\n external_id: z.string().describe(\"Your external ID for the customer group.\").optional(),\n customerGroupId: z.string().describe(\"Plain internal ID of the customer group.\").optional(),\n customerGroupKey: z.string().describe(\"Unique key of the customer group.\").optional(),\n}).passthrough().describe(\"Identifier for a customer group. Provide exactly one field.\")).describe(\"Groups to assign on create.\").optional(),\n}).describe(\"Details for creation if not found.\"),\n onUpdate: z.object({\n email: z.object({\n email: z.string().describe(\"The customer's email address.\"),\n isVerified: z.boolean().describe(\"Whether the email address is already verified.\"),\n}).describe(\"Input object for email address with verification status.\").optional(),\n fullName: z.object({\n value: z.string().describe(\"The string value to set.\"),\n}).describe(\"Wrapper for required string inputs in onUpdate.\").optional(),\n shortName: z.object({\n value: z.string().describe(\"The optional string value to set.\").optional(),\n}).describe(\"Wrapper for optional string inputs in onUpdate.\").optional(),\n externalId: z.object({\n value: z.string().describe(\"The optional string value to set.\").optional(),\n}).describe(\"Wrapper for optional string inputs in onUpdate.\").optional(),\n}).describe(\"Details for update if found.\"),\n identifier: z.object({\n customerId: z.string().describe(\"Plain internal customer ID.\").optional(),\n externalId: z.string().describe(\"External ID of the customer in your system.\").optional(),\n emailAddress: z.string().describe(\"Customer's email address. Must be unique and valid format.\").optional(),\n}).describe(\"Selector for existing customer.\"),\n}).describe(\"Request input for upserting a customer.\");\nconst PlainUpsertCustomer_MutationFieldErrorSchema = z.object({\n type: z.enum([\"VALIDATION\", \"REQUIRED\", \"NOT_FOUND\"]).nullable(),\n field: z.string().nullable(),\n message: z.string().nullable(),\n}).passthrough();\nconst PlainUpsertCustomer_MutationErrorSchema = z.object({\n code: z.string().nullable(),\n fields: z.array(PlainUpsertCustomer_MutationFieldErrorSchema).nullable(),\n message: z.string().nullable(),\n}).passthrough();\nconst PlainUpsertCustomer_EmailAddressInputSchema = z.object({\n email: z.string().describe(\"The customer's email address.\").nullable(),\n isVerified: z.boolean().describe(\"Whether the email address is already verified.\").nullable(),\n}).passthrough().describe(\"Input object for email address with verification status.\");\nconst PlainUpsertCustomer_CustomerResponseSchema = z.object({\n id: z.string().nullable(),\n email: PlainUpsertCustomer_EmailAddressInputSchema.nullable(),\n fullName: z.string().nullable(),\n shortName: z.string().nullable().optional(),\n externalId: z.string().nullable().optional(),\n}).passthrough();\nexport const PlainUpsertCustomerOutput = z.object({\n error: PlainUpsertCustomer_MutationErrorSchema.nullable(),\n result: z.enum([\"CREATED\", \"UPDATED\", \"NOOP\"]).nullable(),\n customer: PlainUpsertCustomer_CustomerResponseSchema.nullable(),\n}).passthrough();\n\nexport const plainUpsertCustomer = action(\"PLAIN_UPSERT_CUSTOMER\", {\n slug: \"plain-upsert-customer\",\n name: \"Upsert Customer\",\n description: \"Tool to upsert (create or update) a customer. Use when syncing or ensuring a customer record exists before subsequent actions.\",\n input: PlainUpsertCustomerInput,\n output: PlainUpsertCustomerOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,UAAUA,IAAAA,EAAE,OAAO;EACnB,OAAOA,IAAAA,EAAE,OAAO;GAChB,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;GAC1D,YAAYA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,gDAAgD;EACnF,CAAC,CAAC,CAAC,SAAS,qCAAqC;EAC/C,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;EAC/D,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;EACrF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;EACrF,mBAAmBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;GACpC,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SA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