@keystrokehq/sanity 0.1.0 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (177) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/add-default-role-to-users.cjs +1 -1
  4. package/dist/actions/add-default-role-to-users.cjs.map +1 -1
  5. package/dist/actions/add-default-role-to-users.d.cts +10 -3
  6. package/dist/actions/add-default-role-to-users.d.cts.map +1 -1
  7. package/dist/actions/add-default-role-to-users.d.mts +10 -3
  8. package/dist/actions/add-default-role-to-users.d.mts.map +1 -1
  9. package/dist/actions/add-default-role-to-users.mjs +1 -1
  10. package/dist/actions/add-default-role-to-users.mjs.map +1 -1
  11. package/dist/actions/create-attr-definition.cjs +1 -1
  12. package/dist/actions/create-attr-definition.cjs.map +1 -1
  13. package/dist/actions/create-attr-definition.d.cts +32 -3
  14. package/dist/actions/create-attr-definition.d.cts.map +1 -1
  15. package/dist/actions/create-attr-definition.d.mts +32 -3
  16. package/dist/actions/create-attr-definition.d.mts.map +1 -1
  17. package/dist/actions/create-attr-definition.mjs +1 -1
  18. package/dist/actions/create-attr-definition.mjs.map +1 -1
  19. package/dist/actions/create-prompt-post.cjs +2 -2
  20. package/dist/actions/create-prompt-post.cjs.map +1 -1
  21. package/dist/actions/create-prompt-post.d.cts +23 -3
  22. package/dist/actions/create-prompt-post.d.cts.map +1 -1
  23. package/dist/actions/create-prompt-post.d.mts +23 -3
  24. package/dist/actions/create-prompt-post.d.mts.map +1 -1
  25. package/dist/actions/create-prompt-post.mjs +2 -2
  26. package/dist/actions/create-prompt-post.mjs.map +1 -1
  27. package/dist/actions/delete-attr-definition.cjs +1 -1
  28. package/dist/actions/delete-attr-definition.cjs.map +1 -1
  29. package/dist/actions/delete-attr-definition.d.cts +16 -3
  30. package/dist/actions/delete-attr-definition.d.cts.map +1 -1
  31. package/dist/actions/delete-attr-definition.d.mts +16 -3
  32. package/dist/actions/delete-attr-definition.d.mts.map +1 -1
  33. package/dist/actions/delete-attr-definition.mjs +1 -1
  34. package/dist/actions/delete-attr-definition.mjs.map +1 -1
  35. package/dist/actions/delete-document.cjs +1 -1
  36. package/dist/actions/delete-document.cjs.map +1 -1
  37. package/dist/actions/delete-document.d.cts +27 -3
  38. package/dist/actions/delete-document.d.cts.map +1 -1
  39. package/dist/actions/delete-document.d.mts +27 -3
  40. package/dist/actions/delete-document.d.mts.map +1 -1
  41. package/dist/actions/delete-document.mjs +1 -1
  42. package/dist/actions/delete-document.mjs.map +1 -1
  43. package/dist/actions/delete-user-attributes.cjs +5 -5
  44. package/dist/actions/delete-user-attributes.cjs.map +1 -1
  45. package/dist/actions/delete-user-attributes.d.cts +27 -3
  46. package/dist/actions/delete-user-attributes.d.cts.map +1 -1
  47. package/dist/actions/delete-user-attributes.d.mts +27 -3
  48. package/dist/actions/delete-user-attributes.d.mts.map +1 -1
  49. package/dist/actions/delete-user-attributes.mjs +5 -5
  50. package/dist/actions/delete-user-attributes.mjs.map +1 -1
  51. package/dist/actions/get-document.cjs +6 -6
  52. package/dist/actions/get-document.cjs.map +1 -1
  53. package/dist/actions/get-document.d.cts +24 -3
  54. package/dist/actions/get-document.d.cts.map +1 -1
  55. package/dist/actions/get-document.d.mts +24 -3
  56. package/dist/actions/get-document.d.mts.map +1 -1
  57. package/dist/actions/get-document.mjs +6 -6
  58. package/dist/actions/get-document.mjs.map +1 -1
  59. package/dist/actions/get-invite-by-token.cjs +2 -2
  60. package/dist/actions/get-invite-by-token.cjs.map +1 -1
  61. package/dist/actions/get-invite-by-token.d.cts +46 -3
  62. package/dist/actions/get-invite-by-token.d.cts.map +1 -1
  63. package/dist/actions/get-invite-by-token.d.mts +46 -3
  64. package/dist/actions/get-invite-by-token.d.mts.map +1 -1
  65. package/dist/actions/get-invite-by-token.mjs +2 -2
  66. package/dist/actions/get-invite-by-token.mjs.map +1 -1
  67. package/dist/actions/get-org-role.cjs +9 -9
  68. package/dist/actions/get-org-role.cjs.map +1 -1
  69. package/dist/actions/get-org-role.d.cts +27 -3
  70. package/dist/actions/get-org-role.d.cts.map +1 -1
  71. package/dist/actions/get-org-role.d.mts +27 -3
  72. package/dist/actions/get-org-role.d.mts.map +1 -1
  73. package/dist/actions/get-org-role.mjs +9 -9
  74. package/dist/actions/get-org-role.mjs.map +1 -1
  75. package/dist/actions/get-permission.cjs +9 -9
  76. package/dist/actions/get-permission.cjs.map +1 -1
  77. package/dist/actions/get-permission.d.cts +25 -3
  78. package/dist/actions/get-permission.d.cts.map +1 -1
  79. package/dist/actions/get-permission.d.mts +25 -3
  80. package/dist/actions/get-permission.d.mts.map +1 -1
  81. package/dist/actions/get-permission.mjs +9 -9
  82. package/dist/actions/get-permission.mjs.map +1 -1
  83. package/dist/actions/get-project.cjs +7 -7
  84. package/dist/actions/get-project.cjs.map +1 -1
  85. package/dist/actions/get-project.d.cts +34 -3
  86. package/dist/actions/get-project.d.cts.map +1 -1
  87. package/dist/actions/get-project.d.mts +34 -3
  88. package/dist/actions/get-project.d.mts.map +1 -1
  89. package/dist/actions/get-project.mjs +7 -7
  90. package/dist/actions/get-project.mjs.map +1 -1
  91. package/dist/actions/get-robots.cjs +7 -7
  92. package/dist/actions/get-robots.cjs.map +1 -1
  93. package/dist/actions/get-robots.d.cts +37 -3
  94. package/dist/actions/get-robots.d.cts.map +1 -1
  95. package/dist/actions/get-robots.d.mts +37 -3
  96. package/dist/actions/get-robots.d.mts.map +1 -1
  97. package/dist/actions/get-robots.mjs +7 -7
  98. package/dist/actions/get-robots.mjs.map +1 -1
  99. package/dist/actions/get-role.cjs +8 -8
  100. package/dist/actions/get-role.cjs.map +1 -1
  101. package/dist/actions/get-role.d.cts +33 -3
  102. package/dist/actions/get-role.d.cts.map +1 -1
  103. package/dist/actions/get-role.d.mts +33 -3
  104. package/dist/actions/get-role.d.mts.map +1 -1
  105. package/dist/actions/get-role.mjs +8 -8
  106. package/dist/actions/get-role.mjs.map +1 -1
  107. package/dist/actions/get-users.cjs +3 -3
  108. package/dist/actions/get-users.cjs.map +1 -1
  109. package/dist/actions/get-users.d.cts +28 -3
  110. package/dist/actions/get-users.d.cts.map +1 -1
  111. package/dist/actions/get-users.d.mts +28 -3
  112. package/dist/actions/get-users.d.mts.map +1 -1
  113. package/dist/actions/get-users.mjs +3 -3
  114. package/dist/actions/get-users.mjs.map +1 -1
  115. package/dist/actions/list-org-roles.cjs +5 -5
  116. package/dist/actions/list-org-roles.cjs.map +1 -1
  117. package/dist/actions/list-org-roles.d.cts +16 -3
  118. package/dist/actions/list-org-roles.d.cts.map +1 -1
  119. package/dist/actions/list-org-roles.d.mts +16 -3
  120. package/dist/actions/list-org-roles.d.mts.map +1 -1
  121. package/dist/actions/list-org-roles.mjs +5 -5
  122. package/dist/actions/list-org-roles.mjs.map +1 -1
  123. package/dist/actions/list-user-attributes.cjs +6 -6
  124. package/dist/actions/list-user-attributes.cjs.map +1 -1
  125. package/dist/actions/list-user-attributes.d.cts +23 -3
  126. package/dist/actions/list-user-attributes.d.cts.map +1 -1
  127. package/dist/actions/list-user-attributes.d.mts +23 -3
  128. package/dist/actions/list-user-attributes.d.mts.map +1 -1
  129. package/dist/actions/list-user-attributes.mjs +6 -6
  130. package/dist/actions/list-user-attributes.mjs.map +1 -1
  131. package/dist/actions/query-all-screening.cjs +1 -1
  132. package/dist/actions/query-all-screening.cjs.map +1 -1
  133. package/dist/actions/query-all-screening.d.cts +20 -3
  134. package/dist/actions/query-all-screening.d.cts.map +1 -1
  135. package/dist/actions/query-all-screening.d.mts +20 -3
  136. package/dist/actions/query-all-screening.d.mts.map +1 -1
  137. package/dist/actions/query-all-screening.mjs +1 -1
  138. package/dist/actions/query-all-screening.mjs.map +1 -1
  139. package/dist/actions/query-documents.cjs +2 -2
  140. package/dist/actions/query-documents.cjs.map +1 -1
  141. package/dist/actions/query-documents.d.cts +31 -3
  142. package/dist/actions/query-documents.d.cts.map +1 -1
  143. package/dist/actions/query-documents.d.mts +31 -3
  144. package/dist/actions/query-documents.d.mts.map +1 -1
  145. package/dist/actions/query-documents.mjs +2 -2
  146. package/dist/actions/query-documents.mjs.map +1 -1
  147. package/dist/actions/update-org-acl.cjs +1 -1
  148. package/dist/actions/update-org-acl.cjs.map +1 -1
  149. package/dist/actions/update-org-acl.d.cts +13 -3
  150. package/dist/actions/update-org-acl.d.cts.map +1 -1
  151. package/dist/actions/update-org-acl.d.mts +13 -3
  152. package/dist/actions/update-org-acl.d.mts.map +1 -1
  153. package/dist/actions/update-org-acl.mjs +1 -1
  154. package/dist/actions/update-org-acl.mjs.map +1 -1
  155. package/dist/actions/update-user-attributes-values.cjs +8 -8
  156. package/dist/actions/update-user-attributes-values.cjs.map +1 -1
  157. package/dist/actions/update-user-attributes-values.d.cts +27 -3
  158. package/dist/actions/update-user-attributes-values.d.cts.map +1 -1
  159. package/dist/actions/update-user-attributes-values.d.mts +27 -3
  160. package/dist/actions/update-user-attributes-values.d.mts.map +1 -1
  161. package/dist/actions/update-user-attributes-values.mjs +8 -8
  162. package/dist/actions/update-user-attributes-values.mjs.map +1 -1
  163. package/dist/actions/validate-credential.cjs +4 -4
  164. package/dist/actions/validate-credential.cjs.map +1 -1
  165. package/dist/actions/validate-credential.d.cts +17 -3
  166. package/dist/actions/validate-credential.d.cts.map +1 -1
  167. package/dist/actions/validate-credential.d.mts +17 -3
  168. package/dist/actions/validate-credential.d.mts.map +1 -1
  169. package/dist/actions/validate-credential.mjs +4 -4
  170. package/dist/actions/validate-credential.mjs.map +1 -1
  171. package/dist/catalog.cjs +18 -1
  172. package/dist/catalog.cjs.map +1 -1
  173. package/dist/catalog.d.cts +17 -0
  174. package/dist/catalog.d.mts +17 -0
  175. package/dist/catalog.mjs +18 -1
  176. package/dist/catalog.mjs.map +1 -1
  177. package/package.json +2 -2
@@ -1,9 +1,52 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-invite-by-token.d.ts
4
- declare const SanityGetInviteByTokenInput: z.ZodTypeAny;
5
- declare const SanityGetInviteByTokenOutput: z.ZodTypeAny;
6
- declare const sanityGetInviteByToken: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SanityGetInviteByTokenInput: z.ZodObject<{
5
+ resourceId: z.ZodString;
6
+ inviteToken: z.ZodString;
7
+ resourceType: z.ZodEnum<{
8
+ organization: "organization";
9
+ project: "project";
10
+ "media-library": "media-library";
11
+ canvas: "canvas";
12
+ dashboard: "dashboard";
13
+ view: "view";
14
+ }>;
15
+ }, z.core.$strip>;
16
+ declare const SanityGetInviteByTokenOutput: z.ZodObject<{
17
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ found: z.ZodNullable<z.ZodBoolean>;
22
+ status: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
23
+ pending: "pending";
24
+ accepted: "accepted";
25
+ revoked: "revoked";
26
+ }>>>;
27
+ createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
+ inviteeId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
+ inviterId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
+ updatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
31
+ resourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
+ inviterType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
33
+ user: "user";
34
+ service: "service";
35
+ }>>>;
36
+ resourceType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
37
+ organization: "organization";
38
+ project: "project";
39
+ "media-library": "media-library";
40
+ canvas: "canvas";
41
+ dashboard: "dashboard";
42
+ view: "view";
43
+ }>>>;
44
+ }, z.core.$loose>;
45
+ declare const sanityGetInviteByToken: import("@keystrokehq/action").WorkflowActionDefinition<{
46
+ resourceId: string;
47
+ inviteToken: string;
48
+ resourceType: "organization" | "project" | "media-library" | "canvas" | "dashboard" | "view";
49
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
50
  //#endregion
8
51
  export { sanityGetInviteByToken };
9
52
  //# sourceMappingURL=get-invite-by-token.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-invite-by-token.d.cts","names":[],"sources":["../../src/actions/get-invite-by-token.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAI8B;AAAA,cAI7D,4BAAA,EAA8B,CAAA,CAAE,UAcuB;AAAA,cAEvD,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-invite-by-token.d.cts","names":[],"sources":["../../src/actions/get-invite-by-token.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;cAQ3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAgB5B,sBAAA,gCAAsB,wBAAA"}
@@ -1,9 +1,52 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-invite-by-token.d.ts
4
- declare const SanityGetInviteByTokenInput: z.ZodTypeAny;
5
- declare const SanityGetInviteByTokenOutput: z.ZodTypeAny;
6
- declare const sanityGetInviteByToken: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SanityGetInviteByTokenInput: z.ZodObject<{
5
+ resourceId: z.ZodString;
6
+ inviteToken: z.ZodString;
7
+ resourceType: z.ZodEnum<{
8
+ organization: "organization";
9
+ project: "project";
10
+ "media-library": "media-library";
11
+ canvas: "canvas";
12
+ dashboard: "dashboard";
13
+ view: "view";
14
+ }>;
15
+ }, z.core.$strip>;
16
+ declare const SanityGetInviteByTokenOutput: z.ZodObject<{
17
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ found: z.ZodNullable<z.ZodBoolean>;
22
+ status: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
23
+ pending: "pending";
24
+ accepted: "accepted";
25
+ revoked: "revoked";
26
+ }>>>;
27
+ createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
+ inviteeId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
+ inviterId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
+ updatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
31
+ resourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
+ inviterType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
33
+ user: "user";
34
+ service: "service";
35
+ }>>>;
36
+ resourceType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
37
+ organization: "organization";
38
+ project: "project";
39
+ "media-library": "media-library";
40
+ canvas: "canvas";
41
+ dashboard: "dashboard";
42
+ view: "view";
43
+ }>>>;
44
+ }, z.core.$loose>;
45
+ declare const sanityGetInviteByToken: import("@keystrokehq/action").WorkflowActionDefinition<{
46
+ resourceId: string;
47
+ inviteToken: string;
48
+ resourceType: "organization" | "project" | "media-library" | "canvas" | "dashboard" | "view";
49
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
50
  //#endregion
8
51
  export { sanityGetInviteByToken };
9
52
  //# sourceMappingURL=get-invite-by-token.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-invite-by-token.d.mts","names":[],"sources":["../../src/actions/get-invite-by-token.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAI8B;AAAA,cAI7D,4BAAA,EAA8B,CAAA,CAAE,UAcuB;AAAA,cAEvD,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-invite-by-token.d.mts","names":[],"sources":["../../src/actions/get-invite-by-token.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;cAQ3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAgB5B,sBAAA,gCAAsB,wBAAA"}
@@ -37,7 +37,7 @@ const sanityGetInviteByToken = action("SANITY_GET_INVITE_BY_TOKEN", {
37
37
  role: z.string().describe("The role that will be assigned to the invitee upon accepting the invite. Only present if found=True.").nullable().optional(),
38
38
  email: z.string().describe("The email address of the invitee. Only present if the invite is still pending.").nullable().optional(),
39
39
  error: z.string().describe("Error message if the invite was not found. Only present if found=False.").nullable().optional(),
40
- found: z.boolean().describe("Whether the invite was found. True if invite exists, False if not found."),
40
+ found: z.boolean().describe("Whether the invite was found. True if invite exists, False if not found.").nullable(),
41
41
  status: SanityGetInviteByToken_InviteStatusSchema.nullable().optional(),
42
42
  createdAt: z.string().describe("The ISO 8601 timestamp when the invite was created. Only present if found=True.").nullable().optional(),
43
43
  inviteeId: z.string().describe("The ID of the user that accepted the invite. Only present if the invite has been accepted.").nullable().optional(),
@@ -46,7 +46,7 @@ const sanityGetInviteByToken = action("SANITY_GET_INVITE_BY_TOKEN", {
46
46
  resourceId: z.string().describe("The ID of the resource this invite applies to. Only present if found=True.").nullable().optional(),
47
47
  inviterType: SanityGetInviteByToken_InviterTypeSchema.nullable().optional(),
48
48
  resourceType: SanityGetInviteByToken_ResourceTypeSchema.nullable().optional()
49
- }).describe("Response model for the get invite by token operation.")
49
+ }).passthrough().describe("Response model for the get invite by token operation.")
50
50
  });
51
51
  //#endregion
52
52
  export { sanityGetInviteByToken };
@@ -1 +1 @@
1
- {"version":3,"file":"get-invite-by-token.mjs","names":[],"sources":["../../src/actions/get-invite-by-token.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityGetInviteByTokenInput: z.ZodTypeAny = z.object({\n resourceId: z.string().describe(\"The resource ID to scope the access request to. Must be a valid ID for the resource type.\"),\n inviteToken: z.string().describe(\"The public token for the invite. This token is shared with the invitee.\"),\n resourceType: z.enum([\"organization\", \"project\", \"media-library\", \"canvas\", \"dashboard\", \"view\"]).describe(\"The resource type to scope the access requests to. Must be one of: organization, project, media-library, canvas, dashboard, view.\"),\n}).describe(\"Request model for retrieving an invite by its public token.\");\nconst SanityGetInviteByToken_InviteStatusSchema: z.ZodTypeAny = z.enum([\"pending\", \"accepted\", \"revoked\"]).describe(\"The status of an invite.\");\nconst SanityGetInviteByToken_InviterTypeSchema: z.ZodTypeAny = z.enum([\"user\", \"service\"]).describe(\"The type of entity that created the invite.\");\nconst SanityGetInviteByToken_ResourceTypeSchema: z.ZodTypeAny = z.enum([\"organization\", \"project\", \"media-library\", \"canvas\", \"dashboard\", \"view\"]).describe(\"The resource types available for access control in Sanity.\");\nexport const SanityGetInviteByTokenOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier of the invite. Only present if found=True.\").nullable().optional(),\n role: z.string().describe(\"The role that will be assigned to the invitee upon accepting the invite. Only present if found=True.\").nullable().optional(),\n email: z.string().describe(\"The email address of the invitee. Only present if the invite is still pending.\").nullable().optional(),\n error: z.string().describe(\"Error message if the invite was not found. Only present if found=False.\").nullable().optional(),\n found: z.boolean().describe(\"Whether the invite was found. True if invite exists, False if not found.\"),\n status: SanityGetInviteByToken_InviteStatusSchema.nullable().optional(),\n createdAt: z.string().describe(\"The ISO 8601 timestamp when the invite was created. Only present if found=True.\").nullable().optional(),\n inviteeId: z.string().describe(\"The ID of the user that accepted the invite. Only present if the invite has been accepted.\").nullable().optional(),\n inviterId: z.string().describe(\"The ID of the user or service that created the invite. Only present if the invite was created by a user.\").nullable().optional(),\n updatedAt: z.string().describe(\"The ISO 8601 timestamp when the invite was last updated. Only present if found=True.\").nullable().optional(),\n resourceId: z.string().describe(\"The ID of the resource this invite applies to. Only present if found=True.\").nullable().optional(),\n inviterType: SanityGetInviteByToken_InviterTypeSchema.nullable().optional(),\n resourceType: SanityGetInviteByToken_ResourceTypeSchema.nullable().optional(),\n}).describe(\"Response model for the get invite by token operation.\");\n\nexport const sanityGetInviteByToken = action(\"SANITY_GET_INVITE_BY_TOKEN\", {\n slug: \"sanity-get-invite-by-token\",\n name: \"Get Invite By Token\",\n description: \"Retrieve an invite by its public token. Use this action when you need to fetch details about an invite using the invite token that was shared with the invitee. Returns invite information including status, role, and inviter details.\",\n input: SanityGetInviteByTokenInput,\n output: SanityGetInviteByTokenOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA4C,EAAE,OAAO;CAChE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2FAA2F;CAC3H,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE;CAC1G,cAAc,EAAE,KAAK;EAAC;EAAgB;EAAW;EAAiB;EAAU;EAAa;CAAM,CAAC,CAAC,CAAC,SAAS,mIAAmI;AAChP,CAAC,CAAC,CAAC,SAAS,6DAA6D;AACzE,MAAM,4CAA0D,EAAE,KAAK;CAAC;CAAW;CAAY;AAAS,CAAC,CAAC,CAAC,SAAS,0BAA0B;AAC9I,MAAM,2CAAyD,EAAE,KAAK,CAAC,QAAQ,SAAS,CAAC,CAAC,CAAC,SAAS,6CAA6C;AACjJ,MAAM,4CAA0D,EAAE,KAAK;CAAC;CAAgB;CAAW;CAAiB;CAAU;CAAa;AAAM,CAAC,CAAC,CAAC,SAAS,4DAA4D;AAiBzN,MAAa,yBAAyB,OAAO,8BAA8B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QArBwD,EAAE,OAAO;EACjE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChH,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtJ,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjI,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1H,OAAO,EAAE,QAAQ,CAAC,CAAC,SAAS,0EAA0E;EACtG,QAAQ,0CAA0C,SAAS,CAAC,CAAC,SAAS;EACtE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtI,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,4FAA4F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjJ,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,0GAA0G,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/J,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3I,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClI,aAAa,yCAAyC,SAAS,CAAC,CAAC,SAAS;EAC1E,cAAc,0CAA0C,SAAS,CAAC,CAAC,SAAS;CAC9E,CAAC,CAAC,CAAC,SAAS,uDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"get-invite-by-token.mjs","names":[],"sources":["../../src/actions/get-invite-by-token.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityGetInviteByTokenInput = z.object({\n resourceId: z.string().describe(\"The resource ID to scope the access request to. Must be a valid ID for the resource type.\"),\n inviteToken: z.string().describe(\"The public token for the invite. This token is shared with the invitee.\"),\n resourceType: z.enum([\"organization\", \"project\", \"media-library\", \"canvas\", \"dashboard\", \"view\"]).describe(\"The resource type to scope the access requests to. Must be one of: organization, project, media-library, canvas, dashboard, view.\"),\n}).describe(\"Request model for retrieving an invite by its public token.\");\nconst SanityGetInviteByToken_InviteStatusSchema = z.enum([\"pending\", \"accepted\", \"revoked\"]).describe(\"The status of an invite.\");\nconst SanityGetInviteByToken_InviterTypeSchema = z.enum([\"user\", \"service\"]).describe(\"The type of entity that created the invite.\");\nconst SanityGetInviteByToken_ResourceTypeSchema = z.enum([\"organization\", \"project\", \"media-library\", \"canvas\", \"dashboard\", \"view\"]).describe(\"The resource types available for access control in Sanity.\");\nexport const SanityGetInviteByTokenOutput = z.object({\n id: z.string().describe(\"The unique identifier of the invite. Only present if found=True.\").nullable().optional(),\n role: z.string().describe(\"The role that will be assigned to the invitee upon accepting the invite. Only present if found=True.\").nullable().optional(),\n email: z.string().describe(\"The email address of the invitee. Only present if the invite is still pending.\").nullable().optional(),\n error: z.string().describe(\"Error message if the invite was not found. Only present if found=False.\").nullable().optional(),\n found: z.boolean().describe(\"Whether the invite was found. True if invite exists, False if not found.\").nullable(),\n status: SanityGetInviteByToken_InviteStatusSchema.nullable().optional(),\n createdAt: z.string().describe(\"The ISO 8601 timestamp when the invite was created. Only present if found=True.\").nullable().optional(),\n inviteeId: z.string().describe(\"The ID of the user that accepted the invite. Only present if the invite has been accepted.\").nullable().optional(),\n inviterId: z.string().describe(\"The ID of the user or service that created the invite. Only present if the invite was created by a user.\").nullable().optional(),\n updatedAt: z.string().describe(\"The ISO 8601 timestamp when the invite was last updated. Only present if found=True.\").nullable().optional(),\n resourceId: z.string().describe(\"The ID of the resource this invite applies to. Only present if found=True.\").nullable().optional(),\n inviterType: SanityGetInviteByToken_InviterTypeSchema.nullable().optional(),\n resourceType: SanityGetInviteByToken_ResourceTypeSchema.nullable().optional(),\n}).passthrough().describe(\"Response model for the get invite by token operation.\");\n\nexport const sanityGetInviteByToken = action(\"SANITY_GET_INVITE_BY_TOKEN\", {\n slug: \"sanity-get-invite-by-token\",\n name: \"Get Invite By Token\",\n description: \"Retrieve an invite by its public token. Use this action when you need to fetch details about an invite using the invite token that was shared with the invitee. Returns invite information including status, role, and inviter details.\",\n input: SanityGetInviteByTokenInput,\n output: SanityGetInviteByTokenOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8B,EAAE,OAAO;CAClD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2FAA2F;CAC3H,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE;CAC1G,cAAc,EAAE,KAAK;EAAC;EAAgB;EAAW;EAAiB;EAAU;EAAa;CAAM,CAAC,CAAC,CAAC,SAAS,mIAAmI;AAChP,CAAC,CAAC,CAAC,SAAS,6DAA6D;AACzE,MAAM,4CAA4C,EAAE,KAAK;CAAC;CAAW;CAAY;AAAS,CAAC,CAAC,CAAC,SAAS,0BAA0B;AAChI,MAAM,2CAA2C,EAAE,KAAK,CAAC,QAAQ,SAAS,CAAC,CAAC,CAAC,SAAS,6CAA6C;AACnI,MAAM,4CAA4C,EAAE,KAAK;CAAC;CAAgB;CAAW;CAAiB;CAAU;CAAa;AAAM,CAAC,CAAC,CAAC,SAAS,4DAA4D;AAiB3M,MAAa,yBAAyB,OAAO,8BAA8B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QArB0C,EAAE,OAAO;EACnD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChH,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtJ,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjI,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1H,OAAO,EAAE,QAAQ,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;EACjH,QAAQ,0CAA0C,SAAS,CAAC,CAAC,SAAS;EACtE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtI,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,4FAA4F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjJ,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,0GAA0G,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/J,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3I,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClI,aAAa,yCAAyC,SAAS,CAAC,CAAC,SAAS;EAC1E,cAAc,0CAA0C,SAAS,CAAC,CAAC,SAAS;CAC9E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAOhB;AACV,CAAC"}
@@ -10,20 +10,20 @@ const SanityGetOrgRole_PermissionSchema = zod.z.object({
10
10
  type: zod.z.string().describe("Type of the permission").nullable().optional(),
11
11
  action: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Action details for the permission").nullable().optional(),
12
12
  params: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Parameters for the permission").nullable().optional()
13
- }).describe("Represents a single permission within a role.");
13
+ }).passthrough().describe("Represents a single permission within a role.");
14
14
  const SanityGetOrgRole_OrgRoleSchema = zod.z.object({
15
15
  id: zod.z.string().describe("The unique identifier of the role").nullable().optional(),
16
- name: zod.z.string().describe("The unique name identifier of the role"),
17
- title: zod.z.string().describe("Display title of the role"),
16
+ name: zod.z.string().describe("The unique name identifier of the role").nullable(),
17
+ title: zod.z.string().describe("Display title of the role").nullable(),
18
18
  isCustom: zod.z.boolean().describe("Whether this is a custom role defined by the user").nullable().optional(),
19
- resourceId: zod.z.string().describe("The ID of the resource this role applies to"),
19
+ resourceId: zod.z.string().describe("The ID of the resource this role applies to").nullable(),
20
20
  description: zod.z.string().describe("Detailed description of what the role allows").nullable().optional(),
21
21
  permissions: zod.z.array(SanityGetOrgRole_PermissionSchema).describe("List of permissions granted by this role"),
22
- resourceType: zod.z.string().describe("The type of resource this role applies to"),
23
- appliesToUsers: zod.z.boolean().describe("Whether this role can be assigned to users"),
24
- appliesToRobots: zod.z.boolean().describe("Whether this role can be assigned to robots/service accounts")
25
- }).describe("Represents an organization role with its permissions and settings.");
26
- const SanityGetOrgRoleOutput = zod.z.object({ data: SanityGetOrgRole_OrgRoleSchema.nullable() }).describe("Response model for the get organization role operation.");
22
+ resourceType: zod.z.string().describe("The type of resource this role applies to").nullable(),
23
+ appliesToUsers: zod.z.boolean().describe("Whether this role can be assigned to users").nullable(),
24
+ appliesToRobots: zod.z.boolean().describe("Whether this role can be assigned to robots/service accounts").nullable()
25
+ }).passthrough().describe("Represents an organization role with its permissions and settings.");
26
+ const SanityGetOrgRoleOutput = zod.z.object({ data: SanityGetOrgRole_OrgRoleSchema.nullable() }).passthrough().describe("Response model for the get organization role operation.");
27
27
  const sanityGetOrgRole = require_action.action("SANITY_GET_ORG_ROLE", {
28
28
  slug: "sanity-get-org-role",
29
29
  name: "Get Organization Role",
@@ -1 +1 @@
1
- {"version":3,"file":"get-org-role.cjs","names":["z","action"],"sources":["../../src/actions/get-org-role.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityGetOrgRoleInput: z.ZodTypeAny = z.object({\n roleId: z.string().describe(\"The unique identifier of the role to retrieve\"),\n organizationId: z.string().describe(\"The unique identifier of the organization\"),\n}).describe(\"Request model for retrieving a specific organization role.\");\nconst SanityGetOrgRole_PermissionSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the permission action\").nullable().optional(),\n type: z.string().describe(\"Type of the permission\").nullable().optional(),\n action: z.record(z.string(), z.unknown()).describe(\"Action details for the permission\").nullable().optional(),\n params: z.record(z.string(), z.unknown()).describe(\"Parameters for the permission\").nullable().optional(),\n}).describe(\"Represents a single permission within a role.\");\nconst SanityGetOrgRole_OrgRoleSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier of the role\").nullable().optional(),\n name: z.string().describe(\"The unique name identifier of the role\"),\n title: z.string().describe(\"Display title of the role\"),\n isCustom: z.boolean().describe(\"Whether this is a custom role defined by the user\").nullable().optional(),\n resourceId: z.string().describe(\"The ID of the resource this role applies to\"),\n description: z.string().describe(\"Detailed description of what the role allows\").nullable().optional(),\n permissions: z.array(SanityGetOrgRole_PermissionSchema).describe(\"List of permissions granted by this role\"),\n resourceType: z.string().describe(\"The type of resource this role applies to\"),\n appliesToUsers: z.boolean().describe(\"Whether this role can be assigned to users\"),\n appliesToRobots: z.boolean().describe(\"Whether this role can be assigned to robots/service accounts\"),\n}).describe(\"Represents an organization role with its permissions and settings.\");\nexport const SanityGetOrgRoleOutput: z.ZodTypeAny = z.object({\n data: SanityGetOrgRole_OrgRoleSchema.nullable(),\n}).describe(\"Response model for the get organization role operation.\");\n\nexport const sanityGetOrgRole = action(\"SANITY_GET_ORG_ROLE\", {\n slug: \"sanity-get-org-role\",\n name: \"Get Organization Role\",\n description: \"Retrieve a specific organization role by its ID. Use this action when you need to fetch details about an organization role including its permissions, title, description, and whether it applies to users or robots. The role must exist for the specified organization.\",\n input: SanityGetOrgRoleInput,\n output: SanityGetOrgRoleOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAsCA,IAAAA,EAAE,OAAO;CAC1D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CAC3E,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;AACjF,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAM,oCAAkDA,IAAAA,EAAE,OAAO;CAC/D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxE,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,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,MAAM,iCAA+CA,IAAAA,EAAE,OAAO;CAC5D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;CAClE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CACtD,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;CAC7E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,aAAaA,IAAAA,EAAE,MAAM,iCAAiC,CAAC,CAAC,SAAS,0CAA0C;CAC3G,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;CAC7E,gBAAgBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,4CAA4C;CACjF,iBAAiBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,8DAA8D;AACtG,CAAC,CAAC,CAAC,SAAS,oEAAoE;AAChF,MAAa,yBAAuCA,IAAAA,EAAE,OAAO,EAC3D,MAAM,+BAA+B,SAAS,EAChD,CAAC,CAAC,CAAC,SAAS,yDAAyD;AAErE,MAAa,mBAAmBC,eAAAA,OAAO,uBAAuB;CAC5D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-org-role.cjs","names":["z","action"],"sources":["../../src/actions/get-org-role.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityGetOrgRoleInput = z.object({\n roleId: z.string().describe(\"The unique identifier of the role to retrieve\"),\n organizationId: z.string().describe(\"The unique identifier of the organization\"),\n}).describe(\"Request model for retrieving a specific organization role.\");\nconst SanityGetOrgRole_PermissionSchema = z.object({\n name: z.string().describe(\"Name of the permission action\").nullable().optional(),\n type: z.string().describe(\"Type of the permission\").nullable().optional(),\n action: z.record(z.string(), z.unknown()).describe(\"Action details for the permission\").nullable().optional(),\n params: z.record(z.string(), z.unknown()).describe(\"Parameters for the permission\").nullable().optional(),\n}).passthrough().describe(\"Represents a single permission within a role.\");\nconst SanityGetOrgRole_OrgRoleSchema = z.object({\n id: z.string().describe(\"The unique identifier of the role\").nullable().optional(),\n name: z.string().describe(\"The unique name identifier of the role\").nullable(),\n title: z.string().describe(\"Display title of the role\").nullable(),\n isCustom: z.boolean().describe(\"Whether this is a custom role defined by the user\").nullable().optional(),\n resourceId: z.string().describe(\"The ID of the resource this role applies to\").nullable(),\n description: z.string().describe(\"Detailed description of what the role allows\").nullable().optional(),\n permissions: z.array(SanityGetOrgRole_PermissionSchema).describe(\"List of permissions granted by this role\"),\n resourceType: z.string().describe(\"The type of resource this role applies to\").nullable(),\n appliesToUsers: z.boolean().describe(\"Whether this role can be assigned to users\").nullable(),\n appliesToRobots: z.boolean().describe(\"Whether this role can be assigned to robots/service accounts\").nullable(),\n}).passthrough().describe(\"Represents an organization role with its permissions and settings.\");\nexport const SanityGetOrgRoleOutput = z.object({\n data: SanityGetOrgRole_OrgRoleSchema.nullable(),\n}).passthrough().describe(\"Response model for the get organization role operation.\");\n\nexport const sanityGetOrgRole = action(\"SANITY_GET_ORG_ROLE\", {\n slug: \"sanity-get-org-role\",\n name: \"Get Organization Role\",\n description: \"Retrieve a specific organization role by its ID. Use this action when you need to fetch details about an organization role including its permissions, title, description, and whether it applies to users or robots. The role must exist for the specified organization.\",\n input: SanityGetOrgRoleInput,\n output: SanityGetOrgRoleOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAwBA,IAAAA,EAAE,OAAO;CAC5C,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CAC3E,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;AACjF,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAM,oCAAoCA,IAAAA,EAAE,OAAO;CACjD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxE,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,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,YAAY,CAAC,CAAC,SAAS,+CAA+C;AACzE,MAAM,iCAAiCA,IAAAA,EAAE,OAAO;CAC9C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,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,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACxF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,aAAaA,IAAAA,EAAE,MAAM,iCAAiC,CAAC,CAAC,SAAS,0CAA0C;CAC3G,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACxF,gBAAgBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CAC5F,iBAAiBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;AACjH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oEAAoE;AAC9F,MAAa,yBAAyBA,IAAAA,EAAE,OAAO,EAC7C,MAAM,+BAA+B,SAAS,EAChD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yDAAyD;AAEnF,MAAa,mBAAmBC,eAAAA,OAAO,uBAAuB;CAC5D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,33 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-org-role.d.ts
4
- declare const SanityGetOrgRoleInput: z.ZodTypeAny;
5
- declare const SanityGetOrgRoleOutput: z.ZodTypeAny;
6
- declare const sanityGetOrgRole: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SanityGetOrgRoleInput: z.ZodObject<{
5
+ roleId: z.ZodString;
6
+ organizationId: z.ZodString;
7
+ }, z.core.$strip>;
8
+ declare const SanityGetOrgRoleOutput: z.ZodObject<{
9
+ data: z.ZodNullable<z.ZodObject<{
10
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
+ name: z.ZodNullable<z.ZodString>;
12
+ title: z.ZodNullable<z.ZodString>;
13
+ isCustom: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
14
+ resourceId: z.ZodNullable<z.ZodString>;
15
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ permissions: z.ZodArray<z.ZodObject<{
17
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ action: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
20
+ params: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
21
+ }, z.core.$loose>>;
22
+ resourceType: z.ZodNullable<z.ZodString>;
23
+ appliesToUsers: z.ZodNullable<z.ZodBoolean>;
24
+ appliesToRobots: z.ZodNullable<z.ZodBoolean>;
25
+ }, z.core.$loose>>;
26
+ }, z.core.$loose>;
27
+ declare const sanityGetOrgRole: import("@keystrokehq/action").WorkflowActionDefinition<{
28
+ roleId: string;
29
+ organizationId: string;
30
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
31
  //#endregion
8
32
  export { sanityGetOrgRole };
9
33
  //# sourceMappingURL=get-org-role.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-org-role.d.cts","names":[],"sources":["../../src/actions/get-org-role.ts"],"mappings":";;;cAIa,qBAAA,EAAuB,CAAA,CAAE,UAGmC;AAAA,cAmB5D,sBAAA,EAAwB,CAAA,CAAE,UAE+B;AAAA,cAEzD,gBAAA,gCAAgB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-org-role.d.cts","names":[],"sources":["../../src/actions/get-org-role.ts"],"mappings":";;;cAIa,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;cAsBrB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;cAItB,gBAAA,gCAAgB,wBAAA"}
@@ -1,9 +1,33 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-org-role.d.ts
4
- declare const SanityGetOrgRoleInput: z.ZodTypeAny;
5
- declare const SanityGetOrgRoleOutput: z.ZodTypeAny;
6
- declare const sanityGetOrgRole: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SanityGetOrgRoleInput: z.ZodObject<{
5
+ roleId: z.ZodString;
6
+ organizationId: z.ZodString;
7
+ }, z.core.$strip>;
8
+ declare const SanityGetOrgRoleOutput: z.ZodObject<{
9
+ data: z.ZodNullable<z.ZodObject<{
10
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
+ name: z.ZodNullable<z.ZodString>;
12
+ title: z.ZodNullable<z.ZodString>;
13
+ isCustom: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
14
+ resourceId: z.ZodNullable<z.ZodString>;
15
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ permissions: z.ZodArray<z.ZodObject<{
17
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ action: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
20
+ params: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
21
+ }, z.core.$loose>>;
22
+ resourceType: z.ZodNullable<z.ZodString>;
23
+ appliesToUsers: z.ZodNullable<z.ZodBoolean>;
24
+ appliesToRobots: z.ZodNullable<z.ZodBoolean>;
25
+ }, z.core.$loose>>;
26
+ }, z.core.$loose>;
27
+ declare const sanityGetOrgRole: import("@keystrokehq/action").WorkflowActionDefinition<{
28
+ roleId: string;
29
+ organizationId: string;
30
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
31
  //#endregion
8
32
  export { sanityGetOrgRole };
9
33
  //# sourceMappingURL=get-org-role.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-org-role.d.mts","names":[],"sources":["../../src/actions/get-org-role.ts"],"mappings":";;;cAIa,qBAAA,EAAuB,CAAA,CAAE,UAGmC;AAAA,cAmB5D,sBAAA,EAAwB,CAAA,CAAE,UAE+B;AAAA,cAEzD,gBAAA,gCAAgB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-org-role.d.mts","names":[],"sources":["../../src/actions/get-org-role.ts"],"mappings":";;;cAIa,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;cAsBrB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;cAItB,gBAAA,gCAAgB,wBAAA"}
@@ -10,25 +10,25 @@ const SanityGetOrgRole_PermissionSchema = z.object({
10
10
  type: z.string().describe("Type of the permission").nullable().optional(),
11
11
  action: z.record(z.string(), z.unknown()).describe("Action details for the permission").nullable().optional(),
12
12
  params: z.record(z.string(), z.unknown()).describe("Parameters for the permission").nullable().optional()
13
- }).describe("Represents a single permission within a role.");
13
+ }).passthrough().describe("Represents a single permission within a role.");
14
14
  const SanityGetOrgRole_OrgRoleSchema = z.object({
15
15
  id: z.string().describe("The unique identifier of the role").nullable().optional(),
16
- name: z.string().describe("The unique name identifier of the role"),
17
- title: z.string().describe("Display title of the role"),
16
+ name: z.string().describe("The unique name identifier of the role").nullable(),
17
+ title: z.string().describe("Display title of the role").nullable(),
18
18
  isCustom: z.boolean().describe("Whether this is a custom role defined by the user").nullable().optional(),
19
- resourceId: z.string().describe("The ID of the resource this role applies to"),
19
+ resourceId: z.string().describe("The ID of the resource this role applies to").nullable(),
20
20
  description: z.string().describe("Detailed description of what the role allows").nullable().optional(),
21
21
  permissions: z.array(SanityGetOrgRole_PermissionSchema).describe("List of permissions granted by this role"),
22
- resourceType: z.string().describe("The type of resource this role applies to"),
23
- appliesToUsers: z.boolean().describe("Whether this role can be assigned to users"),
24
- appliesToRobots: z.boolean().describe("Whether this role can be assigned to robots/service accounts")
25
- }).describe("Represents an organization role with its permissions and settings.");
22
+ resourceType: z.string().describe("The type of resource this role applies to").nullable(),
23
+ appliesToUsers: z.boolean().describe("Whether this role can be assigned to users").nullable(),
24
+ appliesToRobots: z.boolean().describe("Whether this role can be assigned to robots/service accounts").nullable()
25
+ }).passthrough().describe("Represents an organization role with its permissions and settings.");
26
26
  const sanityGetOrgRole = action("SANITY_GET_ORG_ROLE", {
27
27
  slug: "sanity-get-org-role",
28
28
  name: "Get Organization Role",
29
29
  description: "Retrieve a specific organization role by its ID. Use this action when you need to fetch details about an organization role including its permissions, title, description, and whether it applies to users or robots. The role must exist for the specified organization.",
30
30
  input: SanityGetOrgRoleInput,
31
- output: z.object({ data: SanityGetOrgRole_OrgRoleSchema.nullable() }).describe("Response model for the get organization role operation.")
31
+ output: z.object({ data: SanityGetOrgRole_OrgRoleSchema.nullable() }).passthrough().describe("Response model for the get organization role operation.")
32
32
  });
33
33
  //#endregion
34
34
  export { sanityGetOrgRole };
@@ -1 +1 @@
1
- {"version":3,"file":"get-org-role.mjs","names":[],"sources":["../../src/actions/get-org-role.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityGetOrgRoleInput: z.ZodTypeAny = z.object({\n roleId: z.string().describe(\"The unique identifier of the role to retrieve\"),\n organizationId: z.string().describe(\"The unique identifier of the organization\"),\n}).describe(\"Request model for retrieving a specific organization role.\");\nconst SanityGetOrgRole_PermissionSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the permission action\").nullable().optional(),\n type: z.string().describe(\"Type of the permission\").nullable().optional(),\n action: z.record(z.string(), z.unknown()).describe(\"Action details for the permission\").nullable().optional(),\n params: z.record(z.string(), z.unknown()).describe(\"Parameters for the permission\").nullable().optional(),\n}).describe(\"Represents a single permission within a role.\");\nconst SanityGetOrgRole_OrgRoleSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier of the role\").nullable().optional(),\n name: z.string().describe(\"The unique name identifier of the role\"),\n title: z.string().describe(\"Display title of the role\"),\n isCustom: z.boolean().describe(\"Whether this is a custom role defined by the user\").nullable().optional(),\n resourceId: z.string().describe(\"The ID of the resource this role applies to\"),\n description: z.string().describe(\"Detailed description of what the role allows\").nullable().optional(),\n permissions: z.array(SanityGetOrgRole_PermissionSchema).describe(\"List of permissions granted by this role\"),\n resourceType: z.string().describe(\"The type of resource this role applies to\"),\n appliesToUsers: z.boolean().describe(\"Whether this role can be assigned to users\"),\n appliesToRobots: z.boolean().describe(\"Whether this role can be assigned to robots/service accounts\"),\n}).describe(\"Represents an organization role with its permissions and settings.\");\nexport const SanityGetOrgRoleOutput: z.ZodTypeAny = z.object({\n data: SanityGetOrgRole_OrgRoleSchema.nullable(),\n}).describe(\"Response model for the get organization role operation.\");\n\nexport const sanityGetOrgRole = action(\"SANITY_GET_ORG_ROLE\", {\n slug: \"sanity-get-org-role\",\n name: \"Get Organization Role\",\n description: \"Retrieve a specific organization role by its ID. Use this action when you need to fetch details about an organization role including its permissions, title, description, and whether it applies to users or robots. The role must exist for the specified organization.\",\n input: SanityGetOrgRoleInput,\n output: SanityGetOrgRoleOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAsC,EAAE,OAAO;CAC1D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CAC3E,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;AACjF,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAM,oCAAkD,EAAE,OAAO;CAC/D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxE,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAC3D,MAAM,iCAA+C,EAAE,OAAO;CAC5D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;CAClE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CACtD,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;CAC7E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,aAAa,EAAE,MAAM,iCAAiC,CAAC,CAAC,SAAS,0CAA0C;CAC3G,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;CAC7E,gBAAgB,EAAE,QAAQ,CAAC,CAAC,SAAS,4CAA4C;CACjF,iBAAiB,EAAE,QAAQ,CAAC,CAAC,SAAS,8DAA8D;AACtG,CAAC,CAAC,CAAC,SAAS,oEAAoE;AAKhF,MAAa,mBAAmB,OAAO,uBAAuB;CAC5D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATkD,EAAE,OAAO,EAC3D,MAAM,+BAA+B,SAAS,EAChD,CAAC,CAAC,CAAC,SAAS,yDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"get-org-role.mjs","names":[],"sources":["../../src/actions/get-org-role.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityGetOrgRoleInput = z.object({\n roleId: z.string().describe(\"The unique identifier of the role to retrieve\"),\n organizationId: z.string().describe(\"The unique identifier of the organization\"),\n}).describe(\"Request model for retrieving a specific organization role.\");\nconst SanityGetOrgRole_PermissionSchema = z.object({\n name: z.string().describe(\"Name of the permission action\").nullable().optional(),\n type: z.string().describe(\"Type of the permission\").nullable().optional(),\n action: z.record(z.string(), z.unknown()).describe(\"Action details for the permission\").nullable().optional(),\n params: z.record(z.string(), z.unknown()).describe(\"Parameters for the permission\").nullable().optional(),\n}).passthrough().describe(\"Represents a single permission within a role.\");\nconst SanityGetOrgRole_OrgRoleSchema = z.object({\n id: z.string().describe(\"The unique identifier of the role\").nullable().optional(),\n name: z.string().describe(\"The unique name identifier of the role\").nullable(),\n title: z.string().describe(\"Display title of the role\").nullable(),\n isCustom: z.boolean().describe(\"Whether this is a custom role defined by the user\").nullable().optional(),\n resourceId: z.string().describe(\"The ID of the resource this role applies to\").nullable(),\n description: z.string().describe(\"Detailed description of what the role allows\").nullable().optional(),\n permissions: z.array(SanityGetOrgRole_PermissionSchema).describe(\"List of permissions granted by this role\"),\n resourceType: z.string().describe(\"The type of resource this role applies to\").nullable(),\n appliesToUsers: z.boolean().describe(\"Whether this role can be assigned to users\").nullable(),\n appliesToRobots: z.boolean().describe(\"Whether this role can be assigned to robots/service accounts\").nullable(),\n}).passthrough().describe(\"Represents an organization role with its permissions and settings.\");\nexport const SanityGetOrgRoleOutput = z.object({\n data: SanityGetOrgRole_OrgRoleSchema.nullable(),\n}).passthrough().describe(\"Response model for the get organization role operation.\");\n\nexport const sanityGetOrgRole = action(\"SANITY_GET_ORG_ROLE\", {\n slug: \"sanity-get-org-role\",\n name: \"Get Organization Role\",\n description: \"Retrieve a specific organization role by its ID. Use this action when you need to fetch details about an organization role including its permissions, title, description, and whether it applies to users or robots. The role must exist for the specified organization.\",\n input: SanityGetOrgRoleInput,\n output: SanityGetOrgRoleOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAwB,EAAE,OAAO;CAC5C,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CAC3E,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;AACjF,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAM,oCAAoC,EAAE,OAAO;CACjD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxE,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAA+C;AACzE,MAAM,iCAAiC,EAAE,OAAO;CAC9C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC7E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACjE,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACxF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,aAAa,EAAE,MAAM,iCAAiC,CAAC,CAAC,SAAS,0CAA0C;CAC3G,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACxF,gBAAgB,EAAE,QAAQ,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CAC5F,iBAAiB,EAAE,QAAQ,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;AACjH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oEAAoE;AAK9F,MAAa,mBAAmB,OAAO,uBAAuB;CAC5D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAToC,EAAE,OAAO,EAC7C,MAAM,+BAA+B,SAAS,EAChD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yDAOhB;AACV,CAAC"}
@@ -7,21 +7,21 @@ const SanityGetPermissionInput = zod.z.object({
7
7
  permission_name: zod.z.string().describe("The name of the permission. This is a unique identifier for the permission.")
8
8
  }).describe("Request model for SanityGetPermission action.");
9
9
  const SanityGetPermission_PermissionActionSchema = zod.z.object({
10
- name: zod.z.string().describe("The name of the action."),
11
- title: zod.z.string().describe("The title of the action."),
10
+ name: zod.z.string().describe("The name of the action.").nullable(),
11
+ title: zod.z.string().describe("The title of the action.").nullable(),
12
12
  description: zod.z.string().describe("The description of the action.").nullable().optional()
13
- }).describe("A permission action.");
13
+ }).passthrough().describe("A permission action.");
14
14
  const SanityGetPermissionOutput = zod.z.object({
15
- name: zod.z.string().describe("The name of the permission. This is the unique identifier for the resource."),
16
- type: zod.z.string().describe("The resource type for the permission."),
17
- title: zod.z.string().describe("The human-readable title of the permission."),
15
+ name: zod.z.string().describe("The name of the permission. This is the unique identifier for the resource.").nullable(),
16
+ type: zod.z.string().describe("The resource type for the permission.").nullable(),
17
+ title: zod.z.string().describe("The human-readable title of the permission.").nullable(),
18
18
  params: zod.z.record(zod.z.string(), zod.z.unknown()).describe("The parameters for the permission. This is a key-value map of the permission's configuration.").nullable().optional(),
19
19
  actions: zod.z.array(SanityGetPermission_PermissionActionSchema).describe("The actions allowed by the permission for this role.").nullable().optional(),
20
- resourceId: zod.z.string().describe("The resource ID that the permission applies to."),
20
+ resourceId: zod.z.string().describe("The resource ID that the permission applies to.").nullable(),
21
21
  description: zod.z.string().describe("The description of the permission.").nullable().optional(),
22
- resourceType: zod.z.string().describe("The resource that the permission applies to."),
22
+ resourceType: zod.z.string().describe("The resource that the permission applies to.").nullable(),
23
23
  ownerOrganizationId: zod.z.string().describe("The organization ID that the permission applies to. Used for wildcard permissions where the resourceId is `*`.").nullable().optional()
24
- }).describe("Response model for SanityGetPermission action.");
24
+ }).passthrough().describe("Response model for SanityGetPermission action.");
25
25
  const sanityGetPermission = require_action.action("SANITY_GET_PERMISSION", {
26
26
  slug: "sanity-get-permission",
27
27
  name: "Get Permission",
@@ -1 +1 @@
1
- {"version":3,"file":"get-permission.cjs","names":["z","action"],"sources":["../../src/actions/get-permission.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityGetPermissionInput: z.ZodTypeAny = z.object({\n resource_id: z.string().describe(\"The resource ID to scope the access request to. Must be a valid ID for the resource type.\"),\n resource_type: z.string().describe(\"The resource to scope access requests to. Must be one of: 'organization' or 'project'.\"),\n permission_name: z.string().describe(\"The name of the permission. This is a unique identifier for the permission.\"),\n}).describe(\"Request model for SanityGetPermission action.\");\nconst SanityGetPermission_PermissionActionSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"The name of the action.\"),\n title: z.string().describe(\"The title of the action.\"),\n description: z.string().describe(\"The description of the action.\").nullable().optional(),\n}).describe(\"A permission action.\");\nexport const SanityGetPermissionOutput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"The name of the permission. This is the unique identifier for the resource.\"),\n type: z.string().describe(\"The resource type for the permission.\"),\n title: z.string().describe(\"The human-readable title of the permission.\"),\n params: z.record(z.string(), z.unknown()).describe(\"The parameters for the permission. This is a key-value map of the permission's configuration.\").nullable().optional(),\n actions: z.array(SanityGetPermission_PermissionActionSchema).describe(\"The actions allowed by the permission for this role.\").nullable().optional(),\n resourceId: z.string().describe(\"The resource ID that the permission applies to.\"),\n description: z.string().describe(\"The description of the permission.\").nullable().optional(),\n resourceType: z.string().describe(\"The resource that the permission applies to.\"),\n ownerOrganizationId: z.string().describe(\"The organization ID that the permission applies to. Used for wildcard permissions where the resourceId is `*`.\").nullable().optional(),\n}).describe(\"Response model for SanityGetPermission action.\");\n\nexport const sanityGetPermission = action(\"SANITY_GET_PERMISSION\", {\n slug: \"sanity-get-permission\",\n name: \"Get Permission\",\n description: \"Get a permission for a specific resource. Use when you need to retrieve details about a particular permission including its actions, parameters, and scope. The action retrieves permission information based on the resource type, resource ID, and permission name provided in the path parameters.\",\n input: SanityGetPermissionInput,\n output: SanityGetPermissionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAAyCA,IAAAA,EAAE,OAAO;CAC7D,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2FAA2F;CAC5H,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF;CAC3H,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E;AACpH,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAC3D,MAAM,6CAA2DA,IAAAA,EAAE,OAAO;CACxE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;CACnD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;CACrD,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzF,CAAC,CAAC,CAAC,SAAS,sBAAsB;AAClC,MAAa,4BAA0CA,IAAAA,EAAE,OAAO;CAC9D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E;CACvG,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CACjE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;CACxE,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+FAA+F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxK,SAASA,IAAAA,EAAE,MAAM,0CAA0C,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClJ,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;CACjF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;CAChF,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gHAAgH,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjL,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAE5D,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-permission.cjs","names":["z","action"],"sources":["../../src/actions/get-permission.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityGetPermissionInput = z.object({\n resource_id: z.string().describe(\"The resource ID to scope the access request to. Must be a valid ID for the resource type.\"),\n resource_type: z.string().describe(\"The resource to scope access requests to. Must be one of: 'organization' or 'project'.\"),\n permission_name: z.string().describe(\"The name of the permission. This is a unique identifier for the permission.\"),\n}).describe(\"Request model for SanityGetPermission action.\");\nconst SanityGetPermission_PermissionActionSchema = z.object({\n name: z.string().describe(\"The name of the action.\").nullable(),\n title: z.string().describe(\"The title of the action.\").nullable(),\n description: z.string().describe(\"The description of the action.\").nullable().optional(),\n}).passthrough().describe(\"A permission action.\");\nexport const SanityGetPermissionOutput = z.object({\n name: z.string().describe(\"The name of the permission. This is the unique identifier for the resource.\").nullable(),\n type: z.string().describe(\"The resource type for the permission.\").nullable(),\n title: z.string().describe(\"The human-readable title of the permission.\").nullable(),\n params: z.record(z.string(), z.unknown()).describe(\"The parameters for the permission. This is a key-value map of the permission's configuration.\").nullable().optional(),\n actions: z.array(SanityGetPermission_PermissionActionSchema).describe(\"The actions allowed by the permission for this role.\").nullable().optional(),\n resourceId: z.string().describe(\"The resource ID that the permission applies to.\").nullable(),\n description: z.string().describe(\"The description of the permission.\").nullable().optional(),\n resourceType: z.string().describe(\"The resource that the permission applies to.\").nullable(),\n ownerOrganizationId: z.string().describe(\"The organization ID that the permission applies to. Used for wildcard permissions where the resourceId is `*`.\").nullable().optional(),\n}).passthrough().describe(\"Response model for SanityGetPermission action.\");\n\nexport const sanityGetPermission = action(\"SANITY_GET_PERMISSION\", {\n slug: \"sanity-get-permission\",\n name: \"Get Permission\",\n description: \"Get a permission for a specific resource. Use when you need to retrieve details about a particular permission including its actions, parameters, and scope. The action retrieves permission information based on the resource type, resource ID, and permission name provided in the path parameters.\",\n input: SanityGetPermissionInput,\n output: SanityGetPermissionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2FAA2F;CAC5H,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF;CAC3H,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E;AACpH,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAC3D,MAAM,6CAA6CA,IAAAA,EAAE,OAAO;CAC1D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAC9D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAChE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sBAAsB;AAChD,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CAClH,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC5E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACnF,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+FAA+F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxK,SAASA,IAAAA,EAAE,MAAM,0CAA0C,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClJ,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC5F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CAC3F,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gHAAgH,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjL,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAAgD;AAE1E,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,31 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-permission.d.ts
4
- declare const SanityGetPermissionInput: z.ZodTypeAny;
5
- declare const SanityGetPermissionOutput: z.ZodTypeAny;
6
- declare const sanityGetPermission: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SanityGetPermissionInput: z.ZodObject<{
5
+ resource_id: z.ZodString;
6
+ resource_type: z.ZodString;
7
+ permission_name: z.ZodString;
8
+ }, z.core.$strip>;
9
+ declare const SanityGetPermissionOutput: z.ZodObject<{
10
+ name: z.ZodNullable<z.ZodString>;
11
+ type: z.ZodNullable<z.ZodString>;
12
+ title: z.ZodNullable<z.ZodString>;
13
+ params: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
14
+ actions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
15
+ name: z.ZodNullable<z.ZodString>;
16
+ title: z.ZodNullable<z.ZodString>;
17
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ }, z.core.$loose>>>>;
19
+ resourceId: z.ZodNullable<z.ZodString>;
20
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ resourceType: z.ZodNullable<z.ZodString>;
22
+ ownerOrganizationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
+ }, z.core.$loose>;
24
+ declare const sanityGetPermission: import("@keystrokehq/action").WorkflowActionDefinition<{
25
+ resource_id: string;
26
+ resource_type: string;
27
+ permission_name: string;
28
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
29
  //#endregion
8
30
  export { sanityGetPermission };
9
31
  //# sourceMappingURL=get-permission.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-permission.d.cts","names":[],"sources":["../../src/actions/get-permission.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAImB;AAAA,cAM/C,yBAAA,EAA2B,CAAA,CAAE,UAUmB;AAAA,cAEhD,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-permission.d.cts","names":[],"sources":["../../src/actions/get-permission.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;cAUxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAYzB,mBAAA,gCAAmB,wBAAA"}
@@ -1,9 +1,31 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-permission.d.ts
4
- declare const SanityGetPermissionInput: z.ZodTypeAny;
5
- declare const SanityGetPermissionOutput: z.ZodTypeAny;
6
- declare const sanityGetPermission: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SanityGetPermissionInput: z.ZodObject<{
5
+ resource_id: z.ZodString;
6
+ resource_type: z.ZodString;
7
+ permission_name: z.ZodString;
8
+ }, z.core.$strip>;
9
+ declare const SanityGetPermissionOutput: z.ZodObject<{
10
+ name: z.ZodNullable<z.ZodString>;
11
+ type: z.ZodNullable<z.ZodString>;
12
+ title: z.ZodNullable<z.ZodString>;
13
+ params: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
14
+ actions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
15
+ name: z.ZodNullable<z.ZodString>;
16
+ title: z.ZodNullable<z.ZodString>;
17
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ }, z.core.$loose>>>>;
19
+ resourceId: z.ZodNullable<z.ZodString>;
20
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ resourceType: z.ZodNullable<z.ZodString>;
22
+ ownerOrganizationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
+ }, z.core.$loose>;
24
+ declare const sanityGetPermission: import("@keystrokehq/action").WorkflowActionDefinition<{
25
+ resource_id: string;
26
+ resource_type: string;
27
+ permission_name: string;
28
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
29
  //#endregion
8
30
  export { sanityGetPermission };
9
31
  //# sourceMappingURL=get-permission.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-permission.d.mts","names":[],"sources":["../../src/actions/get-permission.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAImB;AAAA,cAM/C,yBAAA,EAA2B,CAAA,CAAE,UAUmB;AAAA,cAEhD,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-permission.d.mts","names":[],"sources":["../../src/actions/get-permission.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;cAUxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAYzB,mBAAA,gCAAmB,wBAAA"}
@@ -7,26 +7,26 @@ const SanityGetPermissionInput = z.object({
7
7
  permission_name: z.string().describe("The name of the permission. This is a unique identifier for the permission.")
8
8
  }).describe("Request model for SanityGetPermission action.");
9
9
  const SanityGetPermission_PermissionActionSchema = z.object({
10
- name: z.string().describe("The name of the action."),
11
- title: z.string().describe("The title of the action."),
10
+ name: z.string().describe("The name of the action.").nullable(),
11
+ title: z.string().describe("The title of the action.").nullable(),
12
12
  description: z.string().describe("The description of the action.").nullable().optional()
13
- }).describe("A permission action.");
13
+ }).passthrough().describe("A permission action.");
14
14
  const sanityGetPermission = action("SANITY_GET_PERMISSION", {
15
15
  slug: "sanity-get-permission",
16
16
  name: "Get Permission",
17
17
  description: "Get a permission for a specific resource. Use when you need to retrieve details about a particular permission including its actions, parameters, and scope. The action retrieves permission information based on the resource type, resource ID, and permission name provided in the path parameters.",
18
18
  input: SanityGetPermissionInput,
19
19
  output: z.object({
20
- name: z.string().describe("The name of the permission. This is the unique identifier for the resource."),
21
- type: z.string().describe("The resource type for the permission."),
22
- title: z.string().describe("The human-readable title of the permission."),
20
+ name: z.string().describe("The name of the permission. This is the unique identifier for the resource.").nullable(),
21
+ type: z.string().describe("The resource type for the permission.").nullable(),
22
+ title: z.string().describe("The human-readable title of the permission.").nullable(),
23
23
  params: z.record(z.string(), z.unknown()).describe("The parameters for the permission. This is a key-value map of the permission's configuration.").nullable().optional(),
24
24
  actions: z.array(SanityGetPermission_PermissionActionSchema).describe("The actions allowed by the permission for this role.").nullable().optional(),
25
- resourceId: z.string().describe("The resource ID that the permission applies to."),
25
+ resourceId: z.string().describe("The resource ID that the permission applies to.").nullable(),
26
26
  description: z.string().describe("The description of the permission.").nullable().optional(),
27
- resourceType: z.string().describe("The resource that the permission applies to."),
27
+ resourceType: z.string().describe("The resource that the permission applies to.").nullable(),
28
28
  ownerOrganizationId: z.string().describe("The organization ID that the permission applies to. Used for wildcard permissions where the resourceId is `*`.").nullable().optional()
29
- }).describe("Response model for SanityGetPermission action.")
29
+ }).passthrough().describe("Response model for SanityGetPermission action.")
30
30
  });
31
31
  //#endregion
32
32
  export { sanityGetPermission };
@@ -1 +1 @@
1
- {"version":3,"file":"get-permission.mjs","names":[],"sources":["../../src/actions/get-permission.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityGetPermissionInput: z.ZodTypeAny = z.object({\n resource_id: z.string().describe(\"The resource ID to scope the access request to. Must be a valid ID for the resource type.\"),\n resource_type: z.string().describe(\"The resource to scope access requests to. Must be one of: 'organization' or 'project'.\"),\n permission_name: z.string().describe(\"The name of the permission. This is a unique identifier for the permission.\"),\n}).describe(\"Request model for SanityGetPermission action.\");\nconst SanityGetPermission_PermissionActionSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"The name of the action.\"),\n title: z.string().describe(\"The title of the action.\"),\n description: z.string().describe(\"The description of the action.\").nullable().optional(),\n}).describe(\"A permission action.\");\nexport const SanityGetPermissionOutput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"The name of the permission. This is the unique identifier for the resource.\"),\n type: z.string().describe(\"The resource type for the permission.\"),\n title: z.string().describe(\"The human-readable title of the permission.\"),\n params: z.record(z.string(), z.unknown()).describe(\"The parameters for the permission. This is a key-value map of the permission's configuration.\").nullable().optional(),\n actions: z.array(SanityGetPermission_PermissionActionSchema).describe(\"The actions allowed by the permission for this role.\").nullable().optional(),\n resourceId: z.string().describe(\"The resource ID that the permission applies to.\"),\n description: z.string().describe(\"The description of the permission.\").nullable().optional(),\n resourceType: z.string().describe(\"The resource that the permission applies to.\"),\n ownerOrganizationId: z.string().describe(\"The organization ID that the permission applies to. Used for wildcard permissions where the resourceId is `*`.\").nullable().optional(),\n}).describe(\"Response model for SanityGetPermission action.\");\n\nexport const sanityGetPermission = action(\"SANITY_GET_PERMISSION\", {\n slug: \"sanity-get-permission\",\n name: \"Get Permission\",\n description: \"Get a permission for a specific resource. Use when you need to retrieve details about a particular permission including its actions, parameters, and scope. The action retrieves permission information based on the resource type, resource ID, and permission name provided in the path parameters.\",\n input: SanityGetPermissionInput,\n output: SanityGetPermissionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAAyC,EAAE,OAAO;CAC7D,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,2FAA2F;CAC5H,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF;CAC3H,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E;AACpH,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAC3D,MAAM,6CAA2D,EAAE,OAAO;CACxE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;CACnD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;CACrD,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzF,CAAC,CAAC,CAAC,SAAS,sBAAsB;AAalC,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAjBqD,EAAE,OAAO;EAC9D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E;EACvG,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;EACjE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;EACxE,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+FAA+F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxK,SAAS,EAAE,MAAM,0CAA0C,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClJ,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;EACjF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3F,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;EAChF,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,gHAAgH,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjL,CAAC,CAAC,CAAC,SAAS,gDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"get-permission.mjs","names":[],"sources":["../../src/actions/get-permission.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityGetPermissionInput = z.object({\n resource_id: z.string().describe(\"The resource ID to scope the access request to. Must be a valid ID for the resource type.\"),\n resource_type: z.string().describe(\"The resource to scope access requests to. Must be one of: 'organization' or 'project'.\"),\n permission_name: z.string().describe(\"The name of the permission. This is a unique identifier for the permission.\"),\n}).describe(\"Request model for SanityGetPermission action.\");\nconst SanityGetPermission_PermissionActionSchema = z.object({\n name: z.string().describe(\"The name of the action.\").nullable(),\n title: z.string().describe(\"The title of the action.\").nullable(),\n description: z.string().describe(\"The description of the action.\").nullable().optional(),\n}).passthrough().describe(\"A permission action.\");\nexport const SanityGetPermissionOutput = z.object({\n name: z.string().describe(\"The name of the permission. This is the unique identifier for the resource.\").nullable(),\n type: z.string().describe(\"The resource type for the permission.\").nullable(),\n title: z.string().describe(\"The human-readable title of the permission.\").nullable(),\n params: z.record(z.string(), z.unknown()).describe(\"The parameters for the permission. This is a key-value map of the permission's configuration.\").nullable().optional(),\n actions: z.array(SanityGetPermission_PermissionActionSchema).describe(\"The actions allowed by the permission for this role.\").nullable().optional(),\n resourceId: z.string().describe(\"The resource ID that the permission applies to.\").nullable(),\n description: z.string().describe(\"The description of the permission.\").nullable().optional(),\n resourceType: z.string().describe(\"The resource that the permission applies to.\").nullable(),\n ownerOrganizationId: z.string().describe(\"The organization ID that the permission applies to. Used for wildcard permissions where the resourceId is `*`.\").nullable().optional(),\n}).passthrough().describe(\"Response model for SanityGetPermission action.\");\n\nexport const sanityGetPermission = action(\"SANITY_GET_PERMISSION\", {\n slug: \"sanity-get-permission\",\n name: \"Get Permission\",\n description: \"Get a permission for a specific resource. Use when you need to retrieve details about a particular permission including its actions, parameters, and scope. The action retrieves permission information based on the resource type, resource ID, and permission name provided in the path parameters.\",\n input: SanityGetPermissionInput,\n output: SanityGetPermissionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2B,EAAE,OAAO;CAC/C,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,2FAA2F;CAC5H,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF;CAC3H,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E;AACpH,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAC3D,MAAM,6CAA6C,EAAE,OAAO;CAC1D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAC9D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAChE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sBAAsB;AAahD,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAjBuC,EAAE,OAAO;EAChD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;EAClH,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;EAC5E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;EACnF,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+FAA+F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxK,SAAS,EAAE,MAAM,0CAA0C,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClJ,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;EAC5F,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3F,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;EAC3F,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,gHAAgH,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjL,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAOhB;AACV,CAAC"}