@keystrokehq/sanity 0.1.5 → 0.1.6

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 (181) 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 -0
  4. package/dist/actions/add-default-role-to-users.cjs.map +1 -1
  5. package/dist/actions/add-default-role-to-users.d.cts +3 -19
  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 +3 -19
  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 -0
  10. package/dist/actions/add-default-role-to-users.mjs.map +1 -1
  11. package/dist/actions/create-attr-definition.cjs +1 -0
  12. package/dist/actions/create-attr-definition.cjs.map +1 -1
  13. package/dist/actions/create-attr-definition.d.cts +3 -25
  14. package/dist/actions/create-attr-definition.d.cts.map +1 -1
  15. package/dist/actions/create-attr-definition.d.mts +3 -25
  16. package/dist/actions/create-attr-definition.d.mts.map +1 -1
  17. package/dist/actions/create-attr-definition.mjs +1 -0
  18. package/dist/actions/create-attr-definition.mjs.map +1 -1
  19. package/dist/actions/create-prompt-post.cjs +1 -0
  20. package/dist/actions/create-prompt-post.cjs.map +1 -1
  21. package/dist/actions/create-prompt-post.d.cts +3 -23
  22. package/dist/actions/create-prompt-post.d.cts.map +1 -1
  23. package/dist/actions/create-prompt-post.d.mts +3 -23
  24. package/dist/actions/create-prompt-post.d.mts.map +1 -1
  25. package/dist/actions/create-prompt-post.mjs +1 -0
  26. package/dist/actions/create-prompt-post.mjs.map +1 -1
  27. package/dist/actions/delete-attr-definition.cjs +1 -0
  28. package/dist/actions/delete-attr-definition.cjs.map +1 -1
  29. package/dist/actions/delete-attr-definition.d.cts +3 -21
  30. package/dist/actions/delete-attr-definition.d.cts.map +1 -1
  31. package/dist/actions/delete-attr-definition.d.mts +3 -21
  32. package/dist/actions/delete-attr-definition.d.mts.map +1 -1
  33. package/dist/actions/delete-attr-definition.mjs +1 -0
  34. package/dist/actions/delete-attr-definition.mjs.map +1 -1
  35. package/dist/actions/delete-document.cjs +1 -0
  36. package/dist/actions/delete-document.cjs.map +1 -1
  37. package/dist/actions/delete-document.d.cts +3 -27
  38. package/dist/actions/delete-document.d.cts.map +1 -1
  39. package/dist/actions/delete-document.d.mts +3 -27
  40. package/dist/actions/delete-document.d.mts.map +1 -1
  41. package/dist/actions/delete-document.mjs +1 -0
  42. package/dist/actions/delete-document.mjs.map +1 -1
  43. package/dist/actions/delete-user-attributes.cjs +1 -0
  44. package/dist/actions/delete-user-attributes.cjs.map +1 -1
  45. package/dist/actions/delete-user-attributes.d.cts +3 -24
  46. package/dist/actions/delete-user-attributes.d.cts.map +1 -1
  47. package/dist/actions/delete-user-attributes.d.mts +3 -24
  48. package/dist/actions/delete-user-attributes.d.mts.map +1 -1
  49. package/dist/actions/delete-user-attributes.mjs +1 -0
  50. package/dist/actions/delete-user-attributes.mjs.map +1 -1
  51. package/dist/actions/get-document.cjs +1 -0
  52. package/dist/actions/get-document.cjs.map +1 -1
  53. package/dist/actions/get-document.d.cts +3 -21
  54. package/dist/actions/get-document.d.cts.map +1 -1
  55. package/dist/actions/get-document.d.mts +3 -21
  56. package/dist/actions/get-document.d.mts.map +1 -1
  57. package/dist/actions/get-document.mjs +1 -0
  58. package/dist/actions/get-document.mjs.map +1 -1
  59. package/dist/actions/get-invite-by-token.cjs +1 -0
  60. package/dist/actions/get-invite-by-token.cjs.map +1 -1
  61. package/dist/actions/get-invite-by-token.d.cts +3 -21
  62. package/dist/actions/get-invite-by-token.d.cts.map +1 -1
  63. package/dist/actions/get-invite-by-token.d.mts +3 -21
  64. package/dist/actions/get-invite-by-token.d.mts.map +1 -1
  65. package/dist/actions/get-invite-by-token.mjs +1 -0
  66. package/dist/actions/get-invite-by-token.mjs.map +1 -1
  67. package/dist/actions/get-org-role.cjs +1 -0
  68. package/dist/actions/get-org-role.cjs.map +1 -1
  69. package/dist/actions/get-org-role.d.cts +3 -20
  70. package/dist/actions/get-org-role.d.cts.map +1 -1
  71. package/dist/actions/get-org-role.d.mts +3 -20
  72. package/dist/actions/get-org-role.d.mts.map +1 -1
  73. package/dist/actions/get-org-role.mjs +1 -0
  74. package/dist/actions/get-org-role.mjs.map +1 -1
  75. package/dist/actions/get-permission.cjs +1 -0
  76. package/dist/actions/get-permission.cjs.map +1 -1
  77. package/dist/actions/get-permission.d.cts +3 -21
  78. package/dist/actions/get-permission.d.cts.map +1 -1
  79. package/dist/actions/get-permission.d.mts +3 -21
  80. package/dist/actions/get-permission.d.mts.map +1 -1
  81. package/dist/actions/get-permission.mjs +1 -0
  82. package/dist/actions/get-permission.mjs.map +1 -1
  83. package/dist/actions/get-project.cjs +1 -0
  84. package/dist/actions/get-project.cjs.map +1 -1
  85. package/dist/actions/get-project.d.cts +3 -19
  86. package/dist/actions/get-project.d.cts.map +1 -1
  87. package/dist/actions/get-project.d.mts +3 -19
  88. package/dist/actions/get-project.d.mts.map +1 -1
  89. package/dist/actions/get-project.mjs +1 -0
  90. package/dist/actions/get-project.mjs.map +1 -1
  91. package/dist/actions/get-robots.cjs +1 -0
  92. package/dist/actions/get-robots.cjs.map +1 -1
  93. package/dist/actions/get-robots.d.cts +3 -23
  94. package/dist/actions/get-robots.d.cts.map +1 -1
  95. package/dist/actions/get-robots.d.mts +3 -23
  96. package/dist/actions/get-robots.d.mts.map +1 -1
  97. package/dist/actions/get-robots.mjs +1 -0
  98. package/dist/actions/get-robots.mjs.map +1 -1
  99. package/dist/actions/get-role.cjs +1 -0
  100. package/dist/actions/get-role.cjs.map +1 -1
  101. package/dist/actions/get-role.d.cts +3 -21
  102. package/dist/actions/get-role.d.cts.map +1 -1
  103. package/dist/actions/get-role.d.mts +3 -21
  104. package/dist/actions/get-role.d.mts.map +1 -1
  105. package/dist/actions/get-role.mjs +1 -0
  106. package/dist/actions/get-role.mjs.map +1 -1
  107. package/dist/actions/get-users.cjs +1 -0
  108. package/dist/actions/get-users.cjs.map +1 -1
  109. package/dist/actions/get-users.d.cts +3 -22
  110. package/dist/actions/get-users.d.cts.map +1 -1
  111. package/dist/actions/get-users.d.mts +3 -22
  112. package/dist/actions/get-users.d.mts.map +1 -1
  113. package/dist/actions/get-users.mjs +1 -0
  114. package/dist/actions/get-users.mjs.map +1 -1
  115. package/dist/actions/list-org-roles.cjs +1 -0
  116. package/dist/actions/list-org-roles.cjs.map +1 -1
  117. package/dist/actions/list-org-roles.d.cts +3 -19
  118. package/dist/actions/list-org-roles.d.cts.map +1 -1
  119. package/dist/actions/list-org-roles.d.mts +3 -19
  120. package/dist/actions/list-org-roles.d.mts.map +1 -1
  121. package/dist/actions/list-org-roles.mjs +1 -0
  122. package/dist/actions/list-org-roles.mjs.map +1 -1
  123. package/dist/actions/list-user-attributes.cjs +1 -0
  124. package/dist/actions/list-user-attributes.cjs.map +1 -1
  125. package/dist/actions/list-user-attributes.d.cts +3 -22
  126. package/dist/actions/list-user-attributes.d.cts.map +1 -1
  127. package/dist/actions/list-user-attributes.d.mts +3 -22
  128. package/dist/actions/list-user-attributes.d.mts.map +1 -1
  129. package/dist/actions/list-user-attributes.mjs +1 -0
  130. package/dist/actions/list-user-attributes.mjs.map +1 -1
  131. package/dist/actions/query-all-screening.cjs +1 -0
  132. package/dist/actions/query-all-screening.cjs.map +1 -1
  133. package/dist/actions/query-all-screening.d.cts +3 -23
  134. package/dist/actions/query-all-screening.d.cts.map +1 -1
  135. package/dist/actions/query-all-screening.d.mts +3 -23
  136. package/dist/actions/query-all-screening.d.mts.map +1 -1
  137. package/dist/actions/query-all-screening.mjs +1 -0
  138. package/dist/actions/query-all-screening.mjs.map +1 -1
  139. package/dist/actions/query-documents.cjs +1 -0
  140. package/dist/actions/query-documents.cjs.map +1 -1
  141. package/dist/actions/query-documents.d.cts +3 -24
  142. package/dist/actions/query-documents.d.cts.map +1 -1
  143. package/dist/actions/query-documents.d.mts +3 -24
  144. package/dist/actions/query-documents.d.mts.map +1 -1
  145. package/dist/actions/query-documents.mjs +1 -0
  146. package/dist/actions/query-documents.mjs.map +1 -1
  147. package/dist/actions/update-org-acl.cjs +1 -0
  148. package/dist/actions/update-org-acl.cjs.map +1 -1
  149. package/dist/actions/update-org-acl.d.cts +3 -21
  150. package/dist/actions/update-org-acl.d.cts.map +1 -1
  151. package/dist/actions/update-org-acl.d.mts +3 -21
  152. package/dist/actions/update-org-acl.d.mts.map +1 -1
  153. package/dist/actions/update-org-acl.mjs +1 -0
  154. package/dist/actions/update-org-acl.mjs.map +1 -1
  155. package/dist/actions/update-user-attributes-values.cjs +1 -0
  156. package/dist/actions/update-user-attributes-values.cjs.map +1 -1
  157. package/dist/actions/update-user-attributes-values.d.cts +3 -22
  158. package/dist/actions/update-user-attributes-values.d.cts.map +1 -1
  159. package/dist/actions/update-user-attributes-values.d.mts +3 -22
  160. package/dist/actions/update-user-attributes-values.d.mts.map +1 -1
  161. package/dist/actions/update-user-attributes-values.mjs +1 -0
  162. package/dist/actions/update-user-attributes-values.mjs.map +1 -1
  163. package/dist/actions/validate-credential.cjs +1 -0
  164. package/dist/actions/validate-credential.cjs.map +1 -1
  165. package/dist/actions/validate-credential.d.cts +3 -17
  166. package/dist/actions/validate-credential.d.cts.map +1 -1
  167. package/dist/actions/validate-credential.d.mts +3 -17
  168. package/dist/actions/validate-credential.d.mts.map +1 -1
  169. package/dist/actions/validate-credential.mjs +1 -0
  170. package/dist/actions/validate-credential.mjs.map +1 -1
  171. package/dist/app.cjs +6 -5
  172. package/dist/app.cjs.map +1 -1
  173. package/dist/app.d.cts +4 -6
  174. package/dist/app.d.cts.map +1 -1
  175. package/dist/app.d.mts +4 -6
  176. package/dist/app.d.mts.map +1 -1
  177. package/dist/app.mjs +0 -1
  178. package/dist/app.mjs.map +1 -1
  179. package/dist/index.d.cts +1 -1
  180. package/dist/index.d.mts +1 -1
  181. package/package.json +2 -2
@@ -1,3 +1,5 @@
1
+ import { sanity } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-org-role.d.ts
@@ -24,26 +26,7 @@ declare const SanityGetOrgRoleOutput: z.ZodObject<{
24
26
  appliesToRobots: z.ZodNullable<z.ZodBoolean>;
25
27
  }, z.core.$loose>>;
26
28
  }, 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<"sanity", z.ZodObject<{
31
- connectionId: z.ZodString;
32
- entityId: z.ZodString;
33
- instanceId: z.ZodString;
34
- }, z.core.$strip>, z.ZodObject<{
35
- subdomain: z.ZodString;
36
- version: z.ZodString;
37
- generic_api_key: z.ZodString;
38
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"sanity", z.ZodObject<{
39
- connectionId: z.ZodString;
40
- entityId: z.ZodString;
41
- instanceId: z.ZodString;
42
- }, z.core.$strip>, z.ZodObject<{
43
- subdomain: z.ZodString;
44
- version: z.ZodString;
45
- generic_api_key: z.ZodString;
46
- }, z.core.$strip>>]>;
29
+ declare const sanityGetOrgRole: AppAction<typeof SanityGetOrgRoleInput, typeof SanityGetOrgRoleOutput, typeof sanity.credential>;
47
30
  //#endregion
48
31
  export { sanityGetOrgRole };
49
32
  //# 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,EAAqB,CAAA,CAAA,SAAA;;;;cAsBrB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;cAItB,gBAAA,gCAAgB,wBAAA"}
1
+ {"version":3,"file":"get-org-role.d.cts","names":[],"sources":["../../src/actions/get-org-role.ts"],"mappings":";;;;;cAMa,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;cAsBrB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;cAItB,gBAAA,EAAkB,SAAA,QACtB,qBAAA,SACA,sBAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { sanity } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-org-role.d.ts
@@ -24,26 +26,7 @@ declare const SanityGetOrgRoleOutput: z.ZodObject<{
24
26
  appliesToRobots: z.ZodNullable<z.ZodBoolean>;
25
27
  }, z.core.$loose>>;
26
28
  }, 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<"sanity", z.ZodObject<{
31
- connectionId: z.ZodString;
32
- entityId: z.ZodString;
33
- instanceId: z.ZodString;
34
- }, z.core.$strip>, z.ZodObject<{
35
- subdomain: z.ZodString;
36
- version: z.ZodString;
37
- generic_api_key: z.ZodString;
38
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"sanity", z.ZodObject<{
39
- connectionId: z.ZodString;
40
- entityId: z.ZodString;
41
- instanceId: z.ZodString;
42
- }, z.core.$strip>, z.ZodObject<{
43
- subdomain: z.ZodString;
44
- version: z.ZodString;
45
- generic_api_key: z.ZodString;
46
- }, z.core.$strip>>]>;
29
+ declare const sanityGetOrgRole: AppAction<typeof SanityGetOrgRoleInput, typeof SanityGetOrgRoleOutput, typeof sanity.credential>;
47
30
  //#endregion
48
31
  export { sanityGetOrgRole };
49
32
  //# 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,EAAqB,CAAA,CAAA,SAAA;;;;cAsBrB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;cAItB,gBAAA,gCAAgB,wBAAA"}
1
+ {"version":3,"file":"get-org-role.d.mts","names":[],"sources":["../../src/actions/get-org-role.ts"],"mappings":";;;;;cAMa,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;cAsBrB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;cAItB,gBAAA,EAAkB,SAAA,QACtB,qBAAA,SACA,sBAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/get-org-role.ts
@@ -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.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"}
1
+ {"version":3,"file":"get-org-role.mjs","names":[],"sources":["../../src/actions/get-org-role.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { sanity } from \"../app\";\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: AppAction<\n typeof SanityGetOrgRoleInput,\n typeof SanityGetOrgRoleOutput,\n typeof sanity.credential\n> = 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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,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,mBAIT,OAAO,uBAAuB;CAChC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAboC,EAAE,OAAO,EAC7C,MAAM,+BAA+B,SAAS,EAChD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yDAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/get-permission.ts
@@ -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.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
+ {"version":3,"file":"get-permission.cjs","names":["z","action"],"sources":["../../src/actions/get-permission.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { sanity } from \"../app\";\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: AppAction<\n typeof SanityGetPermissionInput,\n typeof SanityGetPermissionOutput,\n typeof sanity.credential\n> = 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"],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,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,sBAITC,eAAAA,OAAO,yBAAyB;CAClC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { sanity } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-permission.d.ts
@@ -21,27 +23,7 @@ declare const SanityGetPermissionOutput: z.ZodObject<{
21
23
  resourceType: z.ZodNullable<z.ZodString>;
22
24
  ownerOrganizationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
25
  }, 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<"sanity", z.ZodObject<{
29
- connectionId: z.ZodString;
30
- entityId: z.ZodString;
31
- instanceId: z.ZodString;
32
- }, z.core.$strip>, z.ZodObject<{
33
- subdomain: z.ZodString;
34
- version: z.ZodString;
35
- generic_api_key: z.ZodString;
36
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"sanity", z.ZodObject<{
37
- connectionId: z.ZodString;
38
- entityId: z.ZodString;
39
- instanceId: z.ZodString;
40
- }, z.core.$strip>, z.ZodObject<{
41
- subdomain: z.ZodString;
42
- version: z.ZodString;
43
- generic_api_key: z.ZodString;
44
- }, z.core.$strip>>]>;
26
+ declare const sanityGetPermission: AppAction<typeof SanityGetPermissionInput, typeof SanityGetPermissionOutput, typeof sanity.credential>;
45
27
  //#endregion
46
28
  export { sanityGetPermission };
47
29
  //# 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,EAAwB,CAAA,CAAA,SAAA;;;;;cAUxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAYzB,mBAAA,gCAAmB,wBAAA"}
1
+ {"version":3,"file":"get-permission.d.cts","names":[],"sources":["../../src/actions/get-permission.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;cAUxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAYzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { sanity } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-permission.d.ts
@@ -21,27 +23,7 @@ declare const SanityGetPermissionOutput: z.ZodObject<{
21
23
  resourceType: z.ZodNullable<z.ZodString>;
22
24
  ownerOrganizationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
25
  }, 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<"sanity", z.ZodObject<{
29
- connectionId: z.ZodString;
30
- entityId: z.ZodString;
31
- instanceId: z.ZodString;
32
- }, z.core.$strip>, z.ZodObject<{
33
- subdomain: z.ZodString;
34
- version: z.ZodString;
35
- generic_api_key: z.ZodString;
36
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"sanity", z.ZodObject<{
37
- connectionId: z.ZodString;
38
- entityId: z.ZodString;
39
- instanceId: z.ZodString;
40
- }, z.core.$strip>, z.ZodObject<{
41
- subdomain: z.ZodString;
42
- version: z.ZodString;
43
- generic_api_key: z.ZodString;
44
- }, z.core.$strip>>]>;
26
+ declare const sanityGetPermission: AppAction<typeof SanityGetPermissionInput, typeof SanityGetPermissionOutput, typeof sanity.credential>;
45
27
  //#endregion
46
28
  export { sanityGetPermission };
47
29
  //# 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,EAAwB,CAAA,CAAA,SAAA;;;;;cAUxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAYzB,mBAAA,gCAAmB,wBAAA"}
1
+ {"version":3,"file":"get-permission.d.mts","names":[],"sources":["../../src/actions/get-permission.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;cAUxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAYzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/get-permission.ts
@@ -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.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,MA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../src/actions/get-permission.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { sanity } from \"../app\";\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: AppAction<\n typeof SanityGetPermissionInput,\n typeof SanityGetPermissionOutput,\n typeof sanity.credential\n> = 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":";;;;AAMA,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,sBAIT,OAAO,yBAAyB;CAClC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QArBuC,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,gDAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/get-project.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-project.cjs","names":["z","action"],"sources":["../../src/actions/get-project.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityGetProjectInput = z.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,wBAAwBA,IAAAA,EAAE,OAAO,EAC5C,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,EAC7E,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAM,qCAAqCA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,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,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-project.cjs","names":["z","action"],"sources":["../../src/actions/get-project.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { sanity } from \"../app\";\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: AppAction<\n typeof SanityGetProjectInput,\n typeof SanityGetProjectOutput,\n typeof sanity.credential\n> = 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":";;;;AAMA,MAAa,wBAAwBA,IAAAA,EAAE,OAAO,EAC5C,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,EAC7E,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAM,qCAAqCA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mCAAmC;AAC7D,MAAM,2CAA2CA,IAAAA,EAAE,OAAO;CACxD,MAAMA,IAAAA,EAAE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C,CAAC,SAAS,CAAC,CAAC,SAAS;CACxK,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrJ,UAAU,uCAAuC,SAAS,CAAC,CAAC,SAAS;CACrE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,YAAYA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC9E,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/G,qBAAqBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAA+C;AAEzE,MAAa,mBAITC,eAAAA,OAAO,sBAAsB;CAC/B,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { sanity } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-project.d.ts
@@ -32,25 +34,7 @@ declare const SanityGetProjectOutput: z.ZodObject<{
32
34
  organizationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
35
  activityFeedEnabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
34
36
  }, z.core.$loose>;
35
- declare const sanityGetProject: import("@keystrokehq/action").WorkflowActionDefinition<{
36
- project_id: string;
37
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"sanity", z.ZodObject<{
38
- connectionId: z.ZodString;
39
- entityId: z.ZodString;
40
- instanceId: z.ZodString;
41
- }, z.core.$strip>, z.ZodObject<{
42
- subdomain: z.ZodString;
43
- version: z.ZodString;
44
- generic_api_key: z.ZodString;
45
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"sanity", z.ZodObject<{
46
- connectionId: z.ZodString;
47
- entityId: z.ZodString;
48
- instanceId: z.ZodString;
49
- }, z.core.$strip>, z.ZodObject<{
50
- subdomain: z.ZodString;
51
- version: z.ZodString;
52
- generic_api_key: z.ZodString;
53
- }, z.core.$strip>>]>;
37
+ declare const sanityGetProject: AppAction<typeof SanityGetProjectInput, typeof SanityGetProjectOutput, typeof sanity.credential>;
54
38
  //#endregion
55
39
  export { sanityGetProject };
56
40
  //# sourceMappingURL=get-project.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-project.d.cts","names":[],"sources":["../../src/actions/get-project.ts"],"mappings":";;;cAIa,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;cAqBrB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAetB,gBAAA,gCAAgB,wBAAA"}
1
+ {"version":3,"file":"get-project.d.cts","names":[],"sources":["../../src/actions/get-project.ts"],"mappings":";;;;;cAMa,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;cAqBrB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAetB,gBAAA,EAAkB,SAAA,QACtB,qBAAA,SACA,sBAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { sanity } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-project.d.ts
@@ -32,25 +34,7 @@ declare const SanityGetProjectOutput: z.ZodObject<{
32
34
  organizationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
35
  activityFeedEnabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
34
36
  }, z.core.$loose>;
35
- declare const sanityGetProject: import("@keystrokehq/action").WorkflowActionDefinition<{
36
- project_id: string;
37
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"sanity", z.ZodObject<{
38
- connectionId: z.ZodString;
39
- entityId: z.ZodString;
40
- instanceId: z.ZodString;
41
- }, z.core.$strip>, z.ZodObject<{
42
- subdomain: z.ZodString;
43
- version: z.ZodString;
44
- generic_api_key: z.ZodString;
45
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"sanity", z.ZodObject<{
46
- connectionId: z.ZodString;
47
- entityId: z.ZodString;
48
- instanceId: z.ZodString;
49
- }, z.core.$strip>, z.ZodObject<{
50
- subdomain: z.ZodString;
51
- version: z.ZodString;
52
- generic_api_key: z.ZodString;
53
- }, z.core.$strip>>]>;
37
+ declare const sanityGetProject: AppAction<typeof SanityGetProjectInput, typeof SanityGetProjectOutput, typeof sanity.credential>;
54
38
  //#endregion
55
39
  export { sanityGetProject };
56
40
  //# sourceMappingURL=get-project.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-project.d.mts","names":[],"sources":["../../src/actions/get-project.ts"],"mappings":";;;cAIa,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;cAqBrB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAetB,gBAAA,gCAAgB,wBAAA"}
1
+ {"version":3,"file":"get-project.d.mts","names":[],"sources":["../../src/actions/get-project.ts"],"mappings":";;;;;cAMa,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;cAqBrB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAetB,gBAAA,EAAkB,SAAA,QACtB,qBAAA,SACA,sBAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/get-project.ts
@@ -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}).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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AS,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxK,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrJ,UAAU,uCAAuC,SAAS,CAAC,CAAC,SAAS;EACrE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvG,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,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"}
1
+ {"version":3,"file":"get-project.mjs","names":[],"sources":["../../src/actions/get-project.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { sanity } from \"../app\";\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: AppAction<\n typeof SanityGetProjectInput,\n typeof SanityGetProjectOutput,\n typeof sanity.credential\n> = 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":";;;;AAMA,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,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpH,OAAO,EAAE,MAAM,w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,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,+CAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/get-robots.ts
@@ -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}).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,kBAAk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B,CAAC,CAAC,SAAS,6CAA6C;CACjG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sGAAsG;AAEhI,MAAa,kBAAkBC,eAAAA,OAAO,qBAAqB;CACzD,MAAM;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 type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { sanity } from \"../app\";\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: AppAction<\n typeof SanityGetRobotsInput,\n typeof SanityGetRobotsOutput,\n typeof sanity.credential\n> = 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":";;;;AAMA,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,C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AyE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sGAAsG;AAEhI,MAAa,kBAITC,eAAAA,OAAO,qBAAqB;CAC9B,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { sanity } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-robots.d.ts
@@ -31,29 +33,7 @@ declare const SanityGetRobotsOutput: z.ZodObject<{
31
33
  }, z.core.$loose>>;
32
34
  next_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
35
  }, z.core.$loose>;
34
- declare const sanityGetRobots: import("@keystrokehq/action").WorkflowActionDefinition<{
35
- resource_id: string;
36
- resource_type: "organization" | "project" | "media-library" | "canvas" | "dashboard" | "view";
37
- limit?: number | undefined;
38
- next_cursor?: string | undefined;
39
- include_children?: boolean | undefined;
40
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"sanity", z.ZodObject<{
41
- connectionId: z.ZodString;
42
- entityId: z.ZodString;
43
- instanceId: z.ZodString;
44
- }, z.core.$strip>, z.ZodObject<{
45
- subdomain: z.ZodString;
46
- version: z.ZodString;
47
- generic_api_key: z.ZodString;
48
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"sanity", z.ZodObject<{
49
- connectionId: z.ZodString;
50
- entityId: z.ZodString;
51
- instanceId: z.ZodString;
52
- }, z.core.$strip>, z.ZodObject<{
53
- subdomain: z.ZodString;
54
- version: z.ZodString;
55
- generic_api_key: z.ZodString;
56
- }, z.core.$strip>>]>;
36
+ declare const sanityGetRobots: AppAction<typeof SanityGetRobotsInput, typeof SanityGetRobotsOutput, typeof sanity.credential>;
57
37
  //#endregion
58
38
  export { sanityGetRobots };
59
39
  //# sourceMappingURL=get-robots.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-robots.d.cts","names":[],"sources":["../../src/actions/get-robots.ts"],"mappings":";;;cAIa,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAqBpB,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAKrB,eAAA,gCAAe,wBAAA"}
1
+ {"version":3,"file":"get-robots.d.cts","names":[],"sources":["../../src/actions/get-robots.ts"],"mappings":";;;;;cAMa,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAqBpB,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAKrB,eAAA,EAAiB,SAAA,QACrB,oBAAA,SACA,qBAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { sanity } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-robots.d.ts
@@ -31,29 +33,7 @@ declare const SanityGetRobotsOutput: z.ZodObject<{
31
33
  }, z.core.$loose>>;
32
34
  next_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
35
  }, z.core.$loose>;
34
- declare const sanityGetRobots: import("@keystrokehq/action").WorkflowActionDefinition<{
35
- resource_id: string;
36
- resource_type: "organization" | "project" | "media-library" | "canvas" | "dashboard" | "view";
37
- limit?: number | undefined;
38
- next_cursor?: string | undefined;
39
- include_children?: boolean | undefined;
40
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"sanity", z.ZodObject<{
41
- connectionId: z.ZodString;
42
- entityId: z.ZodString;
43
- instanceId: z.ZodString;
44
- }, z.core.$strip>, z.ZodObject<{
45
- subdomain: z.ZodString;
46
- version: z.ZodString;
47
- generic_api_key: z.ZodString;
48
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"sanity", z.ZodObject<{
49
- connectionId: z.ZodString;
50
- entityId: z.ZodString;
51
- instanceId: z.ZodString;
52
- }, z.core.$strip>, z.ZodObject<{
53
- subdomain: z.ZodString;
54
- version: z.ZodString;
55
- generic_api_key: z.ZodString;
56
- }, z.core.$strip>>]>;
36
+ declare const sanityGetRobots: AppAction<typeof SanityGetRobotsInput, typeof SanityGetRobotsOutput, typeof sanity.credential>;
57
37
  //#endregion
58
38
  export { sanityGetRobots };
59
39
  //# sourceMappingURL=get-robots.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-robots.d.mts","names":[],"sources":["../../src/actions/get-robots.ts"],"mappings":";;;cAIa,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAqBpB,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAKrB,eAAA,gCAAe,wBAAA"}
1
+ {"version":3,"file":"get-robots.d.mts","names":[],"sources":["../../src/actions/get-robots.ts"],"mappings":";;;;;cAMa,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAqBpB,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAKrB,eAAA,EAAiB,SAAA,QACrB,oBAAA,SACA,qBAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/get-robots.ts
@@ -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}).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,EAA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CAA4C,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"}
1
+ {"version":3,"file":"get-robots.mjs","names":[],"sources":["../../src/actions/get-robots.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { sanity } from \"../app\";\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: AppAction<\n typeof SanityGetRobotsInput,\n typeof SanityGetRobotsOutput,\n typeof sanity.credential\n> = 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":";;;;AAMA,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;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AAC,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,sGAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/get-role.ts
@@ -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}).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;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,YAAY,CAAC,CAAC,SAAS,+CAA+C;AACzE,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,YAAY,CAAC,CAAC,SAAS,uGAAuG;AAEjI,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 type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { sanity } from \"../app\";\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: AppAction<\n typeof SanityGetRoleInput,\n typeof SanityGetRoleOutput,\n typeof sanity.credential\n> = 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":";;;;AAMA,MAAa,qBAAqBA,IAAAA,EAAE,OAAO;CACzC,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;CACjE,YAAYA,IAAAA,EAAE,OAA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