@keystrokehq/plain 0.1.0 → 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/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/add-customer-to-group.cjs +17 -17
- package/dist/actions/add-customer-to-group.cjs.map +1 -1
- package/dist/actions/add-customer-to-group.d.cts +48 -3
- package/dist/actions/add-customer-to-group.d.cts.map +1 -1
- package/dist/actions/add-customer-to-group.d.mts +48 -3
- package/dist/actions/add-customer-to-group.d.mts.map +1 -1
- package/dist/actions/add-customer-to-group.mjs +17 -17
- package/dist/actions/add-customer-to-group.mjs.map +1 -1
- package/dist/actions/create-customer-group.cjs +15 -15
- package/dist/actions/create-customer-group.cjs.map +1 -1
- package/dist/actions/create-customer-group.d.cts +37 -3
- package/dist/actions/create-customer-group.d.cts.map +1 -1
- package/dist/actions/create-customer-group.d.mts +37 -3
- package/dist/actions/create-customer-group.d.mts.map +1 -1
- package/dist/actions/create-customer-group.mjs +15 -15
- package/dist/actions/create-customer-group.mjs.map +1 -1
- package/dist/actions/create-thread.cjs +19 -19
- package/dist/actions/create-thread.cjs.map +1 -1
- package/dist/actions/create-thread.d.cts +64 -3
- package/dist/actions/create-thread.d.cts.map +1 -1
- package/dist/actions/create-thread.d.mts +64 -3
- package/dist/actions/create-thread.d.mts.map +1 -1
- package/dist/actions/create-thread.mjs +19 -19
- package/dist/actions/create-thread.mjs.map +1 -1
- package/dist/actions/delete-customer.cjs +9 -9
- package/dist/actions/delete-customer.cjs.map +1 -1
- package/dist/actions/delete-customer.d.cts +18 -3
- package/dist/actions/delete-customer.d.cts.map +1 -1
- package/dist/actions/delete-customer.d.mts +18 -3
- package/dist/actions/delete-customer.d.mts.map +1 -1
- package/dist/actions/delete-customer.mjs +9 -9
- package/dist/actions/delete-customer.mjs.map +1 -1
- package/dist/actions/delete-user.cjs +9 -9
- package/dist/actions/delete-user.cjs.map +1 -1
- package/dist/actions/delete-user.d.cts +18 -3
- package/dist/actions/delete-user.d.cts.map +1 -1
- package/dist/actions/delete-user.d.mts +18 -3
- package/dist/actions/delete-user.d.mts.map +1 -1
- package/dist/actions/delete-user.mjs +9 -9
- package/dist/actions/delete-user.mjs.map +1 -1
- package/dist/actions/fetch-company.cjs +11 -11
- package/dist/actions/fetch-company.cjs.map +1 -1
- package/dist/actions/fetch-company.d.cts +26 -3
- package/dist/actions/fetch-company.d.cts.map +1 -1
- package/dist/actions/fetch-company.d.mts +26 -3
- package/dist/actions/fetch-company.d.mts.map +1 -1
- package/dist/actions/fetch-company.mjs +11 -11
- package/dist/actions/fetch-company.mjs.map +1 -1
- package/dist/actions/fetch-issues.cjs +9 -9
- package/dist/actions/fetch-issues.cjs.map +1 -1
- package/dist/actions/fetch-issues.d.cts +24 -3
- package/dist/actions/fetch-issues.d.cts.map +1 -1
- package/dist/actions/fetch-issues.d.mts +24 -3
- package/dist/actions/fetch-issues.d.mts.map +1 -1
- package/dist/actions/fetch-issues.mjs +9 -9
- package/dist/actions/fetch-issues.mjs.map +1 -1
- package/dist/actions/fetch-tier.cjs +11 -11
- package/dist/actions/fetch-tier.cjs.map +1 -1
- package/dist/actions/fetch-tier.d.cts +25 -3
- package/dist/actions/fetch-tier.d.cts.map +1 -1
- package/dist/actions/fetch-tier.d.mts +25 -3
- package/dist/actions/fetch-tier.d.mts.map +1 -1
- package/dist/actions/fetch-tier.mjs +11 -11
- package/dist/actions/fetch-tier.mjs.map +1 -1
- package/dist/actions/get-customer-by-email.cjs +9 -9
- package/dist/actions/get-customer-by-email.cjs.map +1 -1
- package/dist/actions/get-customer-by-email.d.cts +26 -3
- package/dist/actions/get-customer-by-email.d.cts.map +1 -1
- package/dist/actions/get-customer-by-email.d.mts +26 -3
- package/dist/actions/get-customer-by-email.d.mts.map +1 -1
- package/dist/actions/get-customer-by-email.mjs +9 -9
- package/dist/actions/get-customer-by-email.mjs.map +1 -1
- package/dist/actions/get-customer-by-id.cjs +6 -6
- package/dist/actions/get-customer-by-id.cjs.map +1 -1
- package/dist/actions/get-customer-by-id.d.cts +13 -3
- package/dist/actions/get-customer-by-id.d.cts.map +1 -1
- package/dist/actions/get-customer-by-id.d.mts +13 -3
- package/dist/actions/get-customer-by-id.d.mts.map +1 -1
- package/dist/actions/get-customer-by-id.mjs +6 -6
- package/dist/actions/get-customer-by-id.mjs.map +1 -1
- package/dist/actions/get-customers.cjs +14 -14
- package/dist/actions/get-customers.cjs.map +1 -1
- package/dist/actions/get-customers.d.cts +59 -3
- package/dist/actions/get-customers.d.cts.map +1 -1
- package/dist/actions/get-customers.d.mts +59 -3
- package/dist/actions/get-customers.d.mts.map +1 -1
- package/dist/actions/get-customers.mjs +14 -14
- package/dist/actions/get-customers.mjs.map +1 -1
- package/dist/actions/get-thread-by-id.cjs +22 -22
- package/dist/actions/get-thread-by-id.cjs.map +1 -1
- package/dist/actions/get-thread-by-id.d.cts +63 -3
- package/dist/actions/get-thread-by-id.d.cts.map +1 -1
- package/dist/actions/get-thread-by-id.d.mts +63 -3
- package/dist/actions/get-thread-by-id.d.mts.map +1 -1
- package/dist/actions/get-thread-by-id.mjs +22 -22
- package/dist/actions/get-thread-by-id.mjs.map +1 -1
- package/dist/actions/get-user-by-id.cjs +9 -9
- package/dist/actions/get-user-by-id.cjs.map +1 -1
- package/dist/actions/get-user-by-id.d.cts +21 -3
- package/dist/actions/get-user-by-id.d.cts.map +1 -1
- package/dist/actions/get-user-by-id.d.mts +21 -3
- package/dist/actions/get-user-by-id.d.mts.map +1 -1
- package/dist/actions/get-user-by-id.mjs +9 -9
- package/dist/actions/get-user-by-id.mjs.map +1 -1
- package/dist/actions/list-customer-groups.cjs +14 -14
- package/dist/actions/list-customer-groups.cjs.map +1 -1
- package/dist/actions/list-customer-groups.d.cts +40 -3
- package/dist/actions/list-customer-groups.d.cts.map +1 -1
- package/dist/actions/list-customer-groups.d.mts +40 -3
- package/dist/actions/list-customer-groups.d.mts.map +1 -1
- package/dist/actions/list-customer-groups.mjs +14 -14
- package/dist/actions/list-customer-groups.mjs.map +1 -1
- package/dist/actions/list-tiers.cjs +9 -9
- package/dist/actions/list-tiers.cjs.map +1 -1
- package/dist/actions/list-tiers.d.cts +31 -3
- package/dist/actions/list-tiers.d.cts.map +1 -1
- package/dist/actions/list-tiers.d.mts +31 -3
- package/dist/actions/list-tiers.d.mts.map +1 -1
- package/dist/actions/list-tiers.mjs +9 -9
- package/dist/actions/list-tiers.mjs.map +1 -1
- package/dist/actions/query-threads.cjs +15 -15
- package/dist/actions/query-threads.cjs.map +1 -1
- package/dist/actions/query-threads.d.cts +31 -3
- package/dist/actions/query-threads.d.cts.map +1 -1
- package/dist/actions/query-threads.d.mts +31 -3
- package/dist/actions/query-threads.d.mts.map +1 -1
- package/dist/actions/query-threads.mjs +15 -15
- package/dist/actions/query-threads.mjs.map +1 -1
- package/dist/actions/remove-customer-from-group.cjs +10 -10
- package/dist/actions/remove-customer-from-group.cjs.map +1 -1
- package/dist/actions/remove-customer-from-group.d.cts +35 -3
- package/dist/actions/remove-customer-from-group.d.cts.map +1 -1
- package/dist/actions/remove-customer-from-group.d.mts +35 -3
- package/dist/actions/remove-customer-from-group.d.mts.map +1 -1
- package/dist/actions/remove-customer-from-group.mjs +10 -10
- package/dist/actions/remove-customer-from-group.mjs.map +1 -1
- package/dist/actions/run-graphql-query.cjs +7 -7
- package/dist/actions/run-graphql-query.cjs.map +1 -1
- package/dist/actions/run-graphql-query.d.cts +23 -3
- package/dist/actions/run-graphql-query.d.cts.map +1 -1
- package/dist/actions/run-graphql-query.d.mts +23 -3
- package/dist/actions/run-graphql-query.d.mts.map +1 -1
- package/dist/actions/run-graphql-query.mjs +7 -7
- 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 +61 -3
- package/dist/actions/send-message.d.cts.map +1 -1
- package/dist/actions/send-message.d.mts +61 -3
- package/dist/actions/send-message.d.mts.map +1 -1
- package/dist/actions/send-message.mjs +5 -5
- package/dist/actions/send-message.mjs.map +1 -1
- package/dist/actions/update-company.cjs +15 -15
- package/dist/actions/update-company.cjs.map +1 -1
- package/dist/actions/update-company.d.cts +37 -3
- package/dist/actions/update-company.d.cts.map +1 -1
- package/dist/actions/update-company.d.mts +37 -3
- package/dist/actions/update-company.d.mts.map +1 -1
- package/dist/actions/update-company.mjs +15 -15
- package/dist/actions/update-company.mjs.map +1 -1
- package/dist/actions/update-thread.cjs +13 -13
- package/dist/actions/update-thread.cjs.map +1 -1
- package/dist/actions/update-thread.d.cts +27 -3
- package/dist/actions/update-thread.d.cts.map +1 -1
- package/dist/actions/update-thread.d.mts +27 -3
- package/dist/actions/update-thread.d.mts.map +1 -1
- package/dist/actions/update-thread.mjs +13 -13
- package/dist/actions/update-thread.mjs.map +1 -1
- package/dist/actions/upsert-customer.cjs +17 -17
- package/dist/actions/upsert-customer.cjs.map +1 -1
- package/dist/actions/upsert-customer.d.cts +112 -3
- package/dist/actions/upsert-customer.d.cts.map +1 -1
- package/dist/actions/upsert-customer.d.mts +112 -3
- package/dist/actions/upsert-customer.d.mts.map +1 -1
- package/dist/actions/upsert-customer.mjs +17 -17
- package/dist/actions/upsert-customer.mjs.map +1 -1
- package/dist/catalog.cjs +7 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +8 -0
- package/dist/catalog.d.mts +8 -0
- package/dist/catalog.mjs +7 -1
- package/dist/catalog.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-tiers.mjs","names":[],"sources":["../../src/actions/list-tiers.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainListTiersInput
|
|
1
|
+
{"version":3,"file":"list-tiers.mjs","names":[],"sources":["../../src/actions/list-tiers.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainListTiersInput = z.object({\n last: z.number().int().describe(\"Number of items to fetch in backward pagination; must be ≥ 1.\").optional(),\n after: z.string().describe(\"Cursor for forward pagination, used together with 'first'.\").optional(),\n first: z.number().int().describe(\"Number of items to fetch in forward pagination; must be ≥ 1.\").optional(),\n before: z.string().describe(\"Cursor for backward pagination, used together with 'last'.\").optional(),\n}).describe(\"Request parameters for listing tiers. You must supply at least one of 'first' or 'last'\\nto paginate forward or backward through the result set.\");\nconst PlainListTiers_TierNodeSchema = z.object({\n id: z.string().describe(\"Unique identifier of the tier.\").nullable(),\n name: z.string().describe(\"Name of the tier.\").nullable().optional(),\n externalId: z.string().describe(\"External identifier for the tier, if any.\").nullable().optional(),\n defaultPriority: z.number().int().describe(\"Default priority level of the tier.\").nullable().optional(),\n}).passthrough();\nconst PlainListTiers_TierEdgeSchema = z.object({\n node: PlainListTiers_TierNodeSchema.nullable(),\n cursor: z.string().describe(\"Pagination cursor for this edge.\").nullable(),\n}).passthrough();\nconst PlainListTiers_PageInfoSchema = z.object({\n endCursor: z.string().describe(\"Cursor corresponding to the last result in the current page.\").nullable().optional(),\n hasNextPage: z.boolean().describe(\"Whether there is a next page of results.\").nullable(),\n startCursor: z.string().describe(\"Cursor corresponding to the first result in the current page.\").nullable().optional(),\n hasPreviousPage: z.boolean().describe(\"Whether there is a previous page of results.\").nullable(),\n}).passthrough();\nconst PlainListTiers_TiersConnectionSchema = z.object({\n edges: z.array(PlainListTiers_TierEdgeSchema).describe(\"List of tier edges for pagination.\"),\n pageInfo: PlainListTiers_PageInfoSchema.nullable(),\n}).passthrough();\nexport const PlainListTiersOutput = z.object({\n tiers: PlainListTiers_TiersConnectionSchema.nullable(),\n}).passthrough().describe(\"Response schema for listing tiers with pagination.\");\n\nexport const plainListTiers = action(\"PLAIN_LIST_TIERS\", {\n slug: \"plain-list-tiers\",\n name: \"List Tiers\",\n description: \"Tool to retrieve a list of tiers with pagination. Use when you need to browse available tiers after determining pagination cursors. Example: 'List tiers with first=25'.\",\n input: Plain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SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtH,iBAAiB,EAAE,QAAQ,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;AACjG,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,uCAAuC,EAAE,OAAO;CACpD,OAAO,EAAE,MAAM,6BAA6B,CAAC,CAAC,SAAS,oCAAoC;CAC3F,UAAU,8BAA8B,SAAS;AACnD,CAAC,CAAC,CAAC,YAAY;AAKf,MAAa,iBAAiB,OAAO,oBAAoB;CACvD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATkC,EAAE,OAAO,EAC3C,OAAO,qCAAqC,SAAS,EACvD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAOhB;AACV,CAAC"}
|
|
@@ -6,30 +6,30 @@ const PlainQueryThreadsInput = zod.z.object({
|
|
|
6
6
|
statuses: zod.z.array(zod.z.string()).describe("Filter threads by status. Supported values: TODO, SNOOZED, DONE.").optional()
|
|
7
7
|
});
|
|
8
8
|
const PlainQueryThreads_ThreadNodeSchema = zod.z.object({
|
|
9
|
-
id: zod.z.string().describe("Unique ID of the thread."),
|
|
10
|
-
ref: zod.z.string().describe("Human-readable reference of the thread."),
|
|
11
|
-
title: zod.z.string().describe("Title of the thread."),
|
|
12
|
-
status: zod.z.string().describe("Current status of the thread."),
|
|
9
|
+
id: zod.z.string().describe("Unique ID of the thread.").nullable(),
|
|
10
|
+
ref: zod.z.string().describe("Human-readable reference of the thread.").nullable(),
|
|
11
|
+
title: zod.z.string().describe("Title of the thread.").nullable(),
|
|
12
|
+
status: zod.z.string().describe("Current status of the thread.").nullable(),
|
|
13
13
|
priority: zod.z.number().int().describe("Priority level of the thread.").nullable().optional(),
|
|
14
|
-
createdAt: zod.z.
|
|
15
|
-
updatedAt: zod.z.
|
|
16
|
-
});
|
|
14
|
+
createdAt: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Creation timestamp object with iso8601 field."),
|
|
15
|
+
updatedAt: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Last update timestamp object with iso8601 field.")
|
|
16
|
+
}).passthrough();
|
|
17
17
|
const PlainQueryThreads_ThreadEdgeSchema = zod.z.object({
|
|
18
18
|
node: PlainQueryThreads_ThreadNodeSchema.nullable(),
|
|
19
|
-
cursor: zod.z.string().describe("Cursor for this edge.")
|
|
20
|
-
});
|
|
19
|
+
cursor: zod.z.string().describe("Cursor for this edge.").nullable()
|
|
20
|
+
}).passthrough();
|
|
21
21
|
const PlainQueryThreads_PageInfoSchema = zod.z.object({
|
|
22
22
|
endCursor: zod.z.string().describe("Cursor of the last item in this page.").nullable().optional(),
|
|
23
|
-
hasNextPage: zod.z.boolean().describe("True if there's a next page."),
|
|
23
|
+
hasNextPage: zod.z.boolean().describe("True if there's a next page.").nullable(),
|
|
24
24
|
startCursor: zod.z.string().describe("Cursor of the first item in this page.").nullable().optional(),
|
|
25
|
-
hasPreviousPage: zod.z.boolean().describe("True if there's a previous page.")
|
|
26
|
-
});
|
|
25
|
+
hasPreviousPage: zod.z.boolean().describe("True if there's a previous page.").nullable()
|
|
26
|
+
}).passthrough();
|
|
27
27
|
const PlainQueryThreads_ThreadsSchema = zod.z.object({
|
|
28
28
|
edges: zod.z.array(PlainQueryThreads_ThreadEdgeSchema).describe("List of thread edges."),
|
|
29
29
|
pageInfo: PlainQueryThreads_PageInfoSchema.nullable(),
|
|
30
|
-
totalCount: zod.z.number().int().describe("Total number of threads.")
|
|
31
|
-
});
|
|
32
|
-
const PlainQueryThreadsOutput = zod.z.object({ threads: PlainQueryThreads_ThreadsSchema.nullable() });
|
|
30
|
+
totalCount: zod.z.number().int().describe("Total number of threads.").nullable()
|
|
31
|
+
}).passthrough();
|
|
32
|
+
const PlainQueryThreadsOutput = zod.z.object({ threads: PlainQueryThreads_ThreadsSchema.nullable() }).passthrough();
|
|
33
33
|
const plainQueryThreads = require_action.action("PLAIN_QUERY_THREADS", {
|
|
34
34
|
slug: "plain-query-threads",
|
|
35
35
|
name: "List Threads",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-threads.cjs","names":["z","action"],"sources":["../../src/actions/query-threads.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainQueryThreadsInput
|
|
1
|
+
{"version":3,"file":"query-threads.cjs","names":["z","action"],"sources":["../../src/actions/query-threads.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainQueryThreadsInput = z.object({\n cursor: z.string().describe(\"Cursor for pagination returned by a previous call. Omit for first page. Use the cursor from each response to fetch the next page; omitting it resets to the first page.\").optional(),\n statuses: z.array(z.string()).describe(\"Filter threads by status. Supported values: TODO, SNOOZED, DONE.\").optional(),\n});\nconst PlainQueryThreads_ThreadNodeSchema = z.object({\n id: z.string().describe(\"Unique ID of the thread.\").nullable(),\n ref: z.string().describe(\"Human-readable reference of the thread.\").nullable(),\n title: z.string().describe(\"Title of the thread.\").nullable(),\n status: z.string().describe(\"Current status of the thread.\").nullable(),\n priority: z.number().int().describe(\"Priority level of the thread.\").nullable().optional(),\n createdAt: z.record(z.string(), z.unknown()).describe(\"Creation timestamp object with iso8601 field.\"),\n updatedAt: z.record(z.string(), z.unknown()).describe(\"Last update timestamp object with iso8601 field.\"),\n}).passthrough();\nconst PlainQueryThreads_ThreadEdgeSchema = z.object({\n node: PlainQueryThreads_ThreadNodeSchema.nullable(),\n cursor: z.string().describe(\"Cursor for this edge.\").nullable(),\n}).passthrough();\nconst PlainQueryThreads_PageInfoSchema = z.object({\n endCursor: z.string().describe(\"Cursor of the last item in this page.\").nullable().optional(),\n hasNextPage: z.boolean().describe(\"True if there's a next page.\").nullable(),\n startCursor: z.string().describe(\"Cursor of the first item in this page.\").nullable().optional(),\n hasPreviousPage: z.boolean().describe(\"True if there's a previous page.\").nullable(),\n}).passthrough();\nconst PlainQueryThreads_ThreadsSchema = z.object({\n edges: z.array(PlainQueryThreads_ThreadEdgeSchema).describe(\"List of thread edges.\"),\n pageInfo: PlainQueryThreads_PageInfoSchema.nullable(),\n totalCount: z.number().int().describe(\"Total number of threads.\").nullable(),\n}).passthrough();\nexport const PlainQueryThreadsOutput = z.object({\n threads: PlainQueryThreads_ThreadsSchema.nullable(),\n}).passthrough();\n\nexport const plainQueryThreads = action(\"PLAIN_QUERY_THREADS\", {\n slug: \"plain-query-threads\",\n name: \"List Threads\",\n description: \"Tool to retrieve a paginated list of threads. Use when you need to list threads with optional status filtering.\",\n input: PlainQueryThreadsInput,\n output: PlainQueryThreadsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyBA,IAAAA,EAAE,OAAO;CAC7C,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yKAAyK,CAAC,CAAC,SAAS;CAChN,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;AACtH,CAAC;AACD,MAAM,qCAAqCA,IAAAA,EAAE,OAAO;CAClD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAC7D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC7E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAC5D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACtE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,WAAWA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+CAA+C;CACrG,WAAWA,IAAAA,EAAE,OAAOA,IAA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
2
|
|
|
3
3
|
//#region src/actions/query-threads.d.ts
|
|
4
|
-
declare const PlainQueryThreadsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PlainQueryThreadsInput: z.ZodObject<{
|
|
5
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
6
|
+
statuses: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const PlainQueryThreadsOutput: z.ZodObject<{
|
|
9
|
+
threads: z.ZodNullable<z.ZodObject<{
|
|
10
|
+
edges: z.ZodArray<z.ZodObject<{
|
|
11
|
+
node: z.ZodNullable<z.ZodObject<{
|
|
12
|
+
id: z.ZodNullable<z.ZodString>;
|
|
13
|
+
ref: z.ZodNullable<z.ZodString>;
|
|
14
|
+
title: z.ZodNullable<z.ZodString>;
|
|
15
|
+
status: z.ZodNullable<z.ZodString>;
|
|
16
|
+
priority: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
17
|
+
createdAt: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
18
|
+
updatedAt: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
19
|
+
}, z.core.$loose>>;
|
|
20
|
+
cursor: z.ZodNullable<z.ZodString>;
|
|
21
|
+
}, z.core.$loose>>;
|
|
22
|
+
pageInfo: z.ZodNullable<z.ZodObject<{
|
|
23
|
+
endCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
hasNextPage: z.ZodNullable<z.ZodBoolean>;
|
|
25
|
+
startCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
+
hasPreviousPage: z.ZodNullable<z.ZodBoolean>;
|
|
27
|
+
}, z.core.$loose>>;
|
|
28
|
+
totalCount: z.ZodNullable<z.ZodNumber>;
|
|
29
|
+
}, z.core.$loose>>;
|
|
30
|
+
}, z.core.$loose>;
|
|
31
|
+
declare const plainQueryThreads: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
32
|
+
cursor?: string | undefined;
|
|
33
|
+
statuses?: string[] | undefined;
|
|
34
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
35
|
//#endregion
|
|
8
36
|
export { plainQueryThreads };
|
|
9
37
|
//# sourceMappingURL=query-threads.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-threads.d.cts","names":[],"sources":["../../src/actions/query-threads.ts"],"mappings":";;;cAIa,sBAAA,
|
|
1
|
+
{"version":3,"file":"query-threads.d.cts","names":[],"sources":["../../src/actions/query-threads.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;cA4BtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;cAIvB,iBAAA,gCAAiB,wBAAA"}
|
|
@@ -1,9 +1,37 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/query-threads.d.ts
|
|
4
|
-
declare const PlainQueryThreadsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PlainQueryThreadsInput: z.ZodObject<{
|
|
5
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
6
|
+
statuses: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const PlainQueryThreadsOutput: z.ZodObject<{
|
|
9
|
+
threads: z.ZodNullable<z.ZodObject<{
|
|
10
|
+
edges: z.ZodArray<z.ZodObject<{
|
|
11
|
+
node: z.ZodNullable<z.ZodObject<{
|
|
12
|
+
id: z.ZodNullable<z.ZodString>;
|
|
13
|
+
ref: z.ZodNullable<z.ZodString>;
|
|
14
|
+
title: z.ZodNullable<z.ZodString>;
|
|
15
|
+
status: z.ZodNullable<z.ZodString>;
|
|
16
|
+
priority: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
17
|
+
createdAt: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
18
|
+
updatedAt: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
19
|
+
}, z.core.$loose>>;
|
|
20
|
+
cursor: z.ZodNullable<z.ZodString>;
|
|
21
|
+
}, z.core.$loose>>;
|
|
22
|
+
pageInfo: z.ZodNullable<z.ZodObject<{
|
|
23
|
+
endCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
hasNextPage: z.ZodNullable<z.ZodBoolean>;
|
|
25
|
+
startCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
+
hasPreviousPage: z.ZodNullable<z.ZodBoolean>;
|
|
27
|
+
}, z.core.$loose>>;
|
|
28
|
+
totalCount: z.ZodNullable<z.ZodNumber>;
|
|
29
|
+
}, z.core.$loose>>;
|
|
30
|
+
}, z.core.$loose>;
|
|
31
|
+
declare const plainQueryThreads: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
32
|
+
cursor?: string | undefined;
|
|
33
|
+
statuses?: string[] | undefined;
|
|
34
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
35
|
//#endregion
|
|
8
36
|
export { plainQueryThreads };
|
|
9
37
|
//# sourceMappingURL=query-threads.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-threads.d.mts","names":[],"sources":["../../src/actions/query-threads.ts"],"mappings":";;;cAIa,sBAAA,
|
|
1
|
+
{"version":3,"file":"query-threads.d.mts","names":[],"sources":["../../src/actions/query-threads.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;cA4BtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;cAIvB,iBAAA,gCAAiB,wBAAA"}
|
|
@@ -6,35 +6,35 @@ const PlainQueryThreadsInput = z.object({
|
|
|
6
6
|
statuses: z.array(z.string()).describe("Filter threads by status. Supported values: TODO, SNOOZED, DONE.").optional()
|
|
7
7
|
});
|
|
8
8
|
const PlainQueryThreads_ThreadNodeSchema = z.object({
|
|
9
|
-
id: z.string().describe("Unique ID of the thread."),
|
|
10
|
-
ref: z.string().describe("Human-readable reference of the thread."),
|
|
11
|
-
title: z.string().describe("Title of the thread."),
|
|
12
|
-
status: z.string().describe("Current status of the thread."),
|
|
9
|
+
id: z.string().describe("Unique ID of the thread.").nullable(),
|
|
10
|
+
ref: z.string().describe("Human-readable reference of the thread.").nullable(),
|
|
11
|
+
title: z.string().describe("Title of the thread.").nullable(),
|
|
12
|
+
status: z.string().describe("Current status of the thread.").nullable(),
|
|
13
13
|
priority: z.number().int().describe("Priority level of the thread.").nullable().optional(),
|
|
14
|
-
createdAt: z.
|
|
15
|
-
updatedAt: z.
|
|
16
|
-
});
|
|
14
|
+
createdAt: z.record(z.string(), z.unknown()).describe("Creation timestamp object with iso8601 field."),
|
|
15
|
+
updatedAt: z.record(z.string(), z.unknown()).describe("Last update timestamp object with iso8601 field.")
|
|
16
|
+
}).passthrough();
|
|
17
17
|
const PlainQueryThreads_ThreadEdgeSchema = z.object({
|
|
18
18
|
node: PlainQueryThreads_ThreadNodeSchema.nullable(),
|
|
19
|
-
cursor: z.string().describe("Cursor for this edge.")
|
|
20
|
-
});
|
|
19
|
+
cursor: z.string().describe("Cursor for this edge.").nullable()
|
|
20
|
+
}).passthrough();
|
|
21
21
|
const PlainQueryThreads_PageInfoSchema = z.object({
|
|
22
22
|
endCursor: z.string().describe("Cursor of the last item in this page.").nullable().optional(),
|
|
23
|
-
hasNextPage: z.boolean().describe("True if there's a next page."),
|
|
23
|
+
hasNextPage: z.boolean().describe("True if there's a next page.").nullable(),
|
|
24
24
|
startCursor: z.string().describe("Cursor of the first item in this page.").nullable().optional(),
|
|
25
|
-
hasPreviousPage: z.boolean().describe("True if there's a previous page.")
|
|
26
|
-
});
|
|
25
|
+
hasPreviousPage: z.boolean().describe("True if there's a previous page.").nullable()
|
|
26
|
+
}).passthrough();
|
|
27
27
|
const PlainQueryThreads_ThreadsSchema = z.object({
|
|
28
28
|
edges: z.array(PlainQueryThreads_ThreadEdgeSchema).describe("List of thread edges."),
|
|
29
29
|
pageInfo: PlainQueryThreads_PageInfoSchema.nullable(),
|
|
30
|
-
totalCount: z.number().int().describe("Total number of threads.")
|
|
31
|
-
});
|
|
30
|
+
totalCount: z.number().int().describe("Total number of threads.").nullable()
|
|
31
|
+
}).passthrough();
|
|
32
32
|
const plainQueryThreads = action("PLAIN_QUERY_THREADS", {
|
|
33
33
|
slug: "plain-query-threads",
|
|
34
34
|
name: "List Threads",
|
|
35
35
|
description: "Tool to retrieve a paginated list of threads. Use when you need to list threads with optional status filtering.",
|
|
36
36
|
input: PlainQueryThreadsInput,
|
|
37
|
-
output: z.object({ threads: PlainQueryThreads_ThreadsSchema.nullable() })
|
|
37
|
+
output: z.object({ threads: PlainQueryThreads_ThreadsSchema.nullable() }).passthrough()
|
|
38
38
|
});
|
|
39
39
|
//#endregion
|
|
40
40
|
export { plainQueryThreads };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-threads.mjs","names":[],"sources":["../../src/actions/query-threads.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainQueryThreadsInput
|
|
1
|
+
{"version":3,"file":"query-threads.mjs","names":[],"sources":["../../src/actions/query-threads.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainQueryThreadsInput = z.object({\n cursor: z.string().describe(\"Cursor for pagination returned by a previous call. Omit for first page. Use the cursor from each response to fetch the next page; omitting it resets to the first page.\").optional(),\n statuses: z.array(z.string()).describe(\"Filter threads by status. Supported values: TODO, SNOOZED, DONE.\").optional(),\n});\nconst PlainQueryThreads_ThreadNodeSchema = z.object({\n id: z.string().describe(\"Unique ID of the thread.\").nullable(),\n ref: z.string().describe(\"Human-readable reference of the thread.\").nullable(),\n title: z.string().describe(\"Title of the thread.\").nullable(),\n status: z.string().describe(\"Current status of the thread.\").nullable(),\n priority: z.number().int().describe(\"Priority level of the thread.\").nullable().optional(),\n createdAt: z.record(z.string(), z.unknown()).describe(\"Creation timestamp object with iso8601 field.\"),\n updatedAt: z.record(z.string(), z.unknown()).describe(\"Last update timestamp object with iso8601 field.\"),\n}).passthrough();\nconst PlainQueryThreads_ThreadEdgeSchema = z.object({\n node: PlainQueryThreads_ThreadNodeSchema.nullable(),\n cursor: z.string().describe(\"Cursor for this edge.\").nullable(),\n}).passthrough();\nconst PlainQueryThreads_PageInfoSchema = z.object({\n endCursor: z.string().describe(\"Cursor of the last item in this page.\").nullable().optional(),\n hasNextPage: z.boolean().describe(\"True if there's a next page.\").nullable(),\n startCursor: z.string().describe(\"Cursor of the first item in this page.\").nullable().optional(),\n hasPreviousPage: z.boolean().describe(\"True if there's a previous page.\").nullable(),\n}).passthrough();\nconst PlainQueryThreads_ThreadsSchema = z.object({\n edges: z.array(PlainQueryThreads_ThreadEdgeSchema).describe(\"List of thread edges.\"),\n pageInfo: PlainQueryThreads_PageInfoSchema.nullable(),\n totalCount: z.number().int().describe(\"Total number of threads.\").nullable(),\n}).passthrough();\nexport const PlainQueryThreadsOutput = z.object({\n threads: PlainQueryThreads_ThreadsSchema.nullable(),\n}).passthrough();\n\nexport const plainQueryThreads = action(\"PLAIN_QUERY_THREADS\", {\n slug: \"plain-query-threads\",\n name: \"List Threads\",\n description: \"Tool to retrieve a paginated list of threads. Use when you need to list threads with optional status filtering.\",\n input: PlainQueryThreadsInput,\n output: PlainQueryThreadsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyB,EAAE,OAAO;CAC7C,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,yKAAyK,CAAC,CAAC,SAAS;CAChN,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kEAAkE,CAAC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AE,MAAM,kCAAkC,CAAC,CAAC,SAAS,uBAAuB;CACnF,UAAU,iCAAiC,SAAS;CACpD,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;AAC7E,CAAC,CAAC,CAAC,YAAY;AAKf,MAAa,oBAAoB,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATqC,EAAE,OAAO,EAC9C,SAAS,gCAAgC,SAAS,EACpD,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|
|
@@ -6,28 +6,28 @@ const PlainRemoveCustomerFromGroupInput = zod.z.object({
|
|
|
6
6
|
customerGroupIdentifiers: zod.z.array(zod.z.object({
|
|
7
7
|
customerGroupId: zod.z.string().describe("Plain internal ID of the customer group (e.g., 'cg_01ABC...').").optional(),
|
|
8
8
|
customerGroupKey: zod.z.string().describe("Unique key of the customer group (e.g., 'premium_tier').").optional()
|
|
9
|
-
})).describe("List of customer group identifiers to remove the customer from. Must contain at least one identifier. Each identifier must specify either customerGroupId or customerGroupKey.")
|
|
9
|
+
}).passthrough()).describe("List of customer group identifiers to remove the customer from. Must contain at least one identifier. Each identifier must specify either customerGroupId or customerGroupKey.")
|
|
10
10
|
});
|
|
11
11
|
const PlainRemoveCustomerFromGroup_MutationFieldErrorSchema = zod.z.object({
|
|
12
12
|
type: zod.z.enum([
|
|
13
13
|
"VALIDATION",
|
|
14
14
|
"REQUIRED",
|
|
15
15
|
"NOT_FOUND"
|
|
16
|
-
]).describe("Type of field error."),
|
|
17
|
-
field: zod.z.string().describe("Name of the field where error occurred."),
|
|
18
|
-
message: zod.z.string().describe("Technical error message.")
|
|
19
|
-
});
|
|
16
|
+
]).describe("Type of field error.").nullable(),
|
|
17
|
+
field: zod.z.string().describe("Name of the field where error occurred.").nullable(),
|
|
18
|
+
message: zod.z.string().describe("Technical error message.").nullable()
|
|
19
|
+
}).passthrough();
|
|
20
20
|
const PlainRemoveCustomerFromGroup_MutationErrorSchema = zod.z.object({
|
|
21
|
-
code: zod.z.string().describe("Fixed error code from the API."),
|
|
21
|
+
code: zod.z.string().describe("Fixed error code from the API.").nullable(),
|
|
22
22
|
type: zod.z.enum([
|
|
23
23
|
"VALIDATION",
|
|
24
24
|
"FORBIDDEN",
|
|
25
25
|
"INTERNAL"
|
|
26
|
-
]).describe("Type of error."),
|
|
26
|
+
]).describe("Type of error.").nullable(),
|
|
27
27
|
fields: zod.z.array(PlainRemoveCustomerFromGroup_MutationFieldErrorSchema).describe("List of field-specific errors, if any.").nullable().optional(),
|
|
28
|
-
message: zod.z.string().describe("Technical error message.")
|
|
29
|
-
});
|
|
30
|
-
const PlainRemoveCustomerFromGroupOutput = zod.z.object({ error: PlainRemoveCustomerFromGroup_MutationErrorSchema.nullable().optional() });
|
|
28
|
+
message: zod.z.string().describe("Technical error message.").nullable()
|
|
29
|
+
}).passthrough();
|
|
30
|
+
const PlainRemoveCustomerFromGroupOutput = zod.z.object({ error: PlainRemoveCustomerFromGroup_MutationErrorSchema.nullable().optional() }).passthrough();
|
|
31
31
|
const plainRemoveCustomerFromGroup = require_action.action("PLAIN_REMOVE_CUSTOMER_FROM_GROUP", {
|
|
32
32
|
slug: "plain-remove-customer-from-group",
|
|
33
33
|
name: "Remove Customer From Group",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remove-customer-from-group.cjs","names":["z","action"],"sources":["../../src/actions/remove-customer-from-group.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainRemoveCustomerFromGroupInput
|
|
1
|
+
{"version":3,"file":"remove-customer-from-group.cjs","names":["z","action"],"sources":["../../src/actions/remove-customer-from-group.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainRemoveCustomerFromGroupInput = z.object({\n customerId: z.string().describe(\"Plain customer ID (format: 'c_01ABC...') of the customer to remove from groups.\"),\n customerGroupIdentifiers: z.array(z.object({\n customerGroupId: z.string().describe(\"Plain internal ID of the customer group (e.g., 'cg_01ABC...').\").optional(),\n customerGroupKey: z.string().describe(\"Unique key of the customer group (e.g., 'premium_tier').\").optional(),\n}).passthrough()).describe(\"List of customer group identifiers to remove the customer from. Must contain at least one identifier. Each identifier must specify either customerGroupId or customerGroupKey.\"),\n});\nconst PlainRemoveCustomerFromGroup_MutationFieldErrorSchema = z.object({\n type: z.enum([\"VALIDATION\", \"REQUIRED\", \"NOT_FOUND\"]).describe(\"Type of field error.\").nullable(),\n field: z.string().describe(\"Name of the field where error occurred.\").nullable(),\n message: z.string().describe(\"Technical error message.\").nullable(),\n}).passthrough();\nconst PlainRemoveCustomerFromGroup_MutationErrorSchema = z.object({\n code: z.string().describe(\"Fixed error code from the API.\").nullable(),\n type: z.enum([\"VALIDATION\", \"FORBIDDEN\", \"INTERNAL\"]).describe(\"Type of error.\").nullable(),\n fields: z.array(PlainRemoveCustomerFromGroup_MutationFieldErrorSchema).describe(\"List of field-specific errors, if any.\").nullable().optional(),\n message: z.string().describe(\"Technical error message.\").nullable(),\n}).passthrough();\nexport const PlainRemoveCustomerFromGroupOutput = z.object({\n error: PlainRemoveCustomerFromGroup_MutationErrorSchema.nullable().optional(),\n}).passthrough();\n\nexport const plainRemoveCustomerFromGroup = action(\"PLAIN_REMOVE_CUSTOMER_FROM_GROUP\", {\n slug: \"plain-remove-customer-from-group\",\n name: \"Remove Customer From Group\",\n description: \"Removes a customer from one or more customer groups in Plain. Use this action to revoke customer group memberships. The customer must be a member of the specified group(s) - attempting to remove a customer from a group they're not in will result in an error. Groups can be identified by either their Plain internal ID (customerGroupId) or their unique key (customerGroupKey). Common use cases: - Downgrade customer tier (e.g., remove from premium_tier group) - Remove customer from beta access groups - Clean up group memberships after customer status changes\",\n input: PlainRemoveCustomerFromGroupInput,\n output: PlainRemoveCustomerFromGroupOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAoCA,IAAAA,EAAE,OAAO;CACxD,YA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AAa,+BAA+BC,eAAAA,OAAO,oCAAoC;CACrF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,41 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/remove-customer-from-group.d.ts
|
|
4
|
-
declare const PlainRemoveCustomerFromGroupInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PlainRemoveCustomerFromGroupInput: z.ZodObject<{
|
|
5
|
+
customerId: z.ZodString;
|
|
6
|
+
customerGroupIdentifiers: z.ZodArray<z.ZodObject<{
|
|
7
|
+
customerGroupId: z.ZodOptional<z.ZodString>;
|
|
8
|
+
customerGroupKey: z.ZodOptional<z.ZodString>;
|
|
9
|
+
}, z.core.$loose>>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
declare const PlainRemoveCustomerFromGroupOutput: z.ZodObject<{
|
|
12
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
13
|
+
code: z.ZodNullable<z.ZodString>;
|
|
14
|
+
type: z.ZodNullable<z.ZodEnum<{
|
|
15
|
+
VALIDATION: "VALIDATION";
|
|
16
|
+
FORBIDDEN: "FORBIDDEN";
|
|
17
|
+
INTERNAL: "INTERNAL";
|
|
18
|
+
}>>;
|
|
19
|
+
fields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
20
|
+
type: z.ZodNullable<z.ZodEnum<{
|
|
21
|
+
VALIDATION: "VALIDATION";
|
|
22
|
+
REQUIRED: "REQUIRED";
|
|
23
|
+
NOT_FOUND: "NOT_FOUND";
|
|
24
|
+
}>>;
|
|
25
|
+
field: z.ZodNullable<z.ZodString>;
|
|
26
|
+
message: z.ZodNullable<z.ZodString>;
|
|
27
|
+
}, z.core.$loose>>>>;
|
|
28
|
+
message: z.ZodNullable<z.ZodString>;
|
|
29
|
+
}, z.core.$loose>>>;
|
|
30
|
+
}, z.core.$loose>;
|
|
31
|
+
declare const plainRemoveCustomerFromGroup: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
32
|
+
customerId: string;
|
|
33
|
+
customerGroupIdentifiers: {
|
|
34
|
+
[x: string]: unknown;
|
|
35
|
+
customerGroupId?: string | undefined;
|
|
36
|
+
customerGroupKey?: string | undefined;
|
|
37
|
+
}[];
|
|
38
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
39
|
//#endregion
|
|
8
40
|
export { plainRemoveCustomerFromGroup };
|
|
9
41
|
//# sourceMappingURL=remove-customer-from-group.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remove-customer-from-group.d.cts","names":[],"sources":["../../src/actions/remove-customer-from-group.ts"],"mappings":";;;cAIa,iCAAA,
|
|
1
|
+
{"version":3,"file":"remove-customer-from-group.d.cts","names":[],"sources":["../../src/actions/remove-customer-from-group.ts"],"mappings":";;;cAIa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;cAkBjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAIlC,4BAAA,gCAA4B,wBAAA"}
|
|
@@ -1,9 +1,41 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/remove-customer-from-group.d.ts
|
|
4
|
-
declare const PlainRemoveCustomerFromGroupInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PlainRemoveCustomerFromGroupInput: z.ZodObject<{
|
|
5
|
+
customerId: z.ZodString;
|
|
6
|
+
customerGroupIdentifiers: z.ZodArray<z.ZodObject<{
|
|
7
|
+
customerGroupId: z.ZodOptional<z.ZodString>;
|
|
8
|
+
customerGroupKey: z.ZodOptional<z.ZodString>;
|
|
9
|
+
}, z.core.$loose>>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
declare const PlainRemoveCustomerFromGroupOutput: z.ZodObject<{
|
|
12
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
13
|
+
code: z.ZodNullable<z.ZodString>;
|
|
14
|
+
type: z.ZodNullable<z.ZodEnum<{
|
|
15
|
+
VALIDATION: "VALIDATION";
|
|
16
|
+
FORBIDDEN: "FORBIDDEN";
|
|
17
|
+
INTERNAL: "INTERNAL";
|
|
18
|
+
}>>;
|
|
19
|
+
fields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
20
|
+
type: z.ZodNullable<z.ZodEnum<{
|
|
21
|
+
VALIDATION: "VALIDATION";
|
|
22
|
+
REQUIRED: "REQUIRED";
|
|
23
|
+
NOT_FOUND: "NOT_FOUND";
|
|
24
|
+
}>>;
|
|
25
|
+
field: z.ZodNullable<z.ZodString>;
|
|
26
|
+
message: z.ZodNullable<z.ZodString>;
|
|
27
|
+
}, z.core.$loose>>>>;
|
|
28
|
+
message: z.ZodNullable<z.ZodString>;
|
|
29
|
+
}, z.core.$loose>>>;
|
|
30
|
+
}, z.core.$loose>;
|
|
31
|
+
declare const plainRemoveCustomerFromGroup: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
32
|
+
customerId: string;
|
|
33
|
+
customerGroupIdentifiers: {
|
|
34
|
+
[x: string]: unknown;
|
|
35
|
+
customerGroupId?: string | undefined;
|
|
36
|
+
customerGroupKey?: string | undefined;
|
|
37
|
+
}[];
|
|
38
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
39
|
//#endregion
|
|
8
40
|
export { plainRemoveCustomerFromGroup };
|
|
9
41
|
//# sourceMappingURL=remove-customer-from-group.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remove-customer-from-group.d.mts","names":[],"sources":["../../src/actions/remove-customer-from-group.ts"],"mappings":";;;cAIa,iCAAA,
|
|
1
|
+
{"version":3,"file":"remove-customer-from-group.d.mts","names":[],"sources":["../../src/actions/remove-customer-from-group.ts"],"mappings":";;;cAIa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;cAkBjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAIlC,4BAAA,gCAA4B,wBAAA"}
|
|
@@ -6,33 +6,33 @@ const PlainRemoveCustomerFromGroupInput = z.object({
|
|
|
6
6
|
customerGroupIdentifiers: z.array(z.object({
|
|
7
7
|
customerGroupId: z.string().describe("Plain internal ID of the customer group (e.g., 'cg_01ABC...').").optional(),
|
|
8
8
|
customerGroupKey: z.string().describe("Unique key of the customer group (e.g., 'premium_tier').").optional()
|
|
9
|
-
})).describe("List of customer group identifiers to remove the customer from. Must contain at least one identifier. Each identifier must specify either customerGroupId or customerGroupKey.")
|
|
9
|
+
}).passthrough()).describe("List of customer group identifiers to remove the customer from. Must contain at least one identifier. Each identifier must specify either customerGroupId or customerGroupKey.")
|
|
10
10
|
});
|
|
11
11
|
const PlainRemoveCustomerFromGroup_MutationFieldErrorSchema = z.object({
|
|
12
12
|
type: z.enum([
|
|
13
13
|
"VALIDATION",
|
|
14
14
|
"REQUIRED",
|
|
15
15
|
"NOT_FOUND"
|
|
16
|
-
]).describe("Type of field error."),
|
|
17
|
-
field: z.string().describe("Name of the field where error occurred."),
|
|
18
|
-
message: z.string().describe("Technical error message.")
|
|
19
|
-
});
|
|
16
|
+
]).describe("Type of field error.").nullable(),
|
|
17
|
+
field: z.string().describe("Name of the field where error occurred.").nullable(),
|
|
18
|
+
message: z.string().describe("Technical error message.").nullable()
|
|
19
|
+
}).passthrough();
|
|
20
20
|
const PlainRemoveCustomerFromGroup_MutationErrorSchema = z.object({
|
|
21
|
-
code: z.string().describe("Fixed error code from the API."),
|
|
21
|
+
code: z.string().describe("Fixed error code from the API.").nullable(),
|
|
22
22
|
type: z.enum([
|
|
23
23
|
"VALIDATION",
|
|
24
24
|
"FORBIDDEN",
|
|
25
25
|
"INTERNAL"
|
|
26
|
-
]).describe("Type of error."),
|
|
26
|
+
]).describe("Type of error.").nullable(),
|
|
27
27
|
fields: z.array(PlainRemoveCustomerFromGroup_MutationFieldErrorSchema).describe("List of field-specific errors, if any.").nullable().optional(),
|
|
28
|
-
message: z.string().describe("Technical error message.")
|
|
29
|
-
});
|
|
28
|
+
message: z.string().describe("Technical error message.").nullable()
|
|
29
|
+
}).passthrough();
|
|
30
30
|
const plainRemoveCustomerFromGroup = action("PLAIN_REMOVE_CUSTOMER_FROM_GROUP", {
|
|
31
31
|
slug: "plain-remove-customer-from-group",
|
|
32
32
|
name: "Remove Customer From Group",
|
|
33
33
|
description: "Removes a customer from one or more customer groups in Plain. Use this action to revoke customer group memberships. The customer must be a member of the specified group(s) - attempting to remove a customer from a group they're not in will result in an error. Groups can be identified by either their Plain internal ID (customerGroupId) or their unique key (customerGroupKey). Common use cases: - Downgrade customer tier (e.g., remove from premium_tier group) - Remove customer from beta access groups - Clean up group memberships after customer status changes",
|
|
34
34
|
input: PlainRemoveCustomerFromGroupInput,
|
|
35
|
-
output: z.object({ error: PlainRemoveCustomerFromGroup_MutationErrorSchema.nullable().optional() })
|
|
35
|
+
output: z.object({ error: PlainRemoveCustomerFromGroup_MutationErrorSchema.nullable().optional() }).passthrough()
|
|
36
36
|
});
|
|
37
37
|
//#endregion
|
|
38
38
|
export { plainRemoveCustomerFromGroup };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remove-customer-from-group.mjs","names":[],"sources":["../../src/actions/remove-customer-from-group.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainRemoveCustomerFromGroupInput
|
|
1
|
+
{"version":3,"file":"remove-customer-from-group.mjs","names":[],"sources":["../../src/actions/remove-customer-from-group.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainRemoveCustomerFromGroupInput = z.object({\n customerId: z.string().describe(\"Plain customer ID (format: 'c_01ABC...') of the customer to remove from groups.\"),\n customerGroupIdentifiers: z.array(z.object({\n customerGroupId: z.string().describe(\"Plain internal ID of the customer group (e.g., 'cg_01ABC...').\").optional(),\n customerGroupKey: z.string().describe(\"Unique key of the customer group (e.g., 'premium_tier').\").optional(),\n}).passthrough()).describe(\"List of customer group identifiers to remove the customer from. Must contain at least one identifier. Each identifier must specify either customerGroupId or customerGroupKey.\"),\n});\nconst PlainRemoveCustomerFromGroup_MutationFieldErrorSchema = z.object({\n type: z.enum([\"VALIDATION\", \"REQUIRED\", \"NOT_FOUND\"]).describe(\"Type of field error.\").nullable(),\n field: z.string().describe(\"Name of the field where error occurred.\").nullable(),\n message: z.string().describe(\"Technical error message.\").nullable(),\n}).passthrough();\nconst PlainRemoveCustomerFromGroup_MutationErrorSchema = z.object({\n code: z.string().describe(\"Fixed error code from the API.\").nullable(),\n type: z.enum([\"VALIDATION\", \"FORBIDDEN\", \"INTERNAL\"]).describe(\"Type of error.\").nullable(),\n fields: z.array(PlainRemoveCustomerFromGroup_MutationFieldErrorSchema).describe(\"List of field-specific errors, if any.\").nullable().optional(),\n message: z.string().describe(\"Technical error message.\").nullable(),\n}).passthrough();\nexport const PlainRemoveCustomerFromGroupOutput = z.object({\n error: PlainRemoveCustomerFromGroup_MutationErrorSchema.nullable().optional(),\n}).passthrough();\n\nexport const plainRemoveCustomerFromGroup = action(\"PLAIN_REMOVE_CUSTOMER_FROM_GROUP\", {\n slug: \"plain-remove-customer-from-group\",\n name: \"Remove Customer From Group\",\n description: \"Removes a customer from one or more customer groups in Plain. Use this action to revoke customer group memberships. The customer must be a member of the specified group(s) - attempting to remove a customer from a group they're not in will result in an error. Groups can be identified by either their Plain internal ID (customerGroupId) or their unique key (customerGroupKey). Common use cases: - Downgrade customer tier (e.g., remove from premium_tier group) - Remove customer from beta access groups - Clean up group memberships after customer status changes\",\n input: PlainRemoveCustomerFromGroupInput,\n output: PlainRemoveCustomerFromGroupOutput,\n});\n"],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C"}
|
|
@@ -6,21 +6,21 @@ const PlainRunGraphqlQueryInput = zod.z.object({
|
|
|
6
6
|
variables: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Variables for the GraphQL operation. Keys must match variable names in the query (without '$'). Use empty dict {} if no variables needed. Date range filter values must be UTC-normalized; non-UTC timestamps in createdAt or updatedAt filters silently exclude boundary records.").optional()
|
|
7
7
|
});
|
|
8
8
|
const PlainRunGraphqlQuery_GraphqlErrorLocationSchema = zod.z.object({
|
|
9
|
-
line: zod.z.number().int().describe("The line number where the error occurred."),
|
|
10
|
-
column: zod.z.number().int().describe("The column number where the error occurred.")
|
|
11
|
-
}).describe("Indicates where in the GraphQL document the error occurred.");
|
|
12
|
-
const PlainRunGraphqlQuery_GraphqlErrorExtensionsSchema = zod.z.object({ code: zod.z.string().describe("Machine-readable error code (e.g., input_validation, forbidden, internal, not_found, customer_already_exists_with_email, attachment_file_size_too_large, insufficient_permissions, etc.). Plain documents 77+ specific error codes.").nullable().optional() }).describe("Additional arbitrary information about the error.");
|
|
9
|
+
line: zod.z.number().int().describe("The line number where the error occurred.").nullable(),
|
|
10
|
+
column: zod.z.number().int().describe("The column number where the error occurred.").nullable()
|
|
11
|
+
}).passthrough().describe("Indicates where in the GraphQL document the error occurred.");
|
|
12
|
+
const PlainRunGraphqlQuery_GraphqlErrorExtensionsSchema = zod.z.object({ code: zod.z.string().describe("Machine-readable error code (e.g., input_validation, forbidden, internal, not_found, customer_already_exists_with_email, attachment_file_size_too_large, insufficient_permissions, etc.). Plain documents 77+ specific error codes.").nullable().optional() }).passthrough().describe("Additional arbitrary information about the error.");
|
|
13
13
|
const PlainRunGraphqlQuery_GraphqlErrorSchema = zod.z.object({
|
|
14
14
|
path: zod.z.array(zod.z.string()).describe("The path of the response field which experienced the error. This allows clients to identify which part of the requested data caused the error.").nullable().optional(),
|
|
15
|
-
message: zod.z.string().describe("A human-readable description of the error that occurred."),
|
|
15
|
+
message: zod.z.string().describe("A human-readable description of the error that occurred.").nullable(),
|
|
16
16
|
locations: zod.z.array(PlainRunGraphqlQuery_GraphqlErrorLocationSchema).describe("Indicates where in the GraphQL document the error occurred.").nullable().optional(),
|
|
17
17
|
extensions: PlainRunGraphqlQuery_GraphqlErrorExtensionsSchema.nullable().optional()
|
|
18
|
-
}).describe("Information about an error that occurred during validation or execution.");
|
|
18
|
+
}).passthrough().describe("Information about an error that occurred during validation or execution.");
|
|
19
19
|
const PlainRunGraphqlQueryOutput = zod.z.object({
|
|
20
20
|
data: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Contains the result of the executed GraphQL operation. The structure mirrors the shape of the query. May contain partial data if errors occurred during field resolver execution. This field is not present if errors occurred before execution could start.").nullable().optional(),
|
|
21
21
|
errors: zod.z.array(PlainRunGraphqlQuery_GraphqlErrorSchema).describe("Contains information about any errors that occurred during validation or execution. This field is not present if no errors occurred. Each error contains message, locations, path, and extensions fields.").nullable().optional(),
|
|
22
22
|
extensions: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Optional field for additional metadata about the response. Content is at the discretion of the GraphQL implementation.").nullable().optional()
|
|
23
|
-
}).describe("Standard GraphQL response format containing data, errors, and optional extensions.");
|
|
23
|
+
}).passthrough().describe("Standard GraphQL response format containing data, errors, and optional extensions.");
|
|
24
24
|
const plainRunGraphqlQuery = require_action.action("PLAIN_RUN_GRAPHQL_QUERY", {
|
|
25
25
|
slug: "plain-run-graphql-query",
|
|
26
26
|
name: "Run GraphQL Query",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run-graphql-query.cjs","names":["z","action"],"sources":["../../src/actions/run-graphql-query.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainRunGraphqlQueryInput
|
|
1
|
+
{"version":3,"file":"run-graphql-query.cjs","names":["z","action"],"sources":["../../src/actions/run-graphql-query.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainRunGraphqlQueryInput = z.object({\n query: z.string().describe(\"A valid GraphQL query or mutation string for Plain API. Use this for any operation not covered by specific actions. Supports queries, mutations, inline fragments, and variables. DateTime fields (e.g., createdAt, updatedAt) are objects requiring subfield selection: use createdAt { iso8601 } — omitting subfields causes GRAPHQL_VALIDATION_FAILED. For paginated connections, request pageInfo { hasNextPage endCursor } and pass endCursor as the cursor argument in subsequent queries.\"),\n variables: z.record(z.string(), z.unknown()).describe(\"Variables for the GraphQL operation. Keys must match variable names in the query (without '$'). Use empty dict {} if no variables needed. Date range filter values must be UTC-normalized; non-UTC timestamps in createdAt or updatedAt filters silently exclude boundary records.\").optional(),\n});\nconst PlainRunGraphqlQuery_GraphqlErrorLocationSchema = z.object({\n line: z.number().int().describe(\"The line number where the error occurred.\").nullable(),\n column: z.number().int().describe(\"The column number where the error occurred.\").nullable(),\n}).passthrough().describe(\"Indicates where in the GraphQL document the error occurred.\");\nconst PlainRunGraphqlQuery_GraphqlErrorExtensionsSchema = z.object({\n code: z.string().describe(\"Machine-readable error code (e.g., input_validation, forbidden, internal, not_found, customer_already_exists_with_email, attachment_file_size_too_large, insufficient_permissions, etc.). Plain documents 77+ specific error codes.\").nullable().optional(),\n}).passthrough().describe(\"Additional arbitrary information about the error.\");\nconst PlainRunGraphqlQuery_GraphqlErrorSchema = z.object({\n path: z.array(z.string()).describe(\"The path of the response field which experienced the error. This allows clients to identify which part of the requested data caused the error.\").nullable().optional(),\n message: z.string().describe(\"A human-readable description of the error that occurred.\").nullable(),\n locations: z.array(PlainRunGraphqlQuery_GraphqlErrorLocationSchema).describe(\"Indicates where in the GraphQL document the error occurred.\").nullable().optional(),\n extensions: PlainRunGraphqlQuery_GraphqlErrorExtensionsSchema.nullable().optional(),\n}).passthrough().describe(\"Information about an error that occurred during validation or execution.\");\nexport const PlainRunGraphqlQueryOutput = z.object({\n data: z.record(z.string(), z.unknown()).describe(\"Contains the result of the executed GraphQL operation. The structure mirrors the shape of the query. May contain partial data if errors occurred during field resolver execution. This field is not present if errors occurred before execution could start.\").nullable().optional(),\n errors: z.array(PlainRunGraphqlQuery_GraphqlErrorSchema).describe(\"Contains information about any errors that occurred during validation or execution. This field is not present if no errors occurred. Each error contains message, locations, path, and extensions fields.\").nullable().optional(),\n extensions: z.record(z.string(), z.unknown()).describe(\"Optional field for additional metadata about the response. Content is at the discretion of the GraphQL implementation.\").nullable().optional(),\n}).passthrough().describe(\"Standard GraphQL response format containing data, errors, and optional extensions.\");\n\nexport const plainRunGraphqlQuery = action(\"PLAIN_RUN_GRAPHQL_QUERY\", {\n slug: \"plain-run-graphql-query\",\n name: \"Run GraphQL Query\",\n description: \"Execute any GraphQL query or mutation against Plain API. Use when no specific action exists or for complex operations like thread timelines, advanced filtering, and custom data retrieval. Supports queries, mutations, fragments, and variables.\",\n input: PlainRunGraphqlQueryInput,\n output: PlainRunGraphqlQueryOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,keAAke;CAC7f,WAAWA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oRAAoR,CAAC,CAAC,SAAS;AACvV,CAAC;AACD,MAAM,kDAAkDA,IAAAA,EAAE,OAAO;CAC/D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACtF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6DAA6D;AACvF,MAAM,oDAAoDA,IAAAA,EAAE,OAAO,EACjE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qOAAqO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACvR,CAAC,CAAC,CAAC,YAAY,CA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
|
|
6
|
-
|
|
4
|
+
declare const PlainRunGraphqlQueryInput: z.ZodObject<{
|
|
5
|
+
query: z.ZodString;
|
|
6
|
+
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const PlainRunGraphqlQueryOutput: z.ZodObject<{
|
|
9
|
+
data: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
10
|
+
errors: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
11
|
+
path: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
12
|
+
message: z.ZodNullable<z.ZodString>;
|
|
13
|
+
locations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
14
|
+
line: z.ZodNullable<z.ZodNumber>;
|
|
15
|
+
column: z.ZodNullable<z.ZodNumber>;
|
|
16
|
+
}, z.core.$loose>>>>;
|
|
17
|
+
extensions: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
18
|
+
code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
}, z.core.$loose>>>;
|
|
20
|
+
}, z.core.$loose>>>>;
|
|
21
|
+
extensions: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
22
|
+
}, z.core.$loose>;
|
|
23
|
+
declare const plainRunGraphqlQuery: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
24
|
+
query: string;
|
|
25
|
+
variables?: Record<string, unknown> | undefined;
|
|
26
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
27
|
//#endregion
|
|
8
28
|
export { plainRunGraphqlQuery };
|
|
9
29
|
//# sourceMappingURL=run-graphql-query.d.cts.map
|