@keystrokehq/sanity 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (127) hide show
  1. package/dist/actions/add-default-role-to-users.cjs +1 -1
  2. package/dist/actions/add-default-role-to-users.cjs.map +1 -1
  3. package/dist/actions/add-default-role-to-users.d.cts +1 -1
  4. package/dist/actions/add-default-role-to-users.d.mts +1 -1
  5. package/dist/actions/add-default-role-to-users.mjs +1 -1
  6. package/dist/actions/add-default-role-to-users.mjs.map +1 -1
  7. package/dist/actions/create-attr-definition.cjs +1 -1
  8. package/dist/actions/create-attr-definition.cjs.map +1 -1
  9. package/dist/actions/create-attr-definition.d.cts +1 -1
  10. package/dist/actions/create-attr-definition.d.mts +1 -1
  11. package/dist/actions/create-attr-definition.mjs +1 -1
  12. package/dist/actions/create-attr-definition.mjs.map +1 -1
  13. package/dist/actions/create-prompt-post.cjs +2 -2
  14. package/dist/actions/create-prompt-post.cjs.map +1 -1
  15. package/dist/actions/create-prompt-post.d.cts +2 -2
  16. package/dist/actions/create-prompt-post.d.mts +2 -2
  17. package/dist/actions/create-prompt-post.mjs +2 -2
  18. package/dist/actions/create-prompt-post.mjs.map +1 -1
  19. package/dist/actions/delete-attr-definition.cjs +1 -1
  20. package/dist/actions/delete-attr-definition.cjs.map +1 -1
  21. package/dist/actions/delete-attr-definition.d.cts +1 -1
  22. package/dist/actions/delete-attr-definition.d.mts +1 -1
  23. package/dist/actions/delete-attr-definition.mjs +1 -1
  24. package/dist/actions/delete-attr-definition.mjs.map +1 -1
  25. package/dist/actions/delete-document.cjs +1 -1
  26. package/dist/actions/delete-document.cjs.map +1 -1
  27. package/dist/actions/delete-document.d.cts +1 -1
  28. package/dist/actions/delete-document.d.mts +1 -1
  29. package/dist/actions/delete-document.mjs +1 -1
  30. package/dist/actions/delete-document.mjs.map +1 -1
  31. package/dist/actions/delete-user-attributes.cjs +3 -3
  32. package/dist/actions/delete-user-attributes.cjs.map +1 -1
  33. package/dist/actions/delete-user-attributes.d.cts +4 -3
  34. package/dist/actions/delete-user-attributes.d.mts +4 -3
  35. package/dist/actions/delete-user-attributes.mjs +3 -3
  36. package/dist/actions/delete-user-attributes.mjs.map +1 -1
  37. package/dist/actions/get-document.cjs +2 -2
  38. package/dist/actions/get-document.cjs.map +1 -1
  39. package/dist/actions/get-document.d.cts +2 -2
  40. package/dist/actions/get-document.d.mts +2 -2
  41. package/dist/actions/get-document.mjs +2 -2
  42. package/dist/actions/get-document.mjs.map +1 -1
  43. package/dist/actions/get-invite-by-token.cjs +1 -1
  44. package/dist/actions/get-invite-by-token.cjs.map +1 -1
  45. package/dist/actions/get-invite-by-token.d.cts +1 -1
  46. package/dist/actions/get-invite-by-token.d.mts +1 -1
  47. package/dist/actions/get-invite-by-token.mjs +1 -1
  48. package/dist/actions/get-invite-by-token.mjs.map +1 -1
  49. package/dist/actions/get-org-role.cjs +3 -3
  50. package/dist/actions/get-org-role.cjs.map +1 -1
  51. package/dist/actions/get-org-role.d.cts +3 -3
  52. package/dist/actions/get-org-role.d.mts +3 -3
  53. package/dist/actions/get-org-role.mjs +3 -3
  54. package/dist/actions/get-org-role.mjs.map +1 -1
  55. package/dist/actions/get-permission.cjs +2 -2
  56. package/dist/actions/get-permission.cjs.map +1 -1
  57. package/dist/actions/get-permission.d.cts +2 -2
  58. package/dist/actions/get-permission.d.mts +2 -2
  59. package/dist/actions/get-permission.mjs +2 -2
  60. package/dist/actions/get-permission.mjs.map +1 -1
  61. package/dist/actions/get-project.cjs +5 -5
  62. package/dist/actions/get-project.cjs.map +1 -1
  63. package/dist/actions/get-project.d.cts +5 -5
  64. package/dist/actions/get-project.d.mts +5 -5
  65. package/dist/actions/get-project.mjs +5 -5
  66. package/dist/actions/get-project.mjs.map +1 -1
  67. package/dist/actions/get-robots.cjs +3 -3
  68. package/dist/actions/get-robots.cjs.map +1 -1
  69. package/dist/actions/get-robots.d.cts +3 -3
  70. package/dist/actions/get-robots.d.mts +3 -3
  71. package/dist/actions/get-robots.mjs +3 -3
  72. package/dist/actions/get-robots.mjs.map +1 -1
  73. package/dist/actions/get-role.cjs +2 -2
  74. package/dist/actions/get-role.cjs.map +1 -1
  75. package/dist/actions/get-role.d.cts +2 -2
  76. package/dist/actions/get-role.d.mts +2 -2
  77. package/dist/actions/get-role.mjs +2 -2
  78. package/dist/actions/get-role.mjs.map +1 -1
  79. package/dist/actions/get-users.cjs +3 -3
  80. package/dist/actions/get-users.cjs.map +1 -1
  81. package/dist/actions/get-users.d.cts +3 -3
  82. package/dist/actions/get-users.d.mts +3 -3
  83. package/dist/actions/get-users.mjs +3 -3
  84. package/dist/actions/get-users.mjs.map +1 -1
  85. package/dist/actions/list-org-roles.cjs +3 -3
  86. package/dist/actions/list-org-roles.cjs.map +1 -1
  87. package/dist/actions/list-org-roles.d.cts +3 -3
  88. package/dist/actions/list-org-roles.d.mts +3 -3
  89. package/dist/actions/list-org-roles.mjs +3 -3
  90. package/dist/actions/list-org-roles.mjs.map +1 -1
  91. package/dist/actions/list-user-attributes.cjs +2 -2
  92. package/dist/actions/list-user-attributes.cjs.map +1 -1
  93. package/dist/actions/list-user-attributes.d.cts +2 -2
  94. package/dist/actions/list-user-attributes.d.mts +2 -2
  95. package/dist/actions/list-user-attributes.mjs +2 -2
  96. package/dist/actions/list-user-attributes.mjs.map +1 -1
  97. package/dist/actions/query-all-screening.cjs +1 -1
  98. package/dist/actions/query-all-screening.cjs.map +1 -1
  99. package/dist/actions/query-all-screening.d.cts +1 -1
  100. package/dist/actions/query-all-screening.d.mts +1 -1
  101. package/dist/actions/query-all-screening.mjs +1 -1
  102. package/dist/actions/query-all-screening.mjs.map +1 -1
  103. package/dist/actions/query-documents.cjs +2 -2
  104. package/dist/actions/query-documents.cjs.map +1 -1
  105. package/dist/actions/query-documents.d.cts +3 -3
  106. package/dist/actions/query-documents.d.mts +3 -3
  107. package/dist/actions/query-documents.mjs +2 -2
  108. package/dist/actions/query-documents.mjs.map +1 -1
  109. package/dist/actions/update-org-acl.cjs +1 -1
  110. package/dist/actions/update-org-acl.cjs.map +1 -1
  111. package/dist/actions/update-org-acl.d.cts +1 -1
  112. package/dist/actions/update-org-acl.d.mts +1 -1
  113. package/dist/actions/update-org-acl.mjs +1 -1
  114. package/dist/actions/update-org-acl.mjs.map +1 -1
  115. package/dist/actions/update-user-attributes-values.cjs +4 -4
  116. package/dist/actions/update-user-attributes-values.cjs.map +1 -1
  117. package/dist/actions/update-user-attributes-values.d.cts +5 -5
  118. package/dist/actions/update-user-attributes-values.d.mts +5 -5
  119. package/dist/actions/update-user-attributes-values.mjs +4 -4
  120. package/dist/actions/update-user-attributes-values.mjs.map +1 -1
  121. package/dist/actions/validate-credential.cjs +3 -3
  122. package/dist/actions/validate-credential.cjs.map +1 -1
  123. package/dist/actions/validate-credential.d.cts +3 -3
  124. package/dist/actions/validate-credential.d.mts +3 -3
  125. package/dist/actions/validate-credential.mjs +3 -3
  126. package/dist/actions/validate-credential.mjs.map +1 -1
  127. package/package.json +1 -1
@@ -5,19 +5,19 @@ const SanityGetProjectInput = z.object({ project_id: z.string().describe("The un
5
5
  const SanityGetProject_ProjectPlanSchema = z.object({
6
6
  name: z.string().describe("The name of the plan.").nullable().optional(),
7
7
  tier: z.string().describe("The tier level of the plan.").nullable().optional()
8
- }).describe("Plan information for the project.");
8
+ }).passthrough().describe("Plan information for the project.");
9
9
  const SanityGetProject_ProjectMemberRoleSchema = z.object({
10
10
  name: z.string().describe("The name of the role.").nullable().optional(),
11
11
  title: z.string().describe("The display title of the role.").nullable().optional()
12
- }).describe("Role information for a project member.");
12
+ }).passthrough().describe("Role information for a project member.");
13
13
  const SanityGetProject_ProjectMemberSchema = z.object({
14
14
  id: z.string().describe("The unique identifier of the member.").nullable().optional(),
15
15
  role: z.string().describe("The primary role name of the member (deprecated, use roles array).").nullable().optional(),
16
16
  roles: z.array(SanityGetProject_ProjectMemberRoleSchema).describe("List of roles assigned to this member.").nullable().optional(),
17
17
  isRobot: z.boolean().describe("Whether this member is a robot/service account.").nullable().optional(),
18
18
  createdAt: z.string().describe("ISO 8601 timestamp when the member was added to the project.").nullable().optional()
19
- }).describe("A member of the project with their role information.");
20
- const SanityGetProject_ProjectMetadataSchema = z.object({ color: z.string().describe("Color code associated with the project.").nullable().optional() }).describe("Metadata associated with the project.");
19
+ }).passthrough().describe("A member of the project with their role information.");
20
+ const SanityGetProject_ProjectMetadataSchema = z.object({ color: z.string().describe("Color code associated with the project.").nullable().optional() }).passthrough().describe("Metadata associated with the project.");
21
21
  const sanityGetProject = action("SANITY_GET_PROJECT", {
22
22
  slug: "sanity-get-project",
23
23
  name: "Get Project",
@@ -36,7 +36,7 @@ const sanityGetProject = action("SANITY_GET_PROJECT", {
36
36
  displayName: z.string().describe("The display name of the project.").nullable(),
37
37
  organizationId: z.string().describe("The ID of the organization this project belongs to.").nullable().optional(),
38
38
  activityFeedEnabled: z.boolean().describe("Whether activity feed is enabled for the project.").nullable().optional()
39
- }).describe("Response model for the get project operation.")
39
+ }).passthrough().describe("Response model for the get project operation.")
40
40
  });
41
41
  //#endregion
42
42
  export { sanityGetProject };
@@ -1 +1 @@
1
- {"version":3,"file":"get-project.mjs","names":[],"sources":["../../src/actions/get-project.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityGetProjectInput = z.object({\n project_id: z.string().describe(\"The unique ID of the project to retrieve.\"),\n}).describe(\"Request parameters for retrieving a project.\");\nconst SanityGetProject_ProjectPlanSchema = z.object({\n name: z.string().describe(\"The name of the plan.\").nullable().optional(),\n tier: z.string().describe(\"The tier level of the plan.\").nullable().optional(),\n}).describe(\"Plan information for the project.\");\nconst SanityGetProject_ProjectMemberRoleSchema = z.object({\n name: z.string().describe(\"The name of the role.\").nullable().optional(),\n title: z.string().describe(\"The display title of the role.\").nullable().optional(),\n}).describe(\"Role information for a project member.\");\nconst SanityGetProject_ProjectMemberSchema = z.object({\n id: z.string().describe(\"The unique identifier of the member.\").nullable().optional(),\n role: z.string().describe(\"The primary role name of the member (deprecated, use roles array).\").nullable().optional(),\n roles: z.array(SanityGetProject_ProjectMemberRoleSchema).describe(\"List of roles assigned to this member.\").nullable().optional(),\n isRobot: z.boolean().describe(\"Whether this member is a robot/service account.\").nullable().optional(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the member was added to the project.\").nullable().optional(),\n}).describe(\"A member of the project with their role information.\");\nconst SanityGetProject_ProjectMetadataSchema = z.object({\n color: z.string().describe(\"Color code associated with the project.\").nullable().optional(),\n}).describe(\"Metadata associated with the project.\");\nexport const SanityGetProjectOutput = z.object({\n id: z.string().describe(\"The unique identifier of the project.\").nullable(),\n plan: SanityGetProject_ProjectPlanSchema.nullable().optional(),\n members: z.array(SanityGetProject_ProjectMemberSchema).describe(\"List of project members with their roles (included when includeMembers is true).\").nullable().optional(),\n features: z.array(z.string()).describe(\"List of feature names enabled for the project (included when includeFeatures is true).\").nullable().optional(),\n metadata: SanityGetProject_ProjectMetadataSchema.nullable().optional(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the project was created.\").nullable().optional(),\n isBlocked: z.boolean().describe(\"Whether the project is blocked.\").nullable().optional(),\n isDisabled: z.boolean().describe(\"Whether the project is disabled.\").nullable().optional(),\n studioHost: z.string().describe(\"The custom studio host URL for the project.\").nullable().optional(),\n displayName: z.string().describe(\"The display name of the project.\").nullable(),\n organizationId: z.string().describe(\"The ID of the organization this project belongs to.\").nullable().optional(),\n activityFeedEnabled: z.boolean().describe(\"Whether activity feed is enabled for the project.\").nullable().optional(),\n}).describe(\"Response model for the get project operation.\");\n\nexport const sanityGetProject = action(\"SANITY_GET_PROJECT\", {\n slug: \"sanity-get-project\",\n name: \"Get Project\",\n description: \"Retrieve full details for a specific Sanity project by its ID. Returns comprehensive project information including display name, organization, studio host, and timestamps. Use this action when you need to fetch complete project details or verify project configuration. Optional parameters allow including member lists and feature flags in the response.\",\n input: SanityGetProjectInput,\n output: SanityGetProjectOutput,\n});\n"],"m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.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityGetProjectInput = z.object({\n project_id: z.string().describe(\"The unique ID of the project to retrieve.\"),\n}).describe(\"Request parameters for retrieving a project.\");\nconst SanityGetProject_ProjectPlanSchema = z.object({\n name: z.string().describe(\"The name of the plan.\").nullable().optional(),\n tier: z.string().describe(\"The tier level of the plan.\").nullable().optional(),\n}).passthrough().describe(\"Plan information for the project.\");\nconst SanityGetProject_ProjectMemberRoleSchema = z.object({\n name: z.string().describe(\"The name of the role.\").nullable().optional(),\n title: z.string().describe(\"The display title of the role.\").nullable().optional(),\n}).passthrough().describe(\"Role information for a project member.\");\nconst SanityGetProject_ProjectMemberSchema = z.object({\n id: z.string().describe(\"The unique identifier of the member.\").nullable().optional(),\n role: z.string().describe(\"The primary role name of the member (deprecated, use roles array).\").nullable().optional(),\n roles: z.array(SanityGetProject_ProjectMemberRoleSchema).describe(\"List of roles assigned to this member.\").nullable().optional(),\n isRobot: z.boolean().describe(\"Whether this member is a robot/service account.\").nullable().optional(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the member was added to the project.\").nullable().optional(),\n}).passthrough().describe(\"A member of the project with their role information.\");\nconst SanityGetProject_ProjectMetadataSchema = z.object({\n color: z.string().describe(\"Color code associated with the project.\").nullable().optional(),\n}).passthrough().describe(\"Metadata associated with the project.\");\nexport const SanityGetProjectOutput = z.object({\n id: z.string().describe(\"The unique identifier of the project.\").nullable(),\n plan: SanityGetProject_ProjectPlanSchema.nullable().optional(),\n members: z.array(SanityGetProject_ProjectMemberSchema).describe(\"List of project members with their roles (included when includeMembers is true).\").nullable().optional(),\n features: z.array(z.string()).describe(\"List of feature names enabled for the project (included when includeFeatures is true).\").nullable().optional(),\n metadata: SanityGetProject_ProjectMetadataSchema.nullable().optional(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the project was created.\").nullable().optional(),\n isBlocked: z.boolean().describe(\"Whether the project is blocked.\").nullable().optional(),\n isDisabled: z.boolean().describe(\"Whether the project is disabled.\").nullable().optional(),\n studioHost: z.string().describe(\"The custom studio host URL for the project.\").nullable().optional(),\n displayName: z.string().describe(\"The display name of the project.\").nullable(),\n organizationId: z.string().describe(\"The ID of the organization this project belongs to.\").nullable().optional(),\n activityFeedEnabled: z.boolean().describe(\"Whether activity feed is enabled for the project.\").nullable().optional(),\n}).passthrough().describe(\"Response model for the get project operation.\");\n\nexport const sanityGetProject = action(\"SANITY_GET_PROJECT\", {\n slug: \"sanity-get-project\",\n name: \"Get Project\",\n description: \"Retrieve full details for a specific Sanity project by its ID. Returns comprehensive project information including display name, organization, studio host, and timestamps. Use this action when you need to fetch complete project details or verify project configuration. Optional parameters allow including member lists and feature flags in the response.\",\n input: SanityGetProjectInput,\n output: SanityGetProjectOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAwB,EAAE,OAAO,EAC5C,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,EAC7E,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAM,qCAAqC,EAAE,OAAO;CAClD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mCAAmC;AAC7D,MAAM,2CAA2C,EAAE,OAAO;CACxD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAAwC;AAClE,MAAM,uCAAuC,EAAE,OAAO;CACpD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,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,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvF,YAAY,EAAE,QAAQ,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;EAC9E,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/G,qBAAqB,EAAE,QAAQ,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAOhB;AACV,CAAC"}
@@ -20,7 +20,7 @@ const SanityGetRobots_RobotMembershipSchema = zod.z.object({
20
20
  roleNames: zod.z.array(zod.z.string()).describe("The names of the roles assigned for this resource."),
21
21
  resourceId: zod.z.string().describe("The ID of the resource this membership applies to.").nullable(),
22
22
  resourceType: zod.z.string().describe("The type of resource this membership applies to.").nullable()
23
- }).describe("Schema for a robot's membership/role assignment.");
23
+ }).passthrough().describe("Schema for a robot's membership/role assignment.");
24
24
  const SanityGetRobots_RobotSchema = zod.z.object({
25
25
  id: zod.z.string().describe("The unique identifier of the robot.").nullable(),
26
26
  label: zod.z.string().describe("The display name/label of the robot.").nullable(),
@@ -28,11 +28,11 @@ const SanityGetRobots_RobotSchema = zod.z.object({
28
28
  createdAt: zod.z.string().describe("ISO 8601 timestamp when the robot was created.").nullable().optional(),
29
29
  expiresAt: zod.z.string().describe("ISO 8601 timestamp when the robot expires.").nullable().optional(),
30
30
  memberships: zod.z.array(SanityGetRobots_RobotMembershipSchema).describe("List of memberships/role assignments for this robot.")
31
- }).describe("Schema for a robot entity.");
31
+ }).passthrough().describe("Schema for a robot entity.");
32
32
  const SanityGetRobotsOutput = zod.z.object({
33
33
  data: zod.z.array(SanityGetRobots_RobotSchema).describe("List of robots with access to the resource."),
34
34
  next_cursor: zod.z.string().describe("Cursor for the next page of results. Null if there are no more results.").nullable().optional()
35
- }).describe("Response model for retrieving robots with access to a resource.\nReturns a paginated list of robots.");
35
+ }).passthrough().describe("Response model for retrieving robots with access to a resource.\nReturns a paginated list of robots.");
36
36
  const sanityGetRobots = require_action.action("SANITY_GET_ROBOTS", {
37
37
  slug: "sanity-get-robots",
38
38
  name: "Get Robots",
@@ -1 +1 @@
1
- {"version":3,"file":"get-robots.cjs","names":["z","action"],"sources":["../../src/actions/get-robots.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityGetRobotsInput = z.object({\n limit: z.number().int().default(100).describe(\"The number of items to return per page. Defaults to 100.\").optional(),\n next_cursor: z.string().describe(\"The cursor for pagination. Use the nextCursor from the previous response to get the next page.\").optional(),\n resource_id: z.string().describe(\"The resource ID to scope the access request to. Must be a valid ID for the resource type.\"),\n resource_type: z.enum([\"organization\", \"project\", \"media-library\", \"canvas\", \"dashboard\", \"view\"]).describe(\"The resource type to scope the access requests to. One of: organization, project, media-library, canvas, dashboard, view.\"),\n include_children: z.boolean().describe(\"Whether to include children resources in the response. Only applies to organization resources.\").optional(),\n}).describe(\"Request model for retrieving robots with access to a resource.\");\nconst SanityGetRobots_RobotMembershipSchema = z.object({\n addedAt: z.string().describe(\"ISO 8601 timestamp when the membership was added.\").nullable().optional(),\n roleNames: z.array(z.string()).describe(\"The names of the roles assigned for this resource.\"),\n resourceId: z.string().describe(\"The ID of the resource this membership applies to.\").nullable(),\n resourceType: z.string().describe(\"The type of resource this membership applies to.\").nullable(),\n}).describe(\"Schema for a robot's membership/role assignment.\");\nconst SanityGetRobots_RobotSchema = z.object({\n id: z.string().describe(\"The unique identifier of the robot.\").nullable(),\n label: z.string().describe(\"The display name/label of the robot.\").nullable(),\n tokenId: z.string().describe(\"The token ID associated with this robot.\").nullable().optional(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the robot was created.\").nullable().optional(),\n expiresAt: z.string().describe(\"ISO 8601 timestamp when the robot expires.\").nullable().optional(),\n memberships: z.array(SanityGetRobots_RobotMembershipSchema).describe(\"List of memberships/role assignments for this robot.\"),\n}).describe(\"Schema for a robot entity.\");\nexport const SanityGetRobotsOutput = z.object({\n data: z.array(SanityGetRobots_RobotSchema).describe(\"List of robots with access to the resource.\"),\n next_cursor: z.string().describe(\"Cursor for the next page of results. Null if there are no more results.\").nullable().optional(),\n}).describe(\"Response model for retrieving robots with access to a resource.\\nReturns a paginated list of robots.\");\n\nexport const sanityGetRobots = action(\"SANITY_GET_ROBOTS\", {\n slug: \"sanity-get-robots\",\n name: \"Get Robots\",\n description: \"Tool to get robots with access to a resource. Use when you need to retrieve a list of robots (service accounts) that have been granted access to a specific resource along with their assigned roles. This action supports pagination through the next_cursor parameter.\",\n input: SanityGetRobotsInput,\n output: SanityGetRobotsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uBAAuBA,IAAAA,EAAE,OAAO;CAC3C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CACnH,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gGAAgG,CAAC,CAAC,SAAS;CAC5I,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2FAA2F;CAC5H,eAAeA,IAAAA,EAAE,KAAK;EAAC;EAAgB;EAAW;EAAiB;EAAU;EAAa;CAAM,CAAC,CAAC,CAAC,SAAS,2HAA2H;CACvO,kBAAkBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,gGAAgG,CAAC,CAAC,SAAS;AACpJ,CAAC,CAAC,CAAC,SAAS,gEAAgE;AAC5E,MAAM,wCAAwCA,IAAAA,EAAE,OAAO;CACrD,SAASA,IAAAA,EAAE,O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AAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-robots.cjs","names":["z","action"],"sources":["../../src/actions/get-robots.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityGetRobotsInput = z.object({\n limit: z.number().int().default(100).describe(\"The number of items to return per page. Defaults to 100.\").optional(),\n next_cursor: z.string().describe(\"The cursor for pagination. Use the nextCursor from the previous response to get the next page.\").optional(),\n resource_id: z.string().describe(\"The resource ID to scope the access request to. Must be a valid ID for the resource type.\"),\n resource_type: z.enum([\"organization\", \"project\", \"media-library\", \"canvas\", \"dashboard\", \"view\"]).describe(\"The resource type to scope the access requests to. One of: organization, project, media-library, canvas, dashboard, view.\"),\n include_children: z.boolean().describe(\"Whether to include children resources in the response. Only applies to organization resources.\").optional(),\n}).describe(\"Request model for retrieving robots with access to a resource.\");\nconst SanityGetRobots_RobotMembershipSchema = z.object({\n addedAt: z.string().describe(\"ISO 8601 timestamp when the membership was added.\").nullable().optional(),\n roleNames: z.array(z.string()).describe(\"The names of the roles assigned for this resource.\"),\n resourceId: z.string().describe(\"The ID of the resource this membership applies to.\").nullable(),\n resourceType: z.string().describe(\"The type of resource this membership applies to.\").nullable(),\n}).passthrough().describe(\"Schema for a robot's membership/role assignment.\");\nconst SanityGetRobots_RobotSchema = z.object({\n id: z.string().describe(\"The unique identifier of the robot.\").nullable(),\n label: z.string().describe(\"The display name/label of the robot.\").nullable(),\n tokenId: z.string().describe(\"The token ID associated with this robot.\").nullable().optional(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the robot was created.\").nullable().optional(),\n expiresAt: z.string().describe(\"ISO 8601 timestamp when the robot expires.\").nullable().optional(),\n memberships: z.array(SanityGetRobots_RobotMembershipSchema).describe(\"List of memberships/role assignments for this robot.\"),\n}).passthrough().describe(\"Schema for a robot entity.\");\nexport const SanityGetRobotsOutput = z.object({\n data: z.array(SanityGetRobots_RobotSchema).describe(\"List of robots with access to the resource.\"),\n next_cursor: z.string().describe(\"Cursor for the next page of results. Null if there are no more results.\").nullable().optional(),\n}).passthrough().describe(\"Response model for retrieving robots with access to a resource.\\nReturns a paginated list of robots.\");\n\nexport const sanityGetRobots = action(\"SANITY_GET_ROBOTS\", {\n slug: \"sanity-get-robots\",\n name: \"Get Robots\",\n description: \"Tool to get robots with access to a resource. Use when you need to retrieve a list of robots (service accounts) that have been granted access to a specific resource along with their assigned roles. This action supports pagination through the next_cursor parameter.\",\n input: SanityGetRobotsInput,\n output: SanityGetRobotsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uBAAuBA,IAAAA,EAAE,OAAO;CAC3C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CACnH,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gGAAgG,CAAC,CAAC,SAAS;CAC5I,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2FAA2F;CAC5H,eAAeA,IAAAA,EAAE,KAAK;EAAC;EAAgB;EAAW;EAAiB;EAAU;EAAa;CAAM,CAAC,CAAC,CAAC,SAAS,2HAA2H;CACvO,kBAAkBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,gGAAgG,CAAC,CAAC,SAAS;AACpJ,CAAC,CAAC,CAAC,SAAS,gEAAgE;AAC5E,MAAM,wCAAwCA,IAAAA,EAAE,OAAO;CACrD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,WAAWA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,oDAAoD;CAC5F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAC/F,cAAcA,IAAAA,EAAE,OA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ZodString>;
30
- }, z.core.$strip>>;
31
- }, z.core.$strip>>;
30
+ }, z.core.$loose>>;
31
+ }, z.core.$loose>>;
32
32
  next_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
- }, z.core.$strip>;
33
+ }, z.core.$loose>;
34
34
  declare const sanityGetRobots: import("@keystrokehq/action").WorkflowActionDefinition<{
35
35
  resource_id: string;
36
36
  resource_type: "organization" | "project" | "media-library" | "canvas" | "dashboard" | "view";
@@ -27,10 +27,10 @@ declare const SanityGetRobotsOutput: z.ZodObject<{
27
27
  roleNames: z.ZodArray<z.ZodString>;
28
28
  resourceId: z.ZodNullable<z.ZodString>;
29
29
  resourceType: z.ZodNullable<z.ZodString>;
30
- }, z.core.$strip>>;
31
- }, z.core.$strip>>;
30
+ }, z.core.$loose>>;
31
+ }, z.core.$loose>>;
32
32
  next_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
- }, z.core.$strip>;
33
+ }, z.core.$loose>;
34
34
  declare const sanityGetRobots: import("@keystrokehq/action").WorkflowActionDefinition<{
35
35
  resource_id: string;
36
36
  resource_type: "organization" | "project" | "media-library" | "canvas" | "dashboard" | "view";
@@ -20,7 +20,7 @@ const SanityGetRobots_RobotMembershipSchema = z.object({
20
20
  roleNames: z.array(z.string()).describe("The names of the roles assigned for this resource."),
21
21
  resourceId: z.string().describe("The ID of the resource this membership applies to.").nullable(),
22
22
  resourceType: z.string().describe("The type of resource this membership applies to.").nullable()
23
- }).describe("Schema for a robot's membership/role assignment.");
23
+ }).passthrough().describe("Schema for a robot's membership/role assignment.");
24
24
  const SanityGetRobots_RobotSchema = z.object({
25
25
  id: z.string().describe("The unique identifier of the robot.").nullable(),
26
26
  label: z.string().describe("The display name/label of the robot.").nullable(),
@@ -28,7 +28,7 @@ const SanityGetRobots_RobotSchema = z.object({
28
28
  createdAt: z.string().describe("ISO 8601 timestamp when the robot was created.").nullable().optional(),
29
29
  expiresAt: z.string().describe("ISO 8601 timestamp when the robot expires.").nullable().optional(),
30
30
  memberships: z.array(SanityGetRobots_RobotMembershipSchema).describe("List of memberships/role assignments for this robot.")
31
- }).describe("Schema for a robot entity.");
31
+ }).passthrough().describe("Schema for a robot entity.");
32
32
  const sanityGetRobots = action("SANITY_GET_ROBOTS", {
33
33
  slug: "sanity-get-robots",
34
34
  name: "Get Robots",
@@ -37,7 +37,7 @@ const sanityGetRobots = action("SANITY_GET_ROBOTS", {
37
37
  output: z.object({
38
38
  data: z.array(SanityGetRobots_RobotSchema).describe("List of robots with access to the resource."),
39
39
  next_cursor: z.string().describe("Cursor for the next page of results. Null if there are no more results.").nullable().optional()
40
- }).describe("Response model for retrieving robots with access to a resource.\nReturns a paginated list of robots.")
40
+ }).passthrough().describe("Response model for retrieving robots with access to a resource.\nReturns a paginated list of robots.")
41
41
  });
42
42
  //#endregion
43
43
  export { sanityGetRobots };
@@ -1 +1 @@
1
- {"version":3,"file":"get-robots.mjs","names":[],"sources":["../../src/actions/get-robots.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityGetRobotsInput = z.object({\n limit: z.number().int().default(100).describe(\"The number of items to return per page. Defaults to 100.\").optional(),\n next_cursor: z.string().describe(\"The cursor for pagination. Use the nextCursor from the previous response to get the next page.\").optional(),\n resource_id: z.string().describe(\"The resource ID to scope the access request to. Must be a valid ID for the resource type.\"),\n resource_type: z.enum([\"organization\", \"project\", \"media-library\", \"canvas\", \"dashboard\", \"view\"]).describe(\"The resource type to scope the access requests to. One of: organization, project, media-library, canvas, dashboard, view.\"),\n include_children: z.boolean().describe(\"Whether to include children resources in the response. Only applies to organization resources.\").optional(),\n}).describe(\"Request model for retrieving robots with access to a resource.\");\nconst SanityGetRobots_RobotMembershipSchema = z.object({\n addedAt: z.string().describe(\"ISO 8601 timestamp when the membership was added.\").nullable().optional(),\n roleNames: z.array(z.string()).describe(\"The names of the roles assigned for this resource.\"),\n resourceId: z.string().describe(\"The ID of the resource this membership applies to.\").nullable(),\n resourceType: z.string().describe(\"The type of resource this membership applies to.\").nullable(),\n}).describe(\"Schema for a robot's membership/role assignment.\");\nconst SanityGetRobots_RobotSchema = z.object({\n id: z.string().describe(\"The unique identifier of the robot.\").nullable(),\n label: z.string().describe(\"The display name/label of the robot.\").nullable(),\n tokenId: z.string().describe(\"The token ID associated with this robot.\").nullable().optional(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the robot was created.\").nullable().optional(),\n expiresAt: z.string().describe(\"ISO 8601 timestamp when the robot expires.\").nullable().optional(),\n memberships: z.array(SanityGetRobots_RobotMembershipSchema).describe(\"List of memberships/role assignments for this robot.\"),\n}).describe(\"Schema for a robot entity.\");\nexport const SanityGetRobotsOutput = z.object({\n data: z.array(SanityGetRobots_RobotSchema).describe(\"List of robots with access to the resource.\"),\n next_cursor: z.string().describe(\"Cursor for the next page of results. Null if there are no more results.\").nullable().optional(),\n}).describe(\"Response model for retrieving robots with access to a resource.\\nReturns a paginated list of robots.\");\n\nexport const sanityGetRobots = action(\"SANITY_GET_ROBOTS\", {\n slug: \"sanity-get-robots\",\n name: \"Get Robots\",\n description: \"Tool to get robots with access to a resource. Use when you need to retrieve a list of robots (service accounts) that have been granted access to a specific resource along with their assigned roles. This action supports pagination through the next_cursor parameter.\",\n input: SanityGetRobotsInput,\n output: SanityGetRobotsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uBAAuB,EAAE,OAAO;CAC3C,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CACnH,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,gGAAgG,CAAC,CAAC,SAAS;CAC5I,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,2FAA2F;CAC5H,eAAe,EAAE,KAAK;EAAC;EAAgB;EAAW;EAAiB;EAAU;EAAa;CAAM,CAAC,CAAC,CAAC,SAAS,2HAA2H;CACvO,kBAAkB,EAAE,QAAQ,CAAC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AClI,CAAC,CAAC,CAAC,SAAS,sGAOF;AACV,CAAC"}
1
+ {"version":3,"file":"get-robots.mjs","names":[],"sources":["../../src/actions/get-robots.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityGetRobotsInput = z.object({\n limit: z.number().int().default(100).describe(\"The number of items to return per page. Defaults to 100.\").optional(),\n next_cursor: z.string().describe(\"The cursor for pagination. Use the nextCursor from the previous response to get the next page.\").optional(),\n resource_id: z.string().describe(\"The resource ID to scope the access request to. Must be a valid ID for the resource type.\"),\n resource_type: z.enum([\"organization\", \"project\", \"media-library\", \"canvas\", \"dashboard\", \"view\"]).describe(\"The resource type to scope the access requests to. One of: organization, project, media-library, canvas, dashboard, view.\"),\n include_children: z.boolean().describe(\"Whether to include children resources in the response. Only applies to organization resources.\").optional(),\n}).describe(\"Request model for retrieving robots with access to a resource.\");\nconst SanityGetRobots_RobotMembershipSchema = z.object({\n addedAt: z.string().describe(\"ISO 8601 timestamp when the membership was added.\").nullable().optional(),\n roleNames: z.array(z.string()).describe(\"The names of the roles assigned for this resource.\"),\n resourceId: z.string().describe(\"The ID of the resource this membership applies to.\").nullable(),\n resourceType: z.string().describe(\"The type of resource this membership applies to.\").nullable(),\n}).passthrough().describe(\"Schema for a robot's membership/role assignment.\");\nconst SanityGetRobots_RobotSchema = z.object({\n id: z.string().describe(\"The unique identifier of the robot.\").nullable(),\n label: z.string().describe(\"The display name/label of the robot.\").nullable(),\n tokenId: z.string().describe(\"The token ID associated with this robot.\").nullable().optional(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the robot was created.\").nullable().optional(),\n expiresAt: z.string().describe(\"ISO 8601 timestamp when the robot expires.\").nullable().optional(),\n memberships: z.array(SanityGetRobots_RobotMembershipSchema).describe(\"List of memberships/role assignments for this robot.\"),\n}).passthrough().describe(\"Schema for a robot entity.\");\nexport const SanityGetRobotsOutput = z.object({\n data: z.array(SanityGetRobots_RobotSchema).describe(\"List of robots with access to the resource.\"),\n next_cursor: z.string().describe(\"Cursor for the next page of results. Null if there are no more results.\").nullable().optional(),\n}).passthrough().describe(\"Response model for retrieving robots with access to a resource.\\nReturns a paginated list of robots.\");\n\nexport const sanityGetRobots = action(\"SANITY_GET_ROBOTS\", {\n slug: \"sanity-get-robots\",\n name: \"Get Robots\",\n description: \"Tool to get robots with access to a resource. Use when you need to retrieve a list of robots (service accounts) that have been granted access to a specific resource along with their assigned roles. This action supports pagination through the next_cursor parameter.\",\n input: SanityGetRobotsInput,\n output: SanityGetRobotsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uBAAuB,EAAE,OAAO;CAC3C,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CACnH,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,gGAAgG,CAAC,CAAC,SAAS;CAC5I,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,2FAA2F;CAC5H,eAAe,EAAE,KAAK;EAAC;EAAgB;EAAW;EAAiB;EAAU;EAAa;CAAM,CAAC,CAAC,CAAC,SAAS,2HAA2H;CACvO,kBAAkB,EAAE,QAAQ,CAAC,CAAC,SAAS,gGAAgG,CAAC,CAAC,SAAS;AACpJ,CAAC,CAAC,CAAC,SAAS,gEAAgE;AAC5E,MAAM,wCAAwC,EAAE,OAAO;CACrD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,oDAAoD;CAC5F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAC/F,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;AACjG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAAkD;AAC5E,MAAM,8BAA8B,EAAE,OAAO;CAC3C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CACxE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC5E,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,aAAa,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,sDAAsD;AAC7H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4BAA4B;AAMtD,MAAa,kBAAkB,OAAO,qBAAqB;CACzD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVmC,EAAE,OAAO;EAC5C,MAAM,EAAE,MAAM,2BAA2B,CAAC,CAAC,SAAS,6CAA6C;EACjG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sGAOhB;AACV,CAAC"}
@@ -18,7 +18,7 @@ const SanityGetRole_PermissionSchema = zod.z.object({
18
18
  type: zod.z.string().describe("Type of the permission").nullable().optional(),
19
19
  action: zod.z.union([zod.z.string(), zod.z.record(zod.z.string(), zod.z.unknown())]).nullable().optional(),
20
20
  params: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Parameters for the permission").nullable().optional()
21
- }).describe("Represents a single permission within a role.");
21
+ }).passthrough().describe("Represents a single permission within a role.");
22
22
  const SanityGetRoleOutput = zod.z.object({
23
23
  name: zod.z.string().describe("The unique name identifier of the role").nullable(),
24
24
  title: zod.z.string().describe("Display title of the role").nullable(),
@@ -29,7 +29,7 @@ const SanityGetRoleOutput = zod.z.object({
29
29
  resourceType: zod.z.string().describe("The type of resource").nullable(),
30
30
  appliesToUsers: zod.z.boolean().describe("Whether applies to users").nullable(),
31
31
  appliesToRobots: zod.z.boolean().describe("Whether applies to robots").nullable()
32
- }).describe("Response model for the get role operation.\nThe API returns the role directly without a data wrapper.");
32
+ }).passthrough().describe("Response model for the get role operation.\nThe API returns the role directly without a data wrapper.");
33
33
  const sanityGetRole = require_action.action("SANITY_GET_ROLE", {
34
34
  slug: "sanity-get-role",
35
35
  name: "Get Role",
@@ -1 +1 @@
1
- {"version":3,"file":"get-role.cjs","names":["z","action"],"sources":["../../src/actions/get-role.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityGetRoleInput = z.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}).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}).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,qBAAqBA,IAAAA,EAAE,OAAO;CACzC,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;CACjE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2FAA2F;CAC3H,cAAcA,IAAAA,EAAE,KAAK;EAAC;EAAgB;EAAW;EAAiB;EAAU;EAAa;CAAM,CAAC,CAAC,CAAC,SAAS,mIAAmI;AAChP,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAC3D,MAAM,iCAAiCA,IAAAA,EAAE,OAAO;CAC9C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxE,QAAQA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAC3D,MAAa,sBAAsBA,IAAAA,EAAE,OAAO;CAC1C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC7E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACjE,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CACnE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,aAAaA,IAAAA,EAAE,MAAM,8BAA8B,CAAC,CAAC,SAAS,qBAAqB;CACnF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CACnE,gBAAgBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAC1E,iBAAiBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;AAC9E,CAAC,CAAC,CAAC,SAAS,uGAAuG;AAEnH,MAAa,gBAAgBC,eAAAA,OAAO,mBAAmB;CACrD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-role.cjs","names":["z","action"],"sources":["../../src/actions/get-role.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityGetRoleInput = z.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,qBAAqBA,IAAAA,EAAE,OAAO;CACzC,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;CACjE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2FAA2F;CAC3H,cAAcA,IAAAA,EAAE,KAAK;EAAC;EAAgB;EAA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,CAAC,CAAC,SAAS,qBAAqB;CACnF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CACnE,gBAAgBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAC1E,iBAAiBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;AAC9E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uGAAuG;AAEjI,MAAa,gBAAgBC,eAAAA,OAAO,mBAAmB;CACrD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -24,11 +24,11 @@ declare const SanityGetRoleOutput: z.ZodObject<{
24
24
  type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
25
  action: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>>;
26
26
  params: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
27
- }, z.core.$strip>>;
27
+ }, z.core.$loose>>;
28
28
  resourceType: z.ZodNullable<z.ZodString>;
29
29
  appliesToUsers: z.ZodNullable<z.ZodBoolean>;
30
30
  appliesToRobots: z.ZodNullable<z.ZodBoolean>;
31
- }, z.core.$strip>;
31
+ }, z.core.$loose>;
32
32
  declare const sanityGetRole: import("@keystrokehq/action").WorkflowActionDefinition<{
33
33
  roleName: string;
34
34
  resourceId: string;
@@ -24,11 +24,11 @@ declare const SanityGetRoleOutput: z.ZodObject<{
24
24
  type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
25
  action: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>>;
26
26
  params: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
27
- }, z.core.$strip>>;
27
+ }, z.core.$loose>>;
28
28
  resourceType: z.ZodNullable<z.ZodString>;
29
29
  appliesToUsers: z.ZodNullable<z.ZodBoolean>;
30
30
  appliesToRobots: z.ZodNullable<z.ZodBoolean>;
31
- }, z.core.$strip>;
31
+ }, z.core.$loose>;
32
32
  declare const sanityGetRole: import("@keystrokehq/action").WorkflowActionDefinition<{
33
33
  roleName: string;
34
34
  resourceId: string;
@@ -18,7 +18,7 @@ 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",
@@ -34,7 +34,7 @@ const sanityGetRole = action("SANITY_GET_ROLE", {
34
34
  resourceType: z.string().describe("The type of resource").nullable(),
35
35
  appliesToUsers: z.boolean().describe("Whether applies to users").nullable(),
36
36
  appliesToRobots: z.boolean().describe("Whether applies to robots").nullable()
37
- }).describe("Response model for the get role operation.\nThe API returns the role directly without a data wrapper.")
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.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}).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}).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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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.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,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;EACnE,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,CAAC,CAAC,SAAS;EACnE,gBAAgB,EAAE,QAAQ,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;EAC1E,iBAAiB,EAAE,QAAQ,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAC9E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uGAOhB;AACV,CAAC"}
@@ -10,18 +10,18 @@ const SanityGetUsersInput = zod.z.object({
10
10
  const SanityGetUsers_UserRoleSchema = zod.z.object({
11
11
  role_id: 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.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}).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}).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}).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,sBAAsBA,IAAAA,EAAE,OAAO;CAC1C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;CACrI,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS;CACnJ,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iIAAiI;CAClK,eAAeA,IAAAA,EAAE,KAAK,CAAC,gBAAgB,SAAS,CAAC,CAAC,CAAC,SAAS,mIAAmI;AACjM,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAM,gCAAgCA,IAAAA,EAAE,OAAO;CAC7C,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtF,CAAC,CAAC,CAAC,SAAS,0BAA0B;AACtC,MAAM,oCAAoCA,IAAAA,EAAE,OAAO;CACjD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,OAAOA,IAAAA,EAAE,MAAM,6BAA6B,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnH,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzF,CAAC,CAAC,CAAC,SAAS,mCAAmC;AAC/C,MAAa,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,SAAS,iDAAiD;AAE7D,MAAa,iBAAiBC,eAAAA,OAAO,oBAAoB;CACvD,MAAM;CACN,MAAM;CACN,aAAa;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: SanityGetUsersInput,\n output: SanityGetUsersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sBAAsBA,IAAAA,EAAE,OAAO;CAC1C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;CACrI,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS;CACnJ,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iIAAiI;CAClK,eAAeA,IAAAA,EAAE,KAAK,CAAC,gBAAgB,SAAS,CAAC,CAAC,CAAC,SAAS,mIAAmI;AACjM,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAM,gCAAgCA,IAAAA,EAAE,OAAO;CAC7C,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0BAA0B;AACpD,MAAM,oCAAoCA,IAAAA,EAAE,OAAO;CACjD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,OAAOA,IAAAA,EAAE,MAAM,6BAA6B,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnH,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,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"}
@@ -18,11 +18,11 @@ declare const SanityGetUsersOutput: z.ZodObject<{
18
18
  roles: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
19
19
  role_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
20
  role_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
- }, z.core.$strip>>>>;
21
+ }, z.core.$loose>>>>;
22
22
  user_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
- }, z.core.$strip>>>>;
23
+ }, z.core.$loose>>>>;
24
24
  next_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
- }, z.core.$strip>;
25
+ }, z.core.$loose>;
26
26
  declare const sanityGetUsers: import("@keystrokehq/action").WorkflowActionDefinition<{
27
27
  resource_id: string;
28
28
  resource_type: "organization" | "project";
@@ -18,11 +18,11 @@ declare const SanityGetUsersOutput: z.ZodObject<{
18
18
  roles: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
19
19
  role_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
20
  role_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
- }, z.core.$strip>>>>;
21
+ }, z.core.$loose>>>>;
22
22
  user_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
- }, z.core.$strip>>>>;
23
+ }, z.core.$loose>>>>;
24
24
  next_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
- }, z.core.$strip>;
25
+ }, z.core.$loose>;
26
26
  declare const sanityGetUsers: import("@keystrokehq/action").WorkflowActionDefinition<{
27
27
  resource_id: string;
28
28
  resource_type: "organization" | "project";
@@ -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.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}).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}).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}).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,SAAS,0BAA0B;AACtC,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,SAAS,mCAAmC;AAO/C,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,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"}
@@ -5,12 +5,12 @@ const SanityListOrgRolesInput = zod.z.object({ organization_id: zod.z.string().d
5
5
  const SanityListOrgRoles_RoleSchema = zod.z.object({
6
6
  name: zod.z.string().describe("The machine-readable name of the role").nullable(),
7
7
  title: zod.z.string().describe("The human-readable title of the role").nullable(),
8
- grants: zod.z.object({}).describe("Map of resource types to their grants").nullable().optional(),
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.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.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.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,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,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,2BAA2BA,IAAAA,EAAE,OAAO,EAC/C,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"}
@@ -8,12 +8,12 @@ declare const SanityListOrgRolesOutput: z.ZodObject<{
8
8
  roles: z.ZodArray<z.ZodObject<{
9
9
  name: z.ZodNullable<z.ZodString>;
10
10
  title: z.ZodNullable<z.ZodString>;
11
- grants: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
11
+ grants: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
12
12
  isCustom: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
13
13
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
14
  organizationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
- }, z.core.$strip>>;
16
- }, z.core.$strip>;
15
+ }, z.core.$loose>>;
16
+ }, z.core.$loose>;
17
17
  declare const sanityListOrgRoles: import("@keystrokehq/action").WorkflowActionDefinition<{
18
18
  organization_id: string;
19
19
  }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
@@ -8,12 +8,12 @@ declare const SanityListOrgRolesOutput: z.ZodObject<{
8
8
  roles: z.ZodArray<z.ZodObject<{
9
9
  name: z.ZodNullable<z.ZodString>;
10
10
  title: z.ZodNullable<z.ZodString>;
11
- grants: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
11
+ grants: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
12
12
  isCustom: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
13
13
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
14
  organizationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
- }, z.core.$strip>>;
16
- }, z.core.$strip>;
15
+ }, z.core.$loose>>;
16
+ }, z.core.$loose>;
17
17
  declare const sanityListOrgRoles: import("@keystrokehq/action").WorkflowActionDefinition<{
18
18
  organization_id: string;
19
19
  }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
@@ -5,17 +5,17 @@ const SanityListOrgRolesInput = z.object({ organization_id: z.string().describe(
5
5
  const SanityListOrgRoles_RoleSchema = z.object({
6
6
  name: z.string().describe("The machine-readable name of the role").nullable(),
7
7
  title: z.string().describe("The human-readable title of the role").nullable(),
8
- grants: z.object({}).describe("Map of resource types to their grants").nullable().optional(),
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.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.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.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,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,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,QATsC,EAAE,OAAO,EAC/C,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"}
@@ -13,12 +13,12 @@ const SanityListUserAttributes_AttributeItemSchema = zod.z.object({
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
19
  sanityUserId: zod.z.string().describe("ID of the user").nullable(),
20
20
  organizationId: zod.z.string().describe("ID of the organization").nullable()
21
- }).describe("Response model for user attributes retrieval.");
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",