@keystrokehq/starton 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -0
- package/dist/action.cjs +21 -0
- package/dist/action.cjs.map +1 -0
- package/dist/action.mjs +21 -0
- package/dist/action.mjs.map +1 -0
- package/dist/actions/delete-smart-contract-event.cjs +19 -0
- package/dist/actions/delete-smart-contract-event.cjs.map +1 -0
- package/dist/actions/delete-smart-contract-event.d.cts +9 -0
- package/dist/actions/delete-smart-contract-event.d.cts.map +1 -0
- package/dist/actions/delete-smart-contract-event.d.mts +9 -0
- package/dist/actions/delete-smart-contract-event.d.mts.map +1 -0
- package/dist/actions/delete-smart-contract-event.mjs +16 -0
- package/dist/actions/delete-smart-contract-event.mjs.map +1 -0
- package/dist/actions/get-smart-contracts.cjs +29 -0
- package/dist/actions/get-smart-contracts.cjs.map +1 -0
- package/dist/actions/get-smart-contracts.d.cts +9 -0
- package/dist/actions/get-smart-contracts.d.cts.map +1 -0
- package/dist/actions/get-smart-contracts.d.mts +9 -0
- package/dist/actions/get-smart-contracts.d.mts.map +1 -0
- package/dist/actions/get-smart-contracts.mjs +28 -0
- package/dist/actions/get-smart-contracts.mjs.map +1 -0
- package/dist/actions/get-templates.cjs +46 -0
- package/dist/actions/get-templates.cjs.map +1 -0
- package/dist/actions/get-templates.d.cts +9 -0
- package/dist/actions/get-templates.d.cts.map +1 -0
- package/dist/actions/get-templates.d.mts +9 -0
- package/dist/actions/get-templates.d.mts.map +1 -0
- package/dist/actions/get-templates.mjs +45 -0
- package/dist/actions/get-templates.mjs.map +1 -0
- package/dist/actions/get-watcher.cjs +29 -0
- package/dist/actions/get-watcher.cjs.map +1 -0
- package/dist/actions/get-watcher.d.cts +9 -0
- package/dist/actions/get-watcher.d.cts.map +1 -0
- package/dist/actions/get-watcher.d.mts +9 -0
- package/dist/actions/get-watcher.d.mts.map +1 -0
- package/dist/actions/get-watcher.mjs +26 -0
- package/dist/actions/get-watcher.mjs.map +1 -0
- package/dist/actions/get-webhooks.cjs +39 -0
- package/dist/actions/get-webhooks.cjs.map +1 -0
- package/dist/actions/get-webhooks.d.cts +9 -0
- package/dist/actions/get-webhooks.d.cts.map +1 -0
- package/dist/actions/get-webhooks.d.mts +9 -0
- package/dist/actions/get-webhooks.d.mts.map +1 -0
- package/dist/actions/get-webhooks.mjs +38 -0
- package/dist/actions/get-webhooks.mjs.map +1 -0
- package/dist/actions/index.cjs +13 -0
- package/dist/actions/index.d.cts +7 -0
- package/dist/actions/index.d.mts +7 -0
- package/dist/actions/index.mjs +7 -0
- package/dist/actions/upload-file.cjs +23 -0
- package/dist/actions/upload-file.cjs.map +1 -0
- package/dist/actions/upload-file.d.cts +9 -0
- package/dist/actions/upload-file.d.cts.map +1 -0
- package/dist/actions/upload-file.d.mts +9 -0
- package/dist/actions/upload-file.d.mts.map +1 -0
- package/dist/actions/upload-file.mjs +20 -0
- package/dist/actions/upload-file.mjs.map +1 -0
- package/dist/app.cjs +9 -0
- package/dist/app.cjs.map +1 -0
- package/dist/app.d.cts +5 -0
- package/dist/app.d.cts.map +1 -0
- package/dist/app.d.mts +5 -0
- package/dist/app.d.mts.map +1 -0
- package/dist/app.mjs +10 -0
- package/dist/app.mjs.map +1 -0
- package/dist/catalog.cjs +15 -0
- package/dist/catalog.cjs.map +1 -0
- package/dist/catalog.d.cts +14 -0
- package/dist/catalog.d.cts.map +1 -0
- package/dist/catalog.d.mts +14 -0
- package/dist/catalog.d.mts.map +1 -0
- package/dist/catalog.mjs +15 -0
- package/dist/catalog.mjs.map +1 -0
- package/dist/execute.cjs +18 -0
- package/dist/execute.cjs.map +1 -0
- package/dist/execute.mjs +18 -0
- package/dist/execute.mjs.map +1 -0
- package/dist/index.cjs +18 -0
- package/dist/index.d.cts +9 -0
- package/dist/index.d.mts +9 -0
- package/dist/index.mjs +10 -0
- package/package.json +49 -0
package/README.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# @keystrokehq/starton
|
|
2
|
+
|
|
3
|
+
Keystroke-managed integration.
|
|
4
|
+
|
|
5
|
+
**App:** `starton`
|
|
6
|
+
**Version:** `20260615_00`
|
|
7
|
+
**Actions:** 6
|
|
8
|
+
|
|
9
|
+
```ts
|
|
10
|
+
import { defineAgent } from "@keystrokehq/keystroke/agent";
|
|
11
|
+
import { startonDeleteSmartContractEvent } from "@keystrokehq/starton/actions";
|
|
12
|
+
|
|
13
|
+
export default defineAgent({
|
|
14
|
+
key: "starton-agent",
|
|
15
|
+
tools: [startonDeleteSmartContractEvent],
|
|
16
|
+
});
|
|
17
|
+
```
|
package/dist/action.cjs
ADDED
|
@@ -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.starton.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.executeStartonTool(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":["starton","executeStartonTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { starton } from \"./app\";\nimport { executeStartonTool } 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 starton.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 executeStartonTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,QAAQ,OAAO;EACpB,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,mBAAmB,MAAM,KAAgC,CAAC;EAC1F;CACF,CAAC;AACH"}
|
package/dist/action.mjs
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { starton } from "./app.mjs";
|
|
2
|
+
import { executeStartonTool } 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 starton.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 executeStartonTool(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 { starton } from \"./app\";\nimport { executeStartonTool } 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 starton.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 executeStartonTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,QAAQ,OAAO;EACpB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,mBAAmB,MAAM,KAAgC,CAAC;EAC1F;CACF,CAAC;AACH"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/delete-smart-contract-event.ts
|
|
4
|
+
const StartonDeleteSmartContractEventInput = zod.z.object({ id: zod.z.string().describe("Unique identifier of the smart contract event watcher to delete") }).describe("Request model for deleting a smart contract event watcher by ID.");
|
|
5
|
+
const StartonDeleteSmartContractEventOutput = zod.z.object({
|
|
6
|
+
message: zod.z.string().describe("Additional information from the deletion operation").nullable().optional(),
|
|
7
|
+
success: zod.z.boolean().describe("Indicates whether the deletion was successful").nullable().optional()
|
|
8
|
+
}).describe("Response model for smart contract event deletion.");
|
|
9
|
+
const startonDeleteSmartContractEvent = require_action.action("STARTON_DELETE_SMART_CONTRACT_EVENT", {
|
|
10
|
+
slug: "starton-delete-smart-contract-event",
|
|
11
|
+
name: "Delete Smart Contract Event",
|
|
12
|
+
description: "Tool to delete a specific smart contract event watcher by its ID. Use after confirming the watcher ID you want to remove.",
|
|
13
|
+
input: StartonDeleteSmartContractEventInput,
|
|
14
|
+
output: StartonDeleteSmartContractEventOutput
|
|
15
|
+
});
|
|
16
|
+
//#endregion
|
|
17
|
+
exports.startonDeleteSmartContractEvent = startonDeleteSmartContractEvent;
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=delete-smart-contract-event.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-smart-contract-event.cjs","names":["z","action"],"sources":["../../src/actions/delete-smart-contract-event.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const StartonDeleteSmartContractEventInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the smart contract event watcher to delete\"),\n}).describe(\"Request model for deleting a smart contract event watcher by ID.\");\nexport const StartonDeleteSmartContractEventOutput: z.ZodTypeAny = z.object({\n message: z.string().describe(\"Additional information from the deletion operation\").nullable().optional(),\n success: z.boolean().describe(\"Indicates whether the deletion was successful\").nullable().optional(),\n}).describe(\"Response model for smart contract event deletion.\");\n\nexport const startonDeleteSmartContractEvent = action(\"STARTON_DELETE_SMART_CONTRACT_EVENT\", {\n slug: \"starton-delete-smart-contract-event\",\n name: \"Delete Smart Contract Event\",\n description: \"Tool to delete a specific smart contract event watcher by its ID. Use after confirming the watcher ID you want to remove.\",\n input: StartonDeleteSmartContractEventInput,\n output: StartonDeleteSmartContractEventOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uCAAqDA,IAAAA,EAAE,OAAO,EACzE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,EAC3F,CAAC,CAAC,CAAC,SAAS,kEAAkE;AAC9E,MAAa,wCAAsDA,IAAAA,EAAE,OAAO;CAC1E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrG,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAE/D,MAAa,kCAAkCC,eAAAA,OAAO,uCAAuC;CAC3F,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/delete-smart-contract-event.d.ts
|
|
4
|
+
declare const StartonDeleteSmartContractEventInput: z.ZodTypeAny;
|
|
5
|
+
declare const StartonDeleteSmartContractEventOutput: z.ZodTypeAny;
|
|
6
|
+
declare const startonDeleteSmartContractEvent: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { startonDeleteSmartContractEvent };
|
|
9
|
+
//# sourceMappingURL=delete-smart-contract-event.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-smart-contract-event.d.cts","names":[],"sources":["../../src/actions/delete-smart-contract-event.ts"],"mappings":";;;cAIa,oCAAA,EAAsC,CAAA,CAAE,UAE0B;AAAA,cAClE,qCAAA,EAAuC,CAAA,CAAE,UAGU;AAAA,cAEnD,+BAAA,gCAA+B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/delete-smart-contract-event.d.ts
|
|
4
|
+
declare const StartonDeleteSmartContractEventInput: z.ZodTypeAny;
|
|
5
|
+
declare const StartonDeleteSmartContractEventOutput: z.ZodTypeAny;
|
|
6
|
+
declare const startonDeleteSmartContractEvent: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { startonDeleteSmartContractEvent };
|
|
9
|
+
//# sourceMappingURL=delete-smart-contract-event.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-smart-contract-event.d.mts","names":[],"sources":["../../src/actions/delete-smart-contract-event.ts"],"mappings":";;;cAIa,oCAAA,EAAsC,CAAA,CAAE,UAE0B;AAAA,cAClE,qCAAA,EAAuC,CAAA,CAAE,UAGU;AAAA,cAEnD,+BAAA,gCAA+B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const startonDeleteSmartContractEvent = action("STARTON_DELETE_SMART_CONTRACT_EVENT", {
|
|
4
|
+
slug: "starton-delete-smart-contract-event",
|
|
5
|
+
name: "Delete Smart Contract Event",
|
|
6
|
+
description: "Tool to delete a specific smart contract event watcher by its ID. Use after confirming the watcher ID you want to remove.",
|
|
7
|
+
input: z.object({ id: z.string().describe("Unique identifier of the smart contract event watcher to delete") }).describe("Request model for deleting a smart contract event watcher by ID."),
|
|
8
|
+
output: z.object({
|
|
9
|
+
message: z.string().describe("Additional information from the deletion operation").nullable().optional(),
|
|
10
|
+
success: z.boolean().describe("Indicates whether the deletion was successful").nullable().optional()
|
|
11
|
+
}).describe("Response model for smart contract event deletion.")
|
|
12
|
+
});
|
|
13
|
+
//#endregion
|
|
14
|
+
export { startonDeleteSmartContractEvent };
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=delete-smart-contract-event.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-smart-contract-event.mjs","names":[],"sources":["../../src/actions/delete-smart-contract-event.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const StartonDeleteSmartContractEventInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the smart contract event watcher to delete\"),\n}).describe(\"Request model for deleting a smart contract event watcher by ID.\");\nexport const StartonDeleteSmartContractEventOutput: z.ZodTypeAny = z.object({\n message: z.string().describe(\"Additional information from the deletion operation\").nullable().optional(),\n success: z.boolean().describe(\"Indicates whether the deletion was successful\").nullable().optional(),\n}).describe(\"Response model for smart contract event deletion.\");\n\nexport const startonDeleteSmartContractEvent = action(\"STARTON_DELETE_SMART_CONTRACT_EVENT\", {\n slug: \"starton-delete-smart-contract-event\",\n name: \"Delete Smart Contract Event\",\n description: \"Tool to delete a specific smart contract event watcher by its ID. Use after confirming the watcher ID you want to remove.\",\n input: StartonDeleteSmartContractEventInput,\n output: StartonDeleteSmartContractEventOutput,\n});\n"],"mappings":";;AAYA,MAAa,kCAAkC,OAAO,uCAAuC;CAC3F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZgE,EAAE,OAAO,EACzE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,EAC3F,CAAC,CAAC,CAAC,SAAS,kEAUH;CACP,QAViE,EAAE,OAAO;EAC1E,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvG,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,CAAC,CAAC,CAAC,SAAS,mDAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/get-smart-contracts.ts
|
|
4
|
+
const StartonGetSmartContractsInput = zod.z.object({ projectId: zod.z.string().describe("Filter smart contracts by project ID").optional() }).describe("Request model for retrieving a list of smart contracts.");
|
|
5
|
+
const StartonGetSmartContracts_SmartContractItemSchema = zod.z.object({
|
|
6
|
+
id: zod.z.string().describe("Unique identifier of the smart contract"),
|
|
7
|
+
abi: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("ABI of the smart contract").nullable().optional(),
|
|
8
|
+
name: zod.z.string().describe("Name of the smart contract"),
|
|
9
|
+
address: zod.z.string().describe("Blockchain address of the smart contract"),
|
|
10
|
+
network: zod.z.string().describe("Blockchain network of the smart contract"),
|
|
11
|
+
bytecode: zod.z.string().describe("Bytecode of the deployed smart contract").nullable().optional(),
|
|
12
|
+
createdAt: zod.z.string().describe("Timestamp when the smart contract was created"),
|
|
13
|
+
projectId: zod.z.string().describe("Project ID associated with the smart contract"),
|
|
14
|
+
updatedAt: zod.z.string().describe("Timestamp when the smart contract was last updated"),
|
|
15
|
+
description: zod.z.string().describe("Description of the smart contract").nullable().optional(),
|
|
16
|
+
creationHash: zod.z.string().describe("Transaction hash of smart contract creation")
|
|
17
|
+
}).describe("Schema for a single smart contract.");
|
|
18
|
+
const StartonGetSmartContractsOutput = zod.z.object({ items: zod.z.array(StartonGetSmartContracts_SmartContractItemSchema).describe("List of smart contracts") }).describe("Response model for listing smart contracts.");
|
|
19
|
+
const startonGetSmartContracts = require_action.action("STARTON_GET_SMART_CONTRACTS", {
|
|
20
|
+
slug: "starton-get-smart-contracts",
|
|
21
|
+
name: "Get Smart Contracts",
|
|
22
|
+
description: "Tool to retrieve a list of all smart contracts associated with your project. Use after authenticating and optionally filtering by project ID.",
|
|
23
|
+
input: StartonGetSmartContractsInput,
|
|
24
|
+
output: StartonGetSmartContractsOutput
|
|
25
|
+
});
|
|
26
|
+
//#endregion
|
|
27
|
+
exports.startonGetSmartContracts = startonGetSmartContracts;
|
|
28
|
+
|
|
29
|
+
//# sourceMappingURL=get-smart-contracts.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-smart-contracts.cjs","names":["z","action"],"sources":["../../src/actions/get-smart-contracts.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const StartonGetSmartContractsInput: z.ZodTypeAny = z.object({\n projectId: z.string().describe(\"Filter smart contracts by project ID\").optional(),\n}).describe(\"Request model for retrieving a list of smart contracts.\");\nconst StartonGetSmartContracts_SmartContractItemSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the smart contract\"),\n abi: z.array(z.record(z.string(), z.unknown())).describe(\"ABI of the smart contract\").nullable().optional(),\n name: z.string().describe(\"Name of the smart contract\"),\n address: z.string().describe(\"Blockchain address of the smart contract\"),\n network: z.string().describe(\"Blockchain network of the smart contract\"),\n bytecode: z.string().describe(\"Bytecode of the deployed smart contract\").nullable().optional(),\n createdAt: z.string().describe(\"Timestamp when the smart contract was created\"),\n projectId: z.string().describe(\"Project ID associated with the smart contract\"),\n updatedAt: z.string().describe(\"Timestamp when the smart contract was last updated\"),\n description: z.string().describe(\"Description of the smart contract\").nullable().optional(),\n creationHash: z.string().describe(\"Transaction hash of smart contract creation\"),\n}).describe(\"Schema for a single smart contract.\");\nexport const StartonGetSmartContractsOutput: z.ZodTypeAny = z.object({\n items: z.array(StartonGetSmartContracts_SmartContractItemSchema).describe(\"List of smart contracts\"),\n}).describe(\"Response model for listing smart contracts.\");\n\nexport const startonGetSmartContracts = action(\"STARTON_GET_SMART_CONTRACTS\", {\n slug: \"starton-get-smart-contracts\",\n name: \"Get Smart Contracts\",\n description: \"Tool to retrieve a list of all smart contracts associated with your project. Use after authenticating and optionally filtering by project ID.\",\n input: StartonGetSmartContractsInput,\n output: StartonGetSmartContractsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAA8CA,IAAAA,EAAE,OAAO,EAClE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,EAClF,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACrE,MAAM,mDAAiEA,IAAAA,EAAE,OAAO;CAC9E,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;CACjE,KAAKA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;CACtD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;CACvE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;CACvE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CAC9E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CAC9E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;CACnF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;AACjF,CAAC,CAAC,CAAC,SAAS,qCAAqC;AACjD,MAAa,iCAA+CA,IAAAA,EAAE,OAAO,EACnE,OAAOA,IAAAA,EAAE,MAAM,gDAAgD,CAAC,CAAC,SAAS,yBAAyB,EACrG,CAAC,CAAC,CAAC,SAAS,6CAA6C;AAEzD,MAAa,2BAA2BC,eAAAA,OAAO,+BAA+B;CAC5E,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/get-smart-contracts.d.ts
|
|
4
|
+
declare const StartonGetSmartContractsInput: z.ZodTypeAny;
|
|
5
|
+
declare const StartonGetSmartContractsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const startonGetSmartContracts: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { startonGetSmartContracts };
|
|
9
|
+
//# sourceMappingURL=get-smart-contracts.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-smart-contracts.d.cts","names":[],"sources":["../../src/actions/get-smart-contracts.ts"],"mappings":";;;cAIa,6BAAA,EAA+B,CAAA,CAAE,UAEwB;AAAA,cAczD,8BAAA,EAAgC,CAAA,CAAE,UAEW;AAAA,cAE7C,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-smart-contracts.d.ts
|
|
4
|
+
declare const StartonGetSmartContractsInput: z.ZodTypeAny;
|
|
5
|
+
declare const StartonGetSmartContractsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const startonGetSmartContracts: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { startonGetSmartContracts };
|
|
9
|
+
//# sourceMappingURL=get-smart-contracts.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-smart-contracts.d.mts","names":[],"sources":["../../src/actions/get-smart-contracts.ts"],"mappings":";;;cAIa,6BAAA,EAA+B,CAAA,CAAE,UAEwB;AAAA,cAczD,8BAAA,EAAgC,CAAA,CAAE,UAEW;AAAA,cAE7C,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/get-smart-contracts.ts
|
|
4
|
+
const StartonGetSmartContractsInput = z.object({ projectId: z.string().describe("Filter smart contracts by project ID").optional() }).describe("Request model for retrieving a list of smart contracts.");
|
|
5
|
+
const StartonGetSmartContracts_SmartContractItemSchema = z.object({
|
|
6
|
+
id: z.string().describe("Unique identifier of the smart contract"),
|
|
7
|
+
abi: z.array(z.record(z.string(), z.unknown())).describe("ABI of the smart contract").nullable().optional(),
|
|
8
|
+
name: z.string().describe("Name of the smart contract"),
|
|
9
|
+
address: z.string().describe("Blockchain address of the smart contract"),
|
|
10
|
+
network: z.string().describe("Blockchain network of the smart contract"),
|
|
11
|
+
bytecode: z.string().describe("Bytecode of the deployed smart contract").nullable().optional(),
|
|
12
|
+
createdAt: z.string().describe("Timestamp when the smart contract was created"),
|
|
13
|
+
projectId: z.string().describe("Project ID associated with the smart contract"),
|
|
14
|
+
updatedAt: z.string().describe("Timestamp when the smart contract was last updated"),
|
|
15
|
+
description: z.string().describe("Description of the smart contract").nullable().optional(),
|
|
16
|
+
creationHash: z.string().describe("Transaction hash of smart contract creation")
|
|
17
|
+
}).describe("Schema for a single smart contract.");
|
|
18
|
+
const startonGetSmartContracts = action("STARTON_GET_SMART_CONTRACTS", {
|
|
19
|
+
slug: "starton-get-smart-contracts",
|
|
20
|
+
name: "Get Smart Contracts",
|
|
21
|
+
description: "Tool to retrieve a list of all smart contracts associated with your project. Use after authenticating and optionally filtering by project ID.",
|
|
22
|
+
input: StartonGetSmartContractsInput,
|
|
23
|
+
output: z.object({ items: z.array(StartonGetSmartContracts_SmartContractItemSchema).describe("List of smart contracts") }).describe("Response model for listing smart contracts.")
|
|
24
|
+
});
|
|
25
|
+
//#endregion
|
|
26
|
+
export { startonGetSmartContracts };
|
|
27
|
+
|
|
28
|
+
//# sourceMappingURL=get-smart-contracts.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-smart-contracts.mjs","names":[],"sources":["../../src/actions/get-smart-contracts.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const StartonGetSmartContractsInput: z.ZodTypeAny = z.object({\n projectId: z.string().describe(\"Filter smart contracts by project ID\").optional(),\n}).describe(\"Request model for retrieving a list of smart contracts.\");\nconst StartonGetSmartContracts_SmartContractItemSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the smart contract\"),\n abi: z.array(z.record(z.string(), z.unknown())).describe(\"ABI of the smart contract\").nullable().optional(),\n name: z.string().describe(\"Name of the smart contract\"),\n address: z.string().describe(\"Blockchain address of the smart contract\"),\n network: z.string().describe(\"Blockchain network of the smart contract\"),\n bytecode: z.string().describe(\"Bytecode of the deployed smart contract\").nullable().optional(),\n createdAt: z.string().describe(\"Timestamp when the smart contract was created\"),\n projectId: z.string().describe(\"Project ID associated with the smart contract\"),\n updatedAt: z.string().describe(\"Timestamp when the smart contract was last updated\"),\n description: z.string().describe(\"Description of the smart contract\").nullable().optional(),\n creationHash: z.string().describe(\"Transaction hash of smart contract creation\"),\n}).describe(\"Schema for a single smart contract.\");\nexport const StartonGetSmartContractsOutput: z.ZodTypeAny = z.object({\n items: z.array(StartonGetSmartContracts_SmartContractItemSchema).describe(\"List of smart contracts\"),\n}).describe(\"Response model for listing smart contracts.\");\n\nexport const startonGetSmartContracts = action(\"STARTON_GET_SMART_CONTRACTS\", {\n slug: \"starton-get-smart-contracts\",\n name: \"Get Smart Contracts\",\n description: \"Tool to retrieve a list of all smart contracts associated with your project. Use after authenticating and optionally filtering by project ID.\",\n input: StartonGetSmartContractsInput,\n output: StartonGetSmartContractsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAA8C,EAAE,OAAO,EAClE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,EAClF,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACrE,MAAM,mDAAiE,EAAE,OAAO;CAC9E,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;CACjE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;CACtD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;CACvE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;CACvE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CAC9E,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CAC9E,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;CACnF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;AACjF,CAAC,CAAC,CAAC,SAAS,qCAAqC;AAKjD,MAAa,2BAA2B,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT0D,EAAE,OAAO,EACnE,OAAO,EAAE,MAAM,gDAAgD,CAAC,CAAC,SAAS,yBAAyB,EACrG,CAAC,CAAC,CAAC,SAAS,6CAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/get-templates.ts
|
|
4
|
+
const StartonGetTemplatesInput = zod.z.object({
|
|
5
|
+
page: zod.z.number().int().describe("Page number to retrieve (default: 1).").optional(),
|
|
6
|
+
limit: zod.z.number().int().describe("Number of results per page (default: 100).").optional()
|
|
7
|
+
}).describe("Request model for retrieving a list of smart contract templates.");
|
|
8
|
+
const StartonGetTemplates_PaginationMetaSchema = zod.z.object({
|
|
9
|
+
itemCount: zod.z.number().int().describe("Number of items in the current page"),
|
|
10
|
+
totalItems: zod.z.number().int().describe("Total number of items available"),
|
|
11
|
+
totalPages: zod.z.number().int().describe("Total number of pages available"),
|
|
12
|
+
currentPage: zod.z.number().int().describe("Current page number"),
|
|
13
|
+
itemsPerPage: zod.z.number().int().describe("Number of items per page")
|
|
14
|
+
}).describe("Pagination metadata for list endpoints.");
|
|
15
|
+
const StartonGetTemplates_TemplateItemSchema = zod.z.object({
|
|
16
|
+
id: zod.z.string().describe("Template identifier"),
|
|
17
|
+
abi: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("Application Binary Interface of the template"),
|
|
18
|
+
name: zod.z.string().describe("Template name"),
|
|
19
|
+
tags: zod.z.array(zod.z.string()).describe("Tags associated with the template"),
|
|
20
|
+
order: zod.z.number().int().describe("Order of the template in listing").nullable().optional(),
|
|
21
|
+
category: zod.z.string().describe("Category of the template").nullable().optional(),
|
|
22
|
+
createdAt: zod.z.string().describe("Creation timestamp"),
|
|
23
|
+
githubUrl: zod.z.string().describe("GitHub URL of the template source code").nullable().optional(),
|
|
24
|
+
isAudited: zod.z.boolean().describe("Indicates if the template is audited"),
|
|
25
|
+
updatedAt: zod.z.string().describe("Last update timestamp"),
|
|
26
|
+
blockchains: zod.z.array(zod.z.string()).describe("Supported blockchains"),
|
|
27
|
+
description: zod.z.string().describe("Template description").nullable().optional(),
|
|
28
|
+
isActivated: zod.z.boolean().describe("Indicates if the template is active"),
|
|
29
|
+
humanReadableAbi: zod.z.array(zod.z.string()).describe("Human-readable ABI of the template").nullable().optional(),
|
|
30
|
+
shortDescription: zod.z.string().describe("Short description of the template").nullable().optional()
|
|
31
|
+
}).describe("Schema for a single smart contract template.");
|
|
32
|
+
const StartonGetTemplatesOutput = zod.z.object({
|
|
33
|
+
meta: StartonGetTemplates_PaginationMetaSchema.nullable(),
|
|
34
|
+
items: zod.z.array(StartonGetTemplates_TemplateItemSchema).describe("List of smart contract templates")
|
|
35
|
+
}).describe("Response model for retrieving smart contract templates.");
|
|
36
|
+
const startonGetTemplates = require_action.action("STARTON_GET_TEMPLATES", {
|
|
37
|
+
slug: "starton-get-templates",
|
|
38
|
+
name: "Get Templates",
|
|
39
|
+
description: "Tool to retrieve a list of all smart contract templates. Use when browsing the Starton template library to select a template before deployment.",
|
|
40
|
+
input: StartonGetTemplatesInput,
|
|
41
|
+
output: StartonGetTemplatesOutput
|
|
42
|
+
});
|
|
43
|
+
//#endregion
|
|
44
|
+
exports.startonGetTemplates = startonGetTemplates;
|
|
45
|
+
|
|
46
|
+
//# sourceMappingURL=get-templates.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-templates.cjs","names":["z","action"],"sources":["../../src/actions/get-templates.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const StartonGetTemplatesInput: z.ZodTypeAny = z.object({\n page: z.number().int().describe(\"Page number to retrieve (default: 1).\").optional(),\n limit: z.number().int().describe(\"Number of results per page (default: 100).\").optional(),\n}).describe(\"Request model for retrieving a list of smart contract templates.\");\nconst StartonGetTemplates_PaginationMetaSchema: z.ZodTypeAny = z.object({\n itemCount: z.number().int().describe(\"Number of items in the current page\"),\n totalItems: z.number().int().describe(\"Total number of items available\"),\n totalPages: z.number().int().describe(\"Total number of pages available\"),\n currentPage: z.number().int().describe(\"Current page number\"),\n itemsPerPage: z.number().int().describe(\"Number of items per page\"),\n}).describe(\"Pagination metadata for list endpoints.\");\nconst StartonGetTemplates_TemplateItemSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Template identifier\"),\n abi: z.array(z.record(z.string(), z.unknown())).describe(\"Application Binary Interface of the template\"),\n name: z.string().describe(\"Template name\"),\n tags: z.array(z.string()).describe(\"Tags associated with the template\"),\n order: z.number().int().describe(\"Order of the template in listing\").nullable().optional(),\n category: z.string().describe(\"Category of the template\").nullable().optional(),\n createdAt: z.string().describe(\"Creation timestamp\"),\n githubUrl: z.string().describe(\"GitHub URL of the template source code\").nullable().optional(),\n isAudited: z.boolean().describe(\"Indicates if the template is audited\"),\n updatedAt: z.string().describe(\"Last update timestamp\"),\n blockchains: z.array(z.string()).describe(\"Supported blockchains\"),\n description: z.string().describe(\"Template description\").nullable().optional(),\n isActivated: z.boolean().describe(\"Indicates if the template is active\"),\n humanReadableAbi: z.array(z.string()).describe(\"Human-readable ABI of the template\").nullable().optional(),\n shortDescription: z.string().describe(\"Short description of the template\").nullable().optional(),\n}).describe(\"Schema for a single smart contract template.\");\nexport const StartonGetTemplatesOutput: z.ZodTypeAny = z.object({\n meta: StartonGetTemplates_PaginationMetaSchema.nullable(),\n items: z.array(StartonGetTemplates_TemplateItemSchema).describe(\"List of smart contract templates\"),\n}).describe(\"Response model for retrieving smart contract templates.\");\n\nexport const startonGetTemplates = action(\"STARTON_GET_TEMPLATES\", {\n slug: \"starton-get-templates\",\n name: \"Get Templates\",\n description: \"Tool to retrieve a list of all smart contract templates. Use when browsing the Starton template library to select a template before deployment.\",\n input: StartonGetTemplatesInput,\n output: StartonGetTemplatesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAAyCA,IAAAA,EAAE,OAAO;CAC7D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAClF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;AAC1F,CAAC,CAAC,CAAC,SAAS,kEAAkE;AAC9E,MAAM,2CAAyDA,IAAAA,EAAE,OAAO;CACtE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC;CAC1E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC;CACvE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC;CACvE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qBAAqB;CAC5D,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B;AACpE,CAAC,CAAC,CAAC,SAAS,yCAAyC;AACrD,MAAM,yCAAuDA,IAAAA,EAAE,OAAO;CACpE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;CAC7C,KAAKA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,8CAA8C;CACvG,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe;CACzC,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,mCAAmC;CACtE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB;CACnD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,sCAAsC;CACtE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;CACtD,aAAaA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,uBAAuB;CACjE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,aAAaA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,qCAAqC;CACvE,kBAAkBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjG,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAa,4BAA0CA,IAAAA,EAAE,OAAO;CAC9D,MAAM,yCAAyC,SAAS;CACxD,OAAOA,IAAAA,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,kCAAkC;AACpG,CAAC,CAAC,CAAC,SAAS,yDAAyD;AAErE,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,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/get-templates.d.ts
|
|
4
|
+
declare const StartonGetTemplatesInput: z.ZodTypeAny;
|
|
5
|
+
declare const StartonGetTemplatesOutput: z.ZodTypeAny;
|
|
6
|
+
declare const startonGetTemplates: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { startonGetTemplates };
|
|
9
|
+
//# sourceMappingURL=get-templates.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-templates.d.cts","names":[],"sources":["../../src/actions/get-templates.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAGsC;AAAA,cAyBlE,yBAAA,EAA2B,CAAA,CAAE,UAG4B;AAAA,cAEzD,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-templates.d.ts
|
|
4
|
+
declare const StartonGetTemplatesInput: z.ZodTypeAny;
|
|
5
|
+
declare const StartonGetTemplatesOutput: z.ZodTypeAny;
|
|
6
|
+
declare const startonGetTemplates: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { startonGetTemplates };
|
|
9
|
+
//# sourceMappingURL=get-templates.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-templates.d.mts","names":[],"sources":["../../src/actions/get-templates.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAGsC;AAAA,cAyBlE,yBAAA,EAA2B,CAAA,CAAE,UAG4B;AAAA,cAEzD,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/get-templates.ts
|
|
4
|
+
const StartonGetTemplatesInput = z.object({
|
|
5
|
+
page: z.number().int().describe("Page number to retrieve (default: 1).").optional(),
|
|
6
|
+
limit: z.number().int().describe("Number of results per page (default: 100).").optional()
|
|
7
|
+
}).describe("Request model for retrieving a list of smart contract templates.");
|
|
8
|
+
const StartonGetTemplates_PaginationMetaSchema = z.object({
|
|
9
|
+
itemCount: z.number().int().describe("Number of items in the current page"),
|
|
10
|
+
totalItems: z.number().int().describe("Total number of items available"),
|
|
11
|
+
totalPages: z.number().int().describe("Total number of pages available"),
|
|
12
|
+
currentPage: z.number().int().describe("Current page number"),
|
|
13
|
+
itemsPerPage: z.number().int().describe("Number of items per page")
|
|
14
|
+
}).describe("Pagination metadata for list endpoints.");
|
|
15
|
+
const StartonGetTemplates_TemplateItemSchema = z.object({
|
|
16
|
+
id: z.string().describe("Template identifier"),
|
|
17
|
+
abi: z.array(z.record(z.string(), z.unknown())).describe("Application Binary Interface of the template"),
|
|
18
|
+
name: z.string().describe("Template name"),
|
|
19
|
+
tags: z.array(z.string()).describe("Tags associated with the template"),
|
|
20
|
+
order: z.number().int().describe("Order of the template in listing").nullable().optional(),
|
|
21
|
+
category: z.string().describe("Category of the template").nullable().optional(),
|
|
22
|
+
createdAt: z.string().describe("Creation timestamp"),
|
|
23
|
+
githubUrl: z.string().describe("GitHub URL of the template source code").nullable().optional(),
|
|
24
|
+
isAudited: z.boolean().describe("Indicates if the template is audited"),
|
|
25
|
+
updatedAt: z.string().describe("Last update timestamp"),
|
|
26
|
+
blockchains: z.array(z.string()).describe("Supported blockchains"),
|
|
27
|
+
description: z.string().describe("Template description").nullable().optional(),
|
|
28
|
+
isActivated: z.boolean().describe("Indicates if the template is active"),
|
|
29
|
+
humanReadableAbi: z.array(z.string()).describe("Human-readable ABI of the template").nullable().optional(),
|
|
30
|
+
shortDescription: z.string().describe("Short description of the template").nullable().optional()
|
|
31
|
+
}).describe("Schema for a single smart contract template.");
|
|
32
|
+
const startonGetTemplates = action("STARTON_GET_TEMPLATES", {
|
|
33
|
+
slug: "starton-get-templates",
|
|
34
|
+
name: "Get Templates",
|
|
35
|
+
description: "Tool to retrieve a list of all smart contract templates. Use when browsing the Starton template library to select a template before deployment.",
|
|
36
|
+
input: StartonGetTemplatesInput,
|
|
37
|
+
output: z.object({
|
|
38
|
+
meta: StartonGetTemplates_PaginationMetaSchema.nullable(),
|
|
39
|
+
items: z.array(StartonGetTemplates_TemplateItemSchema).describe("List of smart contract templates")
|
|
40
|
+
}).describe("Response model for retrieving smart contract templates.")
|
|
41
|
+
});
|
|
42
|
+
//#endregion
|
|
43
|
+
export { startonGetTemplates };
|
|
44
|
+
|
|
45
|
+
//# sourceMappingURL=get-templates.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-templates.mjs","names":[],"sources":["../../src/actions/get-templates.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const StartonGetTemplatesInput: z.ZodTypeAny = z.object({\n page: z.number().int().describe(\"Page number to retrieve (default: 1).\").optional(),\n limit: z.number().int().describe(\"Number of results per page (default: 100).\").optional(),\n}).describe(\"Request model for retrieving a list of smart contract templates.\");\nconst StartonGetTemplates_PaginationMetaSchema: z.ZodTypeAny = z.object({\n itemCount: z.number().int().describe(\"Number of items in the current page\"),\n totalItems: z.number().int().describe(\"Total number of items available\"),\n totalPages: z.number().int().describe(\"Total number of pages available\"),\n currentPage: z.number().int().describe(\"Current page number\"),\n itemsPerPage: z.number().int().describe(\"Number of items per page\"),\n}).describe(\"Pagination metadata for list endpoints.\");\nconst StartonGetTemplates_TemplateItemSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Template identifier\"),\n abi: z.array(z.record(z.string(), z.unknown())).describe(\"Application Binary Interface of the template\"),\n name: z.string().describe(\"Template name\"),\n tags: z.array(z.string()).describe(\"Tags associated with the template\"),\n order: z.number().int().describe(\"Order of the template in listing\").nullable().optional(),\n category: z.string().describe(\"Category of the template\").nullable().optional(),\n createdAt: z.string().describe(\"Creation timestamp\"),\n githubUrl: z.string().describe(\"GitHub URL of the template source code\").nullable().optional(),\n isAudited: z.boolean().describe(\"Indicates if the template is audited\"),\n updatedAt: z.string().describe(\"Last update timestamp\"),\n blockchains: z.array(z.string()).describe(\"Supported blockchains\"),\n description: z.string().describe(\"Template description\").nullable().optional(),\n isActivated: z.boolean().describe(\"Indicates if the template is active\"),\n humanReadableAbi: z.array(z.string()).describe(\"Human-readable ABI of the template\").nullable().optional(),\n shortDescription: z.string().describe(\"Short description of the template\").nullable().optional(),\n}).describe(\"Schema for a single smart contract template.\");\nexport const StartonGetTemplatesOutput: z.ZodTypeAny = z.object({\n meta: StartonGetTemplates_PaginationMetaSchema.nullable(),\n items: z.array(StartonGetTemplates_TemplateItemSchema).describe(\"List of smart contract templates\"),\n}).describe(\"Response model for retrieving smart contract templates.\");\n\nexport const startonGetTemplates = action(\"STARTON_GET_TEMPLATES\", {\n slug: \"starton-get-templates\",\n name: \"Get Templates\",\n description: \"Tool to retrieve a list of all smart contract templates. Use when browsing the Starton template library to select a template before deployment.\",\n input: StartonGetTemplatesInput,\n output: StartonGetTemplatesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAAyC,EAAE,OAAO;CAC7D,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAClF,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;AAC1F,CAAC,CAAC,CAAC,SAAS,kEAAkE;AAC9E,MAAM,2CAAyD,EAAE,OAAO;CACtE,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC;CAC1E,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC;CACvE,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC;CACvE,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qBAAqB;CAC5D,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B;AACpE,CAAC,CAAC,CAAC,SAAS,yCAAyC;AACrD,MAAM,yCAAuD,EAAE,OAAO;CACpE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;CAC7C,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,8CAA8C;CACvG,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe;CACzC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,mCAAmC;CACtE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB;CACnD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,sCAAsC;CACtE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;CACtD,aAAa,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,uBAAuB;CACjE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,aAAa,EAAE,QAAQ,CAAC,CAAC,SAAS,qCAAqC;CACvE,kBAAkB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjG,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAM1D,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVqD,EAAE,OAAO;EAC9D,MAAM,yCAAyC,SAAS;EACxD,OAAO,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,kCAAkC;CACpG,CAAC,CAAC,CAAC,SAAS,yDAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/get-watcher.ts
|
|
4
|
+
const StartonGetWatcherInput = zod.z.object({ id: zod.z.string().describe("Unique identifier of the watcher to retrieve") }).describe("Request model for retrieving a specific watcher by its ID.");
|
|
5
|
+
const StartonGetWatcherOutput = zod.z.object({
|
|
6
|
+
id: zod.z.string().describe("Unique identifier of the watcher"),
|
|
7
|
+
name: zod.z.string().describe("Name of the watcher"),
|
|
8
|
+
type: zod.z.string().describe("Type of event or activity being monitored"),
|
|
9
|
+
status: zod.z.string().describe("Current state of the watcher").nullable().optional(),
|
|
10
|
+
address: zod.z.string().describe("Monitored contract or wallet address"),
|
|
11
|
+
network: zod.z.string().describe("Blockchain network of the watcher"),
|
|
12
|
+
createdAt: zod.z.string().describe("ISO timestamp when watcher was created"),
|
|
13
|
+
updatedAt: zod.z.string().describe("ISO timestamp of the last watcher update").nullable().optional(),
|
|
14
|
+
webhookUrl: zod.z.string().describe("Webhook URL configured for notifications"),
|
|
15
|
+
description: zod.z.string().describe("Description of the watcher").nullable().optional(),
|
|
16
|
+
customEventAbi: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("Custom event ABI if specified (for EVENT_CUSTOM watchers)").nullable().optional(),
|
|
17
|
+
confirmationsBlocks: zod.z.number().int().describe("Number of confirmation blocks required before triggering the webhook").nullable().optional()
|
|
18
|
+
}).describe("Response model for retrieving a watcher.");
|
|
19
|
+
const startonGetWatcher = require_action.action("STARTON_GET_WATCHER", {
|
|
20
|
+
slug: "starton-get-watcher",
|
|
21
|
+
name: "Get Watcher",
|
|
22
|
+
description: "Tool to retrieve details of a specific watcher by its ID. Use when you need to confirm its configuration before updating or deleting.",
|
|
23
|
+
input: StartonGetWatcherInput,
|
|
24
|
+
output: StartonGetWatcherOutput
|
|
25
|
+
});
|
|
26
|
+
//#endregion
|
|
27
|
+
exports.startonGetWatcher = startonGetWatcher;
|
|
28
|
+
|
|
29
|
+
//# sourceMappingURL=get-watcher.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-watcher.cjs","names":["z","action"],"sources":["../../src/actions/get-watcher.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const StartonGetWatcherInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the watcher to retrieve\"),\n}).describe(\"Request model for retrieving a specific watcher by its ID.\");\nexport const StartonGetWatcherOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the watcher\"),\n name: z.string().describe(\"Name of the watcher\"),\n type: z.string().describe(\"Type of event or activity being monitored\"),\n status: z.string().describe(\"Current state of the watcher\").nullable().optional(),\n address: z.string().describe(\"Monitored contract or wallet address\"),\n network: z.string().describe(\"Blockchain network of the watcher\"),\n createdAt: z.string().describe(\"ISO timestamp when watcher was created\"),\n updatedAt: z.string().describe(\"ISO timestamp of the last watcher update\").nullable().optional(),\n webhookUrl: z.string().describe(\"Webhook URL configured for notifications\"),\n description: z.string().describe(\"Description of the watcher\").nullable().optional(),\n customEventAbi: z.array(z.record(z.string(), z.unknown())).describe(\"Custom event ABI if specified (for EVENT_CUSTOM watchers)\").nullable().optional(),\n confirmationsBlocks: z.number().int().describe(\"Number of confirmation blocks required before triggering the webhook\").nullable().optional(),\n}).describe(\"Response model for retrieving a watcher.\");\n\nexport const startonGetWatcher = action(\"STARTON_GET_WATCHER\", {\n slug: \"starton-get-watcher\",\n name: \"Get Watcher\",\n description: \"Tool to retrieve details of a specific watcher by its ID. Use when you need to confirm its configuration before updating or deleting.\",\n input: StartonGetWatcherInput,\n output: StartonGetWatcherOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAuCA,IAAAA,EAAE,OAAO,EAC3D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,EACxE,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAa,0BAAwCA,IAAAA,EAAE,OAAO;CAC5D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CAC1D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;CAC/C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;CACrE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CACnE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;CAChE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;CACvE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;CAC1E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,gBAAgBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrJ,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7I,CAAC,CAAC,CAAC,SAAS,0CAA0C;AAEtD,MAAa,oBAAoBC,eAAAA,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-watcher.d.ts
|
|
4
|
+
declare const StartonGetWatcherInput: z.ZodTypeAny;
|
|
5
|
+
declare const StartonGetWatcherOutput: z.ZodTypeAny;
|
|
6
|
+
declare const startonGetWatcher: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { startonGetWatcher };
|
|
9
|
+
//# sourceMappingURL=get-watcher.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-watcher.d.cts","names":[],"sources":["../../src/actions/get-watcher.ts"],"mappings":";;;cAIa,sBAAA,EAAwB,CAAA,CAAE,UAEkC;AAAA,cAC5D,uBAAA,EAAyB,CAAA,CAAE,UAae;AAAA,cAE1C,iBAAA,gCAAiB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-watcher.d.ts
|
|
4
|
+
declare const StartonGetWatcherInput: z.ZodTypeAny;
|
|
5
|
+
declare const StartonGetWatcherOutput: z.ZodTypeAny;
|
|
6
|
+
declare const startonGetWatcher: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { startonGetWatcher };
|
|
9
|
+
//# sourceMappingURL=get-watcher.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-watcher.d.mts","names":[],"sources":["../../src/actions/get-watcher.ts"],"mappings":";;;cAIa,sBAAA,EAAwB,CAAA,CAAE,UAEkC;AAAA,cAC5D,uBAAA,EAAyB,CAAA,CAAE,UAae;AAAA,cAE1C,iBAAA,gCAAiB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const startonGetWatcher = action("STARTON_GET_WATCHER", {
|
|
4
|
+
slug: "starton-get-watcher",
|
|
5
|
+
name: "Get Watcher",
|
|
6
|
+
description: "Tool to retrieve details of a specific watcher by its ID. Use when you need to confirm its configuration before updating or deleting.",
|
|
7
|
+
input: z.object({ id: z.string().describe("Unique identifier of the watcher to retrieve") }).describe("Request model for retrieving a specific watcher by its ID."),
|
|
8
|
+
output: z.object({
|
|
9
|
+
id: z.string().describe("Unique identifier of the watcher"),
|
|
10
|
+
name: z.string().describe("Name of the watcher"),
|
|
11
|
+
type: z.string().describe("Type of event or activity being monitored"),
|
|
12
|
+
status: z.string().describe("Current state of the watcher").nullable().optional(),
|
|
13
|
+
address: z.string().describe("Monitored contract or wallet address"),
|
|
14
|
+
network: z.string().describe("Blockchain network of the watcher"),
|
|
15
|
+
createdAt: z.string().describe("ISO timestamp when watcher was created"),
|
|
16
|
+
updatedAt: z.string().describe("ISO timestamp of the last watcher update").nullable().optional(),
|
|
17
|
+
webhookUrl: z.string().describe("Webhook URL configured for notifications"),
|
|
18
|
+
description: z.string().describe("Description of the watcher").nullable().optional(),
|
|
19
|
+
customEventAbi: z.array(z.record(z.string(), z.unknown())).describe("Custom event ABI if specified (for EVENT_CUSTOM watchers)").nullable().optional(),
|
|
20
|
+
confirmationsBlocks: z.number().int().describe("Number of confirmation blocks required before triggering the webhook").nullable().optional()
|
|
21
|
+
}).describe("Response model for retrieving a watcher.")
|
|
22
|
+
});
|
|
23
|
+
//#endregion
|
|
24
|
+
export { startonGetWatcher };
|
|
25
|
+
|
|
26
|
+
//# sourceMappingURL=get-watcher.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-watcher.mjs","names":[],"sources":["../../src/actions/get-watcher.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const StartonGetWatcherInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the watcher to retrieve\"),\n}).describe(\"Request model for retrieving a specific watcher by its ID.\");\nexport const StartonGetWatcherOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the watcher\"),\n name: z.string().describe(\"Name of the watcher\"),\n type: z.string().describe(\"Type of event or activity being monitored\"),\n status: z.string().describe(\"Current state of the watcher\").nullable().optional(),\n address: z.string().describe(\"Monitored contract or wallet address\"),\n network: z.string().describe(\"Blockchain network of the watcher\"),\n createdAt: z.string().describe(\"ISO timestamp when watcher was created\"),\n updatedAt: z.string().describe(\"ISO timestamp of the last watcher update\").nullable().optional(),\n webhookUrl: z.string().describe(\"Webhook URL configured for notifications\"),\n description: z.string().describe(\"Description of the watcher\").nullable().optional(),\n customEventAbi: z.array(z.record(z.string(), z.unknown())).describe(\"Custom event ABI if specified (for EVENT_CUSTOM watchers)\").nullable().optional(),\n confirmationsBlocks: z.number().int().describe(\"Number of confirmation blocks required before triggering the webhook\").nullable().optional(),\n}).describe(\"Response model for retrieving a watcher.\");\n\nexport const startonGetWatcher = action(\"STARTON_GET_WATCHER\", {\n slug: \"starton-get-watcher\",\n name: \"Get Watcher\",\n description: \"Tool to retrieve details of a specific watcher by its ID. Use when you need to confirm its configuration before updating or deleting.\",\n input: StartonGetWatcherInput,\n output: StartonGetWatcherOutput,\n});\n"],"mappings":";;AAsBA,MAAa,oBAAoB,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAtBkD,EAAE,OAAO,EAC3D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,EACxE,CAAC,CAAC,CAAC,SAAS,4DAoBH;CACP,QApBmD,EAAE,OAAO;EAC5D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;EAC1D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;EAC/C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;EACrE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;EACnE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;EAChE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;EACvE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;EAC1E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnF,gBAAgB,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrJ,qBAAqB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7I,CAAC,CAAC,CAAC,SAAS,0CAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/get-webhooks.ts
|
|
4
|
+
const StartonGetWebhooksInput = zod.z.object({
|
|
5
|
+
page: zod.z.number().int().describe("Page number to retrieve.").optional(),
|
|
6
|
+
limit: zod.z.number().int().describe("Number of items per page.").optional()
|
|
7
|
+
}).describe("Request model for retrieving a paginated list of webhook watchers.");
|
|
8
|
+
const StartonGetWebhooks_WebhookItemSchema = zod.z.object({
|
|
9
|
+
id: zod.z.string().describe("Unique identifier of the watcher"),
|
|
10
|
+
name: zod.z.string().describe("Name of the watcher"),
|
|
11
|
+
type: zod.z.string().describe("Type of event being monitored"),
|
|
12
|
+
status: zod.z.string().describe("Current status of the watcher"),
|
|
13
|
+
address: zod.z.string().describe("Monitored blockchain address"),
|
|
14
|
+
network: zod.z.string().describe("Blockchain network identifier"),
|
|
15
|
+
createdAt: zod.z.string().describe("ISO timestamp when the watcher was created"),
|
|
16
|
+
updatedAt: zod.z.string().describe("ISO timestamp when the watcher was last updated").nullable().optional(),
|
|
17
|
+
webhookUrl: zod.z.string().describe("URL configured for webhook notifications"),
|
|
18
|
+
description: zod.z.string().describe("Description of the watcher").nullable().optional(),
|
|
19
|
+
customEventAbi: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("ABI definitions for custom event types (when type is EVENT_CUSTOM).").nullable().optional(),
|
|
20
|
+
confirmationsBlocks: zod.z.number().int().describe("Number of block confirmations required before triggering the webhook").nullable().optional()
|
|
21
|
+
}).describe("Schema for a single webhook watcher.");
|
|
22
|
+
const StartonGetWebhooksOutput = zod.z.object({
|
|
23
|
+
page: zod.z.number().int().describe("Current page number returned"),
|
|
24
|
+
count: zod.z.number().int().describe("Number of items returned in this response"),
|
|
25
|
+
items: zod.z.array(StartonGetWebhooks_WebhookItemSchema).describe("List of webhook watchers"),
|
|
26
|
+
limit: zod.z.number().int().describe("Limit of items per page"),
|
|
27
|
+
total: zod.z.number().int().describe("Total number of webhook watchers available")
|
|
28
|
+
}).describe("Paginated response model for listing webhook watchers.");
|
|
29
|
+
const startonGetWebhooks = require_action.action("STARTON_GET_WEBHOOKS", {
|
|
30
|
+
slug: "starton-get-webhooks",
|
|
31
|
+
name: "Get Webhooks",
|
|
32
|
+
description: "Tool to retrieve a list of all webhook watchers. Use after creating watchers to review existing watchers.",
|
|
33
|
+
input: StartonGetWebhooksInput,
|
|
34
|
+
output: StartonGetWebhooksOutput
|
|
35
|
+
});
|
|
36
|
+
//#endregion
|
|
37
|
+
exports.startonGetWebhooks = startonGetWebhooks;
|
|
38
|
+
|
|
39
|
+
//# sourceMappingURL=get-webhooks.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-webhooks.cjs","names":["z","action"],"sources":["../../src/actions/get-webhooks.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const StartonGetWebhooksInput: z.ZodTypeAny = z.object({\n page: z.number().int().describe(\"Page number to retrieve.\").optional(),\n limit: z.number().int().describe(\"Number of items per page.\").optional(),\n}).describe(\"Request model for retrieving a paginated list of webhook watchers.\");\nconst StartonGetWebhooks_WebhookItemSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the watcher\"),\n name: z.string().describe(\"Name of the watcher\"),\n type: z.string().describe(\"Type of event being monitored\"),\n status: z.string().describe(\"Current status of the watcher\"),\n address: z.string().describe(\"Monitored blockchain address\"),\n network: z.string().describe(\"Blockchain network identifier\"),\n createdAt: z.string().describe(\"ISO timestamp when the watcher was created\"),\n updatedAt: z.string().describe(\"ISO timestamp when the watcher was last updated\").nullable().optional(),\n webhookUrl: z.string().describe(\"URL configured for webhook notifications\"),\n description: z.string().describe(\"Description of the watcher\").nullable().optional(),\n customEventAbi: z.array(z.record(z.string(), z.unknown())).describe(\"ABI definitions for custom event types (when type is EVENT_CUSTOM).\").nullable().optional(),\n confirmationsBlocks: z.number().int().describe(\"Number of block confirmations required before triggering the webhook\").nullable().optional(),\n}).describe(\"Schema for a single webhook watcher.\");\nexport const StartonGetWebhooksOutput: z.ZodTypeAny = z.object({\n page: z.number().int().describe(\"Current page number returned\"),\n count: z.number().int().describe(\"Number of items returned in this response\"),\n items: z.array(StartonGetWebhooks_WebhookItemSchema).describe(\"List of webhook watchers\"),\n limit: z.number().int().describe(\"Limit of items per page\"),\n total: z.number().int().describe(\"Total number of webhook watchers available\"),\n}).describe(\"Paginated response model for listing webhook watchers.\");\n\nexport const startonGetWebhooks = action(\"STARTON_GET_WEBHOOKS\", {\n slug: \"starton-get-webhooks\",\n name: \"Get Webhooks\",\n description: \"Tool to retrieve a list of all webhook watchers. Use after creating watchers to review existing watchers.\",\n input: StartonGetWebhooksInput,\n output: StartonGetWebhooksOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAAwCA,IAAAA,EAAE,OAAO;CAC5D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CACrE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;AACzE,CAAC,CAAC,CAAC,SAAS,oEAAoE;AAChF,MAAM,uCAAqDA,IAAAA,EAAE,OAAO;CAClE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CAC1D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;CAC/C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;CACzD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;CAC3D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;CAC3D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;CAC5D,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;CAC3E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;CAC1E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,gBAAgBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/J,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7I,CAAC,CAAC,CAAC,SAAS,sCAAsC;AAClD,MAAa,2BAAyCA,IAAAA,EAAE,OAAO;CAC7D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B;CAC9D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C;CAC5E,OAAOA,IAAAA,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,0BAA0B;CACxF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yBAAyB;CAC1D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C;AAC/E,CAAC,CAAC,CAAC,SAAS,wDAAwD;AAEpE,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/get-webhooks.d.ts
|
|
4
|
+
declare const StartonGetWebhooksInput: z.ZodTypeAny;
|
|
5
|
+
declare const StartonGetWebhooksOutput: z.ZodTypeAny;
|
|
6
|
+
declare const startonGetWebhooks: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { startonGetWebhooks };
|
|
9
|
+
//# sourceMappingURL=get-webhooks.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-webhooks.d.cts","names":[],"sources":["../../src/actions/get-webhooks.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAGyC;AAAA,cAepE,wBAAA,EAA0B,CAAA,CAAE,UAM4B;AAAA,cAExD,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-webhooks.d.ts
|
|
4
|
+
declare const StartonGetWebhooksInput: z.ZodTypeAny;
|
|
5
|
+
declare const StartonGetWebhooksOutput: z.ZodTypeAny;
|
|
6
|
+
declare const startonGetWebhooks: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { startonGetWebhooks };
|
|
9
|
+
//# sourceMappingURL=get-webhooks.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-webhooks.d.mts","names":[],"sources":["../../src/actions/get-webhooks.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAGyC;AAAA,cAepE,wBAAA,EAA0B,CAAA,CAAE,UAM4B;AAAA,cAExD,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/get-webhooks.ts
|
|
4
|
+
const StartonGetWebhooksInput = z.object({
|
|
5
|
+
page: z.number().int().describe("Page number to retrieve.").optional(),
|
|
6
|
+
limit: z.number().int().describe("Number of items per page.").optional()
|
|
7
|
+
}).describe("Request model for retrieving a paginated list of webhook watchers.");
|
|
8
|
+
const StartonGetWebhooks_WebhookItemSchema = z.object({
|
|
9
|
+
id: z.string().describe("Unique identifier of the watcher"),
|
|
10
|
+
name: z.string().describe("Name of the watcher"),
|
|
11
|
+
type: z.string().describe("Type of event being monitored"),
|
|
12
|
+
status: z.string().describe("Current status of the watcher"),
|
|
13
|
+
address: z.string().describe("Monitored blockchain address"),
|
|
14
|
+
network: z.string().describe("Blockchain network identifier"),
|
|
15
|
+
createdAt: z.string().describe("ISO timestamp when the watcher was created"),
|
|
16
|
+
updatedAt: z.string().describe("ISO timestamp when the watcher was last updated").nullable().optional(),
|
|
17
|
+
webhookUrl: z.string().describe("URL configured for webhook notifications"),
|
|
18
|
+
description: z.string().describe("Description of the watcher").nullable().optional(),
|
|
19
|
+
customEventAbi: z.array(z.record(z.string(), z.unknown())).describe("ABI definitions for custom event types (when type is EVENT_CUSTOM).").nullable().optional(),
|
|
20
|
+
confirmationsBlocks: z.number().int().describe("Number of block confirmations required before triggering the webhook").nullable().optional()
|
|
21
|
+
}).describe("Schema for a single webhook watcher.");
|
|
22
|
+
const startonGetWebhooks = action("STARTON_GET_WEBHOOKS", {
|
|
23
|
+
slug: "starton-get-webhooks",
|
|
24
|
+
name: "Get Webhooks",
|
|
25
|
+
description: "Tool to retrieve a list of all webhook watchers. Use after creating watchers to review existing watchers.",
|
|
26
|
+
input: StartonGetWebhooksInput,
|
|
27
|
+
output: z.object({
|
|
28
|
+
page: z.number().int().describe("Current page number returned"),
|
|
29
|
+
count: z.number().int().describe("Number of items returned in this response"),
|
|
30
|
+
items: z.array(StartonGetWebhooks_WebhookItemSchema).describe("List of webhook watchers"),
|
|
31
|
+
limit: z.number().int().describe("Limit of items per page"),
|
|
32
|
+
total: z.number().int().describe("Total number of webhook watchers available")
|
|
33
|
+
}).describe("Paginated response model for listing webhook watchers.")
|
|
34
|
+
});
|
|
35
|
+
//#endregion
|
|
36
|
+
export { startonGetWebhooks };
|
|
37
|
+
|
|
38
|
+
//# sourceMappingURL=get-webhooks.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-webhooks.mjs","names":[],"sources":["../../src/actions/get-webhooks.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const StartonGetWebhooksInput: z.ZodTypeAny = z.object({\n page: z.number().int().describe(\"Page number to retrieve.\").optional(),\n limit: z.number().int().describe(\"Number of items per page.\").optional(),\n}).describe(\"Request model for retrieving a paginated list of webhook watchers.\");\nconst StartonGetWebhooks_WebhookItemSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the watcher\"),\n name: z.string().describe(\"Name of the watcher\"),\n type: z.string().describe(\"Type of event being monitored\"),\n status: z.string().describe(\"Current status of the watcher\"),\n address: z.string().describe(\"Monitored blockchain address\"),\n network: z.string().describe(\"Blockchain network identifier\"),\n createdAt: z.string().describe(\"ISO timestamp when the watcher was created\"),\n updatedAt: z.string().describe(\"ISO timestamp when the watcher was last updated\").nullable().optional(),\n webhookUrl: z.string().describe(\"URL configured for webhook notifications\"),\n description: z.string().describe(\"Description of the watcher\").nullable().optional(),\n customEventAbi: z.array(z.record(z.string(), z.unknown())).describe(\"ABI definitions for custom event types (when type is EVENT_CUSTOM).\").nullable().optional(),\n confirmationsBlocks: z.number().int().describe(\"Number of block confirmations required before triggering the webhook\").nullable().optional(),\n}).describe(\"Schema for a single webhook watcher.\");\nexport const StartonGetWebhooksOutput: z.ZodTypeAny = z.object({\n page: z.number().int().describe(\"Current page number returned\"),\n count: z.number().int().describe(\"Number of items returned in this response\"),\n items: z.array(StartonGetWebhooks_WebhookItemSchema).describe(\"List of webhook watchers\"),\n limit: z.number().int().describe(\"Limit of items per page\"),\n total: z.number().int().describe(\"Total number of webhook watchers available\"),\n}).describe(\"Paginated response model for listing webhook watchers.\");\n\nexport const startonGetWebhooks = action(\"STARTON_GET_WEBHOOKS\", {\n slug: \"starton-get-webhooks\",\n name: \"Get Webhooks\",\n description: \"Tool to retrieve a list of all webhook watchers. Use after creating watchers to review existing watchers.\",\n input: StartonGetWebhooksInput,\n output: StartonGetWebhooksOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAAwC,EAAE,OAAO;CAC5D,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CACrE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;AACzE,CAAC,CAAC,CAAC,SAAS,oEAAoE;AAChF,MAAM,uCAAqD,EAAE,OAAO;CAClE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CAC1D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;CAC/C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;CACzD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;CAC3D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;CAC3D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;CAC5D,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;CAC3E,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;CAC1E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,gBAAgB,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/J,qBAAqB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7I,CAAC,CAAC,CAAC,SAAS,sCAAsC;AASlD,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAboD,EAAE,OAAO;EAC7D,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B;EAC9D,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C;EAC5E,OAAO,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,0BAA0B;EACxF,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yBAAyB;EAC1D,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C;CAC/E,CAAC,CAAC,CAAC,SAAS,wDAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_delete_smart_contract_event = require("./delete-smart-contract-event.cjs");
|
|
3
|
+
const require_get_smart_contracts = require("./get-smart-contracts.cjs");
|
|
4
|
+
const require_get_templates = require("./get-templates.cjs");
|
|
5
|
+
const require_get_watcher = require("./get-watcher.cjs");
|
|
6
|
+
const require_get_webhooks = require("./get-webhooks.cjs");
|
|
7
|
+
const require_upload_file = require("./upload-file.cjs");
|
|
8
|
+
exports.startonDeleteSmartContractEvent = require_delete_smart_contract_event.startonDeleteSmartContractEvent;
|
|
9
|
+
exports.startonGetSmartContracts = require_get_smart_contracts.startonGetSmartContracts;
|
|
10
|
+
exports.startonGetTemplates = require_get_templates.startonGetTemplates;
|
|
11
|
+
exports.startonGetWatcher = require_get_watcher.startonGetWatcher;
|
|
12
|
+
exports.startonGetWebhooks = require_get_webhooks.startonGetWebhooks;
|
|
13
|
+
exports.startonUploadFile = require_upload_file.startonUploadFile;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { startonDeleteSmartContractEvent } from "./delete-smart-contract-event.cjs";
|
|
2
|
+
import { startonGetSmartContracts } from "./get-smart-contracts.cjs";
|
|
3
|
+
import { startonGetTemplates } from "./get-templates.cjs";
|
|
4
|
+
import { startonGetWatcher } from "./get-watcher.cjs";
|
|
5
|
+
import { startonGetWebhooks } from "./get-webhooks.cjs";
|
|
6
|
+
import { startonUploadFile } from "./upload-file.cjs";
|
|
7
|
+
export { startonDeleteSmartContractEvent, startonGetSmartContracts, startonGetTemplates, startonGetWatcher, startonGetWebhooks, startonUploadFile };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { startonDeleteSmartContractEvent } from "./delete-smart-contract-event.mjs";
|
|
2
|
+
import { startonGetSmartContracts } from "./get-smart-contracts.mjs";
|
|
3
|
+
import { startonGetTemplates } from "./get-templates.mjs";
|
|
4
|
+
import { startonGetWatcher } from "./get-watcher.mjs";
|
|
5
|
+
import { startonGetWebhooks } from "./get-webhooks.mjs";
|
|
6
|
+
import { startonUploadFile } from "./upload-file.mjs";
|
|
7
|
+
export { startonDeleteSmartContractEvent, startonGetSmartContracts, startonGetTemplates, startonGetWatcher, startonGetWebhooks, startonUploadFile };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { startonDeleteSmartContractEvent } from "./delete-smart-contract-event.mjs";
|
|
2
|
+
import { startonGetSmartContracts } from "./get-smart-contracts.mjs";
|
|
3
|
+
import { startonGetTemplates } from "./get-templates.mjs";
|
|
4
|
+
import { startonGetWatcher } from "./get-watcher.mjs";
|
|
5
|
+
import { startonGetWebhooks } from "./get-webhooks.mjs";
|
|
6
|
+
import { startonUploadFile } from "./upload-file.mjs";
|
|
7
|
+
export { startonDeleteSmartContractEvent, startonGetSmartContracts, startonGetTemplates, startonGetWatcher, startonGetWebhooks, startonUploadFile };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/upload-file.ts
|
|
4
|
+
const StartonUploadFileInput = zod.z.object({ file: zod.z.object({
|
|
5
|
+
name: zod.z.string().describe("The filename that will be used when uploading the file to the destination service"),
|
|
6
|
+
s3key: zod.z.string().describe("The S3 key of a publicly accessible file, typically returned from a previous download action that stored the file in S3. This key references an existing file that can be uploaded to another service."),
|
|
7
|
+
mimetype: zod.z.string().describe("The MIME type of the file")
|
|
8
|
+
}).describe("File to upload to IPFS storage.") }).describe("Request model for uploading a file to IPFS storage.");
|
|
9
|
+
const StartonUploadFileOutput = zod.z.object({
|
|
10
|
+
cid: zod.z.string().describe("Content Identifier (CID) of the uploaded file on IPFS"),
|
|
11
|
+
gatewayUrl: zod.z.string().describe("URL to access the uploaded file via Starton's IPFS gateway")
|
|
12
|
+
}).describe("Response model containing the CID and gateway URL of the uploaded file.");
|
|
13
|
+
const startonUploadFile = require_action.action("STARTON_UPLOAD_FILE", {
|
|
14
|
+
slug: "starton-upload-file",
|
|
15
|
+
name: "Upload File to IPFS",
|
|
16
|
+
description: "Tool to upload a file to your project's IPFS storage. Use after preparing the file you want to host on IPFS.",
|
|
17
|
+
input: StartonUploadFileInput,
|
|
18
|
+
output: StartonUploadFileOutput
|
|
19
|
+
});
|
|
20
|
+
//#endregion
|
|
21
|
+
exports.startonUploadFile = startonUploadFile;
|
|
22
|
+
|
|
23
|
+
//# sourceMappingURL=upload-file.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"upload-file.cjs","names":["z","action"],"sources":["../../src/actions/upload-file.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const StartonUploadFileInput: z.ZodTypeAny = z.object({\n file: z.object({\n name: z.string().describe(\"The filename that will be used when uploading the file to the destination service\"),\n s3key: z.string().describe(\"The S3 key of a publicly accessible file, typically returned from a previous download action that stored the file in S3. This key references an existing file that can be uploaded to another service.\"),\n mimetype: z.string().describe(\"The MIME type of the file\"),\n}).describe(\"File to upload to IPFS storage.\"),\n}).describe(\"Request model for uploading a file to IPFS storage.\");\nexport const StartonUploadFileOutput: z.ZodTypeAny = z.object({\n cid: z.string().describe(\"Content Identifier (CID) of the uploaded file on IPFS\"),\n gatewayUrl: z.string().describe(\"URL to access the uploaded file via Starton's IPFS gateway\"),\n}).describe(\"Response model containing the CID and gateway URL of the uploaded file.\");\n\nexport const startonUploadFile = action(\"STARTON_UPLOAD_FILE\", {\n slug: \"starton-upload-file\",\n name: \"Upload File to IPFS\",\n description: \"Tool to upload a file to your project's IPFS storage. Use after preparing the file you want to host on IPFS.\",\n input: StartonUploadFileInput,\n output: StartonUploadFileOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAuCA,IAAAA,EAAE,OAAO,EAC3D,MAAMA,IAAAA,EAAE,OAAO;CACf,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF;CAC7G,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wMAAwM;CACnO,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;AAC3D,CAAC,CAAC,CAAC,SAAS,iCAAiC,EAC7C,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAa,0BAAwCA,IAAAA,EAAE,OAAO;CAC5D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;CAChF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;AAC9F,CAAC,CAAC,CAAC,SAAS,yEAAyE;AAErF,MAAa,oBAAoBC,eAAAA,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/upload-file.d.ts
|
|
4
|
+
declare const StartonUploadFileInput: z.ZodTypeAny;
|
|
5
|
+
declare const StartonUploadFileOutput: z.ZodTypeAny;
|
|
6
|
+
declare const startonUploadFile: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { startonUploadFile };
|
|
9
|
+
//# sourceMappingURL=upload-file.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"upload-file.d.cts","names":[],"sources":["../../src/actions/upload-file.ts"],"mappings":";;;cAIa,sBAAA,EAAwB,CAAA,CAAE,UAM2B;AAAA,cACrD,uBAAA,EAAyB,CAAA,CAAE,UAG8C;AAAA,cAEzE,iBAAA,gCAAiB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/upload-file.d.ts
|
|
4
|
+
declare const StartonUploadFileInput: z.ZodTypeAny;
|
|
5
|
+
declare const StartonUploadFileOutput: z.ZodTypeAny;
|
|
6
|
+
declare const startonUploadFile: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { startonUploadFile };
|
|
9
|
+
//# sourceMappingURL=upload-file.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"upload-file.d.mts","names":[],"sources":["../../src/actions/upload-file.ts"],"mappings":";;;cAIa,sBAAA,EAAwB,CAAA,CAAE,UAM2B;AAAA,cACrD,uBAAA,EAAyB,CAAA,CAAE,UAG8C;AAAA,cAEzE,iBAAA,gCAAiB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const startonUploadFile = action("STARTON_UPLOAD_FILE", {
|
|
4
|
+
slug: "starton-upload-file",
|
|
5
|
+
name: "Upload File to IPFS",
|
|
6
|
+
description: "Tool to upload a file to your project's IPFS storage. Use after preparing the file you want to host on IPFS.",
|
|
7
|
+
input: z.object({ file: z.object({
|
|
8
|
+
name: z.string().describe("The filename that will be used when uploading the file to the destination service"),
|
|
9
|
+
s3key: z.string().describe("The S3 key of a publicly accessible file, typically returned from a previous download action that stored the file in S3. This key references an existing file that can be uploaded to another service."),
|
|
10
|
+
mimetype: z.string().describe("The MIME type of the file")
|
|
11
|
+
}).describe("File to upload to IPFS storage.") }).describe("Request model for uploading a file to IPFS storage."),
|
|
12
|
+
output: z.object({
|
|
13
|
+
cid: z.string().describe("Content Identifier (CID) of the uploaded file on IPFS"),
|
|
14
|
+
gatewayUrl: z.string().describe("URL to access the uploaded file via Starton's IPFS gateway")
|
|
15
|
+
}).describe("Response model containing the CID and gateway URL of the uploaded file.")
|
|
16
|
+
});
|
|
17
|
+
//#endregion
|
|
18
|
+
export { startonUploadFile };
|
|
19
|
+
|
|
20
|
+
//# sourceMappingURL=upload-file.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"upload-file.mjs","names":[],"sources":["../../src/actions/upload-file.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const StartonUploadFileInput: z.ZodTypeAny = z.object({\n file: z.object({\n name: z.string().describe(\"The filename that will be used when uploading the file to the destination service\"),\n s3key: z.string().describe(\"The S3 key of a publicly accessible file, typically returned from a previous download action that stored the file in S3. This key references an existing file that can be uploaded to another service.\"),\n mimetype: z.string().describe(\"The MIME type of the file\"),\n}).describe(\"File to upload to IPFS storage.\"),\n}).describe(\"Request model for uploading a file to IPFS storage.\");\nexport const StartonUploadFileOutput: z.ZodTypeAny = z.object({\n cid: z.string().describe(\"Content Identifier (CID) of the uploaded file on IPFS\"),\n gatewayUrl: z.string().describe(\"URL to access the uploaded file via Starton's IPFS gateway\"),\n}).describe(\"Response model containing the CID and gateway URL of the uploaded file.\");\n\nexport const startonUploadFile = action(\"STARTON_UPLOAD_FILE\", {\n slug: \"starton-upload-file\",\n name: \"Upload File to IPFS\",\n description: \"Tool to upload a file to your project's IPFS storage. Use after preparing the file you want to host on IPFS.\",\n input: StartonUploadFileInput,\n output: StartonUploadFileOutput,\n});\n"],"mappings":";;AAgBA,MAAa,oBAAoB,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhBkD,EAAE,OAAO,EAC3D,MAAM,EAAE,OAAO;EACf,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF;EAC7G,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wMAAwM;EACnO,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CAC3D,CAAC,CAAC,CAAC,SAAS,iCAAiC,EAC7C,CAAC,CAAC,CAAC,SAAS,qDAUH;CACP,QAVmD,EAAE,OAAO;EAC5D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;EAChF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;CAC9F,CAAC,CAAC,CAAC,SAAS,yEAOF;AACV,CAAC"}
|
package/dist/app.cjs
ADDED
package/dist/app.cjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.cjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const starton = defineApp({\n slug: \"starton\",\n auth: \"keystroke\",\n});\n"],"mappings":";AAEA,MAAa,WAAA,uCAAA,CAAA,CAAA,UAAA,CAAoB;CAC/B,MAAM;CACN,MAAM;AACR,CAAC"}
|
package/dist/app.d.cts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";cAEa,OAAA,6BAAO,GAAA,+BAAA,UAAA"}
|
package/dist/app.d.mts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";cAEa,OAAA,6BAAO,GAAA,+BAAA,UAAA"}
|
package/dist/app.mjs
ADDED
package/dist/app.mjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const starton = defineApp({\n slug: \"starton\",\n auth: \"keystroke\",\n});\n"],"mappings":";;AAEA,MAAa,UAAU,UAAU;CAC/B,MAAM;CACN,MAAM;AACR,CAAC"}
|
package/dist/catalog.cjs
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//#region src/catalog.ts
|
|
2
|
+
/** Generated — kept in sync with src/app.ts. */
|
|
3
|
+
const startonCatalog = {
|
|
4
|
+
"slug": "starton",
|
|
5
|
+
"name": "Starton",
|
|
6
|
+
"description": "Starton is an all-in-one Web3 API platform that enables developers to deploy and interact with smart contracts, store files on IPFS, and monitor blockchain events through a unified API and frontend interface.",
|
|
7
|
+
"category": "Developer Tools",
|
|
8
|
+
"logo": "https://logos.composio.dev/api/starton",
|
|
9
|
+
"authKind": "keystroke",
|
|
10
|
+
"oauthScopes": []
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
exports.startonCatalog = startonCatalog;
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=catalog.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog.cjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const startonCatalog = {\n \"slug\": \"starton\",\n \"name\": \"Starton\",\n \"description\": \"Starton is an all-in-one Web3 API platform that enables developers to deploy and interact with smart contracts, store files on IPFS, and monitor blockchain events through a unified API and frontend interface.\",\n \"category\": \"Developer Tools\",\n \"logo\": \"https://logos.composio.dev/api/starton\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,iBAAiB;CAC5B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;AAClB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region src/catalog.d.ts
|
|
2
|
+
/** Generated — kept in sync with src/app.ts. */
|
|
3
|
+
declare const startonCatalog: {
|
|
4
|
+
readonly slug: "starton";
|
|
5
|
+
readonly name: "Starton";
|
|
6
|
+
readonly description: "Starton is an all-in-one Web3 API platform that enables developers to deploy and interact with smart contracts, store files on IPFS, and monitor blockchain events through a unified API and frontend interface.";
|
|
7
|
+
readonly category: "Developer Tools";
|
|
8
|
+
readonly logo: "https://logos.composio.dev/api/starton";
|
|
9
|
+
readonly authKind: "keystroke";
|
|
10
|
+
readonly oauthScopes: readonly [];
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { startonCatalog };
|
|
14
|
+
//# sourceMappingURL=catalog.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog.d.cts","names":[],"sources":["../src/catalog.ts"],"mappings":";;cACa,cAAA;EAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region src/catalog.d.ts
|
|
2
|
+
/** Generated — kept in sync with src/app.ts. */
|
|
3
|
+
declare const startonCatalog: {
|
|
4
|
+
readonly slug: "starton";
|
|
5
|
+
readonly name: "Starton";
|
|
6
|
+
readonly description: "Starton is an all-in-one Web3 API platform that enables developers to deploy and interact with smart contracts, store files on IPFS, and monitor blockchain events through a unified API and frontend interface.";
|
|
7
|
+
readonly category: "Developer Tools";
|
|
8
|
+
readonly logo: "https://logos.composio.dev/api/starton";
|
|
9
|
+
readonly authKind: "keystroke";
|
|
10
|
+
readonly oauthScopes: readonly [];
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { startonCatalog };
|
|
14
|
+
//# sourceMappingURL=catalog.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog.d.mts","names":[],"sources":["../src/catalog.ts"],"mappings":";;cACa,cAAA;EAAA"}
|
package/dist/catalog.mjs
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//#region src/catalog.ts
|
|
2
|
+
/** Generated — kept in sync with src/app.ts. */
|
|
3
|
+
const startonCatalog = {
|
|
4
|
+
"slug": "starton",
|
|
5
|
+
"name": "Starton",
|
|
6
|
+
"description": "Starton is an all-in-one Web3 API platform that enables developers to deploy and interact with smart contracts, store files on IPFS, and monitor blockchain events through a unified API and frontend interface.",
|
|
7
|
+
"category": "Developer Tools",
|
|
8
|
+
"logo": "https://logos.composio.dev/api/starton",
|
|
9
|
+
"authKind": "keystroke",
|
|
10
|
+
"oauthScopes": []
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { startonCatalog };
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=catalog.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog.mjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const startonCatalog = {\n \"slug\": \"starton\",\n \"name\": \"Starton\",\n \"description\": \"Starton is an all-in-one Web3 API platform that enables developers to deploy and interact with smart contracts, store files on IPFS, and monitor blockchain events through a unified API and frontend interface.\",\n \"category\": \"Developer Tools\",\n \"logo\": \"https://logos.composio.dev/api/starton\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,iBAAiB;CAC5B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;AAClB"}
|
package/dist/execute.cjs
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
let _keystrokehq_keystroke_client = require("@keystrokehq/keystroke/client");
|
|
2
|
+
//#region src/execute.ts
|
|
3
|
+
const APP_SLUG = "starton";
|
|
4
|
+
/** Pinned app version — updated on regeneration. */
|
|
5
|
+
const APP_VERSION = "20260615_00";
|
|
6
|
+
async function executeStartonTool(tool, args) {
|
|
7
|
+
const { result } = await (0, _keystrokehq_keystroke_client.createKeystrokeClient)().tools.execute({
|
|
8
|
+
app: APP_SLUG,
|
|
9
|
+
tool,
|
|
10
|
+
arguments: args,
|
|
11
|
+
version: APP_VERSION
|
|
12
|
+
});
|
|
13
|
+
return result;
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
exports.executeStartonTool = executeStartonTool;
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=execute.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execute.cjs","names":[],"sources":["../src/execute.ts"],"sourcesContent":["import { createKeystrokeClient } from \"@keystrokehq/keystroke/client\";\n\nconst APP_SLUG = \"starton\";\n/** Pinned app version — updated on regeneration. */\nconst APP_VERSION = \"20260615_00\";\n\nexport async function executeStartonTool(\n tool: string,\n args: Record<string, unknown>,\n): Promise<unknown> {\n const { result } = await createKeystrokeClient().tools.execute({\n app: APP_SLUG,\n tool,\n arguments: args,\n version: APP_VERSION,\n });\n return result;\n}\n"],"mappings":";;AAEA,MAAM,WAAW;;AAEjB,MAAM,cAAc;AAEpB,eAAsB,mBACpB,MACA,MACkB;CAClB,MAAM,EAAE,WAAW,OAAA,GAAA,8BAAA,sBAAA,CAA4B,CAAC,CAAC,MAAM,QAAQ;EAC7D,KAAK;EACL;EACA,WAAW;EACX,SAAS;CACX,CAAC;CACD,OAAO;AACT"}
|
package/dist/execute.mjs
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { createKeystrokeClient } from "@keystrokehq/keystroke/client";
|
|
2
|
+
//#region src/execute.ts
|
|
3
|
+
const APP_SLUG = "starton";
|
|
4
|
+
/** Pinned app version — updated on regeneration. */
|
|
5
|
+
const APP_VERSION = "20260615_00";
|
|
6
|
+
async function executeStartonTool(tool, args) {
|
|
7
|
+
const { result } = await createKeystrokeClient().tools.execute({
|
|
8
|
+
app: APP_SLUG,
|
|
9
|
+
tool,
|
|
10
|
+
arguments: args,
|
|
11
|
+
version: APP_VERSION
|
|
12
|
+
});
|
|
13
|
+
return result;
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
export { executeStartonTool };
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=execute.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execute.mjs","names":[],"sources":["../src/execute.ts"],"sourcesContent":["import { createKeystrokeClient } from \"@keystrokehq/keystroke/client\";\n\nconst APP_SLUG = \"starton\";\n/** Pinned app version — updated on regeneration. */\nconst APP_VERSION = \"20260615_00\";\n\nexport async function executeStartonTool(\n tool: string,\n args: Record<string, unknown>,\n): Promise<unknown> {\n const { result } = await createKeystrokeClient().tools.execute({\n app: APP_SLUG,\n tool,\n arguments: args,\n version: APP_VERSION,\n });\n return result;\n}\n"],"mappings":";;AAEA,MAAM,WAAW;;AAEjB,MAAM,cAAc;AAEpB,eAAsB,mBACpB,MACA,MACkB;CAClB,MAAM,EAAE,WAAW,MAAM,sBAAsB,CAAC,CAAC,MAAM,QAAQ;EAC7D,KAAK;EACL;EACA,WAAW;EACX,SAAS;CACX,CAAC;CACD,OAAO;AACT"}
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_app = require("./app.cjs");
|
|
3
|
+
const require_catalog = require("./catalog.cjs");
|
|
4
|
+
const require_delete_smart_contract_event = require("./actions/delete-smart-contract-event.cjs");
|
|
5
|
+
const require_get_smart_contracts = require("./actions/get-smart-contracts.cjs");
|
|
6
|
+
const require_get_templates = require("./actions/get-templates.cjs");
|
|
7
|
+
const require_get_watcher = require("./actions/get-watcher.cjs");
|
|
8
|
+
const require_get_webhooks = require("./actions/get-webhooks.cjs");
|
|
9
|
+
const require_upload_file = require("./actions/upload-file.cjs");
|
|
10
|
+
require("./actions/index.cjs");
|
|
11
|
+
exports.starton = require_app.starton;
|
|
12
|
+
exports.startonCatalog = require_catalog.startonCatalog;
|
|
13
|
+
exports.startonDeleteSmartContractEvent = require_delete_smart_contract_event.startonDeleteSmartContractEvent;
|
|
14
|
+
exports.startonGetSmartContracts = require_get_smart_contracts.startonGetSmartContracts;
|
|
15
|
+
exports.startonGetTemplates = require_get_templates.startonGetTemplates;
|
|
16
|
+
exports.startonGetWatcher = require_get_watcher.startonGetWatcher;
|
|
17
|
+
exports.startonGetWebhooks = require_get_webhooks.startonGetWebhooks;
|
|
18
|
+
exports.startonUploadFile = require_upload_file.startonUploadFile;
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { startonDeleteSmartContractEvent } from "./actions/delete-smart-contract-event.cjs";
|
|
2
|
+
import { startonGetSmartContracts } from "./actions/get-smart-contracts.cjs";
|
|
3
|
+
import { startonGetTemplates } from "./actions/get-templates.cjs";
|
|
4
|
+
import { startonGetWatcher } from "./actions/get-watcher.cjs";
|
|
5
|
+
import { startonGetWebhooks } from "./actions/get-webhooks.cjs";
|
|
6
|
+
import { startonUploadFile } from "./actions/upload-file.cjs";
|
|
7
|
+
import { starton } from "./app.cjs";
|
|
8
|
+
import { startonCatalog } from "./catalog.cjs";
|
|
9
|
+
export { starton, startonCatalog, startonDeleteSmartContractEvent, startonGetSmartContracts, startonGetTemplates, startonGetWatcher, startonGetWebhooks, startonUploadFile };
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { startonDeleteSmartContractEvent } from "./actions/delete-smart-contract-event.mjs";
|
|
2
|
+
import { startonGetSmartContracts } from "./actions/get-smart-contracts.mjs";
|
|
3
|
+
import { startonGetTemplates } from "./actions/get-templates.mjs";
|
|
4
|
+
import { startonGetWatcher } from "./actions/get-watcher.mjs";
|
|
5
|
+
import { startonGetWebhooks } from "./actions/get-webhooks.mjs";
|
|
6
|
+
import { startonUploadFile } from "./actions/upload-file.mjs";
|
|
7
|
+
import { starton } from "./app.mjs";
|
|
8
|
+
import { startonCatalog } from "./catalog.mjs";
|
|
9
|
+
export { starton, startonCatalog, startonDeleteSmartContractEvent, startonGetSmartContracts, startonGetTemplates, startonGetWatcher, startonGetWebhooks, startonUploadFile };
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { starton } from "./app.mjs";
|
|
2
|
+
import { startonCatalog } from "./catalog.mjs";
|
|
3
|
+
import { startonDeleteSmartContractEvent } from "./actions/delete-smart-contract-event.mjs";
|
|
4
|
+
import { startonGetSmartContracts } from "./actions/get-smart-contracts.mjs";
|
|
5
|
+
import { startonGetTemplates } from "./actions/get-templates.mjs";
|
|
6
|
+
import { startonGetWatcher } from "./actions/get-watcher.mjs";
|
|
7
|
+
import { startonGetWebhooks } from "./actions/get-webhooks.mjs";
|
|
8
|
+
import { startonUploadFile } from "./actions/upload-file.mjs";
|
|
9
|
+
import "./actions/index.mjs";
|
|
10
|
+
export { starton, startonCatalog, startonDeleteSmartContractEvent, startonGetSmartContracts, startonGetTemplates, startonGetWatcher, startonGetWebhooks, startonUploadFile };
|
package/package.json
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@keystrokehq/starton",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"publishConfig": {
|
|
5
|
+
"access": "public",
|
|
6
|
+
"registry": "https://registry.npmjs.org"
|
|
7
|
+
},
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/keystrokehq/keystroke.git",
|
|
11
|
+
"directory": "packages/integrations/starton"
|
|
12
|
+
},
|
|
13
|
+
"files": [
|
|
14
|
+
"dist"
|
|
15
|
+
],
|
|
16
|
+
"sideEffects": false,
|
|
17
|
+
"type": "module",
|
|
18
|
+
"main": "./dist/index.cjs",
|
|
19
|
+
"module": "./dist/index.mjs",
|
|
20
|
+
"types": "./dist/index.d.mts",
|
|
21
|
+
"exports": {
|
|
22
|
+
".": {
|
|
23
|
+
"types": "./dist/index.d.mts",
|
|
24
|
+
"import": "./dist/index.mjs",
|
|
25
|
+
"require": "./dist/index.cjs"
|
|
26
|
+
},
|
|
27
|
+
"./actions": {
|
|
28
|
+
"types": "./dist/actions/index.d.mts",
|
|
29
|
+
"import": "./dist/actions/index.mjs",
|
|
30
|
+
"require": "./dist/actions/index.cjs"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"peerDependencies": {
|
|
34
|
+
"@keystrokehq/keystroke": "^0.1.4",
|
|
35
|
+
"zod": "^4.4.3"
|
|
36
|
+
},
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"@keystrokehq/keystroke": "link:../../keystroke",
|
|
39
|
+
"@types/node": "^25.9.1",
|
|
40
|
+
"tsdown": "^0.22.0",
|
|
41
|
+
"typescript": "^6.0.3",
|
|
42
|
+
"zod": "^4.4.3"
|
|
43
|
+
},
|
|
44
|
+
"scripts": {
|
|
45
|
+
"build": "tsdown",
|
|
46
|
+
"dev": "tsdown --watch --no-clean",
|
|
47
|
+
"typecheck": "tsc --noEmit"
|
|
48
|
+
}
|
|
49
|
+
}
|