@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,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-deployment-logs.d.ts
4
+ declare const RailwayGetDeploymentLogsInput: z.ZodTypeAny;
5
+ declare const RailwayGetDeploymentLogsOutput: z.ZodTypeAny;
6
+ declare const railwayGetDeploymentLogs: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { railwayGetDeploymentLogs };
9
+ //# sourceMappingURL=get-deployment-logs.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-deployment-logs.d.mts","names":[],"sources":["../../src/actions/get-deployment-logs.ts"],"mappings":";;;cAIa,6BAAA,EAA+B,CAAA,CAAE,UAGmB;AAAA,cAMpD,8BAAA,EAAgC,CAAA,CAAE,UAEe;AAAA,cAEjD,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,23 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/get-deployment-logs.ts
4
+ const RailwayGetDeploymentLogsInput = z.object({
5
+ limit: z.number().int().default(25).describe("Maximum number of log entries to retrieve. Defaults to 25.").optional(),
6
+ deployment_id: z.string().describe("The unique identifier of the deployment to retrieve runtime logs for.")
7
+ }).describe("Request parameters for retrieving deployment logs.");
8
+ const RailwayGetDeploymentLogs_LogEntrySchema = z.object({
9
+ message: z.string().describe("The log message content.").nullable().optional(),
10
+ severity: z.string().describe("The log severity level (e.g., 'INFO', 'WARN', 'ERROR').").nullable().optional(),
11
+ timestamp: z.string().describe("ISO 8601 timestamp when the log entry was recorded.").nullable().optional()
12
+ }).describe("A single deployment log entry.");
13
+ const railwayGetDeploymentLogs = action("RAILWAY_GET_DEPLOYMENT_LOGS", {
14
+ slug: "railway-get-deployment-logs",
15
+ name: "Get Deployment Logs",
16
+ 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).",
17
+ input: RailwayGetDeploymentLogsInput,
18
+ output: z.object({ deployment_logs: z.array(RailwayGetDeploymentLogs_LogEntrySchema).describe("List of runtime log entries for the deployment.").nullable().optional() }).describe("Response schema for retrieving deployment logs.")
19
+ });
20
+ //#endregion
21
+ export { railwayGetDeploymentLogs };
22
+
23
+ //# sourceMappingURL=get-deployment-logs.mjs.map
@@ -0,0 +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.ZodTypeAny = 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.ZodTypeAny = 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}).describe(\"A single deployment log entry.\");\nexport const RailwayGetDeploymentLogsOutput: z.ZodTypeAny = z.object({\n deployment_logs: z.array(RailwayGetDeploymentLogs_LogEntrySchema).describe(\"List of runtime log entries for the deployment.\").nullable().optional(),\n}).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,gCAA8C,EAAE,OAAO;CAClE,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,0CAAwD,EAAE,OAAO;CACrE,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,SAAS,gCAAgC;AAK5C,MAAa,2BAA2B,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT0D,EAAE,OAAO,EACnE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACpJ,CAAC,CAAC,CAAC,SAAS,iDAOF;AACV,CAAC"}
@@ -0,0 +1,32 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/get-environment.ts
4
+ const RailwayGetEnvironmentInput = zod.z.object({ id: zod.z.string().describe("The unique identifier of the environment to retrieve. Example: 'abc123-def4-5678-ghij'") }).describe("Request schema for getting environment details.");
5
+ const RailwayGetEnvironment_LatestDeploymentSchema = zod.z.object({
6
+ id: zod.z.string().describe("The unique identifier of the latest deployment.").nullable().optional(),
7
+ status: zod.z.string().describe("The status of the latest deployment (e.g., 'SUCCESS', 'FAILURE', 'BUILDING').").nullable().optional()
8
+ }).describe("Latest deployment information for a service instance.");
9
+ const RailwayGetEnvironment_ServiceInstanceNodeSchema = zod.z.object({
10
+ id: zod.z.string().describe("The unique identifier of the service instance.").nullable().optional(),
11
+ service_name: zod.z.string().describe("The name of the service.").nullable().optional(),
12
+ latest_deployment: RailwayGetEnvironment_LatestDeploymentSchema.nullable().optional()
13
+ }).describe("Service instance node within the environment.");
14
+ const RailwayGetEnvironment_ServiceInstanceEdgeSchema = zod.z.object({ node: RailwayGetEnvironment_ServiceInstanceNodeSchema.nullable().optional() }).describe("Edge containing a service instance node.");
15
+ const RailwayGetEnvironment_ServiceInstancesConnectionSchema = zod.z.object({ edges: zod.z.array(RailwayGetEnvironment_ServiceInstanceEdgeSchema).describe("List of service instance edges.").nullable().optional() }).describe("Connection for service instances in the environment.");
16
+ const RailwayGetEnvironmentOutput = zod.z.object({
17
+ id: zod.z.string().describe("The unique identifier of the environment.").nullable().optional(),
18
+ name: zod.z.string().describe("The name of the environment.").nullable().optional(),
19
+ created_at: zod.z.string().describe("Timestamp when the environment was created.").nullable().optional(),
20
+ service_instances: RailwayGetEnvironment_ServiceInstancesConnectionSchema.nullable().optional()
21
+ }).describe("Response schema for the environment query.");
22
+ const railwayGetEnvironment = require_action.action("RAILWAY_GET_ENVIRONMENT", {
23
+ slug: "railway-get-environment",
24
+ name: "Get Environment",
25
+ 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.",
26
+ input: RailwayGetEnvironmentInput,
27
+ output: RailwayGetEnvironmentOutput
28
+ });
29
+ //#endregion
30
+ exports.railwayGetEnvironment = railwayGetEnvironment;
31
+
32
+ //# sourceMappingURL=get-environment.cjs.map
@@ -0,0 +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.ZodTypeAny = 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.ZodTypeAny = 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}).describe(\"Latest deployment information for a service instance.\");\nconst RailwayGetEnvironment_ServiceInstanceNodeSchema: z.ZodTypeAny = 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}).describe(\"Service instance node within the environment.\");\nconst RailwayGetEnvironment_ServiceInstanceEdgeSchema: z.ZodTypeAny = z.object({\n node: RailwayGetEnvironment_ServiceInstanceNodeSchema.nullable().optional(),\n}).describe(\"Edge containing a service instance node.\");\nconst RailwayGetEnvironment_ServiceInstancesConnectionSchema: z.ZodTypeAny = z.object({\n edges: z.array(RailwayGetEnvironment_ServiceInstanceEdgeSchema).describe(\"List of service instance edges.\").nullable().optional(),\n}).describe(\"Connection for service instances in the environment.\");\nexport const RailwayGetEnvironmentOutput: z.ZodTypeAny = 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}).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,6BAA2CA,IAAAA,EAAE,OAAO,EAC/D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF,EAClH,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC7D,MAAM,+CAA6DA,IAAAA,EAAE,OAAO;CAC1E,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,SAAS,uDAAuD;AACnE,MAAM,kDAAgEA,IAAAA,EAAE,OAAO;CAC7E,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,SAAS,+CAA+C;AAC3D,MAAM,kDAAgEA,IAAAA,EAAE,OAAO,EAC7E,MAAM,gDAAgD,SAAS,CAAC,CAAC,SAAS,EAC5E,CAAC,CAAC,CAAC,SAAS,0CAA0C;AACtD,MAAM,yDAAuEA,IAAAA,EAAE,OAAO,EACpF,OAAOA,IAAAA,EAAE,MAAM,+CAA+C,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAClI,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAa,8BAA4CA,IAAAA,EAAE,OAAO;CAChE,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,SAAS,4CAA4C;AAExD,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-environment.d.ts
4
+ declare const RailwayGetEnvironmentInput: z.ZodTypeAny;
5
+ declare const RailwayGetEnvironmentOutput: z.ZodTypeAny;
6
+ declare const railwayGetEnvironment: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { railwayGetEnvironment };
9
+ //# sourceMappingURL=get-environment.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-environment.d.cts","names":[],"sources":["../../src/actions/get-environment.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAEmB;AAAA,cAgBjD,2BAAA,EAA6B,CAAA,CAAE,UAKa;AAAA,cAE5C,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-environment.d.ts
4
+ declare const RailwayGetEnvironmentInput: z.ZodTypeAny;
5
+ declare const RailwayGetEnvironmentOutput: z.ZodTypeAny;
6
+ declare const railwayGetEnvironment: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { railwayGetEnvironment };
9
+ //# sourceMappingURL=get-environment.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-environment.d.mts","names":[],"sources":["../../src/actions/get-environment.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAEmB;AAAA,cAgBjD,2BAAA,EAA6B,CAAA,CAAE,UAKa;AAAA,cAE5C,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,31 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/get-environment.ts
4
+ const RailwayGetEnvironmentInput = z.object({ id: z.string().describe("The unique identifier of the environment to retrieve. Example: 'abc123-def4-5678-ghij'") }).describe("Request schema for getting environment details.");
5
+ const RailwayGetEnvironment_LatestDeploymentSchema = z.object({
6
+ id: z.string().describe("The unique identifier of the latest deployment.").nullable().optional(),
7
+ status: z.string().describe("The status of the latest deployment (e.g., 'SUCCESS', 'FAILURE', 'BUILDING').").nullable().optional()
8
+ }).describe("Latest deployment information for a service instance.");
9
+ const RailwayGetEnvironment_ServiceInstanceNodeSchema = z.object({
10
+ id: z.string().describe("The unique identifier of the service instance.").nullable().optional(),
11
+ service_name: z.string().describe("The name of the service.").nullable().optional(),
12
+ latest_deployment: RailwayGetEnvironment_LatestDeploymentSchema.nullable().optional()
13
+ }).describe("Service instance node within the environment.");
14
+ const RailwayGetEnvironment_ServiceInstanceEdgeSchema = z.object({ node: RailwayGetEnvironment_ServiceInstanceNodeSchema.nullable().optional() }).describe("Edge containing a service instance node.");
15
+ const RailwayGetEnvironment_ServiceInstancesConnectionSchema = z.object({ edges: z.array(RailwayGetEnvironment_ServiceInstanceEdgeSchema).describe("List of service instance edges.").nullable().optional() }).describe("Connection for service instances in the environment.");
16
+ const railwayGetEnvironment = action("RAILWAY_GET_ENVIRONMENT", {
17
+ slug: "railway-get-environment",
18
+ name: "Get Environment",
19
+ 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.",
20
+ input: RailwayGetEnvironmentInput,
21
+ output: z.object({
22
+ id: z.string().describe("The unique identifier of the environment.").nullable().optional(),
23
+ name: z.string().describe("The name of the environment.").nullable().optional(),
24
+ created_at: z.string().describe("Timestamp when the environment was created.").nullable().optional(),
25
+ service_instances: RailwayGetEnvironment_ServiceInstancesConnectionSchema.nullable().optional()
26
+ }).describe("Response schema for the environment query.")
27
+ });
28
+ //#endregion
29
+ export { railwayGetEnvironment };
30
+
31
+ //# sourceMappingURL=get-environment.mjs.map
@@ -0,0 +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.ZodTypeAny = 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.ZodTypeAny = 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}).describe(\"Latest deployment information for a service instance.\");\nconst RailwayGetEnvironment_ServiceInstanceNodeSchema: z.ZodTypeAny = 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}).describe(\"Service instance node within the environment.\");\nconst RailwayGetEnvironment_ServiceInstanceEdgeSchema: z.ZodTypeAny = z.object({\n node: RailwayGetEnvironment_ServiceInstanceNodeSchema.nullable().optional(),\n}).describe(\"Edge containing a service instance node.\");\nconst RailwayGetEnvironment_ServiceInstancesConnectionSchema: z.ZodTypeAny = z.object({\n edges: z.array(RailwayGetEnvironment_ServiceInstanceEdgeSchema).describe(\"List of service instance edges.\").nullable().optional(),\n}).describe(\"Connection for service instances in the environment.\");\nexport const RailwayGetEnvironmentOutput: z.ZodTypeAny = 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}).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,6BAA2C,EAAE,OAAO,EAC/D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF,EAClH,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC7D,MAAM,+CAA6D,EAAE,OAAO;CAC1E,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,SAAS,uDAAuD;AACnE,MAAM,kDAAgE,EAAE,OAAO;CAC7E,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,SAAS,+CAA+C;AAC3D,MAAM,kDAAgE,EAAE,OAAO,EAC7E,MAAM,gDAAgD,SAAS,CAAC,CAAC,SAAS,EAC5E,CAAC,CAAC,CAAC,SAAS,0CAA0C;AACtD,MAAM,yDAAuE,EAAE,OAAO,EACpF,OAAO,EAAE,MAAM,+CAA+C,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAClI,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAQlE,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZuD,EAAE,OAAO;EAChE,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,SAAS,4CAOF;AACV,CAAC"}
@@ -0,0 +1,28 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/get-git-hub-pr-info.ts
4
+ const RailwayGetGitHubPrInfoInput = zod.z.object({
5
+ prNumber: zod.z.number().int().describe("The pull request number (e.g., 1 for PR #1)."),
6
+ serviceId: zod.z.string().describe("The unique identifier of the Railway service to get the PR info for.")
7
+ }).describe("Request parameters for retrieving GitHub pull request information.");
8
+ const RailwayGetGitHubPrInfoOutput = zod.z.object({
9
+ body: zod.z.string().describe("The body/description of the pull request.").nullable().optional(),
10
+ state: zod.z.string().describe("The current state of the pull request (e.g., 'OPEN', 'CLOSED', 'MERGED').").nullable().optional(),
11
+ title: zod.z.string().describe("The title of the pull request.").nullable().optional(),
12
+ author: zod.z.string().describe("The GitHub username of the pull request author.").nullable().optional(),
13
+ additions: zod.z.number().int().describe("The number of additions in the pull request.").nullable().optional(),
14
+ deletions: zod.z.number().int().describe("The number of deletions in the pull request.").nullable().optional(),
15
+ mergeable: zod.z.boolean().describe("Whether the pull request is mergeable.").nullable().optional(),
16
+ changedFiles: zod.z.number().int().describe("The number of files changed in the pull request.").nullable().optional()
17
+ }).describe("Response schema for GitHub pull request information.");
18
+ const railwayGetGitHubPrInfo = require_action.action("RAILWAY_GET_GIT_HUB_PR_INFO", {
19
+ slug: "railway-get-git-hub-pr-info",
20
+ name: "Get GitHub PR Info",
21
+ 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.",
22
+ input: RailwayGetGitHubPrInfoInput,
23
+ output: RailwayGetGitHubPrInfoOutput
24
+ });
25
+ //#endregion
26
+ exports.railwayGetGitHubPrInfo = railwayGetGitHubPrInfo;
27
+
28
+ //# sourceMappingURL=get-git-hub-pr-info.cjs.map
@@ -0,0 +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.ZodTypeAny = 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.ZodTypeAny = 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}).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,8BAA4CA,IAAAA,EAAE,OAAO;CAChE,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,+BAA6CA,IAAAA,EAAE,OAAO;CACjE,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,SAAS,sDAAsD;AAElE,MAAa,yBAAyBC,eAAAA,OAAO,+BAA+B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-git-hub-pr-info.d.ts
4
+ declare const RailwayGetGitHubPrInfoInput: z.ZodTypeAny;
5
+ declare const RailwayGetGitHubPrInfoOutput: z.ZodTypeAny;
6
+ declare const railwayGetGitHubPrInfo: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { railwayGetGitHubPrInfo };
9
+ //# sourceMappingURL=get-git-hub-pr-info.d.cts.map
@@ -0,0 +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,EAA6B,CAAA,CAAE,UAGqC;AAAA,cACpE,4BAAA,EAA8B,CAAA,CAAE,UASsB;AAAA,cAEtD,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-git-hub-pr-info.d.ts
4
+ declare const RailwayGetGitHubPrInfoInput: z.ZodTypeAny;
5
+ declare const RailwayGetGitHubPrInfoOutput: z.ZodTypeAny;
6
+ declare const railwayGetGitHubPrInfo: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { railwayGetGitHubPrInfo };
9
+ //# sourceMappingURL=get-git-hub-pr-info.d.mts.map
@@ -0,0 +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,EAA6B,CAAA,CAAE,UAGqC;AAAA,cACpE,4BAAA,EAA8B,CAAA,CAAE,UASsB;AAAA,cAEtD,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,25 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ const railwayGetGitHubPrInfo = action("RAILWAY_GET_GIT_HUB_PR_INFO", {
4
+ slug: "railway-get-git-hub-pr-info",
5
+ name: "Get GitHub PR Info",
6
+ 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.",
7
+ input: z.object({
8
+ prNumber: z.number().int().describe("The pull request number (e.g., 1 for PR #1)."),
9
+ serviceId: z.string().describe("The unique identifier of the Railway service to get the PR info for.")
10
+ }).describe("Request parameters for retrieving GitHub pull request information."),
11
+ output: z.object({
12
+ body: z.string().describe("The body/description of the pull request.").nullable().optional(),
13
+ state: z.string().describe("The current state of the pull request (e.g., 'OPEN', 'CLOSED', 'MERGED').").nullable().optional(),
14
+ title: z.string().describe("The title of the pull request.").nullable().optional(),
15
+ author: z.string().describe("The GitHub username of the pull request author.").nullable().optional(),
16
+ additions: z.number().int().describe("The number of additions in the pull request.").nullable().optional(),
17
+ deletions: z.number().int().describe("The number of deletions in the pull request.").nullable().optional(),
18
+ mergeable: z.boolean().describe("Whether the pull request is mergeable.").nullable().optional(),
19
+ changedFiles: z.number().int().describe("The number of files changed in the pull request.").nullable().optional()
20
+ }).describe("Response schema for GitHub pull request information.")
21
+ });
22
+ //#endregion
23
+ export { railwayGetGitHubPrInfo };
24
+
25
+ //# sourceMappingURL=get-git-hub-pr-info.mjs.map
@@ -0,0 +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.ZodTypeAny = 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.ZodTypeAny = 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}).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,OAnBuD,EAAE,OAAO;EAChE,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,QAhBwD,EAAE,OAAO;EACjE,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,SAAS,sDAOF;AACV,CAAC"}
@@ -0,0 +1,17 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/get-user-kickback-earnings.ts
4
+ const RailwayGetUserKickbackEarningsInput = zod.z.object({}).describe("Request model for getting user kickback earnings.");
5
+ const RailwayGetUserKickbackEarnings_UserKickbackEarningsSchema = zod.z.object({ total_amount: zod.z.number().describe("The total amount of kickback earnings for the user.").nullable().optional() }).describe("User kickback earnings data.");
6
+ const RailwayGetUserKickbackEarningsOutput = zod.z.object({ user_kickback_earnings: RailwayGetUserKickbackEarnings_UserKickbackEarningsSchema.nullable().optional() }).describe("Response model for the user kickback earnings query.");
7
+ const railwayGetUserKickbackEarnings = require_action.action("RAILWAY_GET_USER_KICKBACK_EARNINGS", {
8
+ slug: "railway-get-user-kickback-earnings",
9
+ name: "Get User Kickback Earnings",
10
+ 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.",
11
+ input: RailwayGetUserKickbackEarningsInput,
12
+ output: RailwayGetUserKickbackEarningsOutput
13
+ });
14
+ //#endregion
15
+ exports.railwayGetUserKickbackEarnings = railwayGetUserKickbackEarnings;
16
+
17
+ //# sourceMappingURL=get-user-kickback-earnings.cjs.map
@@ -0,0 +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.ZodTypeAny = z.object({}).describe(\"Request model for getting user kickback earnings.\");\nconst RailwayGetUserKickbackEarnings_UserKickbackEarningsSchema: z.ZodTypeAny = z.object({\n total_amount: z.number().describe(\"The total amount of kickback earnings for the user.\").nullable().optional(),\n}).describe(\"User kickback earnings data.\");\nexport const RailwayGetUserKickbackEarningsOutput: z.ZodTypeAny = z.object({\n user_kickback_earnings: RailwayGetUserKickbackEarnings_UserKickbackEarningsSchema.nullable().optional(),\n}).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,sCAAoDA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC1I,MAAM,4DAA0EA,IAAAA,EAAE,OAAO,EACvF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC/G,CAAC,CAAC,CAAC,SAAS,8BAA8B;AAC1C,MAAa,uCAAqDA,IAAAA,EAAE,OAAO,EACzE,wBAAwB,0DAA0D,SAAS,CAAC,CAAC,SAAS,EACxG,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAElE,MAAa,iCAAiCC,eAAAA,OAAO,sCAAsC;CACzF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-user-kickback-earnings.d.ts
4
+ declare const RailwayGetUserKickbackEarningsInput: z.ZodTypeAny;
5
+ declare const RailwayGetUserKickbackEarningsOutput: z.ZodTypeAny;
6
+ declare const railwayGetUserKickbackEarnings: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { railwayGetUserKickbackEarnings };
9
+ //# sourceMappingURL=get-user-kickback-earnings.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-user-kickback-earnings.d.cts","names":[],"sources":["../../src/actions/get-user-kickback-earnings.ts"],"mappings":";;;cAIa,mCAAA,EAAqC,CAAA,CAAE,UAAuF;AAAA,cAI9H,oCAAA,EAAsC,CAAA,CAAE,UAEc;AAAA,cAEtD,8BAAA,gCAA8B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-user-kickback-earnings.d.ts
4
+ declare const RailwayGetUserKickbackEarningsInput: z.ZodTypeAny;
5
+ declare const RailwayGetUserKickbackEarningsOutput: z.ZodTypeAny;
6
+ declare const railwayGetUserKickbackEarnings: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { railwayGetUserKickbackEarnings };
9
+ //# sourceMappingURL=get-user-kickback-earnings.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-user-kickback-earnings.d.mts","names":[],"sources":["../../src/actions/get-user-kickback-earnings.ts"],"mappings":";;;cAIa,mCAAA,EAAqC,CAAA,CAAE,UAAuF;AAAA,cAI9H,oCAAA,EAAsC,CAAA,CAAE,UAEc;AAAA,cAEtD,8BAAA,gCAA8B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,16 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/get-user-kickback-earnings.ts
4
+ const RailwayGetUserKickbackEarningsInput = z.object({}).describe("Request model for getting user kickback earnings.");
5
+ const RailwayGetUserKickbackEarnings_UserKickbackEarningsSchema = z.object({ total_amount: z.number().describe("The total amount of kickback earnings for the user.").nullable().optional() }).describe("User kickback earnings data.");
6
+ const railwayGetUserKickbackEarnings = action("RAILWAY_GET_USER_KICKBACK_EARNINGS", {
7
+ slug: "railway-get-user-kickback-earnings",
8
+ name: "Get User Kickback Earnings",
9
+ 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.",
10
+ input: RailwayGetUserKickbackEarningsInput,
11
+ output: z.object({ user_kickback_earnings: RailwayGetUserKickbackEarnings_UserKickbackEarningsSchema.nullable().optional() }).describe("Response model for the user kickback earnings query.")
12
+ });
13
+ //#endregion
14
+ export { railwayGetUserKickbackEarnings };
15
+
16
+ //# sourceMappingURL=get-user-kickback-earnings.mjs.map
@@ -0,0 +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.ZodTypeAny = z.object({}).describe(\"Request model for getting user kickback earnings.\");\nconst RailwayGetUserKickbackEarnings_UserKickbackEarningsSchema: z.ZodTypeAny = z.object({\n total_amount: z.number().describe(\"The total amount of kickback earnings for the user.\").nullable().optional(),\n}).describe(\"User kickback earnings data.\");\nexport const RailwayGetUserKickbackEarningsOutput: z.ZodTypeAny = z.object({\n user_kickback_earnings: RailwayGetUserKickbackEarnings_UserKickbackEarningsSchema.nullable().optional(),\n}).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,sCAAoD,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC1I,MAAM,4DAA0E,EAAE,OAAO,EACvF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC/G,CAAC,CAAC,CAAC,SAAS,8BAA8B;AAK1C,MAAa,iCAAiC,OAAO,sCAAsC;CACzF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATgE,EAAE,OAAO,EACzE,wBAAwB,0DAA0D,SAAS,CAAC,CAAC,SAAS,EACxG,CAAC,CAAC,CAAC,SAAS,sDAOF;AACV,CAAC"}
@@ -0,0 +1,37 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_create_plugin = require("./create-plugin.cjs");
3
+ const require_delete_variable = require("./delete-variable.cjs");
4
+ const require_delete_volume = require("./delete-volume.cjs");
5
+ const require_delete_workspace = require("./delete-workspace.cjs");
6
+ const require_disconnect_user_discord = require("./disconnect-user-discord.cjs");
7
+ const require_get_deployment_logs = require("./get-deployment-logs.cjs");
8
+ const require_get_environment = require("./get-environment.cjs");
9
+ const require_get_git_hub_pr_info = require("./get-git-hub-pr-info.cjs");
10
+ const require_get_user_kickback_earnings = require("./get-user-kickback-earnings.cjs");
11
+ const require_list_api_tokens = require("./list-api-tokens.cjs");
12
+ const require_list_environment_patches = require("./list-environment-patches.cjs");
13
+ const require_list_git_hub_repos = require("./list-git-hub-repos.cjs");
14
+ const require_list_git_hub_writable_scopes = require("./list-git-hub-writable-scopes.cjs");
15
+ const require_list_integration_auths = require("./list-integration-auths.cjs");
16
+ const require_list_notification_deliveries = require("./list-notification-deliveries.cjs");
17
+ const require_list_trusted_domains = require("./list-trusted-domains.cjs");
18
+ const require_update_project = require("./update-project.cjs");
19
+ const require_update_service_instance = require("./update-service-instance.cjs");
20
+ exports.railwayCreatePlugin = require_create_plugin.railwayCreatePlugin;
21
+ exports.railwayDeleteVariable = require_delete_variable.railwayDeleteVariable;
22
+ exports.railwayDeleteVolume = require_delete_volume.railwayDeleteVolume;
23
+ exports.railwayDeleteWorkspace = require_delete_workspace.railwayDeleteWorkspace;
24
+ exports.railwayDisconnectUserDiscord = require_disconnect_user_discord.railwayDisconnectUserDiscord;
25
+ exports.railwayGetDeploymentLogs = require_get_deployment_logs.railwayGetDeploymentLogs;
26
+ exports.railwayGetEnvironment = require_get_environment.railwayGetEnvironment;
27
+ exports.railwayGetGitHubPrInfo = require_get_git_hub_pr_info.railwayGetGitHubPrInfo;
28
+ exports.railwayGetUserKickbackEarnings = require_get_user_kickback_earnings.railwayGetUserKickbackEarnings;
29
+ exports.railwayListApiTokens = require_list_api_tokens.railwayListApiTokens;
30
+ exports.railwayListEnvironmentPatches = require_list_environment_patches.railwayListEnvironmentPatches;
31
+ exports.railwayListGitHubRepos = require_list_git_hub_repos.railwayListGitHubRepos;
32
+ exports.railwayListGitHubWritableScopes = require_list_git_hub_writable_scopes.railwayListGitHubWritableScopes;
33
+ exports.railwayListIntegrationAuths = require_list_integration_auths.railwayListIntegrationAuths;
34
+ exports.railwayListNotificationDeliveries = require_list_notification_deliveries.railwayListNotificationDeliveries;
35
+ exports.railwayListTrustedDomains = require_list_trusted_domains.railwayListTrustedDomains;
36
+ exports.railwayUpdateProject = require_update_project.railwayUpdateProject;
37
+ exports.railwayUpdateServiceInstance = require_update_service_instance.railwayUpdateServiceInstance;
@@ -0,0 +1,19 @@
1
+ import { railwayCreatePlugin } from "./create-plugin.cjs";
2
+ import { railwayDeleteVariable } from "./delete-variable.cjs";
3
+ import { railwayDeleteVolume } from "./delete-volume.cjs";
4
+ import { railwayDeleteWorkspace } from "./delete-workspace.cjs";
5
+ import { railwayDisconnectUserDiscord } from "./disconnect-user-discord.cjs";
6
+ import { railwayGetDeploymentLogs } from "./get-deployment-logs.cjs";
7
+ import { railwayGetEnvironment } from "./get-environment.cjs";
8
+ import { railwayGetGitHubPrInfo } from "./get-git-hub-pr-info.cjs";
9
+ import { railwayGetUserKickbackEarnings } from "./get-user-kickback-earnings.cjs";
10
+ import { railwayListApiTokens } from "./list-api-tokens.cjs";
11
+ import { railwayListEnvironmentPatches } from "./list-environment-patches.cjs";
12
+ import { railwayListGitHubRepos } from "./list-git-hub-repos.cjs";
13
+ import { railwayListGitHubWritableScopes } from "./list-git-hub-writable-scopes.cjs";
14
+ import { railwayListIntegrationAuths } from "./list-integration-auths.cjs";
15
+ import { railwayListNotificationDeliveries } from "./list-notification-deliveries.cjs";
16
+ import { railwayListTrustedDomains } from "./list-trusted-domains.cjs";
17
+ import { railwayUpdateProject } from "./update-project.cjs";
18
+ import { railwayUpdateServiceInstance } from "./update-service-instance.cjs";
19
+ export { railwayCreatePlugin, railwayDeleteVariable, railwayDeleteVolume, railwayDeleteWorkspace, railwayDisconnectUserDiscord, railwayGetDeploymentLogs, railwayGetEnvironment, railwayGetGitHubPrInfo, railwayGetUserKickbackEarnings, railwayListApiTokens, railwayListEnvironmentPatches, railwayListGitHubRepos, railwayListGitHubWritableScopes, railwayListIntegrationAuths, railwayListNotificationDeliveries, railwayListTrustedDomains, railwayUpdateProject, railwayUpdateServiceInstance };
@@ -0,0 +1,19 @@
1
+ import { railwayCreatePlugin } from "./create-plugin.mjs";
2
+ import { railwayDeleteVariable } from "./delete-variable.mjs";
3
+ import { railwayDeleteVolume } from "./delete-volume.mjs";
4
+ import { railwayDeleteWorkspace } from "./delete-workspace.mjs";
5
+ import { railwayDisconnectUserDiscord } from "./disconnect-user-discord.mjs";
6
+ import { railwayGetDeploymentLogs } from "./get-deployment-logs.mjs";
7
+ import { railwayGetEnvironment } from "./get-environment.mjs";
8
+ import { railwayGetGitHubPrInfo } from "./get-git-hub-pr-info.mjs";
9
+ import { railwayGetUserKickbackEarnings } from "./get-user-kickback-earnings.mjs";
10
+ import { railwayListApiTokens } from "./list-api-tokens.mjs";
11
+ import { railwayListEnvironmentPatches } from "./list-environment-patches.mjs";
12
+ import { railwayListGitHubRepos } from "./list-git-hub-repos.mjs";
13
+ import { railwayListGitHubWritableScopes } from "./list-git-hub-writable-scopes.mjs";
14
+ import { railwayListIntegrationAuths } from "./list-integration-auths.mjs";
15
+ import { railwayListNotificationDeliveries } from "./list-notification-deliveries.mjs";
16
+ import { railwayListTrustedDomains } from "./list-trusted-domains.mjs";
17
+ import { railwayUpdateProject } from "./update-project.mjs";
18
+ import { railwayUpdateServiceInstance } from "./update-service-instance.mjs";
19
+ export { railwayCreatePlugin, railwayDeleteVariable, railwayDeleteVolume, railwayDeleteWorkspace, railwayDisconnectUserDiscord, railwayGetDeploymentLogs, railwayGetEnvironment, railwayGetGitHubPrInfo, railwayGetUserKickbackEarnings, railwayListApiTokens, railwayListEnvironmentPatches, railwayListGitHubRepos, railwayListGitHubWritableScopes, railwayListIntegrationAuths, railwayListNotificationDeliveries, railwayListTrustedDomains, railwayUpdateProject, railwayUpdateServiceInstance };
@@ -0,0 +1,19 @@
1
+ import { railwayCreatePlugin } from "./create-plugin.mjs";
2
+ import { railwayDeleteVariable } from "./delete-variable.mjs";
3
+ import { railwayDeleteVolume } from "./delete-volume.mjs";
4
+ import { railwayDeleteWorkspace } from "./delete-workspace.mjs";
5
+ import { railwayDisconnectUserDiscord } from "./disconnect-user-discord.mjs";
6
+ import { railwayGetDeploymentLogs } from "./get-deployment-logs.mjs";
7
+ import { railwayGetEnvironment } from "./get-environment.mjs";
8
+ import { railwayGetGitHubPrInfo } from "./get-git-hub-pr-info.mjs";
9
+ import { railwayGetUserKickbackEarnings } from "./get-user-kickback-earnings.mjs";
10
+ import { railwayListApiTokens } from "./list-api-tokens.mjs";
11
+ import { railwayListEnvironmentPatches } from "./list-environment-patches.mjs";
12
+ import { railwayListGitHubRepos } from "./list-git-hub-repos.mjs";
13
+ import { railwayListGitHubWritableScopes } from "./list-git-hub-writable-scopes.mjs";
14
+ import { railwayListIntegrationAuths } from "./list-integration-auths.mjs";
15
+ import { railwayListNotificationDeliveries } from "./list-notification-deliveries.mjs";
16
+ import { railwayListTrustedDomains } from "./list-trusted-domains.mjs";
17
+ import { railwayUpdateProject } from "./update-project.mjs";
18
+ import { railwayUpdateServiceInstance } from "./update-service-instance.mjs";
19
+ export { railwayCreatePlugin, railwayDeleteVariable, railwayDeleteVolume, railwayDeleteWorkspace, railwayDisconnectUserDiscord, railwayGetDeploymentLogs, railwayGetEnvironment, railwayGetGitHubPrInfo, railwayGetUserKickbackEarnings, railwayListApiTokens, railwayListEnvironmentPatches, railwayListGitHubRepos, railwayListGitHubWritableScopes, railwayListIntegrationAuths, railwayListNotificationDeliveries, railwayListTrustedDomains, railwayUpdateProject, railwayUpdateServiceInstance };
@@ -0,0 +1,21 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/list-api-tokens.ts
4
+ const RailwayListApiTokensInput = zod.z.object({}).describe("Request parameters for listing API tokens.");
5
+ const RailwayListApiTokens_ApiTokenSchema = zod.z.object({
6
+ id: zod.z.string().describe("The unique identifier of the API token."),
7
+ name: zod.z.string().describe("The name of the API token."),
8
+ created_at: zod.z.string().describe("The timestamp when the API token was created (ISO 8601 format).")
9
+ }).describe("Individual API token data.");
10
+ const RailwayListApiTokensOutput = zod.z.object({ api_tokens: zod.z.array(RailwayListApiTokens_ApiTokenSchema).describe("List of API tokens associated with the authenticated user.").nullable().optional() }).describe("Response schema containing all API tokens for the authenticated user.");
11
+ const railwayListApiTokens = require_action.action("RAILWAY_LIST_API_TOKENS", {
12
+ slug: "railway-list-api-tokens",
13
+ name: "List API Tokens",
14
+ 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.",
15
+ input: RailwayListApiTokensInput,
16
+ output: RailwayListApiTokensOutput
17
+ });
18
+ //#endregion
19
+ exports.railwayListApiTokens = railwayListApiTokens;
20
+
21
+ //# sourceMappingURL=list-api-tokens.cjs.map
@@ -0,0 +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.ZodTypeAny = z.object({}).describe(\"Request parameters for listing API tokens.\");\nconst RailwayListApiTokens_ApiTokenSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier of the API token.\"),\n name: z.string().describe(\"The name of the API token.\"),\n created_at: z.string().describe(\"The timestamp when the API token was created (ISO 8601 format).\"),\n}).describe(\"Individual API token data.\");\nexport const RailwayListApiTokensOutput: z.ZodTypeAny = z.object({\n api_tokens: z.array(RailwayListApiTokens_ApiTokenSchema).describe(\"List of API tokens associated with the authenticated user.\").nullable().optional(),\n}).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,4BAA0CA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,4CAA4C;AACzH,MAAM,sCAAoDA,IAAAA,EAAE,OAAO;CACjE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;CACjE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;CACtD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE;AACnG,CAAC,CAAC,CAAC,SAAS,4BAA4B;AACxC,MAAa,6BAA2CA,IAAAA,EAAE,OAAO,EAC/D,YAAYA,IAAAA,EAAE,MAAM,mCAAmC,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACtJ,CAAC,CAAC,CAAC,SAAS,uEAAuE;AAEnF,MAAa,uBAAuBC,eAAAA,OAAO,2BAA2B;CACpE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/list-api-tokens.d.ts
4
+ declare const RailwayListApiTokensInput: z.ZodTypeAny;
5
+ declare const RailwayListApiTokensOutput: z.ZodTypeAny;
6
+ declare const railwayListApiTokens: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { railwayListApiTokens };
9
+ //# sourceMappingURL=list-api-tokens.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-api-tokens.d.cts","names":[],"sources":["../../src/actions/list-api-tokens.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAAgF;AAAA,cAM7G,0BAAA,EAA4B,CAAA,CAAE,UAEyC;AAAA,cAEvE,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/list-api-tokens.d.ts
4
+ declare const RailwayListApiTokensInput: z.ZodTypeAny;
5
+ declare const RailwayListApiTokensOutput: z.ZodTypeAny;
6
+ declare const railwayListApiTokens: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { railwayListApiTokens };
9
+ //# sourceMappingURL=list-api-tokens.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-api-tokens.d.mts","names":[],"sources":["../../src/actions/list-api-tokens.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAAgF;AAAA,cAM7G,0BAAA,EAA4B,CAAA,CAAE,UAEyC;AAAA,cAEvE,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,20 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/list-api-tokens.ts
4
+ const RailwayListApiTokensInput = z.object({}).describe("Request parameters for listing API tokens.");
5
+ const RailwayListApiTokens_ApiTokenSchema = z.object({
6
+ id: z.string().describe("The unique identifier of the API token."),
7
+ name: z.string().describe("The name of the API token."),
8
+ created_at: z.string().describe("The timestamp when the API token was created (ISO 8601 format).")
9
+ }).describe("Individual API token data.");
10
+ const railwayListApiTokens = action("RAILWAY_LIST_API_TOKENS", {
11
+ slug: "railway-list-api-tokens",
12
+ name: "List API Tokens",
13
+ 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.",
14
+ input: RailwayListApiTokensInput,
15
+ output: z.object({ api_tokens: z.array(RailwayListApiTokens_ApiTokenSchema).describe("List of API tokens associated with the authenticated user.").nullable().optional() }).describe("Response schema containing all API tokens for the authenticated user.")
16
+ });
17
+ //#endregion
18
+ export { railwayListApiTokens };
19
+
20
+ //# sourceMappingURL=list-api-tokens.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-api-tokens.mjs","names":[],"sources":["../../src/actions/list-api-tokens.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RailwayListApiTokensInput: z.ZodTypeAny = z.object({}).describe(\"Request parameters for listing API tokens.\");\nconst RailwayListApiTokens_ApiTokenSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier of the API token.\"),\n name: z.string().describe(\"The name of the API token.\"),\n created_at: z.string().describe(\"The timestamp when the API token was created (ISO 8601 format).\"),\n}).describe(\"Individual API token data.\");\nexport const RailwayListApiTokensOutput: z.ZodTypeAny = z.object({\n api_tokens: z.array(RailwayListApiTokens_ApiTokenSchema).describe(\"List of API tokens associated with the authenticated user.\").nullable().optional(),\n}).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,4BAA0C,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,4CAA4C;AACzH,MAAM,sCAAoD,EAAE,OAAO;CACjE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;CACjE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;CACtD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE;AACnG,CAAC,CAAC,CAAC,SAAS,4BAA4B;AAKxC,MAAa,uBAAuB,OAAO,2BAA2B;CACpE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATsD,EAAE,OAAO,EAC/D,YAAY,EAAE,MAAM,mCAAmC,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACtJ,CAAC,CAAC,CAAC,SAAS,uEAOF;AACV,CAAC"}
@@ -0,0 +1,25 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/list-environment-patches.ts
4
+ const RailwayListEnvironmentPatchesInput = zod.z.object({
5
+ after: zod.z.string().describe("Cursor for pagination - return patches after this cursor.").optional(),
6
+ first: zod.z.number().int().describe("Maximum number of patches to return (for pagination).").optional(),
7
+ environment_id: zod.z.string().describe("The unique identifier of the environment to get patches for.")
8
+ }).describe("Request parameters for listing environment patches.");
9
+ const RailwayListEnvironmentPatches_EnvironmentPatchSchema = zod.z.object({
10
+ id: zod.z.string().describe("The unique identifier of the patch.").nullable().optional(),
11
+ created_at: zod.z.string().describe("The timestamp when the patch was created (ISO 8601 format).").nullable().optional(),
12
+ updated_at: zod.z.string().describe("The timestamp when the patch was last updated (ISO 8601 format).").nullable().optional()
13
+ }).describe("A single patch entry for an environment.");
14
+ const RailwayListEnvironmentPatchesOutput = zod.z.object({ environment_patches: zod.z.array(RailwayListEnvironmentPatches_EnvironmentPatchSchema).describe("List of patches associated with the specified environment.").nullable().optional() }).describe("Response schema for listing environment patches.");
15
+ const railwayListEnvironmentPatches = require_action.action("RAILWAY_LIST_ENVIRONMENT_PATCHES", {
16
+ slug: "railway-list-environment-patches",
17
+ name: "List Environment Patches",
18
+ description: "Retrieve all patches for a Railway environment using the GraphQL API. Use this action when you need to fetch the list of configuration patches applied to an environment. This is useful for auditing environment history, tracking configuration changes, or reviewing past deployments to an environment. The action queries the Railway GraphQL API for all patches associated with the specified environment ID and returns their metadata including identifiers and timestamps.",
19
+ input: RailwayListEnvironmentPatchesInput,
20
+ output: RailwayListEnvironmentPatchesOutput
21
+ });
22
+ //#endregion
23
+ exports.railwayListEnvironmentPatches = railwayListEnvironmentPatches;
24
+
25
+ //# sourceMappingURL=list-environment-patches.cjs.map