@keystrokehq/railway 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 (157) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/create-plugin.cjs +1 -0
  4. package/dist/actions/create-plugin.cjs.map +1 -1
  5. package/dist/actions/create-plugin.d.cts +3 -16
  6. package/dist/actions/create-plugin.d.cts.map +1 -1
  7. package/dist/actions/create-plugin.d.mts +3 -16
  8. package/dist/actions/create-plugin.d.mts.map +1 -1
  9. package/dist/actions/create-plugin.mjs +1 -0
  10. package/dist/actions/create-plugin.mjs.map +1 -1
  11. package/dist/actions/delete-variable.cjs +1 -0
  12. package/dist/actions/delete-variable.cjs.map +1 -1
  13. package/dist/actions/delete-variable.d.cts +3 -18
  14. package/dist/actions/delete-variable.d.cts.map +1 -1
  15. package/dist/actions/delete-variable.d.mts +3 -18
  16. package/dist/actions/delete-variable.d.mts.map +1 -1
  17. package/dist/actions/delete-variable.mjs +1 -0
  18. package/dist/actions/delete-variable.mjs.map +1 -1
  19. package/dist/actions/delete-volume.cjs +1 -0
  20. package/dist/actions/delete-volume.cjs.map +1 -1
  21. package/dist/actions/delete-volume.d.cts +3 -15
  22. package/dist/actions/delete-volume.d.cts.map +1 -1
  23. package/dist/actions/delete-volume.d.mts +3 -15
  24. package/dist/actions/delete-volume.d.mts.map +1 -1
  25. package/dist/actions/delete-volume.mjs +1 -0
  26. package/dist/actions/delete-volume.mjs.map +1 -1
  27. package/dist/actions/delete-workspace.cjs +1 -0
  28. package/dist/actions/delete-workspace.cjs.map +1 -1
  29. package/dist/actions/delete-workspace.d.cts +3 -15
  30. package/dist/actions/delete-workspace.d.cts.map +1 -1
  31. package/dist/actions/delete-workspace.d.mts +3 -15
  32. package/dist/actions/delete-workspace.d.mts.map +1 -1
  33. package/dist/actions/delete-workspace.mjs +1 -0
  34. package/dist/actions/delete-workspace.mjs.map +1 -1
  35. package/dist/actions/disconnect-user-discord.cjs +1 -0
  36. package/dist/actions/disconnect-user-discord.cjs.map +1 -1
  37. package/dist/actions/disconnect-user-discord.d.cts +3 -13
  38. package/dist/actions/disconnect-user-discord.d.cts.map +1 -1
  39. package/dist/actions/disconnect-user-discord.d.mts +3 -13
  40. package/dist/actions/disconnect-user-discord.d.mts.map +1 -1
  41. package/dist/actions/disconnect-user-discord.mjs +1 -0
  42. package/dist/actions/disconnect-user-discord.mjs.map +1 -1
  43. package/dist/actions/get-deployment-logs.cjs +1 -0
  44. package/dist/actions/get-deployment-logs.cjs.map +1 -1
  45. package/dist/actions/get-deployment-logs.d.cts +3 -16
  46. package/dist/actions/get-deployment-logs.d.cts.map +1 -1
  47. package/dist/actions/get-deployment-logs.d.mts +3 -16
  48. package/dist/actions/get-deployment-logs.d.mts.map +1 -1
  49. package/dist/actions/get-deployment-logs.mjs +1 -0
  50. package/dist/actions/get-deployment-logs.mjs.map +1 -1
  51. package/dist/actions/get-environment.cjs +1 -0
  52. package/dist/actions/get-environment.cjs.map +1 -1
  53. package/dist/actions/get-environment.d.cts +3 -15
  54. package/dist/actions/get-environment.d.cts.map +1 -1
  55. package/dist/actions/get-environment.d.mts +3 -15
  56. package/dist/actions/get-environment.d.mts.map +1 -1
  57. package/dist/actions/get-environment.mjs +1 -0
  58. package/dist/actions/get-environment.mjs.map +1 -1
  59. package/dist/actions/get-git-hub-pr-info.cjs +1 -0
  60. package/dist/actions/get-git-hub-pr-info.cjs.map +1 -1
  61. package/dist/actions/get-git-hub-pr-info.d.cts +3 -16
  62. package/dist/actions/get-git-hub-pr-info.d.cts.map +1 -1
  63. package/dist/actions/get-git-hub-pr-info.d.mts +3 -16
  64. package/dist/actions/get-git-hub-pr-info.d.mts.map +1 -1
  65. package/dist/actions/get-git-hub-pr-info.mjs +1 -0
  66. package/dist/actions/get-git-hub-pr-info.mjs.map +1 -1
  67. package/dist/actions/get-user-kickback-earnings.cjs +1 -0
  68. package/dist/actions/get-user-kickback-earnings.cjs.map +1 -1
  69. package/dist/actions/get-user-kickback-earnings.d.cts +3 -13
  70. package/dist/actions/get-user-kickback-earnings.d.cts.map +1 -1
  71. package/dist/actions/get-user-kickback-earnings.d.mts +3 -13
  72. package/dist/actions/get-user-kickback-earnings.d.mts.map +1 -1
  73. package/dist/actions/get-user-kickback-earnings.mjs +1 -0
  74. package/dist/actions/get-user-kickback-earnings.mjs.map +1 -1
  75. package/dist/actions/list-api-tokens.cjs +1 -0
  76. package/dist/actions/list-api-tokens.cjs.map +1 -1
  77. package/dist/actions/list-api-tokens.d.cts +3 -13
  78. package/dist/actions/list-api-tokens.d.cts.map +1 -1
  79. package/dist/actions/list-api-tokens.d.mts +3 -13
  80. package/dist/actions/list-api-tokens.d.mts.map +1 -1
  81. package/dist/actions/list-api-tokens.mjs +1 -0
  82. package/dist/actions/list-api-tokens.mjs.map +1 -1
  83. package/dist/actions/list-environment-patches.cjs +1 -0
  84. package/dist/actions/list-environment-patches.cjs.map +1 -1
  85. package/dist/actions/list-environment-patches.d.cts +3 -17
  86. package/dist/actions/list-environment-patches.d.cts.map +1 -1
  87. package/dist/actions/list-environment-patches.d.mts +3 -17
  88. package/dist/actions/list-environment-patches.d.mts.map +1 -1
  89. package/dist/actions/list-environment-patches.mjs +1 -0
  90. package/dist/actions/list-environment-patches.mjs.map +1 -1
  91. package/dist/actions/list-git-hub-repos.cjs +1 -0
  92. package/dist/actions/list-git-hub-repos.cjs.map +1 -1
  93. package/dist/actions/list-git-hub-repos.d.cts +3 -13
  94. package/dist/actions/list-git-hub-repos.d.cts.map +1 -1
  95. package/dist/actions/list-git-hub-repos.d.mts +3 -13
  96. package/dist/actions/list-git-hub-repos.d.mts.map +1 -1
  97. package/dist/actions/list-git-hub-repos.mjs +1 -0
  98. package/dist/actions/list-git-hub-repos.mjs.map +1 -1
  99. package/dist/actions/list-git-hub-writable-scopes.cjs +1 -0
  100. package/dist/actions/list-git-hub-writable-scopes.cjs.map +1 -1
  101. package/dist/actions/list-git-hub-writable-scopes.d.cts +3 -13
  102. package/dist/actions/list-git-hub-writable-scopes.d.cts.map +1 -1
  103. package/dist/actions/list-git-hub-writable-scopes.d.mts +3 -13
  104. package/dist/actions/list-git-hub-writable-scopes.d.mts.map +1 -1
  105. package/dist/actions/list-git-hub-writable-scopes.mjs +1 -0
  106. package/dist/actions/list-git-hub-writable-scopes.mjs.map +1 -1
  107. package/dist/actions/list-integration-auths.cjs +1 -0
  108. package/dist/actions/list-integration-auths.cjs.map +1 -1
  109. package/dist/actions/list-integration-auths.d.cts +3 -13
  110. package/dist/actions/list-integration-auths.d.cts.map +1 -1
  111. package/dist/actions/list-integration-auths.d.mts +3 -13
  112. package/dist/actions/list-integration-auths.d.mts.map +1 -1
  113. package/dist/actions/list-integration-auths.mjs +1 -0
  114. package/dist/actions/list-integration-auths.mjs.map +1 -1
  115. package/dist/actions/list-notification-deliveries.cjs +1 -0
  116. package/dist/actions/list-notification-deliveries.cjs.map +1 -1
  117. package/dist/actions/list-notification-deliveries.d.cts +3 -13
  118. package/dist/actions/list-notification-deliveries.d.cts.map +1 -1
  119. package/dist/actions/list-notification-deliveries.d.mts +3 -13
  120. package/dist/actions/list-notification-deliveries.d.mts.map +1 -1
  121. package/dist/actions/list-notification-deliveries.mjs +1 -0
  122. package/dist/actions/list-notification-deliveries.mjs.map +1 -1
  123. package/dist/actions/list-trusted-domains.cjs +1 -0
  124. package/dist/actions/list-trusted-domains.cjs.map +1 -1
  125. package/dist/actions/list-trusted-domains.d.cts +3 -15
  126. package/dist/actions/list-trusted-domains.d.cts.map +1 -1
  127. package/dist/actions/list-trusted-domains.d.mts +3 -15
  128. package/dist/actions/list-trusted-domains.d.mts.map +1 -1
  129. package/dist/actions/list-trusted-domains.mjs +1 -0
  130. package/dist/actions/list-trusted-domains.mjs.map +1 -1
  131. package/dist/actions/update-project.cjs +1 -0
  132. package/dist/actions/update-project.cjs.map +1 -1
  133. package/dist/actions/update-project.d.cts +3 -20
  134. package/dist/actions/update-project.d.cts.map +1 -1
  135. package/dist/actions/update-project.d.mts +3 -20
  136. package/dist/actions/update-project.d.mts.map +1 -1
  137. package/dist/actions/update-project.mjs +1 -0
  138. package/dist/actions/update-project.mjs.map +1 -1
  139. package/dist/actions/update-service-instance.cjs +1 -0
  140. package/dist/actions/update-service-instance.cjs.map +1 -1
  141. package/dist/actions/update-service-instance.d.cts +3 -31
  142. package/dist/actions/update-service-instance.d.cts.map +1 -1
  143. package/dist/actions/update-service-instance.d.mts +3 -31
  144. package/dist/actions/update-service-instance.d.mts.map +1 -1
  145. package/dist/actions/update-service-instance.mjs +1 -0
  146. package/dist/actions/update-service-instance.mjs.map +1 -1
  147. package/dist/app.cjs +2 -2
  148. package/dist/app.cjs.map +1 -1
  149. package/dist/app.d.cts +4 -6
  150. package/dist/app.d.cts.map +1 -1
  151. package/dist/app.d.mts +4 -6
  152. package/dist/app.d.mts.map +1 -1
  153. package/dist/app.mjs +0 -1
  154. package/dist/app.mjs.map +1 -1
  155. package/dist/index.d.cts +1 -1
  156. package/dist/index.d.mts +1 -1
  157. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"disconnect-user-discord.mjs","names":[],"sources":["../../src/actions/disconnect-user-discord.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RailwayDisconnectUserDiscordInput = z.object({}).describe(\"Request model for disconnecting the authenticated user's Discord account from Railway.\\n\\nThis mutation requires no input parameters as it operates on the authenticated user's account.\");\nexport const RailwayDisconnectUserDiscordOutput = z.object({\n success: z.boolean().describe(\"Whether the Discord account was successfully disconnected.\").nullable().optional(),\n}).passthrough().describe(\"Response model for the Discord disconnect operation.\");\n\nexport const railwayDisconnectUserDiscord = action(\"RAILWAY_DISCONNECT_USER_DISCORD\", {\n slug: \"railway-disconnect-user-discord\",\n name: \"Disconnect Discord account\",\n description: \"Disconnects the authenticated user's Railway account from Discord. Use when you need to unlink a Discord account that was previously connected to Railway for notifications, authentication, or team management. This action is irreversible for the disconnect operation — the user must manually reconnect through the Railway dashboard or Discord OAuth flow if needed.\",\n input: RailwayDisconnectUserDiscordInput,\n output: RailwayDisconnectUserDiscordOutput,\n});\n"],"mappings":";;AASA,MAAa,+BAA+B,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAT+C,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,0LAS9D;CACP,QATgD,EAAE,OAAO,EACzD,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAClH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sDAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"disconnect-user-discord.mjs","names":[],"sources":["../../src/actions/disconnect-user-discord.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { railway } from \"../app\";\n\nexport const RailwayDisconnectUserDiscordInput = z.object({}).describe(\"Request model for disconnecting the authenticated user's Discord account from Railway.\\n\\nThis mutation requires no input parameters as it operates on the authenticated user's account.\");\nexport const RailwayDisconnectUserDiscordOutput = z.object({\n success: z.boolean().describe(\"Whether the Discord account was successfully disconnected.\").nullable().optional(),\n}).passthrough().describe(\"Response model for the Discord disconnect operation.\");\n\nexport const railwayDisconnectUserDiscord: AppAction<\n typeof RailwayDisconnectUserDiscordInput,\n typeof RailwayDisconnectUserDiscordOutput,\n typeof railway.credential\n> = action(\"RAILWAY_DISCONNECT_USER_DISCORD\", {\n slug: \"railway-disconnect-user-discord\",\n name: \"Disconnect Discord account\",\n description: \"Disconnects the authenticated user's Railway account from Discord. Use when you need to unlink a Discord account that was previously connected to Railway for notifications, authentication, or team management. This action is irreversible for the disconnect operation — the user must manually reconnect through the Railway dashboard or Discord OAuth flow if needed.\",\n input: RailwayDisconnectUserDiscordInput,\n output: RailwayDisconnectUserDiscordOutput,\n});\n"],"mappings":";;;AAWA,MAAa,+BAIT,OAAO,mCAAmC;CAC5C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAb+C,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,0LAa9D;CACP,QAbgD,EAAE,OAAO,EACzD,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAClH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sDAWhB;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/get-deployment-logs.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-deployment-logs.cjs","names":["z","action"],"sources":["../../src/actions/get-deployment-logs.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RailwayGetDeploymentLogsInput = z.object({\n limit: z.number().int().default(25).describe(\"Maximum number of log entries to retrieve. Defaults to 25.\").optional(),\n deployment_id: z.string().describe(\"The unique identifier of the deployment to retrieve runtime logs for.\"),\n}).describe(\"Request parameters for retrieving deployment logs.\");\nconst RailwayGetDeploymentLogs_LogEntrySchema = z.object({\n message: z.string().describe(\"The log message content.\").nullable().optional(),\n severity: z.string().describe(\"The log severity level (e.g., 'INFO', 'WARN', 'ERROR').\").nullable().optional(),\n timestamp: z.string().describe(\"ISO 8601 timestamp when the log entry was recorded.\").nullable().optional(),\n}).passthrough().describe(\"A single deployment log entry.\");\nexport const RailwayGetDeploymentLogsOutput = z.object({\n deployment_logs: z.array(RailwayGetDeploymentLogs_LogEntrySchema).describe(\"List of runtime log entries for the deployment.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for retrieving deployment logs.\");\n\nexport const railwayGetDeploymentLogs = action(\"RAILWAY_GET_DEPLOYMENT_LOGS\", {\n slug: \"railway-get-deployment-logs\",\n name: \"Get Deployment Logs\",\n description: \"Retrieve runtime logs for a deployment. Use when you need to view the runtime application logs for troubleshooting runtime issues, monitoring application behavior, or debugging errors that occur during deployment execution. This action queries the Railway GraphQL API for runtime log entries associated with the specified deployment ID. The logs are returned in reverse chronological order (most recent first).\",\n input: RailwayGetDeploymentLogsInput,\n output: RailwayGetDeploymentLogsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACpH,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE;AAC5G,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAChE,MAAM,0CAA0CA,IAAAA,EAAE,OAAO;CACvD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gCAAgC;AAC1D,MAAa,iCAAiCA,IAAAA,EAAE,OAAO,EACrD,iBAAiBA,IAAAA,EAAE,MAAM,uCAAuC,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACpJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAE3E,MAAa,2BAA2BC,eAAAA,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-deployment-logs.cjs","names":["z","action"],"sources":["../../src/actions/get-deployment-logs.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { railway } from \"../app\";\n\nexport const RailwayGetDeploymentLogsInput = z.object({\n limit: z.number().int().default(25).describe(\"Maximum number of log entries to retrieve. Defaults to 25.\").optional(),\n deployment_id: z.string().describe(\"The unique identifier of the deployment to retrieve runtime logs for.\"),\n}).describe(\"Request parameters for retrieving deployment logs.\");\nconst RailwayGetDeploymentLogs_LogEntrySchema = z.object({\n message: z.string().describe(\"The log message content.\").nullable().optional(),\n severity: z.string().describe(\"The log severity level (e.g., 'INFO', 'WARN', 'ERROR').\").nullable().optional(),\n timestamp: z.string().describe(\"ISO 8601 timestamp when the log entry was recorded.\").nullable().optional(),\n}).passthrough().describe(\"A single deployment log entry.\");\nexport const RailwayGetDeploymentLogsOutput = z.object({\n deployment_logs: z.array(RailwayGetDeploymentLogs_LogEntrySchema).describe(\"List of runtime log entries for the deployment.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for retrieving deployment logs.\");\n\nexport const railwayGetDeploymentLogs: AppAction<\n typeof RailwayGetDeploymentLogsInput,\n typeof RailwayGetDeploymentLogsOutput,\n typeof railway.credential\n> = action(\"RAILWAY_GET_DEPLOYMENT_LOGS\", {\n slug: \"railway-get-deployment-logs\",\n name: \"Get Deployment Logs\",\n description: \"Retrieve runtime logs for a deployment. Use when you need to view the runtime application logs for troubleshooting runtime issues, monitoring application behavior, or debugging errors that occur during deployment execution. This action queries the Railway GraphQL API for runtime log entries associated with the specified deployment ID. The logs are returned in reverse chronological order (most recent first).\",\n input: RailwayGetDeploymentLogsInput,\n output: RailwayGetDeploymentLogsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACpH,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE;AAC5G,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAChE,MAAM,0CAA0CA,IAAAA,EAAE,OAAO;CACvD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gCAAgC;AAC1D,MAAa,iCAAiCA,IAAAA,EAAE,OAAO,EACrD,iBAAiBA,IAAAA,EAAE,MAAM,uCAAuC,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACpJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAE3E,MAAa,2BAITC,eAAAA,OAAO,+BAA+B;CACxC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { railway } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-deployment-logs.d.ts
@@ -12,22 +14,7 @@ declare const RailwayGetDeploymentLogsOutput: z.ZodObject<{
12
14
  timestamp: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
15
  }, z.core.$loose>>>>;
14
16
  }, z.core.$loose>;
15
- declare const railwayGetDeploymentLogs: import("@keystrokehq/action").WorkflowActionDefinition<{
16
- deployment_id: string;
17
- limit?: number | undefined;
18
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"railway", z.ZodObject<{
19
- connectionId: z.ZodString;
20
- entityId: z.ZodString;
21
- instanceId: z.ZodString;
22
- }, z.core.$strip>, z.ZodObject<{
23
- generic_api_key: z.ZodString;
24
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"railway", z.ZodObject<{
25
- connectionId: z.ZodString;
26
- entityId: z.ZodString;
27
- instanceId: z.ZodString;
28
- }, z.core.$strip>, z.ZodObject<{
29
- generic_api_key: z.ZodString;
30
- }, z.core.$strip>>]>;
17
+ declare const railwayGetDeploymentLogs: AppAction<typeof RailwayGetDeploymentLogsInput, typeof RailwayGetDeploymentLogsOutput, typeof railway.credential>;
31
18
  //#endregion
32
19
  export { railwayGetDeploymentLogs };
33
20
  //# sourceMappingURL=get-deployment-logs.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-deployment-logs.d.cts","names":[],"sources":["../../src/actions/get-deployment-logs.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;cAS7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;cAI9B,wBAAA,gCAAwB,wBAAA"}
1
+ {"version":3,"file":"get-deployment-logs.d.cts","names":[],"sources":["../../src/actions/get-deployment-logs.ts"],"mappings":";;;;;cAMa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;cAS7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;cAI9B,wBAAA,EAA0B,SAAA,QAC9B,6BAAA,SACA,8BAAA,SACA,OAAA,CAAQ,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { railway } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-deployment-logs.d.ts
@@ -12,22 +14,7 @@ declare const RailwayGetDeploymentLogsOutput: z.ZodObject<{
12
14
  timestamp: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
15
  }, z.core.$loose>>>>;
14
16
  }, z.core.$loose>;
15
- declare const railwayGetDeploymentLogs: import("@keystrokehq/action").WorkflowActionDefinition<{
16
- deployment_id: string;
17
- limit?: number | undefined;
18
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"railway", z.ZodObject<{
19
- connectionId: z.ZodString;
20
- entityId: z.ZodString;
21
- instanceId: z.ZodString;
22
- }, z.core.$strip>, z.ZodObject<{
23
- generic_api_key: z.ZodString;
24
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"railway", z.ZodObject<{
25
- connectionId: z.ZodString;
26
- entityId: z.ZodString;
27
- instanceId: z.ZodString;
28
- }, z.core.$strip>, z.ZodObject<{
29
- generic_api_key: z.ZodString;
30
- }, z.core.$strip>>]>;
17
+ declare const railwayGetDeploymentLogs: AppAction<typeof RailwayGetDeploymentLogsInput, typeof RailwayGetDeploymentLogsOutput, typeof railway.credential>;
31
18
  //#endregion
32
19
  export { railwayGetDeploymentLogs };
33
20
  //# sourceMappingURL=get-deployment-logs.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-deployment-logs.d.mts","names":[],"sources":["../../src/actions/get-deployment-logs.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;cAS7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;cAI9B,wBAAA,gCAAwB,wBAAA"}
1
+ {"version":3,"file":"get-deployment-logs.d.mts","names":[],"sources":["../../src/actions/get-deployment-logs.ts"],"mappings":";;;;;cAMa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;cAS7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;cAI9B,wBAAA,EAA0B,SAAA,QAC9B,6BAAA,SACA,8BAAA,SACA,OAAA,CAAQ,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/get-deployment-logs.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-deployment-logs.mjs","names":[],"sources":["../../src/actions/get-deployment-logs.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RailwayGetDeploymentLogsInput = z.object({\n limit: z.number().int().default(25).describe(\"Maximum number of log entries to retrieve. Defaults to 25.\").optional(),\n deployment_id: z.string().describe(\"The unique identifier of the deployment to retrieve runtime logs for.\"),\n}).describe(\"Request parameters for retrieving deployment logs.\");\nconst RailwayGetDeploymentLogs_LogEntrySchema = z.object({\n message: z.string().describe(\"The log message content.\").nullable().optional(),\n severity: z.string().describe(\"The log severity level (e.g., 'INFO', 'WARN', 'ERROR').\").nullable().optional(),\n timestamp: z.string().describe(\"ISO 8601 timestamp when the log entry was recorded.\").nullable().optional(),\n}).passthrough().describe(\"A single deployment log entry.\");\nexport const RailwayGetDeploymentLogsOutput = z.object({\n deployment_logs: z.array(RailwayGetDeploymentLogs_LogEntrySchema).describe(\"List of runtime log entries for the deployment.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for retrieving deployment logs.\");\n\nexport const railwayGetDeploymentLogs = action(\"RAILWAY_GET_DEPLOYMENT_LOGS\", {\n slug: \"railway-get-deployment-logs\",\n name: \"Get Deployment Logs\",\n description: \"Retrieve runtime logs for a deployment. Use when you need to view the runtime application logs for troubleshooting runtime issues, monitoring application behavior, or debugging errors that occur during deployment execution. This action queries the Railway GraphQL API for runtime log entries associated with the specified deployment ID. The logs are returned in reverse chronological order (most recent first).\",\n input: RailwayGetDeploymentLogsInput,\n output: RailwayGetDeploymentLogsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgC,EAAE,OAAO;CACpD,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACpH,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE;AAC5G,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAChE,MAAM,0CAA0C,EAAE,OAAO;CACvD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gCAAgC;AAK1D,MAAa,2BAA2B,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT4C,EAAE,OAAO,EACrD,iBAAiB,EAAE,MAAM,uCAAuC,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACpJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"get-deployment-logs.mjs","names":[],"sources":["../../src/actions/get-deployment-logs.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { railway } from \"../app\";\n\nexport const RailwayGetDeploymentLogsInput = z.object({\n limit: z.number().int().default(25).describe(\"Maximum number of log entries to retrieve. Defaults to 25.\").optional(),\n deployment_id: z.string().describe(\"The unique identifier of the deployment to retrieve runtime logs for.\"),\n}).describe(\"Request parameters for retrieving deployment logs.\");\nconst RailwayGetDeploymentLogs_LogEntrySchema = z.object({\n message: z.string().describe(\"The log message content.\").nullable().optional(),\n severity: z.string().describe(\"The log severity level (e.g., 'INFO', 'WARN', 'ERROR').\").nullable().optional(),\n timestamp: z.string().describe(\"ISO 8601 timestamp when the log entry was recorded.\").nullable().optional(),\n}).passthrough().describe(\"A single deployment log entry.\");\nexport const RailwayGetDeploymentLogsOutput = z.object({\n deployment_logs: z.array(RailwayGetDeploymentLogs_LogEntrySchema).describe(\"List of runtime log entries for the deployment.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for retrieving deployment logs.\");\n\nexport const railwayGetDeploymentLogs: AppAction<\n typeof RailwayGetDeploymentLogsInput,\n typeof RailwayGetDeploymentLogsOutput,\n typeof railway.credential\n> = action(\"RAILWAY_GET_DEPLOYMENT_LOGS\", {\n slug: \"railway-get-deployment-logs\",\n name: \"Get Deployment Logs\",\n description: \"Retrieve runtime logs for a deployment. Use when you need to view the runtime application logs for troubleshooting runtime issues, monitoring application behavior, or debugging errors that occur during deployment execution. This action queries the Railway GraphQL API for runtime log entries associated with the specified deployment ID. The logs are returned in reverse chronological order (most recent first).\",\n input: RailwayGetDeploymentLogsInput,\n output: RailwayGetDeploymentLogsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,gCAAgC,EAAE,OAAO;CACpD,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACpH,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE;AAC5G,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAChE,MAAM,0CAA0C,EAAE,OAAO;CACvD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gCAAgC;AAK1D,MAAa,2BAIT,OAAO,+BAA+B;CACxC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAb4C,EAAE,OAAO,EACrD,iBAAiB,EAAE,MAAM,uCAAuC,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACpJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAWhB;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/get-environment.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-environment.cjs","names":["z","action"],"sources":["../../src/actions/get-environment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RailwayGetEnvironmentInput = z.object({\n id: z.string().describe(\"The unique identifier of the environment to retrieve. Example: 'abc123-def4-5678-ghij'\"),\n}).describe(\"Request schema for getting environment details.\");\nconst RailwayGetEnvironment_LatestDeploymentSchema = z.object({\n id: z.string().describe(\"The unique identifier of the latest deployment.\").nullable().optional(),\n status: z.string().describe(\"The status of the latest deployment (e.g., 'SUCCESS', 'FAILURE', 'BUILDING').\").nullable().optional(),\n}).passthrough().describe(\"Latest deployment information for a service instance.\");\nconst RailwayGetEnvironment_ServiceInstanceNodeSchema = z.object({\n id: z.string().describe(\"The unique identifier of the service instance.\").nullable().optional(),\n service_name: z.string().describe(\"The name of the service.\").nullable().optional(),\n latest_deployment: RailwayGetEnvironment_LatestDeploymentSchema.nullable().optional(),\n}).passthrough().describe(\"Service instance node within the environment.\");\nconst RailwayGetEnvironment_ServiceInstanceEdgeSchema = z.object({\n node: RailwayGetEnvironment_ServiceInstanceNodeSchema.nullable().optional(),\n}).passthrough().describe(\"Edge containing a service instance node.\");\nconst RailwayGetEnvironment_ServiceInstancesConnectionSchema = z.object({\n edges: z.array(RailwayGetEnvironment_ServiceInstanceEdgeSchema).describe(\"List of service instance edges.\").nullable().optional(),\n}).passthrough().describe(\"Connection for service instances in the environment.\");\nexport const RailwayGetEnvironmentOutput = z.object({\n id: z.string().describe(\"The unique identifier of the environment.\").nullable().optional(),\n name: z.string().describe(\"The name of the environment.\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the environment was created.\").nullable().optional(),\n service_instances: RailwayGetEnvironment_ServiceInstancesConnectionSchema.nullable().optional(),\n}).passthrough().describe(\"Response schema for the environment query.\");\n\nexport const railwayGetEnvironment = action(\"RAILWAY_GET_ENVIRONMENT\", {\n slug: \"railway-get-environment\",\n name: \"Get Environment\",\n description: \"Get details of a specific Railway environment by its ID, including service instances and deployment information. Use this action when you need to retrieve detailed information about an environment, such as its name, creation timestamp, and the service instances deployed within it, along with their latest deployment statuses. This is a read-only action that queries the Railway GraphQL API.\",\n input: RailwayGetEnvironmentInput,\n output: RailwayGetEnvironmentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF,EAClH,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC7D,MAAM,+CAA+CA,IAAAA,EAAE,OAAO;CAC5D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAAuD;AACjF,MAAM,kDAAkDA,IAAAA,EAAE,OAAO;CAC/D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,mBAAmB,6CAA6C,SAAS,CAAC,CAAC,SAAS;AACtF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAA+C;AACzE,MAAM,kDAAkDA,IAAAA,EAAE,OAAO,EAC/D,MAAM,gDAAgD,SAAS,CAAC,CAAC,SAAS,EAC5E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAA0C;AACpE,MAAM,yDAAyDA,IAAAA,EAAE,OAAO,EACtE,OAAOA,IAAAA,EAAE,MAAM,+CAA+C,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAClI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sDAAsD;AAChF,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,mBAAmB,uDAAuD,SAAS,CAAC,CAAC,SAAS;AAChG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AAEtE,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-environment.cjs","names":["z","action"],"sources":["../../src/actions/get-environment.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { railway } from \"../app\";\n\nexport const RailwayGetEnvironmentInput = z.object({\n id: z.string().describe(\"The unique identifier of the environment to retrieve. Example: 'abc123-def4-5678-ghij'\"),\n}).describe(\"Request schema for getting environment details.\");\nconst RailwayGetEnvironment_LatestDeploymentSchema = z.object({\n id: z.string().describe(\"The unique identifier of the latest deployment.\").nullable().optional(),\n status: z.string().describe(\"The status of the latest deployment (e.g., 'SUCCESS', 'FAILURE', 'BUILDING').\").nullable().optional(),\n}).passthrough().describe(\"Latest deployment information for a service instance.\");\nconst RailwayGetEnvironment_ServiceInstanceNodeSchema = z.object({\n id: z.string().describe(\"The unique identifier of the service instance.\").nullable().optional(),\n service_name: z.string().describe(\"The name of the service.\").nullable().optional(),\n latest_deployment: RailwayGetEnvironment_LatestDeploymentSchema.nullable().optional(),\n}).passthrough().describe(\"Service instance node within the environment.\");\nconst RailwayGetEnvironment_ServiceInstanceEdgeSchema = z.object({\n node: RailwayGetEnvironment_ServiceInstanceNodeSchema.nullable().optional(),\n}).passthrough().describe(\"Edge containing a service instance node.\");\nconst RailwayGetEnvironment_ServiceInstancesConnectionSchema = z.object({\n edges: z.array(RailwayGetEnvironment_ServiceInstanceEdgeSchema).describe(\"List of service instance edges.\").nullable().optional(),\n}).passthrough().describe(\"Connection for service instances in the environment.\");\nexport const RailwayGetEnvironmentOutput = z.object({\n id: z.string().describe(\"The unique identifier of the environment.\").nullable().optional(),\n name: z.string().describe(\"The name of the environment.\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the environment was created.\").nullable().optional(),\n service_instances: RailwayGetEnvironment_ServiceInstancesConnectionSchema.nullable().optional(),\n}).passthrough().describe(\"Response schema for the environment query.\");\n\nexport const railwayGetEnvironment: AppAction<\n typeof RailwayGetEnvironmentInput,\n typeof RailwayGetEnvironmentOutput,\n typeof railway.credential\n> = action(\"RAILWAY_GET_ENVIRONMENT\", {\n slug: \"railway-get-environment\",\n name: \"Get Environment\",\n description: \"Get details of a specific Railway environment by its ID, including service instances and deployment information. Use this action when you need to retrieve detailed information about an environment, such as its name, creation timestamp, and the service instances deployed within it, along with their latest deployment statuses. This is a read-only action that queries the Railway GraphQL API.\",\n input: RailwayGetEnvironmentInput,\n output: RailwayGetEnvironmentOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF,EAClH,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC7D,MAAM,+CAA+CA,IAAAA,EAAE,OAAO;CAC5D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAAuD;AACjF,MAAM,kDAAkDA,IAAAA,EAAE,OAAO;CAC/D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,mBAAmB,6CAA6C,SAAS,CAAC,CAAC,SAAS;AACtF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAA+C;AACzE,MAAM,kDAAkDA,IAAAA,EAAE,OAAO,EAC/D,MAAM,gDAAgD,SAAS,CAAC,CAAC,SAAS,EAC5E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAA0C;AACpE,MAAM,yDAAyDA,IAAAA,EAAE,OAAO,EACtE,OAAOA,IAAAA,EAAE,MAAM,+CAA+C,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAClI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sDAAsD;AAChF,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,mBAAmB,uDAAuD,SAAS,CAAC,CAAC,SAAS;AAChG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AAEtE,MAAa,wBAITC,eAAAA,OAAO,2BAA2B;CACpC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { railway } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-environment.d.ts
@@ -21,21 +23,7 @@ declare const RailwayGetEnvironmentOutput: z.ZodObject<{
21
23
  }, z.core.$loose>>>>;
22
24
  }, z.core.$loose>>>;
23
25
  }, z.core.$loose>;
24
- declare const railwayGetEnvironment: import("@keystrokehq/action").WorkflowActionDefinition<{
25
- id: string;
26
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"railway", z.ZodObject<{
27
- connectionId: z.ZodString;
28
- entityId: z.ZodString;
29
- instanceId: z.ZodString;
30
- }, z.core.$strip>, z.ZodObject<{
31
- generic_api_key: z.ZodString;
32
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"railway", z.ZodObject<{
33
- connectionId: z.ZodString;
34
- entityId: z.ZodString;
35
- instanceId: z.ZodString;
36
- }, z.core.$strip>, z.ZodObject<{
37
- generic_api_key: z.ZodString;
38
- }, z.core.$strip>>]>;
26
+ declare const railwayGetEnvironment: AppAction<typeof RailwayGetEnvironmentInput, typeof RailwayGetEnvironmentOutput, typeof railway.credential>;
39
27
  //#endregion
40
28
  export { railwayGetEnvironment };
41
29
  //# sourceMappingURL=get-environment.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-environment.d.cts","names":[],"sources":["../../src/actions/get-environment.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;cAkB1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAO3B,qBAAA,gCAAqB,wBAAA"}
1
+ {"version":3,"file":"get-environment.d.cts","names":[],"sources":["../../src/actions/get-environment.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;cAkB1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAO3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,SACA,OAAA,CAAQ,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { railway } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-environment.d.ts
@@ -21,21 +23,7 @@ declare const RailwayGetEnvironmentOutput: z.ZodObject<{
21
23
  }, z.core.$loose>>>>;
22
24
  }, z.core.$loose>>>;
23
25
  }, z.core.$loose>;
24
- declare const railwayGetEnvironment: import("@keystrokehq/action").WorkflowActionDefinition<{
25
- id: string;
26
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"railway", z.ZodObject<{
27
- connectionId: z.ZodString;
28
- entityId: z.ZodString;
29
- instanceId: z.ZodString;
30
- }, z.core.$strip>, z.ZodObject<{
31
- generic_api_key: z.ZodString;
32
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"railway", z.ZodObject<{
33
- connectionId: z.ZodString;
34
- entityId: z.ZodString;
35
- instanceId: z.ZodString;
36
- }, z.core.$strip>, z.ZodObject<{
37
- generic_api_key: z.ZodString;
38
- }, z.core.$strip>>]>;
26
+ declare const railwayGetEnvironment: AppAction<typeof RailwayGetEnvironmentInput, typeof RailwayGetEnvironmentOutput, typeof railway.credential>;
39
27
  //#endregion
40
28
  export { railwayGetEnvironment };
41
29
  //# sourceMappingURL=get-environment.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-environment.d.mts","names":[],"sources":["../../src/actions/get-environment.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;cAkB1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAO3B,qBAAA,gCAAqB,wBAAA"}
1
+ {"version":3,"file":"get-environment.d.mts","names":[],"sources":["../../src/actions/get-environment.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;cAkB1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAO3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,SACA,OAAA,CAAQ,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/get-environment.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-environment.mjs","names":[],"sources":["../../src/actions/get-environment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RailwayGetEnvironmentInput = z.object({\n id: z.string().describe(\"The unique identifier of the environment to retrieve. Example: 'abc123-def4-5678-ghij'\"),\n}).describe(\"Request schema for getting environment details.\");\nconst RailwayGetEnvironment_LatestDeploymentSchema = z.object({\n id: z.string().describe(\"The unique identifier of the latest deployment.\").nullable().optional(),\n status: z.string().describe(\"The status of the latest deployment (e.g., 'SUCCESS', 'FAILURE', 'BUILDING').\").nullable().optional(),\n}).passthrough().describe(\"Latest deployment information for a service instance.\");\nconst RailwayGetEnvironment_ServiceInstanceNodeSchema = z.object({\n id: z.string().describe(\"The unique identifier of the service instance.\").nullable().optional(),\n service_name: z.string().describe(\"The name of the service.\").nullable().optional(),\n latest_deployment: RailwayGetEnvironment_LatestDeploymentSchema.nullable().optional(),\n}).passthrough().describe(\"Service instance node within the environment.\");\nconst RailwayGetEnvironment_ServiceInstanceEdgeSchema = z.object({\n node: RailwayGetEnvironment_ServiceInstanceNodeSchema.nullable().optional(),\n}).passthrough().describe(\"Edge containing a service instance node.\");\nconst RailwayGetEnvironment_ServiceInstancesConnectionSchema = z.object({\n edges: z.array(RailwayGetEnvironment_ServiceInstanceEdgeSchema).describe(\"List of service instance edges.\").nullable().optional(),\n}).passthrough().describe(\"Connection for service instances in the environment.\");\nexport const RailwayGetEnvironmentOutput = z.object({\n id: z.string().describe(\"The unique identifier of the environment.\").nullable().optional(),\n name: z.string().describe(\"The name of the environment.\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the environment was created.\").nullable().optional(),\n service_instances: RailwayGetEnvironment_ServiceInstancesConnectionSchema.nullable().optional(),\n}).passthrough().describe(\"Response schema for the environment query.\");\n\nexport const railwayGetEnvironment = action(\"RAILWAY_GET_ENVIRONMENT\", {\n slug: \"railway-get-environment\",\n name: \"Get Environment\",\n description: \"Get details of a specific Railway environment by its ID, including service instances and deployment information. Use this action when you need to retrieve detailed information about an environment, such as its name, creation timestamp, and the service instances deployed within it, along with their latest deployment statuses. This is a read-only action that queries the Railway GraphQL API.\",\n input: RailwayGetEnvironmentInput,\n output: RailwayGetEnvironmentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6B,EAAE,OAAO,EACjD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF,EAClH,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC7D,MAAM,+CAA+C,EAAE,OAAO;CAC5D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAAuD;AACjF,MAAM,kDAAkD,EAAE,OAAO;CAC/D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,mBAAmB,6CAA6C,SAAS,CAAC,CAAC,SAAS;AACtF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAA+C;AACzE,MAAM,kDAAkD,EAAE,OAAO,EAC/D,MAAM,gDAAgD,SAAS,CAAC,CAAC,SAAS,EAC5E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAA0C;AACpE,MAAM,yDAAyD,EAAE,OAAO,EACtE,OAAO,EAAE,MAAM,+CAA+C,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAClI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sDAAsD;AAQhF,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZyC,EAAE,OAAO;EAClD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnG,mBAAmB,uDAAuD,SAAS,CAAC,CAAC,SAAS;CAChG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"get-environment.mjs","names":[],"sources":["../../src/actions/get-environment.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { railway } from \"../app\";\n\nexport const RailwayGetEnvironmentInput = z.object({\n id: z.string().describe(\"The unique identifier of the environment to retrieve. Example: 'abc123-def4-5678-ghij'\"),\n}).describe(\"Request schema for getting environment details.\");\nconst RailwayGetEnvironment_LatestDeploymentSchema = z.object({\n id: z.string().describe(\"The unique identifier of the latest deployment.\").nullable().optional(),\n status: z.string().describe(\"The status of the latest deployment (e.g., 'SUCCESS', 'FAILURE', 'BUILDING').\").nullable().optional(),\n}).passthrough().describe(\"Latest deployment information for a service instance.\");\nconst RailwayGetEnvironment_ServiceInstanceNodeSchema = z.object({\n id: z.string().describe(\"The unique identifier of the service instance.\").nullable().optional(),\n service_name: z.string().describe(\"The name of the service.\").nullable().optional(),\n latest_deployment: RailwayGetEnvironment_LatestDeploymentSchema.nullable().optional(),\n}).passthrough().describe(\"Service instance node within the environment.\");\nconst RailwayGetEnvironment_ServiceInstanceEdgeSchema = z.object({\n node: RailwayGetEnvironment_ServiceInstanceNodeSchema.nullable().optional(),\n}).passthrough().describe(\"Edge containing a service instance node.\");\nconst RailwayGetEnvironment_ServiceInstancesConnectionSchema = z.object({\n edges: z.array(RailwayGetEnvironment_ServiceInstanceEdgeSchema).describe(\"List of service instance edges.\").nullable().optional(),\n}).passthrough().describe(\"Connection for service instances in the environment.\");\nexport const RailwayGetEnvironmentOutput = z.object({\n id: z.string().describe(\"The unique identifier of the environment.\").nullable().optional(),\n name: z.string().describe(\"The name of the environment.\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the environment was created.\").nullable().optional(),\n service_instances: RailwayGetEnvironment_ServiceInstancesConnectionSchema.nullable().optional(),\n}).passthrough().describe(\"Response schema for the environment query.\");\n\nexport const railwayGetEnvironment: AppAction<\n typeof RailwayGetEnvironmentInput,\n typeof RailwayGetEnvironmentOutput,\n typeof railway.credential\n> = action(\"RAILWAY_GET_ENVIRONMENT\", {\n slug: \"railway-get-environment\",\n name: \"Get Environment\",\n description: \"Get details of a specific Railway environment by its ID, including service instances and deployment information. Use this action when you need to retrieve detailed information about an environment, such as its name, creation timestamp, and the service instances deployed within it, along with their latest deployment statuses. This is a read-only action that queries the Railway GraphQL API.\",\n input: RailwayGetEnvironmentInput,\n output: RailwayGetEnvironmentOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,6BAA6B,EAAE,OAAO,EACjD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF,EAClH,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC7D,MAAM,+CAA+C,EAAE,OAAO;CAC5D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAAuD;AACjF,MAAM,kDAAkD,EAAE,OAAO;CAC/D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,mBAAmB,6CAA6C,SAAS,CAAC,CAAC,SAAS;AACtF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAA+C;AACzE,MAAM,kDAAkD,EAAE,OAAO,EAC/D,MAAM,gDAAgD,SAAS,CAAC,CAAC,SAAS,EAC5E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAA0C;AACpE,MAAM,yDAAyD,EAAE,OAAO,EACtE,OAAO,EAAE,MAAM,+CAA+C,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAClI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sDAAsD;AAQhF,MAAa,wBAIT,OAAO,2BAA2B;CACpC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAhByC,EAAE,OAAO;EAClD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnG,mBAAmB,uDAAuD,SAAS,CAAC,CAAC,SAAS;CAChG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAWhB;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/get-git-hub-pr-info.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-git-hub-pr-info.cjs","names":["z","action"],"sources":["../../src/actions/get-git-hub-pr-info.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RailwayGetGitHubPrInfoInput = z.object({\n prNumber: z.number().int().describe(\"The pull request number (e.g., 1 for PR #1).\"),\n serviceId: z.string().describe(\"The unique identifier of the Railway service to get the PR info for.\"),\n}).describe(\"Request parameters for retrieving GitHub pull request information.\");\nexport const RailwayGetGitHubPrInfoOutput = z.object({\n body: z.string().describe(\"The body/description of the pull request.\").nullable().optional(),\n state: z.string().describe(\"The current state of the pull request (e.g., 'OPEN', 'CLOSED', 'MERGED').\").nullable().optional(),\n title: z.string().describe(\"The title of the pull request.\").nullable().optional(),\n author: z.string().describe(\"The GitHub username of the pull request author.\").nullable().optional(),\n additions: z.number().int().describe(\"The number of additions in the pull request.\").nullable().optional(),\n deletions: z.number().int().describe(\"The number of deletions in the pull request.\").nullable().optional(),\n mergeable: z.boolean().describe(\"Whether the pull request is mergeable.\").nullable().optional(),\n changedFiles: z.number().int().describe(\"The number of files changed in the pull request.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for GitHub pull request information.\");\n\nexport const railwayGetGitHubPrInfo = action(\"RAILWAY_GET_GIT_HUB_PR_INFO\", {\n slug: \"railway-get-git-hub-pr-info\",\n name: \"Get GitHub PR Info\",\n description: \"Get information for a GitHub pull request associated with a Railway service. Use this action when you need to retrieve details about a specific pull request, such as its title, state, URL, or author information, for monitoring PR status or integrating with CI/CD workflows. This is a read-only action that queries the Railway GraphQL API for pull request information linked to the specified service.\",\n input: RailwayGetGitHubPrInfoInput,\n output: RailwayGetGitHubPrInfoOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C;CAClF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE;AACvG,CAAC,CAAC,CAAC,SAAS,oEAAoE;AAChF,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5H,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sDAAsD;AAEhF,MAAa,yBAAyBC,eAAAA,OAAO,+BAA+B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-git-hub-pr-info.cjs","names":["z","action"],"sources":["../../src/actions/get-git-hub-pr-info.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { railway } from \"../app\";\n\nexport const RailwayGetGitHubPrInfoInput = z.object({\n prNumber: z.number().int().describe(\"The pull request number (e.g., 1 for PR #1).\"),\n serviceId: z.string().describe(\"The unique identifier of the Railway service to get the PR info for.\"),\n}).describe(\"Request parameters for retrieving GitHub pull request information.\");\nexport const RailwayGetGitHubPrInfoOutput = z.object({\n body: z.string().describe(\"The body/description of the pull request.\").nullable().optional(),\n state: z.string().describe(\"The current state of the pull request (e.g., 'OPEN', 'CLOSED', 'MERGED').\").nullable().optional(),\n title: z.string().describe(\"The title of the pull request.\").nullable().optional(),\n author: z.string().describe(\"The GitHub username of the pull request author.\").nullable().optional(),\n additions: z.number().int().describe(\"The number of additions in the pull request.\").nullable().optional(),\n deletions: z.number().int().describe(\"The number of deletions in the pull request.\").nullable().optional(),\n mergeable: z.boolean().describe(\"Whether the pull request is mergeable.\").nullable().optional(),\n changedFiles: z.number().int().describe(\"The number of files changed in the pull request.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for GitHub pull request information.\");\n\nexport const railwayGetGitHubPrInfo: AppAction<\n typeof RailwayGetGitHubPrInfoInput,\n typeof RailwayGetGitHubPrInfoOutput,\n typeof railway.credential\n> = action(\"RAILWAY_GET_GIT_HUB_PR_INFO\", {\n slug: \"railway-get-git-hub-pr-info\",\n name: \"Get GitHub PR Info\",\n description: \"Get information for a GitHub pull request associated with a Railway service. Use this action when you need to retrieve details about a specific pull request, such as its title, state, URL, or author information, for monitoring PR status or integrating with CI/CD workflows. This is a read-only action that queries the Railway GraphQL API for pull request information linked to the specified service.\",\n input: RailwayGetGitHubPrInfoInput,\n output: RailwayGetGitHubPrInfoOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C;CAClF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE;AACvG,CAAC,CAAC,CAAC,SAAS,oEAAoE;AAChF,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5H,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sDAAsD;AAEhF,MAAa,yBAITC,eAAAA,OAAO,+BAA+B;CACxC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { railway } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-git-hub-pr-info.d.ts
@@ -15,22 +17,7 @@ declare const RailwayGetGitHubPrInfoOutput: z.ZodObject<{
15
17
  mergeable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
16
18
  changedFiles: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
17
19
  }, z.core.$loose>;
18
- declare const railwayGetGitHubPrInfo: import("@keystrokehq/action").WorkflowActionDefinition<{
19
- prNumber: number;
20
- serviceId: string;
21
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"railway", z.ZodObject<{
22
- connectionId: z.ZodString;
23
- entityId: z.ZodString;
24
- instanceId: z.ZodString;
25
- }, z.core.$strip>, z.ZodObject<{
26
- generic_api_key: z.ZodString;
27
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"railway", z.ZodObject<{
28
- connectionId: z.ZodString;
29
- entityId: z.ZodString;
30
- instanceId: z.ZodString;
31
- }, z.core.$strip>, z.ZodObject<{
32
- generic_api_key: z.ZodString;
33
- }, z.core.$strip>>]>;
20
+ declare const railwayGetGitHubPrInfo: AppAction<typeof RailwayGetGitHubPrInfoInput, typeof RailwayGetGitHubPrInfoOutput, typeof railway.credential>;
34
21
  //#endregion
35
22
  export { railwayGetGitHubPrInfo };
36
23
  //# sourceMappingURL=get-git-hub-pr-info.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-git-hub-pr-info.d.cts","names":[],"sources":["../../src/actions/get-git-hub-pr-info.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;cAI3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;cAW5B,sBAAA,gCAAsB,wBAAA"}
1
+ {"version":3,"file":"get-git-hub-pr-info.d.cts","names":[],"sources":["../../src/actions/get-git-hub-pr-info.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;cAI3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;cAW5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,OAAA,CAAQ,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { railway } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-git-hub-pr-info.d.ts
@@ -15,22 +17,7 @@ declare const RailwayGetGitHubPrInfoOutput: z.ZodObject<{
15
17
  mergeable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
16
18
  changedFiles: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
17
19
  }, z.core.$loose>;
18
- declare const railwayGetGitHubPrInfo: import("@keystrokehq/action").WorkflowActionDefinition<{
19
- prNumber: number;
20
- serviceId: string;
21
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"railway", z.ZodObject<{
22
- connectionId: z.ZodString;
23
- entityId: z.ZodString;
24
- instanceId: z.ZodString;
25
- }, z.core.$strip>, z.ZodObject<{
26
- generic_api_key: z.ZodString;
27
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"railway", z.ZodObject<{
28
- connectionId: z.ZodString;
29
- entityId: z.ZodString;
30
- instanceId: z.ZodString;
31
- }, z.core.$strip>, z.ZodObject<{
32
- generic_api_key: z.ZodString;
33
- }, z.core.$strip>>]>;
20
+ declare const railwayGetGitHubPrInfo: AppAction<typeof RailwayGetGitHubPrInfoInput, typeof RailwayGetGitHubPrInfoOutput, typeof railway.credential>;
34
21
  //#endregion
35
22
  export { railwayGetGitHubPrInfo };
36
23
  //# sourceMappingURL=get-git-hub-pr-info.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-git-hub-pr-info.d.mts","names":[],"sources":["../../src/actions/get-git-hub-pr-info.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;cAI3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;cAW5B,sBAAA,gCAAsB,wBAAA"}
1
+ {"version":3,"file":"get-git-hub-pr-info.d.mts","names":[],"sources":["../../src/actions/get-git-hub-pr-info.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;cAI3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;cAW5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,OAAA,CAAQ,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 railwayGetGitHubPrInfo = action("RAILWAY_GET_GIT_HUB_PR_INFO", {
@@ -1 +1 @@
1
- {"version":3,"file":"get-git-hub-pr-info.mjs","names":[],"sources":["../../src/actions/get-git-hub-pr-info.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RailwayGetGitHubPrInfoInput = z.object({\n prNumber: z.number().int().describe(\"The pull request number (e.g., 1 for PR #1).\"),\n serviceId: z.string().describe(\"The unique identifier of the Railway service to get the PR info for.\"),\n}).describe(\"Request parameters for retrieving GitHub pull request information.\");\nexport const RailwayGetGitHubPrInfoOutput = z.object({\n body: z.string().describe(\"The body/description of the pull request.\").nullable().optional(),\n state: z.string().describe(\"The current state of the pull request (e.g., 'OPEN', 'CLOSED', 'MERGED').\").nullable().optional(),\n title: z.string().describe(\"The title of the pull request.\").nullable().optional(),\n author: z.string().describe(\"The GitHub username of the pull request author.\").nullable().optional(),\n additions: z.number().int().describe(\"The number of additions in the pull request.\").nullable().optional(),\n deletions: z.number().int().describe(\"The number of deletions in the pull request.\").nullable().optional(),\n mergeable: z.boolean().describe(\"Whether the pull request is mergeable.\").nullable().optional(),\n changedFiles: z.number().int().describe(\"The number of files changed in the pull request.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for GitHub pull request information.\");\n\nexport const railwayGetGitHubPrInfo = action(\"RAILWAY_GET_GIT_HUB_PR_INFO\", {\n slug: \"railway-get-git-hub-pr-info\",\n name: \"Get GitHub PR Info\",\n description: \"Get information for a GitHub pull request associated with a Railway service. Use this action when you need to retrieve details about a specific pull request, such as its title, state, URL, or author information, for monitoring PR status or integrating with CI/CD workflows. This is a read-only action that queries the Railway GraphQL API for pull request information linked to the specified service.\",\n input: RailwayGetGitHubPrInfoInput,\n output: RailwayGetGitHubPrInfoOutput,\n});\n"],"mappings":";;AAmBA,MAAa,yBAAyB,OAAO,+BAA+B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAnByC,EAAE,OAAO;EAClD,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C;EAClF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE;CACvG,CAAC,CAAC,CAAC,SAAS,oEAgBH;CACP,QAhB0C,EAAE,OAAO;EACnD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3F,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5H,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnG,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzG,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzG,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9F,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sDAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"get-git-hub-pr-info.mjs","names":[],"sources":["../../src/actions/get-git-hub-pr-info.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { railway } from \"../app\";\n\nexport const RailwayGetGitHubPrInfoInput = z.object({\n prNumber: z.number().int().describe(\"The pull request number (e.g., 1 for PR #1).\"),\n serviceId: z.string().describe(\"The unique identifier of the Railway service to get the PR info for.\"),\n}).describe(\"Request parameters for retrieving GitHub pull request information.\");\nexport const RailwayGetGitHubPrInfoOutput = z.object({\n body: z.string().describe(\"The body/description of the pull request.\").nullable().optional(),\n state: z.string().describe(\"The current state of the pull request (e.g., 'OPEN', 'CLOSED', 'MERGED').\").nullable().optional(),\n title: z.string().describe(\"The title of the pull request.\").nullable().optional(),\n author: z.string().describe(\"The GitHub username of the pull request author.\").nullable().optional(),\n additions: z.number().int().describe(\"The number of additions in the pull request.\").nullable().optional(),\n deletions: z.number().int().describe(\"The number of deletions in the pull request.\").nullable().optional(),\n mergeable: z.boolean().describe(\"Whether the pull request is mergeable.\").nullable().optional(),\n changedFiles: z.number().int().describe(\"The number of files changed in the pull request.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for GitHub pull request information.\");\n\nexport const railwayGetGitHubPrInfo: AppAction<\n typeof RailwayGetGitHubPrInfoInput,\n typeof RailwayGetGitHubPrInfoOutput,\n typeof railway.credential\n> = action(\"RAILWAY_GET_GIT_HUB_PR_INFO\", {\n slug: \"railway-get-git-hub-pr-info\",\n name: \"Get GitHub PR Info\",\n description: \"Get information for a GitHub pull request associated with a Railway service. Use this action when you need to retrieve details about a specific pull request, such as its title, state, URL, or author information, for monitoring PR status or integrating with CI/CD workflows. This is a read-only action that queries the Railway GraphQL API for pull request information linked to the specified service.\",\n input: RailwayGetGitHubPrInfoInput,\n output: RailwayGetGitHubPrInfoOutput,\n});\n"],"mappings":";;;AAqBA,MAAa,yBAIT,OAAO,+BAA+B;CACxC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAvByC,EAAE,OAAO;EAClD,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C;EAClF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE;CACvG,CAAC,CAAC,CAAC,SAAS,oEAoBH;CACP,QApB0C,EAAE,OAAO;EACnD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3F,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5H,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnG,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzG,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzG,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9F,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sDAWhB;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/get-user-kickback-earnings.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-user-kickback-earnings.cjs","names":["z","action"],"sources":["../../src/actions/get-user-kickback-earnings.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RailwayGetUserKickbackEarningsInput = z.object({}).describe(\"Request model for getting user kickback earnings.\");\nconst RailwayGetUserKickbackEarnings_UserKickbackEarningsSchema = z.object({\n total_amount: z.number().describe(\"The total amount of kickback earnings for the user.\").nullable().optional(),\n}).passthrough().describe(\"User kickback earnings data.\");\nexport const RailwayGetUserKickbackEarningsOutput = z.object({\n user_kickback_earnings: RailwayGetUserKickbackEarnings_UserKickbackEarningsSchema.nullable().optional(),\n}).passthrough().describe(\"Response model for the user kickback earnings query.\");\n\nexport const railwayGetUserKickbackEarnings = action(\"RAILWAY_GET_USER_KICKBACK_EARNINGS\", {\n slug: \"railway-get-user-kickback-earnings\",\n name: \"Get User Kickback Earnings\",\n description: \"Get the total kickback earnings for the authenticated Railway user. Use this action when you need to retrieve the kickback earnings information for the authenticated user, including the total amount earned and the currency. This is a read-only operation that queries the Railway GraphQL API. Kickback earnings are rewards earned through the Railway referral program when users you refer upgrade their Railway projects.\",\n input: RailwayGetUserKickbackEarningsInput,\n output: RailwayGetUserKickbackEarningsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sCAAsCA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC5H,MAAM,4DAA4DA,IAAAA,EAAE,OAAO,EACzE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC/G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8BAA8B;AACxD,MAAa,uCAAuCA,IAAAA,EAAE,OAAO,EAC3D,wBAAwB,0DAA0D,SAAS,CAAC,CAAC,SAAS,EACxG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sDAAsD;AAEhF,MAAa,iCAAiCC,eAAAA,OAAO,sCAAsC;CACzF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-user-kickback-earnings.cjs","names":["z","action"],"sources":["../../src/actions/get-user-kickback-earnings.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { railway } from \"../app\";\n\nexport const RailwayGetUserKickbackEarningsInput = z.object({}).describe(\"Request model for getting user kickback earnings.\");\nconst RailwayGetUserKickbackEarnings_UserKickbackEarningsSchema = z.object({\n total_amount: z.number().describe(\"The total amount of kickback earnings for the user.\").nullable().optional(),\n}).passthrough().describe(\"User kickback earnings data.\");\nexport const RailwayGetUserKickbackEarningsOutput = z.object({\n user_kickback_earnings: RailwayGetUserKickbackEarnings_UserKickbackEarningsSchema.nullable().optional(),\n}).passthrough().describe(\"Response model for the user kickback earnings query.\");\n\nexport const railwayGetUserKickbackEarnings: AppAction<\n typeof RailwayGetUserKickbackEarningsInput,\n typeof RailwayGetUserKickbackEarningsOutput,\n typeof railway.credential\n> = action(\"RAILWAY_GET_USER_KICKBACK_EARNINGS\", {\n slug: \"railway-get-user-kickback-earnings\",\n name: \"Get User Kickback Earnings\",\n description: \"Get the total kickback earnings for the authenticated Railway user. Use this action when you need to retrieve the kickback earnings information for the authenticated user, including the total amount earned and the currency. This is a read-only operation that queries the Railway GraphQL API. Kickback earnings are rewards earned through the Railway referral program when users you refer upgrade their Railway projects.\",\n input: RailwayGetUserKickbackEarningsInput,\n output: RailwayGetUserKickbackEarningsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,sCAAsCA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC5H,MAAM,4DAA4DA,IAAAA,EAAE,OAAO,EACzE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC/G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8BAA8B;AACxD,MAAa,uCAAuCA,IAAAA,EAAE,OAAO,EAC3D,wBAAwB,0DAA0D,SAAS,CAAC,CAAC,SAAS,EACxG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sDAAsD;AAEhF,MAAa,iCAITC,eAAAA,OAAO,sCAAsC;CAC/C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { railway } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-user-kickback-earnings.d.ts
@@ -7,19 +9,7 @@ declare const RailwayGetUserKickbackEarningsOutput: z.ZodObject<{
7
9
  total_amount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
8
10
  }, z.core.$loose>>>;
9
11
  }, z.core.$loose>;
10
- declare const railwayGetUserKickbackEarnings: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"railway", z.ZodObject<{
11
- connectionId: z.ZodString;
12
- entityId: z.ZodString;
13
- instanceId: z.ZodString;
14
- }, z.core.$strip>, z.ZodObject<{
15
- generic_api_key: z.ZodString;
16
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"railway", z.ZodObject<{
17
- connectionId: z.ZodString;
18
- entityId: z.ZodString;
19
- instanceId: z.ZodString;
20
- }, z.core.$strip>, z.ZodObject<{
21
- generic_api_key: z.ZodString;
22
- }, z.core.$strip>>]>;
12
+ declare const railwayGetUserKickbackEarnings: AppAction<typeof RailwayGetUserKickbackEarningsInput, typeof RailwayGetUserKickbackEarningsOutput, typeof railway.credential>;
23
13
  //#endregion
24
14
  export { railwayGetUserKickbackEarnings };
25
15
  //# sourceMappingURL=get-user-kickback-earnings.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-user-kickback-earnings.d.cts","names":[],"sources":["../../src/actions/get-user-kickback-earnings.ts"],"mappings":";;;cAIa,mCAAA,EAAmC,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAInC,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;;cAIpC,8BAAA,gCAA8B,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,YAAA,CAAA,CAAA,SAAA"}
1
+ {"version":3,"file":"get-user-kickback-earnings.d.cts","names":[],"sources":["../../src/actions/get-user-kickback-earnings.ts"],"mappings":";;;;;cAMa,mCAAA,EAAmC,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAInC,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;;cAIpC,8BAAA,EAAgC,SAAA,QACpC,mCAAA,SACA,oCAAA,SACA,OAAA,CAAQ,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { railway } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-user-kickback-earnings.d.ts
@@ -7,19 +9,7 @@ declare const RailwayGetUserKickbackEarningsOutput: z.ZodObject<{
7
9
  total_amount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
8
10
  }, z.core.$loose>>>;
9
11
  }, z.core.$loose>;
10
- declare const railwayGetUserKickbackEarnings: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"railway", z.ZodObject<{
11
- connectionId: z.ZodString;
12
- entityId: z.ZodString;
13
- instanceId: z.ZodString;
14
- }, z.core.$strip>, z.ZodObject<{
15
- generic_api_key: z.ZodString;
16
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"railway", z.ZodObject<{
17
- connectionId: z.ZodString;
18
- entityId: z.ZodString;
19
- instanceId: z.ZodString;
20
- }, z.core.$strip>, z.ZodObject<{
21
- generic_api_key: z.ZodString;
22
- }, z.core.$strip>>]>;
12
+ declare const railwayGetUserKickbackEarnings: AppAction<typeof RailwayGetUserKickbackEarningsInput, typeof RailwayGetUserKickbackEarningsOutput, typeof railway.credential>;
23
13
  //#endregion
24
14
  export { railwayGetUserKickbackEarnings };
25
15
  //# sourceMappingURL=get-user-kickback-earnings.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-user-kickback-earnings.d.mts","names":[],"sources":["../../src/actions/get-user-kickback-earnings.ts"],"mappings":";;;cAIa,mCAAA,EAAmC,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAInC,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;;cAIpC,8BAAA,gCAA8B,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,YAAA,CAAA,CAAA,SAAA"}
1
+ {"version":3,"file":"get-user-kickback-earnings.d.mts","names":[],"sources":["../../src/actions/get-user-kickback-earnings.ts"],"mappings":";;;;;cAMa,mCAAA,EAAmC,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAInC,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;;cAIpC,8BAAA,EAAgC,SAAA,QACpC,mCAAA,SACA,oCAAA,SACA,OAAA,CAAQ,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/get-user-kickback-earnings.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-user-kickback-earnings.mjs","names":[],"sources":["../../src/actions/get-user-kickback-earnings.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RailwayGetUserKickbackEarningsInput = z.object({}).describe(\"Request model for getting user kickback earnings.\");\nconst RailwayGetUserKickbackEarnings_UserKickbackEarningsSchema = z.object({\n total_amount: z.number().describe(\"The total amount of kickback earnings for the user.\").nullable().optional(),\n}).passthrough().describe(\"User kickback earnings data.\");\nexport const RailwayGetUserKickbackEarningsOutput = z.object({\n user_kickback_earnings: RailwayGetUserKickbackEarnings_UserKickbackEarningsSchema.nullable().optional(),\n}).passthrough().describe(\"Response model for the user kickback earnings query.\");\n\nexport const railwayGetUserKickbackEarnings = action(\"RAILWAY_GET_USER_KICKBACK_EARNINGS\", {\n slug: \"railway-get-user-kickback-earnings\",\n name: \"Get User Kickback Earnings\",\n description: \"Get the total kickback earnings for the authenticated Railway user. Use this action when you need to retrieve the kickback earnings information for the authenticated user, including the total amount earned and the currency. This is a read-only operation that queries the Railway GraphQL API. Kickback earnings are rewards earned through the Railway referral program when users you refer upgrade their Railway projects.\",\n input: RailwayGetUserKickbackEarningsInput,\n output: RailwayGetUserKickbackEarningsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sCAAsC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC5H,MAAM,4DAA4D,EAAE,OAAO,EACzE,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC/G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8BAA8B;AAKxD,MAAa,iCAAiC,OAAO,sCAAsC;CACzF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATkD,EAAE,OAAO,EAC3D,wBAAwB,0DAA0D,SAAS,CAAC,CAAC,SAAS,EACxG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sDAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"get-user-kickback-earnings.mjs","names":[],"sources":["../../src/actions/get-user-kickback-earnings.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { railway } from \"../app\";\n\nexport const RailwayGetUserKickbackEarningsInput = z.object({}).describe(\"Request model for getting user kickback earnings.\");\nconst RailwayGetUserKickbackEarnings_UserKickbackEarningsSchema = z.object({\n total_amount: z.number().describe(\"The total amount of kickback earnings for the user.\").nullable().optional(),\n}).passthrough().describe(\"User kickback earnings data.\");\nexport const RailwayGetUserKickbackEarningsOutput = z.object({\n user_kickback_earnings: RailwayGetUserKickbackEarnings_UserKickbackEarningsSchema.nullable().optional(),\n}).passthrough().describe(\"Response model for the user kickback earnings query.\");\n\nexport const railwayGetUserKickbackEarnings: AppAction<\n typeof RailwayGetUserKickbackEarningsInput,\n typeof RailwayGetUserKickbackEarningsOutput,\n typeof railway.credential\n> = action(\"RAILWAY_GET_USER_KICKBACK_EARNINGS\", {\n slug: \"railway-get-user-kickback-earnings\",\n name: \"Get User Kickback Earnings\",\n description: \"Get the total kickback earnings for the authenticated Railway user. Use this action when you need to retrieve the kickback earnings information for the authenticated user, including the total amount earned and the currency. This is a read-only operation that queries the Railway GraphQL API. Kickback earnings are rewards earned through the Railway referral program when users you refer upgrade their Railway projects.\",\n input: RailwayGetUserKickbackEarningsInput,\n output: RailwayGetUserKickbackEarningsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,sCAAsC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC5H,MAAM,4DAA4D,EAAE,OAAO,EACzE,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC/G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8BAA8B;AAKxD,MAAa,iCAIT,OAAO,sCAAsC;CAC/C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAbkD,EAAE,OAAO,EAC3D,wBAAwB,0DAA0D,SAAS,CAAC,CAAC,SAAS,EACxG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sDAWhB;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/list-api-tokens.ts
@@ -1 +1 @@
1
- {"version":3,"file":"list-api-tokens.cjs","names":["z","action"],"sources":["../../src/actions/list-api-tokens.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RailwayListApiTokensInput = z.object({}).describe(\"Request parameters for listing API tokens.\");\nconst RailwayListApiTokens_ApiTokenSchema = z.object({\n id: z.string().describe(\"The unique identifier of the API token.\").nullable(),\n name: z.string().describe(\"The name of the API token.\").nullable(),\n created_at: z.string().describe(\"The timestamp when the API token was created (ISO 8601 format).\").nullable(),\n}).passthrough().describe(\"Individual API token data.\");\nexport const RailwayListApiTokensOutput = z.object({\n api_tokens: z.array(RailwayListApiTokens_ApiTokenSchema).describe(\"List of API tokens associated with the authenticated user.\").nullable().optional(),\n}).passthrough().describe(\"Response schema containing all API tokens for the authenticated user.\");\n\nexport const railwayListApiTokens = action(\"RAILWAY_LIST_API_TOKENS\", {\n slug: \"railway-list-api-tokens\",\n name: \"List API Tokens\",\n description: \"Retrieve all API tokens for the authenticated user from Railway. Use this action when you need to fetch the list of API tokens associated with the currently authenticated user. This is a read-only operation that returns token metadata including the ID, name, and creation timestamp for each token. The action queries the Railway GraphQL API and returns the complete list of tokens.\",\n input: RailwayListApiTokensInput,\n output: RailwayListApiTokensOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,4CAA4C;AAC3G,MAAM,sCAAsCA,IAAAA,EAAE,OAAO;CACnD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC5E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACjE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;AAC9G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4BAA4B;AACtD,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,YAAYA,IAAAA,EAAE,MAAM,mCAAmC,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACtJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uEAAuE;AAEjG,MAAa,uBAAuBC,eAAAA,OAAO,2BAA2B;CACpE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-api-tokens.cjs","names":["z","action"],"sources":["../../src/actions/list-api-tokens.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { railway } from \"../app\";\n\nexport const RailwayListApiTokensInput = z.object({}).describe(\"Request parameters for listing API tokens.\");\nconst RailwayListApiTokens_ApiTokenSchema = z.object({\n id: z.string().describe(\"The unique identifier of the API token.\").nullable(),\n name: z.string().describe(\"The name of the API token.\").nullable(),\n created_at: z.string().describe(\"The timestamp when the API token was created (ISO 8601 format).\").nullable(),\n}).passthrough().describe(\"Individual API token data.\");\nexport const RailwayListApiTokensOutput = z.object({\n api_tokens: z.array(RailwayListApiTokens_ApiTokenSchema).describe(\"List of API tokens associated with the authenticated user.\").nullable().optional(),\n}).passthrough().describe(\"Response schema containing all API tokens for the authenticated user.\");\n\nexport const railwayListApiTokens: AppAction<\n typeof RailwayListApiTokensInput,\n typeof RailwayListApiTokensOutput,\n typeof railway.credential\n> = action(\"RAILWAY_LIST_API_TOKENS\", {\n slug: \"railway-list-api-tokens\",\n name: \"List API Tokens\",\n description: \"Retrieve all API tokens for the authenticated user from Railway. Use this action when you need to fetch the list of API tokens associated with the currently authenticated user. This is a read-only operation that returns token metadata including the ID, name, and creation timestamp for each token. The action queries the Railway GraphQL API and returns the complete list of tokens.\",\n input: RailwayListApiTokensInput,\n output: RailwayListApiTokensOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,4CAA4C;AAC3G,MAAM,sCAAsCA,IAAAA,EAAE,OAAO;CACnD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC5E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACjE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;AAC9G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4BAA4B;AACtD,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,YAAYA,IAAAA,EAAE,MAAM,mCAAmC,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACtJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uEAAuE;AAEjG,MAAa,uBAITC,eAAAA,OAAO,2BAA2B;CACpC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { railway } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/list-api-tokens.d.ts
@@ -9,19 +11,7 @@ declare const RailwayListApiTokensOutput: z.ZodObject<{
9
11
  created_at: z.ZodNullable<z.ZodString>;
10
12
  }, z.core.$loose>>>>;
11
13
  }, z.core.$loose>;
12
- declare const railwayListApiTokens: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"railway", z.ZodObject<{
13
- connectionId: z.ZodString;
14
- entityId: z.ZodString;
15
- instanceId: z.ZodString;
16
- }, z.core.$strip>, z.ZodObject<{
17
- generic_api_key: z.ZodString;
18
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"railway", z.ZodObject<{
19
- connectionId: z.ZodString;
20
- entityId: z.ZodString;
21
- instanceId: z.ZodString;
22
- }, z.core.$strip>, z.ZodObject<{
23
- generic_api_key: z.ZodString;
24
- }, z.core.$strip>>]>;
14
+ declare const railwayListApiTokens: AppAction<typeof RailwayListApiTokensInput, typeof RailwayListApiTokensOutput, typeof railway.credential>;
25
15
  //#endregion
26
16
  export { railwayListApiTokens };
27
17
  //# sourceMappingURL=list-api-tokens.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-api-tokens.d.cts","names":[],"sources":["../../src/actions/list-api-tokens.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAMzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;cAI1B,oBAAA,gCAAoB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,YAAA,CAAA,CAAA,SAAA"}
1
+ {"version":3,"file":"list-api-tokens.d.cts","names":[],"sources":["../../src/actions/list-api-tokens.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAMzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;cAI1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,SACA,OAAA,CAAQ,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { railway } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/list-api-tokens.d.ts
@@ -9,19 +11,7 @@ declare const RailwayListApiTokensOutput: z.ZodObject<{
9
11
  created_at: z.ZodNullable<z.ZodString>;
10
12
  }, z.core.$loose>>>>;
11
13
  }, z.core.$loose>;
12
- declare const railwayListApiTokens: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"railway", z.ZodObject<{
13
- connectionId: z.ZodString;
14
- entityId: z.ZodString;
15
- instanceId: z.ZodString;
16
- }, z.core.$strip>, z.ZodObject<{
17
- generic_api_key: z.ZodString;
18
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"railway", z.ZodObject<{
19
- connectionId: z.ZodString;
20
- entityId: z.ZodString;
21
- instanceId: z.ZodString;
22
- }, z.core.$strip>, z.ZodObject<{
23
- generic_api_key: z.ZodString;
24
- }, z.core.$strip>>]>;
14
+ declare const railwayListApiTokens: AppAction<typeof RailwayListApiTokensInput, typeof RailwayListApiTokensOutput, typeof railway.credential>;
25
15
  //#endregion
26
16
  export { railwayListApiTokens };
27
17
  //# sourceMappingURL=list-api-tokens.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-api-tokens.d.mts","names":[],"sources":["../../src/actions/list-api-tokens.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAMzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;cAI1B,oBAAA,gCAAoB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,YAAA,CAAA,CAAA,SAAA"}
1
+ {"version":3,"file":"list-api-tokens.d.mts","names":[],"sources":["../../src/actions/list-api-tokens.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAMzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;cAI1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,SACA,OAAA,CAAQ,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/list-api-tokens.ts