@keystrokehq/sanity 0.1.0 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (177) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/add-default-role-to-users.cjs +1 -1
  4. package/dist/actions/add-default-role-to-users.cjs.map +1 -1
  5. package/dist/actions/add-default-role-to-users.d.cts +10 -3
  6. package/dist/actions/add-default-role-to-users.d.cts.map +1 -1
  7. package/dist/actions/add-default-role-to-users.d.mts +10 -3
  8. package/dist/actions/add-default-role-to-users.d.mts.map +1 -1
  9. package/dist/actions/add-default-role-to-users.mjs +1 -1
  10. package/dist/actions/add-default-role-to-users.mjs.map +1 -1
  11. package/dist/actions/create-attr-definition.cjs +1 -1
  12. package/dist/actions/create-attr-definition.cjs.map +1 -1
  13. package/dist/actions/create-attr-definition.d.cts +32 -3
  14. package/dist/actions/create-attr-definition.d.cts.map +1 -1
  15. package/dist/actions/create-attr-definition.d.mts +32 -3
  16. package/dist/actions/create-attr-definition.d.mts.map +1 -1
  17. package/dist/actions/create-attr-definition.mjs +1 -1
  18. package/dist/actions/create-attr-definition.mjs.map +1 -1
  19. package/dist/actions/create-prompt-post.cjs +2 -2
  20. package/dist/actions/create-prompt-post.cjs.map +1 -1
  21. package/dist/actions/create-prompt-post.d.cts +23 -3
  22. package/dist/actions/create-prompt-post.d.cts.map +1 -1
  23. package/dist/actions/create-prompt-post.d.mts +23 -3
  24. package/dist/actions/create-prompt-post.d.mts.map +1 -1
  25. package/dist/actions/create-prompt-post.mjs +2 -2
  26. package/dist/actions/create-prompt-post.mjs.map +1 -1
  27. package/dist/actions/delete-attr-definition.cjs +1 -1
  28. package/dist/actions/delete-attr-definition.cjs.map +1 -1
  29. package/dist/actions/delete-attr-definition.d.cts +16 -3
  30. package/dist/actions/delete-attr-definition.d.cts.map +1 -1
  31. package/dist/actions/delete-attr-definition.d.mts +16 -3
  32. package/dist/actions/delete-attr-definition.d.mts.map +1 -1
  33. package/dist/actions/delete-attr-definition.mjs +1 -1
  34. package/dist/actions/delete-attr-definition.mjs.map +1 -1
  35. package/dist/actions/delete-document.cjs +1 -1
  36. package/dist/actions/delete-document.cjs.map +1 -1
  37. package/dist/actions/delete-document.d.cts +27 -3
  38. package/dist/actions/delete-document.d.cts.map +1 -1
  39. package/dist/actions/delete-document.d.mts +27 -3
  40. package/dist/actions/delete-document.d.mts.map +1 -1
  41. package/dist/actions/delete-document.mjs +1 -1
  42. package/dist/actions/delete-document.mjs.map +1 -1
  43. package/dist/actions/delete-user-attributes.cjs +5 -5
  44. package/dist/actions/delete-user-attributes.cjs.map +1 -1
  45. package/dist/actions/delete-user-attributes.d.cts +27 -3
  46. package/dist/actions/delete-user-attributes.d.cts.map +1 -1
  47. package/dist/actions/delete-user-attributes.d.mts +27 -3
  48. package/dist/actions/delete-user-attributes.d.mts.map +1 -1
  49. package/dist/actions/delete-user-attributes.mjs +5 -5
  50. package/dist/actions/delete-user-attributes.mjs.map +1 -1
  51. package/dist/actions/get-document.cjs +6 -6
  52. package/dist/actions/get-document.cjs.map +1 -1
  53. package/dist/actions/get-document.d.cts +24 -3
  54. package/dist/actions/get-document.d.cts.map +1 -1
  55. package/dist/actions/get-document.d.mts +24 -3
  56. package/dist/actions/get-document.d.mts.map +1 -1
  57. package/dist/actions/get-document.mjs +6 -6
  58. package/dist/actions/get-document.mjs.map +1 -1
  59. package/dist/actions/get-invite-by-token.cjs +2 -2
  60. package/dist/actions/get-invite-by-token.cjs.map +1 -1
  61. package/dist/actions/get-invite-by-token.d.cts +46 -3
  62. package/dist/actions/get-invite-by-token.d.cts.map +1 -1
  63. package/dist/actions/get-invite-by-token.d.mts +46 -3
  64. package/dist/actions/get-invite-by-token.d.mts.map +1 -1
  65. package/dist/actions/get-invite-by-token.mjs +2 -2
  66. package/dist/actions/get-invite-by-token.mjs.map +1 -1
  67. package/dist/actions/get-org-role.cjs +9 -9
  68. package/dist/actions/get-org-role.cjs.map +1 -1
  69. package/dist/actions/get-org-role.d.cts +27 -3
  70. package/dist/actions/get-org-role.d.cts.map +1 -1
  71. package/dist/actions/get-org-role.d.mts +27 -3
  72. package/dist/actions/get-org-role.d.mts.map +1 -1
  73. package/dist/actions/get-org-role.mjs +9 -9
  74. package/dist/actions/get-org-role.mjs.map +1 -1
  75. package/dist/actions/get-permission.cjs +9 -9
  76. package/dist/actions/get-permission.cjs.map +1 -1
  77. package/dist/actions/get-permission.d.cts +25 -3
  78. package/dist/actions/get-permission.d.cts.map +1 -1
  79. package/dist/actions/get-permission.d.mts +25 -3
  80. package/dist/actions/get-permission.d.mts.map +1 -1
  81. package/dist/actions/get-permission.mjs +9 -9
  82. package/dist/actions/get-permission.mjs.map +1 -1
  83. package/dist/actions/get-project.cjs +7 -7
  84. package/dist/actions/get-project.cjs.map +1 -1
  85. package/dist/actions/get-project.d.cts +34 -3
  86. package/dist/actions/get-project.d.cts.map +1 -1
  87. package/dist/actions/get-project.d.mts +34 -3
  88. package/dist/actions/get-project.d.mts.map +1 -1
  89. package/dist/actions/get-project.mjs +7 -7
  90. package/dist/actions/get-project.mjs.map +1 -1
  91. package/dist/actions/get-robots.cjs +7 -7
  92. package/dist/actions/get-robots.cjs.map +1 -1
  93. package/dist/actions/get-robots.d.cts +37 -3
  94. package/dist/actions/get-robots.d.cts.map +1 -1
  95. package/dist/actions/get-robots.d.mts +37 -3
  96. package/dist/actions/get-robots.d.mts.map +1 -1
  97. package/dist/actions/get-robots.mjs +7 -7
  98. package/dist/actions/get-robots.mjs.map +1 -1
  99. package/dist/actions/get-role.cjs +8 -8
  100. package/dist/actions/get-role.cjs.map +1 -1
  101. package/dist/actions/get-role.d.cts +33 -3
  102. package/dist/actions/get-role.d.cts.map +1 -1
  103. package/dist/actions/get-role.d.mts +33 -3
  104. package/dist/actions/get-role.d.mts.map +1 -1
  105. package/dist/actions/get-role.mjs +8 -8
  106. package/dist/actions/get-role.mjs.map +1 -1
  107. package/dist/actions/get-users.cjs +3 -3
  108. package/dist/actions/get-users.cjs.map +1 -1
  109. package/dist/actions/get-users.d.cts +28 -3
  110. package/dist/actions/get-users.d.cts.map +1 -1
  111. package/dist/actions/get-users.d.mts +28 -3
  112. package/dist/actions/get-users.d.mts.map +1 -1
  113. package/dist/actions/get-users.mjs +3 -3
  114. package/dist/actions/get-users.mjs.map +1 -1
  115. package/dist/actions/list-org-roles.cjs +5 -5
  116. package/dist/actions/list-org-roles.cjs.map +1 -1
  117. package/dist/actions/list-org-roles.d.cts +16 -3
  118. package/dist/actions/list-org-roles.d.cts.map +1 -1
  119. package/dist/actions/list-org-roles.d.mts +16 -3
  120. package/dist/actions/list-org-roles.d.mts.map +1 -1
  121. package/dist/actions/list-org-roles.mjs +5 -5
  122. package/dist/actions/list-org-roles.mjs.map +1 -1
  123. package/dist/actions/list-user-attributes.cjs +6 -6
  124. package/dist/actions/list-user-attributes.cjs.map +1 -1
  125. package/dist/actions/list-user-attributes.d.cts +23 -3
  126. package/dist/actions/list-user-attributes.d.cts.map +1 -1
  127. package/dist/actions/list-user-attributes.d.mts +23 -3
  128. package/dist/actions/list-user-attributes.d.mts.map +1 -1
  129. package/dist/actions/list-user-attributes.mjs +6 -6
  130. package/dist/actions/list-user-attributes.mjs.map +1 -1
  131. package/dist/actions/query-all-screening.cjs +1 -1
  132. package/dist/actions/query-all-screening.cjs.map +1 -1
  133. package/dist/actions/query-all-screening.d.cts +20 -3
  134. package/dist/actions/query-all-screening.d.cts.map +1 -1
  135. package/dist/actions/query-all-screening.d.mts +20 -3
  136. package/dist/actions/query-all-screening.d.mts.map +1 -1
  137. package/dist/actions/query-all-screening.mjs +1 -1
  138. package/dist/actions/query-all-screening.mjs.map +1 -1
  139. package/dist/actions/query-documents.cjs +2 -2
  140. package/dist/actions/query-documents.cjs.map +1 -1
  141. package/dist/actions/query-documents.d.cts +31 -3
  142. package/dist/actions/query-documents.d.cts.map +1 -1
  143. package/dist/actions/query-documents.d.mts +31 -3
  144. package/dist/actions/query-documents.d.mts.map +1 -1
  145. package/dist/actions/query-documents.mjs +2 -2
  146. package/dist/actions/query-documents.mjs.map +1 -1
  147. package/dist/actions/update-org-acl.cjs +1 -1
  148. package/dist/actions/update-org-acl.cjs.map +1 -1
  149. package/dist/actions/update-org-acl.d.cts +13 -3
  150. package/dist/actions/update-org-acl.d.cts.map +1 -1
  151. package/dist/actions/update-org-acl.d.mts +13 -3
  152. package/dist/actions/update-org-acl.d.mts.map +1 -1
  153. package/dist/actions/update-org-acl.mjs +1 -1
  154. package/dist/actions/update-org-acl.mjs.map +1 -1
  155. package/dist/actions/update-user-attributes-values.cjs +8 -8
  156. package/dist/actions/update-user-attributes-values.cjs.map +1 -1
  157. package/dist/actions/update-user-attributes-values.d.cts +27 -3
  158. package/dist/actions/update-user-attributes-values.d.cts.map +1 -1
  159. package/dist/actions/update-user-attributes-values.d.mts +27 -3
  160. package/dist/actions/update-user-attributes-values.d.mts.map +1 -1
  161. package/dist/actions/update-user-attributes-values.mjs +8 -8
  162. package/dist/actions/update-user-attributes-values.mjs.map +1 -1
  163. package/dist/actions/validate-credential.cjs +4 -4
  164. package/dist/actions/validate-credential.cjs.map +1 -1
  165. package/dist/actions/validate-credential.d.cts +17 -3
  166. package/dist/actions/validate-credential.d.cts.map +1 -1
  167. package/dist/actions/validate-credential.d.mts +17 -3
  168. package/dist/actions/validate-credential.d.mts.map +1 -1
  169. package/dist/actions/validate-credential.mjs +4 -4
  170. package/dist/actions/validate-credential.mjs.map +1 -1
  171. package/dist/catalog.cjs +18 -1
  172. package/dist/catalog.cjs.map +1 -1
  173. package/dist/catalog.d.cts +17 -0
  174. package/dist/catalog.d.mts +17 -0
  175. package/dist/catalog.mjs +18 -1
  176. package/dist/catalog.mjs.map +1 -1
  177. package/package.json +2 -2
@@ -1,9 +1,39 @@
1
1
  import { z } from "zod";
2
2
 
3
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]>;
4
+ declare const SanityGetRoleInput: z.ZodObject<{
5
+ roleName: z.ZodString;
6
+ resourceId: z.ZodString;
7
+ resourceType: z.ZodEnum<{
8
+ organization: "organization";
9
+ project: "project";
10
+ "media-library": "media-library";
11
+ canvas: "canvas";
12
+ dashboard: "dashboard";
13
+ view: "view";
14
+ }>;
15
+ }, z.core.$strip>;
16
+ declare const SanityGetRoleOutput: z.ZodObject<{
17
+ name: z.ZodNullable<z.ZodString>;
18
+ title: z.ZodNullable<z.ZodString>;
19
+ isCustom: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
20
+ resourceId: z.ZodNullable<z.ZodString>;
21
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ permissions: z.ZodArray<z.ZodObject<{
23
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
+ type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
+ action: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>>;
26
+ params: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
27
+ }, z.core.$loose>>;
28
+ resourceType: z.ZodNullable<z.ZodString>;
29
+ appliesToUsers: z.ZodNullable<z.ZodBoolean>;
30
+ appliesToRobots: z.ZodNullable<z.ZodBoolean>;
31
+ }, z.core.$loose>;
32
+ declare const sanityGetRole: import("@keystrokehq/action").WorkflowActionDefinition<{
33
+ roleName: string;
34
+ resourceId: string;
35
+ resourceType: "organization" | "project" | "media-library" | "canvas" | "dashboard" | "view";
36
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
37
  //#endregion
8
38
  export { sanityGetRole };
9
39
  //# sourceMappingURL=get-role.d.mts.map
@@ -1 +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"}
1
+ {"version":3,"file":"get-role.d.mts","names":[],"sources":["../../src/actions/get-role.ts"],"mappings":";;;cAIa,kBAAA,EAAkB,CAAA,CAAA,SAAA;;;;;;;;;;;;cAWlB,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAYnB,aAAA,gCAAa,wBAAA"}
@@ -18,23 +18,23 @@ const SanityGetRole_PermissionSchema = z.object({
18
18
  type: z.string().describe("Type of the permission").nullable().optional(),
19
19
  action: z.union([z.string(), z.record(z.string(), z.unknown())]).nullable().optional(),
20
20
  params: z.record(z.string(), z.unknown()).describe("Parameters for the permission").nullable().optional()
21
- }).describe("Represents a single permission within a role.");
21
+ }).passthrough().describe("Represents a single permission within a role.");
22
22
  const sanityGetRole = action("SANITY_GET_ROLE", {
23
23
  slug: "sanity-get-role",
24
24
  name: "Get Role",
25
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
26
  input: SanityGetRoleInput,
27
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"),
28
+ name: z.string().describe("The unique name identifier of the role").nullable(),
29
+ title: z.string().describe("Display title of the role").nullable(),
30
30
  isCustom: z.boolean().describe("Whether this is a custom role").nullable().optional(),
31
- resourceId: z.string().describe("The ID of the resource"),
31
+ resourceId: z.string().describe("The ID of the resource").nullable(),
32
32
  description: z.string().describe("Description of the role").nullable().optional(),
33
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.")
34
+ resourceType: z.string().describe("The type of resource").nullable(),
35
+ appliesToUsers: z.boolean().describe("Whether applies to users").nullable(),
36
+ appliesToRobots: z.boolean().describe("Whether applies to robots").nullable()
37
+ }).passthrough().describe("Response model for the get role operation.\nThe API returns the role directly without a data wrapper.")
38
38
  });
39
39
  //#endregion
40
40
  export { sanityGetRole };
@@ -1 +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+C;AAC3D,MAAM,iCAA+C,EAAE,OAAO;CAC5D,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,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,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;AAa3D,MAAa,gBAAgB,OAAO,mBAAmB;CACrD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAjB+C,EAAE,OAAO;EACxD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;EAClE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;EACtD,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;EACxD,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChF,aAAa,EAAE,MAAM,8BAA8B,CAAC,CAAC,SAAS,qBAAqB;EACnF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;EACxD,gBAAgB,EAAE,QAAQ,CAAC,CAAC,SAAS,0BAA0B;EAC/D,iBAAiB,EAAE,QAAQ,CAAC,CAAC,SAAS,2BAA2B;CACnE,CAAC,CAAC,CAAC,SAAS,uGAOF;AACV,CAAC"}
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.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.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}).passthrough().describe(\"Represents a single permission within a role.\");\nexport const SanityGetRoleOutput = z.object({\n name: z.string().describe(\"The unique name identifier of the role\").nullable(),\n title: z.string().describe(\"Display title of the role\").nullable(),\n isCustom: z.boolean().describe(\"Whether this is a custom role\").nullable().optional(),\n resourceId: z.string().describe(\"The ID of the resource\").nullable(),\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\").nullable(),\n appliesToUsers: z.boolean().describe(\"Whether applies to users\").nullable(),\n appliesToRobots: z.boolean().describe(\"Whether applies to robots\").nullable(),\n}).passthrough().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,qBAAqB,EAAE,OAAO;CACzC,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+C;AAC3D,MAAM,iCAAiC,EAAE,OAAO;CAC9C,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,MA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zod.z.string().describe("The unique identifier of the role.").nullable().optional(),
12
12
  role_name: zod.z.string().describe("The display name of the role.").nullable().optional()
13
- }).describe("Role assigned to a user.");
13
+ }).passthrough().describe("Role assigned to a user.");
14
14
  const SanityGetUsers_ResourceUserSchema = zod.z.object({
15
15
  name: zod.z.string().describe("The display name of the user.").nullable().optional(),
16
16
  email: zod.z.string().describe("The email address of the user.").nullable().optional(),
17
17
  roles: zod.z.array(SanityGetUsers_UserRoleSchema).describe("List of roles assigned to this user.").nullable().optional(),
18
18
  user_id: zod.z.string().describe("The unique identifier of the user.").nullable().optional()
19
- }).describe("A user with their assigned roles.");
19
+ }).passthrough().describe("A user with their assigned roles.");
20
20
  const SanityGetUsersOutput = zod.z.object({
21
21
  total: zod.z.number().int().describe("Total number of users for the resource.").nullable().optional(),
22
22
  users: zod.z.array(SanityGetUsers_ResourceUserSchema).describe("List of users with their assigned roles.").nullable().optional(),
23
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.");
24
+ }).passthrough().describe("Response model for listing users of a resource.");
25
25
  const sanityGetUsers = require_action.action("SANITY_GET_USERS", {
26
26
  slug: "sanity-get-users",
27
27
  name: "List Resource Users",
@@ -1 +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,CAA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;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
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.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.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}).passthrough().describe(\"Role assigned to a user.\");\nconst SanityGetUsers_ResourceUserSchema = 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}).passthrough().describe(\"A user with their assigned roles.\");\nexport const SanityGetUsersOutput = 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}).passthrough().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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C,SAAS,mCAAmC;AAC7D,MAAa,uBAAuBA,IAAAA,EAAE,OAAO;CAC3C,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,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAE3E,MAAa,iBAAiBC,eAAAA,OAAO,oBAAoB;CACvD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,34 @@
1
1
  import { z } from "zod";
2
2
 
3
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]>;
4
+ declare const SanityGetUsersInput: z.ZodObject<{
5
+ limit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
6
+ next_cursor: z.ZodOptional<z.ZodString>;
7
+ resource_id: z.ZodString;
8
+ resource_type: z.ZodEnum<{
9
+ organization: "organization";
10
+ project: "project";
11
+ }>;
12
+ }, z.core.$strip>;
13
+ declare const SanityGetUsersOutput: z.ZodObject<{
14
+ total: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
15
+ users: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
16
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ roles: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
19
+ role_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ role_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ }, z.core.$loose>>>>;
22
+ user_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
+ }, z.core.$loose>>>>;
24
+ next_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
+ }, z.core.$loose>;
26
+ declare const sanityGetUsers: import("@keystrokehq/action").WorkflowActionDefinition<{
27
+ resource_id: string;
28
+ resource_type: "organization" | "project";
29
+ limit?: number | undefined;
30
+ next_cursor?: string | undefined;
31
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
32
  //#endregion
8
33
  export { sanityGetUsers };
9
34
  //# sourceMappingURL=get-users.d.cts.map
@@ -1 +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"}
1
+ {"version":3,"file":"get-users.d.cts","names":[],"sources":["../../src/actions/get-users.ts"],"mappings":";;;cAIa,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;;;;;;cAgBnB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAMpB,cAAA,gCAAc,wBAAA"}
@@ -1,9 +1,34 @@
1
1
  import { z } from "zod";
2
2
 
3
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]>;
4
+ declare const SanityGetUsersInput: z.ZodObject<{
5
+ limit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
6
+ next_cursor: z.ZodOptional<z.ZodString>;
7
+ resource_id: z.ZodString;
8
+ resource_type: z.ZodEnum<{
9
+ organization: "organization";
10
+ project: "project";
11
+ }>;
12
+ }, z.core.$strip>;
13
+ declare const SanityGetUsersOutput: z.ZodObject<{
14
+ total: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
15
+ users: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
16
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ roles: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
19
+ role_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ role_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ }, z.core.$loose>>>>;
22
+ user_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
+ }, z.core.$loose>>>>;
24
+ next_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
+ }, z.core.$loose>;
26
+ declare const sanityGetUsers: import("@keystrokehq/action").WorkflowActionDefinition<{
27
+ resource_id: string;
28
+ resource_type: "organization" | "project";
29
+ limit?: number | undefined;
30
+ next_cursor?: string | undefined;
31
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
32
  //#endregion
8
33
  export { sanityGetUsers };
9
34
  //# sourceMappingURL=get-users.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-users.d.mts","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"}
1
+ {"version":3,"file":"get-users.d.mts","names":[],"sources":["../../src/actions/get-users.ts"],"mappings":";;;cAIa,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;;;;;;cAgBnB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAMpB,cAAA,gCAAc,wBAAA"}
@@ -10,13 +10,13 @@ const SanityGetUsersInput = z.object({
10
10
  const SanityGetUsers_UserRoleSchema = z.object({
11
11
  role_id: z.string().describe("The unique identifier of the role.").nullable().optional(),
12
12
  role_name: z.string().describe("The display name of the role.").nullable().optional()
13
- }).describe("Role assigned to a user.");
13
+ }).passthrough().describe("Role assigned to a user.");
14
14
  const SanityGetUsers_ResourceUserSchema = z.object({
15
15
  name: z.string().describe("The display name of the user.").nullable().optional(),
16
16
  email: z.string().describe("The email address of the user.").nullable().optional(),
17
17
  roles: z.array(SanityGetUsers_UserRoleSchema).describe("List of roles assigned to this user.").nullable().optional(),
18
18
  user_id: z.string().describe("The unique identifier of the user.").nullable().optional()
19
- }).describe("A user with their assigned roles.");
19
+ }).passthrough().describe("A user with their assigned roles.");
20
20
  const sanityGetUsers = action("SANITY_GET_USERS", {
21
21
  slug: "sanity-get-users",
22
22
  name: "List Resource Users",
@@ -26,7 +26,7 @@ const sanityGetUsers = action("SANITY_GET_USERS", {
26
26
  total: z.number().int().describe("Total number of users for the resource.").nullable().optional(),
27
27
  users: z.array(SanityGetUsers_ResourceUserSchema).describe("List of users with their assigned roles.").nullable().optional(),
28
28
  next_cursor: z.string().describe("Cursor for pagination. Present when there are more results available.").nullable().optional()
29
- }).describe("Response model for listing users of a resource.")
29
+ }).passthrough().describe("Response model for listing users of a resource.")
30
30
  });
31
31
  //#endregion
32
32
  export { sanityGetUsers };
@@ -1 +1 @@
1
- {"version":3,"file":"get-users.mjs","names":[],"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"],"m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C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChG,OAAO,EAAE,MAAM,iCAAiC,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3H,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChI,CAAC,CAAC,CAAC,SAAS,iDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"get-users.mjs","names":[],"sources":["../../src/actions/get-users.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityGetUsersInput = 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.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}).passthrough().describe(\"Role assigned to a user.\");\nconst SanityGetUsers_ResourceUserSchema = 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}).passthrough().describe(\"A user with their assigned roles.\");\nexport const SanityGetUsersOutput = 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}).passthrough().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,sBAAsB,EAAE,OAAO;CAC1C,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;CACrI,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS;CACnJ,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,iIAAiI;CAClK,eAAe,EAAE,KAAK,CAAC,gBAAgB,SAAS,CAAC,CAAC,CAAC,SAAS,mIAAmI;AACjM,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAM,gCAAgC,EAAE,OAAO;CAC7C,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0BAA0B;AACpD,MAAM,oCAAoC,EAAE,OAAO;CACjD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,OAAO,EAAE,MAAM,6BAA6B,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnH,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mCAAmC;AAO7D,MAAa,iBAAiB,OAAO,oBAAoB;CACvD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAXkC,EAAE,OAAO;EAC3C,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChG,OAAO,EAAE,MAAM,iCAAiC,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3H,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAOhB;AACV,CAAC"}
@@ -3,14 +3,14 @@ let zod = require("zod");
3
3
  //#region src/actions/list-org-roles.ts
4
4
  const SanityListOrgRolesInput = zod.z.object({ organization_id: zod.z.string().describe("The unique identifier of the organization") });
5
5
  const SanityListOrgRoles_RoleSchema = zod.z.object({
6
- name: zod.z.string().describe("The machine-readable name of the role"),
7
- title: zod.z.string().describe("The human-readable title of the role"),
8
- grants: zod.z.object({}).describe("Map of resource types to their grants").nullable().optional(),
6
+ name: zod.z.string().describe("The machine-readable name of the role").nullable(),
7
+ title: zod.z.string().describe("The human-readable title of the role").nullable(),
8
+ grants: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Map of resource types to their grants").nullable().optional(),
9
9
  isCustom: zod.z.boolean().describe("Whether this is a custom role defined by the user").nullable().optional(),
10
10
  description: zod.z.string().describe("Description of what the role allows").nullable().optional(),
11
11
  organizationId: zod.z.string().describe("The organization ID this role belongs to").nullable().optional()
12
- }).describe("Represents a single role with its details and grants.");
13
- const SanityListOrgRolesOutput = zod.z.object({ roles: zod.z.array(SanityListOrgRoles_RoleSchema).describe("List of roles available in the organization") }).describe("Response model for listing organization roles.");
12
+ }).passthrough().describe("Represents a single role with its details and grants.");
13
+ const SanityListOrgRolesOutput = zod.z.object({ roles: zod.z.array(SanityListOrgRoles_RoleSchema).describe("List of roles available in the organization") }).passthrough().describe("Response model for listing organization roles.");
14
14
  const sanityListOrgRoles = require_action.action("SANITY_LIST_ORG_ROLES", {
15
15
  slug: "sanity-list-org-roles",
16
16
  name: "List Organization Roles",
@@ -1 +1 @@
1
- {"version":3,"file":"list-org-roles.cjs","names":["z","action"],"sources":["../../src/actions/list-org-roles.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityListOrgRolesInput: z.ZodTypeAny = z.object({\n organization_id: z.string().describe(\"The unique identifier of the organization\"),\n});\nconst SanityListOrgRoles_RoleSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"The machine-readable name of the role\"),\n title: z.string().describe(\"The human-readable title of the role\"),\n grants: z.object({}).describe(\"Map of resource types to their grants\").nullable().optional(),\n isCustom: z.boolean().describe(\"Whether this is a custom role defined by the user\").nullable().optional(),\n description: z.string().describe(\"Description of what the role allows\").nullable().optional(),\n organizationId: z.string().describe(\"The organization ID this role belongs to\").nullable().optional(),\n}).describe(\"Represents a single role with its details and grants.\");\nexport const SanityListOrgRolesOutput: z.ZodTypeAny = z.object({\n roles: z.array(SanityListOrgRoles_RoleSchema).describe(\"List of roles available in the organization\"),\n}).describe(\"Response model for listing organization roles.\");\n\nexport const sanityListOrgRoles = action(\"SANITY_LIST_ORG_ROLES\", {\n slug: \"sanity-list-org-roles\",\n name: \"List Organization Roles\",\n description: \"List all roles available for an organization. Use this action to retrieve all available roles that can be assigned to users within a specific Sanity organization. The organization_id is required to identify which organization's roles to list.\",\n input: SanityListOrgRolesInput,\n output: SanityListOrgRolesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAAwCA,IAAAA,EAAE,OAAO,EAC5D,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,EAClF,CAAC;AACD,MAAM,gCAA8CA,IAAAA,EAAE,OAAO;CAC3D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CACjE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CACjE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,SAAS,uDAAuD;AACnE,MAAa,2BAAyCA,IAAAA,EAAE,OAAO,EAC7D,OAAOA,IAAAA,EAAE,MAAM,6BAA6B,CAAC,CAAC,SAAS,6CAA6C,EACtG,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAE5D,MAAa,qBAAqBC,eAAAA,OAAO,yBAAyB;CAChE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-org-roles.cjs","names":["z","action"],"sources":["../../src/actions/list-org-roles.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityListOrgRolesInput = z.object({\n organization_id: z.string().describe(\"The unique identifier of the organization\"),\n});\nconst SanityListOrgRoles_RoleSchema = z.object({\n name: z.string().describe(\"The machine-readable name of the role\").nullable(),\n title: z.string().describe(\"The human-readable title of the role\").nullable(),\n grants: z.record(z.string(), z.unknown()).describe(\"Map of resource types to their grants\").nullable().optional(),\n isCustom: z.boolean().describe(\"Whether this is a custom role defined by the user\").nullable().optional(),\n description: z.string().describe(\"Description of what the role allows\").nullable().optional(),\n organizationId: z.string().describe(\"The organization ID this role belongs to\").nullable().optional(),\n}).passthrough().describe(\"Represents a single role with its details and grants.\");\nexport const SanityListOrgRolesOutput = z.object({\n roles: z.array(SanityListOrgRoles_RoleSchema).describe(\"List of roles available in the organization\"),\n}).passthrough().describe(\"Response model for listing organization roles.\");\n\nexport const sanityListOrgRoles = action(\"SANITY_LIST_ORG_ROLES\", {\n slug: \"sanity-list-org-roles\",\n name: \"List Organization Roles\",\n description: \"List all roles available for an organization. Use this action to retrieve all available roles that can be assigned to users within a specific Sanity organization. The organization_id is required to identify which organization's roles to list.\",\n input: SanityListOrgRolesInput,\n output: SanityListOrgRolesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO,EAC9C,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,EAClF,CAAC;AACD,MAAM,gCAAgCA,IAAAA,EAAE,OAAO;CAC7C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC5E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC5E,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAAuD;AACjF,MAAa,2BAA2BA,IAAAA,EAAE,OAAO,EAC/C,OAAOA,IAAAA,EAAE,MAAM,6BAA6B,CAAC,CAAC,SAAS,6CAA6C,EACtG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAAgD;AAE1E,MAAa,qBAAqBC,eAAAA,OAAO,yBAAyB;CAChE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,22 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/list-org-roles.d.ts
4
- declare const SanityListOrgRolesInput: z.ZodTypeAny;
5
- declare const SanityListOrgRolesOutput: z.ZodTypeAny;
6
- declare const sanityListOrgRoles: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SanityListOrgRolesInput: z.ZodObject<{
5
+ organization_id: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const SanityListOrgRolesOutput: z.ZodObject<{
8
+ roles: z.ZodArray<z.ZodObject<{
9
+ name: z.ZodNullable<z.ZodString>;
10
+ title: z.ZodNullable<z.ZodString>;
11
+ grants: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
12
+ isCustom: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
13
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ organizationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ }, z.core.$loose>>;
16
+ }, z.core.$loose>;
17
+ declare const sanityListOrgRoles: import("@keystrokehq/action").WorkflowActionDefinition<{
18
+ organization_id: string;
19
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
20
  //#endregion
8
21
  export { sanityListOrgRoles };
9
22
  //# sourceMappingURL=list-org-roles.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-org-roles.d.cts","names":[],"sources":["../../src/actions/list-org-roles.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAEtC;AAAA,cASW,wBAAA,EAA0B,CAAA,CAAE,UAEoB;AAAA,cAEhD,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"list-org-roles.d.cts","names":[],"sources":["../../src/actions/list-org-roles.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;cAWvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;cAIxB,kBAAA,gCAAkB,wBAAA"}
@@ -1,9 +1,22 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/list-org-roles.d.ts
4
- declare const SanityListOrgRolesInput: z.ZodTypeAny;
5
- declare const SanityListOrgRolesOutput: z.ZodTypeAny;
6
- declare const sanityListOrgRoles: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SanityListOrgRolesInput: z.ZodObject<{
5
+ organization_id: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const SanityListOrgRolesOutput: z.ZodObject<{
8
+ roles: z.ZodArray<z.ZodObject<{
9
+ name: z.ZodNullable<z.ZodString>;
10
+ title: z.ZodNullable<z.ZodString>;
11
+ grants: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
12
+ isCustom: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
13
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ organizationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ }, z.core.$loose>>;
16
+ }, z.core.$loose>;
17
+ declare const sanityListOrgRoles: import("@keystrokehq/action").WorkflowActionDefinition<{
18
+ organization_id: string;
19
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
20
  //#endregion
8
21
  export { sanityListOrgRoles };
9
22
  //# sourceMappingURL=list-org-roles.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-org-roles.d.mts","names":[],"sources":["../../src/actions/list-org-roles.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAEtC;AAAA,cASW,wBAAA,EAA0B,CAAA,CAAE,UAEoB;AAAA,cAEhD,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"list-org-roles.d.mts","names":[],"sources":["../../src/actions/list-org-roles.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;cAWvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;cAIxB,kBAAA,gCAAkB,wBAAA"}
@@ -3,19 +3,19 @@ import { z } from "zod";
3
3
  //#region src/actions/list-org-roles.ts
4
4
  const SanityListOrgRolesInput = z.object({ organization_id: z.string().describe("The unique identifier of the organization") });
5
5
  const SanityListOrgRoles_RoleSchema = z.object({
6
- name: z.string().describe("The machine-readable name of the role"),
7
- title: z.string().describe("The human-readable title of the role"),
8
- grants: z.object({}).describe("Map of resource types to their grants").nullable().optional(),
6
+ name: z.string().describe("The machine-readable name of the role").nullable(),
7
+ title: z.string().describe("The human-readable title of the role").nullable(),
8
+ grants: z.record(z.string(), z.unknown()).describe("Map of resource types to their grants").nullable().optional(),
9
9
  isCustom: z.boolean().describe("Whether this is a custom role defined by the user").nullable().optional(),
10
10
  description: z.string().describe("Description of what the role allows").nullable().optional(),
11
11
  organizationId: z.string().describe("The organization ID this role belongs to").nullable().optional()
12
- }).describe("Represents a single role with its details and grants.");
12
+ }).passthrough().describe("Represents a single role with its details and grants.");
13
13
  const sanityListOrgRoles = action("SANITY_LIST_ORG_ROLES", {
14
14
  slug: "sanity-list-org-roles",
15
15
  name: "List Organization Roles",
16
16
  description: "List all roles available for an organization. Use this action to retrieve all available roles that can be assigned to users within a specific Sanity organization. The organization_id is required to identify which organization's roles to list.",
17
17
  input: SanityListOrgRolesInput,
18
- output: z.object({ roles: z.array(SanityListOrgRoles_RoleSchema).describe("List of roles available in the organization") }).describe("Response model for listing organization roles.")
18
+ output: z.object({ roles: z.array(SanityListOrgRoles_RoleSchema).describe("List of roles available in the organization") }).passthrough().describe("Response model for listing organization roles.")
19
19
  });
20
20
  //#endregion
21
21
  export { sanityListOrgRoles };
@@ -1 +1 @@
1
- {"version":3,"file":"list-org-roles.mjs","names":[],"sources":["../../src/actions/list-org-roles.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityListOrgRolesInput: z.ZodTypeAny = z.object({\n organization_id: z.string().describe(\"The unique identifier of the organization\"),\n});\nconst SanityListOrgRoles_RoleSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"The machine-readable name of the role\"),\n title: z.string().describe(\"The human-readable title of the role\"),\n grants: z.object({}).describe(\"Map of resource types to their grants\").nullable().optional(),\n isCustom: z.boolean().describe(\"Whether this is a custom role defined by the user\").nullable().optional(),\n description: z.string().describe(\"Description of what the role allows\").nullable().optional(),\n organizationId: z.string().describe(\"The organization ID this role belongs to\").nullable().optional(),\n}).describe(\"Represents a single role with its details and grants.\");\nexport const SanityListOrgRolesOutput: z.ZodTypeAny = z.object({\n roles: z.array(SanityListOrgRoles_RoleSchema).describe(\"List of roles available in the organization\"),\n}).describe(\"Response model for listing organization roles.\");\n\nexport const sanityListOrgRoles = action(\"SANITY_LIST_ORG_ROLES\", {\n slug: \"sanity-list-org-roles\",\n name: \"List Organization Roles\",\n description: \"List all roles available for an organization. Use this action to retrieve all available roles that can be assigned to users within a specific Sanity organization. The organization_id is required to identify which organization's roles to list.\",\n input: SanityListOrgRolesInput,\n output: SanityListOrgRolesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAAwC,EAAE,OAAO,EAC5D,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,EAClF,CAAC;AACD,MAAM,gCAA8C,EAAE,OAAO;CAC3D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CACjE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CACjE,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,SAAS,uDAAuD;AAKnE,MAAa,qBAAqB,OAAO,yBAAyB;CAChE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAToD,EAAE,OAAO,EAC7D,OAAO,EAAE,MAAM,6BAA6B,CAAC,CAAC,SAAS,6CAA6C,EACtG,CAAC,CAAC,CAAC,SAAS,gDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"list-org-roles.mjs","names":[],"sources":["../../src/actions/list-org-roles.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityListOrgRolesInput = z.object({\n organization_id: z.string().describe(\"The unique identifier of the organization\"),\n});\nconst SanityListOrgRoles_RoleSchema = z.object({\n name: z.string().describe(\"The machine-readable name of the role\").nullable(),\n title: z.string().describe(\"The human-readable title of the role\").nullable(),\n grants: z.record(z.string(), z.unknown()).describe(\"Map of resource types to their grants\").nullable().optional(),\n isCustom: z.boolean().describe(\"Whether this is a custom role defined by the user\").nullable().optional(),\n description: z.string().describe(\"Description of what the role allows\").nullable().optional(),\n organizationId: z.string().describe(\"The organization ID this role belongs to\").nullable().optional(),\n}).passthrough().describe(\"Represents a single role with its details and grants.\");\nexport const SanityListOrgRolesOutput = z.object({\n roles: z.array(SanityListOrgRoles_RoleSchema).describe(\"List of roles available in the organization\"),\n}).passthrough().describe(\"Response model for listing organization roles.\");\n\nexport const sanityListOrgRoles = action(\"SANITY_LIST_ORG_ROLES\", {\n slug: \"sanity-list-org-roles\",\n name: \"List Organization Roles\",\n description: \"List all roles available for an organization. Use this action to retrieve all available roles that can be assigned to users within a specific Sanity organization. The organization_id is required to identify which organization's roles to list.\",\n input: SanityListOrgRolesInput,\n output: SanityListOrgRolesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0B,EAAE,OAAO,EAC9C,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,EAClF,CAAC;AACD,MAAM,gCAAgC,EAAE,OAAO;CAC7C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC5E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC5E,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAAuD;AAKjF,MAAa,qBAAqB,OAAO,yBAAyB;CAChE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATsC,EAAE,OAAO,EAC/C,OAAO,EAAE,MAAM,6BAA6B,CAAC,CAAC,SAAS,6CAA6C,EACtG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAOhB;AACV,CAAC"}
@@ -8,17 +8,17 @@ const SanityListUserAttributesInput = zod.z.object({
8
8
  organization_id: zod.z.string().describe("Unique identifier of the organization")
9
9
  }).describe("Request model for retrieving user attributes from a Sanity organization.");
10
10
  const SanityListUserAttributes_AttributeItemSchema = zod.z.object({
11
- key: zod.z.string().describe("The key/name of the attribute"),
12
- type: zod.z.string().describe("The type of the attribute"),
11
+ key: zod.z.string().describe("The key/name of the attribute").nullable(),
12
+ type: zod.z.string().describe("The type of the attribute").nullable(),
13
13
  values: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Possible values for this attribute").nullable().optional(),
14
14
  active_value: zod.z.record(zod.z.string(), zod.z.unknown()).describe("The active value for this attribute").nullable().optional(),
15
15
  active_source: zod.z.string().describe("The source of the active value").nullable().optional()
16
- }).describe("Individual user attribute item.");
16
+ }).passthrough().describe("Individual user attribute item.");
17
17
  const SanityListUserAttributesOutput = zod.z.object({
18
18
  attributes: zod.z.array(SanityListUserAttributes_AttributeItemSchema).describe("List of user attributes"),
19
- sanityUserId: zod.z.string().describe("ID of the user"),
20
- organizationId: zod.z.string().describe("ID of the organization")
21
- }).describe("Response model for user attributes retrieval.");
19
+ sanityUserId: zod.z.string().describe("ID of the user").nullable(),
20
+ organizationId: zod.z.string().describe("ID of the organization").nullable()
21
+ }).passthrough().describe("Response model for user attributes retrieval.");
22
22
  const sanityListUserAttributes = require_action.action("SANITY_LIST_USER_ATTRIBUTES", {
23
23
  slug: "sanity-list-user-attributes",
24
24
  name: "List User Attributes",
@@ -1 +1 @@
1
- {"version":3,"file":"list-user-attributes.cjs","names":["z","action"],"sources":["../../src/actions/list-user-attributes.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityListUserAttributesInput: z.ZodTypeAny = z.object({\n limit: z.number().int().default(50).describe(\"Maximum number of attributes to return\").optional(),\n cursor: z.string().describe(\"The last attribute key from the previous page (used for pagination)\").optional(),\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 retrieving user attributes from a Sanity organization.\");\nconst SanityListUserAttributes_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 SanityListUserAttributesOutput: z.ZodTypeAny = z.object({\n attributes: z.array(SanityListUserAttributes_AttributeItemSchema).describe(\"List of user attributes\"),\n sanityUserId: z.string().describe(\"ID of the user\"),\n organizationId: z.string().describe(\"ID of the organization\"),\n}).describe(\"Response model for user attributes retrieval.\");\n\nexport const sanityListUserAttributes = action(\"SANITY_LIST_USER_ATTRIBUTES\", {\n slug: \"sanity-list-user-attributes\",\n name: \"List User Attributes\",\n description: \"Tool to retrieve user attributes from a Sanity organization. Use when you need to get the attributes (such as roles, permissions, or custom properties) associated with a specific user in a Sanity organization. Supports pagination via the cursor parameter.\",\n input: SanityListUserAttributesInput,\n output: SanityListUserAttributesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAA8CA,IAAAA,EAAE,OAAO;CAClE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CA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AM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-user-attributes.cjs","names":["z","action"],"sources":["../../src/actions/list-user-attributes.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityListUserAttributesInput = z.object({\n limit: z.number().int().default(50).describe(\"Maximum number of attributes to return\").optional(),\n cursor: z.string().describe(\"The last attribute key from the previous page (used for pagination)\").optional(),\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 retrieving user attributes from a Sanity organization.\");\nconst SanityListUserAttributes_AttributeItemSchema = z.object({\n key: z.string().describe(\"The key/name of the attribute\").nullable(),\n type: z.string().describe(\"The type of the attribute\").nullable(),\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}).passthrough().describe(\"Individual user attribute item.\");\nexport const SanityListUserAttributesOutput = z.object({\n attributes: z.array(SanityListUserAttributes_AttributeItemSchema).describe(\"List of user attributes\"),\n sanityUserId: z.string().describe(\"ID of the user\").nullable(),\n organizationId: z.string().describe(\"ID of the organization\").nullable(),\n}).passthrough().describe(\"Response model for user attributes retrieval.\");\n\nexport const sanityListUserAttributes = action(\"SANITY_LIST_USER_ATTRIBUTES\", {\n slug: \"sanity-list-user-attributes\",\n name: \"List User Attributes\",\n description: \"Tool to retrieve user attributes from a Sanity organization. Use when you need to get the attributes (such as roles, permissions, or custom properties) associated with a specific user in a Sanity organization. Supports pagination via the cursor parameter.\",\n input: SanityListUserAttributesInput,\n output: SanityListUserAttributesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAA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AC,YAAY,CAAC,CAAC,SAAS,+CAA+C;AAEzE,MAAa,2BAA2BC,eAAAA,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,29 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/list-user-attributes.d.ts
4
- declare const SanityListUserAttributesInput: z.ZodTypeAny;
5
- declare const SanityListUserAttributesOutput: z.ZodTypeAny;
6
- declare const sanityListUserAttributes: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SanityListUserAttributesInput: z.ZodObject<{
5
+ limit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
6
+ cursor: z.ZodOptional<z.ZodString>;
7
+ sanity_user_id: z.ZodString;
8
+ organization_id: z.ZodString;
9
+ }, z.core.$strip>;
10
+ declare const SanityListUserAttributesOutput: z.ZodObject<{
11
+ attributes: z.ZodArray<z.ZodObject<{
12
+ key: z.ZodNullable<z.ZodString>;
13
+ type: z.ZodNullable<z.ZodString>;
14
+ values: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
15
+ active_value: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
16
+ active_source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ }, z.core.$loose>>;
18
+ sanityUserId: z.ZodNullable<z.ZodString>;
19
+ organizationId: z.ZodNullable<z.ZodString>;
20
+ }, z.core.$loose>;
21
+ declare const sanityListUserAttributes: import("@keystrokehq/action").WorkflowActionDefinition<{
22
+ sanity_user_id: string;
23
+ organization_id: string;
24
+ limit?: number | undefined;
25
+ cursor?: string | undefined;
26
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
27
  //#endregion
8
28
  export { sanityListUserAttributes };
9
29
  //# sourceMappingURL=list-user-attributes.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-user-attributes.d.cts","names":[],"sources":["../../src/actions/list-user-attributes.ts"],"mappings":";;;cAIa,6BAAA,EAA+B,CAAA,CAAE,UAKyC;AAAA,cAQ1E,8BAAA,EAAgC,CAAA,CAAE,UAIa;AAAA,cAE/C,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"list-user-attributes.d.cts","names":[],"sources":["../../src/actions/list-user-attributes.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;cAa7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;cAM9B,wBAAA,gCAAwB,wBAAA"}
@@ -1,9 +1,29 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/list-user-attributes.d.ts
4
- declare const SanityListUserAttributesInput: z.ZodTypeAny;
5
- declare const SanityListUserAttributesOutput: z.ZodTypeAny;
6
- declare const sanityListUserAttributes: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SanityListUserAttributesInput: z.ZodObject<{
5
+ limit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
6
+ cursor: z.ZodOptional<z.ZodString>;
7
+ sanity_user_id: z.ZodString;
8
+ organization_id: z.ZodString;
9
+ }, z.core.$strip>;
10
+ declare const SanityListUserAttributesOutput: z.ZodObject<{
11
+ attributes: z.ZodArray<z.ZodObject<{
12
+ key: z.ZodNullable<z.ZodString>;
13
+ type: z.ZodNullable<z.ZodString>;
14
+ values: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
15
+ active_value: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
16
+ active_source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ }, z.core.$loose>>;
18
+ sanityUserId: z.ZodNullable<z.ZodString>;
19
+ organizationId: z.ZodNullable<z.ZodString>;
20
+ }, z.core.$loose>;
21
+ declare const sanityListUserAttributes: import("@keystrokehq/action").WorkflowActionDefinition<{
22
+ sanity_user_id: string;
23
+ organization_id: string;
24
+ limit?: number | undefined;
25
+ cursor?: string | undefined;
26
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
27
  //#endregion
8
28
  export { sanityListUserAttributes };
9
29
  //# sourceMappingURL=list-user-attributes.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-user-attributes.d.mts","names":[],"sources":["../../src/actions/list-user-attributes.ts"],"mappings":";;;cAIa,6BAAA,EAA+B,CAAA,CAAE,UAKyC;AAAA,cAQ1E,8BAAA,EAAgC,CAAA,CAAE,UAIa;AAAA,cAE/C,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"list-user-attributes.d.mts","names":[],"sources":["../../src/actions/list-user-attributes.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;cAa7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;cAM9B,wBAAA,gCAAwB,wBAAA"}
@@ -8,12 +8,12 @@ const SanityListUserAttributesInput = z.object({
8
8
  organization_id: z.string().describe("Unique identifier of the organization")
9
9
  }).describe("Request model for retrieving user attributes from a Sanity organization.");
10
10
  const SanityListUserAttributes_AttributeItemSchema = z.object({
11
- key: z.string().describe("The key/name of the attribute"),
12
- type: z.string().describe("The type of the attribute"),
11
+ key: z.string().describe("The key/name of the attribute").nullable(),
12
+ type: z.string().describe("The type of the attribute").nullable(),
13
13
  values: z.record(z.string(), z.unknown()).describe("Possible values for this attribute").nullable().optional(),
14
14
  active_value: z.record(z.string(), z.unknown()).describe("The active value for this attribute").nullable().optional(),
15
15
  active_source: z.string().describe("The source of the active value").nullable().optional()
16
- }).describe("Individual user attribute item.");
16
+ }).passthrough().describe("Individual user attribute item.");
17
17
  const sanityListUserAttributes = action("SANITY_LIST_USER_ATTRIBUTES", {
18
18
  slug: "sanity-list-user-attributes",
19
19
  name: "List User Attributes",
@@ -21,9 +21,9 @@ const sanityListUserAttributes = action("SANITY_LIST_USER_ATTRIBUTES", {
21
21
  input: SanityListUserAttributesInput,
22
22
  output: z.object({
23
23
  attributes: z.array(SanityListUserAttributes_AttributeItemSchema).describe("List of user attributes"),
24
- sanityUserId: z.string().describe("ID of the user"),
25
- organizationId: z.string().describe("ID of the organization")
26
- }).describe("Response model for user attributes retrieval.")
24
+ sanityUserId: z.string().describe("ID of the user").nullable(),
25
+ organizationId: z.string().describe("ID of the organization").nullable()
26
+ }).passthrough().describe("Response model for user attributes retrieval.")
27
27
  });
28
28
  //#endregion
29
29
  export { sanityListUserAttributes };