@keystrokehq/sanity 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (202) hide show
  1. package/README.md +17 -0
  2. package/dist/action.cjs +21 -0
  3. package/dist/action.cjs.map +1 -0
  4. package/dist/action.mjs +21 -0
  5. package/dist/action.mjs.map +1 -0
  6. package/dist/actions/add-default-role-to-users.cjs +19 -0
  7. package/dist/actions/add-default-role-to-users.cjs.map +1 -0
  8. package/dist/actions/add-default-role-to-users.d.cts +9 -0
  9. package/dist/actions/add-default-role-to-users.d.cts.map +1 -0
  10. package/dist/actions/add-default-role-to-users.d.mts +9 -0
  11. package/dist/actions/add-default-role-to-users.d.mts.map +1 -0
  12. package/dist/actions/add-default-role-to-users.mjs +16 -0
  13. package/dist/actions/add-default-role-to-users.mjs.map +1 -0
  14. package/dist/actions/create-attr-definition.cjs +37 -0
  15. package/dist/actions/create-attr-definition.cjs.map +1 -0
  16. package/dist/actions/create-attr-definition.d.cts +9 -0
  17. package/dist/actions/create-attr-definition.d.cts.map +1 -0
  18. package/dist/actions/create-attr-definition.d.mts +9 -0
  19. package/dist/actions/create-attr-definition.d.mts.map +1 -0
  20. package/dist/actions/create-attr-definition.mjs +34 -0
  21. package/dist/actions/create-attr-definition.mjs.map +1 -0
  22. package/dist/actions/create-prompt-post.cjs +27 -0
  23. package/dist/actions/create-prompt-post.cjs.map +1 -0
  24. package/dist/actions/create-prompt-post.d.cts +9 -0
  25. package/dist/actions/create-prompt-post.d.cts.map +1 -0
  26. package/dist/actions/create-prompt-post.d.mts +9 -0
  27. package/dist/actions/create-prompt-post.d.mts.map +1 -0
  28. package/dist/actions/create-prompt-post.mjs +24 -0
  29. package/dist/actions/create-prompt-post.mjs.map +1 -0
  30. package/dist/actions/delete-attr-definition.cjs +20 -0
  31. package/dist/actions/delete-attr-definition.cjs.map +1 -0
  32. package/dist/actions/delete-attr-definition.d.cts +9 -0
  33. package/dist/actions/delete-attr-definition.d.cts.map +1 -0
  34. package/dist/actions/delete-attr-definition.d.mts +9 -0
  35. package/dist/actions/delete-attr-definition.d.mts.map +1 -0
  36. package/dist/actions/delete-attr-definition.mjs +17 -0
  37. package/dist/actions/delete-attr-definition.mjs.map +1 -0
  38. package/dist/actions/delete-document.cjs +30 -0
  39. package/dist/actions/delete-document.cjs.map +1 -0
  40. package/dist/actions/delete-document.d.cts +9 -0
  41. package/dist/actions/delete-document.d.cts.map +1 -0
  42. package/dist/actions/delete-document.d.mts +9 -0
  43. package/dist/actions/delete-document.d.mts.map +1 -0
  44. package/dist/actions/delete-document.mjs +27 -0
  45. package/dist/actions/delete-document.mjs.map +1 -0
  46. package/dist/actions/delete-user-attributes.cjs +32 -0
  47. package/dist/actions/delete-user-attributes.cjs.map +1 -0
  48. package/dist/actions/delete-user-attributes.d.cts +9 -0
  49. package/dist/actions/delete-user-attributes.d.cts.map +1 -0
  50. package/dist/actions/delete-user-attributes.d.mts +9 -0
  51. package/dist/actions/delete-user-attributes.d.mts.map +1 -0
  52. package/dist/actions/delete-user-attributes.mjs +31 -0
  53. package/dist/actions/delete-user-attributes.mjs.map +1 -0
  54. package/dist/actions/get-document.cjs +35 -0
  55. package/dist/actions/get-document.cjs.map +1 -0
  56. package/dist/actions/get-document.d.cts +9 -0
  57. package/dist/actions/get-document.d.cts.map +1 -0
  58. package/dist/actions/get-document.d.mts +9 -0
  59. package/dist/actions/get-document.d.mts.map +1 -0
  60. package/dist/actions/get-document.mjs +34 -0
  61. package/dist/actions/get-document.mjs.map +1 -0
  62. package/dist/actions/get-invite-by-token.cjs +55 -0
  63. package/dist/actions/get-invite-by-token.cjs.map +1 -0
  64. package/dist/actions/get-invite-by-token.d.cts +9 -0
  65. package/dist/actions/get-invite-by-token.d.cts.map +1 -0
  66. package/dist/actions/get-invite-by-token.d.mts +9 -0
  67. package/dist/actions/get-invite-by-token.d.mts.map +1 -0
  68. package/dist/actions/get-invite-by-token.mjs +54 -0
  69. package/dist/actions/get-invite-by-token.mjs.map +1 -0
  70. package/dist/actions/get-org-role.cjs +37 -0
  71. package/dist/actions/get-org-role.cjs.map +1 -0
  72. package/dist/actions/get-org-role.d.cts +9 -0
  73. package/dist/actions/get-org-role.d.cts.map +1 -0
  74. package/dist/actions/get-org-role.d.mts +9 -0
  75. package/dist/actions/get-org-role.d.mts.map +1 -0
  76. package/dist/actions/get-org-role.mjs +36 -0
  77. package/dist/actions/get-org-role.mjs.map +1 -0
  78. package/dist/actions/get-permission.cjs +35 -0
  79. package/dist/actions/get-permission.cjs.map +1 -0
  80. package/dist/actions/get-permission.d.cts +9 -0
  81. package/dist/actions/get-permission.d.cts.map +1 -0
  82. package/dist/actions/get-permission.d.mts +9 -0
  83. package/dist/actions/get-permission.d.mts.map +1 -0
  84. package/dist/actions/get-permission.mjs +34 -0
  85. package/dist/actions/get-permission.mjs.map +1 -0
  86. package/dist/actions/get-project.cjs +45 -0
  87. package/dist/actions/get-project.cjs.map +1 -0
  88. package/dist/actions/get-project.d.cts +9 -0
  89. package/dist/actions/get-project.d.cts.map +1 -0
  90. package/dist/actions/get-project.d.mts +9 -0
  91. package/dist/actions/get-project.d.mts.map +1 -0
  92. package/dist/actions/get-project.mjs +44 -0
  93. package/dist/actions/get-project.mjs.map +1 -0
  94. package/dist/actions/get-robots.cjs +46 -0
  95. package/dist/actions/get-robots.cjs.map +1 -0
  96. package/dist/actions/get-robots.d.cts +9 -0
  97. package/dist/actions/get-robots.d.cts.map +1 -0
  98. package/dist/actions/get-robots.d.mts +9 -0
  99. package/dist/actions/get-robots.d.mts.map +1 -0
  100. package/dist/actions/get-robots.mjs +45 -0
  101. package/dist/actions/get-robots.mjs.map +1 -0
  102. package/dist/actions/get-role.cjs +43 -0
  103. package/dist/actions/get-role.cjs.map +1 -0
  104. package/dist/actions/get-role.d.cts +9 -0
  105. package/dist/actions/get-role.d.cts.map +1 -0
  106. package/dist/actions/get-role.d.mts +9 -0
  107. package/dist/actions/get-role.d.mts.map +1 -0
  108. package/dist/actions/get-role.mjs +42 -0
  109. package/dist/actions/get-role.mjs.map +1 -0
  110. package/dist/actions/get-users.cjs +35 -0
  111. package/dist/actions/get-users.cjs.map +1 -0
  112. package/dist/actions/get-users.d.cts +9 -0
  113. package/dist/actions/get-users.d.cts.map +1 -0
  114. package/dist/actions/get-users.d.mts +9 -0
  115. package/dist/actions/get-users.d.mts.map +1 -0
  116. package/dist/actions/get-users.mjs +34 -0
  117. package/dist/actions/get-users.mjs.map +1 -0
  118. package/dist/actions/index.cjs +43 -0
  119. package/dist/actions/index.d.cts +22 -0
  120. package/dist/actions/index.d.mts +22 -0
  121. package/dist/actions/index.mjs +22 -0
  122. package/dist/actions/list-org-roles.cjs +24 -0
  123. package/dist/actions/list-org-roles.cjs.map +1 -0
  124. package/dist/actions/list-org-roles.d.cts +9 -0
  125. package/dist/actions/list-org-roles.d.cts.map +1 -0
  126. package/dist/actions/list-org-roles.d.mts +9 -0
  127. package/dist/actions/list-org-roles.d.mts.map +1 -0
  128. package/dist/actions/list-org-roles.mjs +23 -0
  129. package/dist/actions/list-org-roles.mjs.map +1 -0
  130. package/dist/actions/list-user-attributes.cjs +32 -0
  131. package/dist/actions/list-user-attributes.cjs.map +1 -0
  132. package/dist/actions/list-user-attributes.d.cts +9 -0
  133. package/dist/actions/list-user-attributes.d.cts.map +1 -0
  134. package/dist/actions/list-user-attributes.d.mts +9 -0
  135. package/dist/actions/list-user-attributes.d.mts.map +1 -0
  136. package/dist/actions/list-user-attributes.mjs +31 -0
  137. package/dist/actions/list-user-attributes.mjs.map +1 -0
  138. package/dist/actions/query-all-screening.cjs +27 -0
  139. package/dist/actions/query-all-screening.cjs.map +1 -0
  140. package/dist/actions/query-all-screening.d.cts +9 -0
  141. package/dist/actions/query-all-screening.d.cts.map +1 -0
  142. package/dist/actions/query-all-screening.d.mts +9 -0
  143. package/dist/actions/query-all-screening.d.mts.map +1 -0
  144. package/dist/actions/query-all-screening.mjs +24 -0
  145. package/dist/actions/query-all-screening.mjs.map +1 -0
  146. package/dist/actions/query-documents.cjs +38 -0
  147. package/dist/actions/query-documents.cjs.map +1 -0
  148. package/dist/actions/query-documents.d.cts +9 -0
  149. package/dist/actions/query-documents.d.cts.map +1 -0
  150. package/dist/actions/query-documents.d.mts +9 -0
  151. package/dist/actions/query-documents.d.mts.map +1 -0
  152. package/dist/actions/query-documents.mjs +37 -0
  153. package/dist/actions/query-documents.mjs.map +1 -0
  154. package/dist/actions/update-org-acl.cjs +20 -0
  155. package/dist/actions/update-org-acl.cjs.map +1 -0
  156. package/dist/actions/update-org-acl.d.cts +9 -0
  157. package/dist/actions/update-org-acl.d.cts.map +1 -0
  158. package/dist/actions/update-org-acl.d.mts +9 -0
  159. package/dist/actions/update-org-acl.d.mts.map +1 -0
  160. package/dist/actions/update-org-acl.mjs +17 -0
  161. package/dist/actions/update-org-acl.mjs.map +1 -0
  162. package/dist/actions/update-user-attributes-values.cjs +34 -0
  163. package/dist/actions/update-user-attributes-values.cjs.map +1 -0
  164. package/dist/actions/update-user-attributes-values.d.cts +9 -0
  165. package/dist/actions/update-user-attributes-values.d.cts.map +1 -0
  166. package/dist/actions/update-user-attributes-values.d.mts +9 -0
  167. package/dist/actions/update-user-attributes-values.d.mts.map +1 -0
  168. package/dist/actions/update-user-attributes-values.mjs +33 -0
  169. package/dist/actions/update-user-attributes-values.mjs.map +1 -0
  170. package/dist/actions/validate-credential.cjs +32 -0
  171. package/dist/actions/validate-credential.cjs.map +1 -0
  172. package/dist/actions/validate-credential.d.cts +9 -0
  173. package/dist/actions/validate-credential.d.cts.map +1 -0
  174. package/dist/actions/validate-credential.d.mts +9 -0
  175. package/dist/actions/validate-credential.d.mts.map +1 -0
  176. package/dist/actions/validate-credential.mjs +31 -0
  177. package/dist/actions/validate-credential.mjs.map +1 -0
  178. package/dist/app.cjs +9 -0
  179. package/dist/app.cjs.map +1 -0
  180. package/dist/app.d.cts +5 -0
  181. package/dist/app.d.cts.map +1 -0
  182. package/dist/app.d.mts +5 -0
  183. package/dist/app.d.mts.map +1 -0
  184. package/dist/app.mjs +10 -0
  185. package/dist/app.mjs.map +1 -0
  186. package/dist/catalog.cjs +15 -0
  187. package/dist/catalog.cjs.map +1 -0
  188. package/dist/catalog.d.cts +14 -0
  189. package/dist/catalog.d.cts.map +1 -0
  190. package/dist/catalog.d.mts +14 -0
  191. package/dist/catalog.d.mts.map +1 -0
  192. package/dist/catalog.mjs +15 -0
  193. package/dist/catalog.mjs.map +1 -0
  194. package/dist/execute.cjs +18 -0
  195. package/dist/execute.cjs.map +1 -0
  196. package/dist/execute.mjs +18 -0
  197. package/dist/execute.mjs.map +1 -0
  198. package/dist/index.cjs +48 -0
  199. package/dist/index.d.cts +24 -0
  200. package/dist/index.d.mts +24 -0
  201. package/dist/index.mjs +25 -0
  202. package/package.json +49 -0
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-permission.d.ts
4
+ declare const SanityGetPermissionInput: z.ZodTypeAny;
5
+ declare const SanityGetPermissionOutput: z.ZodTypeAny;
6
+ declare const sanityGetPermission: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { sanityGetPermission };
9
+ //# sourceMappingURL=get-permission.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-permission.d.cts","names":[],"sources":["../../src/actions/get-permission.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAImB;AAAA,cAM/C,yBAAA,EAA2B,CAAA,CAAE,UAUmB;AAAA,cAEhD,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-permission.d.ts
4
+ declare const SanityGetPermissionInput: z.ZodTypeAny;
5
+ declare const SanityGetPermissionOutput: z.ZodTypeAny;
6
+ declare const sanityGetPermission: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { sanityGetPermission };
9
+ //# sourceMappingURL=get-permission.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-permission.d.mts","names":[],"sources":["../../src/actions/get-permission.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAImB;AAAA,cAM/C,yBAAA,EAA2B,CAAA,CAAE,UAUmB;AAAA,cAEhD,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,34 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/get-permission.ts
4
+ const SanityGetPermissionInput = z.object({
5
+ resource_id: z.string().describe("The resource ID to scope the access request to. Must be a valid ID for the resource type."),
6
+ resource_type: z.string().describe("The resource to scope access requests to. Must be one of: 'organization' or 'project'."),
7
+ permission_name: z.string().describe("The name of the permission. This is a unique identifier for the permission.")
8
+ }).describe("Request model for SanityGetPermission action.");
9
+ const SanityGetPermission_PermissionActionSchema = z.object({
10
+ name: z.string().describe("The name of the action."),
11
+ title: z.string().describe("The title of the action."),
12
+ description: z.string().describe("The description of the action.").nullable().optional()
13
+ }).describe("A permission action.");
14
+ const sanityGetPermission = action("SANITY_GET_PERMISSION", {
15
+ slug: "sanity-get-permission",
16
+ name: "Get Permission",
17
+ description: "Get a permission for a specific resource. Use when you need to retrieve details about a particular permission including its actions, parameters, and scope. The action retrieves permission information based on the resource type, resource ID, and permission name provided in the path parameters.",
18
+ input: SanityGetPermissionInput,
19
+ output: z.object({
20
+ name: z.string().describe("The name of the permission. This is the unique identifier for the resource."),
21
+ type: z.string().describe("The resource type for the permission."),
22
+ title: z.string().describe("The human-readable title of the permission."),
23
+ params: z.record(z.string(), z.unknown()).describe("The parameters for the permission. This is a key-value map of the permission's configuration.").nullable().optional(),
24
+ actions: z.array(SanityGetPermission_PermissionActionSchema).describe("The actions allowed by the permission for this role.").nullable().optional(),
25
+ resourceId: z.string().describe("The resource ID that the permission applies to."),
26
+ description: z.string().describe("The description of the permission.").nullable().optional(),
27
+ resourceType: z.string().describe("The resource that the permission applies to."),
28
+ ownerOrganizationId: z.string().describe("The organization ID that the permission applies to. Used for wildcard permissions where the resourceId is `*`.").nullable().optional()
29
+ }).describe("Response model for SanityGetPermission action.")
30
+ });
31
+ //#endregion
32
+ export { sanityGetPermission };
33
+
34
+ //# sourceMappingURL=get-permission.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-permission.mjs","names":[],"sources":["../../src/actions/get-permission.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityGetPermissionInput: z.ZodTypeAny = z.object({\n resource_id: z.string().describe(\"The resource ID to scope the access request to. Must be a valid ID for the resource type.\"),\n resource_type: z.string().describe(\"The resource to scope access requests to. Must be one of: 'organization' or 'project'.\"),\n permission_name: z.string().describe(\"The name of the permission. This is a unique identifier for the permission.\"),\n}).describe(\"Request model for SanityGetPermission action.\");\nconst SanityGetPermission_PermissionActionSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"The name of the action.\"),\n title: z.string().describe(\"The title of the action.\"),\n description: z.string().describe(\"The description of the action.\").nullable().optional(),\n}).describe(\"A permission action.\");\nexport const SanityGetPermissionOutput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"The name of the permission. This is the unique identifier for the resource.\"),\n type: z.string().describe(\"The resource type for the permission.\"),\n title: z.string().describe(\"The human-readable title of the permission.\"),\n params: z.record(z.string(), z.unknown()).describe(\"The parameters for the permission. This is a key-value map of the permission's configuration.\").nullable().optional(),\n actions: z.array(SanityGetPermission_PermissionActionSchema).describe(\"The actions allowed by the permission for this role.\").nullable().optional(),\n resourceId: z.string().describe(\"The resource ID that the permission applies to.\"),\n description: z.string().describe(\"The description of the permission.\").nullable().optional(),\n resourceType: z.string().describe(\"The resource that the permission applies to.\"),\n ownerOrganizationId: z.string().describe(\"The organization ID that the permission applies to. Used for wildcard permissions where the resourceId is `*`.\").nullable().optional(),\n}).describe(\"Response model for SanityGetPermission action.\");\n\nexport const sanityGetPermission = action(\"SANITY_GET_PERMISSION\", {\n slug: \"sanity-get-permission\",\n name: \"Get Permission\",\n description: \"Get a permission for a specific resource. Use when you need to retrieve details about a particular permission including its actions, parameters, and scope. The action retrieves permission information based on the resource type, resource ID, and permission name provided in the path parameters.\",\n input: SanityGetPermissionInput,\n output: SanityGetPermissionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAAyC,EAAE,OAAO;CAC7D,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,2FAA2F;CAC5H,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF;CAC3H,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E;AACpH,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAC3D,MAAM,6CAA2D,EAAE,OAAO;CACxE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;CACnD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;CACrD,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzF,CAAC,CAAC,CAAC,SAAS,sBAAsB;AAalC,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAjBqD,EAAE,OAAO;EAC9D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E;EACvG,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;EACjE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;EACxE,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+FAA+F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxK,SAAS,EAAE,MAAM,0CAA0C,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClJ,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;EACjF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3F,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;EAChF,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,gHAAgH,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjL,CAAC,CAAC,CAAC,SAAS,gDAOF;AACV,CAAC"}
@@ -0,0 +1,45 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/get-project.ts
4
+ const SanityGetProjectInput = zod.z.object({ project_id: zod.z.string().describe("The unique ID of the project to retrieve.") }).describe("Request parameters for retrieving a project.");
5
+ const SanityGetProject_ProjectPlanSchema = zod.z.object({
6
+ name: zod.z.string().describe("The name of the plan.").nullable().optional(),
7
+ tier: zod.z.string().describe("The tier level of the plan.").nullable().optional()
8
+ }).describe("Plan information for the project.");
9
+ const SanityGetProject_ProjectMemberRoleSchema = zod.z.object({
10
+ name: zod.z.string().describe("The name of the role.").nullable().optional(),
11
+ title: zod.z.string().describe("The display title of the role.").nullable().optional()
12
+ }).describe("Role information for a project member.");
13
+ const SanityGetProject_ProjectMemberSchema = zod.z.object({
14
+ id: zod.z.string().describe("The unique identifier of the member.").nullable().optional(),
15
+ role: zod.z.string().describe("The primary role name of the member (deprecated, use roles array).").nullable().optional(),
16
+ roles: zod.z.array(SanityGetProject_ProjectMemberRoleSchema).describe("List of roles assigned to this member.").nullable().optional(),
17
+ isRobot: zod.z.boolean().describe("Whether this member is a robot/service account.").nullable().optional(),
18
+ createdAt: zod.z.string().describe("ISO 8601 timestamp when the member was added to the project.").nullable().optional()
19
+ }).describe("A member of the project with their role information.");
20
+ const SanityGetProject_ProjectMetadataSchema = zod.z.object({ color: zod.z.string().describe("Color code associated with the project.").nullable().optional() }).describe("Metadata associated with the project.");
21
+ const SanityGetProjectOutput = zod.z.object({
22
+ id: zod.z.string().describe("The unique identifier of the project."),
23
+ plan: SanityGetProject_ProjectPlanSchema.nullable().optional(),
24
+ members: zod.z.array(SanityGetProject_ProjectMemberSchema).describe("List of project members with their roles (included when includeMembers is true).").nullable().optional(),
25
+ features: zod.z.array(zod.z.string()).describe("List of feature names enabled for the project (included when includeFeatures is true).").nullable().optional(),
26
+ metadata: SanityGetProject_ProjectMetadataSchema.nullable().optional(),
27
+ createdAt: zod.z.string().describe("ISO 8601 timestamp when the project was created.").nullable().optional(),
28
+ isBlocked: zod.z.boolean().describe("Whether the project is blocked.").nullable().optional(),
29
+ isDisabled: zod.z.boolean().describe("Whether the project is disabled.").nullable().optional(),
30
+ studioHost: zod.z.string().describe("The custom studio host URL for the project.").nullable().optional(),
31
+ displayName: zod.z.string().describe("The display name of the project."),
32
+ organizationId: zod.z.string().describe("The ID of the organization this project belongs to.").nullable().optional(),
33
+ activityFeedEnabled: zod.z.boolean().describe("Whether activity feed is enabled for the project.").nullable().optional()
34
+ }).describe("Response model for the get project operation.");
35
+ const sanityGetProject = require_action.action("SANITY_GET_PROJECT", {
36
+ slug: "sanity-get-project",
37
+ name: "Get Project",
38
+ description: "Retrieve full details for a specific Sanity project by its ID. Returns comprehensive project information including display name, organization, studio host, and timestamps. Use this action when you need to fetch complete project details or verify project configuration. Optional parameters allow including member lists and feature flags in the response.",
39
+ input: SanityGetProjectInput,
40
+ output: SanityGetProjectOutput
41
+ });
42
+ //#endregion
43
+ exports.sanityGetProject = sanityGetProject;
44
+
45
+ //# sourceMappingURL=get-project.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-project.cjs","names":["z","action"],"sources":["../../src/actions/get-project.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityGetProjectInput: z.ZodTypeAny = z.object({\n project_id: z.string().describe(\"The unique ID of the project to retrieve.\"),\n}).describe(\"Request parameters for retrieving a project.\");\nconst SanityGetProject_ProjectPlanSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"The name of the plan.\").nullable().optional(),\n tier: z.string().describe(\"The tier level of the plan.\").nullable().optional(),\n}).describe(\"Plan information for the project.\");\nconst SanityGetProject_ProjectMemberRoleSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"The name of the role.\").nullable().optional(),\n title: z.string().describe(\"The display title of the role.\").nullable().optional(),\n}).describe(\"Role information for a project member.\");\nconst SanityGetProject_ProjectMemberSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier of the member.\").nullable().optional(),\n role: z.string().describe(\"The primary role name of the member (deprecated, use roles array).\").nullable().optional(),\n roles: z.array(SanityGetProject_ProjectMemberRoleSchema).describe(\"List of roles assigned to this member.\").nullable().optional(),\n isRobot: z.boolean().describe(\"Whether this member is a robot/service account.\").nullable().optional(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the member was added to the project.\").nullable().optional(),\n}).describe(\"A member of the project with their role information.\");\nconst SanityGetProject_ProjectMetadataSchema: z.ZodTypeAny = z.object({\n color: z.string().describe(\"Color code associated with the project.\").nullable().optional(),\n}).describe(\"Metadata associated with the project.\");\nexport const SanityGetProjectOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier of the project.\"),\n plan: SanityGetProject_ProjectPlanSchema.nullable().optional(),\n members: z.array(SanityGetProject_ProjectMemberSchema).describe(\"List of project members with their roles (included when includeMembers is true).\").nullable().optional(),\n features: z.array(z.string()).describe(\"List of feature names enabled for the project (included when includeFeatures is true).\").nullable().optional(),\n metadata: SanityGetProject_ProjectMetadataSchema.nullable().optional(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the project was created.\").nullable().optional(),\n isBlocked: z.boolean().describe(\"Whether the project is blocked.\").nullable().optional(),\n isDisabled: z.boolean().describe(\"Whether the project is disabled.\").nullable().optional(),\n studioHost: z.string().describe(\"The custom studio host URL for the project.\").nullable().optional(),\n displayName: z.string().describe(\"The display name of the project.\"),\n organizationId: z.string().describe(\"The ID of the organization this project belongs to.\").nullable().optional(),\n activityFeedEnabled: z.boolean().describe(\"Whether activity feed is enabled for the project.\").nullable().optional(),\n}).describe(\"Response model for the get project operation.\");\n\nexport const sanityGetProject = action(\"SANITY_GET_PROJECT\", {\n slug: \"sanity-get-project\",\n name: \"Get Project\",\n description: \"Retrieve full details for a specific Sanity project by its ID. Returns comprehensive project information including display name, organization, studio host, and timestamps. Use this action when you need to fetch complete project details or verify project configuration. Optional parameters allow including member lists and feature flags in the response.\",\n input: SanityGetProjectInput,\n output: SanityGetProjectOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAsCA,IAAAA,EAAE,OAAO,EAC1D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,EAC7E,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAM,qCAAmDA,IAAAA,EAAE,OAAO;CAChE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/E,CAAC,CAAC,CAAC,SAAS,mCAAmC;AAC/C,MAAM,2CAAyDA,IAAAA,EAAE,OAAO;CACtE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnF,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,MAAM,uC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AAS;CACvG,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,YAAYA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CACnE,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/G,qBAAqBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrH,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAE3D,MAAa,mBAAmBC,eAAAA,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-project.d.ts
4
+ declare const SanityGetProjectInput: z.ZodTypeAny;
5
+ declare const SanityGetProjectOutput: z.ZodTypeAny;
6
+ declare const sanityGetProject: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { sanityGetProject };
9
+ //# sourceMappingURL=get-project.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-project.d.cts","names":[],"sources":["../../src/actions/get-project.ts"],"mappings":";;;cAIa,qBAAA,EAAuB,CAAA,CAAE,UAEqB;AAAA,cAmB9C,sBAAA,EAAwB,CAAA,CAAE,UAaqB;AAAA,cAE/C,gBAAA,gCAAgB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-project.d.ts
4
+ declare const SanityGetProjectInput: z.ZodTypeAny;
5
+ declare const SanityGetProjectOutput: z.ZodTypeAny;
6
+ declare const sanityGetProject: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { sanityGetProject };
9
+ //# sourceMappingURL=get-project.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-project.d.mts","names":[],"sources":["../../src/actions/get-project.ts"],"mappings":";;;cAIa,qBAAA,EAAuB,CAAA,CAAE,UAEqB;AAAA,cAmB9C,sBAAA,EAAwB,CAAA,CAAE,UAaqB;AAAA,cAE/C,gBAAA,gCAAgB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,44 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/get-project.ts
4
+ const SanityGetProjectInput = z.object({ project_id: z.string().describe("The unique ID of the project to retrieve.") }).describe("Request parameters for retrieving a project.");
5
+ const SanityGetProject_ProjectPlanSchema = z.object({
6
+ name: z.string().describe("The name of the plan.").nullable().optional(),
7
+ tier: z.string().describe("The tier level of the plan.").nullable().optional()
8
+ }).describe("Plan information for the project.");
9
+ const SanityGetProject_ProjectMemberRoleSchema = z.object({
10
+ name: z.string().describe("The name of the role.").nullable().optional(),
11
+ title: z.string().describe("The display title of the role.").nullable().optional()
12
+ }).describe("Role information for a project member.");
13
+ const SanityGetProject_ProjectMemberSchema = z.object({
14
+ id: z.string().describe("The unique identifier of the member.").nullable().optional(),
15
+ role: z.string().describe("The primary role name of the member (deprecated, use roles array).").nullable().optional(),
16
+ roles: z.array(SanityGetProject_ProjectMemberRoleSchema).describe("List of roles assigned to this member.").nullable().optional(),
17
+ isRobot: z.boolean().describe("Whether this member is a robot/service account.").nullable().optional(),
18
+ createdAt: z.string().describe("ISO 8601 timestamp when the member was added to the project.").nullable().optional()
19
+ }).describe("A member of the project with their role information.");
20
+ const SanityGetProject_ProjectMetadataSchema = z.object({ color: z.string().describe("Color code associated with the project.").nullable().optional() }).describe("Metadata associated with the project.");
21
+ const sanityGetProject = action("SANITY_GET_PROJECT", {
22
+ slug: "sanity-get-project",
23
+ name: "Get Project",
24
+ description: "Retrieve full details for a specific Sanity project by its ID. Returns comprehensive project information including display name, organization, studio host, and timestamps. Use this action when you need to fetch complete project details or verify project configuration. Optional parameters allow including member lists and feature flags in the response.",
25
+ input: SanityGetProjectInput,
26
+ output: z.object({
27
+ id: z.string().describe("The unique identifier of the project."),
28
+ plan: SanityGetProject_ProjectPlanSchema.nullable().optional(),
29
+ members: z.array(SanityGetProject_ProjectMemberSchema).describe("List of project members with their roles (included when includeMembers is true).").nullable().optional(),
30
+ features: z.array(z.string()).describe("List of feature names enabled for the project (included when includeFeatures is true).").nullable().optional(),
31
+ metadata: SanityGetProject_ProjectMetadataSchema.nullable().optional(),
32
+ createdAt: z.string().describe("ISO 8601 timestamp when the project was created.").nullable().optional(),
33
+ isBlocked: z.boolean().describe("Whether the project is blocked.").nullable().optional(),
34
+ isDisabled: z.boolean().describe("Whether the project is disabled.").nullable().optional(),
35
+ studioHost: z.string().describe("The custom studio host URL for the project.").nullable().optional(),
36
+ displayName: z.string().describe("The display name of the project."),
37
+ organizationId: z.string().describe("The ID of the organization this project belongs to.").nullable().optional(),
38
+ activityFeedEnabled: z.boolean().describe("Whether activity feed is enabled for the project.").nullable().optional()
39
+ }).describe("Response model for the get project operation.")
40
+ });
41
+ //#endregion
42
+ export { sanityGetProject };
43
+
44
+ //# sourceMappingURL=get-project.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-project.mjs","names":[],"sources":["../../src/actions/get-project.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityGetProjectInput: z.ZodTypeAny = z.object({\n project_id: z.string().describe(\"The unique ID of the project to retrieve.\"),\n}).describe(\"Request parameters for retrieving a project.\");\nconst SanityGetProject_ProjectPlanSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"The name of the plan.\").nullable().optional(),\n tier: z.string().describe(\"The tier level of the plan.\").nullable().optional(),\n}).describe(\"Plan information for the project.\");\nconst SanityGetProject_ProjectMemberRoleSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"The name of the role.\").nullable().optional(),\n title: z.string().describe(\"The display title of the role.\").nullable().optional(),\n}).describe(\"Role information for a project member.\");\nconst SanityGetProject_ProjectMemberSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier of the member.\").nullable().optional(),\n role: z.string().describe(\"The primary role name of the member (deprecated, use roles array).\").nullable().optional(),\n roles: z.array(SanityGetProject_ProjectMemberRoleSchema).describe(\"List of roles assigned to this member.\").nullable().optional(),\n isRobot: z.boolean().describe(\"Whether this member is a robot/service account.\").nullable().optional(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the member was added to the project.\").nullable().optional(),\n}).describe(\"A member of the project with their role information.\");\nconst SanityGetProject_ProjectMetadataSchema: z.ZodTypeAny = z.object({\n color: z.string().describe(\"Color code associated with the project.\").nullable().optional(),\n}).describe(\"Metadata associated with the project.\");\nexport const SanityGetProjectOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier of the project.\"),\n plan: SanityGetProject_ProjectPlanSchema.nullable().optional(),\n members: z.array(SanityGetProject_ProjectMemberSchema).describe(\"List of project members with their roles (included when includeMembers is true).\").nullable().optional(),\n features: z.array(z.string()).describe(\"List of feature names enabled for the project (included when includeFeatures is true).\").nullable().optional(),\n metadata: SanityGetProject_ProjectMetadataSchema.nullable().optional(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the project was created.\").nullable().optional(),\n isBlocked: z.boolean().describe(\"Whether the project is blocked.\").nullable().optional(),\n isDisabled: z.boolean().describe(\"Whether the project is disabled.\").nullable().optional(),\n studioHost: z.string().describe(\"The custom studio host URL for the project.\").nullable().optional(),\n displayName: z.string().describe(\"The display name of the project.\"),\n organizationId: z.string().describe(\"The ID of the organization this project belongs to.\").nullable().optional(),\n activityFeedEnabled: z.boolean().describe(\"Whether activity feed is enabled for the project.\").nullable().optional(),\n}).describe(\"Response model for the get project operation.\");\n\nexport const sanityGetProject = action(\"SANITY_GET_PROJECT\", {\n slug: \"sanity-get-project\",\n name: \"Get Project\",\n description: \"Retrieve full details for a specific Sanity project by its ID. Returns comprehensive project information including display name, organization, studio host, and timestamps. Use this action when you need to fetch complete project details or verify project configuration. Optional parameters allow including member lists and feature flags in the response.\",\n input: SanityGetProjectInput,\n output: SanityGetProjectOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAsC,EAAE,OAAO,EAC1D,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,EAC7E,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAM,qCAAmD,EAAE,OAAO;CAChE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/E,CAAC,CAAC,CAAC,SAAS,mCAAmC;AAC/C,MAAM,2CAAyD,EAAE,OAAO;CACtE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnF,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,MAAM,uCAAqD,EAAE,OAAO;CAClE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,s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Y,EAAE,QAAQ,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;EACnE,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/G,qBAAqB,EAAE,QAAQ,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrH,CAAC,CAAC,CAAC,SAAS,+CAOF;AACV,CAAC"}
@@ -0,0 +1,46 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/get-robots.ts
4
+ const SanityGetRobotsInput = zod.z.object({
5
+ limit: zod.z.number().int().default(100).describe("The number of items to return per page. Defaults to 100.").optional(),
6
+ next_cursor: zod.z.string().describe("The cursor for pagination. Use the nextCursor from the previous response to get the next page.").optional(),
7
+ resource_id: zod.z.string().describe("The resource ID to scope the access request to. Must be a valid ID for the resource type."),
8
+ resource_type: zod.z.enum([
9
+ "organization",
10
+ "project",
11
+ "media-library",
12
+ "canvas",
13
+ "dashboard",
14
+ "view"
15
+ ]).describe("The resource type to scope the access requests to. One of: organization, project, media-library, canvas, dashboard, view."),
16
+ include_children: zod.z.boolean().describe("Whether to include children resources in the response. Only applies to organization resources.").optional()
17
+ }).describe("Request model for retrieving robots with access to a resource.");
18
+ const SanityGetRobots_RobotMembershipSchema = zod.z.object({
19
+ addedAt: zod.z.string().describe("ISO 8601 timestamp when the membership was added.").nullable().optional(),
20
+ roleNames: zod.z.array(zod.z.string()).describe("The names of the roles assigned for this resource."),
21
+ resourceId: zod.z.string().describe("The ID of the resource this membership applies to."),
22
+ resourceType: zod.z.string().describe("The type of resource this membership applies to.")
23
+ }).describe("Schema for a robot's membership/role assignment.");
24
+ const SanityGetRobots_RobotSchema = zod.z.object({
25
+ id: zod.z.string().describe("The unique identifier of the robot."),
26
+ label: zod.z.string().describe("The display name/label of the robot."),
27
+ tokenId: zod.z.string().describe("The token ID associated with this robot.").nullable().optional(),
28
+ createdAt: zod.z.string().describe("ISO 8601 timestamp when the robot was created.").nullable().optional(),
29
+ expiresAt: zod.z.string().describe("ISO 8601 timestamp when the robot expires.").nullable().optional(),
30
+ memberships: zod.z.array(SanityGetRobots_RobotMembershipSchema).describe("List of memberships/role assignments for this robot.")
31
+ }).describe("Schema for a robot entity.");
32
+ const SanityGetRobotsOutput = zod.z.object({
33
+ data: zod.z.array(SanityGetRobots_RobotSchema).describe("List of robots with access to the resource."),
34
+ next_cursor: zod.z.string().describe("Cursor for the next page of results. Null if there are no more results.").nullable().optional()
35
+ }).describe("Response model for retrieving robots with access to a resource.\nReturns a paginated list of robots.");
36
+ const sanityGetRobots = require_action.action("SANITY_GET_ROBOTS", {
37
+ slug: "sanity-get-robots",
38
+ name: "Get Robots",
39
+ description: "Tool to get robots with access to a resource. Use when you need to retrieve a list of robots (service accounts) that have been granted access to a specific resource along with their assigned roles. This action supports pagination through the next_cursor parameter.",
40
+ input: SanityGetRobotsInput,
41
+ output: SanityGetRobotsOutput
42
+ });
43
+ //#endregion
44
+ exports.sanityGetRobots = sanityGetRobots;
45
+
46
+ //# sourceMappingURL=get-robots.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-robots.cjs","names":["z","action"],"sources":["../../src/actions/get-robots.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityGetRobotsInput: z.ZodTypeAny = z.object({\n limit: z.number().int().default(100).describe(\"The number of items to return per page. Defaults to 100.\").optional(),\n next_cursor: z.string().describe(\"The cursor for pagination. Use the nextCursor from the previous response to get the next page.\").optional(),\n resource_id: z.string().describe(\"The resource ID to scope the access request to. Must be a valid ID for the resource type.\"),\n resource_type: z.enum([\"organization\", \"project\", \"media-library\", \"canvas\", \"dashboard\", \"view\"]).describe(\"The resource type to scope the access requests to. One of: organization, project, media-library, canvas, dashboard, view.\"),\n include_children: z.boolean().describe(\"Whether to include children resources in the response. Only applies to organization resources.\").optional(),\n}).describe(\"Request model for retrieving robots with access to a resource.\");\nconst SanityGetRobots_RobotMembershipSchema: z.ZodTypeAny = z.object({\n addedAt: z.string().describe(\"ISO 8601 timestamp when the membership was added.\").nullable().optional(),\n roleNames: z.array(z.string()).describe(\"The names of the roles assigned for this resource.\"),\n resourceId: z.string().describe(\"The ID of the resource this membership applies to.\"),\n resourceType: z.string().describe(\"The type of resource this membership applies to.\"),\n}).describe(\"Schema for a robot's membership/role assignment.\");\nconst SanityGetRobots_RobotSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier of the robot.\"),\n label: z.string().describe(\"The display name/label of the robot.\"),\n tokenId: z.string().describe(\"The token ID associated with this robot.\").nullable().optional(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the robot was created.\").nullable().optional(),\n expiresAt: z.string().describe(\"ISO 8601 timestamp when the robot expires.\").nullable().optional(),\n memberships: z.array(SanityGetRobots_RobotMembershipSchema).describe(\"List of memberships/role assignments for this robot.\"),\n}).describe(\"Schema for a robot entity.\");\nexport const SanityGetRobotsOutput: z.ZodTypeAny = z.object({\n data: z.array(SanityGetRobots_RobotSchema).describe(\"List of robots with access to the resource.\"),\n next_cursor: z.string().describe(\"Cursor for the next page of results. Null if there are no more results.\").nullable().optional(),\n}).describe(\"Response model for retrieving robots with access to a resource.\\nReturns a paginated list of robots.\");\n\nexport const sanityGetRobots = action(\"SANITY_GET_ROBOTS\", {\n slug: \"sanity-get-robots\",\n name: \"Get Robots\",\n description: \"Tool to get robots with access to a resource. Use when you need to retrieve a list of robots (service accounts) that have been granted access to a specific resource along with their assigned roles. This action supports pagination through the next_cursor parameter.\",\n input: SanityGetRobotsInput,\n output: SanityGetRobotsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uBAAq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AC,SAAS;CACrG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,aAAaA,IAAAA,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,sDAAsD;AAC7H,CAAC,CAAC,CAAC,SAAS,4BAA4B;AACxC,MAAa,wBAAsCA,IAAAA,EAAE,OAAO;CAC1D,MAAMA,IAAAA,EAAE,MAAM,2BAA2B,CAAC,CAAC,SAAS,6CAA6C;CACjG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClI,CAAC,CAAC,CAAC,SAAS,sGAAsG;AAElH,MAAa,kBAAkBC,eAAAA,OAAO,qBAAqB;CACzD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-robots.d.ts
4
+ declare const SanityGetRobotsInput: z.ZodTypeAny;
5
+ declare const SanityGetRobotsOutput: z.ZodTypeAny;
6
+ declare const sanityGetRobots: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { sanityGetRobots };
9
+ //# sourceMappingURL=get-robots.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-robots.d.cts","names":[],"sources":["../../src/actions/get-robots.ts"],"mappings":";;;cAIa,oBAAA,EAAsB,CAAA,CAAE,UAMwC;AAAA,cAehE,qBAAA,EAAuB,CAAA,CAAE,UAG6E;AAAA,cAEtG,eAAA,gCAAe,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-robots.d.ts
4
+ declare const SanityGetRobotsInput: z.ZodTypeAny;
5
+ declare const SanityGetRobotsOutput: z.ZodTypeAny;
6
+ declare const sanityGetRobots: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { sanityGetRobots };
9
+ //# sourceMappingURL=get-robots.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-robots.d.mts","names":[],"sources":["../../src/actions/get-robots.ts"],"mappings":";;;cAIa,oBAAA,EAAsB,CAAA,CAAE,UAMwC;AAAA,cAehE,qBAAA,EAAuB,CAAA,CAAE,UAG6E;AAAA,cAEtG,eAAA,gCAAe,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,45 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/get-robots.ts
4
+ const SanityGetRobotsInput = z.object({
5
+ limit: z.number().int().default(100).describe("The number of items to return per page. Defaults to 100.").optional(),
6
+ next_cursor: z.string().describe("The cursor for pagination. Use the nextCursor from the previous response to get the next page.").optional(),
7
+ resource_id: z.string().describe("The resource ID to scope the access request to. Must be a valid ID for the resource type."),
8
+ resource_type: z.enum([
9
+ "organization",
10
+ "project",
11
+ "media-library",
12
+ "canvas",
13
+ "dashboard",
14
+ "view"
15
+ ]).describe("The resource type to scope the access requests to. One of: organization, project, media-library, canvas, dashboard, view."),
16
+ include_children: z.boolean().describe("Whether to include children resources in the response. Only applies to organization resources.").optional()
17
+ }).describe("Request model for retrieving robots with access to a resource.");
18
+ const SanityGetRobots_RobotMembershipSchema = z.object({
19
+ addedAt: z.string().describe("ISO 8601 timestamp when the membership was added.").nullable().optional(),
20
+ roleNames: z.array(z.string()).describe("The names of the roles assigned for this resource."),
21
+ resourceId: z.string().describe("The ID of the resource this membership applies to."),
22
+ resourceType: z.string().describe("The type of resource this membership applies to.")
23
+ }).describe("Schema for a robot's membership/role assignment.");
24
+ const SanityGetRobots_RobotSchema = z.object({
25
+ id: z.string().describe("The unique identifier of the robot."),
26
+ label: z.string().describe("The display name/label of the robot."),
27
+ tokenId: z.string().describe("The token ID associated with this robot.").nullable().optional(),
28
+ createdAt: z.string().describe("ISO 8601 timestamp when the robot was created.").nullable().optional(),
29
+ expiresAt: z.string().describe("ISO 8601 timestamp when the robot expires.").nullable().optional(),
30
+ memberships: z.array(SanityGetRobots_RobotMembershipSchema).describe("List of memberships/role assignments for this robot.")
31
+ }).describe("Schema for a robot entity.");
32
+ const sanityGetRobots = action("SANITY_GET_ROBOTS", {
33
+ slug: "sanity-get-robots",
34
+ name: "Get Robots",
35
+ description: "Tool to get robots with access to a resource. Use when you need to retrieve a list of robots (service accounts) that have been granted access to a specific resource along with their assigned roles. This action supports pagination through the next_cursor parameter.",
36
+ input: SanityGetRobotsInput,
37
+ output: z.object({
38
+ data: z.array(SanityGetRobots_RobotSchema).describe("List of robots with access to the resource."),
39
+ next_cursor: z.string().describe("Cursor for the next page of results. Null if there are no more results.").nullable().optional()
40
+ }).describe("Response model for retrieving robots with access to a resource.\nReturns a paginated list of robots.")
41
+ });
42
+ //#endregion
43
+ export { sanityGetRobots };
44
+
45
+ //# sourceMappingURL=get-robots.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-robots.mjs","names":[],"sources":["../../src/actions/get-robots.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityGetRobotsInput: z.ZodTypeAny = z.object({\n limit: z.number().int().default(100).describe(\"The number of items to return per page. Defaults to 100.\").optional(),\n next_cursor: z.string().describe(\"The cursor for pagination. Use the nextCursor from the previous response to get the next page.\").optional(),\n resource_id: z.string().describe(\"The resource ID to scope the access request to. Must be a valid ID for the resource type.\"),\n resource_type: z.enum([\"organization\", \"project\", \"media-library\", \"canvas\", \"dashboard\", \"view\"]).describe(\"The resource type to scope the access requests to. One of: organization, project, media-library, canvas, dashboard, view.\"),\n include_children: z.boolean().describe(\"Whether to include children resources in the response. Only applies to organization resources.\").optional(),\n}).describe(\"Request model for retrieving robots with access to a resource.\");\nconst SanityGetRobots_RobotMembershipSchema: z.ZodTypeAny = z.object({\n addedAt: z.string().describe(\"ISO 8601 timestamp when the membership was added.\").nullable().optional(),\n roleNames: z.array(z.string()).describe(\"The names of the roles assigned for this resource.\"),\n resourceId: z.string().describe(\"The ID of the resource this membership applies to.\"),\n resourceType: z.string().describe(\"The type of resource this membership applies to.\"),\n}).describe(\"Schema for a robot's membership/role assignment.\");\nconst SanityGetRobots_RobotSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier of the robot.\"),\n label: z.string().describe(\"The display name/label of the robot.\"),\n tokenId: z.string().describe(\"The token ID associated with this robot.\").nullable().optional(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the robot was created.\").nullable().optional(),\n expiresAt: z.string().describe(\"ISO 8601 timestamp when the robot expires.\").nullable().optional(),\n memberships: z.array(SanityGetRobots_RobotMembershipSchema).describe(\"List of memberships/role assignments for this robot.\"),\n}).describe(\"Schema for a robot entity.\");\nexport const SanityGetRobotsOutput: z.ZodTypeAny = z.object({\n data: z.array(SanityGetRobots_RobotSchema).describe(\"List of robots with access to the resource.\"),\n next_cursor: z.string().describe(\"Cursor for the next page of results. Null if there are no more results.\").nullable().optional(),\n}).describe(\"Response model for retrieving robots with access to a resource.\\nReturns a paginated list of robots.\");\n\nexport const sanityGetRobots = action(\"SANITY_GET_ROBOTS\", {\n slug: \"sanity-get-robots\",\n name: \"Get Robots\",\n description: \"Tool to get robots with access to a resource. Use when you need to retrieve a list of robots (service accounts) that have been granted access to a specific resource along with their assigned roles. This action supports pagination through the next_cursor parameter.\",\n input: SanityGetRobotsInput,\n output: SanityGetRobotsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uBAAqC,EAAE,OAAO;CACzD,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,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MxC,MAAa,kBAAkB,OAAO,qBAAqB;CACzD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAViD,EAAE,OAAO;EAC1D,MAAM,EAAE,MAAM,2BAA2B,CAAC,CAAC,SAAS,6CAA6C;EACjG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClI,CAAC,CAAC,CAAC,SAAS,sGAOF;AACV,CAAC"}
@@ -0,0 +1,43 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/get-role.ts
4
+ const SanityGetRoleInput = zod.z.object({
5
+ roleName: zod.z.string().describe("The name of the role to retrieve."),
6
+ resourceId: zod.z.string().describe("The resource ID to scope the access request to. Must be a valid ID for the resource type."),
7
+ resourceType: zod.z.enum([
8
+ "organization",
9
+ "project",
10
+ "media-library",
11
+ "canvas",
12
+ "dashboard",
13
+ "view"
14
+ ]).describe("The resource type to scope the access requests to. Must be one of: organization, project, media-library, canvas, dashboard, view.")
15
+ }).describe("Request model for retrieving a specific role.");
16
+ const SanityGetRole_PermissionSchema = zod.z.object({
17
+ name: zod.z.string().describe("Name of the permission action").nullable().optional(),
18
+ type: zod.z.string().describe("Type of the permission").nullable().optional(),
19
+ action: zod.z.union([zod.z.string(), zod.z.record(zod.z.string(), zod.z.unknown())]).nullable().optional(),
20
+ params: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Parameters for the permission").nullable().optional()
21
+ }).describe("Represents a single permission within a role.");
22
+ const SanityGetRoleOutput = zod.z.object({
23
+ name: zod.z.string().describe("The unique name identifier of the role"),
24
+ title: zod.z.string().describe("Display title of the role"),
25
+ isCustom: zod.z.boolean().describe("Whether this is a custom role").nullable().optional(),
26
+ resourceId: zod.z.string().describe("The ID of the resource"),
27
+ description: zod.z.string().describe("Description of the role").nullable().optional(),
28
+ permissions: zod.z.array(SanityGetRole_PermissionSchema).describe("List of permissions"),
29
+ resourceType: zod.z.string().describe("The type of resource"),
30
+ appliesToUsers: zod.z.boolean().describe("Whether applies to users"),
31
+ appliesToRobots: zod.z.boolean().describe("Whether applies to robots")
32
+ }).describe("Response model for the get role operation.\nThe API returns the role directly without a data wrapper.");
33
+ const sanityGetRole = require_action.action("SANITY_GET_ROLE", {
34
+ slug: "sanity-get-role",
35
+ name: "Get Role",
36
+ description: "Retrieve a specific role for a given resource type and resource ID. Use this action when you need to fetch details about a role including its permissions, title, description, and whether it applies to users or robots. The role must exist for the specified resource.",
37
+ input: SanityGetRoleInput,
38
+ output: SanityGetRoleOutput
39
+ });
40
+ //#endregion
41
+ exports.sanityGetRole = sanityGetRole;
42
+
43
+ //# sourceMappingURL=get-role.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-role.cjs","names":["z","action"],"sources":["../../src/actions/get-role.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityGetRoleInput: z.ZodTypeAny = z.object({\n roleName: z.string().describe(\"The name of the role to retrieve.\"),\n resourceId: z.string().describe(\"The resource ID to scope the access request to. Must be a valid ID for the resource type.\"),\n resourceType: z.enum([\"organization\", \"project\", \"media-library\", \"canvas\", \"dashboard\", \"view\"]).describe(\"The resource type to scope the access requests to. Must be one of: organization, project, media-library, canvas, dashboard, view.\"),\n}).describe(\"Request model for retrieving a specific role.\");\nconst SanityGetRole_PermissionSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the permission action\").nullable().optional(),\n type: z.string().describe(\"Type of the permission\").nullable().optional(),\n action: z.union([z.string(), z.record(z.string(), z.unknown())]).nullable().optional(),\n params: z.record(z.string(), z.unknown()).describe(\"Parameters for the permission\").nullable().optional(),\n}).describe(\"Represents a single permission within a role.\");\nexport const SanityGetRoleOutput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"The unique name identifier of the role\"),\n title: z.string().describe(\"Display title of the role\"),\n isCustom: z.boolean().describe(\"Whether this is a custom role\").nullable().optional(),\n resourceId: z.string().describe(\"The ID of the resource\"),\n description: z.string().describe(\"Description of the role\").nullable().optional(),\n permissions: z.array(SanityGetRole_PermissionSchema).describe(\"List of permissions\"),\n resourceType: z.string().describe(\"The type of resource\"),\n appliesToUsers: z.boolean().describe(\"Whether applies to users\"),\n appliesToRobots: z.boolean().describe(\"Whether applies to robots\"),\n}).describe(\"Response model for the get role operation.\\nThe API returns the role directly without a data wrapper.\");\n\nexport const sanityGetRole = action(\"SANITY_GET_ROLE\", {\n slug: \"sanity-get-role\",\n name: \"Get Role\",\n description: \"Retrieve a specific role for a given resource type and resource ID. Use this action when you need to fetch details about a role including its permissions, title, description, and whether it applies to users or robots. The role must exist for the specified resource.\",\n input: SanityGetRoleInput,\n output: SanityGetRoleOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qBAAmCA,IAAAA,EAAE,OAAO;CACvD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;CACjE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2FAA2F;CAC3H,cAAcA,IAAAA,EAAE,KAAK;EAAC;EAAgB;EAAW;EAAiB;EAAU;EAAa;CAAM,CAAC,CAAC,CAAC,SAAS,mIAAmI;AAChP,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAC3D,MAAM,iCAA+CA,IAAAA,EAAE,OAAO;CAC5D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxE,QAAQA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAC3D,MAAa,sBAAoCA,IAAAA,EAAE,OAAO;CACxD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;CAClE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CACtD,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;CACxD,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,aAAaA,IAAAA,EAAE,MAAM,8BAA8B,CAAC,CAAC,SAAS,qBAAqB;CACnF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;CACxD,gBAAgBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,0BAA0B;CAC/D,iBAAiBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2BAA2B;AACnE,CAAC,CAAC,CAAC,SAAS,uGAAuG;AAEnH,MAAa,gBAAgBC,eAAAA,OAAO,mBAAmB;CACrD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-role.d.ts
4
+ declare const SanityGetRoleInput: z.ZodTypeAny;
5
+ declare const SanityGetRoleOutput: z.ZodTypeAny;
6
+ declare const sanityGetRole: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { sanityGetRole };
9
+ //# sourceMappingURL=get-role.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-role.d.cts","names":[],"sources":["../../src/actions/get-role.ts"],"mappings":";;;cAIa,kBAAA,EAAoB,CAAA,CAAE,UAIyB;AAAA,cAO/C,mBAAA,EAAqB,CAAA,CAAE,UAUgF;AAAA,cAEvG,aAAA,gCAAa,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-role.d.ts
4
+ declare const SanityGetRoleInput: z.ZodTypeAny;
5
+ declare const SanityGetRoleOutput: z.ZodTypeAny;
6
+ declare const sanityGetRole: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { sanityGetRole };
9
+ //# sourceMappingURL=get-role.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-role.d.mts","names":[],"sources":["../../src/actions/get-role.ts"],"mappings":";;;cAIa,kBAAA,EAAoB,CAAA,CAAE,UAIyB;AAAA,cAO/C,mBAAA,EAAqB,CAAA,CAAE,UAUgF;AAAA,cAEvG,aAAA,gCAAa,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,42 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/get-role.ts
4
+ const SanityGetRoleInput = z.object({
5
+ roleName: z.string().describe("The name of the role to retrieve."),
6
+ resourceId: z.string().describe("The resource ID to scope the access request to. Must be a valid ID for the resource type."),
7
+ resourceType: z.enum([
8
+ "organization",
9
+ "project",
10
+ "media-library",
11
+ "canvas",
12
+ "dashboard",
13
+ "view"
14
+ ]).describe("The resource type to scope the access requests to. Must be one of: organization, project, media-library, canvas, dashboard, view.")
15
+ }).describe("Request model for retrieving a specific role.");
16
+ const SanityGetRole_PermissionSchema = z.object({
17
+ name: z.string().describe("Name of the permission action").nullable().optional(),
18
+ type: z.string().describe("Type of the permission").nullable().optional(),
19
+ action: z.union([z.string(), z.record(z.string(), z.unknown())]).nullable().optional(),
20
+ params: z.record(z.string(), z.unknown()).describe("Parameters for the permission").nullable().optional()
21
+ }).describe("Represents a single permission within a role.");
22
+ const sanityGetRole = action("SANITY_GET_ROLE", {
23
+ slug: "sanity-get-role",
24
+ name: "Get Role",
25
+ description: "Retrieve a specific role for a given resource type and resource ID. Use this action when you need to fetch details about a role including its permissions, title, description, and whether it applies to users or robots. The role must exist for the specified resource.",
26
+ input: SanityGetRoleInput,
27
+ output: z.object({
28
+ name: z.string().describe("The unique name identifier of the role"),
29
+ title: z.string().describe("Display title of the role"),
30
+ isCustom: z.boolean().describe("Whether this is a custom role").nullable().optional(),
31
+ resourceId: z.string().describe("The ID of the resource"),
32
+ description: z.string().describe("Description of the role").nullable().optional(),
33
+ permissions: z.array(SanityGetRole_PermissionSchema).describe("List of permissions"),
34
+ resourceType: z.string().describe("The type of resource"),
35
+ appliesToUsers: z.boolean().describe("Whether applies to users"),
36
+ appliesToRobots: z.boolean().describe("Whether applies to robots")
37
+ }).describe("Response model for the get role operation.\nThe API returns the role directly without a data wrapper.")
38
+ });
39
+ //#endregion
40
+ export { sanityGetRole };
41
+
42
+ //# sourceMappingURL=get-role.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-role.mjs","names":[],"sources":["../../src/actions/get-role.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityGetRoleInput: z.ZodTypeAny = z.object({\n roleName: z.string().describe(\"The name of the role to retrieve.\"),\n resourceId: z.string().describe(\"The resource ID to scope the access request to. Must be a valid ID for the resource type.\"),\n resourceType: z.enum([\"organization\", \"project\", \"media-library\", \"canvas\", \"dashboard\", \"view\"]).describe(\"The resource type to scope the access requests to. Must be one of: organization, project, media-library, canvas, dashboard, view.\"),\n}).describe(\"Request model for retrieving a specific role.\");\nconst SanityGetRole_PermissionSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the permission action\").nullable().optional(),\n type: z.string().describe(\"Type of the permission\").nullable().optional(),\n action: z.union([z.string(), z.record(z.string(), z.unknown())]).nullable().optional(),\n params: z.record(z.string(), z.unknown()).describe(\"Parameters for the permission\").nullable().optional(),\n}).describe(\"Represents a single permission within a role.\");\nexport const SanityGetRoleOutput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"The unique name identifier of the role\"),\n title: z.string().describe(\"Display title of the role\"),\n isCustom: z.boolean().describe(\"Whether this is a custom role\").nullable().optional(),\n resourceId: z.string().describe(\"The ID of the resource\"),\n description: z.string().describe(\"Description of the role\").nullable().optional(),\n permissions: z.array(SanityGetRole_PermissionSchema).describe(\"List of permissions\"),\n resourceType: z.string().describe(\"The type of resource\"),\n appliesToUsers: z.boolean().describe(\"Whether applies to users\"),\n appliesToRobots: z.boolean().describe(\"Whether applies to robots\"),\n}).describe(\"Response model for the get role operation.\\nThe API returns the role directly without a data wrapper.\");\n\nexport const sanityGetRole = action(\"SANITY_GET_ROLE\", {\n slug: \"sanity-get-role\",\n name: \"Get Role\",\n description: \"Retrieve a specific role for a given resource type and resource ID. Use this action when you need to fetch details about a role including its permissions, title, description, and whether it applies to users or robots. The role must exist for the specified resource.\",\n input: SanityGetRoleInput,\n output: SanityGetRoleOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qBAAmC,EAAE,OAAO;CACvD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;CACjE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2FAA2F;CAC3H,cAAc,EAAE,KAAK;EAAC;EAAgB;EAAW;EAAiB;EAAU;EAAa;CAAM,CAAC,CAAC,CAAC,SAAS,mIAAmI;AAChP,CAAC,CAAC,CAAC,SAAS,+CAA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,0 +1,35 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/get-users.ts
4
+ const SanityGetUsersInput = zod.z.object({
5
+ limit: zod.z.number().int().default(100).describe("Number of items to return per page. Defaults to 100. Maximum value is 100.").optional(),
6
+ next_cursor: zod.z.string().describe("Cursor for pagination. Use the nextCursor from the previous response to get the next page of results.").optional(),
7
+ resource_id: zod.z.string().describe("The resource ID to scope the access request to. Must be a valid ID for the resource type (e.g., project ID or organization ID)."),
8
+ resource_type: zod.z.enum(["organization", "project"]).describe("The resource to scope access requests to. Use 'organization' for organization-level access or 'project' for project-level access.")
9
+ }).describe("Request parameters for listing users of a resource.");
10
+ const SanityGetUsers_UserRoleSchema = zod.z.object({
11
+ role_id: zod.z.string().describe("The unique identifier of the role.").nullable().optional(),
12
+ role_name: zod.z.string().describe("The display name of the role.").nullable().optional()
13
+ }).describe("Role assigned to a user.");
14
+ const SanityGetUsers_ResourceUserSchema = zod.z.object({
15
+ name: zod.z.string().describe("The display name of the user.").nullable().optional(),
16
+ email: zod.z.string().describe("The email address of the user.").nullable().optional(),
17
+ roles: zod.z.array(SanityGetUsers_UserRoleSchema).describe("List of roles assigned to this user.").nullable().optional(),
18
+ user_id: zod.z.string().describe("The unique identifier of the user.").nullable().optional()
19
+ }).describe("A user with their assigned roles.");
20
+ const SanityGetUsersOutput = zod.z.object({
21
+ total: zod.z.number().int().describe("Total number of users for the resource.").nullable().optional(),
22
+ users: zod.z.array(SanityGetUsers_ResourceUserSchema).describe("List of users with their assigned roles.").nullable().optional(),
23
+ next_cursor: zod.z.string().describe("Cursor for pagination. Present when there are more results available.").nullable().optional()
24
+ }).describe("Response model for listing users of a resource.");
25
+ const sanityGetUsers = require_action.action("SANITY_GET_USERS", {
26
+ slug: "sanity-get-users",
27
+ name: "List Resource Users",
28
+ description: "List all users of a resource and their assigned roles. Use when you need to retrieve user information and role assignments for a specific project or organization. Supports pagination via cursor.",
29
+ input: SanityGetUsersInput,
30
+ output: SanityGetUsersOutput
31
+ });
32
+ //#endregion
33
+ exports.sanityGetUsers = sanityGetUsers;
34
+
35
+ //# sourceMappingURL=get-users.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-users.cjs","names":["z","action"],"sources":["../../src/actions/get-users.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityGetUsersInput: z.ZodTypeAny = z.object({\n limit: z.number().int().default(100).describe(\"Number of items to return per page. Defaults to 100. Maximum value is 100.\").optional(),\n next_cursor: z.string().describe(\"Cursor for pagination. Use the nextCursor from the previous response to get the next page of results.\").optional(),\n resource_id: z.string().describe(\"The resource ID to scope the access request to. Must be a valid ID for the resource type (e.g., project ID or organization ID).\"),\n resource_type: z.enum([\"organization\", \"project\"]).describe(\"The resource to scope access requests to. Use 'organization' for organization-level access or 'project' for project-level access.\"),\n}).describe(\"Request parameters for listing users of a resource.\");\nconst SanityGetUsers_UserRoleSchema: z.ZodTypeAny = z.object({\n role_id: z.string().describe(\"The unique identifier of the role.\").nullable().optional(),\n role_name: z.string().describe(\"The display name of the role.\").nullable().optional(),\n}).describe(\"Role assigned to a user.\");\nconst SanityGetUsers_ResourceUserSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"The display name of the user.\").nullable().optional(),\n email: z.string().describe(\"The email address of the user.\").nullable().optional(),\n roles: z.array(SanityGetUsers_UserRoleSchema).describe(\"List of roles assigned to this user.\").nullable().optional(),\n user_id: z.string().describe(\"The unique identifier of the user.\").nullable().optional(),\n}).describe(\"A user with their assigned roles.\");\nexport const SanityGetUsersOutput: z.ZodTypeAny = z.object({\n total: z.number().int().describe(\"Total number of users for the resource.\").nullable().optional(),\n users: z.array(SanityGetUsers_ResourceUserSchema).describe(\"List of users with their assigned roles.\").nullable().optional(),\n next_cursor: z.string().describe(\"Cursor for pagination. Present when there are more results available.\").nullable().optional(),\n}).describe(\"Response model for listing users of a resource.\");\n\nexport const sanityGetUsers = action(\"SANITY_GET_USERS\", {\n slug: \"sanity-get-users\",\n name: \"List Resource Users\",\n description: \"List all users of a resource and their assigned roles. Use when you need to retrieve user information and role assignments for a specific project or organization. Supports pagination via cursor.\",\n input: SanityGetUsersInput,\n output: SanityGetUsersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sBAAoCA,IAAAA,EAAE,OAAO;CACxD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;CACrI,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS;CACnJ,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iIAAiI;CAClK,eAAeA,IAAAA,EAAE,KAAK,CAAC,gBAAgB,SAAS,CAAC,CAAC,CAAC,SAAS,mIAAmI;AACjM,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAM,gCAA8CA,IAAAA,EAAE,OAAO;CAC3D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtF,CAAC,CAAC,CAAC,SAAS,0BAA0B;AACtC,MAAM,oCAAkDA,IAAAA,EAAE,OAAO;CAC/D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,OAAOA,IAAAA,EAAE,MAAM,6BAA6B,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnH,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzF,CAAC,CAAC,CAAC,SAAS,mCAAmC;AAC/C,MAAa,uBAAqCA,IAAAA,EAAE,OAAO;CACzD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,OAAOA,IAAAA,EAAE,MAAM,iCAAiC,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3H,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChI,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAE7D,MAAa,iBAAiBC,eAAAA,OAAO,oBAAoB;CACvD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-users.d.ts
4
+ declare const SanityGetUsersInput: z.ZodTypeAny;
5
+ declare const SanityGetUsersOutput: z.ZodTypeAny;
6
+ declare const sanityGetUsers: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { sanityGetUsers };
9
+ //# sourceMappingURL=get-users.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-users.d.cts","names":[],"sources":["../../src/actions/get-users.ts"],"mappings":";;;cAIa,mBAAA,EAAqB,CAAA,CAAE,UAK8B;AAAA,cAWrD,oBAAA,EAAsB,CAAA,CAAE,UAIyB;AAAA,cAEjD,cAAA,gCAAc,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-users.d.ts
4
+ declare const SanityGetUsersInput: z.ZodTypeAny;
5
+ declare const SanityGetUsersOutput: z.ZodTypeAny;
6
+ declare const sanityGetUsers: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { sanityGetUsers };
9
+ //# sourceMappingURL=get-users.d.mts.map