@keystrokehq/plain 0.1.4 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/add-customer-to-group.cjs +1 -0
- package/dist/actions/add-customer-to-group.cjs.map +1 -1
- package/dist/actions/add-customer-to-group.d.cts +3 -9
- package/dist/actions/add-customer-to-group.d.cts.map +1 -1
- package/dist/actions/add-customer-to-group.d.mts +3 -9
- package/dist/actions/add-customer-to-group.d.mts.map +1 -1
- package/dist/actions/add-customer-to-group.mjs +1 -0
- package/dist/actions/add-customer-to-group.mjs.map +1 -1
- package/dist/actions/create-customer-group.cjs +1 -0
- package/dist/actions/create-customer-group.cjs.map +1 -1
- package/dist/actions/create-customer-group.d.cts +3 -6
- package/dist/actions/create-customer-group.d.cts.map +1 -1
- package/dist/actions/create-customer-group.d.mts +3 -6
- package/dist/actions/create-customer-group.d.mts.map +1 -1
- package/dist/actions/create-customer-group.mjs +1 -0
- package/dist/actions/create-customer-group.mjs.map +1 -1
- package/dist/actions/create-thread.cjs +1 -0
- package/dist/actions/create-thread.cjs.map +1 -1
- package/dist/actions/create-thread.d.cts +3 -18
- package/dist/actions/create-thread.d.cts.map +1 -1
- package/dist/actions/create-thread.d.mts +3 -18
- package/dist/actions/create-thread.d.mts.map +1 -1
- package/dist/actions/create-thread.mjs +1 -0
- package/dist/actions/create-thread.mjs.map +1 -1
- package/dist/actions/delete-customer.cjs +1 -0
- package/dist/actions/delete-customer.cjs.map +1 -1
- package/dist/actions/delete-customer.d.cts +3 -3
- package/dist/actions/delete-customer.d.cts.map +1 -1
- package/dist/actions/delete-customer.d.mts +3 -3
- package/dist/actions/delete-customer.d.mts.map +1 -1
- package/dist/actions/delete-customer.mjs +1 -0
- package/dist/actions/delete-customer.mjs.map +1 -1
- package/dist/actions/delete-user.cjs +1 -0
- package/dist/actions/delete-user.cjs.map +1 -1
- package/dist/actions/delete-user.d.cts +3 -3
- package/dist/actions/delete-user.d.cts.map +1 -1
- package/dist/actions/delete-user.d.mts +3 -3
- package/dist/actions/delete-user.d.mts.map +1 -1
- package/dist/actions/delete-user.mjs +1 -0
- package/dist/actions/delete-user.mjs.map +1 -1
- package/dist/actions/fetch-company.cjs +1 -0
- package/dist/actions/fetch-company.cjs.map +1 -1
- package/dist/actions/fetch-company.d.cts +3 -3
- package/dist/actions/fetch-company.d.cts.map +1 -1
- package/dist/actions/fetch-company.d.mts +3 -3
- package/dist/actions/fetch-company.d.mts.map +1 -1
- package/dist/actions/fetch-company.mjs +1 -0
- package/dist/actions/fetch-company.mjs.map +1 -1
- package/dist/actions/fetch-issues.cjs +1 -0
- package/dist/actions/fetch-issues.cjs.map +1 -1
- package/dist/actions/fetch-issues.d.cts +3 -5
- package/dist/actions/fetch-issues.d.cts.map +1 -1
- package/dist/actions/fetch-issues.d.mts +3 -5
- package/dist/actions/fetch-issues.d.mts.map +1 -1
- package/dist/actions/fetch-issues.mjs +1 -0
- package/dist/actions/fetch-issues.mjs.map +1 -1
- package/dist/actions/fetch-tier.cjs +1 -0
- package/dist/actions/fetch-tier.cjs.map +1 -1
- package/dist/actions/fetch-tier.d.cts +3 -3
- package/dist/actions/fetch-tier.d.cts.map +1 -1
- package/dist/actions/fetch-tier.d.mts +3 -3
- package/dist/actions/fetch-tier.d.mts.map +1 -1
- package/dist/actions/fetch-tier.mjs +1 -0
- package/dist/actions/fetch-tier.mjs.map +1 -1
- package/dist/actions/get-customer-by-email.cjs +1 -0
- package/dist/actions/get-customer-by-email.cjs.map +1 -1
- package/dist/actions/get-customer-by-email.d.cts +3 -3
- package/dist/actions/get-customer-by-email.d.cts.map +1 -1
- package/dist/actions/get-customer-by-email.d.mts +3 -3
- package/dist/actions/get-customer-by-email.d.mts.map +1 -1
- package/dist/actions/get-customer-by-email.mjs +1 -0
- package/dist/actions/get-customer-by-email.mjs.map +1 -1
- package/dist/actions/get-customer-by-id.cjs +1 -0
- package/dist/actions/get-customer-by-id.cjs.map +1 -1
- package/dist/actions/get-customer-by-id.d.cts +3 -3
- package/dist/actions/get-customer-by-id.d.cts.map +1 -1
- package/dist/actions/get-customer-by-id.d.mts +3 -3
- package/dist/actions/get-customer-by-id.d.mts.map +1 -1
- package/dist/actions/get-customer-by-id.mjs +1 -0
- package/dist/actions/get-customer-by-id.mjs.map +1 -1
- package/dist/actions/get-customers.cjs +1 -0
- package/dist/actions/get-customers.cjs.map +1 -1
- package/dist/actions/get-customers.d.cts +3 -15
- package/dist/actions/get-customers.d.cts.map +1 -1
- package/dist/actions/get-customers.d.mts +3 -15
- package/dist/actions/get-customers.d.mts.map +1 -1
- package/dist/actions/get-customers.mjs +1 -0
- package/dist/actions/get-customers.mjs.map +1 -1
- package/dist/actions/get-thread-by-id.cjs +1 -0
- package/dist/actions/get-thread-by-id.cjs.map +1 -1
- package/dist/actions/get-thread-by-id.d.cts +3 -3
- package/dist/actions/get-thread-by-id.d.cts.map +1 -1
- package/dist/actions/get-thread-by-id.d.mts +3 -3
- package/dist/actions/get-thread-by-id.d.mts.map +1 -1
- package/dist/actions/get-thread-by-id.mjs +1 -0
- package/dist/actions/get-thread-by-id.mjs.map +1 -1
- package/dist/actions/get-user-by-id.cjs +1 -0
- package/dist/actions/get-user-by-id.cjs.map +1 -1
- package/dist/actions/get-user-by-id.d.cts +3 -3
- package/dist/actions/get-user-by-id.d.cts.map +1 -1
- package/dist/actions/get-user-by-id.d.mts +3 -3
- package/dist/actions/get-user-by-id.d.mts.map +1 -1
- package/dist/actions/get-user-by-id.mjs +1 -0
- package/dist/actions/get-user-by-id.mjs.map +1 -1
- package/dist/actions/list-customer-groups.cjs +1 -0
- package/dist/actions/list-customer-groups.cjs.map +1 -1
- package/dist/actions/list-customer-groups.d.cts +3 -9
- package/dist/actions/list-customer-groups.d.cts.map +1 -1
- package/dist/actions/list-customer-groups.d.mts +3 -9
- package/dist/actions/list-customer-groups.d.mts.map +1 -1
- package/dist/actions/list-customer-groups.mjs +1 -0
- package/dist/actions/list-customer-groups.mjs.map +1 -1
- package/dist/actions/list-tiers.cjs +1 -0
- package/dist/actions/list-tiers.cjs.map +1 -1
- package/dist/actions/list-tiers.d.cts +3 -6
- package/dist/actions/list-tiers.d.cts.map +1 -1
- package/dist/actions/list-tiers.d.mts +3 -6
- package/dist/actions/list-tiers.d.mts.map +1 -1
- package/dist/actions/list-tiers.mjs +1 -0
- package/dist/actions/list-tiers.mjs.map +1 -1
- package/dist/actions/query-threads.cjs +1 -0
- package/dist/actions/query-threads.cjs.map +1 -1
- package/dist/actions/query-threads.d.cts +3 -4
- package/dist/actions/query-threads.d.cts.map +1 -1
- package/dist/actions/query-threads.d.mts +3 -4
- package/dist/actions/query-threads.d.mts.map +1 -1
- package/dist/actions/query-threads.mjs +1 -0
- package/dist/actions/query-threads.mjs.map +1 -1
- package/dist/actions/remove-customer-from-group.cjs +1 -0
- package/dist/actions/remove-customer-from-group.cjs.map +1 -1
- package/dist/actions/remove-customer-from-group.d.cts +3 -8
- package/dist/actions/remove-customer-from-group.d.cts.map +1 -1
- package/dist/actions/remove-customer-from-group.d.mts +3 -8
- package/dist/actions/remove-customer-from-group.d.mts.map +1 -1
- package/dist/actions/remove-customer-from-group.mjs +1 -0
- package/dist/actions/remove-customer-from-group.mjs.map +1 -1
- package/dist/actions/run-graphql-query.cjs +1 -0
- package/dist/actions/run-graphql-query.cjs.map +1 -1
- package/dist/actions/run-graphql-query.d.cts +3 -4
- package/dist/actions/run-graphql-query.d.cts.map +1 -1
- package/dist/actions/run-graphql-query.d.mts +3 -4
- package/dist/actions/run-graphql-query.d.mts.map +1 -1
- package/dist/actions/run-graphql-query.mjs +1 -0
- package/dist/actions/run-graphql-query.mjs.map +1 -1
- package/dist/actions/send-message.cjs +1 -0
- package/dist/actions/send-message.cjs.map +1 -1
- package/dist/actions/send-message.d.cts +3 -28
- package/dist/actions/send-message.d.cts.map +1 -1
- package/dist/actions/send-message.d.mts +3 -28
- package/dist/actions/send-message.d.mts.map +1 -1
- package/dist/actions/send-message.mjs +1 -0
- package/dist/actions/send-message.mjs.map +1 -1
- package/dist/actions/update-company.cjs +1 -0
- package/dist/actions/update-company.cjs.map +1 -1
- package/dist/actions/update-company.d.cts +3 -8
- package/dist/actions/update-company.d.cts.map +1 -1
- package/dist/actions/update-company.d.mts +3 -8
- package/dist/actions/update-company.d.mts.map +1 -1
- package/dist/actions/update-company.mjs +1 -0
- package/dist/actions/update-company.mjs.map +1 -1
- package/dist/actions/update-thread.cjs +1 -0
- package/dist/actions/update-thread.cjs.map +1 -1
- package/dist/actions/update-thread.d.cts +3 -4
- package/dist/actions/update-thread.d.cts.map +1 -1
- package/dist/actions/update-thread.d.mts +3 -4
- package/dist/actions/update-thread.d.mts.map +1 -1
- package/dist/actions/update-thread.mjs +1 -0
- package/dist/actions/update-thread.mjs.map +1 -1
- package/dist/actions/upsert-customer.cjs +1 -0
- package/dist/actions/upsert-customer.cjs.map +1 -1
- package/dist/actions/upsert-customer.d.cts +3 -42
- package/dist/actions/upsert-customer.d.cts.map +1 -1
- package/dist/actions/upsert-customer.d.mts +3 -42
- package/dist/actions/upsert-customer.d.mts.map +1 -1
- package/dist/actions/upsert-customer.mjs +1 -0
- package/dist/actions/upsert-customer.mjs.map +1 -1
- package/dist/app.cjs +5 -2
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +7 -1
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +7 -1
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +3 -2
- package/dist/app.mjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"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":"
|
|
1
|
+
{"version":3,"file":"update-thread.cjs","names":["z","action"],"sources":["../../src/actions/update-thread.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { plain } from \"../app\";\n\nexport const 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: AppAction<\n typeof PlainUpdateThreadInput,\n typeof PlainUpdateThreadOutput,\n typeof plain.credential\n> = 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":";;;;AAMA,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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Y;AAEf,MAAa,oBAITC,eAAAA,OAAO,uBAAuB;CAChC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { plain } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/update-thread.d.ts
|
|
@@ -24,10 +26,7 @@ declare const PlainUpdateThreadOutput: z.ZodObject<{
|
|
|
24
26
|
}, z.core.$loose>>;
|
|
25
27
|
}, z.core.$loose>>>;
|
|
26
28
|
}, z.core.$loose>;
|
|
27
|
-
declare const plainUpdateThread:
|
|
28
|
-
title: string;
|
|
29
|
-
threadId: string;
|
|
30
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
29
|
+
declare const plainUpdateThread: AppAction<typeof PlainUpdateThreadInput, typeof PlainUpdateThreadOutput, typeof plain.credential>;
|
|
31
30
|
//#endregion
|
|
32
31
|
export { plainUpdateThread };
|
|
33
32
|
//# sourceMappingURL=update-thread.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-thread.d.cts","names":[],"sources":["../../src/actions/update-thread.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-thread.d.cts","names":[],"sources":["../../src/actions/update-thread.ts"],"mappings":";;;;;cAMa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;cAuBtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;cAKvB,iBAAA,EAAmB,SAAA,QACvB,sBAAA,SACA,uBAAA,SACA,KAAA,CAAM,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { plain } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/update-thread.d.ts
|
|
@@ -24,10 +26,7 @@ declare const PlainUpdateThreadOutput: z.ZodObject<{
|
|
|
24
26
|
}, z.core.$loose>>;
|
|
25
27
|
}, z.core.$loose>>>;
|
|
26
28
|
}, z.core.$loose>;
|
|
27
|
-
declare const plainUpdateThread:
|
|
28
|
-
title: string;
|
|
29
|
-
threadId: string;
|
|
30
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
29
|
+
declare const plainUpdateThread: AppAction<typeof PlainUpdateThreadInput, typeof PlainUpdateThreadOutput, typeof plain.credential>;
|
|
31
30
|
//#endregion
|
|
32
31
|
export { plainUpdateThread };
|
|
33
32
|
//# sourceMappingURL=update-thread.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-thread.d.mts","names":[],"sources":["../../src/actions/update-thread.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-thread.d.mts","names":[],"sources":["../../src/actions/update-thread.ts"],"mappings":";;;;;cAMa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;cAuBtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;cAKvB,iBAAA,EAAmB,SAAA,QACvB,sBAAA,SACA,uBAAA,SACA,KAAA,CAAM,UAAA"}
|
|
@@ -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}).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":"
|
|
1
|
+
{"version":3,"file":"update-thread.mjs","names":[],"sources":["../../src/actions/update-thread.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { plain } from \"../app\";\n\nexport const 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: AppAction<\n typeof PlainUpdateThreadInput,\n typeof PlainUpdateThreadOutput,\n typeof plain.credential\n> = 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":";;;;AAMA,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,oBAIT,OAAO,uBAAuB;CAChC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAdqC,EAAE,OAAO;EAC9C,OAAO,sCAAsC,SAAS,CAAC,CAAC,SAAS;EACjE,QAAQ,oCAAoC,SAAS,CAAC,CAAC,SAAS;CAClE,CAAC,CAAC,CAAC,YAWO;AACV,CAAC"}
|
|
@@ -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}).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":"
|
|
1
|
+
{"version":3,"file":"upsert-customer.cjs","names":["z","action"],"sources":["../../src/actions/upsert-customer.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { plain } from \"../app\";\n\nexport const 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: AppAction<\n typeof PlainUpsertCustomerInput,\n typeof PlainUpsertCustomerOutput,\n typeof plain.credential\n> = 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":";;;;AAMA,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,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,SAAS;AAC/B,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,8CAA8CA,IAAAA,EAAE,OAAO;CAC3D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACrE,YAAYA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0DAA0D;AACpF,MAAM,6CAA6CA,IAAAA,EAAE,OAAO;CAC1D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS;CACxB,OAAO,4CAA4C,SAAS;CAC5D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS;CAC9B,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1C,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7C,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,OAAO,wCAAwC,SAAS;CACxD,QAAQA,IAAAA,EAAE,KAAK;EAAC;EAAW;EAAW;CAAM,CAAC,CAAC,CAAC,SAAS;CACxD,UAAU,2CAA2C,SAAS;AAChE,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,sBAITC,eAAAA,OAAO,yBAAyB;CAClC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { plain } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/upsert-customer.d.ts
|
|
@@ -71,48 +73,7 @@ declare const PlainUpsertCustomerOutput: z.ZodObject<{
|
|
|
71
73
|
externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
72
74
|
}, z.core.$loose>>;
|
|
73
75
|
}, z.core.$loose>;
|
|
74
|
-
declare const plainUpsertCustomer:
|
|
75
|
-
onCreate: {
|
|
76
|
-
email: {
|
|
77
|
-
email: string;
|
|
78
|
-
isVerified: boolean;
|
|
79
|
-
};
|
|
80
|
-
fullName: string;
|
|
81
|
-
shortName?: string | undefined;
|
|
82
|
-
externalId?: string | undefined;
|
|
83
|
-
tenantIdentifiers?: {
|
|
84
|
-
[x: string]: unknown;
|
|
85
|
-
tenantId?: string | undefined;
|
|
86
|
-
external_id?: string | undefined;
|
|
87
|
-
}[] | undefined;
|
|
88
|
-
customerGroupIdentifiers?: {
|
|
89
|
-
[x: string]: unknown;
|
|
90
|
-
external_id?: string | undefined;
|
|
91
|
-
customerGroupId?: string | undefined;
|
|
92
|
-
customerGroupKey?: string | undefined;
|
|
93
|
-
}[] | undefined;
|
|
94
|
-
};
|
|
95
|
-
onUpdate: {
|
|
96
|
-
email?: {
|
|
97
|
-
email: string;
|
|
98
|
-
isVerified: boolean;
|
|
99
|
-
} | undefined;
|
|
100
|
-
fullName?: {
|
|
101
|
-
value: string;
|
|
102
|
-
} | undefined;
|
|
103
|
-
shortName?: {
|
|
104
|
-
value?: string | undefined;
|
|
105
|
-
} | undefined;
|
|
106
|
-
externalId?: {
|
|
107
|
-
value?: string | undefined;
|
|
108
|
-
} | undefined;
|
|
109
|
-
};
|
|
110
|
-
identifier: {
|
|
111
|
-
customerId?: string | undefined;
|
|
112
|
-
externalId?: string | undefined;
|
|
113
|
-
emailAddress?: string | undefined;
|
|
114
|
-
};
|
|
115
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
76
|
+
declare const plainUpsertCustomer: AppAction<typeof PlainUpsertCustomerInput, typeof PlainUpsertCustomerOutput, typeof plain.credential>;
|
|
116
77
|
//#endregion
|
|
117
78
|
export { plainUpsertCustomer };
|
|
118
79
|
//# sourceMappingURL=upsert-customer.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upsert-customer.d.cts","names":[],"sources":["../../src/actions/upsert-customer.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"upsert-customer.d.cts","names":[],"sources":["../../src/actions/upsert-customer.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA6DxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAMzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,KAAA,CAAM,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { plain } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/upsert-customer.d.ts
|
|
@@ -71,48 +73,7 @@ declare const PlainUpsertCustomerOutput: z.ZodObject<{
|
|
|
71
73
|
externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
72
74
|
}, z.core.$loose>>;
|
|
73
75
|
}, z.core.$loose>;
|
|
74
|
-
declare const plainUpsertCustomer:
|
|
75
|
-
onCreate: {
|
|
76
|
-
email: {
|
|
77
|
-
email: string;
|
|
78
|
-
isVerified: boolean;
|
|
79
|
-
};
|
|
80
|
-
fullName: string;
|
|
81
|
-
shortName?: string | undefined;
|
|
82
|
-
externalId?: string | undefined;
|
|
83
|
-
tenantIdentifiers?: {
|
|
84
|
-
[x: string]: unknown;
|
|
85
|
-
tenantId?: string | undefined;
|
|
86
|
-
external_id?: string | undefined;
|
|
87
|
-
}[] | undefined;
|
|
88
|
-
customerGroupIdentifiers?: {
|
|
89
|
-
[x: string]: unknown;
|
|
90
|
-
external_id?: string | undefined;
|
|
91
|
-
customerGroupId?: string | undefined;
|
|
92
|
-
customerGroupKey?: string | undefined;
|
|
93
|
-
}[] | undefined;
|
|
94
|
-
};
|
|
95
|
-
onUpdate: {
|
|
96
|
-
email?: {
|
|
97
|
-
email: string;
|
|
98
|
-
isVerified: boolean;
|
|
99
|
-
} | undefined;
|
|
100
|
-
fullName?: {
|
|
101
|
-
value: string;
|
|
102
|
-
} | undefined;
|
|
103
|
-
shortName?: {
|
|
104
|
-
value?: string | undefined;
|
|
105
|
-
} | undefined;
|
|
106
|
-
externalId?: {
|
|
107
|
-
value?: string | undefined;
|
|
108
|
-
} | undefined;
|
|
109
|
-
};
|
|
110
|
-
identifier: {
|
|
111
|
-
customerId?: string | undefined;
|
|
112
|
-
externalId?: string | undefined;
|
|
113
|
-
emailAddress?: string | undefined;
|
|
114
|
-
};
|
|
115
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
76
|
+
declare const plainUpsertCustomer: AppAction<typeof PlainUpsertCustomerInput, typeof PlainUpsertCustomerOutput, typeof plain.credential>;
|
|
116
77
|
//#endregion
|
|
117
78
|
export { plainUpsertCustomer };
|
|
118
79
|
//# sourceMappingURL=upsert-customer.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upsert-customer.d.mts","names":[],"sources":["../../src/actions/upsert-customer.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"upsert-customer.d.mts","names":[],"sources":["../../src/actions/upsert-customer.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA6DxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAMzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,KAAA,CAAM,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upsert-customer.mjs","names":[],"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":"
|
|
1
|
+
{"version":3,"file":"upsert-customer.mjs","names":[],"sources":["../../src/actions/upsert-customer.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { plain } from \"../app\";\n\nexport const 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: AppAction<\n typeof PlainUpsertCustomerInput,\n typeof PlainUpsertCustomerOutput,\n typeof plain.credential\n> = 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":";;;;AAMA,MAAa,2BAA2B,EAAE,OAAO;CAC/C,UAAU,EAAE,OAAO;EACnB,OAAO,EAAE,OAAO;GAChB,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;GAC1D,YAAY,EAAE,QAAQ,CAAC,CAAC,SAAS,gD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CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0DAA0D;AACpF,MAAM,6CAA6C,EAAE,OAAO;CAC1D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS;CACxB,OAAO,4CAA4C,SAAS;CAC5D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS;CAC9B,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1C,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7C,CAAC,CAAC,CAAC,YAAY;AAOf,MAAa,sBAIT,OAAO,yBAAyB;CAClC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAfuC,EAAE,OAAO;EAChD,OAAO,wCAAwC,SAAS;EACxD,QAAQ,EAAE,KAAK;GAAC;GAAW;GAAW;EAAM,CAAC,CAAC,CAAC,SAAS;EACxD,UAAU,2CAA2C,SAAS;CAChE,CAAC,CAAC,CAAC,YAWO;AACV,CAAC"}
|
package/dist/app.cjs
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
let _keystrokehq_keystroke_app = require("@keystrokehq/keystroke/app");
|
|
1
2
|
//#region src/app.ts
|
|
2
|
-
const
|
|
3
|
+
const credential = { generic_api_key: require("zod").z.string() };
|
|
4
|
+
const plain = (0, _keystrokehq_keystroke_app.defineApp)({
|
|
3
5
|
slug: "plain",
|
|
4
|
-
auth: "keystroke"
|
|
6
|
+
auth: "keystroke",
|
|
7
|
+
credential
|
|
5
8
|
});
|
|
6
9
|
//#endregion
|
|
7
10
|
exports.plain = plain;
|
package/dist/app.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.cjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const plain = defineApp({\n slug: \"plain\",\n auth: \"keystroke\",\n});\n"],"mappings":";AAEA,MAAa,SAAA,
|
|
1
|
+
{"version":3,"file":"app.cjs","names":["z"],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp, type KeystrokeApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nconst credential = {\n generic_api_key: z.string(),\n};\n\nexport const plain: KeystrokeApp<\"plain\", typeof credential> = defineApp({\n slug: \"plain\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;AAGA,MAAM,aAAa,EACjB,8BAAiBA,CAAAA,CAAAA,EAAE,OAAO,EAC5B;AAEA,MAAa,SAAA,GAAA,2BAAA,UAAA,CAA4D;CACvE,MAAM;CACN,MAAM;CACN;AACF,CAAC"}
|
package/dist/app.d.cts
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
|
+
import { KeystrokeApp } from "@keystrokehq/keystroke/app";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
|
|
1
4
|
//#region src/app.d.ts
|
|
2
|
-
declare const
|
|
5
|
+
declare const credential: {
|
|
6
|
+
generic_api_key: z.ZodString;
|
|
7
|
+
};
|
|
8
|
+
declare const plain: KeystrokeApp<"plain", typeof credential>;
|
|
3
9
|
//#endregion
|
|
4
10
|
export { plain };
|
|
5
11
|
//# sourceMappingURL=app.d.cts.map
|
package/dist/app.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";;;;cAGM,UAAA;mBAEL,CAAA,CAAA,SAAA;AAAA;AAAA,cAEY,KAAA,EAAO,YAAY,iBAAiB,UAAA"}
|
package/dist/app.d.mts
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
|
+
import { KeystrokeApp } from "@keystrokehq/keystroke/app";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
|
|
1
4
|
//#region src/app.d.ts
|
|
2
|
-
declare const
|
|
5
|
+
declare const credential: {
|
|
6
|
+
generic_api_key: z.ZodString;
|
|
7
|
+
};
|
|
8
|
+
declare const plain: KeystrokeApp<"plain", typeof credential>;
|
|
3
9
|
//#endregion
|
|
4
10
|
export { plain };
|
|
5
11
|
//# sourceMappingURL=app.d.mts.map
|
package/dist/app.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";;;;cAGM,UAAA;mBAEL,CAAA,CAAA,SAAA;AAAA;AAAA,cAEY,KAAA,EAAO,YAAY,iBAAiB,UAAA"}
|
package/dist/app.mjs
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { defineApp } from "@keystrokehq/keystroke/app";
|
|
2
|
-
|
|
2
|
+
import { z } from "zod";
|
|
3
3
|
const plain = defineApp({
|
|
4
4
|
slug: "plain",
|
|
5
|
-
auth: "keystroke"
|
|
5
|
+
auth: "keystroke",
|
|
6
|
+
credential: { generic_api_key: z.string() }
|
|
6
7
|
});
|
|
7
8
|
//#endregion
|
|
8
9
|
export { plain };
|
package/dist/app.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const plain = defineApp({\n slug: \"plain\",\n auth: \"keystroke\",\n});\n"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp, type KeystrokeApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nconst credential = {\n generic_api_key: z.string(),\n};\n\nexport const plain: KeystrokeApp<\"plain\", typeof credential> = defineApp({\n slug: \"plain\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;AAOA,MAAa,QAAkD,UAAU;CACvE,MAAM;CACN,MAAM;CACN,cANA,iBAAiB,EAAE,OAAO,EAM1B;AACF,CAAC"}
|
package/dist/index.d.cts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { plain } from "./app.cjs";
|
|
1
2
|
import { plainAddCustomerToGroup } from "./actions/add-customer-to-group.cjs";
|
|
2
3
|
import { plainCreateCustomerGroup } from "./actions/create-customer-group.cjs";
|
|
3
4
|
import { plainCreateThread } from "./actions/create-thread.cjs";
|
|
@@ -20,6 +21,5 @@ import { plainSendMessage } from "./actions/send-message.cjs";
|
|
|
20
21
|
import { plainUpdateCompany } from "./actions/update-company.cjs";
|
|
21
22
|
import { plainUpdateThread } from "./actions/update-thread.cjs";
|
|
22
23
|
import { plainUpsertCustomer } from "./actions/upsert-customer.cjs";
|
|
23
|
-
import { plain } from "./app.cjs";
|
|
24
24
|
import { plainCatalog } from "./catalog.cjs";
|
|
25
25
|
export { plain, plainAddCustomerToGroup, plainCatalog, plainCreateCustomerGroup, plainCreateThread, plainDeleteCustomer, plainDeleteUser, plainFetchCompany, plainFetchIssues, plainFetchTier, plainGetCustomerByEmail, plainGetCustomerById, plainGetCustomers, plainGetThreadById, plainGetUserById, plainListCustomerGroups, plainListTiers, plainQueryThreads, plainRemoveCustomerFromGroup, plainRunGraphqlQuery, plainSendMessage, plainUpdateCompany, plainUpdateThread, plainUpsertCustomer };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { plain } from "./app.mjs";
|
|
1
2
|
import { plainAddCustomerToGroup } from "./actions/add-customer-to-group.mjs";
|
|
2
3
|
import { plainCreateCustomerGroup } from "./actions/create-customer-group.mjs";
|
|
3
4
|
import { plainCreateThread } from "./actions/create-thread.mjs";
|
|
@@ -20,6 +21,5 @@ import { plainSendMessage } from "./actions/send-message.mjs";
|
|
|
20
21
|
import { plainUpdateCompany } from "./actions/update-company.mjs";
|
|
21
22
|
import { plainUpdateThread } from "./actions/update-thread.mjs";
|
|
22
23
|
import { plainUpsertCustomer } from "./actions/upsert-customer.mjs";
|
|
23
|
-
import { plain } from "./app.mjs";
|
|
24
24
|
import { plainCatalog } from "./catalog.mjs";
|
|
25
25
|
export { plain, plainAddCustomerToGroup, plainCatalog, plainCreateCustomerGroup, plainCreateThread, plainDeleteCustomer, plainDeleteUser, plainFetchCompany, plainFetchIssues, plainFetchTier, plainGetCustomerByEmail, plainGetCustomerById, plainGetCustomers, plainGetThreadById, plainGetUserById, plainListCustomerGroups, plainListTiers, plainQueryThreads, plainRemoveCustomerFromGroup, plainRunGraphqlQuery, plainSendMessage, plainUpdateCompany, plainUpdateThread, plainUpsertCustomer };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@keystrokehq/plain",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
|
-
"@keystrokehq/keystroke": ">=0.1.
|
|
34
|
+
"@keystrokehq/keystroke": ">=0.1.104",
|
|
35
35
|
"zod": "^4.4.3"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|