@keystrokehq/replicate 0.1.2 → 0.1.3

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 (187) hide show
  1. package/dist/actions/account-get.cjs +1 -1
  2. package/dist/actions/account-get.cjs.map +1 -1
  3. package/dist/actions/account-get.d.cts +1 -1
  4. package/dist/actions/account-get.d.mts +1 -1
  5. package/dist/actions/account-get.mjs +1 -1
  6. package/dist/actions/account-get.mjs.map +1 -1
  7. package/dist/actions/cancel-prediction.cjs +2 -2
  8. package/dist/actions/cancel-prediction.cjs.map +1 -1
  9. package/dist/actions/cancel-prediction.d.cts +2 -2
  10. package/dist/actions/cancel-prediction.d.mts +2 -2
  11. package/dist/actions/cancel-prediction.mjs +2 -2
  12. package/dist/actions/cancel-prediction.mjs.map +1 -1
  13. package/dist/actions/collections-get.cjs +2 -2
  14. package/dist/actions/collections-get.cjs.map +1 -1
  15. package/dist/actions/collections-get.d.cts +2 -2
  16. package/dist/actions/collections-get.d.mts +2 -2
  17. package/dist/actions/collections-get.mjs +2 -2
  18. package/dist/actions/collections-get.mjs.map +1 -1
  19. package/dist/actions/collections-list.cjs +2 -2
  20. package/dist/actions/collections-list.cjs.map +1 -1
  21. package/dist/actions/collections-list.d.cts +2 -2
  22. package/dist/actions/collections-list.d.mts +2 -2
  23. package/dist/actions/collections-list.mjs +2 -2
  24. package/dist/actions/collections-list.mjs.map +1 -1
  25. package/dist/actions/create-model.cjs +1 -1
  26. package/dist/actions/create-model.cjs.map +1 -1
  27. package/dist/actions/create-model.d.cts +1 -1
  28. package/dist/actions/create-model.d.mts +1 -1
  29. package/dist/actions/create-model.mjs +1 -1
  30. package/dist/actions/create-model.mjs.map +1 -1
  31. package/dist/actions/create-prediction.cjs +2 -2
  32. package/dist/actions/create-prediction.cjs.map +1 -1
  33. package/dist/actions/create-prediction.d.cts +4 -4
  34. package/dist/actions/create-prediction.d.mts +4 -4
  35. package/dist/actions/create-prediction.mjs +2 -2
  36. package/dist/actions/create-prediction.mjs.map +1 -1
  37. package/dist/actions/deployments-create.cjs +4 -4
  38. package/dist/actions/deployments-create.cjs.map +1 -1
  39. package/dist/actions/deployments-create.d.cts +4 -4
  40. package/dist/actions/deployments-create.d.mts +4 -4
  41. package/dist/actions/deployments-create.mjs +4 -4
  42. package/dist/actions/deployments-create.mjs.map +1 -1
  43. package/dist/actions/deployments-delete.cjs +1 -1
  44. package/dist/actions/deployments-delete.cjs.map +1 -1
  45. package/dist/actions/deployments-delete.d.cts +1 -1
  46. package/dist/actions/deployments-delete.d.mts +1 -1
  47. package/dist/actions/deployments-delete.mjs +1 -1
  48. package/dist/actions/deployments-delete.mjs.map +1 -1
  49. package/dist/actions/deployments-get.cjs +4 -4
  50. package/dist/actions/deployments-get.cjs.map +1 -1
  51. package/dist/actions/deployments-get.d.cts +4 -4
  52. package/dist/actions/deployments-get.d.mts +4 -4
  53. package/dist/actions/deployments-get.mjs +4 -4
  54. package/dist/actions/deployments-get.mjs.map +1 -1
  55. package/dist/actions/deployments-list.cjs +5 -5
  56. package/dist/actions/deployments-list.cjs.map +1 -1
  57. package/dist/actions/deployments-list.d.cts +5 -5
  58. package/dist/actions/deployments-list.d.mts +5 -5
  59. package/dist/actions/deployments-list.mjs +5 -5
  60. package/dist/actions/deployments-list.mjs.map +1 -1
  61. package/dist/actions/files-create.cjs +3 -3
  62. package/dist/actions/files-create.cjs.map +1 -1
  63. package/dist/actions/files-create.d.cts +3 -3
  64. package/dist/actions/files-create.d.mts +3 -3
  65. package/dist/actions/files-create.mjs +3 -3
  66. package/dist/actions/files-create.mjs.map +1 -1
  67. package/dist/actions/files-delete.cjs +1 -1
  68. package/dist/actions/files-delete.cjs.map +1 -1
  69. package/dist/actions/files-delete.d.cts +1 -1
  70. package/dist/actions/files-delete.d.mts +1 -1
  71. package/dist/actions/files-delete.mjs +1 -1
  72. package/dist/actions/files-delete.mjs.map +1 -1
  73. package/dist/actions/files-get.cjs +3 -3
  74. package/dist/actions/files-get.cjs.map +1 -1
  75. package/dist/actions/files-get.d.cts +3 -3
  76. package/dist/actions/files-get.d.mts +3 -3
  77. package/dist/actions/files-get.mjs +3 -3
  78. package/dist/actions/files-get.mjs.map +1 -1
  79. package/dist/actions/files-list.cjs +4 -4
  80. package/dist/actions/files-list.cjs.map +1 -1
  81. package/dist/actions/files-list.d.cts +4 -4
  82. package/dist/actions/files-list.d.mts +4 -4
  83. package/dist/actions/files-list.mjs +4 -4
  84. package/dist/actions/files-list.mjs.map +1 -1
  85. package/dist/actions/get-prediction.cjs +4 -4
  86. package/dist/actions/get-prediction.cjs.map +1 -1
  87. package/dist/actions/get-prediction.d.cts +4 -4
  88. package/dist/actions/get-prediction.d.mts +4 -4
  89. package/dist/actions/get-prediction.mjs +4 -4
  90. package/dist/actions/get-prediction.mjs.map +1 -1
  91. package/dist/actions/hardware-list.cjs +2 -2
  92. package/dist/actions/hardware-list.cjs.map +1 -1
  93. package/dist/actions/hardware-list.d.cts +2 -2
  94. package/dist/actions/hardware-list.d.mts +2 -2
  95. package/dist/actions/hardware-list.mjs +2 -2
  96. package/dist/actions/hardware-list.mjs.map +1 -1
  97. package/dist/actions/models-examples-list.cjs +4 -4
  98. package/dist/actions/models-examples-list.cjs.map +1 -1
  99. package/dist/actions/models-examples-list.d.cts +4 -4
  100. package/dist/actions/models-examples-list.d.mts +4 -4
  101. package/dist/actions/models-examples-list.mjs +4 -4
  102. package/dist/actions/models-examples-list.mjs.map +1 -1
  103. package/dist/actions/models-get.cjs +6 -6
  104. package/dist/actions/models-get.cjs.map +1 -1
  105. package/dist/actions/models-get.d.cts +6 -6
  106. package/dist/actions/models-get.d.mts +6 -6
  107. package/dist/actions/models-get.mjs +6 -6
  108. package/dist/actions/models-get.mjs.map +1 -1
  109. package/dist/actions/models-list.cjs +3 -3
  110. package/dist/actions/models-list.cjs.map +1 -1
  111. package/dist/actions/models-list.d.cts +3 -3
  112. package/dist/actions/models-list.d.mts +3 -3
  113. package/dist/actions/models-list.mjs +3 -3
  114. package/dist/actions/models-list.mjs.map +1 -1
  115. package/dist/actions/models-predictions-create.cjs +2 -2
  116. package/dist/actions/models-predictions-create.cjs.map +1 -1
  117. package/dist/actions/models-predictions-create.d.cts +4 -4
  118. package/dist/actions/models-predictions-create.d.mts +4 -4
  119. package/dist/actions/models-predictions-create.mjs +2 -2
  120. package/dist/actions/models-predictions-create.mjs.map +1 -1
  121. package/dist/actions/models-readme-get.cjs +1 -1
  122. package/dist/actions/models-readme-get.cjs.map +1 -1
  123. package/dist/actions/models-readme-get.d.cts +1 -1
  124. package/dist/actions/models-readme-get.d.mts +1 -1
  125. package/dist/actions/models-readme-get.mjs +1 -1
  126. package/dist/actions/models-readme-get.mjs.map +1 -1
  127. package/dist/actions/models-versions-get.cjs +1 -1
  128. package/dist/actions/models-versions-get.cjs.map +1 -1
  129. package/dist/actions/models-versions-get.d.cts +1 -1
  130. package/dist/actions/models-versions-get.d.mts +1 -1
  131. package/dist/actions/models-versions-get.mjs +1 -1
  132. package/dist/actions/models-versions-get.mjs.map +1 -1
  133. package/dist/actions/models-versions-list.cjs +2 -2
  134. package/dist/actions/models-versions-list.cjs.map +1 -1
  135. package/dist/actions/models-versions-list.d.cts +2 -2
  136. package/dist/actions/models-versions-list.d.mts +2 -2
  137. package/dist/actions/models-versions-list.mjs +2 -2
  138. package/dist/actions/models-versions-list.mjs.map +1 -1
  139. package/dist/actions/predictions-create.cjs +2 -2
  140. package/dist/actions/predictions-create.cjs.map +1 -1
  141. package/dist/actions/predictions-create.d.cts +4 -4
  142. package/dist/actions/predictions-create.d.mts +4 -4
  143. package/dist/actions/predictions-create.mjs +2 -2
  144. package/dist/actions/predictions-create.mjs.map +1 -1
  145. package/dist/actions/predictions-list.cjs +3 -3
  146. package/dist/actions/predictions-list.cjs.map +1 -1
  147. package/dist/actions/predictions-list.d.cts +3 -3
  148. package/dist/actions/predictions-list.d.mts +3 -3
  149. package/dist/actions/predictions-list.mjs +3 -3
  150. package/dist/actions/predictions-list.mjs.map +1 -1
  151. package/dist/actions/search.cjs +9 -9
  152. package/dist/actions/search.cjs.map +1 -1
  153. package/dist/actions/search.d.cts +9 -9
  154. package/dist/actions/search.d.mts +9 -9
  155. package/dist/actions/search.mjs +9 -9
  156. package/dist/actions/search.mjs.map +1 -1
  157. package/dist/actions/trainings-cancel.cjs +2 -2
  158. package/dist/actions/trainings-cancel.cjs.map +1 -1
  159. package/dist/actions/trainings-cancel.d.cts +2 -2
  160. package/dist/actions/trainings-cancel.d.mts +2 -2
  161. package/dist/actions/trainings-cancel.mjs +2 -2
  162. package/dist/actions/trainings-cancel.mjs.map +1 -1
  163. package/dist/actions/trainings-create.cjs +3 -3
  164. package/dist/actions/trainings-create.cjs.map +1 -1
  165. package/dist/actions/trainings-create.d.cts +5 -5
  166. package/dist/actions/trainings-create.d.mts +5 -5
  167. package/dist/actions/trainings-create.mjs +3 -3
  168. package/dist/actions/trainings-create.mjs.map +1 -1
  169. package/dist/actions/trainings-list.cjs +5 -5
  170. package/dist/actions/trainings-list.cjs.map +1 -1
  171. package/dist/actions/trainings-list.d.cts +5 -5
  172. package/dist/actions/trainings-list.d.mts +5 -5
  173. package/dist/actions/trainings-list.mjs +5 -5
  174. package/dist/actions/trainings-list.mjs.map +1 -1
  175. package/dist/actions/update-models.cjs +1 -1
  176. package/dist/actions/update-models.cjs.map +1 -1
  177. package/dist/actions/update-models.d.cts +1 -1
  178. package/dist/actions/update-models.d.mts +1 -1
  179. package/dist/actions/update-models.mjs +1 -1
  180. package/dist/actions/update-models.mjs.map +1 -1
  181. package/dist/actions/webhooks-secret-get.cjs +1 -1
  182. package/dist/actions/webhooks-secret-get.cjs.map +1 -1
  183. package/dist/actions/webhooks-secret-get.d.cts +1 -1
  184. package/dist/actions/webhooks-secret-get.d.mts +1 -1
  185. package/dist/actions/webhooks-secret-get.mjs +1 -1
  186. package/dist/actions/webhooks-secret-get.mjs.map +1 -1
  187. package/package.json +1 -1
@@ -20,16 +20,16 @@ declare const ReplicateDeploymentsListOutput: z.ZodObject<{
20
20
  username: z.ZodNullable<z.ZodString>;
21
21
  avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
22
  github_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
- }, z.core.$strip>>;
23
+ }, z.core.$loose>>;
24
24
  configuration: z.ZodNullable<z.ZodObject<{
25
25
  hardware: z.ZodNullable<z.ZodString>;
26
26
  max_instances: z.ZodNullable<z.ZodNumber>;
27
27
  min_instances: z.ZodNullable<z.ZodNumber>;
28
- }, z.core.$strip>>;
29
- }, z.core.$strip>>;
30
- }, z.core.$strip>>;
28
+ }, z.core.$loose>>;
29
+ }, z.core.$loose>>;
30
+ }, z.core.$loose>>;
31
31
  previous: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
- }, z.core.$strip>;
32
+ }, z.core.$loose>;
33
33
  declare const replicateDeploymentsList: import("@keystrokehq/action").WorkflowActionDefinition<{
34
34
  cursor?: string | undefined;
35
35
  }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
@@ -20,16 +20,16 @@ declare const ReplicateDeploymentsListOutput: z.ZodObject<{
20
20
  username: z.ZodNullable<z.ZodString>;
21
21
  avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
22
  github_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
- }, z.core.$strip>>;
23
+ }, z.core.$loose>>;
24
24
  configuration: z.ZodNullable<z.ZodObject<{
25
25
  hardware: z.ZodNullable<z.ZodString>;
26
26
  max_instances: z.ZodNullable<z.ZodNumber>;
27
27
  min_instances: z.ZodNullable<z.ZodNumber>;
28
- }, z.core.$strip>>;
29
- }, z.core.$strip>>;
30
- }, z.core.$strip>>;
28
+ }, z.core.$loose>>;
29
+ }, z.core.$loose>>;
30
+ }, z.core.$loose>>;
31
31
  previous: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
- }, z.core.$strip>;
32
+ }, z.core.$loose>;
33
33
  declare const replicateDeploymentsList: import("@keystrokehq/action").WorkflowActionDefinition<{
34
34
  cursor?: string | undefined;
35
35
  }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
@@ -8,12 +8,12 @@ const ReplicateDeploymentsList_CreatedBySchema = z.object({
8
8
  username: z.string().describe("Username of the creator").nullable(),
9
9
  avatar_url: z.string().describe("URL to the creator's avatar image").nullable().optional(),
10
10
  github_url: z.string().describe("URL to the creator's GitHub profile").nullable().optional()
11
- }).describe("Creator information for a deployment release.");
11
+ }).passthrough().describe("Creator information for a deployment release.");
12
12
  const ReplicateDeploymentsList_ReleaseConfigurationSchema = z.object({
13
13
  hardware: z.string().describe("Hardware SKU used for the deployment").nullable(),
14
14
  max_instances: z.number().int().describe("Maximum number of instances allowed").nullable(),
15
15
  min_instances: z.number().int().describe("Minimum number of instances to maintain").nullable()
16
- }).describe("Configuration details for a deployment release.");
16
+ }).passthrough().describe("Configuration details for a deployment release.");
17
17
  const ReplicateDeploymentsList_CurrentReleaseSchema = z.object({
18
18
  model: z.string().describe("Model identifier").nullable(),
19
19
  number: z.number().int().describe("Release number").nullable(),
@@ -21,12 +21,12 @@ const ReplicateDeploymentsList_CurrentReleaseSchema = z.object({
21
21
  created_at: z.string().describe("ISO 8601 timestamp when the release was created").nullable(),
22
22
  created_by: ReplicateDeploymentsList_CreatedBySchema.nullable(),
23
23
  configuration: ReplicateDeploymentsList_ReleaseConfigurationSchema.nullable()
24
- }).describe("Latest release configuration for a deployment.");
24
+ }).passthrough().describe("Latest release configuration for a deployment.");
25
25
  const ReplicateDeploymentsList_DeploymentSchema = z.object({
26
26
  name: z.string().describe("Name of the deployment").nullable(),
27
27
  owner: z.string().describe("Owner of the deployment").nullable(),
28
28
  current_release: ReplicateDeploymentsList_CurrentReleaseSchema.nullable()
29
- }).describe("Representation of a deployment.");
29
+ }).passthrough().describe("Representation of a deployment.");
30
30
  const replicateDeploymentsList = action("REPLICATE_DEPLOYMENTS_LIST", {
31
31
  slug: "replicate-deployments-list",
32
32
  name: "List deployments",
@@ -36,7 +36,7 @@ const replicateDeploymentsList = action("REPLICATE_DEPLOYMENTS_LIST", {
36
36
  next: z.string().describe("URL to fetch the next page of results, if any").nullable().optional(),
37
37
  results: z.array(ReplicateDeploymentsList_DeploymentSchema).describe("List of deployments returned in this page, sorted with most recent deployment first"),
38
38
  previous: z.string().describe("URL to fetch the previous page of results, if any").nullable().optional()
39
- }).describe("Paginated list of deployments.")
39
+ }).passthrough().describe("Paginated list of deployments.")
40
40
  });
41
41
  //#endregion
42
42
  export { replicateDeploymentsList };
@@ -1 +1 @@
1
- {"version":3,"file":"deployments-list.mjs","names":[],"sources":["../../src/actions/deployments-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateDeploymentsListInput = z.object({\n cursor: z.string().describe(\"Cursor for pagination. Use the cursor from 'next' URL of previous response.\").optional(),\n}).describe(\"Request schema for listing deployments with optional pagination.\");\nconst ReplicateDeploymentsList_CreatedBySchema = z.object({\n name: z.string().describe(\"Display name of the creator\").nullable(),\n type: z.string().describe(\"Type of creator (e.g., 'organization', 'user')\").nullable(),\n username: z.string().describe(\"Username of the creator\").nullable(),\n avatar_url: z.string().describe(\"URL to the creator's avatar image\").nullable().optional(),\n github_url: z.string().describe(\"URL to the creator's GitHub profile\").nullable().optional(),\n}).describe(\"Creator information for a deployment release.\");\nconst ReplicateDeploymentsList_ReleaseConfigurationSchema = z.object({\n hardware: z.string().describe(\"Hardware SKU used for the deployment\").nullable(),\n max_instances: z.number().int().describe(\"Maximum number of instances allowed\").nullable(),\n min_instances: z.number().int().describe(\"Minimum number of instances to maintain\").nullable(),\n}).describe(\"Configuration details for a deployment release.\");\nconst ReplicateDeploymentsList_CurrentReleaseSchema = z.object({\n model: z.string().describe(\"Model identifier\").nullable(),\n number: z.number().int().describe(\"Release number\").nullable(),\n version: z.string().describe(\"64-character version ID of the model\").nullable(),\n created_at: z.string().describe(\"ISO 8601 timestamp when the release was created\").nullable(),\n created_by: ReplicateDeploymentsList_CreatedBySchema.nullable(),\n configuration: ReplicateDeploymentsList_ReleaseConfigurationSchema.nullable(),\n}).describe(\"Latest release configuration for a deployment.\");\nconst ReplicateDeploymentsList_DeploymentSchema = z.object({\n name: z.string().describe(\"Name of the deployment\").nullable(),\n owner: z.string().describe(\"Owner of the deployment\").nullable(),\n current_release: ReplicateDeploymentsList_CurrentReleaseSchema.nullable(),\n}).describe(\"Representation of a deployment.\");\nexport const ReplicateDeploymentsListOutput = z.object({\n next: z.string().describe(\"URL to fetch the next page of results, if any\").nullable().optional(),\n results: z.array(ReplicateDeploymentsList_DeploymentSchema).describe(\"List of deployments returned in this page, sorted with most recent deployment first\"),\n previous: z.string().describe(\"URL to fetch the previous page of results, if any\").nullable().optional(),\n}).describe(\"Paginated list of deployments.\");\n\nexport const replicateDeploymentsList = action(\"REPLICATE_DEPLOYMENTS_LIST\", {\n slug: \"replicate-deployments-list\",\n name: \"List deployments\",\n description: \"Tool to list all deployments associated with the account. Use when you need to retrieve deployment configurations and their latest releases.\",\n input: ReplicateDeploymentsListInput,\n output: ReplicateDeploymentsListOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgC,EAAE,OAAO,EACpD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS,EACtH,CAAC,CAAC,CAAC,SAAS,kEAAkE;AAC9E,MAAM,2CAA2C,EAAE,OAAO;CACxD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAClE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACrF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAClE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC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4C,EAAE,OAAO;EACrD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/F,SAAS,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,qFAAqF;EAC1J,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,CAAC,CAAC,CAAC,SAAS,gCAOF;AACV,CAAC"}
1
+ {"version":3,"file":"deployments-list.mjs","names":[],"sources":["../../src/actions/deployments-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateDeploymentsListInput = z.object({\n cursor: z.string().describe(\"Cursor for pagination. Use the cursor from 'next' URL of previous response.\").optional(),\n}).describe(\"Request schema for listing deployments with optional pagination.\");\nconst ReplicateDeploymentsList_CreatedBySchema = z.object({\n name: z.string().describe(\"Display name of the creator\").nullable(),\n type: z.string().describe(\"Type of creator (e.g., 'organization', 'user')\").nullable(),\n username: z.string().describe(\"Username of the creator\").nullable(),\n avatar_url: z.string().describe(\"URL to the creator's avatar image\").nullable().optional(),\n github_url: z.string().describe(\"URL to the creator's GitHub profile\").nullable().optional(),\n}).passthrough().describe(\"Creator information for a deployment release.\");\nconst ReplicateDeploymentsList_ReleaseConfigurationSchema = z.object({\n hardware: z.string().describe(\"Hardware SKU used for the deployment\").nullable(),\n max_instances: z.number().int().describe(\"Maximum number of instances allowed\").nullable(),\n min_instances: z.number().int().describe(\"Minimum number of instances to maintain\").nullable(),\n}).passthrough().describe(\"Configuration details for a deployment release.\");\nconst ReplicateDeploymentsList_CurrentReleaseSchema = z.object({\n model: z.string().describe(\"Model identifier\").nullable(),\n number: z.number().int().describe(\"Release number\").nullable(),\n version: z.string().describe(\"64-character version ID of the model\").nullable(),\n created_at: z.string().describe(\"ISO 8601 timestamp when the release was created\").nullable(),\n created_by: ReplicateDeploymentsList_CreatedBySchema.nullable(),\n configuration: ReplicateDeploymentsList_ReleaseConfigurationSchema.nullable(),\n}).passthrough().describe(\"Latest release configuration for a deployment.\");\nconst ReplicateDeploymentsList_DeploymentSchema = z.object({\n name: z.string().describe(\"Name of the deployment\").nullable(),\n owner: z.string().describe(\"Owner of the deployment\").nullable(),\n current_release: ReplicateDeploymentsList_CurrentReleaseSchema.nullable(),\n}).passthrough().describe(\"Representation of a deployment.\");\nexport const ReplicateDeploymentsListOutput = z.object({\n next: z.string().describe(\"URL to fetch the next page of results, if any\").nullable().optional(),\n results: z.array(ReplicateDeploymentsList_DeploymentSchema).describe(\"List of deployments returned in this page, sorted with most recent deployment first\"),\n previous: z.string().describe(\"URL to fetch the previous page of results, if any\").nullable().optional(),\n}).passthrough().describe(\"Paginated list of deployments.\");\n\nexport const replicateDeploymentsList = action(\"REPLICATE_DEPLOYMENTS_LIST\", {\n slug: \"replicate-deployments-list\",\n name: \"List deployments\",\n description: \"Tool to list all deployments associated with the account. Use when you need to retrieve deployment configurations and their latest releases.\",\n input: ReplicateDeploymentsListInput,\n output: ReplicateDeploymentsListOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgC,EAAE,OAAO,EACpD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS,EACtH,CAAC,CAAC,CAAC,SAAS,kEAAkE;AAC9E,MAAM,2CAA2C,EAAE,OAAO;CACxD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAClE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACrF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAClE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC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CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/F,SAAS,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,qFAAqF;EAC1J,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gCAOhB;AACV,CAAC"}
@@ -10,11 +10,11 @@ const ReplicateFilesCreateInput = zod.z.object({
10
10
  metadata: zod.z.record(zod.z.string(), zod.z.unknown()).describe("User-provided metadata associated with the file (must be valid JSON)").optional(),
11
11
  content_type: zod.z.string().default("application/octet-stream").describe("The content/MIME type for the file").optional()
12
12
  }).describe("Request model for creating/uploading a file.");
13
- const ReplicateFilesCreate_FilesCreateResponseUrlsSchema = zod.z.object({ get: zod.z.string().describe("URL to retrieve the file resource").nullable() }).describe("URLs associated with the file resource.");
13
+ const ReplicateFilesCreate_FilesCreateResponseUrlsSchema = zod.z.object({ get: zod.z.string().describe("URL to retrieve the file resource").nullable() }).passthrough().describe("URLs associated with the file resource.");
14
14
  const ReplicateFilesCreate_FilesCreateResponseChecksumsSchema = zod.z.object({
15
15
  md5: zod.z.string().describe("MD5 checksum of the file").nullable().optional(),
16
16
  sha256: zod.z.string().describe("SHA256 checksum of the file").nullable().optional()
17
- }).describe("Checksums for the file.");
17
+ }).passthrough().describe("Checksums for the file.");
18
18
  const ReplicateFilesCreateOutput = zod.z.object({
19
19
  id: zod.z.string().describe("A unique, randomly-generated identifier for the file resource").nullable(),
20
20
  etag: zod.z.string().describe("ETag for the file").nullable().optional(),
@@ -26,7 +26,7 @@ const ReplicateFilesCreateOutput = zod.z.object({
26
26
  created_at: zod.z.string().describe("When the file was created (ISO 8601 timestamp)").nullable(),
27
27
  expires_at: zod.z.string().describe("When the file expires (ISO 8601 timestamp)").nullable().optional(),
28
28
  content_type: zod.z.string().describe("The content/MIME type of the file").nullable()
29
- }).describe("Response schema after creating a file.");
29
+ }).passthrough().describe("Response schema after creating a file.");
30
30
  const replicateFilesCreate = require_action.action("REPLICATE_FILES_CREATE", {
31
31
  slug: "replicate-files-create",
32
32
  name: "Create File",
@@ -1 +1 @@
1
- {"version":3,"file":"files-create.cjs","names":["z","action"],"sources":["../../src/actions/files-create.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateFilesCreateInput = z.object({\n content: z.object({\n name: z.string().describe(\"The filename that will be used when uploading the file to the destination service\"),\n s3key: z.string().describe(\"The S3 key of a publicly accessible file, typically returned from a previous download action that stored the file in S3. This key references an existing file that can be uploaded to another service.\"),\n mimetype: z.string().describe(\"The MIME type of the file\"),\n}).describe(\"File to upload.\"),\n metadata: z.record(z.string(), z.unknown()).describe(\"User-provided metadata associated with the file (must be valid JSON)\").optional(),\n content_type: z.string().default(\"application/octet-stream\").describe(\"The content/MIME type for the file\").optional(),\n}).describe(\"Request model for creating/uploading a file.\");\nconst ReplicateFilesCreate_FilesCreateResponseUrlsSchema = z.object({\n get: z.string().describe(\"URL to retrieve the file resource\").nullable(),\n}).describe(\"URLs associated with the file resource.\");\nconst ReplicateFilesCreate_FilesCreateResponseChecksumsSchema = z.object({\n md5: z.string().describe(\"MD5 checksum of the file\").nullable().optional(),\n sha256: z.string().describe(\"SHA256 checksum of the file\").nullable().optional(),\n}).describe(\"Checksums for the file.\");\nexport const ReplicateFilesCreateOutput = z.object({\n id: z.string().describe(\"A unique, randomly-generated identifier for the file resource\").nullable(),\n etag: z.string().describe(\"ETag for the file\").nullable().optional(),\n name: z.string().describe(\"Name of the file\").nullable().optional(),\n size: z.number().int().describe(\"The length of the file in bytes\").nullable(),\n urls: ReplicateFilesCreate_FilesCreateResponseUrlsSchema.nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Metadata provided by user when file was created\"),\n checksums: ReplicateFilesCreate_FilesCreateResponseChecksumsSchema.nullable(),\n created_at: z.string().describe(\"When the file was created (ISO 8601 timestamp)\").nullable(),\n expires_at: z.string().describe(\"When the file expires (ISO 8601 timestamp)\").nullable().optional(),\n content_type: z.string().describe(\"The content/MIME type of the file\").nullable(),\n}).describe(\"Response schema after creating a file.\");\n\nexport const replicateFilesCreate = action(\"REPLICATE_FILES_CREATE\", {\n slug: \"replicate-files-create\",\n name: \"Create File\",\n description: \"Tool to create or upload a file to Replicate. Use when you need to upload file content with optional metadata.\",\n input: ReplicateFilesCreateInput,\n output: ReplicateFilesCreateOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,SAASA,IAAAA,EAAE,OAAO;EAClB,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF;EAC7G,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wMAAwM;EACnO,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CAC3D,CAAC,CAAC,CAAC,SAAS,iBAAiB;CAC3B,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CACtI,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,0BAA0B,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;AACvH,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAM,qDAAqDA,IAAAA,EAAE,OAAO,EAClE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,EACzE,CAAC,CAAC,CAAC,SAAS,yCAAyC;AACrD,MAAM,0DAA0DA,IAAAA,EAAE,OAAO;CACvE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjF,CAAC,CAAC,CAAC,SAAS,yBAAyB;AACrC,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CAClG,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC5E,MAAM,mDAAmD,SAAS;CAClE,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,iDAAiD;CACtG,WAAW,wDAAwD,SAAS;CAC5E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CAC3F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;AAClF,CAAC,CAAC,CAAC,SAAS,wCAAwC;AAEpD,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"files-create.cjs","names":["z","action"],"sources":["../../src/actions/files-create.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateFilesCreateInput = z.object({\n content: z.object({\n name: z.string().describe(\"The filename that will be used when uploading the file to the destination service\"),\n s3key: z.string().describe(\"The S3 key of a publicly accessible file, typically returned from a previous download action that stored the file in S3. This key references an existing file that can be uploaded to another service.\"),\n mimetype: z.string().describe(\"The MIME type of the file\"),\n}).describe(\"File to upload.\"),\n metadata: z.record(z.string(), z.unknown()).describe(\"User-provided metadata associated with the file (must be valid JSON)\").optional(),\n content_type: z.string().default(\"application/octet-stream\").describe(\"The content/MIME type for the file\").optional(),\n}).describe(\"Request model for creating/uploading a file.\");\nconst ReplicateFilesCreate_FilesCreateResponseUrlsSchema = z.object({\n get: z.string().describe(\"URL to retrieve the file resource\").nullable(),\n}).passthrough().describe(\"URLs associated with the file resource.\");\nconst ReplicateFilesCreate_FilesCreateResponseChecksumsSchema = z.object({\n md5: z.string().describe(\"MD5 checksum of the file\").nullable().optional(),\n sha256: z.string().describe(\"SHA256 checksum of the file\").nullable().optional(),\n}).passthrough().describe(\"Checksums for the file.\");\nexport const ReplicateFilesCreateOutput = z.object({\n id: z.string().describe(\"A unique, randomly-generated identifier for the file resource\").nullable(),\n etag: z.string().describe(\"ETag for the file\").nullable().optional(),\n name: z.string().describe(\"Name of the file\").nullable().optional(),\n size: z.number().int().describe(\"The length of the file in bytes\").nullable(),\n urls: ReplicateFilesCreate_FilesCreateResponseUrlsSchema.nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Metadata provided by user when file was created\"),\n checksums: ReplicateFilesCreate_FilesCreateResponseChecksumsSchema.nullable(),\n created_at: z.string().describe(\"When the file was created (ISO 8601 timestamp)\").nullable(),\n expires_at: z.string().describe(\"When the file expires (ISO 8601 timestamp)\").nullable().optional(),\n content_type: z.string().describe(\"The content/MIME type of the file\").nullable(),\n}).passthrough().describe(\"Response schema after creating a file.\");\n\nexport const replicateFilesCreate = action(\"REPLICATE_FILES_CREATE\", {\n slug: \"replicate-files-create\",\n name: \"Create File\",\n description: \"Tool to create or upload a file to Replicate. Use when you need to upload file content with optional metadata.\",\n input: ReplicateFilesCreateInput,\n output: Re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BAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC5E,MAAM,mDAAmD,SAAS;CAClE,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,iDAAiD;CACtG,WAAW,wDAAwD,SAAS;CAC5E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CAC3F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;AAClF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAAwC;AAElE,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -17,16 +17,16 @@ declare const ReplicateFilesCreateOutput: z.ZodObject<{
17
17
  size: z.ZodNullable<z.ZodNumber>;
18
18
  urls: z.ZodNullable<z.ZodObject<{
19
19
  get: z.ZodNullable<z.ZodString>;
20
- }, z.core.$strip>>;
20
+ }, z.core.$loose>>;
21
21
  metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
22
22
  checksums: z.ZodNullable<z.ZodObject<{
23
23
  md5: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
24
  sha256: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
- }, z.core.$strip>>;
25
+ }, z.core.$loose>>;
26
26
  created_at: z.ZodNullable<z.ZodString>;
27
27
  expires_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
28
  content_type: z.ZodNullable<z.ZodString>;
29
- }, z.core.$strip>;
29
+ }, z.core.$loose>;
30
30
  declare const replicateFilesCreate: import("@keystrokehq/action").WorkflowActionDefinition<{
31
31
  content: {
32
32
  name: string;
@@ -17,16 +17,16 @@ declare const ReplicateFilesCreateOutput: z.ZodObject<{
17
17
  size: z.ZodNullable<z.ZodNumber>;
18
18
  urls: z.ZodNullable<z.ZodObject<{
19
19
  get: z.ZodNullable<z.ZodString>;
20
- }, z.core.$strip>>;
20
+ }, z.core.$loose>>;
21
21
  metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
22
22
  checksums: z.ZodNullable<z.ZodObject<{
23
23
  md5: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
24
  sha256: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
- }, z.core.$strip>>;
25
+ }, z.core.$loose>>;
26
26
  created_at: z.ZodNullable<z.ZodString>;
27
27
  expires_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
28
  content_type: z.ZodNullable<z.ZodString>;
29
- }, z.core.$strip>;
29
+ }, z.core.$loose>;
30
30
  declare const replicateFilesCreate: import("@keystrokehq/action").WorkflowActionDefinition<{
31
31
  content: {
32
32
  name: string;
@@ -10,11 +10,11 @@ const ReplicateFilesCreateInput = z.object({
10
10
  metadata: z.record(z.string(), z.unknown()).describe("User-provided metadata associated with the file (must be valid JSON)").optional(),
11
11
  content_type: z.string().default("application/octet-stream").describe("The content/MIME type for the file").optional()
12
12
  }).describe("Request model for creating/uploading a file.");
13
- const ReplicateFilesCreate_FilesCreateResponseUrlsSchema = z.object({ get: z.string().describe("URL to retrieve the file resource").nullable() }).describe("URLs associated with the file resource.");
13
+ const ReplicateFilesCreate_FilesCreateResponseUrlsSchema = z.object({ get: z.string().describe("URL to retrieve the file resource").nullable() }).passthrough().describe("URLs associated with the file resource.");
14
14
  const ReplicateFilesCreate_FilesCreateResponseChecksumsSchema = z.object({
15
15
  md5: z.string().describe("MD5 checksum of the file").nullable().optional(),
16
16
  sha256: z.string().describe("SHA256 checksum of the file").nullable().optional()
17
- }).describe("Checksums for the file.");
17
+ }).passthrough().describe("Checksums for the file.");
18
18
  const replicateFilesCreate = action("REPLICATE_FILES_CREATE", {
19
19
  slug: "replicate-files-create",
20
20
  name: "Create File",
@@ -31,7 +31,7 @@ const replicateFilesCreate = action("REPLICATE_FILES_CREATE", {
31
31
  created_at: z.string().describe("When the file was created (ISO 8601 timestamp)").nullable(),
32
32
  expires_at: z.string().describe("When the file expires (ISO 8601 timestamp)").nullable().optional(),
33
33
  content_type: z.string().describe("The content/MIME type of the file").nullable()
34
- }).describe("Response schema after creating a file.")
34
+ }).passthrough().describe("Response schema after creating a file.")
35
35
  });
36
36
  //#endregion
37
37
  export { replicateFilesCreate };
@@ -1 +1 @@
1
- {"version":3,"file":"files-create.mjs","names":[],"sources":["../../src/actions/files-create.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateFilesCreateInput = z.object({\n content: z.object({\n name: z.string().describe(\"The filename that will be used when uploading the file to the destination service\"),\n s3key: z.string().describe(\"The S3 key of a publicly accessible file, typically returned from a previous download action that stored the file in S3. This key references an existing file that can be uploaded to another service.\"),\n mimetype: z.string().describe(\"The MIME type of the file\"),\n}).describe(\"File to upload.\"),\n metadata: z.record(z.string(), z.unknown()).describe(\"User-provided metadata associated with the file (must be valid JSON)\").optional(),\n content_type: z.string().default(\"application/octet-stream\").describe(\"The content/MIME type for the file\").optional(),\n}).describe(\"Request model for creating/uploading a file.\");\nconst ReplicateFilesCreate_FilesCreateResponseUrlsSchema = z.object({\n get: z.string().describe(\"URL to retrieve the file resource\").nullable(),\n}).describe(\"URLs associated with the file resource.\");\nconst ReplicateFilesCreate_FilesCreateResponseChecksumsSchema = z.object({\n md5: z.string().describe(\"MD5 checksum of the file\").nullable().optional(),\n sha256: z.string().describe(\"SHA256 checksum of the file\").nullable().optional(),\n}).describe(\"Checksums for the file.\");\nexport const ReplicateFilesCreateOutput = z.object({\n id: z.string().describe(\"A unique, randomly-generated identifier for the file resource\").nullable(),\n etag: z.string().describe(\"ETag for the file\").nullable().optional(),\n name: z.string().describe(\"Name of the file\").nullable().optional(),\n size: z.number().int().describe(\"The length of the file in bytes\").nullable(),\n urls: ReplicateFilesCreate_FilesCreateResponseUrlsSchema.nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Metadata provided by user when file was created\"),\n checksums: ReplicateFilesCreate_FilesCreateResponseChecksumsSchema.nullable(),\n created_at: z.string().describe(\"When the file was created (ISO 8601 timestamp)\").nullable(),\n expires_at: z.string().describe(\"When the file expires (ISO 8601 timestamp)\").nullable().optional(),\n content_type: z.string().describe(\"The content/MIME type of the file\").nullable(),\n}).describe(\"Response schema after creating a file.\");\n\nexport const replicateFilesCreate = action(\"REPLICATE_FILES_CREATE\", {\n slug: \"replicate-files-create\",\n name: \"Create File\",\n description: \"Tool to create or upload a file to Replicate. Use when you need to upload file content with optional metadata.\",\n input: ReplicateFilesCreateInput,\n output: ReplicateFilesCreateOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4B,EAAE,OAAO;CAChD,SAAS,EAAE,OAAO;EAClB,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF;EAC7G,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wMAAwM;EACnO,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CAC3D,CAAC,CAAC,CAAC,SAAS,iBAAiB;CAC3B,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CACtI,cAAc,EAAE,OAAO,CAAC,CAAC,QAAQ,0BAA0B,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;AACvH,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1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}
1
+ {"version":3,"file":"files-create.mjs","names":[],"sources":["../../src/actions/files-create.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateFilesCreateInput = z.object({\n content: z.object({\n name: z.string().describe(\"The filename that will be used when uploading the file to the destination service\"),\n s3key: z.string().describe(\"The S3 key of a publicly accessible file, typically returned from a previous download action that stored the file in S3. This key references an existing file that can be uploaded to another service.\"),\n mimetype: z.string().describe(\"The MIME type of the file\"),\n}).describe(\"File to upload.\"),\n metadata: z.record(z.string(), z.unknown()).describe(\"User-provided metadata associated with the file (must be valid JSON)\").optional(),\n content_type: z.string().default(\"application/octet-stream\").describe(\"The content/MIME type for the file\").optional(),\n}).describe(\"Request model for creating/uploading a file.\");\nconst ReplicateFilesCreate_FilesCreateResponseUrlsSchema = z.object({\n get: z.string().describe(\"URL to retrieve the file resource\").nullable(),\n}).passthrough().describe(\"URLs associated with the file resource.\");\nconst ReplicateFilesCreate_FilesCreateResponseChecksumsSchema = z.object({\n md5: z.string().describe(\"MD5 checksum of the file\").nullable().optional(),\n sha256: z.string().describe(\"SHA256 checksum of the file\").nullable().optional(),\n}).passthrough().describe(\"Checksums for the file.\");\nexport const ReplicateFilesCreateOutput = z.object({\n id: z.string().describe(\"A unique, randomly-generated identifier for the file resource\").nullable(),\n etag: z.string().describe(\"ETag for the file\").nullable().optional(),\n name: z.string().describe(\"Name of the file\").nullable().optional(),\n size: z.number().int().describe(\"The length of the file in bytes\").nullable(),\n urls: ReplicateFilesCreate_FilesCreateResponseUrlsSchema.nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Metadata provided by user when file was created\"),\n checksums: ReplicateFilesCreate_FilesCreateResponseChecksumsSchema.nullable(),\n created_at: z.string().describe(\"When the file was created (ISO 8601 timestamp)\").nullable(),\n expires_at: z.string().describe(\"When the file expires (ISO 8601 timestamp)\").nullable().optional(),\n content_type: z.string().describe(\"The content/MIME type of the file\").nullable(),\n}).passthrough().describe(\"Response schema after creating a file.\");\n\nexport const replicateFilesCreate = action(\"REPLICATE_FILES_CREATE\", {\n slug: \"replicate-files-create\",\n name: \"Create File\",\n description: \"Tool to create or upload a file to Replicate. Use when you need to upload file content with optional metadata.\",\n input: ReplicateFilesCreateInput,\n output: ReplicateFilesCreateOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4B,EAAE,OAAO;CAChD,SAAS,EAAE,OAAO;EAClB,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF;EAC7G,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wMAAwM;EACnO,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CAC3D,CAAC,CAAC,CAAC,SAAS,iBAAiB;CAC3B,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CACtI,cAAc,EAAE,OAAO,CAAC,CAAC,QAAQ,0BAA0B,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;AACvH,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAM,qDAAqD,EAAE,OAAO,EAClE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,EACzE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AACnE,MAAM,0DAA0D,EAAE,OAAO;CACvE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yBAAyB;AAcnD,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAlBwC,EAAE,OAAO;EACjD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;EAClG,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EAC5E,MAAM,mDAAmD,SAAS;EAClE,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,iDAAiD;EACtG,WAAW,wDAAwD,SAAS;EAC5E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;EAC3F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAClF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAOhB;AACV,CAAC"}
@@ -5,7 +5,7 @@ const ReplicateFilesDeleteInput = zod.z.object({ file_id: zod.z.string().describ
5
5
  const ReplicateFilesDeleteOutput = zod.z.object({
6
6
  message: zod.z.string().default("File deleted successfully").describe("Confirmation message for the deletion").nullable().optional(),
7
7
  success: zod.z.boolean().default(true).describe("Indicates whether the file was successfully deleted").nullable().optional()
8
- }).describe("Response schema for files.delete: Indicates successful deletion.");
8
+ }).passthrough().describe("Response schema for files.delete: Indicates successful deletion.");
9
9
  const replicateFilesDelete = require_action.action("REPLICATE_FILES_DELETE", {
10
10
  slug: "replicate-files-delete",
11
11
  name: "Delete File",
@@ -1 +1 @@
1
- {"version":3,"file":"files-delete.cjs","names":["z","action"],"sources":["../../src/actions/files-delete.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateFilesDeleteInput = z.object({\n file_id: z.string().describe(\"The unique identifier of the file to delete\"),\n}).describe(\"Request schema for deleting a file by its ID.\");\nexport const ReplicateFilesDeleteOutput = z.object({\n message: z.string().default(\"File deleted successfully\").describe(\"Confirmation message for the deletion\").nullable().optional(),\n success: z.boolean().default(true).describe(\"Indicates whether the file was successfully deleted\").nullable().optional(),\n}).describe(\"Response schema for files.delete: Indicates successful deletion.\");\n\nexport const replicateFilesDelete = action(\"REPLICATE_FILES_DELETE\", {\n slug: \"replicate-files-delete\",\n name: \"Delete File\",\n description: \"Tool to delete a file by its ID. Use when you need to remove a file from storage. Returns 204 No Content on success.\",\n input: ReplicateFilesDeleteInput,\n output: ReplicateFilesDeleteOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,EAC5E,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAC3D,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,2BAA2B,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/H,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzH,CAAC,CAAC,CAAC,SAAS,kEAAkE;AAE9E,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"files-delete.cjs","names":["z","action"],"sources":["../../src/actions/files-delete.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateFilesDeleteInput = z.object({\n file_id: z.string().describe(\"The unique identifier of the file to delete\"),\n}).describe(\"Request schema for deleting a file by its ID.\");\nexport const ReplicateFilesDeleteOutput = z.object({\n message: z.string().default(\"File deleted successfully\").describe(\"Confirmation message for the deletion\").nullable().optional(),\n success: z.boolean().default(true).describe(\"Indicates whether the file was successfully deleted\").nullable().optional(),\n}).passthrough().describe(\"Response schema for files.delete: Indicates successful deletion.\");\n\nexport const replicateFilesDelete = action(\"REPLICATE_FILES_DELETE\", {\n slug: \"replicate-files-delete\",\n name: \"Delete File\",\n description: \"Tool to delete a file by its ID. Use when you need to remove a file from storage. Returns 204 No Content on success.\",\n input: ReplicateFilesDeleteInput,\n output: ReplicateFilesDeleteOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,EAC5E,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAC3D,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,2BAA2B,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/H,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kEAAkE;AAE5F,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -7,7 +7,7 @@ declare const ReplicateFilesDeleteInput: z.ZodObject<{
7
7
  declare const ReplicateFilesDeleteOutput: z.ZodObject<{
8
8
  message: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>;
9
9
  success: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
10
- }, z.core.$strip>;
10
+ }, z.core.$loose>;
11
11
  declare const replicateFilesDelete: import("@keystrokehq/action").WorkflowActionDefinition<{
12
12
  file_id: string;
13
13
  }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
@@ -7,7 +7,7 @@ declare const ReplicateFilesDeleteInput: z.ZodObject<{
7
7
  declare const ReplicateFilesDeleteOutput: z.ZodObject<{
8
8
  message: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>;
9
9
  success: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
10
- }, z.core.$strip>;
10
+ }, z.core.$loose>;
11
11
  declare const replicateFilesDelete: import("@keystrokehq/action").WorkflowActionDefinition<{
12
12
  file_id: string;
13
13
  }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
@@ -8,7 +8,7 @@ const replicateFilesDelete = action("REPLICATE_FILES_DELETE", {
8
8
  output: z.object({
9
9
  message: z.string().default("File deleted successfully").describe("Confirmation message for the deletion").nullable().optional(),
10
10
  success: z.boolean().default(true).describe("Indicates whether the file was successfully deleted").nullable().optional()
11
- }).describe("Response schema for files.delete: Indicates successful deletion.")
11
+ }).passthrough().describe("Response schema for files.delete: Indicates successful deletion.")
12
12
  });
13
13
  //#endregion
14
14
  export { replicateFilesDelete };
@@ -1 +1 @@
1
- {"version":3,"file":"files-delete.mjs","names":[],"sources":["../../src/actions/files-delete.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateFilesDeleteInput = z.object({\n file_id: z.string().describe(\"The unique identifier of the file to delete\"),\n}).describe(\"Request schema for deleting a file by its ID.\");\nexport const ReplicateFilesDeleteOutput = z.object({\n message: z.string().default(\"File deleted successfully\").describe(\"Confirmation message for the deletion\").nullable().optional(),\n success: z.boolean().default(true).describe(\"Indicates whether the file was successfully deleted\").nullable().optional(),\n}).describe(\"Response schema for files.delete: Indicates successful deletion.\");\n\nexport const replicateFilesDelete = action(\"REPLICATE_FILES_DELETE\", {\n slug: \"replicate-files-delete\",\n name: \"Delete File\",\n description: \"Tool to delete a file by its ID. Use when you need to remove a file from storage. Returns 204 No Content on success.\",\n input: ReplicateFilesDeleteInput,\n output: ReplicateFilesDeleteOutput,\n});\n"],"mappings":";;AAYA,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZuC,EAAE,OAAO,EAChD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,EAC5E,CAAC,CAAC,CAAC,SAAS,+CAUH;CACP,QAVwC,EAAE,OAAO;EACjD,SAAS,EAAE,OAAO,CAAC,CAAC,QAAQ,2BAA2B,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/H,SAAS,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzH,CAAC,CAAC,CAAC,SAAS,kEAOF;AACV,CAAC"}
1
+ {"version":3,"file":"files-delete.mjs","names":[],"sources":["../../src/actions/files-delete.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateFilesDeleteInput = z.object({\n file_id: z.string().describe(\"The unique identifier of the file to delete\"),\n}).describe(\"Request schema for deleting a file by its ID.\");\nexport const ReplicateFilesDeleteOutput = z.object({\n message: z.string().default(\"File deleted successfully\").describe(\"Confirmation message for the deletion\").nullable().optional(),\n success: z.boolean().default(true).describe(\"Indicates whether the file was successfully deleted\").nullable().optional(),\n}).passthrough().describe(\"Response schema for files.delete: Indicates successful deletion.\");\n\nexport const replicateFilesDelete = action(\"REPLICATE_FILES_DELETE\", {\n slug: \"replicate-files-delete\",\n name: \"Delete File\",\n description: \"Tool to delete a file by its ID. Use when you need to remove a file from storage. Returns 204 No Content on success.\",\n input: ReplicateFilesDeleteInput,\n output: ReplicateFilesDeleteOutput,\n});\n"],"mappings":";;AAYA,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZuC,EAAE,OAAO,EAChD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,EAC5E,CAAC,CAAC,CAAC,SAAS,+CAUH;CACP,QAVwC,EAAE,OAAO;EACjD,SAAS,EAAE,OAAO,CAAC,CAAC,QAAQ,2BAA2B,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/H,SAAS,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kEAOhB;AACV,CAAC"}
@@ -2,11 +2,11 @@ const require_action = require("../action.cjs");
2
2
  let zod = require("zod");
3
3
  //#region src/actions/files-get.ts
4
4
  const ReplicateFilesGetInput = zod.z.object({ file_id: zod.z.string().describe("The ID of the file to retrieve Must originate from a prior upload or prediction output. Use REPLICATE_FILES_LIST to confirm the ID exists before calling this tool.") }).describe("Request schema for retrieving details of a file by its ID.");
5
- const ReplicateFilesGet_FileUrlsSchema = zod.z.object({ get: zod.z.string().describe("A URL to the file resource").nullable() }).describe("URLs associated with the file resource.");
5
+ const ReplicateFilesGet_FileUrlsSchema = zod.z.object({ get: zod.z.string().describe("A URL to the file resource").nullable() }).passthrough().describe("URLs associated with the file resource.");
6
6
  const ReplicateFilesGet_FileChecksumsSchema = zod.z.object({
7
7
  md5: zod.z.string().describe("MD5 checksum of the file").nullable().optional(),
8
8
  sha256: zod.z.string().describe("SHA256 checksum of the file").nullable()
9
- }).describe("Checksums for file integrity verification.");
9
+ }).passthrough().describe("Checksums for file integrity verification.");
10
10
  const ReplicateFilesGetOutput = zod.z.object({
11
11
  id: zod.z.string().describe("A unique, randomly-generated identifier for the file resource").nullable(),
12
12
  etag: zod.z.string().describe("Entity tag for the file").nullable().optional(),
@@ -18,7 +18,7 @@ const ReplicateFilesGetOutput = zod.z.object({
18
18
  created_at: zod.z.string().describe("When the file was created (ISO 8601 datetime)").nullable(),
19
19
  expires_at: zod.z.string().describe("When the file expires (ISO 8601 datetime)").nullable().optional(),
20
20
  content_type: zod.z.string().describe("The content / MIME type of the file").nullable()
21
- }).describe("Response schema for files.get: Detailed information about the file.");
21
+ }).passthrough().describe("Response schema for files.get: Detailed information about the file.");
22
22
  const replicateFilesGet = require_action.action("REPLICATE_FILES_GET", {
23
23
  slug: "replicate-files-get",
24
24
  name: "Get File Details",
@@ -1 +1 @@
1
- {"version":3,"file":"files-get.cjs","names":["z","action"],"sources":["../../src/actions/files-get.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateFilesGetInput = z.object({\n file_id: z.string().describe(\"The ID of the file to retrieve Must originate from a prior upload or prediction output. Use REPLICATE_FILES_LIST to confirm the ID exists before calling this tool.\"),\n}).describe(\"Request schema for retrieving details of a file by its ID.\");\nconst ReplicateFilesGet_FileUrlsSchema = z.object({\n get: z.string().describe(\"A URL to the file resource\").nullable(),\n}).describe(\"URLs associated with the file resource.\");\nconst ReplicateFilesGet_FileChecksumsSchema = z.object({\n md5: z.string().describe(\"MD5 checksum of the file\").nullable().optional(),\n sha256: z.string().describe(\"SHA256 checksum of the file\").nullable(),\n}).describe(\"Checksums for file integrity verification.\");\nexport const ReplicateFilesGetOutput = z.object({\n id: z.string().describe(\"A unique, randomly-generated identifier for the file resource\").nullable(),\n etag: z.string().describe(\"Entity tag for the file\").nullable().optional(),\n name: z.string().describe(\"Name of the file\").nullable().optional(),\n size: z.number().int().describe(\"The length of the file in bytes\").nullable(),\n urls: ReplicateFilesGet_FileUrlsSchema.nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Metadata provided by user when the file was created\").nullable().optional(),\n checksums: ReplicateFilesGet_FileChecksumsSchema.nullable(),\n created_at: z.string().describe(\"When the file was created (ISO 8601 datetime)\").nullable(),\n expires_at: z.string().describe(\"When the file expires (ISO 8601 datetime)\").nullable().optional(),\n content_type: z.string().describe(\"The content / MIME type of the file\").nullable(),\n}).describe(\"Response schema for files.get: Detailed information about the file.\");\n\nexport const replicateFilesGet = action(\"REPLICATE_FILES_GET\", {\n slug: \"replicate-files-get\",\n name: \"Get File Details\",\n description: \"Tool to get details of a file by its ID. Use when you need to inspect uploaded file information before further operations. Returned URLs may be short-lived; download or persist needed files promptly after retrieval.\",\n input: ReplicateFilesGetInput,\n output: ReplicateFilesGetOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyBA,IAAAA,EAAE,OAAO,EAC7C,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qKAAqK,EACpM,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAM,mCAAmCA,IAAAA,EAAE,OAAO,EAChD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,EAClE,CAAC,CAAC,CAAC,SAAS,yCAAyC;AACrD,MAAM,wCAAwCA,IAAAA,EAAE,OAAO;CACrD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;AACtE,CAAC,CAAC,CAAC,SAAS,4CAA4C;AACxD,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CAClG,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC5E,MAAM,iCAAiC,SAAS;CAChD,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChI,WAAW,sCAAsC,SAAS;CAC1D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CAC1F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;AACpF,CAAC,CAAC,CAAC,SAAS,qEAAqE;AAEjF,MAAa,oBAAoBC,eAAAA,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"files-get.cjs","names":["z","action"],"sources":["../../src/actions/files-get.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateFilesGetInput = z.object({\n file_id: z.string().describe(\"The ID of the file to retrieve Must originate from a prior upload or prediction output. Use REPLICATE_FILES_LIST to confirm the ID exists before calling this tool.\"),\n}).describe(\"Request schema for retrieving details of a file by its ID.\");\nconst ReplicateFilesGet_FileUrlsSchema = z.object({\n get: z.string().describe(\"A URL to the file resource\").nullable(),\n}).passthrough().describe(\"URLs associated with the file resource.\");\nconst ReplicateFilesGet_FileChecksumsSchema = z.object({\n md5: z.string().describe(\"MD5 checksum of the file\").nullable().optional(),\n sha256: z.string().describe(\"SHA256 checksum of the file\").nullable(),\n}).passthrough().describe(\"Checksums for file integrity verification.\");\nexport const ReplicateFilesGetOutput = z.object({\n id: z.string().describe(\"A unique, randomly-generated identifier for the file resource\").nullable(),\n etag: z.string().describe(\"Entity tag for the file\").nullable().optional(),\n name: z.string().describe(\"Name of the file\").nullable().optional(),\n size: z.number().int().describe(\"The length of the file in bytes\").nullable(),\n urls: ReplicateFilesGet_FileUrlsSchema.nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Metadata provided by user when the file was created\").nullable().optional(),\n checksums: ReplicateFilesGet_FileChecksumsSchema.nullable(),\n created_at: z.string().describe(\"When the file was created (ISO 8601 datetime)\").nullable(),\n expires_at: z.string().describe(\"When the file expires (ISO 8601 datetime)\").nullable().optional(),\n content_type: z.string().describe(\"The content / MIME type of the file\").nullable(),\n}).passthrough().describe(\"Response schema for files.get: Detailed information about the file.\");\n\nexport const replicateFilesGet = action(\"REPLICATE_FILES_GET\", {\n slug: \"replicate-files-get\",\n name: \"Get File Details\",\n description: \"Tool to get details of a file by its ID. Use when you need to inspect uploaded file information before further operations. Returned URLs may be short-lived; download or persist needed files promptly after retrieval.\",\n input: ReplicateFilesGetInput,\n output: ReplicateFilesGetOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyBA,IAAAA,EAAE,OAAO,EAC7C,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qKAAqK,EACpM,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAM,mCAAmCA,IAAAA,EAAE,OAAO,EAChD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,EAClE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AACnE,MAAM,wCAAwCA,IAAAA,EAAE,OAAO;CACrD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SA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Object<{
11
11
  size: z.ZodNullable<z.ZodNumber>;
12
12
  urls: z.ZodNullable<z.ZodObject<{
13
13
  get: z.ZodNullable<z.ZodString>;
14
- }, z.core.$strip>>;
14
+ }, z.core.$loose>>;
15
15
  metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
16
16
  checksums: z.ZodNullable<z.ZodObject<{
17
17
  md5: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
18
  sha256: z.ZodNullable<z.ZodString>;
19
- }, z.core.$strip>>;
19
+ }, z.core.$loose>>;
20
20
  created_at: z.ZodNullable<z.ZodString>;
21
21
  expires_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
22
  content_type: z.ZodNullable<z.ZodString>;
23
- }, z.core.$strip>;
23
+ }, z.core.$loose>;
24
24
  declare const replicateFilesGet: import("@keystrokehq/action").WorkflowActionDefinition<{
25
25
  file_id: string;
26
26
  }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
@@ -11,16 +11,16 @@ declare const ReplicateFilesGetOutput: z.ZodObject<{
11
11
  size: z.ZodNullable<z.ZodNumber>;
12
12
  urls: z.ZodNullable<z.ZodObject<{
13
13
  get: z.ZodNullable<z.ZodString>;
14
- }, z.core.$strip>>;
14
+ }, z.core.$loose>>;
15
15
  metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
16
16
  checksums: z.ZodNullable<z.ZodObject<{
17
17
  md5: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
18
  sha256: z.ZodNullable<z.ZodString>;
19
- }, z.core.$strip>>;
19
+ }, z.core.$loose>>;
20
20
  created_at: z.ZodNullable<z.ZodString>;
21
21
  expires_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
22
  content_type: z.ZodNullable<z.ZodString>;
23
- }, z.core.$strip>;
23
+ }, z.core.$loose>;
24
24
  declare const replicateFilesGet: import("@keystrokehq/action").WorkflowActionDefinition<{
25
25
  file_id: string;
26
26
  }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
@@ -2,11 +2,11 @@ import { action } from "../action.mjs";
2
2
  import { z } from "zod";
3
3
  //#region src/actions/files-get.ts
4
4
  const ReplicateFilesGetInput = z.object({ file_id: z.string().describe("The ID of the file to retrieve Must originate from a prior upload or prediction output. Use REPLICATE_FILES_LIST to confirm the ID exists before calling this tool.") }).describe("Request schema for retrieving details of a file by its ID.");
5
- const ReplicateFilesGet_FileUrlsSchema = z.object({ get: z.string().describe("A URL to the file resource").nullable() }).describe("URLs associated with the file resource.");
5
+ const ReplicateFilesGet_FileUrlsSchema = z.object({ get: z.string().describe("A URL to the file resource").nullable() }).passthrough().describe("URLs associated with the file resource.");
6
6
  const ReplicateFilesGet_FileChecksumsSchema = z.object({
7
7
  md5: z.string().describe("MD5 checksum of the file").nullable().optional(),
8
8
  sha256: z.string().describe("SHA256 checksum of the file").nullable()
9
- }).describe("Checksums for file integrity verification.");
9
+ }).passthrough().describe("Checksums for file integrity verification.");
10
10
  const replicateFilesGet = action("REPLICATE_FILES_GET", {
11
11
  slug: "replicate-files-get",
12
12
  name: "Get File Details",
@@ -23,7 +23,7 @@ const replicateFilesGet = action("REPLICATE_FILES_GET", {
23
23
  created_at: z.string().describe("When the file was created (ISO 8601 datetime)").nullable(),
24
24
  expires_at: z.string().describe("When the file expires (ISO 8601 datetime)").nullable().optional(),
25
25
  content_type: z.string().describe("The content / MIME type of the file").nullable()
26
- }).describe("Response schema for files.get: Detailed information about the file.")
26
+ }).passthrough().describe("Response schema for files.get: Detailed information about the file.")
27
27
  });
28
28
  //#endregion
29
29
  export { replicateFilesGet };
@@ -1 +1 @@
1
- {"version":3,"file":"files-get.mjs","names":[],"sources":["../../src/actions/files-get.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateFilesGetInput = z.object({\n file_id: z.string().describe(\"The ID of the file to retrieve Must originate from a prior upload or prediction output. Use REPLICATE_FILES_LIST to confirm the ID exists before calling this tool.\"),\n}).describe(\"Request schema for retrieving details of a file by its ID.\");\nconst ReplicateFilesGet_FileUrlsSchema = z.object({\n get: z.string().describe(\"A URL to the file resource\").nullable(),\n}).describe(\"URLs associated with the file resource.\");\nconst ReplicateFilesGet_FileChecksumsSchema = z.object({\n md5: z.string().describe(\"MD5 checksum of the file\").nullable().optional(),\n sha256: z.string().describe(\"SHA256 checksum of the file\").nullable(),\n}).describe(\"Checksums for file integrity verification.\");\nexport const ReplicateFilesGetOutput = z.object({\n id: z.string().describe(\"A unique, randomly-generated identifier for the file resource\").nullable(),\n etag: z.string().describe(\"Entity tag for the file\").nullable().optional(),\n name: z.string().describe(\"Name of the file\").nullable().optional(),\n size: z.number().int().describe(\"The length of the file in bytes\").nullable(),\n urls: ReplicateFilesGet_FileUrlsSchema.nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Metadata provided by user when the file was created\").nullable().optional(),\n checksums: ReplicateFilesGet_FileChecksumsSchema.nullable(),\n created_at: z.string().describe(\"When the file was created (ISO 8601 datetime)\").nullable(),\n expires_at: z.string().describe(\"When the file expires (ISO 8601 datetime)\").nullable().optional(),\n content_type: z.string().describe(\"The content / MIME type of the file\").nullable(),\n}).describe(\"Response schema for files.get: Detailed information about the file.\");\n\nexport const replicateFilesGet = action(\"REPLICATE_FILES_GET\", {\n slug: \"replicate-files-get\",\n name: \"Get File Details\",\n description: \"Tool to get details of a file by its ID. Use when you need to inspect uploaded file information before further operations. Returned URLs may be short-lived; download or persist needed files promptly after retrieval.\",\n input: ReplicateFilesGetInput,\n output: ReplicateFilesGetOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyB,EAAE,OAAO,EAC7C,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,qKAAqK,EACpM,CAAC,CAAC,CAAC,SAAS,4DA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AAC,SAAS,qEAOF;AACV,CAAC"}
1
+ {"version":3,"file":"files-get.mjs","names":[],"sources":["../../src/actions/files-get.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateFilesGetInput = z.object({\n file_id: z.string().describe(\"The ID of the file to retrieve Must originate from a prior upload or prediction output. Use REPLICATE_FILES_LIST to confirm the ID exists before calling this tool.\"),\n}).describe(\"Request schema for retrieving details of a file by its ID.\");\nconst ReplicateFilesGet_FileUrlsSchema = z.object({\n get: z.string().describe(\"A URL to the file resource\").nullable(),\n}).passthrough().describe(\"URLs associated with the file resource.\");\nconst ReplicateFilesGet_FileChecksumsSchema = z.object({\n md5: z.string().describe(\"MD5 checksum of the file\").nullable().optional(),\n sha256: z.string().describe(\"SHA256 checksum of the file\").nullable(),\n}).passthrough().describe(\"Checksums for file integrity verification.\");\nexport const ReplicateFilesGetOutput = z.object({\n id: z.string().describe(\"A unique, randomly-generated identifier for the file resource\").nullable(),\n etag: z.string().describe(\"Entity tag for the file\").nullable().optional(),\n name: z.string().describe(\"Name of the file\").nullable().optional(),\n size: z.number().int().describe(\"The length of the file in bytes\").nullable(),\n urls: ReplicateFilesGet_FileUrlsSchema.nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Metadata provided by user when the file was created\").nullable().optional(),\n checksums: ReplicateFilesGet_FileChecksumsSchema.nullable(),\n created_at: z.string().describe(\"When the file was created (ISO 8601 datetime)\").nullable(),\n expires_at: z.string().describe(\"When the file expires (ISO 8601 datetime)\").nullable().optional(),\n content_type: z.string().describe(\"The content / MIME type of the file\").nullable(),\n}).passthrough().describe(\"Response schema for files.get: Detailed information about the file.\");\n\nexport const replicateFilesGet = action(\"REPLICATE_FILES_GET\", {\n slug: \"replicate-files-get\",\n name: \"Get File Details\",\n description: \"Tool to get details of a file by its ID. Use when you need to inspect uploaded file information before further operations. Returned URLs may be short-lived; download or persist needed files promptly after retrieval.\",\n input: ReplicateFilesGetInput,\n output: ReplicateF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AS;EAC1F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CACpF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qEAOhB;AACV,CAAC"}
@@ -2,11 +2,11 @@ const require_action = require("../action.cjs");
2
2
  let zod = require("zod");
3
3
  //#region src/actions/files-list.ts
4
4
  const ReplicateFilesListInput = zod.z.object({ cursor: zod.z.string().describe("Cursor for pagination. Use the cursor from 'next' URL of previous response.").optional() }).describe("Request schema for listing files with optional pagination.");
5
- const ReplicateFilesList_FileUrlsSchema = zod.z.object({ get: zod.z.string().describe("URL to the file resource").nullable() }).describe("URLs associated with the file resource.");
5
+ const ReplicateFilesList_FileUrlsSchema = zod.z.object({ get: zod.z.string().describe("URL to the file resource").nullable() }).passthrough().describe("URLs associated with the file resource.");
6
6
  const ReplicateFilesList_FileChecksumsSchema = zod.z.object({
7
7
  md5: zod.z.string().describe("MD5 checksum of the file").nullable().optional(),
8
8
  sha256: zod.z.string().describe("SHA256 checksum of the file").nullable()
9
- }).describe("Checksums for file integrity verification.");
9
+ }).passthrough().describe("Checksums for file integrity verification.");
10
10
  const ReplicateFilesList_FileSchema = zod.z.object({
11
11
  id: zod.z.string().describe("Unique random identifier for the file").nullable(),
12
12
  etag: zod.z.string().describe("Entity tag for the file").nullable().optional(),
@@ -18,12 +18,12 @@ const ReplicateFilesList_FileSchema = zod.z.object({
18
18
  created_at: zod.z.string().describe("Creation timestamp in ISO 8601 date-time format").nullable(),
19
19
  expires_at: zod.z.string().describe("Expiration timestamp in ISO 8601 date-time format").nullable(),
20
20
  content_type: zod.z.string().describe("MIME type of the file").nullable()
21
- }).describe("Representation of a file object.");
21
+ }).passthrough().describe("Representation of a file object.");
22
22
  const ReplicateFilesListOutput = zod.z.object({
23
23
  next: zod.z.string().describe("URL to fetch the next page of results, if any").nullable().optional(),
24
24
  results: zod.z.array(ReplicateFilesList_FileSchema).describe("List of files returned in this page"),
25
25
  previous: zod.z.string().describe("URL to fetch the previous page of results, if any").nullable().optional()
26
- }).describe("Paginated list of files.");
26
+ }).passthrough().describe("Paginated list of files.");
27
27
  const replicateFilesList = require_action.action("REPLICATE_FILES_LIST", {
28
28
  slug: "replicate-files-list",
29
29
  name: "List Files",
@@ -1 +1 @@
1
- {"version":3,"file":"files-list.cjs","names":["z","action"],"sources":["../../src/actions/files-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateFilesListInput = z.object({\n cursor: z.string().describe(\"Cursor for pagination. Use the cursor from 'next' URL of previous response.\").optional(),\n}).describe(\"Request schema for listing files with optional pagination.\");\nconst ReplicateFilesList_FileUrlsSchema = z.object({\n get: z.string().describe(\"URL to the file resource\").nullable(),\n}).describe(\"URLs associated with the file resource.\");\nconst ReplicateFilesList_FileChecksumsSchema = z.object({\n md5: z.string().describe(\"MD5 checksum of the file\").nullable().optional(),\n sha256: z.string().describe(\"SHA256 checksum of the file\").nullable(),\n}).describe(\"Checksums for file integrity verification.\");\nconst ReplicateFilesList_FileSchema = z.object({\n id: z.string().describe(\"Unique random identifier for the file\").nullable(),\n etag: z.string().describe(\"Entity tag for the file\").nullable().optional(),\n name: z.string().describe(\"Name of the file\").nullable().optional(),\n size: z.number().int().describe(\"File length in bytes, must be non-negative\").nullable(),\n urls: ReplicateFilesList_FileUrlsSchema.nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"User-provided metadata (can be empty object)\"),\n checksums: ReplicateFilesList_FileChecksumsSchema.nullable(),\n created_at: z.string().describe(\"Creation timestamp in ISO 8601 date-time format\").nullable(),\n expires_at: z.string().describe(\"Expiration timestamp in ISO 8601 date-time format\").nullable(),\n content_type: z.string().describe(\"MIME type of the file\").nullable(),\n}).describe(\"Representation of a file object.\");\nexport const ReplicateFilesListOutput = z.object({\n next: z.string().describe(\"URL to fetch the next page of results, if any\").nullable().optional(),\n results: z.array(ReplicateFilesList_FileSchema).describe(\"List of files returned in this page\"),\n previous: z.string().describe(\"URL to fetch the previous page of results, if any\").nullable().optional(),\n}).describe(\"Paginated list of files.\");\n\nexport const replicateFilesList = action(\"REPLICATE_FILES_LIST\", {\n slug: \"replicate-files-list\",\n name: \"List Files\",\n description: \"Tool to retrieve a paginated list of uploaded files. Use to view all files created by the authenticated user or organization. Files are sorted with most recent first. Pagination is cursor-based: follow the next cursor until empty to retrieve all files. Limit requests to 1–2/second to avoid 429 Too Many Requests errors. Use to validate current file_ids before passing to prediction tools, as stale file_ids cause runtime errors.\",\n input: ReplicateFilesListInput,\n output: ReplicateFilesListOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO,EAC9C,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS,EACtH,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAM,oCAAoCA,IAAAA,EAAE,OAAO,EACjD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,EAChE,CAAC,CAAC,CAAC,SAAS,yCAAyC;AACrD,MAAM,yCAAyCA,IAAAA,EAAE,OAAO;CACtD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;AACtE,CAAC,CAAC,CAAC,SAAS,4CAA4C;AACxD,MAAM,gCAAgCA,IAAAA,EAAE,OAAO;CAC7C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC1E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACvF,MAAM,kCAAkC,SAAS;CACjD,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8CAA8C;CACnG,WAAW,uCAAuC,SAAS;CAC3D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC5F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CAC9F,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;AACtE,CAAC,CAAC,CAAC,SAAS,kCAAkC;AAC9C,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,SAASA,IAAAA,EAAE,MAAM,6BAA6B,CAAC,CAAC,SAAS,qCAAqC;CAC9F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzG,CAAC,CAAC,CAAC,SAAS,0BAA0B;AAEtC,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"files-list.cjs","names":["z","action"],"sources":["../../src/actions/files-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateFilesListInput = z.object({\n cursor: z.string().describe(\"Cursor for pagination. Use the cursor from 'next' URL of previous response.\").optional(),\n}).describe(\"Request schema for listing files with optional pagination.\");\nconst ReplicateFilesList_FileUrlsSchema = z.object({\n get: z.string().describe(\"URL to the file resource\").nullable(),\n}).passthrough().describe(\"URLs associated with the file resource.\");\nconst ReplicateFilesList_FileChecksumsSchema = z.object({\n md5: z.string().describe(\"MD5 checksum of the file\").nullable().optional(),\n sha256: z.string().describe(\"SHA256 checksum of the file\").nullable(),\n}).passthrough().describe(\"Checksums for file integrity verification.\");\nconst ReplicateFilesList_FileSchema = z.object({\n id: z.string().describe(\"Unique random identifier for the file\").nullable(),\n etag: z.string().describe(\"Entity tag for the file\").nullable().optional(),\n name: z.string().describe(\"Name of the file\").nullable().optional(),\n size: z.number().int().describe(\"File length in bytes, must be non-negative\").nullable(),\n urls: ReplicateFilesList_FileUrlsSchema.nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"User-provided metadata (can be empty object)\"),\n checksums: ReplicateFilesList_FileChecksumsSchema.nullable(),\n created_at: z.string().describe(\"Creation timestamp in ISO 8601 date-time format\").nullable(),\n expires_at: z.string().describe(\"Expiration timestamp in ISO 8601 date-time format\").nullable(),\n content_type: z.string().describe(\"MIME type of the file\").nullable(),\n}).passthrough().describe(\"Representation of a file object.\");\nexport const ReplicateFilesListOutput = z.object({\n next: z.string().describe(\"URL to fetch the next page of results, if any\").nullable().optional(),\n results: z.array(ReplicateFilesList_FileSchema).describe(\"List of files returned in this page\"),\n previous: z.string().describe(\"URL to fetch the previous page of results, if any\").nullable().optional(),\n}).passthrough().describe(\"Paginated list of files.\");\n\nexport const replicateFilesList = action(\"REPLICATE_FILES_LIST\", {\n slug: \"replicate-files-list\",\n name: \"List Files\",\n description: \"Tool to retrieve a paginated list of uploaded files. Use to view all files created by the authenticated user or organization. Files are sorted with most recent first. Pagination is cursor-based: follow the next cursor until empty to retrieve all files. Limit requests to 1–2/second to avoid 429 Too Many Requests errors. Use to validate current file_ids before passing to prediction tools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WAAW,uCAAuC,SAAS;CAC3D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC5F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CAC9F,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;AACtE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kCAAkC;AAC5D,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,SAASA,IAAAA,EAAE,MAAM,6BAA6B,CAAC,CAAC,SAAS,qCAAqC;CAC9F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0BAA0B;AAEpD,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -13,18 +13,18 @@ declare const ReplicateFilesListOutput: z.ZodObject<{
13
13
  size: z.ZodNullable<z.ZodNumber>;
14
14
  urls: z.ZodNullable<z.ZodObject<{
15
15
  get: z.ZodNullable<z.ZodString>;
16
- }, z.core.$strip>>;
16
+ }, z.core.$loose>>;
17
17
  metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
18
18
  checksums: z.ZodNullable<z.ZodObject<{
19
19
  md5: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
20
  sha256: z.ZodNullable<z.ZodString>;
21
- }, z.core.$strip>>;
21
+ }, z.core.$loose>>;
22
22
  created_at: z.ZodNullable<z.ZodString>;
23
23
  expires_at: z.ZodNullable<z.ZodString>;
24
24
  content_type: z.ZodNullable<z.ZodString>;
25
- }, z.core.$strip>>;
25
+ }, z.core.$loose>>;
26
26
  previous: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
- }, z.core.$strip>;
27
+ }, z.core.$loose>;
28
28
  declare const replicateFilesList: import("@keystrokehq/action").WorkflowActionDefinition<{
29
29
  cursor?: string | undefined;
30
30
  }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
@@ -13,18 +13,18 @@ declare const ReplicateFilesListOutput: z.ZodObject<{
13
13
  size: z.ZodNullable<z.ZodNumber>;
14
14
  urls: z.ZodNullable<z.ZodObject<{
15
15
  get: z.ZodNullable<z.ZodString>;
16
- }, z.core.$strip>>;
16
+ }, z.core.$loose>>;
17
17
  metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
18
18
  checksums: z.ZodNullable<z.ZodObject<{
19
19
  md5: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
20
  sha256: z.ZodNullable<z.ZodString>;
21
- }, z.core.$strip>>;
21
+ }, z.core.$loose>>;
22
22
  created_at: z.ZodNullable<z.ZodString>;
23
23
  expires_at: z.ZodNullable<z.ZodString>;
24
24
  content_type: z.ZodNullable<z.ZodString>;
25
- }, z.core.$strip>>;
25
+ }, z.core.$loose>>;
26
26
  previous: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
- }, z.core.$strip>;
27
+ }, z.core.$loose>;
28
28
  declare const replicateFilesList: import("@keystrokehq/action").WorkflowActionDefinition<{
29
29
  cursor?: string | undefined;
30
30
  }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
@@ -2,11 +2,11 @@ import { action } from "../action.mjs";
2
2
  import { z } from "zod";
3
3
  //#region src/actions/files-list.ts
4
4
  const ReplicateFilesListInput = z.object({ cursor: z.string().describe("Cursor for pagination. Use the cursor from 'next' URL of previous response.").optional() }).describe("Request schema for listing files with optional pagination.");
5
- const ReplicateFilesList_FileUrlsSchema = z.object({ get: z.string().describe("URL to the file resource").nullable() }).describe("URLs associated with the file resource.");
5
+ const ReplicateFilesList_FileUrlsSchema = z.object({ get: z.string().describe("URL to the file resource").nullable() }).passthrough().describe("URLs associated with the file resource.");
6
6
  const ReplicateFilesList_FileChecksumsSchema = z.object({
7
7
  md5: z.string().describe("MD5 checksum of the file").nullable().optional(),
8
8
  sha256: z.string().describe("SHA256 checksum of the file").nullable()
9
- }).describe("Checksums for file integrity verification.");
9
+ }).passthrough().describe("Checksums for file integrity verification.");
10
10
  const ReplicateFilesList_FileSchema = z.object({
11
11
  id: z.string().describe("Unique random identifier for the file").nullable(),
12
12
  etag: z.string().describe("Entity tag for the file").nullable().optional(),
@@ -18,7 +18,7 @@ const ReplicateFilesList_FileSchema = z.object({
18
18
  created_at: z.string().describe("Creation timestamp in ISO 8601 date-time format").nullable(),
19
19
  expires_at: z.string().describe("Expiration timestamp in ISO 8601 date-time format").nullable(),
20
20
  content_type: z.string().describe("MIME type of the file").nullable()
21
- }).describe("Representation of a file object.");
21
+ }).passthrough().describe("Representation of a file object.");
22
22
  const replicateFilesList = action("REPLICATE_FILES_LIST", {
23
23
  slug: "replicate-files-list",
24
24
  name: "List Files",
@@ -28,7 +28,7 @@ const replicateFilesList = action("REPLICATE_FILES_LIST", {
28
28
  next: z.string().describe("URL to fetch the next page of results, if any").nullable().optional(),
29
29
  results: z.array(ReplicateFilesList_FileSchema).describe("List of files returned in this page"),
30
30
  previous: z.string().describe("URL to fetch the previous page of results, if any").nullable().optional()
31
- }).describe("Paginated list of files.")
31
+ }).passthrough().describe("Paginated list of files.")
32
32
  });
33
33
  //#endregion
34
34
  export { replicateFilesList };