@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,32 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/delete-user-attributes.ts
4
+ const SanityDeleteUserAttributesInput = zod.z.object({
5
+ attributes: zod.z.array(zod.z.object({ key: zod.z.string().describe("The key of the attribute to delete") }).describe("Single attribute key to delete.")).describe("List of attribute keys to delete from the user"),
6
+ sanity_user_id: zod.z.string().describe("Unique identifier of the Sanity user"),
7
+ organization_id: zod.z.string().describe("Unique identifier of the organization")
8
+ }).describe("Request model for deleting user attributes in a Sanity organization.\n\nUse this action to remove specific custom attributes from a user within an organization.");
9
+ const SanityDeleteUserAttributes_AttributeItemSchema = zod.z.object({
10
+ key: zod.z.string().describe("The key/name of the attribute"),
11
+ type: zod.z.string().describe("The type of the attribute"),
12
+ values: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Possible values for this attribute").nullable().optional(),
13
+ active_value: zod.z.record(zod.z.string(), zod.z.unknown()).describe("The active value for this attribute").nullable().optional(),
14
+ active_source: zod.z.string().describe("The source of the active value").nullable().optional()
15
+ }).describe("Individual user attribute item.");
16
+ const SanityDeleteUserAttributesOutput = zod.z.object({
17
+ attributes: zod.z.array(SanityDeleteUserAttributes_AttributeItemSchema).describe("Remaining attributes for the user").nullable().optional(),
18
+ updated_at: zod.z.string().describe("Timestamp when attributes were last updated in ISO 8601 format").nullable().optional(),
19
+ sanity_user_id: zod.z.string().describe("ID of the user").nullable().optional(),
20
+ organization_id: zod.z.string().describe("ID of the organization").nullable().optional()
21
+ }).describe("Response model for deleted user attributes.\n\nReturns the updated list of remaining attributes for the user after deletion.");
22
+ const sanityDeleteUserAttributes = require_action.action("SANITY_DELETE_USER_ATTRIBUTES", {
23
+ slug: "sanity-delete-user-attributes",
24
+ name: "Delete User Attributes",
25
+ description: "Delete custom attributes from a Sanity user within an organization. Use this tool when you need to remove specific custom attributes from a user account. The action deletes the attributes specified in the request and returns the updated attribute list for the user. Example use case: Removing outdated metadata like 'location' or 'year_started' from a user profile.",
26
+ input: SanityDeleteUserAttributesInput,
27
+ output: SanityDeleteUserAttributesOutput
28
+ });
29
+ //#endregion
30
+ exports.sanityDeleteUserAttributes = sanityDeleteUserAttributes;
31
+
32
+ //# sourceMappingURL=delete-user-attributes.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete-user-attributes.cjs","names":["z","action"],"sources":["../../src/actions/delete-user-attributes.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityDeleteUserAttributesInput: z.ZodTypeAny = z.object({\n attributes: z.array(z.object({\n key: z.string().describe(\"The key of the attribute to delete\"),\n}).describe(\"Single attribute key to delete.\")).describe(\"List of attribute keys to delete from the user\"),\n sanity_user_id: z.string().describe(\"Unique identifier of the Sanity user\"),\n organization_id: z.string().describe(\"Unique identifier of the organization\"),\n}).describe(\"Request model for deleting user attributes in a Sanity organization.\\n\\nUse this action to remove specific custom attributes from a user within an organization.\");\nconst SanityDeleteUserAttributes_AttributeItemSchema: z.ZodTypeAny = z.object({\n key: z.string().describe(\"The key/name of the attribute\"),\n type: z.string().describe(\"The type of the attribute\"),\n values: z.record(z.string(), z.unknown()).describe(\"Possible values for this attribute\").nullable().optional(),\n active_value: z.record(z.string(), z.unknown()).describe(\"The active value for this attribute\").nullable().optional(),\n active_source: z.string().describe(\"The source of the active value\").nullable().optional(),\n}).describe(\"Individual user attribute item.\");\nexport const SanityDeleteUserAttributesOutput: z.ZodTypeAny = z.object({\n attributes: z.array(SanityDeleteUserAttributes_AttributeItemSchema).describe(\"Remaining attributes for the user\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when attributes were last updated in ISO 8601 format\").nullable().optional(),\n sanity_user_id: z.string().describe(\"ID of the user\").nullable().optional(),\n organization_id: z.string().describe(\"ID of the organization\").nullable().optional(),\n}).describe(\"Response model for deleted user attributes.\\n\\nReturns the updated list of remaining attributes for the user after deletion.\");\n\nexport const sanityDeleteUserAttributes = action(\"SANITY_DELETE_USER_ATTRIBUTES\", {\n slug: \"sanity-delete-user-attributes\",\n name: \"Delete User Attributes\",\n description: \"Delete custom attributes from a Sanity user within an organization. Use this tool when you need to remove specific custom attributes from a user account. The action deletes the attributes specified in the request and returns the updated attribute list for the user. Example use case: Removing outdated metadata like 'location' or 'year_started' from a user profile.\",\n input: SanityDeleteUserAttributesInput,\n output: SanityDeleteUserAttributesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAgDA,IAAAA,EAAE,OAAO;CACpE,YAAYA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,EAC7B,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,EAC/D,CAAC,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,CAAC,SAAS,gDAAgD;CACvG,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CAC1E,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;AAC9E,CAAC,CAAC,CAAC,SAAS,kKAAkK;AAC9K,MAAM,iDAA+DA,IAAAA,EAAE,OAAO;CAC5E,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;CACxD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CACrD,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,cAAcA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpH,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3F,CAAC,CAAC,CAAC,SAAS,iCAAiC;AAC7C,MAAa,mCAAiDA,IAAAA,EAAE,OAAO;CACrE,YAAYA,IAAAA,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtI,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtH,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1E,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrF,CAAC,CAAC,CAAC,SAAS,8HAA8H;AAE1I,MAAa,6BAA6BC,eAAAA,OAAO,iCAAiC;CAChF,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/delete-user-attributes.d.ts
4
+ declare const SanityDeleteUserAttributesInput: z.ZodTypeAny;
5
+ declare const SanityDeleteUserAttributesOutput: z.ZodTypeAny;
6
+ declare const sanityDeleteUserAttributes: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { sanityDeleteUserAttributes };
9
+ //# sourceMappingURL=delete-user-attributes.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete-user-attributes.d.cts","names":[],"sources":["../../src/actions/delete-user-attributes.ts"],"mappings":";;;cAIa,+BAAA,EAAiC,CAAA,CAAE,UAM+H;AAAA,cAQlK,gCAAA,EAAkC,CAAA,CAAE,UAK0F;AAAA,cAE9H,0BAAA,gCAA0B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/delete-user-attributes.d.ts
4
+ declare const SanityDeleteUserAttributesInput: z.ZodTypeAny;
5
+ declare const SanityDeleteUserAttributesOutput: z.ZodTypeAny;
6
+ declare const sanityDeleteUserAttributes: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { sanityDeleteUserAttributes };
9
+ //# sourceMappingURL=delete-user-attributes.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete-user-attributes.d.mts","names":[],"sources":["../../src/actions/delete-user-attributes.ts"],"mappings":";;;cAIa,+BAAA,EAAiC,CAAA,CAAE,UAM+H;AAAA,cAQlK,gCAAA,EAAkC,CAAA,CAAE,UAK0F;AAAA,cAE9H,0BAAA,gCAA0B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,31 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/delete-user-attributes.ts
4
+ const SanityDeleteUserAttributesInput = z.object({
5
+ attributes: z.array(z.object({ key: z.string().describe("The key of the attribute to delete") }).describe("Single attribute key to delete.")).describe("List of attribute keys to delete from the user"),
6
+ sanity_user_id: z.string().describe("Unique identifier of the Sanity user"),
7
+ organization_id: z.string().describe("Unique identifier of the organization")
8
+ }).describe("Request model for deleting user attributes in a Sanity organization.\n\nUse this action to remove specific custom attributes from a user within an organization.");
9
+ const SanityDeleteUserAttributes_AttributeItemSchema = z.object({
10
+ key: z.string().describe("The key/name of the attribute"),
11
+ type: z.string().describe("The type of the attribute"),
12
+ values: z.record(z.string(), z.unknown()).describe("Possible values for this attribute").nullable().optional(),
13
+ active_value: z.record(z.string(), z.unknown()).describe("The active value for this attribute").nullable().optional(),
14
+ active_source: z.string().describe("The source of the active value").nullable().optional()
15
+ }).describe("Individual user attribute item.");
16
+ const sanityDeleteUserAttributes = action("SANITY_DELETE_USER_ATTRIBUTES", {
17
+ slug: "sanity-delete-user-attributes",
18
+ name: "Delete User Attributes",
19
+ description: "Delete custom attributes from a Sanity user within an organization. Use this tool when you need to remove specific custom attributes from a user account. The action deletes the attributes specified in the request and returns the updated attribute list for the user. Example use case: Removing outdated metadata like 'location' or 'year_started' from a user profile.",
20
+ input: SanityDeleteUserAttributesInput,
21
+ output: z.object({
22
+ attributes: z.array(SanityDeleteUserAttributes_AttributeItemSchema).describe("Remaining attributes for the user").nullable().optional(),
23
+ updated_at: z.string().describe("Timestamp when attributes were last updated in ISO 8601 format").nullable().optional(),
24
+ sanity_user_id: z.string().describe("ID of the user").nullable().optional(),
25
+ organization_id: z.string().describe("ID of the organization").nullable().optional()
26
+ }).describe("Response model for deleted user attributes.\n\nReturns the updated list of remaining attributes for the user after deletion.")
27
+ });
28
+ //#endregion
29
+ export { sanityDeleteUserAttributes };
30
+
31
+ //# sourceMappingURL=delete-user-attributes.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete-user-attributes.mjs","names":[],"sources":["../../src/actions/delete-user-attributes.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityDeleteUserAttributesInput: z.ZodTypeAny = z.object({\n attributes: z.array(z.object({\n key: z.string().describe(\"The key of the attribute to delete\"),\n}).describe(\"Single attribute key to delete.\")).describe(\"List of attribute keys to delete from the user\"),\n sanity_user_id: z.string().describe(\"Unique identifier of the Sanity user\"),\n organization_id: z.string().describe(\"Unique identifier of the organization\"),\n}).describe(\"Request model for deleting user attributes in a Sanity organization.\\n\\nUse this action to remove specific custom attributes from a user within an organization.\");\nconst SanityDeleteUserAttributes_AttributeItemSchema: z.ZodTypeAny = z.object({\n key: z.string().describe(\"The key/name of the attribute\"),\n type: z.string().describe(\"The type of the attribute\"),\n values: z.record(z.string(), z.unknown()).describe(\"Possible values for this attribute\").nullable().optional(),\n active_value: z.record(z.string(), z.unknown()).describe(\"The active value for this attribute\").nullable().optional(),\n active_source: z.string().describe(\"The source of the active value\").nullable().optional(),\n}).describe(\"Individual user attribute item.\");\nexport const SanityDeleteUserAttributesOutput: z.ZodTypeAny = z.object({\n attributes: z.array(SanityDeleteUserAttributes_AttributeItemSchema).describe(\"Remaining attributes for the user\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when attributes were last updated in ISO 8601 format\").nullable().optional(),\n sanity_user_id: z.string().describe(\"ID of the user\").nullable().optional(),\n organization_id: z.string().describe(\"ID of the organization\").nullable().optional(),\n}).describe(\"Response model for deleted user attributes.\\n\\nReturns the updated list of remaining attributes for the user after deletion.\");\n\nexport const sanityDeleteUserAttributes = action(\"SANITY_DELETE_USER_ATTRIBUTES\", {\n slug: \"sanity-delete-user-attributes\",\n name: \"Delete User Attributes\",\n description: \"Delete custom attributes from a Sanity user within an organization. Use this tool when you need to remove specific custom attributes from a user account. The action deletes the attributes specified in the request and returns the updated attribute list for the user. Example use case: Removing outdated metadata like 'location' or 'year_started' from a user profile.\",\n input: SanityDeleteUserAttributesInput,\n output: SanityDeleteUserAttributesOutput,\n});\n"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C,SAAS;EAC1E,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,CAAC,CAAC,CAAC,SAAS,8HAOF;AACV,CAAC"}
@@ -0,0 +1,35 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/get-document.ts
4
+ const SanityGetDocumentInput = zod.z.object({
5
+ dataset: zod.z.string().describe("The Sanity dataset to fetch the document from."),
6
+ project_id: zod.z.string().describe("The Sanity project ID. This is the unique identifier for your Sanity project."),
7
+ document_id: zod.z.string().describe("The unique identifier of the document to retrieve. This is the _id field of the document.")
8
+ }).describe("Request model for fetching a single document by ID.");
9
+ const SanityGetDocument_OmittedDocumentSchema = zod.z.object({
10
+ id: zod.z.string().describe("ID of the omitted document"),
11
+ reason: zod.z.string().describe("Reason for omission (e.g., 'existence')")
12
+ }).describe("Model for documents that were omitted from the response.");
13
+ const SanityGetDocument_SanityDocumentSchema = zod.z.object({
14
+ _id: zod.z.string().describe("Unique identifier of the document"),
15
+ _rev: zod.z.string().describe("Revision identifier").nullable().optional(),
16
+ _type: zod.z.string().describe("Document type"),
17
+ _createdAt: zod.z.string().describe("Creation timestamp").nullable().optional(),
18
+ _updatedAt: zod.z.string().describe("Last update timestamp").nullable().optional()
19
+ }).passthrough().describe("Model for a Sanity document with system fields.");
20
+ const SanityGetDocumentOutput = zod.z.object({
21
+ ms: zod.z.number().int().describe("Time taken to execute the request in milliseconds.").nullable().optional(),
22
+ omitted: zod.z.array(SanityGetDocument_OmittedDocumentSchema).describe("Array of documents that were omitted from the response, typically because they don't exist.").nullable().optional(),
23
+ documents: zod.z.array(SanityGetDocument_SanityDocumentSchema).describe("Array containing the requested document. Returns a single-element array with the full document including system fields (_id, _type, _rev, _createdAt, _updatedAt).").nullable().optional()
24
+ }).describe("Response model for fetching a single document.");
25
+ const sanityGetDocument = require_action.action("SANITY_GET_DOCUMENT", {
26
+ slug: "sanity-get-document",
27
+ name: "Get Document by ID",
28
+ description: "Fetch a single document by its ID from Sanity. Use this action when you need to retrieve a specific document using its unique identifier rather than running a GROQ query. Returns the complete document with all system fields including _id, _type, _rev, _createdAt, and _updatedAt.",
29
+ input: SanityGetDocumentInput,
30
+ output: SanityGetDocumentOutput
31
+ });
32
+ //#endregion
33
+ exports.sanityGetDocument = sanityGetDocument;
34
+
35
+ //# sourceMappingURL=get-document.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-document.cjs","names":["z","action"],"sources":["../../src/actions/get-document.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityGetDocumentInput: z.ZodTypeAny = z.object({\n dataset: z.string().describe(\"The Sanity dataset to fetch the document from.\"),\n project_id: z.string().describe(\"The Sanity project ID. This is the unique identifier for your Sanity project.\"),\n document_id: z.string().describe(\"The unique identifier of the document to retrieve. This is the _id field of the document.\"),\n}).describe(\"Request model for fetching a single document by ID.\");\nconst SanityGetDocument_OmittedDocumentSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"ID of the omitted document\"),\n reason: z.string().describe(\"Reason for omission (e.g., 'existence')\"),\n}).describe(\"Model for documents that were omitted from the response.\");\nconst SanityGetDocument_SanityDocumentSchema: z.ZodTypeAny = z.object({\n _id: z.string().describe(\"Unique identifier of the document\"),\n _rev: z.string().describe(\"Revision identifier\").nullable().optional(),\n _type: z.string().describe(\"Document type\"),\n _createdAt: z.string().describe(\"Creation timestamp\").nullable().optional(),\n _updatedAt: z.string().describe(\"Last update timestamp\").nullable().optional(),\n}).passthrough().describe(\"Model for a Sanity document with system fields.\");\nexport const SanityGetDocumentOutput: z.ZodTypeAny = z.object({\n ms: z.number().int().describe(\"Time taken to execute the request in milliseconds.\").nullable().optional(),\n omitted: z.array(SanityGetDocument_OmittedDocumentSchema).describe(\"Array of documents that were omitted from the response, typically because they don't exist.\").nullable().optional(),\n documents: z.array(SanityGetDocument_SanityDocumentSchema).describe(\"Array containing the requested document. Returns a single-element array with the full document including system fields (_id, _type, _rev, _createdAt, _updatedAt).\").nullable().optional(),\n}).describe(\"Response model for fetching a single document.\");\n\nexport const sanityGetDocument = action(\"SANITY_GET_DOCUMENT\", {\n slug: \"sanity-get-document\",\n name: \"Get Document by ID\",\n description: \"Fetch a single document by its ID from Sanity. Use this action when you need to retrieve a specific document using its unique identifier rather than running a GROQ query. Returns the complete document with all system fields including _id, _type, _rev, _createdAt, and _updatedAt.\",\n input: SanityGetDocumentInput,\n output: SanityGetDocumentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAuCA,IAAAA,EAAE,OAAO;CAC3D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;CAC7E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E;CAC/G,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2FAA2F;AAC9H,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAM,0CAAwDA,IAAAA,EAAE,OAAO;CACrE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;CACpD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;AACvE,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACtE,MAAM,yCAAuDA,IAAAA,EAAE,OAAO;CACpE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;CAC5D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe;CAC1C,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAC3E,MAAa,0BAAwCA,IAAAA,EAAE,OAAO;CAC5D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,SAASA,IAAAA,EAAE,MAAM,uCAAuC,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtL,WAAWA,IAAAA,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,oKAAoK,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChQ,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAE5D,MAAa,oBAAoBC,eAAAA,OAAO,uBAAuB;CAC7D,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-document.d.ts
4
+ declare const SanityGetDocumentInput: z.ZodTypeAny;
5
+ declare const SanityGetDocumentOutput: z.ZodTypeAny;
6
+ declare const sanityGetDocument: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { sanityGetDocument };
9
+ //# sourceMappingURL=get-document.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-document.d.cts","names":[],"sources":["../../src/actions/get-document.ts"],"mappings":";;;cAIa,sBAAA,EAAwB,CAAA,CAAE,UAI2B;AAAA,cAYrD,uBAAA,EAAyB,CAAA,CAAE,UAIqB;AAAA,cAEhD,iBAAA,gCAAiB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-document.d.ts
4
+ declare const SanityGetDocumentInput: z.ZodTypeAny;
5
+ declare const SanityGetDocumentOutput: z.ZodTypeAny;
6
+ declare const sanityGetDocument: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { sanityGetDocument };
9
+ //# sourceMappingURL=get-document.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-document.d.mts","names":[],"sources":["../../src/actions/get-document.ts"],"mappings":";;;cAIa,sBAAA,EAAwB,CAAA,CAAE,UAI2B;AAAA,cAYrD,uBAAA,EAAyB,CAAA,CAAE,UAIqB;AAAA,cAEhD,iBAAA,gCAAiB,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-document.ts
4
+ const SanityGetDocumentInput = z.object({
5
+ dataset: z.string().describe("The Sanity dataset to fetch the document from."),
6
+ project_id: z.string().describe("The Sanity project ID. This is the unique identifier for your Sanity project."),
7
+ document_id: z.string().describe("The unique identifier of the document to retrieve. This is the _id field of the document.")
8
+ }).describe("Request model for fetching a single document by ID.");
9
+ const SanityGetDocument_OmittedDocumentSchema = z.object({
10
+ id: z.string().describe("ID of the omitted document"),
11
+ reason: z.string().describe("Reason for omission (e.g., 'existence')")
12
+ }).describe("Model for documents that were omitted from the response.");
13
+ const SanityGetDocument_SanityDocumentSchema = z.object({
14
+ _id: z.string().describe("Unique identifier of the document"),
15
+ _rev: z.string().describe("Revision identifier").nullable().optional(),
16
+ _type: z.string().describe("Document type"),
17
+ _createdAt: z.string().describe("Creation timestamp").nullable().optional(),
18
+ _updatedAt: z.string().describe("Last update timestamp").nullable().optional()
19
+ }).passthrough().describe("Model for a Sanity document with system fields.");
20
+ const sanityGetDocument = action("SANITY_GET_DOCUMENT", {
21
+ slug: "sanity-get-document",
22
+ name: "Get Document by ID",
23
+ description: "Fetch a single document by its ID from Sanity. Use this action when you need to retrieve a specific document using its unique identifier rather than running a GROQ query. Returns the complete document with all system fields including _id, _type, _rev, _createdAt, and _updatedAt.",
24
+ input: SanityGetDocumentInput,
25
+ output: z.object({
26
+ ms: z.number().int().describe("Time taken to execute the request in milliseconds.").nullable().optional(),
27
+ omitted: z.array(SanityGetDocument_OmittedDocumentSchema).describe("Array of documents that were omitted from the response, typically because they don't exist.").nullable().optional(),
28
+ documents: z.array(SanityGetDocument_SanityDocumentSchema).describe("Array containing the requested document. Returns a single-element array with the full document including system fields (_id, _type, _rev, _createdAt, _updatedAt).").nullable().optional()
29
+ }).describe("Response model for fetching a single document.")
30
+ });
31
+ //#endregion
32
+ export { sanityGetDocument };
33
+
34
+ //# sourceMappingURL=get-document.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-document.mjs","names":[],"sources":["../../src/actions/get-document.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityGetDocumentInput: z.ZodTypeAny = z.object({\n dataset: z.string().describe(\"The Sanity dataset to fetch the document from.\"),\n project_id: z.string().describe(\"The Sanity project ID. This is the unique identifier for your Sanity project.\"),\n document_id: z.string().describe(\"The unique identifier of the document to retrieve. This is the _id field of the document.\"),\n}).describe(\"Request model for fetching a single document by ID.\");\nconst SanityGetDocument_OmittedDocumentSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"ID of the omitted document\"),\n reason: z.string().describe(\"Reason for omission (e.g., 'existence')\"),\n}).describe(\"Model for documents that were omitted from the response.\");\nconst SanityGetDocument_SanityDocumentSchema: z.ZodTypeAny = z.object({\n _id: z.string().describe(\"Unique identifier of the document\"),\n _rev: z.string().describe(\"Revision identifier\").nullable().optional(),\n _type: z.string().describe(\"Document type\"),\n _createdAt: z.string().describe(\"Creation timestamp\").nullable().optional(),\n _updatedAt: z.string().describe(\"Last update timestamp\").nullable().optional(),\n}).passthrough().describe(\"Model for a Sanity document with system fields.\");\nexport const SanityGetDocumentOutput: z.ZodTypeAny = z.object({\n ms: z.number().int().describe(\"Time taken to execute the request in milliseconds.\").nullable().optional(),\n omitted: z.array(SanityGetDocument_OmittedDocumentSchema).describe(\"Array of documents that were omitted from the response, typically because they don't exist.\").nullable().optional(),\n documents: z.array(SanityGetDocument_SanityDocumentSchema).describe(\"Array containing the requested document. Returns a single-element array with the full document including system fields (_id, _type, _rev, _createdAt, _updatedAt).\").nullable().optional(),\n}).describe(\"Response model for fetching a single document.\");\n\nexport const sanityGetDocument = action(\"SANITY_GET_DOCUMENT\", {\n slug: \"sanity-get-document\",\n name: \"Get Document by ID\",\n description: \"Fetch a single document by its ID from Sanity. Use this action when you need to retrieve a specific document using its unique identifier rather than running a GROQ query. Returns the complete document with all system fields including _id, _type, _rev, _createdAt, and _updatedAt.\",\n input: SanityGetDocumentInput,\n output: SanityGetDocumentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAuC,EAAE,OAAO;CAC3D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;CAC7E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E;CAC/G,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,2FAA2F;AAC9H,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAM,0CAAwD,EAAE,OAAO;CACrE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;CACpD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;AACvE,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACtE,MAAM,yCAAuD,EAAE,OAAO;CACpE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;CAC5D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe;CAC1C,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAO3E,MAAa,oBAAoB,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAXmD,EAAE,OAAO;EAC5D,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxG,SAAS,EAAE,MAAM,uCAAuC,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtL,WAAW,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,oKAAoK,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChQ,CAAC,CAAC,CAAC,SAAS,gDAOF;AACV,CAAC"}
@@ -0,0 +1,55 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/get-invite-by-token.ts
4
+ const SanityGetInviteByTokenInput = zod.z.object({
5
+ resourceId: zod.z.string().describe("The resource ID to scope the access request to. Must be a valid ID for the resource type."),
6
+ inviteToken: zod.z.string().describe("The public token for the invite. This token is shared with the invitee."),
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 an invite by its public token.");
16
+ const SanityGetInviteByToken_InviteStatusSchema = zod.z.enum([
17
+ "pending",
18
+ "accepted",
19
+ "revoked"
20
+ ]).describe("The status of an invite.");
21
+ const SanityGetInviteByToken_InviterTypeSchema = zod.z.enum(["user", "service"]).describe("The type of entity that created the invite.");
22
+ const SanityGetInviteByToken_ResourceTypeSchema = zod.z.enum([
23
+ "organization",
24
+ "project",
25
+ "media-library",
26
+ "canvas",
27
+ "dashboard",
28
+ "view"
29
+ ]).describe("The resource types available for access control in Sanity.");
30
+ const SanityGetInviteByTokenOutput = zod.z.object({
31
+ id: zod.z.string().describe("The unique identifier of the invite. Only present if found=True.").nullable().optional(),
32
+ role: zod.z.string().describe("The role that will be assigned to the invitee upon accepting the invite. Only present if found=True.").nullable().optional(),
33
+ email: zod.z.string().describe("The email address of the invitee. Only present if the invite is still pending.").nullable().optional(),
34
+ error: zod.z.string().describe("Error message if the invite was not found. Only present if found=False.").nullable().optional(),
35
+ found: zod.z.boolean().describe("Whether the invite was found. True if invite exists, False if not found."),
36
+ status: SanityGetInviteByToken_InviteStatusSchema.nullable().optional(),
37
+ createdAt: zod.z.string().describe("The ISO 8601 timestamp when the invite was created. Only present if found=True.").nullable().optional(),
38
+ inviteeId: zod.z.string().describe("The ID of the user that accepted the invite. Only present if the invite has been accepted.").nullable().optional(),
39
+ inviterId: zod.z.string().describe("The ID of the user or service that created the invite. Only present if the invite was created by a user.").nullable().optional(),
40
+ updatedAt: zod.z.string().describe("The ISO 8601 timestamp when the invite was last updated. Only present if found=True.").nullable().optional(),
41
+ resourceId: zod.z.string().describe("The ID of the resource this invite applies to. Only present if found=True.").nullable().optional(),
42
+ inviterType: SanityGetInviteByToken_InviterTypeSchema.nullable().optional(),
43
+ resourceType: SanityGetInviteByToken_ResourceTypeSchema.nullable().optional()
44
+ }).describe("Response model for the get invite by token operation.");
45
+ const sanityGetInviteByToken = require_action.action("SANITY_GET_INVITE_BY_TOKEN", {
46
+ slug: "sanity-get-invite-by-token",
47
+ name: "Get Invite By Token",
48
+ description: "Retrieve an invite by its public token. Use this action when you need to fetch details about an invite using the invite token that was shared with the invitee. Returns invite information including status, role, and inviter details.",
49
+ input: SanityGetInviteByTokenInput,
50
+ output: SanityGetInviteByTokenOutput
51
+ });
52
+ //#endregion
53
+ exports.sanityGetInviteByToken = sanityGetInviteByToken;
54
+
55
+ //# sourceMappingURL=get-invite-by-token.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-invite-by-token.cjs","names":["z","action"],"sources":["../../src/actions/get-invite-by-token.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityGetInviteByTokenInput: z.ZodTypeAny = z.object({\n resourceId: z.string().describe(\"The resource ID to scope the access request to. Must be a valid ID for the resource type.\"),\n inviteToken: z.string().describe(\"The public token for the invite. This token is shared with the invitee.\"),\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 an invite by its public token.\");\nconst SanityGetInviteByToken_InviteStatusSchema: z.ZodTypeAny = z.enum([\"pending\", \"accepted\", \"revoked\"]).describe(\"The status of an invite.\");\nconst SanityGetInviteByToken_InviterTypeSchema: z.ZodTypeAny = z.enum([\"user\", \"service\"]).describe(\"The type of entity that created the invite.\");\nconst SanityGetInviteByToken_ResourceTypeSchema: z.ZodTypeAny = z.enum([\"organization\", \"project\", \"media-library\", \"canvas\", \"dashboard\", \"view\"]).describe(\"The resource types available for access control in Sanity.\");\nexport const SanityGetInviteByTokenOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier of the invite. Only present if found=True.\").nullable().optional(),\n role: z.string().describe(\"The role that will be assigned to the invitee upon accepting the invite. Only present if found=True.\").nullable().optional(),\n email: z.string().describe(\"The email address of the invitee. Only present if the invite is still pending.\").nullable().optional(),\n error: z.string().describe(\"Error message if the invite was not found. Only present if found=False.\").nullable().optional(),\n found: z.boolean().describe(\"Whether the invite was found. True if invite exists, False if not found.\"),\n status: SanityGetInviteByToken_InviteStatusSchema.nullable().optional(),\n createdAt: z.string().describe(\"The ISO 8601 timestamp when the invite was created. Only present if found=True.\").nullable().optional(),\n inviteeId: z.string().describe(\"The ID of the user that accepted the invite. Only present if the invite has been accepted.\").nullable().optional(),\n inviterId: z.string().describe(\"The ID of the user or service that created the invite. Only present if the invite was created by a user.\").nullable().optional(),\n updatedAt: z.string().describe(\"The ISO 8601 timestamp when the invite was last updated. Only present if found=True.\").nullable().optional(),\n resourceId: z.string().describe(\"The ID of the resource this invite applies to. Only present if found=True.\").nullable().optional(),\n inviterType: SanityGetInviteByToken_InviterTypeSchema.nullable().optional(),\n resourceType: SanityGetInviteByToken_ResourceTypeSchema.nullable().optional(),\n}).describe(\"Response model for the get invite by token operation.\");\n\nexport const sanityGetInviteByToken = action(\"SANITY_GET_INVITE_BY_TOKEN\", {\n slug: \"sanity-get-invite-by-token\",\n name: \"Get Invite By Token\",\n description: \"Retrieve an invite by its public token. Use this action when you need to fetch details about an invite using the invite token that was shared with the invitee. Returns invite information including status, role, and inviter details.\",\n input: SanityGetInviteByTokenInput,\n output: SanityGetInviteByTokenOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA4CA,IAAAA,EAAE,OAAO;CAChE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2FAA2F;CAC3H,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE;CAC1G,cAAcA,IAAAA,EAAE,KAAK;EAAC;EAAgB;EAAW;EAAiB;EAAU;EAAa;CAAM,CAAC,CAAC,CAAC,SAAS,mIAAmI;AAChP,CAAC,CAAC,CAAC,SAAS,6DAA6D;AACzE,MAAM,4CAA0DA,IAAAA,EAAE,KAAK;CAAC;CAAW;CAAY;AAAS,CAAC,CAAC,CAAC,SAAS,0BAA0B;AAC9I,MAAM,2CAAyDA,IAAAA,EAAE,KAAK,CAAC,QAAQ,SAAS,CAAC,CAAC,CAAC,SAAS,6CAA6C;AACjJ,MAAM,4CAA0DA,IAAAA,EAAE,KAAK;CAAC;CAAgB;CAAW;CAA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A8B;CACzE,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-invite-by-token.d.ts
4
+ declare const SanityGetInviteByTokenInput: z.ZodTypeAny;
5
+ declare const SanityGetInviteByTokenOutput: z.ZodTypeAny;
6
+ declare const sanityGetInviteByToken: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { sanityGetInviteByToken };
9
+ //# sourceMappingURL=get-invite-by-token.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-invite-by-token.d.cts","names":[],"sources":["../../src/actions/get-invite-by-token.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAI8B;AAAA,cAI7D,4BAAA,EAA8B,CAAA,CAAE,UAcuB;AAAA,cAEvD,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-invite-by-token.d.ts
4
+ declare const SanityGetInviteByTokenInput: z.ZodTypeAny;
5
+ declare const SanityGetInviteByTokenOutput: z.ZodTypeAny;
6
+ declare const sanityGetInviteByToken: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { sanityGetInviteByToken };
9
+ //# sourceMappingURL=get-invite-by-token.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-invite-by-token.d.mts","names":[],"sources":["../../src/actions/get-invite-by-token.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAI8B;AAAA,cAI7D,4BAAA,EAA8B,CAAA,CAAE,UAcuB;AAAA,cAEvD,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,54 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/get-invite-by-token.ts
4
+ const SanityGetInviteByTokenInput = z.object({
5
+ resourceId: z.string().describe("The resource ID to scope the access request to. Must be a valid ID for the resource type."),
6
+ inviteToken: z.string().describe("The public token for the invite. This token is shared with the invitee."),
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 an invite by its public token.");
16
+ const SanityGetInviteByToken_InviteStatusSchema = z.enum([
17
+ "pending",
18
+ "accepted",
19
+ "revoked"
20
+ ]).describe("The status of an invite.");
21
+ const SanityGetInviteByToken_InviterTypeSchema = z.enum(["user", "service"]).describe("The type of entity that created the invite.");
22
+ const SanityGetInviteByToken_ResourceTypeSchema = z.enum([
23
+ "organization",
24
+ "project",
25
+ "media-library",
26
+ "canvas",
27
+ "dashboard",
28
+ "view"
29
+ ]).describe("The resource types available for access control in Sanity.");
30
+ const sanityGetInviteByToken = action("SANITY_GET_INVITE_BY_TOKEN", {
31
+ slug: "sanity-get-invite-by-token",
32
+ name: "Get Invite By Token",
33
+ description: "Retrieve an invite by its public token. Use this action when you need to fetch details about an invite using the invite token that was shared with the invitee. Returns invite information including status, role, and inviter details.",
34
+ input: SanityGetInviteByTokenInput,
35
+ output: z.object({
36
+ id: z.string().describe("The unique identifier of the invite. Only present if found=True.").nullable().optional(),
37
+ role: z.string().describe("The role that will be assigned to the invitee upon accepting the invite. Only present if found=True.").nullable().optional(),
38
+ email: z.string().describe("The email address of the invitee. Only present if the invite is still pending.").nullable().optional(),
39
+ error: z.string().describe("Error message if the invite was not found. Only present if found=False.").nullable().optional(),
40
+ found: z.boolean().describe("Whether the invite was found. True if invite exists, False if not found."),
41
+ status: SanityGetInviteByToken_InviteStatusSchema.nullable().optional(),
42
+ createdAt: z.string().describe("The ISO 8601 timestamp when the invite was created. Only present if found=True.").nullable().optional(),
43
+ inviteeId: z.string().describe("The ID of the user that accepted the invite. Only present if the invite has been accepted.").nullable().optional(),
44
+ inviterId: z.string().describe("The ID of the user or service that created the invite. Only present if the invite was created by a user.").nullable().optional(),
45
+ updatedAt: z.string().describe("The ISO 8601 timestamp when the invite was last updated. Only present if found=True.").nullable().optional(),
46
+ resourceId: z.string().describe("The ID of the resource this invite applies to. Only present if found=True.").nullable().optional(),
47
+ inviterType: SanityGetInviteByToken_InviterTypeSchema.nullable().optional(),
48
+ resourceType: SanityGetInviteByToken_ResourceTypeSchema.nullable().optional()
49
+ }).describe("Response model for the get invite by token operation.")
50
+ });
51
+ //#endregion
52
+ export { sanityGetInviteByToken };
53
+
54
+ //# sourceMappingURL=get-invite-by-token.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-invite-by-token.mjs","names":[],"sources":["../../src/actions/get-invite-by-token.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityGetInviteByTokenInput: z.ZodTypeAny = z.object({\n resourceId: z.string().describe(\"The resource ID to scope the access request to. Must be a valid ID for the resource type.\"),\n inviteToken: z.string().describe(\"The public token for the invite. This token is shared with the invitee.\"),\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 an invite by its public token.\");\nconst SanityGetInviteByToken_InviteStatusSchema: z.ZodTypeAny = z.enum([\"pending\", \"accepted\", \"revoked\"]).describe(\"The status of an invite.\");\nconst SanityGetInviteByToken_InviterTypeSchema: z.ZodTypeAny = z.enum([\"user\", \"service\"]).describe(\"The type of entity that created the invite.\");\nconst SanityGetInviteByToken_ResourceTypeSchema: z.ZodTypeAny = z.enum([\"organization\", \"project\", \"media-library\", \"canvas\", \"dashboard\", \"view\"]).describe(\"The resource types available for access control in Sanity.\");\nexport const SanityGetInviteByTokenOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier of the invite. Only present if found=True.\").nullable().optional(),\n role: z.string().describe(\"The role that will be assigned to the invitee upon accepting the invite. Only present if found=True.\").nullable().optional(),\n email: z.string().describe(\"The email address of the invitee. Only present if the invite is still pending.\").nullable().optional(),\n error: z.string().describe(\"Error message if the invite was not found. Only present if found=False.\").nullable().optional(),\n found: z.boolean().describe(\"Whether the invite was found. True if invite exists, False if not found.\"),\n status: SanityGetInviteByToken_InviteStatusSchema.nullable().optional(),\n createdAt: z.string().describe(\"The ISO 8601 timestamp when the invite was created. Only present if found=True.\").nullable().optional(),\n inviteeId: z.string().describe(\"The ID of the user that accepted the invite. Only present if the invite has been accepted.\").nullable().optional(),\n inviterId: z.string().describe(\"The ID of the user or service that created the invite. Only present if the invite was created by a user.\").nullable().optional(),\n updatedAt: z.string().describe(\"The ISO 8601 timestamp when the invite was last updated. Only present if found=True.\").nullable().optional(),\n resourceId: z.string().describe(\"The ID of the resource this invite applies to. Only present if found=True.\").nullable().optional(),\n inviterType: SanityGetInviteByToken_InviterTypeSchema.nullable().optional(),\n resourceType: SanityGetInviteByToken_ResourceTypeSchema.nullable().optional(),\n}).describe(\"Response model for the get invite by token operation.\");\n\nexport const sanityGetInviteByToken = action(\"SANITY_GET_INVITE_BY_TOKEN\", {\n slug: \"sanity-get-invite-by-token\",\n name: \"Get Invite By Token\",\n description: \"Retrieve an invite by its public token. Use this action when you need to fetch details about an invite using the invite token that was shared with the invitee. Returns invite information including status, role, and inviter details.\",\n input: SanityGetInviteByTokenInput,\n output: SanityGetInviteByTokenOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA4C,EAAE,OAAO;CAChE,YAAY,EAAE,OAAO,CAAC,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AAW,EAAE,OAAO,CAAC,CAAC,SAAS,0GAA0G,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/J,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3I,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClI,aAAa,yCAAyC,SAAS,CAAC,CAAC,SAAS;EAC1E,cAAc,0CAA0C,SAAS,CAAC,CAAC,SAAS;CAC9E,CAAC,CAAC,CAAC,SAAS,uDAOF;AACV,CAAC"}
@@ -0,0 +1,37 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/get-org-role.ts
4
+ const SanityGetOrgRoleInput = zod.z.object({
5
+ roleId: zod.z.string().describe("The unique identifier of the role to retrieve"),
6
+ organizationId: zod.z.string().describe("The unique identifier of the organization")
7
+ }).describe("Request model for retrieving a specific organization role.");
8
+ const SanityGetOrgRole_PermissionSchema = zod.z.object({
9
+ name: zod.z.string().describe("Name of the permission action").nullable().optional(),
10
+ type: zod.z.string().describe("Type of the permission").nullable().optional(),
11
+ action: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Action details for the permission").nullable().optional(),
12
+ params: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Parameters for the permission").nullable().optional()
13
+ }).describe("Represents a single permission within a role.");
14
+ const SanityGetOrgRole_OrgRoleSchema = zod.z.object({
15
+ id: zod.z.string().describe("The unique identifier of the role").nullable().optional(),
16
+ name: zod.z.string().describe("The unique name identifier of the role"),
17
+ title: zod.z.string().describe("Display title of the role"),
18
+ isCustom: zod.z.boolean().describe("Whether this is a custom role defined by the user").nullable().optional(),
19
+ resourceId: zod.z.string().describe("The ID of the resource this role applies to"),
20
+ description: zod.z.string().describe("Detailed description of what the role allows").nullable().optional(),
21
+ permissions: zod.z.array(SanityGetOrgRole_PermissionSchema).describe("List of permissions granted by this role"),
22
+ resourceType: zod.z.string().describe("The type of resource this role applies to"),
23
+ appliesToUsers: zod.z.boolean().describe("Whether this role can be assigned to users"),
24
+ appliesToRobots: zod.z.boolean().describe("Whether this role can be assigned to robots/service accounts")
25
+ }).describe("Represents an organization role with its permissions and settings.");
26
+ const SanityGetOrgRoleOutput = zod.z.object({ data: SanityGetOrgRole_OrgRoleSchema.nullable() }).describe("Response model for the get organization role operation.");
27
+ const sanityGetOrgRole = require_action.action("SANITY_GET_ORG_ROLE", {
28
+ slug: "sanity-get-org-role",
29
+ name: "Get Organization Role",
30
+ description: "Retrieve a specific organization role by its ID. Use this action when you need to fetch details about an organization role including its permissions, title, description, and whether it applies to users or robots. The role must exist for the specified organization.",
31
+ input: SanityGetOrgRoleInput,
32
+ output: SanityGetOrgRoleOutput
33
+ });
34
+ //#endregion
35
+ exports.sanityGetOrgRole = sanityGetOrgRole;
36
+
37
+ //# sourceMappingURL=get-org-role.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-org-role.cjs","names":["z","action"],"sources":["../../src/actions/get-org-role.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityGetOrgRoleInput: z.ZodTypeAny = z.object({\n roleId: z.string().describe(\"The unique identifier of the role to retrieve\"),\n organizationId: z.string().describe(\"The unique identifier of the organization\"),\n}).describe(\"Request model for retrieving a specific organization role.\");\nconst SanityGetOrgRole_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.record(z.string(), z.unknown()).describe(\"Action details for the permission\").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.\");\nconst SanityGetOrgRole_OrgRoleSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier of the role\").nullable().optional(),\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 defined by the user\").nullable().optional(),\n resourceId: z.string().describe(\"The ID of the resource this role applies to\"),\n description: z.string().describe(\"Detailed description of what the role allows\").nullable().optional(),\n permissions: z.array(SanityGetOrgRole_PermissionSchema).describe(\"List of permissions granted by this role\"),\n resourceType: z.string().describe(\"The type of resource this role applies to\"),\n appliesToUsers: z.boolean().describe(\"Whether this role can be assigned to users\"),\n appliesToRobots: z.boolean().describe(\"Whether this role can be assigned to robots/service accounts\"),\n}).describe(\"Represents an organization role with its permissions and settings.\");\nexport const SanityGetOrgRoleOutput: z.ZodTypeAny = z.object({\n data: SanityGetOrgRole_OrgRoleSchema.nullable(),\n}).describe(\"Response model for the get organization role operation.\");\n\nexport const sanityGetOrgRole = action(\"SANITY_GET_ORG_ROLE\", {\n slug: \"sanity-get-org-role\",\n name: \"Get Organization Role\",\n description: \"Retrieve a specific organization role by its ID. Use this action when you need to fetch details about an organization role including its permissions, title, description, and whether it applies to users or robots. The role must exist for the specified organization.\",\n input: SanityGetOrgRoleInput,\n output: SanityGetOrgRoleOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAsCA,IAAAA,EAAE,OAAO;CAC1D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CAC3E,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;AACjF,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAM,oCAAkDA,IAAAA,EAAE,OAAO;CAC/D,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,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ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M;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-org-role.d.ts
4
+ declare const SanityGetOrgRoleInput: z.ZodTypeAny;
5
+ declare const SanityGetOrgRoleOutput: z.ZodTypeAny;
6
+ declare const sanityGetOrgRole: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { sanityGetOrgRole };
9
+ //# sourceMappingURL=get-org-role.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-org-role.d.cts","names":[],"sources":["../../src/actions/get-org-role.ts"],"mappings":";;;cAIa,qBAAA,EAAuB,CAAA,CAAE,UAGmC;AAAA,cAmB5D,sBAAA,EAAwB,CAAA,CAAE,UAE+B;AAAA,cAEzD,gBAAA,gCAAgB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-org-role.d.ts
4
+ declare const SanityGetOrgRoleInput: z.ZodTypeAny;
5
+ declare const SanityGetOrgRoleOutput: z.ZodTypeAny;
6
+ declare const sanityGetOrgRole: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { sanityGetOrgRole };
9
+ //# sourceMappingURL=get-org-role.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-org-role.d.mts","names":[],"sources":["../../src/actions/get-org-role.ts"],"mappings":";;;cAIa,qBAAA,EAAuB,CAAA,CAAE,UAGmC;AAAA,cAmB5D,sBAAA,EAAwB,CAAA,CAAE,UAE+B;AAAA,cAEzD,gBAAA,gCAAgB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,36 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/get-org-role.ts
4
+ const SanityGetOrgRoleInput = z.object({
5
+ roleId: z.string().describe("The unique identifier of the role to retrieve"),
6
+ organizationId: z.string().describe("The unique identifier of the organization")
7
+ }).describe("Request model for retrieving a specific organization role.");
8
+ const SanityGetOrgRole_PermissionSchema = z.object({
9
+ name: z.string().describe("Name of the permission action").nullable().optional(),
10
+ type: z.string().describe("Type of the permission").nullable().optional(),
11
+ action: z.record(z.string(), z.unknown()).describe("Action details for the permission").nullable().optional(),
12
+ params: z.record(z.string(), z.unknown()).describe("Parameters for the permission").nullable().optional()
13
+ }).describe("Represents a single permission within a role.");
14
+ const SanityGetOrgRole_OrgRoleSchema = z.object({
15
+ id: z.string().describe("The unique identifier of the role").nullable().optional(),
16
+ name: z.string().describe("The unique name identifier of the role"),
17
+ title: z.string().describe("Display title of the role"),
18
+ isCustom: z.boolean().describe("Whether this is a custom role defined by the user").nullable().optional(),
19
+ resourceId: z.string().describe("The ID of the resource this role applies to"),
20
+ description: z.string().describe("Detailed description of what the role allows").nullable().optional(),
21
+ permissions: z.array(SanityGetOrgRole_PermissionSchema).describe("List of permissions granted by this role"),
22
+ resourceType: z.string().describe("The type of resource this role applies to"),
23
+ appliesToUsers: z.boolean().describe("Whether this role can be assigned to users"),
24
+ appliesToRobots: z.boolean().describe("Whether this role can be assigned to robots/service accounts")
25
+ }).describe("Represents an organization role with its permissions and settings.");
26
+ const sanityGetOrgRole = action("SANITY_GET_ORG_ROLE", {
27
+ slug: "sanity-get-org-role",
28
+ name: "Get Organization Role",
29
+ description: "Retrieve a specific organization role by its ID. Use this action when you need to fetch details about an organization role including its permissions, title, description, and whether it applies to users or robots. The role must exist for the specified organization.",
30
+ input: SanityGetOrgRoleInput,
31
+ output: z.object({ data: SanityGetOrgRole_OrgRoleSchema.nullable() }).describe("Response model for the get organization role operation.")
32
+ });
33
+ //#endregion
34
+ export { sanityGetOrgRole };
35
+
36
+ //# sourceMappingURL=get-org-role.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-org-role.mjs","names":[],"sources":["../../src/actions/get-org-role.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityGetOrgRoleInput: z.ZodTypeAny = z.object({\n roleId: z.string().describe(\"The unique identifier of the role to retrieve\"),\n organizationId: z.string().describe(\"The unique identifier of the organization\"),\n}).describe(\"Request model for retrieving a specific organization role.\");\nconst SanityGetOrgRole_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.record(z.string(), z.unknown()).describe(\"Action details for the permission\").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.\");\nconst SanityGetOrgRole_OrgRoleSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier of the role\").nullable().optional(),\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 defined by the user\").nullable().optional(),\n resourceId: z.string().describe(\"The ID of the resource this role applies to\"),\n description: z.string().describe(\"Detailed description of what the role allows\").nullable().optional(),\n permissions: z.array(SanityGetOrgRole_PermissionSchema).describe(\"List of permissions granted by this role\"),\n resourceType: z.string().describe(\"The type of resource this role applies to\"),\n appliesToUsers: z.boolean().describe(\"Whether this role can be assigned to users\"),\n appliesToRobots: z.boolean().describe(\"Whether this role can be assigned to robots/service accounts\"),\n}).describe(\"Represents an organization role with its permissions and settings.\");\nexport const SanityGetOrgRoleOutput: z.ZodTypeAny = z.object({\n data: SanityGetOrgRole_OrgRoleSchema.nullable(),\n}).describe(\"Response model for the get organization role operation.\");\n\nexport const sanityGetOrgRole = action(\"SANITY_GET_ORG_ROLE\", {\n slug: \"sanity-get-org-role\",\n name: \"Get Organization Role\",\n description: \"Retrieve a specific organization role by its ID. Use this action when you need to fetch details about an organization role including its permissions, title, description, and whether it applies to users or robots. The role must exist for the specified organization.\",\n input: SanityGetOrgRoleInput,\n output: SanityGetOrgRoleOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAsC,EAAE,OAAO;CAC1D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CAC3E,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;AACjF,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAM,oCAAkD,EAAE,OAAO;CAC/D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxE,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAC3D,MAAM,iCAA+C,EAAE,OAAO;CAC5D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;CAClE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CACtD,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;CAC7E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,aAAa,EAAE,MAAM,iCAAiC,CAAC,CAAC,SAAS,0CAA0C;CAC3G,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;CAC7E,gBAAgB,EAAE,QAAQ,CAAC,CAAC,SAAS,4CAA4C;CACjF,iBAAiB,EAAE,QAAQ,CAAC,CAAC,SAAS,8DAA8D;AACtG,CAAC,CAAC,CAAC,SAAS,oEAAoE;AAKhF,MAAa,mBAAmB,OAAO,uBAAuB;CAC5D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATkD,EAAE,OAAO,EAC3D,MAAM,+BAA+B,SAAS,EAChD,CAAC,CAAC,CAAC,SAAS,yDAOF;AACV,CAAC"}
@@ -0,0 +1,35 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/get-permission.ts
4
+ const SanityGetPermissionInput = zod.z.object({
5
+ resource_id: zod.z.string().describe("The resource ID to scope the access request to. Must be a valid ID for the resource type."),
6
+ resource_type: zod.z.string().describe("The resource to scope access requests to. Must be one of: 'organization' or 'project'."),
7
+ permission_name: zod.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 = zod.z.object({
10
+ name: zod.z.string().describe("The name of the action."),
11
+ title: zod.z.string().describe("The title of the action."),
12
+ description: zod.z.string().describe("The description of the action.").nullable().optional()
13
+ }).describe("A permission action.");
14
+ const SanityGetPermissionOutput = zod.z.object({
15
+ name: zod.z.string().describe("The name of the permission. This is the unique identifier for the resource."),
16
+ type: zod.z.string().describe("The resource type for the permission."),
17
+ title: zod.z.string().describe("The human-readable title of the permission."),
18
+ params: zod.z.record(zod.z.string(), zod.z.unknown()).describe("The parameters for the permission. This is a key-value map of the permission's configuration.").nullable().optional(),
19
+ actions: zod.z.array(SanityGetPermission_PermissionActionSchema).describe("The actions allowed by the permission for this role.").nullable().optional(),
20
+ resourceId: zod.z.string().describe("The resource ID that the permission applies to."),
21
+ description: zod.z.string().describe("The description of the permission.").nullable().optional(),
22
+ resourceType: zod.z.string().describe("The resource that the permission applies to."),
23
+ ownerOrganizationId: zod.z.string().describe("The organization ID that the permission applies to. Used for wildcard permissions where the resourceId is `*`.").nullable().optional()
24
+ }).describe("Response model for SanityGetPermission action.");
25
+ const sanityGetPermission = require_action.action("SANITY_GET_PERMISSION", {
26
+ slug: "sanity-get-permission",
27
+ name: "Get Permission",
28
+ 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.",
29
+ input: SanityGetPermissionInput,
30
+ output: SanityGetPermissionOutput
31
+ });
32
+ //#endregion
33
+ exports.sanityGetPermission = sanityGetPermission;
34
+
35
+ //# sourceMappingURL=get-permission.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-permission.cjs","names":["z","action"],"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,2BAAyCA,IAAAA,EAAE,OAAO;CAC7D,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2FAA2F;CAC5H,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF;CAC3H,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E;AACpH,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAC3D,MAAM,6CAA2DA,IAAAA,EAAE,OAAO;CACxE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;CACnD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;CACrD,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzF,CAAC,CAAC,CAAC,SAAS,sBAAsB;AAClC,MAAa,4BAA0CA,IAAAA,E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