@keystrokehq/railway 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (178) hide show
  1. package/README.md +17 -0
  2. package/dist/action.cjs +21 -0
  3. package/dist/action.cjs.map +1 -0
  4. package/dist/action.mjs +21 -0
  5. package/dist/action.mjs.map +1 -0
  6. package/dist/actions/create-plugin.cjs +32 -0
  7. package/dist/actions/create-plugin.cjs.map +1 -0
  8. package/dist/actions/create-plugin.d.cts +9 -0
  9. package/dist/actions/create-plugin.d.cts.map +1 -0
  10. package/dist/actions/create-plugin.d.mts +9 -0
  11. package/dist/actions/create-plugin.d.mts.map +1 -0
  12. package/dist/actions/create-plugin.mjs +31 -0
  13. package/dist/actions/create-plugin.mjs.map +1 -0
  14. package/dist/actions/delete-variable.cjs +21 -0
  15. package/dist/actions/delete-variable.cjs.map +1 -0
  16. package/dist/actions/delete-variable.d.cts +9 -0
  17. package/dist/actions/delete-variable.d.cts.map +1 -0
  18. package/dist/actions/delete-variable.d.mts +9 -0
  19. package/dist/actions/delete-variable.d.mts.map +1 -0
  20. package/dist/actions/delete-variable.mjs +18 -0
  21. package/dist/actions/delete-variable.mjs.map +1 -0
  22. package/dist/actions/delete-volume.cjs +16 -0
  23. package/dist/actions/delete-volume.cjs.map +1 -0
  24. package/dist/actions/delete-volume.d.cts +9 -0
  25. package/dist/actions/delete-volume.d.cts.map +1 -0
  26. package/dist/actions/delete-volume.d.mts +9 -0
  27. package/dist/actions/delete-volume.d.mts.map +1 -0
  28. package/dist/actions/delete-volume.mjs +13 -0
  29. package/dist/actions/delete-volume.mjs.map +1 -0
  30. package/dist/actions/delete-workspace.cjs +24 -0
  31. package/dist/actions/delete-workspace.cjs.map +1 -0
  32. package/dist/actions/delete-workspace.d.cts +9 -0
  33. package/dist/actions/delete-workspace.d.cts.map +1 -0
  34. package/dist/actions/delete-workspace.d.mts +9 -0
  35. package/dist/actions/delete-workspace.d.mts.map +1 -0
  36. package/dist/actions/delete-workspace.mjs +23 -0
  37. package/dist/actions/delete-workspace.mjs.map +1 -0
  38. package/dist/actions/disconnect-user-discord.cjs +16 -0
  39. package/dist/actions/disconnect-user-discord.cjs.map +1 -0
  40. package/dist/actions/disconnect-user-discord.d.cts +9 -0
  41. package/dist/actions/disconnect-user-discord.d.cts.map +1 -0
  42. package/dist/actions/disconnect-user-discord.d.mts +9 -0
  43. package/dist/actions/disconnect-user-discord.d.mts.map +1 -0
  44. package/dist/actions/disconnect-user-discord.mjs +13 -0
  45. package/dist/actions/disconnect-user-discord.mjs.map +1 -0
  46. package/dist/actions/get-deployment-logs.cjs +24 -0
  47. package/dist/actions/get-deployment-logs.cjs.map +1 -0
  48. package/dist/actions/get-deployment-logs.d.cts +9 -0
  49. package/dist/actions/get-deployment-logs.d.cts.map +1 -0
  50. package/dist/actions/get-deployment-logs.d.mts +9 -0
  51. package/dist/actions/get-deployment-logs.d.mts.map +1 -0
  52. package/dist/actions/get-deployment-logs.mjs +23 -0
  53. package/dist/actions/get-deployment-logs.mjs.map +1 -0
  54. package/dist/actions/get-environment.cjs +32 -0
  55. package/dist/actions/get-environment.cjs.map +1 -0
  56. package/dist/actions/get-environment.d.cts +9 -0
  57. package/dist/actions/get-environment.d.cts.map +1 -0
  58. package/dist/actions/get-environment.d.mts +9 -0
  59. package/dist/actions/get-environment.d.mts.map +1 -0
  60. package/dist/actions/get-environment.mjs +31 -0
  61. package/dist/actions/get-environment.mjs.map +1 -0
  62. package/dist/actions/get-git-hub-pr-info.cjs +28 -0
  63. package/dist/actions/get-git-hub-pr-info.cjs.map +1 -0
  64. package/dist/actions/get-git-hub-pr-info.d.cts +9 -0
  65. package/dist/actions/get-git-hub-pr-info.d.cts.map +1 -0
  66. package/dist/actions/get-git-hub-pr-info.d.mts +9 -0
  67. package/dist/actions/get-git-hub-pr-info.d.mts.map +1 -0
  68. package/dist/actions/get-git-hub-pr-info.mjs +25 -0
  69. package/dist/actions/get-git-hub-pr-info.mjs.map +1 -0
  70. package/dist/actions/get-user-kickback-earnings.cjs +17 -0
  71. package/dist/actions/get-user-kickback-earnings.cjs.map +1 -0
  72. package/dist/actions/get-user-kickback-earnings.d.cts +9 -0
  73. package/dist/actions/get-user-kickback-earnings.d.cts.map +1 -0
  74. package/dist/actions/get-user-kickback-earnings.d.mts +9 -0
  75. package/dist/actions/get-user-kickback-earnings.d.mts.map +1 -0
  76. package/dist/actions/get-user-kickback-earnings.mjs +16 -0
  77. package/dist/actions/get-user-kickback-earnings.mjs.map +1 -0
  78. package/dist/actions/index.cjs +37 -0
  79. package/dist/actions/index.d.cts +19 -0
  80. package/dist/actions/index.d.mts +19 -0
  81. package/dist/actions/index.mjs +19 -0
  82. package/dist/actions/list-api-tokens.cjs +21 -0
  83. package/dist/actions/list-api-tokens.cjs.map +1 -0
  84. package/dist/actions/list-api-tokens.d.cts +9 -0
  85. package/dist/actions/list-api-tokens.d.cts.map +1 -0
  86. package/dist/actions/list-api-tokens.d.mts +9 -0
  87. package/dist/actions/list-api-tokens.d.mts.map +1 -0
  88. package/dist/actions/list-api-tokens.mjs +20 -0
  89. package/dist/actions/list-api-tokens.mjs.map +1 -0
  90. package/dist/actions/list-environment-patches.cjs +25 -0
  91. package/dist/actions/list-environment-patches.cjs.map +1 -0
  92. package/dist/actions/list-environment-patches.d.cts +9 -0
  93. package/dist/actions/list-environment-patches.d.cts.map +1 -0
  94. package/dist/actions/list-environment-patches.d.mts +9 -0
  95. package/dist/actions/list-environment-patches.d.mts.map +1 -0
  96. package/dist/actions/list-environment-patches.mjs +24 -0
  97. package/dist/actions/list-environment-patches.mjs.map +1 -0
  98. package/dist/actions/list-git-hub-repos.cjs +21 -0
  99. package/dist/actions/list-git-hub-repos.cjs.map +1 -0
  100. package/dist/actions/list-git-hub-repos.d.cts +9 -0
  101. package/dist/actions/list-git-hub-repos.d.cts.map +1 -0
  102. package/dist/actions/list-git-hub-repos.d.mts +9 -0
  103. package/dist/actions/list-git-hub-repos.d.mts.map +1 -0
  104. package/dist/actions/list-git-hub-repos.mjs +20 -0
  105. package/dist/actions/list-git-hub-repos.mjs.map +1 -0
  106. package/dist/actions/list-git-hub-writable-scopes.cjs +16 -0
  107. package/dist/actions/list-git-hub-writable-scopes.cjs.map +1 -0
  108. package/dist/actions/list-git-hub-writable-scopes.d.cts +9 -0
  109. package/dist/actions/list-git-hub-writable-scopes.d.cts.map +1 -0
  110. package/dist/actions/list-git-hub-writable-scopes.d.mts +9 -0
  111. package/dist/actions/list-git-hub-writable-scopes.d.mts.map +1 -0
  112. package/dist/actions/list-git-hub-writable-scopes.mjs +13 -0
  113. package/dist/actions/list-git-hub-writable-scopes.mjs.map +1 -0
  114. package/dist/actions/list-integration-auths.cjs +24 -0
  115. package/dist/actions/list-integration-auths.cjs.map +1 -0
  116. package/dist/actions/list-integration-auths.d.cts +9 -0
  117. package/dist/actions/list-integration-auths.d.cts.map +1 -0
  118. package/dist/actions/list-integration-auths.d.mts +9 -0
  119. package/dist/actions/list-integration-auths.d.mts.map +1 -0
  120. package/dist/actions/list-integration-auths.mjs +23 -0
  121. package/dist/actions/list-integration-auths.mjs.map +1 -0
  122. package/dist/actions/list-notification-deliveries.cjs +21 -0
  123. package/dist/actions/list-notification-deliveries.cjs.map +1 -0
  124. package/dist/actions/list-notification-deliveries.d.cts +9 -0
  125. package/dist/actions/list-notification-deliveries.d.cts.map +1 -0
  126. package/dist/actions/list-notification-deliveries.d.mts +9 -0
  127. package/dist/actions/list-notification-deliveries.d.mts.map +1 -0
  128. package/dist/actions/list-notification-deliveries.mjs +20 -0
  129. package/dist/actions/list-notification-deliveries.mjs.map +1 -0
  130. package/dist/actions/list-trusted-domains.cjs +21 -0
  131. package/dist/actions/list-trusted-domains.cjs.map +1 -0
  132. package/dist/actions/list-trusted-domains.d.cts +9 -0
  133. package/dist/actions/list-trusted-domains.d.cts.map +1 -0
  134. package/dist/actions/list-trusted-domains.d.mts +9 -0
  135. package/dist/actions/list-trusted-domains.d.mts.map +1 -0
  136. package/dist/actions/list-trusted-domains.mjs +20 -0
  137. package/dist/actions/list-trusted-domains.mjs.map +1 -0
  138. package/dist/actions/update-project.cjs +27 -0
  139. package/dist/actions/update-project.cjs.map +1 -0
  140. package/dist/actions/update-project.d.cts +9 -0
  141. package/dist/actions/update-project.d.cts.map +1 -0
  142. package/dist/actions/update-project.d.mts +9 -0
  143. package/dist/actions/update-project.d.mts.map +1 -0
  144. package/dist/actions/update-project.mjs +24 -0
  145. package/dist/actions/update-project.mjs.map +1 -0
  146. package/dist/actions/update-service-instance.cjs +38 -0
  147. package/dist/actions/update-service-instance.cjs.map +1 -0
  148. package/dist/actions/update-service-instance.d.cts +9 -0
  149. package/dist/actions/update-service-instance.d.cts.map +1 -0
  150. package/dist/actions/update-service-instance.d.mts +9 -0
  151. package/dist/actions/update-service-instance.d.mts.map +1 -0
  152. package/dist/actions/update-service-instance.mjs +35 -0
  153. package/dist/actions/update-service-instance.mjs.map +1 -0
  154. package/dist/app.cjs +9 -0
  155. package/dist/app.cjs.map +1 -0
  156. package/dist/app.d.cts +5 -0
  157. package/dist/app.d.cts.map +1 -0
  158. package/dist/app.d.mts +5 -0
  159. package/dist/app.d.mts.map +1 -0
  160. package/dist/app.mjs +10 -0
  161. package/dist/app.mjs.map +1 -0
  162. package/dist/catalog.cjs +15 -0
  163. package/dist/catalog.cjs.map +1 -0
  164. package/dist/catalog.d.cts +14 -0
  165. package/dist/catalog.d.cts.map +1 -0
  166. package/dist/catalog.d.mts +14 -0
  167. package/dist/catalog.d.mts.map +1 -0
  168. package/dist/catalog.mjs +15 -0
  169. package/dist/catalog.mjs.map +1 -0
  170. package/dist/execute.cjs +18 -0
  171. package/dist/execute.cjs.map +1 -0
  172. package/dist/execute.mjs +18 -0
  173. package/dist/execute.mjs.map +1 -0
  174. package/dist/index.cjs +42 -0
  175. package/dist/index.d.cts +21 -0
  176. package/dist/index.d.mts +21 -0
  177. package/dist/index.mjs +22 -0
  178. package/package.json +49 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-project.d.cts","names":[],"sources":["../../src/actions/update-project.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAOuB;AAAA,cACpD,0BAAA,EAA4B,CAAA,CAAE,UAIc;AAAA,cAE5C,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/update-project.d.ts
4
+ declare const RailwayUpdateProjectInput: z.ZodTypeAny;
5
+ declare const RailwayUpdateProjectOutput: z.ZodTypeAny;
6
+ declare const railwayUpdateProject: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { railwayUpdateProject };
9
+ //# sourceMappingURL=update-project.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-project.d.mts","names":[],"sources":["../../src/actions/update-project.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAOuB;AAAA,cACpD,0BAAA,EAA4B,CAAA,CAAE,UAIc;AAAA,cAE5C,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,24 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ const railwayUpdateProject = action("RAILWAY_UPDATE_PROJECT", {
4
+ slug: "railway-update-project",
5
+ name: "Update Project",
6
+ description: "Update project settings and configuration on Railway. Use this action when you need to modify project properties such as description, visibility settings, or PR deploy preferences. The following fields can be updated: - description: A brief description of the project - isPublic: Whether the project is publicly visible - prDeploys: Whether pull request preview deployments are enabled This is an idempotent operation — updating a project with the same settings multiple times will not change the result after the first update.",
7
+ input: z.object({
8
+ id: z.string().describe("The unique identifier of the project to update."),
9
+ input: z.object({
10
+ is_public: z.boolean().describe("Make the project publicly visible. When set to true, the project and its deployments are visible to anyone with the link.").optional(),
11
+ pr_deploys: z.boolean().describe("Enable pull request preview deployments. When enabled, Railway will automatically create preview environments for pull requests.").optional(),
12
+ description: z.string().describe("A brief description of the project.").optional()
13
+ }).describe("The update configuration for the project.")
14
+ }).describe("Request parameters for updating a Railway project."),
15
+ output: z.object({
16
+ id: z.string().describe("The unique identifier of the updated project."),
17
+ name: z.string().describe("The name of the project after update.").nullable().optional(),
18
+ description: z.string().describe("The description of the project after update.").nullable().optional()
19
+ }).describe("Response from the project update mutation.")
20
+ });
21
+ //#endregion
22
+ export { railwayUpdateProject };
23
+
24
+ //# sourceMappingURL=update-project.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-project.mjs","names":[],"sources":["../../src/actions/update-project.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RailwayUpdateProjectInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier of the project to update.\"),\n input: z.object({\n is_public: z.boolean().describe(\"Make the project publicly visible. When set to true, the project and its deployments are visible to anyone with the link.\").optional(),\n pr_deploys: z.boolean().describe(\"Enable pull request preview deployments. When enabled, Railway will automatically create preview environments for pull requests.\").optional(),\n description: z.string().describe(\"A brief description of the project.\").optional(),\n}).describe(\"The update configuration for the project.\"),\n}).describe(\"Request parameters for updating a Railway project.\");\nexport const RailwayUpdateProjectOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier of the updated project.\"),\n name: z.string().describe(\"The name of the project after update.\").nullable().optional(),\n description: z.string().describe(\"The description of the project after update.\").nullable().optional(),\n}).describe(\"Response from the project update mutation.\");\n\nexport const railwayUpdateProject = action(\"RAILWAY_UPDATE_PROJECT\", {\n slug: \"railway-update-project\",\n name: \"Update Project\",\n description: \"Update project settings and configuration on Railway. Use this action when you need to modify project properties such as description, visibility settings, or PR deploy preferences. The following fields can be updated: - description: A brief description of the project - isPublic: Whether the project is publicly visible - prDeploys: Whether pull request preview deployments are enabled This is an idempotent operation — updating a project with the same settings multiple times will not change the result after the first update.\",\n input: RailwayUpdateProjectInput,\n output: RailwayUpdateProjectOutput,\n});\n"],"mappings":";;AAkBA,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAlBqD,EAAE,OAAO;EAC9D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;EACzE,OAAO,EAAE,OAAO;GAChB,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,2HAA2H,CAAC,CAAC,SAAS;GACtK,YAAY,EAAE,QAAQ,CAAC,CAAC,SAAS,kIAAkI,CAAC,CAAC,SAAS;GAC9K,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EACnF,CAAC,CAAC,CAAC,SAAS,2CAA2C;CACvD,CAAC,CAAC,CAAC,SAAS,oDAWH;CACP,QAXsD,EAAE,OAAO;EAC/D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;EACvE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,CAAC,CAAC,CAAC,SAAS,4CAOF;AACV,CAAC"}
@@ -0,0 +1,38 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/update-service-instance.ts
4
+ const RailwayUpdateServiceInstanceInput = zod.z.object({
5
+ input: zod.z.object({
6
+ region: zod.z.string().describe("Deployment region (e.g., 'us-west1', 'eu-west1').").optional(),
7
+ num_replicas: zod.z.number().int().describe("Number of replicas. Default: 1.").optional(),
8
+ build_command: zod.z.string().describe("Custom build command.").optional(),
9
+ cron_schedule: zod.z.string().describe("Cron expression for scheduled deployments (e.g., '0 0 * * *').").optional(),
10
+ start_command: zod.z.string().describe("Custom start command (e.g., 'npm run start').").optional(),
11
+ root_directory: zod.z.string().describe("Root directory for monorepos.").optional(),
12
+ watch_patterns: zod.z.array(zod.z.string()).describe("File patterns to watch for automatic redeployments.").optional(),
13
+ dockerfile_path: zod.z.string().describe("Custom Dockerfile path.").optional(),
14
+ healthcheck_path: zod.z.string().describe("Health check endpoint path.").optional(),
15
+ sleep_application: zod.z.boolean().describe("Enable sleep when idle to reduce resource usage.").optional(),
16
+ healthcheck_timeout: zod.z.number().int().describe("Health check timeout in seconds. Default: 300.").optional(),
17
+ restart_policy_type: zod.z.enum([
18
+ "ON_FAILURE",
19
+ "ALWAYS",
20
+ "NEVER"
21
+ ]).describe("Restart policy types for service instances.").optional(),
22
+ restart_policy_max_retries: zod.z.number().int().describe("Maximum restart retries. Default: 10.").optional()
23
+ }).describe("The update configuration for the service instance."),
24
+ service_id: zod.z.string().describe("The unique identifier of the service to update."),
25
+ environment_id: zod.z.string().describe("The unique identifier of the environment.")
26
+ }).describe("Request parameters for updating a Railway service instance.");
27
+ const RailwayUpdateServiceInstanceOutput = zod.z.object({ service_instance_update: zod.z.boolean().describe("Returns true if the update was successful, null if there was an error.").nullable().optional() }).describe("Response from the service instance update mutation.");
28
+ const railwayUpdateServiceInstance = require_action.action("RAILWAY_UPDATE_SERVICE_INSTANCE", {
29
+ slug: "railway-update-service-instance",
30
+ name: "Update Service Instance",
31
+ description: "Update build/deploy settings for a service in a specific environment on Railway. Use this action when you need to modify service configuration including commands, healthcheck, replicas, region, and cron schedule. This is an idempotent operation. The following fields can be updated: - startCommand: Custom start command for the service - buildCommand: Custom build command - rootDirectory: Root directory for monorepo setups - healthcheckPath: Health check endpoint path - healthcheckTimeout: Health check timeout in seconds - region: Deployment region - numReplicas: Number of service replicas - restartPolicyType: Restart policy (ON_FAILURE, ALWAYS, NEVER) - restartPolicyMaxRetries: Maximum restart retries - cronSchedule: Cron expression for scheduled deployments - sleepApplication: Enable/disable sleep when idle - dockerfilePath: Custom Dockerfile path - watchPatterns: File patterns for automatic redeployment",
32
+ input: RailwayUpdateServiceInstanceInput,
33
+ output: RailwayUpdateServiceInstanceOutput
34
+ });
35
+ //#endregion
36
+ exports.railwayUpdateServiceInstance = railwayUpdateServiceInstance;
37
+
38
+ //# sourceMappingURL=update-service-instance.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-service-instance.cjs","names":["z","action"],"sources":["../../src/actions/update-service-instance.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RailwayUpdateServiceInstanceInput: z.ZodTypeAny = z.object({\n input: z.object({\n region: z.string().describe(\"Deployment region (e.g., 'us-west1', 'eu-west1').\").optional(),\n num_replicas: z.number().int().describe(\"Number of replicas. Default: 1.\").optional(),\n build_command: z.string().describe(\"Custom build command.\").optional(),\n cron_schedule: z.string().describe(\"Cron expression for scheduled deployments (e.g., '0 0 * * *').\").optional(),\n start_command: z.string().describe(\"Custom start command (e.g., 'npm run start').\").optional(),\n root_directory: z.string().describe(\"Root directory for monorepos.\").optional(),\n watch_patterns: z.array(z.string()).describe(\"File patterns to watch for automatic redeployments.\").optional(),\n dockerfile_path: z.string().describe(\"Custom Dockerfile path.\").optional(),\n healthcheck_path: z.string().describe(\"Health check endpoint path.\").optional(),\n sleep_application: z.boolean().describe(\"Enable sleep when idle to reduce resource usage.\").optional(),\n healthcheck_timeout: z.number().int().describe(\"Health check timeout in seconds. Default: 300.\").optional(),\n restart_policy_type: z.enum([\"ON_FAILURE\", \"ALWAYS\", \"NEVER\"]).describe(\"Restart policy types for service instances.\").optional(),\n restart_policy_max_retries: z.number().int().describe(\"Maximum restart retries. Default: 10.\").optional(),\n}).describe(\"The update configuration for the service instance.\"),\n service_id: z.string().describe(\"The unique identifier of the service to update.\"),\n environment_id: z.string().describe(\"The unique identifier of the environment.\"),\n}).describe(\"Request parameters for updating a Railway service instance.\");\nexport const RailwayUpdateServiceInstanceOutput: z.ZodTypeAny = z.object({\n service_instance_update: z.boolean().describe(\"Returns true if the update was successful, null if there was an error.\").nullable().optional(),\n}).describe(\"Response from the service instance update mutation.\");\n\nexport const railwayUpdateServiceInstance = action(\"RAILWAY_UPDATE_SERVICE_INSTANCE\", {\n slug: \"railway-update-service-instance\",\n name: \"Update Service Instance\",\n description: \"Update build/deploy settings for a service in a specific environment on Railway. Use this action when you need to modify service configuration including commands, healthcheck, replicas, region, and cron schedule. This is an idempotent operation. The following fields can be updated: - startCommand: Custom start command for the service - buildCommand: Custom build command - rootDirectory: Root directory for monorepo setups - healthcheckPath: Health check endpoint path - healthcheckTimeout: Health check timeout in seconds - region: Deployment region - numReplicas: Number of service replicas - restartPolicyType: Restart policy (ON_FAILURE, ALWAYS, NEVER) - restartPolicyMaxRetries: Maximum restart retries - cronSchedule: Cron expression for scheduled deployments - sleepApplication: Enable/disable sleep when idle - dockerfilePath: Custom Dockerfile path - watchPatterns: File patterns for automatic redeployment\",\n input: RailwayUpdateServiceInstanceInput,\n output: RailwayUpdateServiceInstanceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAkDA,IAAAA,EAAE,OAAO;CACtE,OAAOA,IAAAA,EAAE,OAAO;EAChB,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;EAC1F,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EACpF,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;EACrE,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;EAC9G,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;EAC7F,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;EAC9E,gBAAgBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;EAC7G,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;EACzE,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;EAC9E,mBAAmBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;EACrG,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;EAC1G,qBAAqBA,IAAAA,EAAE,KAAK;GAAC;GAAc;GAAU;EAAO,CAAC,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;EAChI,4BAA4BA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC1G,CAAC,CAAC,CAAC,SAAS,oDAAoD;CAC9D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;CACjF,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;AACjF,CAAC,CAAC,CAAC,SAAS,6DAA6D;AACzE,MAAa,qCAAmDA,IAAAA,EAAE,OAAO,EACvE,yBAAyBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC9I,CAAC,CAAC,CAAC,SAAS,qDAAqD;AAEjE,MAAa,+BAA+BC,eAAAA,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/update-service-instance.d.ts
4
+ declare const RailwayUpdateServiceInstanceInput: z.ZodTypeAny;
5
+ declare const RailwayUpdateServiceInstanceOutput: z.ZodTypeAny;
6
+ declare const railwayUpdateServiceInstance: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { railwayUpdateServiceInstance };
9
+ //# sourceMappingURL=update-service-instance.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-service-instance.d.cts","names":[],"sources":["../../src/actions/update-service-instance.ts"],"mappings":";;;cAIa,iCAAA,EAAmC,CAAA,CAAE,UAkBwB;AAAA,cAC7D,kCAAA,EAAoC,CAAA,CAAE,UAEe;AAAA,cAErD,4BAAA,gCAA4B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/update-service-instance.d.ts
4
+ declare const RailwayUpdateServiceInstanceInput: z.ZodTypeAny;
5
+ declare const RailwayUpdateServiceInstanceOutput: z.ZodTypeAny;
6
+ declare const railwayUpdateServiceInstance: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { railwayUpdateServiceInstance };
9
+ //# sourceMappingURL=update-service-instance.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-service-instance.d.mts","names":[],"sources":["../../src/actions/update-service-instance.ts"],"mappings":";;;cAIa,iCAAA,EAAmC,CAAA,CAAE,UAkBwB;AAAA,cAC7D,kCAAA,EAAoC,CAAA,CAAE,UAEe;AAAA,cAErD,4BAAA,gCAA4B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,35 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ const railwayUpdateServiceInstance = action("RAILWAY_UPDATE_SERVICE_INSTANCE", {
4
+ slug: "railway-update-service-instance",
5
+ name: "Update Service Instance",
6
+ description: "Update build/deploy settings for a service in a specific environment on Railway. Use this action when you need to modify service configuration including commands, healthcheck, replicas, region, and cron schedule. This is an idempotent operation. The following fields can be updated: - startCommand: Custom start command for the service - buildCommand: Custom build command - rootDirectory: Root directory for monorepo setups - healthcheckPath: Health check endpoint path - healthcheckTimeout: Health check timeout in seconds - region: Deployment region - numReplicas: Number of service replicas - restartPolicyType: Restart policy (ON_FAILURE, ALWAYS, NEVER) - restartPolicyMaxRetries: Maximum restart retries - cronSchedule: Cron expression for scheduled deployments - sleepApplication: Enable/disable sleep when idle - dockerfilePath: Custom Dockerfile path - watchPatterns: File patterns for automatic redeployment",
7
+ input: z.object({
8
+ input: z.object({
9
+ region: z.string().describe("Deployment region (e.g., 'us-west1', 'eu-west1').").optional(),
10
+ num_replicas: z.number().int().describe("Number of replicas. Default: 1.").optional(),
11
+ build_command: z.string().describe("Custom build command.").optional(),
12
+ cron_schedule: z.string().describe("Cron expression for scheduled deployments (e.g., '0 0 * * *').").optional(),
13
+ start_command: z.string().describe("Custom start command (e.g., 'npm run start').").optional(),
14
+ root_directory: z.string().describe("Root directory for monorepos.").optional(),
15
+ watch_patterns: z.array(z.string()).describe("File patterns to watch for automatic redeployments.").optional(),
16
+ dockerfile_path: z.string().describe("Custom Dockerfile path.").optional(),
17
+ healthcheck_path: z.string().describe("Health check endpoint path.").optional(),
18
+ sleep_application: z.boolean().describe("Enable sleep when idle to reduce resource usage.").optional(),
19
+ healthcheck_timeout: z.number().int().describe("Health check timeout in seconds. Default: 300.").optional(),
20
+ restart_policy_type: z.enum([
21
+ "ON_FAILURE",
22
+ "ALWAYS",
23
+ "NEVER"
24
+ ]).describe("Restart policy types for service instances.").optional(),
25
+ restart_policy_max_retries: z.number().int().describe("Maximum restart retries. Default: 10.").optional()
26
+ }).describe("The update configuration for the service instance."),
27
+ service_id: z.string().describe("The unique identifier of the service to update."),
28
+ environment_id: z.string().describe("The unique identifier of the environment.")
29
+ }).describe("Request parameters for updating a Railway service instance."),
30
+ output: z.object({ service_instance_update: z.boolean().describe("Returns true if the update was successful, null if there was an error.").nullable().optional() }).describe("Response from the service instance update mutation.")
31
+ });
32
+ //#endregion
33
+ export { railwayUpdateServiceInstance };
34
+
35
+ //# sourceMappingURL=update-service-instance.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-service-instance.mjs","names":[],"sources":["../../src/actions/update-service-instance.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RailwayUpdateServiceInstanceInput: z.ZodTypeAny = z.object({\n input: z.object({\n region: z.string().describe(\"Deployment region (e.g., 'us-west1', 'eu-west1').\").optional(),\n num_replicas: z.number().int().describe(\"Number of replicas. Default: 1.\").optional(),\n build_command: z.string().describe(\"Custom build command.\").optional(),\n cron_schedule: z.string().describe(\"Cron expression for scheduled deployments (e.g., '0 0 * * *').\").optional(),\n start_command: z.string().describe(\"Custom start command (e.g., 'npm run start').\").optional(),\n root_directory: z.string().describe(\"Root directory for monorepos.\").optional(),\n watch_patterns: z.array(z.string()).describe(\"File patterns to watch for automatic redeployments.\").optional(),\n dockerfile_path: z.string().describe(\"Custom Dockerfile path.\").optional(),\n healthcheck_path: z.string().describe(\"Health check endpoint path.\").optional(),\n sleep_application: z.boolean().describe(\"Enable sleep when idle to reduce resource usage.\").optional(),\n healthcheck_timeout: z.number().int().describe(\"Health check timeout in seconds. Default: 300.\").optional(),\n restart_policy_type: z.enum([\"ON_FAILURE\", \"ALWAYS\", \"NEVER\"]).describe(\"Restart policy types for service instances.\").optional(),\n restart_policy_max_retries: z.number().int().describe(\"Maximum restart retries. Default: 10.\").optional(),\n}).describe(\"The update configuration for the service instance.\"),\n service_id: z.string().describe(\"The unique identifier of the service to update.\"),\n environment_id: z.string().describe(\"The unique identifier of the environment.\"),\n}).describe(\"Request parameters for updating a Railway service instance.\");\nexport const RailwayUpdateServiceInstanceOutput: z.ZodTypeAny = z.object({\n service_instance_update: z.boolean().describe(\"Returns true if the update was successful, null if there was an error.\").nullable().optional(),\n}).describe(\"Response from the service instance update mutation.\");\n\nexport const railwayUpdateServiceInstance = action(\"RAILWAY_UPDATE_SERVICE_INSTANCE\", {\n slug: \"railway-update-service-instance\",\n name: \"Update Service Instance\",\n description: \"Update build/deploy settings for a service in a specific environment on Railway. Use this action when you need to modify service configuration including commands, healthcheck, replicas, region, and cron schedule. This is an idempotent operation. The following fields can be updated: - startCommand: Custom start command for the service - buildCommand: Custom build command - rootDirectory: Root directory for monorepo setups - healthcheckPath: Health check endpoint path - healthcheckTimeout: Health check timeout in seconds - region: Deployment region - numReplicas: Number of service replicas - restartPolicyType: Restart policy (ON_FAILURE, ALWAYS, NEVER) - restartPolicyMaxRetries: Maximum restart retries - cronSchedule: Cron expression for scheduled deployments - sleepApplication: Enable/disable sleep when idle - dockerfilePath: Custom Dockerfile path - watchPatterns: File patterns for automatic redeployment\",\n input: RailwayUpdateServiceInstanceInput,\n output: RailwayUpdateServiceInstanceOutput,\n});\n"],"mappings":";;AA2BA,MAAa,+BAA+B,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA3B6D,EAAE,OAAO;EACtE,OAAO,EAAE,OAAO;GAChB,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;GAC1F,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;GACpF,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;GACrE,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;GAC9G,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;GAC7F,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;GAC9E,gBAAgB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;GAC7G,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;GACzE,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;GAC9E,mBAAmB,EAAE,QAAQ,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;GACrG,qBAAqB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;GAC1G,qBAAqB,EAAE,KAAK;IAAC;IAAc;IAAU;GAAO,CAAC,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;GAChI,4BAA4B,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;EAC1G,CAAC,CAAC,CAAC,SAAS,oDAAoD;EAC9D,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;EACjF,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;CACjF,CAAC,CAAC,CAAC,SAAS,6DASH;CACP,QAT8D,EAAE,OAAO,EACvE,yBAAyB,EAAE,QAAQ,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC9I,CAAC,CAAC,CAAC,SAAS,qDAOF;AACV,CAAC"}
package/dist/app.cjs ADDED
@@ -0,0 +1,9 @@
1
+ //#region src/app.ts
2
+ const railway = (0, require("@keystrokehq/keystroke/app").defineApp)({
3
+ slug: "railway",
4
+ auth: "keystroke"
5
+ });
6
+ //#endregion
7
+ exports.railway = railway;
8
+
9
+ //# sourceMappingURL=app.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app.cjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const railway = defineApp({\n slug: \"railway\",\n auth: \"keystroke\",\n});\n"],"mappings":";AAEA,MAAa,WAAA,uCAAA,CAAA,CAAA,UAAA,CAAoB;CAC/B,MAAM;CACN,MAAM;AACR,CAAC"}
package/dist/app.d.cts ADDED
@@ -0,0 +1,5 @@
1
+ //#region src/app.d.ts
2
+ declare const railway: import("@keystrokehq/app").App<import("@keystrokehq/shared").Credential>;
3
+ //#endregion
4
+ export { railway };
5
+ //# sourceMappingURL=app.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";cAEa,OAAA,6BAAO,GAAA,+BAAA,UAAA"}
package/dist/app.d.mts ADDED
@@ -0,0 +1,5 @@
1
+ //#region src/app.d.ts
2
+ declare const railway: import("@keystrokehq/app").App<import("@keystrokehq/shared").Credential>;
3
+ //#endregion
4
+ export { railway };
5
+ //# sourceMappingURL=app.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";cAEa,OAAA,6BAAO,GAAA,+BAAA,UAAA"}
package/dist/app.mjs ADDED
@@ -0,0 +1,10 @@
1
+ import { defineApp } from "@keystrokehq/keystroke/app";
2
+ //#region src/app.ts
3
+ const railway = defineApp({
4
+ slug: "railway",
5
+ auth: "keystroke"
6
+ });
7
+ //#endregion
8
+ export { railway };
9
+
10
+ //# sourceMappingURL=app.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const railway = defineApp({\n slug: \"railway\",\n auth: \"keystroke\",\n});\n"],"mappings":";;AAEA,MAAa,UAAU,UAAU;CAC/B,MAAM;CACN,MAAM;AACR,CAAC"}
@@ -0,0 +1,15 @@
1
+ //#region src/catalog.ts
2
+ /** Generated — kept in sync with src/app.ts. */
3
+ const railwayCatalog = {
4
+ "slug": "railway",
5
+ "name": "Railway",
6
+ "description": "Railway is a deployment platform for building and shipping applications with instant deployments, automatic scaling, and managed infrastructure.",
7
+ "category": "Developer Tools",
8
+ "logo": "https://logos.composio.dev/api/railway",
9
+ "authKind": "keystroke",
10
+ "oauthScopes": []
11
+ };
12
+ //#endregion
13
+ exports.railwayCatalog = railwayCatalog;
14
+
15
+ //# sourceMappingURL=catalog.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"catalog.cjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const railwayCatalog = {\n \"slug\": \"railway\",\n \"name\": \"Railway\",\n \"description\": \"Railway is a deployment platform for building and shipping applications with instant deployments, automatic scaling, and managed infrastructure.\",\n \"category\": \"Developer Tools\",\n \"logo\": \"https://logos.composio.dev/api/railway\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,iBAAiB;CAC5B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;AAClB"}
@@ -0,0 +1,14 @@
1
+ //#region src/catalog.d.ts
2
+ /** Generated — kept in sync with src/app.ts. */
3
+ declare const railwayCatalog: {
4
+ readonly slug: "railway";
5
+ readonly name: "Railway";
6
+ readonly description: "Railway is a deployment platform for building and shipping applications with instant deployments, automatic scaling, and managed infrastructure.";
7
+ readonly category: "Developer Tools";
8
+ readonly logo: "https://logos.composio.dev/api/railway";
9
+ readonly authKind: "keystroke";
10
+ readonly oauthScopes: readonly [];
11
+ };
12
+ //#endregion
13
+ export { railwayCatalog };
14
+ //# sourceMappingURL=catalog.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"catalog.d.cts","names":[],"sources":["../src/catalog.ts"],"mappings":";;cACa,cAAA;EAAA"}
@@ -0,0 +1,14 @@
1
+ //#region src/catalog.d.ts
2
+ /** Generated — kept in sync with src/app.ts. */
3
+ declare const railwayCatalog: {
4
+ readonly slug: "railway";
5
+ readonly name: "Railway";
6
+ readonly description: "Railway is a deployment platform for building and shipping applications with instant deployments, automatic scaling, and managed infrastructure.";
7
+ readonly category: "Developer Tools";
8
+ readonly logo: "https://logos.composio.dev/api/railway";
9
+ readonly authKind: "keystroke";
10
+ readonly oauthScopes: readonly [];
11
+ };
12
+ //#endregion
13
+ export { railwayCatalog };
14
+ //# sourceMappingURL=catalog.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"catalog.d.mts","names":[],"sources":["../src/catalog.ts"],"mappings":";;cACa,cAAA;EAAA"}
@@ -0,0 +1,15 @@
1
+ //#region src/catalog.ts
2
+ /** Generated — kept in sync with src/app.ts. */
3
+ const railwayCatalog = {
4
+ "slug": "railway",
5
+ "name": "Railway",
6
+ "description": "Railway is a deployment platform for building and shipping applications with instant deployments, automatic scaling, and managed infrastructure.",
7
+ "category": "Developer Tools",
8
+ "logo": "https://logos.composio.dev/api/railway",
9
+ "authKind": "keystroke",
10
+ "oauthScopes": []
11
+ };
12
+ //#endregion
13
+ export { railwayCatalog };
14
+
15
+ //# sourceMappingURL=catalog.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"catalog.mjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const railwayCatalog = {\n \"slug\": \"railway\",\n \"name\": \"Railway\",\n \"description\": \"Railway is a deployment platform for building and shipping applications with instant deployments, automatic scaling, and managed infrastructure.\",\n \"category\": \"Developer Tools\",\n \"logo\": \"https://logos.composio.dev/api/railway\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,iBAAiB;CAC5B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;AAClB"}
@@ -0,0 +1,18 @@
1
+ let _keystrokehq_keystroke_client = require("@keystrokehq/keystroke/client");
2
+ //#region src/execute.ts
3
+ const APP_SLUG = "railway";
4
+ /** Pinned app version — updated on regeneration. */
5
+ const APP_VERSION = "00000000_00";
6
+ async function executeRailwayTool(tool, args) {
7
+ const { result } = await (0, _keystrokehq_keystroke_client.createKeystrokeClient)().tools.execute({
8
+ app: APP_SLUG,
9
+ tool,
10
+ arguments: args,
11
+ version: APP_VERSION
12
+ });
13
+ return result;
14
+ }
15
+ //#endregion
16
+ exports.executeRailwayTool = executeRailwayTool;
17
+
18
+ //# sourceMappingURL=execute.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"execute.cjs","names":[],"sources":["../src/execute.ts"],"sourcesContent":["import { createKeystrokeClient } from \"@keystrokehq/keystroke/client\";\n\nconst APP_SLUG = \"railway\";\n/** Pinned app version — updated on regeneration. */\nconst APP_VERSION = \"00000000_00\";\n\nexport async function executeRailwayTool(\n tool: string,\n args: Record<string, unknown>,\n): Promise<unknown> {\n const { result } = await createKeystrokeClient().tools.execute({\n app: APP_SLUG,\n tool,\n arguments: args,\n version: APP_VERSION,\n });\n return result;\n}\n"],"mappings":";;AAEA,MAAM,WAAW;;AAEjB,MAAM,cAAc;AAEpB,eAAsB,mBACpB,MACA,MACkB;CAClB,MAAM,EAAE,WAAW,OAAA,GAAA,8BAAA,sBAAA,CAA4B,CAAC,CAAC,MAAM,QAAQ;EAC7D,KAAK;EACL;EACA,WAAW;EACX,SAAS;CACX,CAAC;CACD,OAAO;AACT"}
@@ -0,0 +1,18 @@
1
+ import { createKeystrokeClient } from "@keystrokehq/keystroke/client";
2
+ //#region src/execute.ts
3
+ const APP_SLUG = "railway";
4
+ /** Pinned app version — updated on regeneration. */
5
+ const APP_VERSION = "00000000_00";
6
+ async function executeRailwayTool(tool, args) {
7
+ const { result } = await createKeystrokeClient().tools.execute({
8
+ app: APP_SLUG,
9
+ tool,
10
+ arguments: args,
11
+ version: APP_VERSION
12
+ });
13
+ return result;
14
+ }
15
+ //#endregion
16
+ export { executeRailwayTool };
17
+
18
+ //# sourceMappingURL=execute.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"execute.mjs","names":[],"sources":["../src/execute.ts"],"sourcesContent":["import { createKeystrokeClient } from \"@keystrokehq/keystroke/client\";\n\nconst APP_SLUG = \"railway\";\n/** Pinned app version — updated on regeneration. */\nconst APP_VERSION = \"00000000_00\";\n\nexport async function executeRailwayTool(\n tool: string,\n args: Record<string, unknown>,\n): Promise<unknown> {\n const { result } = await createKeystrokeClient().tools.execute({\n app: APP_SLUG,\n tool,\n arguments: args,\n version: APP_VERSION,\n });\n return result;\n}\n"],"mappings":";;AAEA,MAAM,WAAW;;AAEjB,MAAM,cAAc;AAEpB,eAAsB,mBACpB,MACA,MACkB;CAClB,MAAM,EAAE,WAAW,MAAM,sBAAsB,CAAC,CAAC,MAAM,QAAQ;EAC7D,KAAK;EACL;EACA,WAAW;EACX,SAAS;CACX,CAAC;CACD,OAAO;AACT"}
package/dist/index.cjs ADDED
@@ -0,0 +1,42 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_app = require("./app.cjs");
3
+ const require_catalog = require("./catalog.cjs");
4
+ const require_create_plugin = require("./actions/create-plugin.cjs");
5
+ const require_delete_variable = require("./actions/delete-variable.cjs");
6
+ const require_delete_volume = require("./actions/delete-volume.cjs");
7
+ const require_delete_workspace = require("./actions/delete-workspace.cjs");
8
+ const require_disconnect_user_discord = require("./actions/disconnect-user-discord.cjs");
9
+ const require_get_deployment_logs = require("./actions/get-deployment-logs.cjs");
10
+ const require_get_environment = require("./actions/get-environment.cjs");
11
+ const require_get_git_hub_pr_info = require("./actions/get-git-hub-pr-info.cjs");
12
+ const require_get_user_kickback_earnings = require("./actions/get-user-kickback-earnings.cjs");
13
+ const require_list_api_tokens = require("./actions/list-api-tokens.cjs");
14
+ const require_list_environment_patches = require("./actions/list-environment-patches.cjs");
15
+ const require_list_git_hub_repos = require("./actions/list-git-hub-repos.cjs");
16
+ const require_list_git_hub_writable_scopes = require("./actions/list-git-hub-writable-scopes.cjs");
17
+ const require_list_integration_auths = require("./actions/list-integration-auths.cjs");
18
+ const require_list_notification_deliveries = require("./actions/list-notification-deliveries.cjs");
19
+ const require_list_trusted_domains = require("./actions/list-trusted-domains.cjs");
20
+ const require_update_project = require("./actions/update-project.cjs");
21
+ const require_update_service_instance = require("./actions/update-service-instance.cjs");
22
+ require("./actions/index.cjs");
23
+ exports.railway = require_app.railway;
24
+ exports.railwayCatalog = require_catalog.railwayCatalog;
25
+ exports.railwayCreatePlugin = require_create_plugin.railwayCreatePlugin;
26
+ exports.railwayDeleteVariable = require_delete_variable.railwayDeleteVariable;
27
+ exports.railwayDeleteVolume = require_delete_volume.railwayDeleteVolume;
28
+ exports.railwayDeleteWorkspace = require_delete_workspace.railwayDeleteWorkspace;
29
+ exports.railwayDisconnectUserDiscord = require_disconnect_user_discord.railwayDisconnectUserDiscord;
30
+ exports.railwayGetDeploymentLogs = require_get_deployment_logs.railwayGetDeploymentLogs;
31
+ exports.railwayGetEnvironment = require_get_environment.railwayGetEnvironment;
32
+ exports.railwayGetGitHubPrInfo = require_get_git_hub_pr_info.railwayGetGitHubPrInfo;
33
+ exports.railwayGetUserKickbackEarnings = require_get_user_kickback_earnings.railwayGetUserKickbackEarnings;
34
+ exports.railwayListApiTokens = require_list_api_tokens.railwayListApiTokens;
35
+ exports.railwayListEnvironmentPatches = require_list_environment_patches.railwayListEnvironmentPatches;
36
+ exports.railwayListGitHubRepos = require_list_git_hub_repos.railwayListGitHubRepos;
37
+ exports.railwayListGitHubWritableScopes = require_list_git_hub_writable_scopes.railwayListGitHubWritableScopes;
38
+ exports.railwayListIntegrationAuths = require_list_integration_auths.railwayListIntegrationAuths;
39
+ exports.railwayListNotificationDeliveries = require_list_notification_deliveries.railwayListNotificationDeliveries;
40
+ exports.railwayListTrustedDomains = require_list_trusted_domains.railwayListTrustedDomains;
41
+ exports.railwayUpdateProject = require_update_project.railwayUpdateProject;
42
+ exports.railwayUpdateServiceInstance = require_update_service_instance.railwayUpdateServiceInstance;
@@ -0,0 +1,21 @@
1
+ import { railwayCreatePlugin } from "./actions/create-plugin.cjs";
2
+ import { railwayDeleteVariable } from "./actions/delete-variable.cjs";
3
+ import { railwayDeleteVolume } from "./actions/delete-volume.cjs";
4
+ import { railwayDeleteWorkspace } from "./actions/delete-workspace.cjs";
5
+ import { railwayDisconnectUserDiscord } from "./actions/disconnect-user-discord.cjs";
6
+ import { railwayGetDeploymentLogs } from "./actions/get-deployment-logs.cjs";
7
+ import { railwayGetEnvironment } from "./actions/get-environment.cjs";
8
+ import { railwayGetGitHubPrInfo } from "./actions/get-git-hub-pr-info.cjs";
9
+ import { railwayGetUserKickbackEarnings } from "./actions/get-user-kickback-earnings.cjs";
10
+ import { railwayListApiTokens } from "./actions/list-api-tokens.cjs";
11
+ import { railwayListEnvironmentPatches } from "./actions/list-environment-patches.cjs";
12
+ import { railwayListGitHubRepos } from "./actions/list-git-hub-repos.cjs";
13
+ import { railwayListGitHubWritableScopes } from "./actions/list-git-hub-writable-scopes.cjs";
14
+ import { railwayListIntegrationAuths } from "./actions/list-integration-auths.cjs";
15
+ import { railwayListNotificationDeliveries } from "./actions/list-notification-deliveries.cjs";
16
+ import { railwayListTrustedDomains } from "./actions/list-trusted-domains.cjs";
17
+ import { railwayUpdateProject } from "./actions/update-project.cjs";
18
+ import { railwayUpdateServiceInstance } from "./actions/update-service-instance.cjs";
19
+ import { railway } from "./app.cjs";
20
+ import { railwayCatalog } from "./catalog.cjs";
21
+ export { railway, railwayCatalog, railwayCreatePlugin, railwayDeleteVariable, railwayDeleteVolume, railwayDeleteWorkspace, railwayDisconnectUserDiscord, railwayGetDeploymentLogs, railwayGetEnvironment, railwayGetGitHubPrInfo, railwayGetUserKickbackEarnings, railwayListApiTokens, railwayListEnvironmentPatches, railwayListGitHubRepos, railwayListGitHubWritableScopes, railwayListIntegrationAuths, railwayListNotificationDeliveries, railwayListTrustedDomains, railwayUpdateProject, railwayUpdateServiceInstance };
@@ -0,0 +1,21 @@
1
+ import { railwayCreatePlugin } from "./actions/create-plugin.mjs";
2
+ import { railwayDeleteVariable } from "./actions/delete-variable.mjs";
3
+ import { railwayDeleteVolume } from "./actions/delete-volume.mjs";
4
+ import { railwayDeleteWorkspace } from "./actions/delete-workspace.mjs";
5
+ import { railwayDisconnectUserDiscord } from "./actions/disconnect-user-discord.mjs";
6
+ import { railwayGetDeploymentLogs } from "./actions/get-deployment-logs.mjs";
7
+ import { railwayGetEnvironment } from "./actions/get-environment.mjs";
8
+ import { railwayGetGitHubPrInfo } from "./actions/get-git-hub-pr-info.mjs";
9
+ import { railwayGetUserKickbackEarnings } from "./actions/get-user-kickback-earnings.mjs";
10
+ import { railwayListApiTokens } from "./actions/list-api-tokens.mjs";
11
+ import { railwayListEnvironmentPatches } from "./actions/list-environment-patches.mjs";
12
+ import { railwayListGitHubRepos } from "./actions/list-git-hub-repos.mjs";
13
+ import { railwayListGitHubWritableScopes } from "./actions/list-git-hub-writable-scopes.mjs";
14
+ import { railwayListIntegrationAuths } from "./actions/list-integration-auths.mjs";
15
+ import { railwayListNotificationDeliveries } from "./actions/list-notification-deliveries.mjs";
16
+ import { railwayListTrustedDomains } from "./actions/list-trusted-domains.mjs";
17
+ import { railwayUpdateProject } from "./actions/update-project.mjs";
18
+ import { railwayUpdateServiceInstance } from "./actions/update-service-instance.mjs";
19
+ import { railway } from "./app.mjs";
20
+ import { railwayCatalog } from "./catalog.mjs";
21
+ export { railway, railwayCatalog, railwayCreatePlugin, railwayDeleteVariable, railwayDeleteVolume, railwayDeleteWorkspace, railwayDisconnectUserDiscord, railwayGetDeploymentLogs, railwayGetEnvironment, railwayGetGitHubPrInfo, railwayGetUserKickbackEarnings, railwayListApiTokens, railwayListEnvironmentPatches, railwayListGitHubRepos, railwayListGitHubWritableScopes, railwayListIntegrationAuths, railwayListNotificationDeliveries, railwayListTrustedDomains, railwayUpdateProject, railwayUpdateServiceInstance };
package/dist/index.mjs ADDED
@@ -0,0 +1,22 @@
1
+ import { railway } from "./app.mjs";
2
+ import { railwayCatalog } from "./catalog.mjs";
3
+ import { railwayCreatePlugin } from "./actions/create-plugin.mjs";
4
+ import { railwayDeleteVariable } from "./actions/delete-variable.mjs";
5
+ import { railwayDeleteVolume } from "./actions/delete-volume.mjs";
6
+ import { railwayDeleteWorkspace } from "./actions/delete-workspace.mjs";
7
+ import { railwayDisconnectUserDiscord } from "./actions/disconnect-user-discord.mjs";
8
+ import { railwayGetDeploymentLogs } from "./actions/get-deployment-logs.mjs";
9
+ import { railwayGetEnvironment } from "./actions/get-environment.mjs";
10
+ import { railwayGetGitHubPrInfo } from "./actions/get-git-hub-pr-info.mjs";
11
+ import { railwayGetUserKickbackEarnings } from "./actions/get-user-kickback-earnings.mjs";
12
+ import { railwayListApiTokens } from "./actions/list-api-tokens.mjs";
13
+ import { railwayListEnvironmentPatches } from "./actions/list-environment-patches.mjs";
14
+ import { railwayListGitHubRepos } from "./actions/list-git-hub-repos.mjs";
15
+ import { railwayListGitHubWritableScopes } from "./actions/list-git-hub-writable-scopes.mjs";
16
+ import { railwayListIntegrationAuths } from "./actions/list-integration-auths.mjs";
17
+ import { railwayListNotificationDeliveries } from "./actions/list-notification-deliveries.mjs";
18
+ import { railwayListTrustedDomains } from "./actions/list-trusted-domains.mjs";
19
+ import { railwayUpdateProject } from "./actions/update-project.mjs";
20
+ import { railwayUpdateServiceInstance } from "./actions/update-service-instance.mjs";
21
+ import "./actions/index.mjs";
22
+ export { railway, railwayCatalog, railwayCreatePlugin, railwayDeleteVariable, railwayDeleteVolume, railwayDeleteWorkspace, railwayDisconnectUserDiscord, railwayGetDeploymentLogs, railwayGetEnvironment, railwayGetGitHubPrInfo, railwayGetUserKickbackEarnings, railwayListApiTokens, railwayListEnvironmentPatches, railwayListGitHubRepos, railwayListGitHubWritableScopes, railwayListIntegrationAuths, railwayListNotificationDeliveries, railwayListTrustedDomains, railwayUpdateProject, railwayUpdateServiceInstance };
package/package.json ADDED
@@ -0,0 +1,49 @@
1
+ {
2
+ "name": "@keystrokehq/railway",
3
+ "version": "0.1.0",
4
+ "publishConfig": {
5
+ "access": "public",
6
+ "registry": "https://registry.npmjs.org"
7
+ },
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://github.com/keystrokehq/keystroke.git",
11
+ "directory": "packages/integrations/railway"
12
+ },
13
+ "files": [
14
+ "dist"
15
+ ],
16
+ "sideEffects": false,
17
+ "type": "module",
18
+ "main": "./dist/index.cjs",
19
+ "module": "./dist/index.mjs",
20
+ "types": "./dist/index.d.mts",
21
+ "exports": {
22
+ ".": {
23
+ "types": "./dist/index.d.mts",
24
+ "import": "./dist/index.mjs",
25
+ "require": "./dist/index.cjs"
26
+ },
27
+ "./actions": {
28
+ "types": "./dist/actions/index.d.mts",
29
+ "import": "./dist/actions/index.mjs",
30
+ "require": "./dist/actions/index.cjs"
31
+ }
32
+ },
33
+ "peerDependencies": {
34
+ "@keystrokehq/keystroke": "^0.1.4",
35
+ "zod": "^4.4.3"
36
+ },
37
+ "devDependencies": {
38
+ "@keystrokehq/keystroke": "link:../../keystroke",
39
+ "@types/node": "^25.9.1",
40
+ "tsdown": "^0.22.0",
41
+ "typescript": "^6.0.3",
42
+ "zod": "^4.4.3"
43
+ },
44
+ "scripts": {
45
+ "build": "tsdown",
46
+ "dev": "tsdown --watch --no-clean",
47
+ "typecheck": "tsc --noEmit"
48
+ }
49
+ }