@keystrokehq/poof 0.1.5 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (101) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/check-balance.cjs +1 -0
  4. package/dist/actions/check-balance.cjs.map +1 -1
  5. package/dist/actions/check-balance.d.cts +3 -15
  6. package/dist/actions/check-balance.d.cts.map +1 -1
  7. package/dist/actions/check-balance.d.mts +3 -15
  8. package/dist/actions/check-balance.d.mts.map +1 -1
  9. package/dist/actions/check-balance.mjs +1 -0
  10. package/dist/actions/check-balance.mjs.map +1 -1
  11. package/dist/actions/create-checkout.cjs +1 -0
  12. package/dist/actions/create-checkout.cjs.map +1 -1
  13. package/dist/actions/create-checkout.d.cts +3 -28
  14. package/dist/actions/create-checkout.d.cts.map +1 -1
  15. package/dist/actions/create-checkout.d.mts +3 -28
  16. package/dist/actions/create-checkout.d.mts.map +1 -1
  17. package/dist/actions/create-checkout.mjs +1 -0
  18. package/dist/actions/create-checkout.mjs.map +1 -1
  19. package/dist/actions/create-deposit-address.cjs +1 -0
  20. package/dist/actions/create-deposit-address.cjs.map +1 -1
  21. package/dist/actions/create-deposit-address.d.cts +3 -18
  22. package/dist/actions/create-deposit-address.d.cts.map +1 -1
  23. package/dist/actions/create-deposit-address.d.mts +3 -18
  24. package/dist/actions/create-deposit-address.d.mts.map +1 -1
  25. package/dist/actions/create-deposit-address.mjs +1 -0
  26. package/dist/actions/create-deposit-address.mjs.map +1 -1
  27. package/dist/actions/create-fiat-charge.cjs +1 -0
  28. package/dist/actions/create-fiat-charge.cjs.map +1 -1
  29. package/dist/actions/create-fiat-charge.d.cts +3 -19
  30. package/dist/actions/create-fiat-charge.d.cts.map +1 -1
  31. package/dist/actions/create-fiat-charge.d.mts +3 -19
  32. package/dist/actions/create-fiat-charge.d.mts.map +1 -1
  33. package/dist/actions/create-fiat-charge.mjs +1 -0
  34. package/dist/actions/create-fiat-charge.mjs.map +1 -1
  35. package/dist/actions/create-fiat-invoice.cjs +1 -0
  36. package/dist/actions/create-fiat-invoice.cjs.map +1 -1
  37. package/dist/actions/create-fiat-invoice.d.cts +3 -19
  38. package/dist/actions/create-fiat-invoice.d.cts.map +1 -1
  39. package/dist/actions/create-fiat-invoice.d.mts +3 -19
  40. package/dist/actions/create-fiat-invoice.d.mts.map +1 -1
  41. package/dist/actions/create-fiat-invoice.mjs +1 -0
  42. package/dist/actions/create-fiat-invoice.mjs.map +1 -1
  43. package/dist/actions/create-payment-link.cjs +1 -0
  44. package/dist/actions/create-payment-link.cjs.map +1 -1
  45. package/dist/actions/create-payment-link.d.cts +3 -17
  46. package/dist/actions/create-payment-link.d.cts.map +1 -1
  47. package/dist/actions/create-payment-link.d.mts +3 -17
  48. package/dist/actions/create-payment-link.d.mts.map +1 -1
  49. package/dist/actions/create-payment-link.mjs +1 -0
  50. package/dist/actions/create-payment-link.mjs.map +1 -1
  51. package/dist/actions/create-webhook.cjs +1 -0
  52. package/dist/actions/create-webhook.cjs.map +1 -1
  53. package/dist/actions/create-webhook.d.cts +3 -15
  54. package/dist/actions/create-webhook.d.cts.map +1 -1
  55. package/dist/actions/create-webhook.d.mts +3 -15
  56. package/dist/actions/create-webhook.d.mts.map +1 -1
  57. package/dist/actions/create-webhook.mjs +1 -0
  58. package/dist/actions/create-webhook.mjs.map +1 -1
  59. package/dist/actions/fetch-gas-price.cjs +1 -0
  60. package/dist/actions/fetch-gas-price.cjs.map +1 -1
  61. package/dist/actions/fetch-gas-price.d.cts +3 -15
  62. package/dist/actions/fetch-gas-price.d.cts.map +1 -1
  63. package/dist/actions/fetch-gas-price.d.mts +3 -15
  64. package/dist/actions/fetch-gas-price.d.mts.map +1 -1
  65. package/dist/actions/fetch-gas-price.mjs +1 -0
  66. package/dist/actions/fetch-gas-price.mjs.map +1 -1
  67. package/dist/actions/fetch-price.cjs +1 -0
  68. package/dist/actions/fetch-price.cjs.map +1 -1
  69. package/dist/actions/fetch-price.d.cts +3 -15
  70. package/dist/actions/fetch-price.d.cts.map +1 -1
  71. package/dist/actions/fetch-price.d.mts +3 -15
  72. package/dist/actions/fetch-price.d.mts.map +1 -1
  73. package/dist/actions/fetch-price.mjs +1 -0
  74. package/dist/actions/fetch-price.mjs.map +1 -1
  75. package/dist/actions/fetch-smart-contracts.cjs +1 -0
  76. package/dist/actions/fetch-smart-contracts.cjs.map +1 -1
  77. package/dist/actions/fetch-smart-contracts.d.cts +3 -13
  78. package/dist/actions/fetch-smart-contracts.d.cts.map +1 -1
  79. package/dist/actions/fetch-smart-contracts.d.mts +3 -13
  80. package/dist/actions/fetch-smart-contracts.d.mts.map +1 -1
  81. package/dist/actions/fetch-smart-contracts.mjs +1 -0
  82. package/dist/actions/fetch-smart-contracts.mjs.map +1 -1
  83. package/dist/actions/send-payout.cjs +1 -0
  84. package/dist/actions/send-payout.cjs.map +1 -1
  85. package/dist/actions/send-payout.d.cts +3 -17
  86. package/dist/actions/send-payout.d.cts.map +1 -1
  87. package/dist/actions/send-payout.d.mts +3 -17
  88. package/dist/actions/send-payout.d.mts.map +1 -1
  89. package/dist/actions/send-payout.mjs +1 -0
  90. package/dist/actions/send-payout.mjs.map +1 -1
  91. package/dist/app.cjs +2 -2
  92. package/dist/app.cjs.map +1 -1
  93. package/dist/app.d.cts +4 -6
  94. package/dist/app.d.cts.map +1 -1
  95. package/dist/app.d.mts +4 -6
  96. package/dist/app.d.mts.map +1 -1
  97. package/dist/app.mjs +0 -1
  98. package/dist/app.mjs.map +1 -1
  99. package/dist/index.d.cts +1 -1
  100. package/dist/index.d.mts +1 -1
  101. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"fetch-smart-contracts.d.mts","names":[],"sources":["../../src/actions/fetch-smart-contracts.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAC5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;cAM7B,uBAAA,gCAAuB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,SAAA,CAAA,CAAA,SAAA"}
1
+ {"version":3,"file":"fetch-smart-contracts.d.mts","names":[],"sources":["../../src/actions/fetch-smart-contracts.ts"],"mappings":";;;;;cAMa,4BAAA,EAA4B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAC5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;cAM7B,uBAAA,EAAyB,SAAA,QAC7B,4BAAA,SACA,6BAAA,SACA,IAAA,CAAK,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const poofFetchSmartContracts = action("POOF_FETCH_SMART_CONTRACTS", {
@@ -1 +1 @@
1
- {"version":3,"file":"fetch-smart-contracts.mjs","names":[],"sources":["../../src/actions/fetch-smart-contracts.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PoofFetchSmartContractsInput = z.object({}).describe(\"Request model for fetching supported smart contracts.\\nNo parameters required - the API returns all available contracts.\");\nexport const PoofFetchSmartContractsOutput = z.object({\n polygon: z.record(z.string(), z.unknown()).describe(\"Polygon network token contracts keyed by token identifier\").nullable().optional(),\n ethereum: z.record(z.string(), z.unknown()).describe(\"Ethereum network ERC-20 token contracts keyed by token identifier\").nullable().optional(),\n avalanche: z.record(z.string(), z.unknown()).describe(\"Avalanche network token contracts keyed by token identifier\").nullable().optional(),\n}).passthrough().describe(\"Response model containing smart contracts organized by blockchain network.\\nEach network contains token identifiers mapped to their contract details.\");\n\nexport const poofFetchSmartContracts = action(\"POOF_FETCH_SMART_CONTRACTS\", {\n slug: \"poof-fetch-smart-contracts\",\n name: \"Fetch Smart Contracts\",\n description: \"Tool to fetch all supported ERC-20 smart contracts across Ethereum, Avalanche, and Polygon networks. Use when you need to retrieve available token contracts and their details for blockchain operations.\",\n input: PoofFetchSmartContractsInput,\n output: PoofFetchSmartContractsOutput,\n});\n"],"mappings":";;AAWA,MAAa,0BAA0B,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAX0C,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,0HAWzD;CACP,QAX2C,EAAE,OAAO;EACpD,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrI,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9I,WAAW,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uJAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"fetch-smart-contracts.mjs","names":[],"sources":["../../src/actions/fetch-smart-contracts.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { poof } from \"../app\";\n\nexport const PoofFetchSmartContractsInput = z.object({}).describe(\"Request model for fetching supported smart contracts.\\nNo parameters required - the API returns all available contracts.\");\nexport const PoofFetchSmartContractsOutput = z.object({\n polygon: z.record(z.string(), z.unknown()).describe(\"Polygon network token contracts keyed by token identifier\").nullable().optional(),\n ethereum: z.record(z.string(), z.unknown()).describe(\"Ethereum network ERC-20 token contracts keyed by token identifier\").nullable().optional(),\n avalanche: z.record(z.string(), z.unknown()).describe(\"Avalanche network token contracts keyed by token identifier\").nullable().optional(),\n}).passthrough().describe(\"Response model containing smart contracts organized by blockchain network.\\nEach network contains token identifiers mapped to their contract details.\");\n\nexport const poofFetchSmartContracts: AppAction<\n typeof PoofFetchSmartContractsInput,\n typeof PoofFetchSmartContractsOutput,\n typeof poof.credential\n> = action(\"POOF_FETCH_SMART_CONTRACTS\", {\n slug: \"poof-fetch-smart-contracts\",\n name: \"Fetch Smart Contracts\",\n description: \"Tool to fetch all supported ERC-20 smart contracts across Ethereum, Avalanche, and Polygon networks. Use when you need to retrieve available token contracts and their details for blockchain operations.\",\n input: PoofFetchSmartContractsInput,\n output: PoofFetchSmartContractsOutput,\n});\n"],"mappings":";;;AAaA,MAAa,0BAIT,OAAO,8BAA8B;CACvC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAf0C,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,0HAezD;CACP,QAf2C,EAAE,OAAO;EACpD,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrI,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9I,WAAW,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uJAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/send-payout.ts
@@ -1 +1 @@
1
- {"version":3,"file":"send-payout.cjs","names":["z","action"],"sources":["../../src/actions/send-payout.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PoofSendPayoutInput = z.object({\n amount: z.number().describe(\"Amount of cryptocurrency to send. Must be a positive number.\"),\n crypto: z.string().describe(\"Cryptocurrency type to use for the payout. Supported values include blockchain names such as 'solana', 'ethereum', 'bitcoin', etc.\"),\n address: z.string().describe(\"Destination wallet address on the specified blockchain. Must be a valid address format for the chosen cryptocurrency.\"),\n}).describe(\"Request model for sending a cryptocurrency payout transaction.\");\nexport const PoofSendPayoutOutput = z.object({\n status: z.string().describe(\"Current status of the payout transaction (e.g., pending, completed, failed).\").nullable().optional(),\n message: z.string().describe(\"Additional message or details about the payout request.\").nullable().optional(),\n success: z.boolean().describe(\"Indicates whether the payout request was successful.\").nullable().optional(),\n transaction_id: z.string().describe(\"Unique identifier for the payout transaction.\").nullable().optional(),\n}).passthrough().describe(\"Response model returned after initiating a cryptocurrency payout transaction.\");\n\nexport const poofSendPayout = action(\"POOF_SEND_PAYOUT\", {\n slug: \"poof-send-payout\",\n name: \"Send Cryptocurrency Payout\",\n description: \"Tool to send a cryptocurrency payout transaction from your wallet to an external address. Use when you need to transfer crypto on supported blockchains.\",\n input: PoofSendPayoutInput,\n output: PoofSendPayoutOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sBAAsBA,IAAAA,EAAE,OAAO;CAC1C,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D;CAC1F,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oIAAoI;CAChK,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uHAAuH;AACtJ,CAAC,CAAC,CAAC,SAAS,gEAAgE;AAC5E,MAAa,uBAAuBA,IAAAA,EAAE,OAAO;CAC3C,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChI,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+EAA+E;AAEzG,MAAa,iBAAiBC,eAAAA,OAAO,oBAAoB;CACvD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"send-payout.cjs","names":["z","action"],"sources":["../../src/actions/send-payout.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { poof } from \"../app\";\n\nexport const PoofSendPayoutInput = z.object({\n amount: z.number().describe(\"Amount of cryptocurrency to send. Must be a positive number.\"),\n crypto: z.string().describe(\"Cryptocurrency type to use for the payout. Supported values include blockchain names such as 'solana', 'ethereum', 'bitcoin', etc.\"),\n address: z.string().describe(\"Destination wallet address on the specified blockchain. Must be a valid address format for the chosen cryptocurrency.\"),\n}).describe(\"Request model for sending a cryptocurrency payout transaction.\");\nexport const PoofSendPayoutOutput = z.object({\n status: z.string().describe(\"Current status of the payout transaction (e.g., pending, completed, failed).\").nullable().optional(),\n message: z.string().describe(\"Additional message or details about the payout request.\").nullable().optional(),\n success: z.boolean().describe(\"Indicates whether the payout request was successful.\").nullable().optional(),\n transaction_id: z.string().describe(\"Unique identifier for the payout transaction.\").nullable().optional(),\n}).passthrough().describe(\"Response model returned after initiating a cryptocurrency payout transaction.\");\n\nexport const poofSendPayout: AppAction<\n typeof PoofSendPayoutInput,\n typeof PoofSendPayoutOutput,\n typeof poof.credential\n> = action(\"POOF_SEND_PAYOUT\", {\n slug: \"poof-send-payout\",\n name: \"Send Cryptocurrency Payout\",\n description: \"Tool to send a cryptocurrency payout transaction from your wallet to an external address. Use when you need to transfer crypto on supported blockchains.\",\n input: PoofSendPayoutInput,\n output: PoofSendPayoutOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,sBAAsBA,IAAAA,EAAE,OAAO;CAC1C,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D;CAC1F,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oIAAoI;CAChK,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uHAAuH;AACtJ,CAAC,CAAC,CAAC,SAAS,gEAAgE;AAC5E,MAAa,uBAAuBA,IAAAA,EAAE,OAAO;CAC3C,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChI,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+EAA+E;AAEzG,MAAa,iBAITC,eAAAA,OAAO,oBAAoB;CAC7B,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { poof } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/send-payout.d.ts
@@ -12,23 +14,7 @@ declare const PoofSendPayoutOutput: z.ZodObject<{
12
14
  success: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
13
15
  transaction_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
16
  }, z.core.$loose>;
15
- declare const poofSendPayout: import("@keystrokehq/action").WorkflowActionDefinition<{
16
- amount: number;
17
- crypto: string;
18
- address: string;
19
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"poof", z.ZodObject<{
20
- connectionId: z.ZodString;
21
- entityId: z.ZodString;
22
- instanceId: z.ZodString;
23
- }, z.core.$strip>, z.ZodObject<{
24
- generic_api_key: z.ZodString;
25
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"poof", z.ZodObject<{
26
- connectionId: z.ZodString;
27
- entityId: z.ZodString;
28
- instanceId: z.ZodString;
29
- }, z.core.$strip>, z.ZodObject<{
30
- generic_api_key: z.ZodString;
31
- }, z.core.$strip>>]>;
17
+ declare const poofSendPayout: AppAction<typeof PoofSendPayoutInput, typeof PoofSendPayoutOutput, typeof poof.credential>;
32
18
  //#endregion
33
19
  export { poofSendPayout };
34
20
  //# sourceMappingURL=send-payout.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"send-payout.d.cts","names":[],"sources":["../../src/actions/send-payout.ts"],"mappings":";;;cAIa,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;;cAKnB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;cAOpB,cAAA,gCAAc,wBAAA"}
1
+ {"version":3,"file":"send-payout.d.cts","names":[],"sources":["../../src/actions/send-payout.ts"],"mappings":";;;;;cAMa,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;;cAKnB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;cAOpB,cAAA,EAAgB,SAAA,QACpB,mBAAA,SACA,oBAAA,SACA,IAAA,CAAK,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { poof } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/send-payout.d.ts
@@ -12,23 +14,7 @@ declare const PoofSendPayoutOutput: z.ZodObject<{
12
14
  success: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
13
15
  transaction_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
16
  }, z.core.$loose>;
15
- declare const poofSendPayout: import("@keystrokehq/action").WorkflowActionDefinition<{
16
- amount: number;
17
- crypto: string;
18
- address: string;
19
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"poof", z.ZodObject<{
20
- connectionId: z.ZodString;
21
- entityId: z.ZodString;
22
- instanceId: z.ZodString;
23
- }, z.core.$strip>, z.ZodObject<{
24
- generic_api_key: z.ZodString;
25
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"poof", z.ZodObject<{
26
- connectionId: z.ZodString;
27
- entityId: z.ZodString;
28
- instanceId: z.ZodString;
29
- }, z.core.$strip>, z.ZodObject<{
30
- generic_api_key: z.ZodString;
31
- }, z.core.$strip>>]>;
17
+ declare const poofSendPayout: AppAction<typeof PoofSendPayoutInput, typeof PoofSendPayoutOutput, typeof poof.credential>;
32
18
  //#endregion
33
19
  export { poofSendPayout };
34
20
  //# sourceMappingURL=send-payout.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"send-payout.d.mts","names":[],"sources":["../../src/actions/send-payout.ts"],"mappings":";;;cAIa,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;;cAKnB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;cAOpB,cAAA,gCAAc,wBAAA"}
1
+ {"version":3,"file":"send-payout.d.mts","names":[],"sources":["../../src/actions/send-payout.ts"],"mappings":";;;;;cAMa,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;;cAKnB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;cAOpB,cAAA,EAAgB,SAAA,QACpB,mBAAA,SACA,oBAAA,SACA,IAAA,CAAK,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const poofSendPayout = action("POOF_SEND_PAYOUT", {
@@ -1 +1 @@
1
- {"version":3,"file":"send-payout.mjs","names":[],"sources":["../../src/actions/send-payout.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PoofSendPayoutInput = z.object({\n amount: z.number().describe(\"Amount of cryptocurrency to send. Must be a positive number.\"),\n crypto: z.string().describe(\"Cryptocurrency type to use for the payout. Supported values include blockchain names such as 'solana', 'ethereum', 'bitcoin', etc.\"),\n address: z.string().describe(\"Destination wallet address on the specified blockchain. Must be a valid address format for the chosen cryptocurrency.\"),\n}).describe(\"Request model for sending a cryptocurrency payout transaction.\");\nexport const PoofSendPayoutOutput = z.object({\n status: z.string().describe(\"Current status of the payout transaction (e.g., pending, completed, failed).\").nullable().optional(),\n message: z.string().describe(\"Additional message or details about the payout request.\").nullable().optional(),\n success: z.boolean().describe(\"Indicates whether the payout request was successful.\").nullable().optional(),\n transaction_id: z.string().describe(\"Unique identifier for the payout transaction.\").nullable().optional(),\n}).passthrough().describe(\"Response model returned after initiating a cryptocurrency payout transaction.\");\n\nexport const poofSendPayout = action(\"POOF_SEND_PAYOUT\", {\n slug: \"poof-send-payout\",\n name: \"Send Cryptocurrency Payout\",\n description: \"Tool to send a cryptocurrency payout transaction from your wallet to an external address. Use when you need to transfer crypto on supported blockchains.\",\n input: PoofSendPayoutInput,\n output: PoofSendPayoutOutput,\n});\n"],"mappings":";;AAgBA,MAAa,iBAAiB,OAAO,oBAAoB;CACvD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhBiC,EAAE,OAAO;EAC1C,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D;EAC1F,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,oIAAoI;EAChK,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,uHAAuH;CACtJ,CAAC,CAAC,CAAC,SAAS,gEAYH;CACP,QAZkC,EAAE,OAAO;EAC3C,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChI,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5G,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1G,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+EAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"send-payout.mjs","names":[],"sources":["../../src/actions/send-payout.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { poof } from \"../app\";\n\nexport const PoofSendPayoutInput = z.object({\n amount: z.number().describe(\"Amount of cryptocurrency to send. Must be a positive number.\"),\n crypto: z.string().describe(\"Cryptocurrency type to use for the payout. Supported values include blockchain names such as 'solana', 'ethereum', 'bitcoin', etc.\"),\n address: z.string().describe(\"Destination wallet address on the specified blockchain. Must be a valid address format for the chosen cryptocurrency.\"),\n}).describe(\"Request model for sending a cryptocurrency payout transaction.\");\nexport const PoofSendPayoutOutput = z.object({\n status: z.string().describe(\"Current status of the payout transaction (e.g., pending, completed, failed).\").nullable().optional(),\n message: z.string().describe(\"Additional message or details about the payout request.\").nullable().optional(),\n success: z.boolean().describe(\"Indicates whether the payout request was successful.\").nullable().optional(),\n transaction_id: z.string().describe(\"Unique identifier for the payout transaction.\").nullable().optional(),\n}).passthrough().describe(\"Response model returned after initiating a cryptocurrency payout transaction.\");\n\nexport const poofSendPayout: AppAction<\n typeof PoofSendPayoutInput,\n typeof PoofSendPayoutOutput,\n typeof poof.credential\n> = action(\"POOF_SEND_PAYOUT\", {\n slug: \"poof-send-payout\",\n name: \"Send Cryptocurrency Payout\",\n description: \"Tool to send a cryptocurrency payout transaction from your wallet to an external address. Use when you need to transfer crypto on supported blockchains.\",\n input: PoofSendPayoutInput,\n output: PoofSendPayoutOutput,\n});\n"],"mappings":";;;AAkBA,MAAa,iBAIT,OAAO,oBAAoB;CAC7B,MAAM;CACN,MAAM;CACN,aAAa;CACb,OApBiC,EAAE,OAAO;EAC1C,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D;EAC1F,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,oIAAoI;EAChK,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,uHAAuH;CACtJ,CAAC,CAAC,CAAC,SAAS,gEAgBH;CACP,QAhBkC,EAAE,OAAO;EAC3C,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChI,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5G,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1G,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+EAWhB;AACV,CAAC"}
package/dist/app.cjs CHANGED
@@ -1,10 +1,10 @@
1
1
  let _keystrokehq_keystroke_app = require("@keystrokehq/keystroke/app");
2
- let zod = require("zod");
3
2
  //#region src/app.ts
3
+ const credential = { generic_api_key: require("zod").z.string() };
4
4
  const poof = (0, _keystrokehq_keystroke_app.defineApp)({
5
5
  slug: "poof",
6
6
  auth: "keystroke",
7
- credential: { generic_api_key: zod.z.string() }
7
+ credential
8
8
  });
9
9
  //#endregion
10
10
  exports.poof = poof;
package/dist/app.cjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"app.cjs","names":["z"],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nexport const poof = defineApp({\n slug: \"poof\",\n auth: \"keystroke\",\n credential: {\n generic_api_key: z.string(),\n },\n});\n"],"mappings":";;;AAGA,MAAa,QAAA,GAAA,2BAAA,UAAA,CAAiB;CAC5B,MAAM;CACN,MAAM;CACN,YAAY,EACV,iBAAiBA,IAAAA,EAAE,OAAO,EAC5B;AACF,CAAC"}
1
+ {"version":3,"file":"app.cjs","names":["z"],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp, type KeystrokeApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nconst credential = {\n generic_api_key: z.string(),\n};\n\nexport const poof: KeystrokeApp<\"poof\", typeof credential> = defineApp({\n slug: \"poof\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;AAGA,MAAM,aAAa,EACjB,8BAAiBA,CAAAA,CAAAA,EAAE,OAAO,EAC5B;AAEA,MAAa,QAAA,GAAA,2BAAA,UAAA,CAA0D;CACrE,MAAM;CACN,MAAM;CACN;AACF,CAAC"}
package/dist/app.d.cts CHANGED
@@ -1,13 +1,11 @@
1
+ import { KeystrokeApp } from "@keystrokehq/keystroke/app";
1
2
  import { z } from "zod";
2
3
 
3
4
  //#region src/app.d.ts
4
- declare const poof: import("@keystrokehq/app").App<import("@keystrokehq/shared").Credential<"poof", z.ZodObject<{
5
- connectionId: z.ZodString;
6
- entityId: z.ZodString;
7
- instanceId: z.ZodString;
8
- }, z.core.$strip>, z.ZodObject<{
5
+ declare const credential: {
9
6
  generic_api_key: z.ZodString;
10
- }, z.core.$strip>>>;
7
+ };
8
+ declare const poof: KeystrokeApp<"poof", typeof credential>;
11
9
  //#endregion
12
10
  export { poof };
13
11
  //# sourceMappingURL=app.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";;;cAGa,IAAA,6BAAI,GAAA,+BAAA,UAAA,SAAA,CAAA,CAAA,SAAA"}
1
+ {"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";;;;cAGM,UAAA;mBAEL,CAAA,CAAA,SAAA;AAAA;AAAA,cAEY,IAAA,EAAM,YAAY,gBAAgB,UAAA"}
package/dist/app.d.mts CHANGED
@@ -1,13 +1,11 @@
1
+ import { KeystrokeApp } from "@keystrokehq/keystroke/app";
1
2
  import { z } from "zod";
2
3
 
3
4
  //#region src/app.d.ts
4
- declare const poof: import("@keystrokehq/app").App<import("@keystrokehq/shared").Credential<"poof", z.ZodObject<{
5
- connectionId: z.ZodString;
6
- entityId: z.ZodString;
7
- instanceId: z.ZodString;
8
- }, z.core.$strip>, z.ZodObject<{
5
+ declare const credential: {
9
6
  generic_api_key: z.ZodString;
10
- }, z.core.$strip>>>;
7
+ };
8
+ declare const poof: KeystrokeApp<"poof", typeof credential>;
11
9
  //#endregion
12
10
  export { poof };
13
11
  //# sourceMappingURL=app.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";;;cAGa,IAAA,6BAAI,GAAA,+BAAA,UAAA,SAAA,CAAA,CAAA,SAAA"}
1
+ {"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";;;;cAGM,UAAA;mBAEL,CAAA,CAAA,SAAA;AAAA;AAAA,cAEY,IAAA,EAAM,YAAY,gBAAgB,UAAA"}
package/dist/app.mjs CHANGED
@@ -1,6 +1,5 @@
1
1
  import { defineApp } from "@keystrokehq/keystroke/app";
2
2
  import { z } from "zod";
3
- //#region src/app.ts
4
3
  const poof = defineApp({
5
4
  slug: "poof",
6
5
  auth: "keystroke",
package/dist/app.mjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nexport const poof = defineApp({\n slug: \"poof\",\n auth: \"keystroke\",\n credential: {\n generic_api_key: z.string(),\n },\n});\n"],"mappings":";;;AAGA,MAAa,OAAO,UAAU;CAC5B,MAAM;CACN,MAAM;CACN,YAAY,EACV,iBAAiB,EAAE,OAAO,EAC5B;AACF,CAAC"}
1
+ {"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp, type KeystrokeApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nconst credential = {\n generic_api_key: z.string(),\n};\n\nexport const poof: KeystrokeApp<\"poof\", typeof credential> = defineApp({\n slug: \"poof\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;AAOA,MAAa,OAAgD,UAAU;CACrE,MAAM;CACN,MAAM;CACN,cANA,iBAAiB,EAAE,OAAO,EAM1B;AACF,CAAC"}
package/dist/index.d.cts CHANGED
@@ -1,3 +1,4 @@
1
+ import { poof } from "./app.cjs";
1
2
  import { poofCheckBalance } from "./actions/check-balance.cjs";
2
3
  import { poofCreateCheckout } from "./actions/create-checkout.cjs";
3
4
  import { poofCreateDepositAddress } from "./actions/create-deposit-address.cjs";
@@ -9,6 +10,5 @@ import { poofFetchGasPrice } from "./actions/fetch-gas-price.cjs";
9
10
  import { poofFetchPrice } from "./actions/fetch-price.cjs";
10
11
  import { poofFetchSmartContracts } from "./actions/fetch-smart-contracts.cjs";
11
12
  import { poofSendPayout } from "./actions/send-payout.cjs";
12
- import { poof } from "./app.cjs";
13
13
  import { poofCatalog } from "./catalog.cjs";
14
14
  export { poof, poofCatalog, poofCheckBalance, poofCreateCheckout, poofCreateDepositAddress, poofCreateFiatCharge, poofCreateFiatInvoice, poofCreatePaymentLink, poofCreateWebhook, poofFetchGasPrice, poofFetchPrice, poofFetchSmartContracts, poofSendPayout };
package/dist/index.d.mts CHANGED
@@ -1,3 +1,4 @@
1
+ import { poof } from "./app.mjs";
1
2
  import { poofCheckBalance } from "./actions/check-balance.mjs";
2
3
  import { poofCreateCheckout } from "./actions/create-checkout.mjs";
3
4
  import { poofCreateDepositAddress } from "./actions/create-deposit-address.mjs";
@@ -9,6 +10,5 @@ import { poofFetchGasPrice } from "./actions/fetch-gas-price.mjs";
9
10
  import { poofFetchPrice } from "./actions/fetch-price.mjs";
10
11
  import { poofFetchSmartContracts } from "./actions/fetch-smart-contracts.mjs";
11
12
  import { poofSendPayout } from "./actions/send-payout.mjs";
12
- import { poof } from "./app.mjs";
13
13
  import { poofCatalog } from "./catalog.mjs";
14
14
  export { poof, poofCatalog, poofCheckBalance, poofCreateCheckout, poofCreateDepositAddress, poofCreateFiatCharge, poofCreateFiatInvoice, poofCreatePaymentLink, poofCreateWebhook, poofFetchGasPrice, poofFetchPrice, poofFetchSmartContracts, poofSendPayout };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keystrokehq/poof",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"
@@ -31,7 +31,7 @@
31
31
  }
32
32
  },
33
33
  "peerDependencies": {
34
- "@keystrokehq/keystroke": ">=0.1.4",
34
+ "@keystrokehq/keystroke": ">=0.1.104",
35
35
  "zod": "^4.4.3"
36
36
  },
37
37
  "devDependencies": {