@keystrokehq/railway 0.1.0 → 0.1.2

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 (135) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/create-plugin.cjs +3 -3
  4. package/dist/actions/create-plugin.cjs.map +1 -1
  5. package/dist/actions/create-plugin.d.cts +20 -3
  6. package/dist/actions/create-plugin.d.cts.map +1 -1
  7. package/dist/actions/create-plugin.d.mts +20 -3
  8. package/dist/actions/create-plugin.d.mts.map +1 -1
  9. package/dist/actions/create-plugin.mjs +3 -3
  10. package/dist/actions/create-plugin.mjs.map +1 -1
  11. package/dist/actions/delete-variable.cjs.map +1 -1
  12. package/dist/actions/delete-variable.d.cts +15 -3
  13. package/dist/actions/delete-variable.d.cts.map +1 -1
  14. package/dist/actions/delete-variable.d.mts +15 -3
  15. package/dist/actions/delete-variable.d.mts.map +1 -1
  16. package/dist/actions/delete-variable.mjs.map +1 -1
  17. package/dist/actions/delete-volume.cjs +1 -1
  18. package/dist/actions/delete-volume.cjs.map +1 -1
  19. package/dist/actions/delete-volume.d.cts +9 -3
  20. package/dist/actions/delete-volume.d.cts.map +1 -1
  21. package/dist/actions/delete-volume.d.mts +9 -3
  22. package/dist/actions/delete-volume.d.mts.map +1 -1
  23. package/dist/actions/delete-volume.mjs +1 -1
  24. package/dist/actions/delete-volume.mjs.map +1 -1
  25. package/dist/actions/delete-workspace.cjs +1 -1
  26. package/dist/actions/delete-workspace.cjs.map +1 -1
  27. package/dist/actions/delete-workspace.d.cts +15 -3
  28. package/dist/actions/delete-workspace.d.cts.map +1 -1
  29. package/dist/actions/delete-workspace.d.mts +15 -3
  30. package/dist/actions/delete-workspace.d.mts.map +1 -1
  31. package/dist/actions/delete-workspace.mjs +1 -1
  32. package/dist/actions/delete-workspace.mjs.map +1 -1
  33. package/dist/actions/disconnect-user-discord.cjs.map +1 -1
  34. package/dist/actions/disconnect-user-discord.d.cts +5 -3
  35. package/dist/actions/disconnect-user-discord.d.cts.map +1 -1
  36. package/dist/actions/disconnect-user-discord.d.mts +5 -3
  37. package/dist/actions/disconnect-user-discord.d.mts.map +1 -1
  38. package/dist/actions/disconnect-user-discord.mjs.map +1 -1
  39. package/dist/actions/get-deployment-logs.cjs.map +1 -1
  40. package/dist/actions/get-deployment-logs.d.cts +15 -3
  41. package/dist/actions/get-deployment-logs.d.cts.map +1 -1
  42. package/dist/actions/get-deployment-logs.d.mts +15 -3
  43. package/dist/actions/get-deployment-logs.d.mts.map +1 -1
  44. package/dist/actions/get-deployment-logs.mjs.map +1 -1
  45. package/dist/actions/get-environment.cjs.map +1 -1
  46. package/dist/actions/get-environment.d.cts +23 -3
  47. package/dist/actions/get-environment.d.cts.map +1 -1
  48. package/dist/actions/get-environment.d.mts +23 -3
  49. package/dist/actions/get-environment.d.mts.map +1 -1
  50. package/dist/actions/get-environment.mjs.map +1 -1
  51. package/dist/actions/get-git-hub-pr-info.cjs.map +1 -1
  52. package/dist/actions/get-git-hub-pr-info.d.cts +18 -3
  53. package/dist/actions/get-git-hub-pr-info.d.cts.map +1 -1
  54. package/dist/actions/get-git-hub-pr-info.d.mts +18 -3
  55. package/dist/actions/get-git-hub-pr-info.d.mts.map +1 -1
  56. package/dist/actions/get-git-hub-pr-info.mjs.map +1 -1
  57. package/dist/actions/get-user-kickback-earnings.cjs.map +1 -1
  58. package/dist/actions/get-user-kickback-earnings.d.cts +7 -3
  59. package/dist/actions/get-user-kickback-earnings.d.cts.map +1 -1
  60. package/dist/actions/get-user-kickback-earnings.d.mts +7 -3
  61. package/dist/actions/get-user-kickback-earnings.d.mts.map +1 -1
  62. package/dist/actions/get-user-kickback-earnings.mjs.map +1 -1
  63. package/dist/actions/list-api-tokens.cjs +3 -3
  64. package/dist/actions/list-api-tokens.cjs.map +1 -1
  65. package/dist/actions/list-api-tokens.d.cts +9 -3
  66. package/dist/actions/list-api-tokens.d.cts.map +1 -1
  67. package/dist/actions/list-api-tokens.d.mts +9 -3
  68. package/dist/actions/list-api-tokens.d.mts.map +1 -1
  69. package/dist/actions/list-api-tokens.mjs +3 -3
  70. package/dist/actions/list-api-tokens.mjs.map +1 -1
  71. package/dist/actions/list-environment-patches.cjs.map +1 -1
  72. package/dist/actions/list-environment-patches.d.cts +17 -3
  73. package/dist/actions/list-environment-patches.d.cts.map +1 -1
  74. package/dist/actions/list-environment-patches.d.mts +17 -3
  75. package/dist/actions/list-environment-patches.d.mts.map +1 -1
  76. package/dist/actions/list-environment-patches.mjs.map +1 -1
  77. package/dist/actions/list-git-hub-repos.cjs +3 -3
  78. package/dist/actions/list-git-hub-repos.cjs.map +1 -1
  79. package/dist/actions/list-git-hub-repos.d.cts +9 -3
  80. package/dist/actions/list-git-hub-repos.d.cts.map +1 -1
  81. package/dist/actions/list-git-hub-repos.d.mts +9 -3
  82. package/dist/actions/list-git-hub-repos.d.mts.map +1 -1
  83. package/dist/actions/list-git-hub-repos.mjs +3 -3
  84. package/dist/actions/list-git-hub-repos.mjs.map +1 -1
  85. package/dist/actions/list-git-hub-writable-scopes.cjs.map +1 -1
  86. package/dist/actions/list-git-hub-writable-scopes.d.cts +5 -3
  87. package/dist/actions/list-git-hub-writable-scopes.d.cts.map +1 -1
  88. package/dist/actions/list-git-hub-writable-scopes.d.mts +5 -3
  89. package/dist/actions/list-git-hub-writable-scopes.d.mts.map +1 -1
  90. package/dist/actions/list-git-hub-writable-scopes.mjs.map +1 -1
  91. package/dist/actions/list-integration-auths.cjs +1 -1
  92. package/dist/actions/list-integration-auths.cjs.map +1 -1
  93. package/dist/actions/list-integration-auths.d.cts +12 -3
  94. package/dist/actions/list-integration-auths.d.cts.map +1 -1
  95. package/dist/actions/list-integration-auths.d.mts +12 -3
  96. package/dist/actions/list-integration-auths.d.mts.map +1 -1
  97. package/dist/actions/list-integration-auths.mjs +1 -1
  98. package/dist/actions/list-integration-auths.mjs.map +1 -1
  99. package/dist/actions/list-notification-deliveries.cjs +1 -1
  100. package/dist/actions/list-notification-deliveries.cjs.map +1 -1
  101. package/dist/actions/list-notification-deliveries.d.cts +9 -3
  102. package/dist/actions/list-notification-deliveries.d.cts.map +1 -1
  103. package/dist/actions/list-notification-deliveries.d.mts +9 -3
  104. package/dist/actions/list-notification-deliveries.d.mts.map +1 -1
  105. package/dist/actions/list-notification-deliveries.mjs +1 -1
  106. package/dist/actions/list-notification-deliveries.mjs.map +1 -1
  107. package/dist/actions/list-trusted-domains.cjs +2 -2
  108. package/dist/actions/list-trusted-domains.cjs.map +1 -1
  109. package/dist/actions/list-trusted-domains.d.cts +13 -3
  110. package/dist/actions/list-trusted-domains.d.cts.map +1 -1
  111. package/dist/actions/list-trusted-domains.d.mts +13 -3
  112. package/dist/actions/list-trusted-domains.d.mts.map +1 -1
  113. package/dist/actions/list-trusted-domains.mjs +2 -2
  114. package/dist/actions/list-trusted-domains.mjs.map +1 -1
  115. package/dist/actions/update-project.cjs +1 -1
  116. package/dist/actions/update-project.cjs.map +1 -1
  117. package/dist/actions/update-project.d.cts +21 -3
  118. package/dist/actions/update-project.d.cts.map +1 -1
  119. package/dist/actions/update-project.d.mts +21 -3
  120. package/dist/actions/update-project.d.mts.map +1 -1
  121. package/dist/actions/update-project.mjs +1 -1
  122. package/dist/actions/update-project.mjs.map +1 -1
  123. package/dist/actions/update-service-instance.cjs.map +1 -1
  124. package/dist/actions/update-service-instance.d.cts +45 -3
  125. package/dist/actions/update-service-instance.d.cts.map +1 -1
  126. package/dist/actions/update-service-instance.d.mts +45 -3
  127. package/dist/actions/update-service-instance.d.mts.map +1 -1
  128. package/dist/actions/update-service-instance.mjs.map +1 -1
  129. package/dist/catalog.cjs +7 -1
  130. package/dist/catalog.cjs.map +1 -1
  131. package/dist/catalog.d.cts +8 -0
  132. package/dist/catalog.d.mts +8 -0
  133. package/dist/catalog.mjs +7 -1
  134. package/dist/catalog.mjs.map +1 -1
  135. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"update-project.cjs","names":["z","action"],"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":";;;AAIA,MAAa,4BAA0CA,IAAAA,EAAE,OAAO;CAC9D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;CACzE,OAAOA,IAAAA,EAAE,OAAO;EAChB,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2HAA2H,CAAC,CAAC,SAAS;EACtK,YAAYA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,kIAAkI,CAAC,CAAC,SAAS;EAC9K,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CACnF,CAAC,CAAC,CAAC,SAAS,2CAA2C;AACvD,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAChE,MAAa,6BAA2CA,IAAAA,EAAE,OAAO;CAC/D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CACvE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvG,CAAC,CAAC,CAAC,SAAS,4CAA4C;AAExD,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"update-project.cjs","names":["z","action"],"sources":["../../src/actions/update-project.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RailwayUpdateProjectInput = 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.object({\n id: z.string().describe(\"The unique identifier of the updated project.\").nullable(),\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":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;CACzE,OAAOA,IAAAA,EAAE,OAAO;EAChB,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2HAA2H,CAAC,CAAC,SAAS;EACtK,YAAYA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,kIAAkI,CAAC,CAAC,SAAS;EAC9K,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CACnF,CAAC,CAAC,CAAC,SAAS,2CAA2C;AACvD,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAChE,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CAClF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvG,CAAC,CAAC,CAAC,SAAS,4CAA4C;AAExD,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,27 @@
1
1
  import { z } from "zod";
2
2
 
3
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]>;
4
+ declare const RailwayUpdateProjectInput: z.ZodObject<{
5
+ id: z.ZodString;
6
+ input: z.ZodObject<{
7
+ is_public: z.ZodOptional<z.ZodBoolean>;
8
+ pr_deploys: z.ZodOptional<z.ZodBoolean>;
9
+ description: z.ZodOptional<z.ZodString>;
10
+ }, z.core.$strip>;
11
+ }, z.core.$strip>;
12
+ declare const RailwayUpdateProjectOutput: z.ZodObject<{
13
+ id: z.ZodNullable<z.ZodString>;
14
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ }, z.core.$strip>;
17
+ declare const railwayUpdateProject: import("@keystrokehq/action").WorkflowActionDefinition<{
18
+ id: string;
19
+ input: {
20
+ is_public?: boolean | undefined;
21
+ pr_deploys?: boolean | undefined;
22
+ description?: string | undefined;
23
+ };
24
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
25
  //#endregion
8
26
  export { railwayUpdateProject };
9
27
  //# sourceMappingURL=update-project.d.cts.map
@@ -1 +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"}
1
+ {"version":3,"file":"update-project.d.cts","names":[],"sources":["../../src/actions/update-project.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;cAQzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;cAM1B,oBAAA,gCAAoB,wBAAA"}
@@ -1,9 +1,27 @@
1
1
  import { z } from "zod";
2
2
 
3
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]>;
4
+ declare const RailwayUpdateProjectInput: z.ZodObject<{
5
+ id: z.ZodString;
6
+ input: z.ZodObject<{
7
+ is_public: z.ZodOptional<z.ZodBoolean>;
8
+ pr_deploys: z.ZodOptional<z.ZodBoolean>;
9
+ description: z.ZodOptional<z.ZodString>;
10
+ }, z.core.$strip>;
11
+ }, z.core.$strip>;
12
+ declare const RailwayUpdateProjectOutput: z.ZodObject<{
13
+ id: z.ZodNullable<z.ZodString>;
14
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ }, z.core.$strip>;
17
+ declare const railwayUpdateProject: import("@keystrokehq/action").WorkflowActionDefinition<{
18
+ id: string;
19
+ input: {
20
+ is_public?: boolean | undefined;
21
+ pr_deploys?: boolean | undefined;
22
+ description?: string | undefined;
23
+ };
24
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
25
  //#endregion
8
26
  export { railwayUpdateProject };
9
27
  //# sourceMappingURL=update-project.d.mts.map
@@ -1 +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"}
1
+ {"version":3,"file":"update-project.d.mts","names":[],"sources":["../../src/actions/update-project.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;cAQzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;cAM1B,oBAAA,gCAAoB,wBAAA"}
@@ -13,7 +13,7 @@ const railwayUpdateProject = action("RAILWAY_UPDATE_PROJECT", {
13
13
  }).describe("The update configuration for the project.")
14
14
  }).describe("Request parameters for updating a Railway project."),
15
15
  output: z.object({
16
- id: z.string().describe("The unique identifier of the updated project."),
16
+ id: z.string().describe("The unique identifier of the updated project.").nullable(),
17
17
  name: z.string().describe("The name of the project after update.").nullable().optional(),
18
18
  description: z.string().describe("The description of the project after update.").nullable().optional()
19
19
  }).describe("Response from the project update mutation.")
@@ -1 +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"}
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.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.object({\n id: z.string().describe(\"The unique identifier of the updated project.\").nullable(),\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,OAlBuC,EAAE,OAAO;EAChD,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,QAXwC,EAAE,OAAO;EACjD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;EAClF,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"}
@@ -1 +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"}
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.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.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,oCAAoCA,IAAAA,EAAE,OAAO;CACxD,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,qCAAqCA,IAAAA,EAAE,OAAO,EACzD,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"}
@@ -1,9 +1,51 @@
1
1
  import { z } from "zod";
2
2
 
3
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]>;
4
+ declare const RailwayUpdateServiceInstanceInput: z.ZodObject<{
5
+ input: z.ZodObject<{
6
+ region: z.ZodOptional<z.ZodString>;
7
+ num_replicas: z.ZodOptional<z.ZodNumber>;
8
+ build_command: z.ZodOptional<z.ZodString>;
9
+ cron_schedule: z.ZodOptional<z.ZodString>;
10
+ start_command: z.ZodOptional<z.ZodString>;
11
+ root_directory: z.ZodOptional<z.ZodString>;
12
+ watch_patterns: z.ZodOptional<z.ZodArray<z.ZodString>>;
13
+ dockerfile_path: z.ZodOptional<z.ZodString>;
14
+ healthcheck_path: z.ZodOptional<z.ZodString>;
15
+ sleep_application: z.ZodOptional<z.ZodBoolean>;
16
+ healthcheck_timeout: z.ZodOptional<z.ZodNumber>;
17
+ restart_policy_type: z.ZodOptional<z.ZodEnum<{
18
+ ON_FAILURE: "ON_FAILURE";
19
+ ALWAYS: "ALWAYS";
20
+ NEVER: "NEVER";
21
+ }>>;
22
+ restart_policy_max_retries: z.ZodOptional<z.ZodNumber>;
23
+ }, z.core.$strip>;
24
+ service_id: z.ZodString;
25
+ environment_id: z.ZodString;
26
+ }, z.core.$strip>;
27
+ declare const RailwayUpdateServiceInstanceOutput: z.ZodObject<{
28
+ service_instance_update: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
29
+ }, z.core.$strip>;
30
+ declare const railwayUpdateServiceInstance: import("@keystrokehq/action").WorkflowActionDefinition<{
31
+ input: {
32
+ region?: string | undefined;
33
+ num_replicas?: number | undefined;
34
+ build_command?: string | undefined;
35
+ cron_schedule?: string | undefined;
36
+ start_command?: string | undefined;
37
+ root_directory?: string | undefined;
38
+ watch_patterns?: string[] | undefined;
39
+ dockerfile_path?: string | undefined;
40
+ healthcheck_path?: string | undefined;
41
+ sleep_application?: boolean | undefined;
42
+ healthcheck_timeout?: number | undefined;
43
+ restart_policy_type?: "ON_FAILURE" | "ALWAYS" | "NEVER" | undefined;
44
+ restart_policy_max_retries?: number | undefined;
45
+ };
46
+ service_id: string;
47
+ environment_id: string;
48
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
49
  //#endregion
8
50
  export { railwayUpdateServiceInstance };
9
51
  //# sourceMappingURL=update-service-instance.d.cts.map
@@ -1 +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"}
1
+ {"version":3,"file":"update-service-instance.d.cts","names":[],"sources":["../../src/actions/update-service-instance.ts"],"mappings":";;;cAIa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;cAmBjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;cAIlC,4BAAA,gCAA4B,wBAAA"}
@@ -1,9 +1,51 @@
1
1
  import { z } from "zod";
2
2
 
3
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]>;
4
+ declare const RailwayUpdateServiceInstanceInput: z.ZodObject<{
5
+ input: z.ZodObject<{
6
+ region: z.ZodOptional<z.ZodString>;
7
+ num_replicas: z.ZodOptional<z.ZodNumber>;
8
+ build_command: z.ZodOptional<z.ZodString>;
9
+ cron_schedule: z.ZodOptional<z.ZodString>;
10
+ start_command: z.ZodOptional<z.ZodString>;
11
+ root_directory: z.ZodOptional<z.ZodString>;
12
+ watch_patterns: z.ZodOptional<z.ZodArray<z.ZodString>>;
13
+ dockerfile_path: z.ZodOptional<z.ZodString>;
14
+ healthcheck_path: z.ZodOptional<z.ZodString>;
15
+ sleep_application: z.ZodOptional<z.ZodBoolean>;
16
+ healthcheck_timeout: z.ZodOptional<z.ZodNumber>;
17
+ restart_policy_type: z.ZodOptional<z.ZodEnum<{
18
+ ON_FAILURE: "ON_FAILURE";
19
+ ALWAYS: "ALWAYS";
20
+ NEVER: "NEVER";
21
+ }>>;
22
+ restart_policy_max_retries: z.ZodOptional<z.ZodNumber>;
23
+ }, z.core.$strip>;
24
+ service_id: z.ZodString;
25
+ environment_id: z.ZodString;
26
+ }, z.core.$strip>;
27
+ declare const RailwayUpdateServiceInstanceOutput: z.ZodObject<{
28
+ service_instance_update: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
29
+ }, z.core.$strip>;
30
+ declare const railwayUpdateServiceInstance: import("@keystrokehq/action").WorkflowActionDefinition<{
31
+ input: {
32
+ region?: string | undefined;
33
+ num_replicas?: number | undefined;
34
+ build_command?: string | undefined;
35
+ cron_schedule?: string | undefined;
36
+ start_command?: string | undefined;
37
+ root_directory?: string | undefined;
38
+ watch_patterns?: string[] | undefined;
39
+ dockerfile_path?: string | undefined;
40
+ healthcheck_path?: string | undefined;
41
+ sleep_application?: boolean | undefined;
42
+ healthcheck_timeout?: number | undefined;
43
+ restart_policy_type?: "ON_FAILURE" | "ALWAYS" | "NEVER" | undefined;
44
+ restart_policy_max_retries?: number | undefined;
45
+ };
46
+ service_id: string;
47
+ environment_id: string;
48
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
49
  //#endregion
8
50
  export { railwayUpdateServiceInstance };
9
51
  //# sourceMappingURL=update-service-instance.d.mts.map
@@ -1 +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"}
1
+ {"version":3,"file":"update-service-instance.d.mts","names":[],"sources":["../../src/actions/update-service-instance.ts"],"mappings":";;;cAIa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;cAmBjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;cAIlC,4BAAA,gCAA4B,wBAAA"}
@@ -1 +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"}
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.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.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,OA3B+C,EAAE,OAAO;EACxD,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,QATgD,EAAE,OAAO,EACzD,yBAAyB,EAAE,QAAQ,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC9I,CAAC,CAAC,CAAC,SAAS,qDAOF;AACV,CAAC"}
package/dist/catalog.cjs CHANGED
@@ -7,7 +7,13 @@ const railwayCatalog = {
7
7
  "category": "Developer Tools",
8
8
  "logo": "https://logos.composio.dev/api/railway",
9
9
  "authKind": "keystroke",
10
- "oauthScopes": []
10
+ "oauthScopes": [],
11
+ "credentialFields": { "api_key": {
12
+ "label": "Account Token",
13
+ "secret": true,
14
+ "description": "Railway account tokens provide broad API access to resources your account can access. Create one at https://railway.com/account/tokens."
15
+ } },
16
+ "credentialScheme": "API_KEY"
11
17
  };
12
18
  //#endregion
13
19
  exports.railwayCatalog = railwayCatalog;
@@ -1 +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"}
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 \"credentialFields\": {\n \"api_key\": {\n \"label\": \"Account Token\",\n \"secret\": true,\n \"description\": \"Railway account tokens provide broad API access to resources your account can access. Create one at https://railway.com/account/tokens.\"\n }\n },\n \"credentialScheme\": \"API_KEY\"\n} as const;\n"],"mappings":";;AACA,MAAa,iBAAiB;CAC5B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;CAChB,oBAAoB,EAClB,WAAW;EACT,SAAS;EACT,UAAU;EACV,eAAe;CACjB,EACF;CACA,oBAAoB;AACtB"}
@@ -8,6 +8,14 @@ declare const railwayCatalog: {
8
8
  readonly logo: "https://logos.composio.dev/api/railway";
9
9
  readonly authKind: "keystroke";
10
10
  readonly oauthScopes: readonly [];
11
+ readonly credentialFields: {
12
+ readonly api_key: {
13
+ readonly label: "Account Token";
14
+ readonly secret: true;
15
+ readonly description: "Railway account tokens provide broad API access to resources your account can access. Create one at https://railway.com/account/tokens.";
16
+ };
17
+ };
18
+ readonly credentialScheme: "API_KEY";
11
19
  };
12
20
  //#endregion
13
21
  export { railwayCatalog };
@@ -8,6 +8,14 @@ declare const railwayCatalog: {
8
8
  readonly logo: "https://logos.composio.dev/api/railway";
9
9
  readonly authKind: "keystroke";
10
10
  readonly oauthScopes: readonly [];
11
+ readonly credentialFields: {
12
+ readonly api_key: {
13
+ readonly label: "Account Token";
14
+ readonly secret: true;
15
+ readonly description: "Railway account tokens provide broad API access to resources your account can access. Create one at https://railway.com/account/tokens.";
16
+ };
17
+ };
18
+ readonly credentialScheme: "API_KEY";
11
19
  };
12
20
  //#endregion
13
21
  export { railwayCatalog };
package/dist/catalog.mjs CHANGED
@@ -7,7 +7,13 @@ const railwayCatalog = {
7
7
  "category": "Developer Tools",
8
8
  "logo": "https://logos.composio.dev/api/railway",
9
9
  "authKind": "keystroke",
10
- "oauthScopes": []
10
+ "oauthScopes": [],
11
+ "credentialFields": { "api_key": {
12
+ "label": "Account Token",
13
+ "secret": true,
14
+ "description": "Railway account tokens provide broad API access to resources your account can access. Create one at https://railway.com/account/tokens."
15
+ } },
16
+ "credentialScheme": "API_KEY"
11
17
  };
12
18
  //#endregion
13
19
  export { railwayCatalog };
@@ -1 +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"}
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 \"credentialFields\": {\n \"api_key\": {\n \"label\": \"Account Token\",\n \"secret\": true,\n \"description\": \"Railway account tokens provide broad API access to resources your account can access. Create one at https://railway.com/account/tokens.\"\n }\n },\n \"credentialScheme\": \"API_KEY\"\n} as const;\n"],"mappings":";;AACA,MAAa,iBAAiB;CAC5B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;CAChB,oBAAoB,EAClB,WAAW;EACT,SAAS;EACT,UAAU;EACV,eAAe;CACjB,EACF;CACA,oBAAoB;AACtB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keystrokehq/railway",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"
@@ -31,7 +31,7 @@
31
31
  }
32
32
  },
33
33
  "peerDependencies": {
34
- "@keystrokehq/keystroke": "^0.1.4",
34
+ "@keystrokehq/keystroke": ">=0.1.4",
35
35
  "zod": "^4.4.3"
36
36
  },
37
37
  "devDependencies": {