@keystrokehq/pointagram 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (98) hide show
  1. package/README.md +17 -0
  2. package/dist/action.cjs +21 -0
  3. package/dist/action.cjs.map +1 -0
  4. package/dist/action.mjs +21 -0
  5. package/dist/action.mjs.map +1 -0
  6. package/dist/actions/add-score.cjs +34 -0
  7. package/dist/actions/add-score.cjs.map +1 -0
  8. package/dist/actions/add-score.d.cts +9 -0
  9. package/dist/actions/add-score.d.cts.map +1 -0
  10. package/dist/actions/add-score.d.mts +9 -0
  11. package/dist/actions/add-score.d.mts.map +1 -0
  12. package/dist/actions/add-score.mjs +31 -0
  13. package/dist/actions/add-score.mjs.map +1 -0
  14. package/dist/actions/index.cjs +17 -0
  15. package/dist/actions/index.d.cts +9 -0
  16. package/dist/actions/index.d.mts +9 -0
  17. package/dist/actions/index.mjs +9 -0
  18. package/dist/actions/list-competition-players.cjs +41 -0
  19. package/dist/actions/list-competition-players.cjs.map +1 -0
  20. package/dist/actions/list-competition-players.d.cts +9 -0
  21. package/dist/actions/list-competition-players.d.cts.map +1 -0
  22. package/dist/actions/list-competition-players.d.mts +9 -0
  23. package/dist/actions/list-competition-players.d.mts.map +1 -0
  24. package/dist/actions/list-competition-players.mjs +40 -0
  25. package/dist/actions/list-competition-players.mjs.map +1 -0
  26. package/dist/actions/list-competitions.cjs +41 -0
  27. package/dist/actions/list-competitions.cjs.map +1 -0
  28. package/dist/actions/list-competitions.d.cts +9 -0
  29. package/dist/actions/list-competitions.d.cts.map +1 -0
  30. package/dist/actions/list-competitions.d.mts +9 -0
  31. package/dist/actions/list-competitions.d.mts.map +1 -0
  32. package/dist/actions/list-competitions.mjs +40 -0
  33. package/dist/actions/list-competitions.mjs.map +1 -0
  34. package/dist/actions/list-players.cjs +29 -0
  35. package/dist/actions/list-players.cjs.map +1 -0
  36. package/dist/actions/list-players.d.cts +9 -0
  37. package/dist/actions/list-players.d.cts.map +1 -0
  38. package/dist/actions/list-players.d.mts +9 -0
  39. package/dist/actions/list-players.d.mts.map +1 -0
  40. package/dist/actions/list-players.mjs +28 -0
  41. package/dist/actions/list-players.mjs.map +1 -0
  42. package/dist/actions/list-score-series-history.cjs +37 -0
  43. package/dist/actions/list-score-series-history.cjs.map +1 -0
  44. package/dist/actions/list-score-series-history.d.cts +9 -0
  45. package/dist/actions/list-score-series-history.d.cts.map +1 -0
  46. package/dist/actions/list-score-series-history.d.mts +9 -0
  47. package/dist/actions/list-score-series-history.d.mts.map +1 -0
  48. package/dist/actions/list-score-series-history.mjs +36 -0
  49. package/dist/actions/list-score-series-history.mjs.map +1 -0
  50. package/dist/actions/list-score-series-point-types.cjs +20 -0
  51. package/dist/actions/list-score-series-point-types.cjs.map +1 -0
  52. package/dist/actions/list-score-series-point-types.d.cts +9 -0
  53. package/dist/actions/list-score-series-point-types.d.cts.map +1 -0
  54. package/dist/actions/list-score-series-point-types.d.mts +9 -0
  55. package/dist/actions/list-score-series-point-types.d.mts.map +1 -0
  56. package/dist/actions/list-score-series-point-types.mjs +17 -0
  57. package/dist/actions/list-score-series-point-types.mjs.map +1 -0
  58. package/dist/actions/list-score-series.cjs +21 -0
  59. package/dist/actions/list-score-series.cjs.map +1 -0
  60. package/dist/actions/list-score-series.d.cts +9 -0
  61. package/dist/actions/list-score-series.d.cts.map +1 -0
  62. package/dist/actions/list-score-series.d.mts +9 -0
  63. package/dist/actions/list-score-series.d.mts.map +1 -0
  64. package/dist/actions/list-score-series.mjs +20 -0
  65. package/dist/actions/list-score-series.mjs.map +1 -0
  66. package/dist/actions/list-teams.cjs +21 -0
  67. package/dist/actions/list-teams.cjs.map +1 -0
  68. package/dist/actions/list-teams.d.cts +9 -0
  69. package/dist/actions/list-teams.d.cts.map +1 -0
  70. package/dist/actions/list-teams.d.mts +9 -0
  71. package/dist/actions/list-teams.d.mts.map +1 -0
  72. package/dist/actions/list-teams.mjs +20 -0
  73. package/dist/actions/list-teams.mjs.map +1 -0
  74. package/dist/app.cjs +9 -0
  75. package/dist/app.cjs.map +1 -0
  76. package/dist/app.d.cts +5 -0
  77. package/dist/app.d.cts.map +1 -0
  78. package/dist/app.d.mts +5 -0
  79. package/dist/app.d.mts.map +1 -0
  80. package/dist/app.mjs +10 -0
  81. package/dist/app.mjs.map +1 -0
  82. package/dist/catalog.cjs +15 -0
  83. package/dist/catalog.cjs.map +1 -0
  84. package/dist/catalog.d.cts +14 -0
  85. package/dist/catalog.d.cts.map +1 -0
  86. package/dist/catalog.d.mts +14 -0
  87. package/dist/catalog.d.mts.map +1 -0
  88. package/dist/catalog.mjs +15 -0
  89. package/dist/catalog.mjs.map +1 -0
  90. package/dist/execute.cjs +18 -0
  91. package/dist/execute.cjs.map +1 -0
  92. package/dist/execute.mjs +18 -0
  93. package/dist/execute.mjs.map +1 -0
  94. package/dist/index.cjs +22 -0
  95. package/dist/index.d.cts +11 -0
  96. package/dist/index.d.mts +11 -0
  97. package/dist/index.mjs +12 -0
  98. package/package.json +49 -0
package/README.md ADDED
@@ -0,0 +1,17 @@
1
+ # @keystrokehq/pointagram
2
+
3
+ Keystroke-managed integration.
4
+
5
+ **App:** `pointagram`
6
+ **Version:** `20260615_00`
7
+ **Actions:** 8
8
+
9
+ ```ts
10
+ import { defineAgent } from "@keystrokehq/keystroke/agent";
11
+ import { pointagramAddScore } from "@keystrokehq/pointagram/actions";
12
+
13
+ export default defineAgent({
14
+ key: "pointagram-agent",
15
+ tools: [pointagramAddScore],
16
+ });
17
+ ```
@@ -0,0 +1,21 @@
1
+ const require_app = require("./app.cjs");
2
+ const require_execute = require("./execute.cjs");
3
+ require("zod");
4
+ //#region src/action.ts
5
+ /** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */
6
+ function action(tool, def) {
7
+ return require_app.pointagram.action({
8
+ slug: def.slug,
9
+ name: def.name,
10
+ description: def.description,
11
+ input: def.input,
12
+ output: def.output,
13
+ async run(input) {
14
+ return def.output.parse(await require_execute.executePointagramTool(tool, input));
15
+ }
16
+ });
17
+ }
18
+ //#endregion
19
+ exports.action = action;
20
+
21
+ //# sourceMappingURL=action.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"action.cjs","names":["pointagram","executePointagramTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { pointagram } from \"./app\";\nimport { executePointagramTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\n },\n) {\n return pointagram.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executePointagramTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,WAAW,OAAO;EACvB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,sBAAsB,MAAM,KAAgC,CAAC;EAC7F;CACF,CAAC;AACH"}
@@ -0,0 +1,21 @@
1
+ import { pointagram } from "./app.mjs";
2
+ import { executePointagramTool } from "./execute.mjs";
3
+ import "zod";
4
+ //#region src/action.ts
5
+ /** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */
6
+ function action(tool, def) {
7
+ return pointagram.action({
8
+ slug: def.slug,
9
+ name: def.name,
10
+ description: def.description,
11
+ input: def.input,
12
+ output: def.output,
13
+ async run(input) {
14
+ return def.output.parse(await executePointagramTool(tool, input));
15
+ }
16
+ });
17
+ }
18
+ //#endregion
19
+ export { action };
20
+
21
+ //# sourceMappingURL=action.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { pointagram } from \"./app\";\nimport { executePointagramTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\n },\n) {\n return pointagram.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executePointagramTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,WAAW,OAAO;EACvB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,sBAAsB,MAAM,KAAgC,CAAC;EAC7F;CACF,CAAC;AACH"}
@@ -0,0 +1,34 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/add-score.ts
4
+ const PointagramAddScoreInput = zod.z.object({
5
+ tags: zod.z.array(zod.z.object({ name: zod.z.string().describe("Tag name to display with points.") }).describe("Tag to be displayed with points.")).describe("Tags displayed with points. Each tag should have a 'name' field.").optional(),
6
+ points: zod.z.number().int().describe("Number of points to award. Use this OR pointtype_name.").optional(),
7
+ comment: zod.z.string().describe("Description visible in the news feed about this score entry.").optional(),
8
+ player_id: zod.z.string().describe("Internal Pointagram player identifier. Use this if you have the player's ID.").optional(),
9
+ score_time: zod.z.string().describe("Sets transaction timestamp in datetime format (e.g., ISO 8601).").optional(),
10
+ player_name: zod.z.string().describe("Player's display name for identification. Use when player_id is not available.").optional(),
11
+ player_email: zod.z.string().describe("Player's email address for identification. Use when player_id is not available.").optional(),
12
+ create_player: zod.z.number().int().describe("Set to 1 to automatically create missing players. Leave unset or set to 0 to not create players.").optional(),
13
+ pointtype_name: zod.z.string().describe("Named point type to assign. Use this OR points.").optional(),
14
+ scoreseries_id: zod.z.string().describe("ID of the target score series. Use this OR scoreseries_name.").optional(),
15
+ source_score_id: zod.z.string().describe("Transaction identifier. Reusing this ID will revoke the previous entry with the same ID.").optional(),
16
+ scoreseries_name: zod.z.string().describe("Name of the target score series. Use this OR scoreseries_id.").optional(),
17
+ player_external_id: zod.z.string().describe("Your system's unique player identifier. Use for integration with external systems.").optional()
18
+ }).describe("Request model for adding points to Pointagram. At least one player identification\nfield and one score series identification field are required.");
19
+ const PointagramAddScoreOutput = zod.z.object({
20
+ message: zod.z.string().describe("Response message describing the result of the operation."),
21
+ status_code: zod.z.number().int().describe("HTTP status code returned by the API. 200 indicates success, 409 indicates conflict (e.g., duplicate source_score_id)."),
22
+ response_text: zod.z.string().describe("Raw response text from the API, if any.").nullable().optional()
23
+ }).describe("Response model for add_score action. The API primarily returns HTTP status codes.");
24
+ const pointagramAddScore = require_action.action("POINTAGRAM_ADD_SCORE", {
25
+ slug: "pointagram-add-score",
26
+ name: "Add Score",
27
+ description: "Tool to add points to Pointagram players in a score series. Use when you need to award points with optional tags, descriptions, and automatic player creation.",
28
+ input: PointagramAddScoreInput,
29
+ output: PointagramAddScoreOutput
30
+ });
31
+ //#endregion
32
+ exports.pointagramAddScore = pointagramAddScore;
33
+
34
+ //# sourceMappingURL=add-score.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"add-score.cjs","names":["z","action"],"sources":["../../src/actions/add-score.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PointagramAddScoreInput: z.ZodTypeAny = z.object({\n tags: z.array(z.object({\n name: z.string().describe(\"Tag name to display with points.\"),\n}).describe(\"Tag to be displayed with points.\")).describe(\"Tags displayed with points. Each tag should have a 'name' field.\").optional(),\n points: z.number().int().describe(\"Number of points to award. Use this OR pointtype_name.\").optional(),\n comment: z.string().describe(\"Description visible in the news feed about this score entry.\").optional(),\n player_id: z.string().describe(\"Internal Pointagram player identifier. Use this if you have the player's ID.\").optional(),\n score_time: z.string().describe(\"Sets transaction timestamp in datetime format (e.g., ISO 8601).\").optional(),\n player_name: z.string().describe(\"Player's display name for identification. Use when player_id is not available.\").optional(),\n player_email: z.string().describe(\"Player's email address for identification. Use when player_id is not available.\").optional(),\n create_player: z.number().int().describe(\"Set to 1 to automatically create missing players. Leave unset or set to 0 to not create players.\").optional(),\n pointtype_name: z.string().describe(\"Named point type to assign. Use this OR points.\").optional(),\n scoreseries_id: z.string().describe(\"ID of the target score series. Use this OR scoreseries_name.\").optional(),\n source_score_id: z.string().describe(\"Transaction identifier. Reusing this ID will revoke the previous entry with the same ID.\").optional(),\n scoreseries_name: z.string().describe(\"Name of the target score series. Use this OR scoreseries_id.\").optional(),\n player_external_id: z.string().describe(\"Your system's unique player identifier. Use for integration with external systems.\").optional(),\n}).describe(\"Request model for adding points to Pointagram. At least one player identification\\nfield and one score series identification field are required.\");\nexport const PointagramAddScoreOutput: z.ZodTypeAny = z.object({\n message: z.string().describe(\"Response message describing the result of the operation.\"),\n status_code: z.number().int().describe(\"HTTP status code returned by the API. 200 indicates success, 409 indicates conflict (e.g., duplicate source_score_id).\"),\n response_text: z.string().describe(\"Raw response text from the API, if any.\").nullable().optional(),\n}).describe(\"Response model for add_score action. The API primarily returns HTTP status codes.\");\n\nexport const pointagramAddScore = action(\"POINTAGRAM_ADD_SCORE\", {\n slug: \"pointagram-add-score\",\n name: \"Add Score\",\n description: \"Tool to add points to Pointagram players in a score series. Use when you need to award points with optional tags, descriptions, and automatic player creation.\",\n input: PointagramAddScoreInput,\n output: PointagramAddScoreOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAAwCA,IAAAA,EAAE,OAAO;CAC5D,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,EACvB,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,EAC9D,CAAC,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,CAAC,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C/J,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpG,CAAC,CAAC,CAAC,SAAS,mFAAmF;AAE/F,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/add-score.d.ts
4
+ declare const PointagramAddScoreInput: z.ZodTypeAny;
5
+ declare const PointagramAddScoreOutput: z.ZodTypeAny;
6
+ declare const pointagramAddScore: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { pointagramAddScore };
9
+ //# sourceMappingURL=add-score.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"add-score.d.cts","names":[],"sources":["../../src/actions/add-score.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAgBuH;AAAA,cAClJ,wBAAA,EAA0B,CAAA,CAAE,UAIuD;AAAA,cAEnF,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/add-score.d.ts
4
+ declare const PointagramAddScoreInput: z.ZodTypeAny;
5
+ declare const PointagramAddScoreOutput: z.ZodTypeAny;
6
+ declare const pointagramAddScore: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { pointagramAddScore };
9
+ //# sourceMappingURL=add-score.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"add-score.d.mts","names":[],"sources":["../../src/actions/add-score.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAgBuH;AAAA,cAClJ,wBAAA,EAA0B,CAAA,CAAE,UAIuD;AAAA,cAEnF,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,31 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ const pointagramAddScore = action("POINTAGRAM_ADD_SCORE", {
4
+ slug: "pointagram-add-score",
5
+ name: "Add Score",
6
+ description: "Tool to add points to Pointagram players in a score series. Use when you need to award points with optional tags, descriptions, and automatic player creation.",
7
+ input: z.object({
8
+ tags: z.array(z.object({ name: z.string().describe("Tag name to display with points.") }).describe("Tag to be displayed with points.")).describe("Tags displayed with points. Each tag should have a 'name' field.").optional(),
9
+ points: z.number().int().describe("Number of points to award. Use this OR pointtype_name.").optional(),
10
+ comment: z.string().describe("Description visible in the news feed about this score entry.").optional(),
11
+ player_id: z.string().describe("Internal Pointagram player identifier. Use this if you have the player's ID.").optional(),
12
+ score_time: z.string().describe("Sets transaction timestamp in datetime format (e.g., ISO 8601).").optional(),
13
+ player_name: z.string().describe("Player's display name for identification. Use when player_id is not available.").optional(),
14
+ player_email: z.string().describe("Player's email address for identification. Use when player_id is not available.").optional(),
15
+ create_player: z.number().int().describe("Set to 1 to automatically create missing players. Leave unset or set to 0 to not create players.").optional(),
16
+ pointtype_name: z.string().describe("Named point type to assign. Use this OR points.").optional(),
17
+ scoreseries_id: z.string().describe("ID of the target score series. Use this OR scoreseries_name.").optional(),
18
+ source_score_id: z.string().describe("Transaction identifier. Reusing this ID will revoke the previous entry with the same ID.").optional(),
19
+ scoreseries_name: z.string().describe("Name of the target score series. Use this OR scoreseries_id.").optional(),
20
+ player_external_id: z.string().describe("Your system's unique player identifier. Use for integration with external systems.").optional()
21
+ }).describe("Request model for adding points to Pointagram. At least one player identification\nfield and one score series identification field are required."),
22
+ output: z.object({
23
+ message: z.string().describe("Response message describing the result of the operation."),
24
+ status_code: z.number().int().describe("HTTP status code returned by the API. 200 indicates success, 409 indicates conflict (e.g., duplicate source_score_id)."),
25
+ response_text: z.string().describe("Raw response text from the API, if any.").nullable().optional()
26
+ }).describe("Response model for add_score action. The API primarily returns HTTP status codes.")
27
+ });
28
+ //#endregion
29
+ export { pointagramAddScore };
30
+
31
+ //# sourceMappingURL=add-score.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"add-score.mjs","names":[],"sources":["../../src/actions/add-score.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PointagramAddScoreInput: z.ZodTypeAny = z.object({\n tags: z.array(z.object({\n name: z.string().describe(\"Tag name to display with points.\"),\n}).describe(\"Tag to be displayed with points.\")).describe(\"Tags displayed with points. Each tag should have a 'name' field.\").optional(),\n points: z.number().int().describe(\"Number of points to award. Use this OR pointtype_name.\").optional(),\n comment: z.string().describe(\"Description visible in the news feed about this score entry.\").optional(),\n player_id: z.string().describe(\"Internal Pointagram player identifier. Use this if you have the player's ID.\").optional(),\n score_time: z.string().describe(\"Sets transaction timestamp in datetime format (e.g., ISO 8601).\").optional(),\n player_name: z.string().describe(\"Player's display name for identification. Use when player_id is not available.\").optional(),\n player_email: z.string().describe(\"Player's email address for identification. Use when player_id is not available.\").optional(),\n create_player: z.number().int().describe(\"Set to 1 to automatically create missing players. Leave unset or set to 0 to not create players.\").optional(),\n pointtype_name: z.string().describe(\"Named point type to assign. Use this OR points.\").optional(),\n scoreseries_id: z.string().describe(\"ID of the target score series. Use this OR scoreseries_name.\").optional(),\n source_score_id: z.string().describe(\"Transaction identifier. Reusing this ID will revoke the previous entry with the same ID.\").optional(),\n scoreseries_name: z.string().describe(\"Name of the target score series. Use this OR scoreseries_id.\").optional(),\n player_external_id: z.string().describe(\"Your system's unique player identifier. Use for integration with external systems.\").optional(),\n}).describe(\"Request model for adding points to Pointagram. At least one player identification\\nfield and one score series identification field are required.\");\nexport const PointagramAddScoreOutput: z.ZodTypeAny = z.object({\n message: z.string().describe(\"Response message describing the result of the operation.\"),\n status_code: z.number().int().describe(\"HTTP status code returned by the API. 200 indicates success, 409 indicates conflict (e.g., duplicate source_score_id).\"),\n response_text: z.string().describe(\"Raw response text from the API, if any.\").nullable().optional(),\n}).describe(\"Response model for add_score action. The API primarily returns HTTP status codes.\");\n\nexport const pointagramAddScore = action(\"POINTAGRAM_ADD_SCORE\", {\n slug: \"pointagram-add-score\",\n name: \"Add Score\",\n description: \"Tool to add points to Pointagram players in a score series. Use when you need to award points with optional tags, descriptions, and automatic player creation.\",\n input: PointagramAddScoreInput,\n output: PointagramAddScoreOutput,\n});\n"],"mappings":";;AA2BA,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA3BmD,EAAE,OAAO;EAC5D,MAAM,EAAE,MAAM,EAAE,OAAO,EACvB,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,EAC9D,CAAC,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;EACrI,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;EACrG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;EACtG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;EACxH,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;EAC5G,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS;EAC5H,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;EAC9H,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;EACtJ,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;EAChG,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;EAC7G,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,0FAA0F,CAAC,CAAC,SAAS;EAC1I,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;EAC/G,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS;CACzI,CAAC,CAAC,CAAC,SAAS,kJAWH;CACP,QAXoD,EAAE,OAAO;EAC7D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D;EACvF,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wHAAwH;EAC/J,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,CAAC,CAAC,CAAC,SAAS,mFAOF;AACV,CAAC"}
@@ -0,0 +1,17 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_add_score = require("./add-score.cjs");
3
+ const require_list_competition_players = require("./list-competition-players.cjs");
4
+ const require_list_competitions = require("./list-competitions.cjs");
5
+ const require_list_players = require("./list-players.cjs");
6
+ const require_list_score_series = require("./list-score-series.cjs");
7
+ const require_list_score_series_history = require("./list-score-series-history.cjs");
8
+ const require_list_score_series_point_types = require("./list-score-series-point-types.cjs");
9
+ const require_list_teams = require("./list-teams.cjs");
10
+ exports.pointagramAddScore = require_add_score.pointagramAddScore;
11
+ exports.pointagramListCompetitionPlayers = require_list_competition_players.pointagramListCompetitionPlayers;
12
+ exports.pointagramListCompetitions = require_list_competitions.pointagramListCompetitions;
13
+ exports.pointagramListPlayers = require_list_players.pointagramListPlayers;
14
+ exports.pointagramListScoreSeries = require_list_score_series.pointagramListScoreSeries;
15
+ exports.pointagramListScoreSeriesHistory = require_list_score_series_history.pointagramListScoreSeriesHistory;
16
+ exports.pointagramListScoreSeriesPointTypes = require_list_score_series_point_types.pointagramListScoreSeriesPointTypes;
17
+ exports.pointagramListTeams = require_list_teams.pointagramListTeams;
@@ -0,0 +1,9 @@
1
+ import { pointagramAddScore } from "./add-score.cjs";
2
+ import { pointagramListCompetitionPlayers } from "./list-competition-players.cjs";
3
+ import { pointagramListCompetitions } from "./list-competitions.cjs";
4
+ import { pointagramListPlayers } from "./list-players.cjs";
5
+ import { pointagramListScoreSeries } from "./list-score-series.cjs";
6
+ import { pointagramListScoreSeriesHistory } from "./list-score-series-history.cjs";
7
+ import { pointagramListScoreSeriesPointTypes } from "./list-score-series-point-types.cjs";
8
+ import { pointagramListTeams } from "./list-teams.cjs";
9
+ export { pointagramAddScore, pointagramListCompetitionPlayers, pointagramListCompetitions, pointagramListPlayers, pointagramListScoreSeries, pointagramListScoreSeriesHistory, pointagramListScoreSeriesPointTypes, pointagramListTeams };
@@ -0,0 +1,9 @@
1
+ import { pointagramAddScore } from "./add-score.mjs";
2
+ import { pointagramListCompetitionPlayers } from "./list-competition-players.mjs";
3
+ import { pointagramListCompetitions } from "./list-competitions.mjs";
4
+ import { pointagramListPlayers } from "./list-players.mjs";
5
+ import { pointagramListScoreSeries } from "./list-score-series.mjs";
6
+ import { pointagramListScoreSeriesHistory } from "./list-score-series-history.mjs";
7
+ import { pointagramListScoreSeriesPointTypes } from "./list-score-series-point-types.mjs";
8
+ import { pointagramListTeams } from "./list-teams.mjs";
9
+ export { pointagramAddScore, pointagramListCompetitionPlayers, pointagramListCompetitions, pointagramListPlayers, pointagramListScoreSeries, pointagramListScoreSeriesHistory, pointagramListScoreSeriesPointTypes, pointagramListTeams };
@@ -0,0 +1,9 @@
1
+ import { pointagramAddScore } from "./add-score.mjs";
2
+ import { pointagramListCompetitionPlayers } from "./list-competition-players.mjs";
3
+ import { pointagramListCompetitions } from "./list-competitions.mjs";
4
+ import { pointagramListPlayers } from "./list-players.mjs";
5
+ import { pointagramListScoreSeries } from "./list-score-series.mjs";
6
+ import { pointagramListScoreSeriesHistory } from "./list-score-series-history.mjs";
7
+ import { pointagramListScoreSeriesPointTypes } from "./list-score-series-point-types.mjs";
8
+ import { pointagramListTeams } from "./list-teams.mjs";
9
+ export { pointagramAddScore, pointagramListCompetitionPlayers, pointagramListCompetitions, pointagramListPlayers, pointagramListScoreSeries, pointagramListScoreSeriesHistory, pointagramListScoreSeriesPointTypes, pointagramListTeams };
@@ -0,0 +1,41 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/list-competition-players.ts
4
+ const PointagramListCompetitionPlayersInput = zod.z.object({
5
+ player_id: zod.z.string().describe("Filter by specific player ID to get their competition participation.").optional(),
6
+ competition_id: zod.z.string().describe("Filter players by specific competition ID. If not provided, returns players from all competitions.").optional(),
7
+ player_external_id: zod.z.string().describe("Filter by external player identifier from your system.").optional()
8
+ }).describe("Request model for listing competition players with optional filtering.");
9
+ const PointagramListCompetitionPlayers_CompetitionPlayerItemSchema = zod.z.object({
10
+ rank: zod.z.union([zod.z.number().int(), zod.z.string()]).nullable().optional(),
11
+ score: zod.z.union([
12
+ zod.z.number().int(),
13
+ zod.z.number(),
14
+ zod.z.string()
15
+ ]).nullable().optional(),
16
+ points: zod.z.union([
17
+ zod.z.number().int(),
18
+ zod.z.number(),
19
+ zod.z.string()
20
+ ]).nullable().optional(),
21
+ team_id: zod.z.string().describe("Team identifier if the player is part of a team.").nullable().optional(),
22
+ player_id: zod.z.string().describe("Unique player identifier in Pointagram.").nullable().optional(),
23
+ team_name: zod.z.string().describe("Team name if the player is part of a team.").nullable().optional(),
24
+ external_id: zod.z.string().describe("External identifier for the player from your system.").nullable().optional(),
25
+ player_name: zod.z.string().describe("Name of the player in the competition.").nullable().optional(),
26
+ player_email: zod.z.string().describe("Email address of the player.").nullable().optional(),
27
+ competition_id: zod.z.string().describe("Competition identifier that the player is participating in.").nullable().optional(),
28
+ competition_name: zod.z.string().describe("Name of the competition.").nullable().optional()
29
+ }).describe("Model representing a player's competition data including rankings and scores.");
30
+ const PointagramListCompetitionPlayersOutput = zod.z.object({ players: zod.z.array(PointagramListCompetitionPlayers_CompetitionPlayerItemSchema).describe("List of players with their competition participation, rankings, and scores.").nullable().optional() }).describe("Response model for listing competition players. Returns an array of player competition data.");
31
+ const pointagramListCompetitionPlayers = require_action.action("POINTAGRAM_LIST_COMPETITION_PLAYERS", {
32
+ slug: "pointagram-list-competition-players",
33
+ name: "List Competition Players",
34
+ description: "Tool to fetch competition players and standings in Pointagram. Returns detailed player rankings, scores, and competition participation data. Use when you need to retrieve player standings, competition leaderboards, or analyze player performance across competitions.",
35
+ input: PointagramListCompetitionPlayersInput,
36
+ output: PointagramListCompetitionPlayersOutput
37
+ });
38
+ //#endregion
39
+ exports.pointagramListCompetitionPlayers = pointagramListCompetitionPlayers;
40
+
41
+ //# sourceMappingURL=list-competition-players.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-competition-players.cjs","names":["z","action"],"sources":["../../src/actions/list-competition-players.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PointagramListCompetitionPlayersInput: z.ZodTypeAny = z.object({\n player_id: z.string().describe(\"Filter by specific player ID to get their competition participation.\").optional(),\n competition_id: z.string().describe(\"Filter players by specific competition ID. If not provided, returns players from all competitions.\").optional(),\n player_external_id: z.string().describe(\"Filter by external player identifier from your system.\").optional(),\n}).describe(\"Request model for listing competition players with optional filtering.\");\nconst PointagramListCompetitionPlayers_CompetitionPlayerItemSchema: z.ZodTypeAny = z.object({\n rank: z.union([z.number().int(), z.string()]).nullable().optional(),\n score: z.union([z.number().int(), z.number(), z.string()]).nullable().optional(),\n points: z.union([z.number().int(), z.number(), z.string()]).nullable().optional(),\n team_id: z.string().describe(\"Team identifier if the player is part of a team.\").nullable().optional(),\n player_id: z.string().describe(\"Unique player identifier in Pointagram.\").nullable().optional(),\n team_name: z.string().describe(\"Team name if the player is part of a team.\").nullable().optional(),\n external_id: z.string().describe(\"External identifier for the player from your system.\").nullable().optional(),\n player_name: z.string().describe(\"Name of the player in the competition.\").nullable().optional(),\n player_email: z.string().describe(\"Email address of the player.\").nullable().optional(),\n competition_id: z.string().describe(\"Competition identifier that the player is participating in.\").nullable().optional(),\n competition_name: z.string().describe(\"Name of the competition.\").nullable().optional(),\n}).describe(\"Model representing a player's competition data including rankings and scores.\");\nexport const PointagramListCompetitionPlayersOutput: z.ZodTypeAny = z.object({\n players: z.array(PointagramListCompetitionPlayers_CompetitionPlayerItemSchema).describe(\"List of players with their competition participation, rankings, and scores.\").nullable().optional(),\n}).describe(\"Response model for listing competition players. Returns an array of player competition data.\");\n\nexport const pointagramListCompetitionPlayers = action(\"POINTAGRAM_LIST_COMPETITION_PLAYERS\", {\n slug: \"pointagram-list-competition-players\",\n name: \"List Competition Players\",\n description: \"Tool to fetch competition players and standings in Pointagram. Returns detailed player rankings, scores, and competition participation data. Use when you need to retrieve player standings, competition leaderboards, or analyze player performance across competitions.\",\n input: PointagramListCompetitionPlayersInput,\n output: PointagramListCompetitionPlayersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wCAAsDA,IAAAA,EAAE,OAAO;CAC1E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CAChH,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;CACnJ,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;AAC7G,CAAC,CAAC,CAAC,SAAS,wEAAwE;AACpF,MAAM,+DAA6EA,IAAAA,EAAE,OAAO;CAC1F,MAAMA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,C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EAC3E,SAASA,IAAAA,EAAE,MAAM,4DAA4D,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC7L,CAAC,CAAC,CAAC,SAAS,8FAA8F;AAE1G,MAAa,mCAAmCC,eAAAA,OAAO,uCAAuC;CAC5F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/list-competition-players.d.ts
4
+ declare const PointagramListCompetitionPlayersInput: z.ZodTypeAny;
5
+ declare const PointagramListCompetitionPlayersOutput: z.ZodTypeAny;
6
+ declare const pointagramListCompetitionPlayers: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { pointagramListCompetitionPlayers };
9
+ //# sourceMappingURL=list-competition-players.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-competition-players.d.cts","names":[],"sources":["../../src/actions/list-competition-players.ts"],"mappings":";;;cAIa,qCAAA,EAAuC,CAAA,CAAE,UAI+B;AAAA,cAcxE,sCAAA,EAAwC,CAAA,CAAE,UAEoD;AAAA,cAE9F,gCAAA,gCAAgC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/list-competition-players.d.ts
4
+ declare const PointagramListCompetitionPlayersInput: z.ZodTypeAny;
5
+ declare const PointagramListCompetitionPlayersOutput: z.ZodTypeAny;
6
+ declare const pointagramListCompetitionPlayers: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { pointagramListCompetitionPlayers };
9
+ //# sourceMappingURL=list-competition-players.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-competition-players.d.mts","names":[],"sources":["../../src/actions/list-competition-players.ts"],"mappings":";;;cAIa,qCAAA,EAAuC,CAAA,CAAE,UAI+B;AAAA,cAcxE,sCAAA,EAAwC,CAAA,CAAE,UAEoD;AAAA,cAE9F,gCAAA,gCAAgC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,40 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/list-competition-players.ts
4
+ const PointagramListCompetitionPlayersInput = z.object({
5
+ player_id: z.string().describe("Filter by specific player ID to get their competition participation.").optional(),
6
+ competition_id: z.string().describe("Filter players by specific competition ID. If not provided, returns players from all competitions.").optional(),
7
+ player_external_id: z.string().describe("Filter by external player identifier from your system.").optional()
8
+ }).describe("Request model for listing competition players with optional filtering.");
9
+ const PointagramListCompetitionPlayers_CompetitionPlayerItemSchema = z.object({
10
+ rank: z.union([z.number().int(), z.string()]).nullable().optional(),
11
+ score: z.union([
12
+ z.number().int(),
13
+ z.number(),
14
+ z.string()
15
+ ]).nullable().optional(),
16
+ points: z.union([
17
+ z.number().int(),
18
+ z.number(),
19
+ z.string()
20
+ ]).nullable().optional(),
21
+ team_id: z.string().describe("Team identifier if the player is part of a team.").nullable().optional(),
22
+ player_id: z.string().describe("Unique player identifier in Pointagram.").nullable().optional(),
23
+ team_name: z.string().describe("Team name if the player is part of a team.").nullable().optional(),
24
+ external_id: z.string().describe("External identifier for the player from your system.").nullable().optional(),
25
+ player_name: z.string().describe("Name of the player in the competition.").nullable().optional(),
26
+ player_email: z.string().describe("Email address of the player.").nullable().optional(),
27
+ competition_id: z.string().describe("Competition identifier that the player is participating in.").nullable().optional(),
28
+ competition_name: z.string().describe("Name of the competition.").nullable().optional()
29
+ }).describe("Model representing a player's competition data including rankings and scores.");
30
+ const pointagramListCompetitionPlayers = action("POINTAGRAM_LIST_COMPETITION_PLAYERS", {
31
+ slug: "pointagram-list-competition-players",
32
+ name: "List Competition Players",
33
+ description: "Tool to fetch competition players and standings in Pointagram. Returns detailed player rankings, scores, and competition participation data. Use when you need to retrieve player standings, competition leaderboards, or analyze player performance across competitions.",
34
+ input: PointagramListCompetitionPlayersInput,
35
+ output: z.object({ players: z.array(PointagramListCompetitionPlayers_CompetitionPlayerItemSchema).describe("List of players with their competition participation, rankings, and scores.").nullable().optional() }).describe("Response model for listing competition players. Returns an array of player competition data.")
36
+ });
37
+ //#endregion
38
+ export { pointagramListCompetitionPlayers };
39
+
40
+ //# sourceMappingURL=list-competition-players.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-competition-players.mjs","names":[],"sources":["../../src/actions/list-competition-players.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PointagramListCompetitionPlayersInput: z.ZodTypeAny = z.object({\n player_id: z.string().describe(\"Filter by specific player ID to get their competition participation.\").optional(),\n competition_id: z.string().describe(\"Filter players by specific competition ID. If not provided, returns players from all competitions.\").optional(),\n player_external_id: z.string().describe(\"Filter by external player identifier from your system.\").optional(),\n}).describe(\"Request model for listing competition players with optional filtering.\");\nconst PointagramListCompetitionPlayers_CompetitionPlayerItemSchema: z.ZodTypeAny = z.object({\n rank: z.union([z.number().int(), z.string()]).nullable().optional(),\n score: z.union([z.number().int(), z.number(), z.string()]).nullable().optional(),\n points: z.union([z.number().int(), z.number(), z.string()]).nullable().optional(),\n team_id: z.string().describe(\"Team identifier if the player is part of a team.\").nullable().optional(),\n player_id: z.string().describe(\"Unique player identifier in Pointagram.\").nullable().optional(),\n team_name: z.string().describe(\"Team name if the player is part of a team.\").nullable().optional(),\n external_id: z.string().describe(\"External identifier for the player from your system.\").nullable().optional(),\n player_name: z.string().describe(\"Name of the player in the competition.\").nullable().optional(),\n player_email: z.string().describe(\"Email address of the player.\").nullable().optional(),\n competition_id: z.string().describe(\"Competition identifier that the player is participating in.\").nullable().optional(),\n competition_name: z.string().describe(\"Name of the competition.\").nullable().optional(),\n}).describe(\"Model representing a player's competition data including rankings and scores.\");\nexport const PointagramListCompetitionPlayersOutput: z.ZodTypeAny = z.object({\n players: z.array(PointagramListCompetitionPlayers_CompetitionPlayerItemSchema).describe(\"List of players with their competition participation, rankings, and scores.\").nullable().optional(),\n}).describe(\"Response model for listing competition players. Returns an array of player competition data.\");\n\nexport const pointagramListCompetitionPlayers = action(\"POINTAGRAM_LIST_COMPETITION_PLAYERS\", {\n slug: \"pointagram-list-competition-players\",\n name: \"List Competition Players\",\n description: \"Tool to fetch competition players and standings in Pointagram. Returns detailed player rankings, scores, and competition participation data. Use when you need to retrieve player standings, competition leaderboards, or analyze player performance across competitions.\",\n input: PointagramListCompetitionPlayersInput,\n output: PointagramListCompetitionPlayersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wCAAsD,EAAE,OAAO;CAC1E,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CAChH,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;CACnJ,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;AAC7G,CAAC,CAAC,CAAC,SAAS,wEAAwE;AACpF,MAAM,+DAA6E,EAAE,OAAO;CAC1F,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,CAAC,CAAC,IAAI,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClE,OAAO,EAAE,MAAM;EAAC,EAAE,OAAO,CAAC,CAAC,IAAI;EAAG,EAAE,OAAO;EAAG,EAAE,OAAO;CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,QAAQ,EAAE,MAAM;EAAC,EAAE,OAAO,CAAC,CAAC,IAAI;EAAG,EAAE,OAAO;EAAG,EAAE,OAAO;CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvH,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxF,CAAC,CAAC,CAAC,SAAS,+EAA+E;AAK3F,MAAa,mCAAmC,OAAO,uCAAuC;CAC5F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATkE,EAAE,OAAO,EAC3E,SAAS,EAAE,MAAM,4DAA4D,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC7L,CAAC,CAAC,CAAC,SAAS,8FAOF;AACV,CAAC"}
@@ -0,0 +1,41 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/list-competitions.ts
4
+ const PointagramListCompetitionsInput = zod.z.object({
5
+ filter: zod.z.string().describe("The search value to match against the criteria specified in search_by parameter. Used to filter competitions by player information.").optional(),
6
+ accesskey: zod.z.string().describe("Filter results to show only competitions associated with a specific access key identifier.").optional(),
7
+ search_by: zod.z.enum([
8
+ "Email",
9
+ "Name",
10
+ "External Id"
11
+ ]).describe("Specifies the search criteria type to filter competitions by player. Accepts 'Email', 'Name', or 'External Id'. Used in combination with 'filter' parameter.").optional(),
12
+ competition_id: zod.z.union([zod.z.number().int(), zod.z.string()]).optional()
13
+ }).describe("Request model for listing competitions with optional filtering.");
14
+ const PointagramListCompetitions_CompetitionRankingSchema = zod.z.object({
15
+ rank: zod.z.number().int().describe("Player's rank in the competition.").nullable().optional(),
16
+ score: zod.z.union([zod.z.number().int(), zod.z.number()]).nullable().optional(),
17
+ player_id: zod.z.string().describe("Unique identifier of the player.").nullable().optional(),
18
+ player_name: zod.z.string().describe("Name of the player.").nullable().optional()
19
+ }).describe("Model representing a player's ranking within a competition.");
20
+ const PointagramListCompetitions_CompetitionItemSchema = zod.z.object({
21
+ id: zod.z.union([zod.z.number().int(), zod.z.string()]).nullable().optional(),
22
+ name: zod.z.string().describe("Name of the competition.").nullable().optional(),
23
+ status: zod.z.string().describe("Current status of the competition.").nullable().optional(),
24
+ end_date: zod.z.string().describe("End date of the competition.").nullable().optional(),
25
+ rankings: zod.z.array(PointagramListCompetitions_CompetitionRankingSchema).describe("List of player rankings and scores in the competition.").nullable().optional(),
26
+ accesskey: zod.z.string().describe("Access key associated with the competition.").nullable().optional(),
27
+ start_date: zod.z.string().describe("Start date of the competition.").nullable().optional(),
28
+ description: zod.z.string().describe("Description of the competition.").nullable().optional()
29
+ }).describe("Model representing a single competition in Pointagram.");
30
+ const PointagramListCompetitionsOutput = zod.z.object({ competitions: zod.z.array(PointagramListCompetitions_CompetitionItemSchema).describe("List of competitions matching the search criteria, including rankings and scores.").nullable().optional() }).describe("Response model for listing competitions. Returns an array of competition objects.");
31
+ const pointagramListCompetitions = require_action.action("POINTAGRAM_LIST_COMPETITIONS", {
32
+ slug: "pointagram-list-competitions",
33
+ name: "List Competitions",
34
+ description: "Tool to fetch competitions in Pointagram with optional filtering. Use when you need to retrieve competition information including rankings and scores. Supports filtering by player (email, name, external ID), competition ID, or access key.",
35
+ input: PointagramListCompetitionsInput,
36
+ output: PointagramListCompetitionsOutput
37
+ });
38
+ //#endregion
39
+ exports.pointagramListCompetitions = pointagramListCompetitions;
40
+
41
+ //# sourceMappingURL=list-competitions.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-competitions.cjs","names":["z","action"],"sources":["../../src/actions/list-competitions.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PointagramListCompetitionsInput: z.ZodTypeAny = z.object({\n filter: z.string().describe(\"The search value to match against the criteria specified in search_by parameter. Used to filter competitions by player information.\").optional(),\n accesskey: z.string().describe(\"Filter results to show only competitions associated with a specific access key identifier.\").optional(),\n search_by: z.enum([\"Email\", \"Name\", \"External Id\"]).describe(\"Specifies the search criteria type to filter competitions by player. Accepts 'Email', 'Name', or 'External Id'. Used in combination with 'filter' parameter.\").optional(),\n competition_id: z.union([z.number().int(), z.string()]).optional(),\n}).describe(\"Request model for listing competitions with optional filtering.\");\nconst PointagramListCompetitions_CompetitionRankingSchema: z.ZodTypeAny = z.object({\n rank: z.number().int().describe(\"Player's rank in the competition.\").nullable().optional(),\n score: z.union([z.number().int(), z.number()]).nullable().optional(),\n player_id: z.string().describe(\"Unique identifier of the player.\").nullable().optional(),\n player_name: z.string().describe(\"Name of the player.\").nullable().optional(),\n}).describe(\"Model representing a player's ranking within a competition.\");\nconst PointagramListCompetitions_CompetitionItemSchema: z.ZodTypeAny = z.object({\n id: z.union([z.number().int(), z.string()]).nullable().optional(),\n name: z.string().describe(\"Name of the competition.\").nullable().optional(),\n status: z.string().describe(\"Current status of the competition.\").nullable().optional(),\n end_date: z.string().describe(\"End date of the competition.\").nullable().optional(),\n rankings: z.array(PointagramListCompetitions_CompetitionRankingSchema).describe(\"List of player rankings and scores in the competition.\").nullable().optional(),\n accesskey: z.string().describe(\"Access key associated with the competition.\").nullable().optional(),\n start_date: z.string().describe(\"Start date of the competition.\").nullable().optional(),\n description: z.string().describe(\"Description of the competition.\").nullable().optional(),\n}).describe(\"Model representing a single competition in Pointagram.\");\nexport const PointagramListCompetitionsOutput: z.ZodTypeAny = z.object({\n competitions: z.array(PointagramListCompetitions_CompetitionItemSchema).describe(\"List of competitions matching the search criteria, including rankings and scores.\").nullable().optional(),\n}).describe(\"Response model for listing competitions. Returns an array of competition objects.\");\n\nexport const pointagramListCompetitions = action(\"POINTAGRAM_LIST_COMPETITIONS\", {\n slug: \"pointagram-list-competitions\",\n name: \"List Competitions\",\n description: \"Tool to fetch competitions in Pointagram with optional filtering. Use when you need to retrieve competition information including rankings and scores. Supports filtering by player (email, name, external ID), competition ID, or access key.\",\n input: PointagramListCompetitionsInput,\n output: PointagramListCompetitionsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAgDA,IAAAA,EAAE,OAAO;CACpE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qIAAqI,CAAC,CAAC,SAAS;CAC5K,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4FAA4F,CAAC,CAAC,SAAS;CACtI,WAAWA,IAAAA,EAAE,KAAK;EAAC;EAAS;EAAQ;CAAa,CAAC,CAAC,CAAC,SAAS,8JAA8J,CAAC,CAAC,SAAS;CACtO,gBAAgBA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS;AACnE,CAAC,CAAC,CAAC,SAAS,iEAAiE;AAC7E,MAAM,sDAAoEA,IAAAA,EAAE,OAAO;CACjF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,OAAOA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,CAAC,C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Aa,mCAAiDA,IAAAA,EAAE,OAAO,EACrE,cAAcA,IAAAA,EAAE,MAAM,gDAAgD,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC5L,CAAC,CAAC,CAAC,SAAS,mFAAmF;AAE/F,MAAa,6BAA6BC,eAAAA,OAAO,gCAAgC;CAC/E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/list-competitions.d.ts
4
+ declare const PointagramListCompetitionsInput: z.ZodTypeAny;
5
+ declare const PointagramListCompetitionsOutput: z.ZodTypeAny;
6
+ declare const pointagramListCompetitions: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { pointagramListCompetitions };
9
+ //# sourceMappingURL=list-competitions.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-competitions.d.cts","names":[],"sources":["../../src/actions/list-competitions.ts"],"mappings":";;;cAIa,+BAAA,EAAiC,CAAA,CAAE,UAK8B;AAAA,cAiBjE,gCAAA,EAAkC,CAAA,CAAE,UAE+C;AAAA,cAEnF,0BAAA,gCAA0B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/list-competitions.d.ts
4
+ declare const PointagramListCompetitionsInput: z.ZodTypeAny;
5
+ declare const PointagramListCompetitionsOutput: z.ZodTypeAny;
6
+ declare const pointagramListCompetitions: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { pointagramListCompetitions };
9
+ //# sourceMappingURL=list-competitions.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-competitions.d.mts","names":[],"sources":["../../src/actions/list-competitions.ts"],"mappings":";;;cAIa,+BAAA,EAAiC,CAAA,CAAE,UAK8B;AAAA,cAiBjE,gCAAA,EAAkC,CAAA,CAAE,UAE+C;AAAA,cAEnF,0BAAA,gCAA0B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,40 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/list-competitions.ts
4
+ const PointagramListCompetitionsInput = z.object({
5
+ filter: z.string().describe("The search value to match against the criteria specified in search_by parameter. Used to filter competitions by player information.").optional(),
6
+ accesskey: z.string().describe("Filter results to show only competitions associated with a specific access key identifier.").optional(),
7
+ search_by: z.enum([
8
+ "Email",
9
+ "Name",
10
+ "External Id"
11
+ ]).describe("Specifies the search criteria type to filter competitions by player. Accepts 'Email', 'Name', or 'External Id'. Used in combination with 'filter' parameter.").optional(),
12
+ competition_id: z.union([z.number().int(), z.string()]).optional()
13
+ }).describe("Request model for listing competitions with optional filtering.");
14
+ const PointagramListCompetitions_CompetitionRankingSchema = z.object({
15
+ rank: z.number().int().describe("Player's rank in the competition.").nullable().optional(),
16
+ score: z.union([z.number().int(), z.number()]).nullable().optional(),
17
+ player_id: z.string().describe("Unique identifier of the player.").nullable().optional(),
18
+ player_name: z.string().describe("Name of the player.").nullable().optional()
19
+ }).describe("Model representing a player's ranking within a competition.");
20
+ const PointagramListCompetitions_CompetitionItemSchema = z.object({
21
+ id: z.union([z.number().int(), z.string()]).nullable().optional(),
22
+ name: z.string().describe("Name of the competition.").nullable().optional(),
23
+ status: z.string().describe("Current status of the competition.").nullable().optional(),
24
+ end_date: z.string().describe("End date of the competition.").nullable().optional(),
25
+ rankings: z.array(PointagramListCompetitions_CompetitionRankingSchema).describe("List of player rankings and scores in the competition.").nullable().optional(),
26
+ accesskey: z.string().describe("Access key associated with the competition.").nullable().optional(),
27
+ start_date: z.string().describe("Start date of the competition.").nullable().optional(),
28
+ description: z.string().describe("Description of the competition.").nullable().optional()
29
+ }).describe("Model representing a single competition in Pointagram.");
30
+ const pointagramListCompetitions = action("POINTAGRAM_LIST_COMPETITIONS", {
31
+ slug: "pointagram-list-competitions",
32
+ name: "List Competitions",
33
+ description: "Tool to fetch competitions in Pointagram with optional filtering. Use when you need to retrieve competition information including rankings and scores. Supports filtering by player (email, name, external ID), competition ID, or access key.",
34
+ input: PointagramListCompetitionsInput,
35
+ output: z.object({ competitions: z.array(PointagramListCompetitions_CompetitionItemSchema).describe("List of competitions matching the search criteria, including rankings and scores.").nullable().optional() }).describe("Response model for listing competitions. Returns an array of competition objects.")
36
+ });
37
+ //#endregion
38
+ export { pointagramListCompetitions };
39
+
40
+ //# sourceMappingURL=list-competitions.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-competitions.mjs","names":[],"sources":["../../src/actions/list-competitions.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PointagramListCompetitionsInput: z.ZodTypeAny = z.object({\n filter: z.string().describe(\"The search value to match against the criteria specified in search_by parameter. Used to filter competitions by player information.\").optional(),\n accesskey: z.string().describe(\"Filter results to show only competitions associated with a specific access key identifier.\").optional(),\n search_by: z.enum([\"Email\", \"Name\", \"External Id\"]).describe(\"Specifies the search criteria type to filter competitions by player. Accepts 'Email', 'Name', or 'External Id'. Used in combination with 'filter' parameter.\").optional(),\n competition_id: z.union([z.number().int(), z.string()]).optional(),\n}).describe(\"Request model for listing competitions with optional filtering.\");\nconst PointagramListCompetitions_CompetitionRankingSchema: z.ZodTypeAny = z.object({\n rank: z.number().int().describe(\"Player's rank in the competition.\").nullable().optional(),\n score: z.union([z.number().int(), z.number()]).nullable().optional(),\n player_id: z.string().describe(\"Unique identifier of the player.\").nullable().optional(),\n player_name: z.string().describe(\"Name of the player.\").nullable().optional(),\n}).describe(\"Model representing a player's ranking within a competition.\");\nconst PointagramListCompetitions_CompetitionItemSchema: z.ZodTypeAny = z.object({\n id: z.union([z.number().int(), z.string()]).nullable().optional(),\n name: z.string().describe(\"Name of the competition.\").nullable().optional(),\n status: z.string().describe(\"Current status of the competition.\").nullable().optional(),\n end_date: z.string().describe(\"End date of the competition.\").nullable().optional(),\n rankings: z.array(PointagramListCompetitions_CompetitionRankingSchema).describe(\"List of player rankings and scores in the competition.\").nullable().optional(),\n accesskey: z.string().describe(\"Access key associated with the competition.\").nullable().optional(),\n start_date: z.string().describe(\"Start date of the competition.\").nullable().optional(),\n description: z.string().describe(\"Description of the competition.\").nullable().optional(),\n}).describe(\"Model representing a single competition in Pointagram.\");\nexport const PointagramListCompetitionsOutput: z.ZodTypeAny = z.object({\n competitions: z.array(PointagramListCompetitions_CompetitionItemSchema).describe(\"List of competitions matching the search criteria, including rankings and scores.\").nullable().optional(),\n}).describe(\"Response model for listing competitions. Returns an array of competition objects.\");\n\nexport const pointagramListCompetitions = action(\"POINTAGRAM_LIST_COMPETITIONS\", {\n slug: \"pointagram-list-competitions\",\n name: \"List Competitions\",\n description: \"Tool to fetch competitions in Pointagram with optional filtering. Use when you need to retrieve competition information including rankings and scores. Supports filtering by player (email, name, external ID), competition ID, or access key.\",\n input: PointagramListCompetitionsInput,\n output: PointagramListCompetitionsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAgD,EAAE,OAAO;CACpE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,qIAAqI,CAAC,CAAC,SAAS;CAC5K,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,4FAA4F,CAAC,CAAC,SAAS;CACtI,WAAW,EAAE,KAAK;EAAC;EAAS;EAAQ;CAAa,CAAC,CAAC,CAAC,SAAS,8JAA8J,CAAC,CAAC,SAAS;CACtO,gBAAgB,EAAE,MAAM,CAAC,EAAE,OAAO,CAAC,CAAC,IAAI,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SA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AO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1F,CAAC,CAAC,CAAC,SAAS,wDAAwD;AAKpE,MAAa,6BAA6B,OAAO,gCAAgC;CAC/E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT4D,EAAE,OAAO,EACrE,cAAc,EAAE,MAAM,gDAAgD,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC5L,CAAC,CAAC,CAAC,SAAS,mFAOF;AACV,CAAC"}
@@ -0,0 +1,29 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/list-players.ts
4
+ const PointagramListPlayersInput = zod.z.object({
5
+ filter: zod.z.string().describe("The search value to match against the specified search_by field. Used in combination with 'search_by' parameter to filter results.").optional(),
6
+ search_by: zod.z.enum([
7
+ "Email",
8
+ "Name",
9
+ "External Id"
10
+ ]).describe("Specifies the search field to filter players. Accepts 'Email', 'Name', or 'External Id'. If provided, 'filter' parameter must also be provided.").optional()
11
+ }).describe("Request model for listing players with optional filtering.");
12
+ const PointagramListPlayers_PlayerItemSchema = zod.z.object({
13
+ id: zod.z.string().describe("The internal Pointagram player identifier."),
14
+ Name: zod.z.string().describe("The player's display name in the system."),
15
+ external_id: zod.z.string().describe("Optional custom identifier from your system.").nullable().optional(),
16
+ emailaddress: zod.z.string().describe("The player's email address.")
17
+ }).describe("Player information model.");
18
+ const PointagramListPlayersOutput = zod.z.object({ players: zod.z.array(PointagramListPlayers_PlayerItemSchema).describe("List of players matching the search criteria.") }).describe("Response model for listing players. Returns an array of player objects.");
19
+ const pointagramListPlayers = require_action.action("POINTAGRAM_LIST_PLAYERS", {
20
+ slug: "pointagram-list-players",
21
+ name: "List Players",
22
+ description: "Tool to fetch and list players in Pointagram with optional filtering. Use when you need to retrieve player information including name, email, external ID, and status. Supports filtering by email, name, or external ID.",
23
+ input: PointagramListPlayersInput,
24
+ output: PointagramListPlayersOutput
25
+ });
26
+ //#endregion
27
+ exports.pointagramListPlayers = pointagramListPlayers;
28
+
29
+ //# sourceMappingURL=list-players.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-players.cjs","names":["z","action"],"sources":["../../src/actions/list-players.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PointagramListPlayersInput: z.ZodTypeAny = z.object({\n filter: z.string().describe(\"The search value to match against the specified search_by field. Used in combination with 'search_by' parameter to filter results.\").optional(),\n search_by: z.enum([\"Email\", \"Name\", \"External Id\"]).describe(\"Specifies the search field to filter players. Accepts 'Email', 'Name', or 'External Id'. If provided, 'filter' parameter must also be provided.\").optional(),\n}).describe(\"Request model for listing players with optional filtering.\");\nconst PointagramListPlayers_PlayerItemSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The internal Pointagram player identifier.\"),\n Name: z.string().describe(\"The player's display name in the system.\"),\n external_id: z.string().describe(\"Optional custom identifier from your system.\").nullable().optional(),\n emailaddress: z.string().describe(\"The player's email address.\"),\n}).describe(\"Player information model.\");\nexport const PointagramListPlayersOutput: z.ZodTypeAny = z.object({\n players: z.array(PointagramListPlayers_PlayerItemSchema).describe(\"List of players matching the search criteria.\"),\n}).describe(\"Response model for listing players. Returns an array of player objects.\");\n\nexport const pointagramListPlayers = action(\"POINTAGRAM_LIST_PLAYERS\", {\n slug: \"pointagram-list-players\",\n name: \"List Players\",\n description: \"Tool to fetch and list players in Pointagram with optional filtering. Use when you need to retrieve player information including name, email, external ID, and status. Supports filtering by email, name, or external ID.\",\n input: PointagramListPlayersInput,\n output: PointagramListPlayersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2CA,IAAAA,EAAE,OAAO;CAC/D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oIAAoI,CAAC,CAAC,SAAS;CAC3K,WAAWA,IAAAA,EAAE,KAAK;EAAC;EAAS;EAAQ;CAAa,CAAC,CAAC,CAAC,SAAS,iJAAiJ,CAAC,CAAC,SAAS;AAC3N,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAM,yCAAuDA,IAAAA,EAAE,OAAO;CACpE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;CACpE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;CACpE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;AACjE,CAAC,CAAC,CAAC,SAAS,2BAA2B;AACvC,MAAa,8BAA4CA,IAAAA,EAAE,OAAO,EAChE,SAASA,IAAAA,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,+CAA+C,EACnH,CAAC,CAAC,CAAC,SAAS,yEAAyE;AAErF,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/list-players.d.ts
4
+ declare const PointagramListPlayersInput: z.ZodTypeAny;
5
+ declare const PointagramListPlayersOutput: z.ZodTypeAny;
6
+ declare const pointagramListPlayers: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { pointagramListPlayers };
9
+ //# sourceMappingURL=list-players.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-players.d.cts","names":[],"sources":["../../src/actions/list-players.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAG8B;AAAA,cAO5D,2BAAA,EAA6B,CAAA,CAAE,UAE0C;AAAA,cAEzE,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}