@keystrokehq/sanity 0.1.0 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (177) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/add-default-role-to-users.cjs +1 -1
  4. package/dist/actions/add-default-role-to-users.cjs.map +1 -1
  5. package/dist/actions/add-default-role-to-users.d.cts +10 -3
  6. package/dist/actions/add-default-role-to-users.d.cts.map +1 -1
  7. package/dist/actions/add-default-role-to-users.d.mts +10 -3
  8. package/dist/actions/add-default-role-to-users.d.mts.map +1 -1
  9. package/dist/actions/add-default-role-to-users.mjs +1 -1
  10. package/dist/actions/add-default-role-to-users.mjs.map +1 -1
  11. package/dist/actions/create-attr-definition.cjs +1 -1
  12. package/dist/actions/create-attr-definition.cjs.map +1 -1
  13. package/dist/actions/create-attr-definition.d.cts +32 -3
  14. package/dist/actions/create-attr-definition.d.cts.map +1 -1
  15. package/dist/actions/create-attr-definition.d.mts +32 -3
  16. package/dist/actions/create-attr-definition.d.mts.map +1 -1
  17. package/dist/actions/create-attr-definition.mjs +1 -1
  18. package/dist/actions/create-attr-definition.mjs.map +1 -1
  19. package/dist/actions/create-prompt-post.cjs +2 -2
  20. package/dist/actions/create-prompt-post.cjs.map +1 -1
  21. package/dist/actions/create-prompt-post.d.cts +23 -3
  22. package/dist/actions/create-prompt-post.d.cts.map +1 -1
  23. package/dist/actions/create-prompt-post.d.mts +23 -3
  24. package/dist/actions/create-prompt-post.d.mts.map +1 -1
  25. package/dist/actions/create-prompt-post.mjs +2 -2
  26. package/dist/actions/create-prompt-post.mjs.map +1 -1
  27. package/dist/actions/delete-attr-definition.cjs +1 -1
  28. package/dist/actions/delete-attr-definition.cjs.map +1 -1
  29. package/dist/actions/delete-attr-definition.d.cts +16 -3
  30. package/dist/actions/delete-attr-definition.d.cts.map +1 -1
  31. package/dist/actions/delete-attr-definition.d.mts +16 -3
  32. package/dist/actions/delete-attr-definition.d.mts.map +1 -1
  33. package/dist/actions/delete-attr-definition.mjs +1 -1
  34. package/dist/actions/delete-attr-definition.mjs.map +1 -1
  35. package/dist/actions/delete-document.cjs +1 -1
  36. package/dist/actions/delete-document.cjs.map +1 -1
  37. package/dist/actions/delete-document.d.cts +27 -3
  38. package/dist/actions/delete-document.d.cts.map +1 -1
  39. package/dist/actions/delete-document.d.mts +27 -3
  40. package/dist/actions/delete-document.d.mts.map +1 -1
  41. package/dist/actions/delete-document.mjs +1 -1
  42. package/dist/actions/delete-document.mjs.map +1 -1
  43. package/dist/actions/delete-user-attributes.cjs +5 -5
  44. package/dist/actions/delete-user-attributes.cjs.map +1 -1
  45. package/dist/actions/delete-user-attributes.d.cts +27 -3
  46. package/dist/actions/delete-user-attributes.d.cts.map +1 -1
  47. package/dist/actions/delete-user-attributes.d.mts +27 -3
  48. package/dist/actions/delete-user-attributes.d.mts.map +1 -1
  49. package/dist/actions/delete-user-attributes.mjs +5 -5
  50. package/dist/actions/delete-user-attributes.mjs.map +1 -1
  51. package/dist/actions/get-document.cjs +6 -6
  52. package/dist/actions/get-document.cjs.map +1 -1
  53. package/dist/actions/get-document.d.cts +24 -3
  54. package/dist/actions/get-document.d.cts.map +1 -1
  55. package/dist/actions/get-document.d.mts +24 -3
  56. package/dist/actions/get-document.d.mts.map +1 -1
  57. package/dist/actions/get-document.mjs +6 -6
  58. package/dist/actions/get-document.mjs.map +1 -1
  59. package/dist/actions/get-invite-by-token.cjs +2 -2
  60. package/dist/actions/get-invite-by-token.cjs.map +1 -1
  61. package/dist/actions/get-invite-by-token.d.cts +46 -3
  62. package/dist/actions/get-invite-by-token.d.cts.map +1 -1
  63. package/dist/actions/get-invite-by-token.d.mts +46 -3
  64. package/dist/actions/get-invite-by-token.d.mts.map +1 -1
  65. package/dist/actions/get-invite-by-token.mjs +2 -2
  66. package/dist/actions/get-invite-by-token.mjs.map +1 -1
  67. package/dist/actions/get-org-role.cjs +9 -9
  68. package/dist/actions/get-org-role.cjs.map +1 -1
  69. package/dist/actions/get-org-role.d.cts +27 -3
  70. package/dist/actions/get-org-role.d.cts.map +1 -1
  71. package/dist/actions/get-org-role.d.mts +27 -3
  72. package/dist/actions/get-org-role.d.mts.map +1 -1
  73. package/dist/actions/get-org-role.mjs +9 -9
  74. package/dist/actions/get-org-role.mjs.map +1 -1
  75. package/dist/actions/get-permission.cjs +9 -9
  76. package/dist/actions/get-permission.cjs.map +1 -1
  77. package/dist/actions/get-permission.d.cts +25 -3
  78. package/dist/actions/get-permission.d.cts.map +1 -1
  79. package/dist/actions/get-permission.d.mts +25 -3
  80. package/dist/actions/get-permission.d.mts.map +1 -1
  81. package/dist/actions/get-permission.mjs +9 -9
  82. package/dist/actions/get-permission.mjs.map +1 -1
  83. package/dist/actions/get-project.cjs +7 -7
  84. package/dist/actions/get-project.cjs.map +1 -1
  85. package/dist/actions/get-project.d.cts +34 -3
  86. package/dist/actions/get-project.d.cts.map +1 -1
  87. package/dist/actions/get-project.d.mts +34 -3
  88. package/dist/actions/get-project.d.mts.map +1 -1
  89. package/dist/actions/get-project.mjs +7 -7
  90. package/dist/actions/get-project.mjs.map +1 -1
  91. package/dist/actions/get-robots.cjs +7 -7
  92. package/dist/actions/get-robots.cjs.map +1 -1
  93. package/dist/actions/get-robots.d.cts +37 -3
  94. package/dist/actions/get-robots.d.cts.map +1 -1
  95. package/dist/actions/get-robots.d.mts +37 -3
  96. package/dist/actions/get-robots.d.mts.map +1 -1
  97. package/dist/actions/get-robots.mjs +7 -7
  98. package/dist/actions/get-robots.mjs.map +1 -1
  99. package/dist/actions/get-role.cjs +8 -8
  100. package/dist/actions/get-role.cjs.map +1 -1
  101. package/dist/actions/get-role.d.cts +33 -3
  102. package/dist/actions/get-role.d.cts.map +1 -1
  103. package/dist/actions/get-role.d.mts +33 -3
  104. package/dist/actions/get-role.d.mts.map +1 -1
  105. package/dist/actions/get-role.mjs +8 -8
  106. package/dist/actions/get-role.mjs.map +1 -1
  107. package/dist/actions/get-users.cjs +3 -3
  108. package/dist/actions/get-users.cjs.map +1 -1
  109. package/dist/actions/get-users.d.cts +28 -3
  110. package/dist/actions/get-users.d.cts.map +1 -1
  111. package/dist/actions/get-users.d.mts +28 -3
  112. package/dist/actions/get-users.d.mts.map +1 -1
  113. package/dist/actions/get-users.mjs +3 -3
  114. package/dist/actions/get-users.mjs.map +1 -1
  115. package/dist/actions/list-org-roles.cjs +5 -5
  116. package/dist/actions/list-org-roles.cjs.map +1 -1
  117. package/dist/actions/list-org-roles.d.cts +16 -3
  118. package/dist/actions/list-org-roles.d.cts.map +1 -1
  119. package/dist/actions/list-org-roles.d.mts +16 -3
  120. package/dist/actions/list-org-roles.d.mts.map +1 -1
  121. package/dist/actions/list-org-roles.mjs +5 -5
  122. package/dist/actions/list-org-roles.mjs.map +1 -1
  123. package/dist/actions/list-user-attributes.cjs +6 -6
  124. package/dist/actions/list-user-attributes.cjs.map +1 -1
  125. package/dist/actions/list-user-attributes.d.cts +23 -3
  126. package/dist/actions/list-user-attributes.d.cts.map +1 -1
  127. package/dist/actions/list-user-attributes.d.mts +23 -3
  128. package/dist/actions/list-user-attributes.d.mts.map +1 -1
  129. package/dist/actions/list-user-attributes.mjs +6 -6
  130. package/dist/actions/list-user-attributes.mjs.map +1 -1
  131. package/dist/actions/query-all-screening.cjs +1 -1
  132. package/dist/actions/query-all-screening.cjs.map +1 -1
  133. package/dist/actions/query-all-screening.d.cts +20 -3
  134. package/dist/actions/query-all-screening.d.cts.map +1 -1
  135. package/dist/actions/query-all-screening.d.mts +20 -3
  136. package/dist/actions/query-all-screening.d.mts.map +1 -1
  137. package/dist/actions/query-all-screening.mjs +1 -1
  138. package/dist/actions/query-all-screening.mjs.map +1 -1
  139. package/dist/actions/query-documents.cjs +2 -2
  140. package/dist/actions/query-documents.cjs.map +1 -1
  141. package/dist/actions/query-documents.d.cts +31 -3
  142. package/dist/actions/query-documents.d.cts.map +1 -1
  143. package/dist/actions/query-documents.d.mts +31 -3
  144. package/dist/actions/query-documents.d.mts.map +1 -1
  145. package/dist/actions/query-documents.mjs +2 -2
  146. package/dist/actions/query-documents.mjs.map +1 -1
  147. package/dist/actions/update-org-acl.cjs +1 -1
  148. package/dist/actions/update-org-acl.cjs.map +1 -1
  149. package/dist/actions/update-org-acl.d.cts +13 -3
  150. package/dist/actions/update-org-acl.d.cts.map +1 -1
  151. package/dist/actions/update-org-acl.d.mts +13 -3
  152. package/dist/actions/update-org-acl.d.mts.map +1 -1
  153. package/dist/actions/update-org-acl.mjs +1 -1
  154. package/dist/actions/update-org-acl.mjs.map +1 -1
  155. package/dist/actions/update-user-attributes-values.cjs +8 -8
  156. package/dist/actions/update-user-attributes-values.cjs.map +1 -1
  157. package/dist/actions/update-user-attributes-values.d.cts +27 -3
  158. package/dist/actions/update-user-attributes-values.d.cts.map +1 -1
  159. package/dist/actions/update-user-attributes-values.d.mts +27 -3
  160. package/dist/actions/update-user-attributes-values.d.mts.map +1 -1
  161. package/dist/actions/update-user-attributes-values.mjs +8 -8
  162. package/dist/actions/update-user-attributes-values.mjs.map +1 -1
  163. package/dist/actions/validate-credential.cjs +4 -4
  164. package/dist/actions/validate-credential.cjs.map +1 -1
  165. package/dist/actions/validate-credential.d.cts +17 -3
  166. package/dist/actions/validate-credential.d.cts.map +1 -1
  167. package/dist/actions/validate-credential.d.mts +17 -3
  168. package/dist/actions/validate-credential.d.mts.map +1 -1
  169. package/dist/actions/validate-credential.mjs +4 -4
  170. package/dist/actions/validate-credential.mjs.map +1 -1
  171. package/dist/catalog.cjs +18 -1
  172. package/dist/catalog.cjs.map +1 -1
  173. package/dist/catalog.d.cts +17 -0
  174. package/dist/catalog.d.mts +17 -0
  175. package/dist/catalog.mjs +18 -1
  176. package/dist/catalog.mjs.map +1 -1
  177. package/package.json +2 -2
@@ -3,18 +3,18 @@ import { z } from "zod";
3
3
  //#region src/actions/update-user-attributes-values.ts
4
4
  const SanityUpdateUserAttributesValuesInput = z.object({
5
5
  userId: z.string().describe("The unique identifier of the user whose attributes to update."),
6
- attributes: z.object({}).describe("A dictionary of attribute key-value pairs to set for the user. Values can be strings, numbers, booleans, arrays, or nested objects. These will shadow any SAML values for the same keys."),
6
+ attributes: z.record(z.string(), z.unknown()).describe("A dictionary of attribute key-value pairs to set for the user. Values can be strings, numbers, booleans, arrays, or nested objects. These will shadow any SAML values for the same keys."),
7
7
  resourceId: z.string().describe("The unique identifier of the resource. For organizations, this is the organization ID."),
8
8
  resourceType: z.enum(["organization", "project"]).describe("The type of resource that scopes the user attributes (e.g., 'organization' or 'project').")
9
9
  }).describe("Request model for updating user attribute values.");
10
10
  const SanityUpdateUserAttributesValues_JsonValueSchema = z.unknown();
11
11
  const SanityUpdateUserAttributesValues_UserAttributeSchema = z.object({
12
- key: z.string().describe("The attribute key."),
13
- type: z.string().describe("The attribute type (e.g., 'string', 'integer', 'boolean')."),
14
- values: z.object({}).describe("The attribute values from different sources (e.g., {'sanity': 'value', 'saml': 'value'}).").nullable().optional(),
12
+ key: z.string().describe("The attribute key.").nullable(),
13
+ type: z.string().describe("The attribute type (e.g., 'string', 'integer', 'boolean').").nullable(),
14
+ values: z.record(z.string(), z.unknown()).describe("The attribute values from different sources (e.g., {'sanity': 'value', 'saml': 'value'}).").nullable().optional(),
15
15
  activeValue: SanityUpdateUserAttributesValues_JsonValueSchema.nullable().optional(),
16
16
  activeSource: z.string().describe("The active source for the attribute value ('sanity' or 'saml').").nullable().optional()
17
- }).describe("A user attribute with its values from different sources.");
17
+ }).passthrough().describe("A user attribute with its values from different sources.");
18
18
  const sanityUpdateUserAttributesValues = action("SANITY_UPDATE_USER_ATTRIBUTES_VALUES", {
19
19
  slug: "sanity-update-user-attributes-values",
20
20
  name: "Update User Attributes Values",
@@ -23,9 +23,9 @@ const sanityUpdateUserAttributesValues = action("SANITY_UPDATE_USER_ATTRIBUTES_V
23
23
  output: z.object({
24
24
  updatedAt: z.string().describe("ISO 8601 timestamp of when the attributes were updated.").nullable().optional(),
25
25
  attributes: z.array(SanityUpdateUserAttributesValues_UserAttributeSchema).describe("The updated list of user attributes.").nullable().optional(),
26
- sanityUserId: z.string().describe("The Sanity user ID."),
27
- organizationId: z.string().describe("The unique identifier of the organization.")
28
- }).describe("Response model for user attribute values update.")
26
+ sanityUserId: z.string().describe("The Sanity user ID.").nullable(),
27
+ organizationId: z.string().describe("The unique identifier of the organization.").nullable()
28
+ }).passthrough().describe("Response model for user attribute values update.")
29
29
  });
30
30
  //#endregion
31
31
  export { sanityUpdateUserAttributesValues };
@@ -1 +1 @@
1
- {"version":3,"file":"update-user-attributes-values.mjs","names":[],"sources":["../../src/actions/update-user-attributes-values.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityUpdateUserAttributesValuesInput: z.ZodTypeAny = z.object({\n userId: z.string().describe(\"The unique identifier of the user whose attributes to update.\"),\n attributes: z.object({}).describe(\"A dictionary of attribute key-value pairs to set for the user. Values can be strings, numbers, booleans, arrays, or nested objects. These will shadow any SAML values for the same keys.\"),\n resourceId: z.string().describe(\"The unique identifier of the resource. For organizations, this is the organization ID.\"),\n resourceType: z.enum([\"organization\", \"project\"]).describe(\"The type of resource that scopes the user attributes (e.g., 'organization' or 'project').\"),\n}).describe(\"Request model for updating user attribute values.\");\nconst SanityUpdateUserAttributesValues_JsonValueSchema: z.ZodTypeAny = z.unknown();\nconst SanityUpdateUserAttributesValues_UserAttributeSchema: z.ZodTypeAny = z.object({\n key: z.string().describe(\"The attribute key.\"),\n type: z.string().describe(\"The attribute type (e.g., 'string', 'integer', 'boolean').\"),\n values: z.object({}).describe(\"The attribute values from different sources (e.g., {'sanity': 'value', 'saml': 'value'}).\").nullable().optional(),\n activeValue: SanityUpdateUserAttributesValues_JsonValueSchema.nullable().optional(),\n activeSource: z.string().describe(\"The active source for the attribute value ('sanity' or 'saml').\").nullable().optional(),\n}).describe(\"A user attribute with its values from different sources.\");\nexport const SanityUpdateUserAttributesValuesOutput: z.ZodTypeAny = z.object({\n updatedAt: z.string().describe(\"ISO 8601 timestamp of when the attributes were updated.\").nullable().optional(),\n attributes: z.array(SanityUpdateUserAttributesValues_UserAttributeSchema).describe(\"The updated list of user attributes.\").nullable().optional(),\n sanityUserId: z.string().describe(\"The Sanity user ID.\"),\n organizationId: z.string().describe(\"The unique identifier of the organization.\"),\n}).describe(\"Response model for user attribute values update.\");\n\nexport const sanityUpdateUserAttributesValues = action(\"SANITY_UPDATE_USER_ATTRIBUTES_VALUES\", {\n slug: \"sanity-update-user-attributes-values\",\n name: \"Update User Attributes Values\",\n description: \"Update user attribute values for a resource. Use this action to set or update custom attributes for a user within an organization or project. When setting a value for an attribute key that also exists in SAML, the Sanity value will take precedence and shadow the SAML value.\",\n input: SanityUpdateUserAttributesValuesInput,\n output: SanityUpdateUserAttributesValuesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wCAAsD,EAAE,OAAO;CAC1E,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D;CAC3F,YAAY,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,0LAA0L;CAC5N,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF;CACxH,cAAc,EAAE,KAAK,CAAC,gBAAgB,SAAS,CAAC,CAAC,CAAC,SAAS,2FAA2F;AACxJ,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAM,mDAAiE,EAAE,QAAQ;AACjF,MAAM,uDAAqE,EAAE,OAAO;CAClF,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB;CAC7C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;CACtF,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/I,aAAa,iDAAiD,SAAS,CAAC,CAAC,SAAS;CAClF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3H,CAAC,CAAC,CAAC,SAAS,0DAA0D;AAQtE,MAAa,mCAAmC,OAAO,wCAAwC;CAC7F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZkE,EAAE,OAAO;EAC3E,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9G,YAAY,EAAE,MAAM,oDAAoD,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/I,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;EACvD,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;CAClF,CAAC,CAAC,CAAC,SAAS,kDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"update-user-attributes-values.mjs","names":[],"sources":["../../src/actions/update-user-attributes-values.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityUpdateUserAttributesValuesInput = z.object({\n userId: z.string().describe(\"The unique identifier of the user whose attributes to update.\"),\n attributes: z.record(z.string(), z.unknown()).describe(\"A dictionary of attribute key-value pairs to set for the user. Values can be strings, numbers, booleans, arrays, or nested objects. These will shadow any SAML values for the same keys.\"),\n resourceId: z.string().describe(\"The unique identifier of the resource. For organizations, this is the organization ID.\"),\n resourceType: z.enum([\"organization\", \"project\"]).describe(\"The type of resource that scopes the user attributes (e.g., 'organization' or 'project').\"),\n}).describe(\"Request model for updating user attribute values.\");\nconst SanityUpdateUserAttributesValues_JsonValueSchema = z.unknown();\nconst SanityUpdateUserAttributesValues_UserAttributeSchema = z.object({\n key: z.string().describe(\"The attribute key.\").nullable(),\n type: z.string().describe(\"The attribute type (e.g., 'string', 'integer', 'boolean').\").nullable(),\n values: z.record(z.string(), z.unknown()).describe(\"The attribute values from different sources (e.g., {'sanity': 'value', 'saml': 'value'}).\").nullable().optional(),\n activeValue: SanityUpdateUserAttributesValues_JsonValueSchema.nullable().optional(),\n activeSource: z.string().describe(\"The active source for the attribute value ('sanity' or 'saml').\").nullable().optional(),\n}).passthrough().describe(\"A user attribute with its values from different sources.\");\nexport const SanityUpdateUserAttributesValuesOutput = z.object({\n updatedAt: z.string().describe(\"ISO 8601 timestamp of when the attributes were updated.\").nullable().optional(),\n attributes: z.array(SanityUpdateUserAttributesValues_UserAttributeSchema).describe(\"The updated list of user attributes.\").nullable().optional(),\n sanityUserId: z.string().describe(\"The Sanity user ID.\").nullable(),\n organizationId: z.string().describe(\"The unique identifier of the organization.\").nullable(),\n}).passthrough().describe(\"Response model for user attribute values update.\");\n\nexport const sanityUpdateUserAttributesValues = action(\"SANITY_UPDATE_USER_ATTRIBUTES_VALUES\", {\n slug: \"sanity-update-user-attributes-values\",\n name: \"Update User Attributes Values\",\n description: \"Update user attribute values for a resource. Use this action to set or update custom attributes for a user within an organization or project. When setting a value for an attribute key that also exists in SAML, the Sanity value will take precedence and shadow the SAML value.\",\n input: SanityUpdateUserAttributesValuesInput,\n output: SanityUpdateUserAttributesValuesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wCAAwC,EAAE,OAAO;CAC5D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D;CAC3F,YAAY,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0LAA0L;CACjP,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF;CACxH,cAAc,EAAE,KAAK,CAAC,gBAAgB,SAAS,CAAC,CAAC,CAAC,SAAS,2FAA2F;AACxJ,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAM,mDAAmD,EAAE,QAAQ;AACnE,MAAM,uDAAuD,EAAE,OAAO;CACpE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CACxD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACjG,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpK,aAAa,iDAAiD,SAAS,CAAC,CAAC,SAAS;CAClF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0DAA0D;AAQpF,MAAa,mCAAmC,OAAO,wCAAwC;CAC7F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZoD,EAAE,OAAO;EAC7D,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9G,YAAY,EAAE,MAAM,oDAAoD,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/I,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;EAClE,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CAC7F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAOhB;AACV,CAAC"}
@@ -7,18 +7,18 @@ const SanityValidateCredential_UserInfoSchema = zod.z.object({
7
7
  name: zod.z.string().describe("The display name of the user.").nullable().optional(),
8
8
  email: zod.z.string().describe("The email address of the user.").nullable().optional(),
9
9
  profileImage: zod.z.string().describe("URL to the user's profile image.").nullable().optional()
10
- }).describe("Information about the authenticated user.");
10
+ }).passthrough().describe("Information about the authenticated user.");
11
11
  const SanityValidateCredential_ProjectInfoSchema = zod.z.object({
12
12
  id: zod.z.string().describe("The unique identifier of the project.").nullable().optional(),
13
13
  displayName: zod.z.string().describe("The display name of the project.").nullable().optional(),
14
14
  organizationId: zod.z.string().describe("The organization ID the project belongs to.").nullable().optional()
15
- }).describe("Information about a project the user has access to.");
15
+ }).passthrough().describe("Information about a project the user has access to.");
16
16
  const SanityValidateCredentialOutput = zod.z.object({
17
17
  user: SanityValidateCredential_UserInfoSchema.nullable().optional(),
18
18
  error: zod.z.string().describe("Error message if validation failed.").nullable().optional(),
19
- valid: zod.z.boolean().describe("Whether the credential is valid and authenticated successfully."),
19
+ valid: zod.z.boolean().describe("Whether the credential is valid and authenticated successfully.").nullable(),
20
20
  projects: zod.z.array(SanityValidateCredential_ProjectInfoSchema).describe("List of projects the user has access to, if available.").nullable().optional()
21
- }).describe("Response model for credential validation.");
21
+ }).passthrough().describe("Response model for credential validation.");
22
22
  const sanityValidateCredential = require_action.action("SANITY_VALIDATE_CREDENTIAL", {
23
23
  slug: "sanity-validate-credential",
24
24
  name: "Validate Credential",
@@ -1 +1 @@
1
- {"version":3,"file":"validate-credential.cjs","names":["z","action"],"sources":["../../src/actions/validate-credential.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityValidateCredentialInput: z.ZodTypeAny = z.object({}).describe(\"Request model for validating Sanity API credentials.\\nNo parameters required - uses the token from metadata headers.\");\nconst SanityValidateCredential_UserInfoSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier of the user.\").nullable().optional(),\n name: z.string().describe(\"The display name of the user.\").nullable().optional(),\n email: z.string().describe(\"The email address of the user.\").nullable().optional(),\n profileImage: z.string().describe(\"URL to the user's profile image.\").nullable().optional(),\n}).describe(\"Information about the authenticated user.\");\nconst SanityValidateCredential_ProjectInfoSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier of the project.\").nullable().optional(),\n displayName: z.string().describe(\"The display name of the project.\").nullable().optional(),\n organizationId: z.string().describe(\"The organization ID the project belongs to.\").nullable().optional(),\n}).describe(\"Information about a project the user has access to.\");\nexport const SanityValidateCredentialOutput: z.ZodTypeAny = z.object({\n user: SanityValidateCredential_UserInfoSchema.nullable().optional(),\n error: z.string().describe(\"Error message if validation failed.\").nullable().optional(),\n valid: z.boolean().describe(\"Whether the credential is valid and authenticated successfully.\"),\n projects: z.array(SanityValidateCredential_ProjectInfoSchema).describe(\"List of projects the user has access to, if available.\").nullable().optional(),\n}).describe(\"Response model for credential validation.\");\n\nexport const sanityValidateCredential = action(\"SANITY_VALIDATE_CREDENTIAL\", {\n slug: \"sanity-validate-credential\",\n name: \"Validate Credential\",\n description: \"Validate Sanity API credentials by fetching the authenticated user's information. Use this action when you need to verify that an API token is valid and has proper authentication. This action returns user information and accessible projects if the token is valid.\",\n input: SanityValidateCredentialInput,\n output: SanityValidateCredentialOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAA8CA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,sHAAsH;AACvM,MAAM,0CAAwDA,IAAAA,EAAE,OAAO;CACrE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,SAAS,2CAA2C;AACvD,MAAM,6CAA2DA,IAAAA,EAAE,OAAO;CACxE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzG,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAa,iCAA+CA,IAAAA,EAAE,OAAO;CACnE,MAAM,wCAAwC,SAAS,CAAC,CAAC,SAAS;CAClE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iEAAiE;CAC7F,UAAUA,IAAAA,EAAE,MAAM,0CAA0C,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvJ,CAAC,CAAC,CAAC,SAAS,2CAA2C;AAEvD,MAAa,2BAA2BC,eAAAA,OAAO,8BAA8B;CAC3E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"validate-credential.cjs","names":["z","action"],"sources":["../../src/actions/validate-credential.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityValidateCredentialInput = z.object({}).describe(\"Request model for validating Sanity API credentials.\\nNo parameters required - uses the token from metadata headers.\");\nconst SanityValidateCredential_UserInfoSchema = z.object({\n id: z.string().describe(\"The unique identifier of the user.\").nullable().optional(),\n name: z.string().describe(\"The display name of the user.\").nullable().optional(),\n email: z.string().describe(\"The email address of the user.\").nullable().optional(),\n profileImage: z.string().describe(\"URL to the user's profile image.\").nullable().optional(),\n}).passthrough().describe(\"Information about the authenticated user.\");\nconst SanityValidateCredential_ProjectInfoSchema = z.object({\n id: z.string().describe(\"The unique identifier of the project.\").nullable().optional(),\n displayName: z.string().describe(\"The display name of the project.\").nullable().optional(),\n organizationId: z.string().describe(\"The organization ID the project belongs to.\").nullable().optional(),\n}).passthrough().describe(\"Information about a project the user has access to.\");\nexport const SanityValidateCredentialOutput = z.object({\n user: SanityValidateCredential_UserInfoSchema.nullable().optional(),\n error: z.string().describe(\"Error message if validation failed.\").nullable().optional(),\n valid: z.boolean().describe(\"Whether the credential is valid and authenticated successfully.\").nullable(),\n projects: z.array(SanityValidateCredential_ProjectInfoSchema).describe(\"List of projects the user has access to, if available.\").nullable().optional(),\n}).passthrough().describe(\"Response model for credential validation.\");\n\nexport const sanityValidateCredential = action(\"SANITY_VALIDATE_CREDENTIAL\", {\n slug: \"sanity-validate-credential\",\n name: \"Validate Credential\",\n description: \"Validate Sanity API credentials by fetching the authenticated user's information. Use this action when you need to verify that an API token is valid and has proper authentication. This action returns user information and accessible projects if the token is valid.\",\n input: SanityValidateCredentialInput,\n output: SanityValidateCredentialOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,sHAAsH;AACzL,MAAM,0CAA0CA,IAAAA,EAAE,OAAO;CACvD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AACrE,MAAM,6CAA6CA,IAAAA,EAAE,OAAO;CAC1D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAAqD;AAC/E,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,MAAM,wCAAwC,SAAS,CAAC,CAAC,SAAS;CAClE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CACxG,UAAUA,IAAAA,EAAE,MAAM,0CAA0C,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AAErE,MAAa,2BAA2BC,eAAAA,OAAO,8BAA8B;CAC3E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,23 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/validate-credential.d.ts
4
- declare const SanityValidateCredentialInput: z.ZodTypeAny;
5
- declare const SanityValidateCredentialOutput: z.ZodTypeAny;
6
- declare const sanityValidateCredential: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SanityValidateCredentialInput: z.ZodObject<{}, z.core.$strip>;
5
+ declare const SanityValidateCredentialOutput: z.ZodObject<{
6
+ user: z.ZodOptional<z.ZodNullable<z.ZodObject<{
7
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
+ profileImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
+ }, z.core.$loose>>>;
12
+ error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ valid: z.ZodNullable<z.ZodBoolean>;
14
+ projects: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
15
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ organizationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ }, z.core.$loose>>>>;
19
+ }, z.core.$loose>;
20
+ declare const sanityValidateCredential: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
21
  //#endregion
8
22
  export { sanityValidateCredential };
9
23
  //# sourceMappingURL=validate-credential.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"validate-credential.d.cts","names":[],"sources":["../../src/actions/validate-credential.ts"],"mappings":";;;cAIa,6BAAA,EAA+B,CAAA,CAAE,UAA0J;AAAA,cAY3L,8BAAA,EAAgC,CAAA,CAAE,UAKS;AAAA,cAE3C,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"validate-credential.d.cts","names":[],"sources":["../../src/actions/validate-credential.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAY7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAO9B,wBAAA,gCAAwB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -1,9 +1,23 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/validate-credential.d.ts
4
- declare const SanityValidateCredentialInput: z.ZodTypeAny;
5
- declare const SanityValidateCredentialOutput: z.ZodTypeAny;
6
- declare const sanityValidateCredential: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SanityValidateCredentialInput: z.ZodObject<{}, z.core.$strip>;
5
+ declare const SanityValidateCredentialOutput: z.ZodObject<{
6
+ user: z.ZodOptional<z.ZodNullable<z.ZodObject<{
7
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
+ profileImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
+ }, z.core.$loose>>>;
12
+ error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ valid: z.ZodNullable<z.ZodBoolean>;
14
+ projects: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
15
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ organizationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ }, z.core.$loose>>>>;
19
+ }, z.core.$loose>;
20
+ declare const sanityValidateCredential: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
21
  //#endregion
8
22
  export { sanityValidateCredential };
9
23
  //# sourceMappingURL=validate-credential.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"validate-credential.d.mts","names":[],"sources":["../../src/actions/validate-credential.ts"],"mappings":";;;cAIa,6BAAA,EAA+B,CAAA,CAAE,UAA0J;AAAA,cAY3L,8BAAA,EAAgC,CAAA,CAAE,UAKS;AAAA,cAE3C,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"validate-credential.d.mts","names":[],"sources":["../../src/actions/validate-credential.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAY7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAO9B,wBAAA,gCAAwB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -7,12 +7,12 @@ const SanityValidateCredential_UserInfoSchema = z.object({
7
7
  name: z.string().describe("The display name of the user.").nullable().optional(),
8
8
  email: z.string().describe("The email address of the user.").nullable().optional(),
9
9
  profileImage: z.string().describe("URL to the user's profile image.").nullable().optional()
10
- }).describe("Information about the authenticated user.");
10
+ }).passthrough().describe("Information about the authenticated user.");
11
11
  const SanityValidateCredential_ProjectInfoSchema = z.object({
12
12
  id: z.string().describe("The unique identifier of the project.").nullable().optional(),
13
13
  displayName: z.string().describe("The display name of the project.").nullable().optional(),
14
14
  organizationId: z.string().describe("The organization ID the project belongs to.").nullable().optional()
15
- }).describe("Information about a project the user has access to.");
15
+ }).passthrough().describe("Information about a project the user has access to.");
16
16
  const sanityValidateCredential = action("SANITY_VALIDATE_CREDENTIAL", {
17
17
  slug: "sanity-validate-credential",
18
18
  name: "Validate Credential",
@@ -21,9 +21,9 @@ const sanityValidateCredential = action("SANITY_VALIDATE_CREDENTIAL", {
21
21
  output: z.object({
22
22
  user: SanityValidateCredential_UserInfoSchema.nullable().optional(),
23
23
  error: z.string().describe("Error message if validation failed.").nullable().optional(),
24
- valid: z.boolean().describe("Whether the credential is valid and authenticated successfully."),
24
+ valid: z.boolean().describe("Whether the credential is valid and authenticated successfully.").nullable(),
25
25
  projects: z.array(SanityValidateCredential_ProjectInfoSchema).describe("List of projects the user has access to, if available.").nullable().optional()
26
- }).describe("Response model for credential validation.")
26
+ }).passthrough().describe("Response model for credential validation.")
27
27
  });
28
28
  //#endregion
29
29
  export { sanityValidateCredential };
@@ -1 +1 @@
1
- {"version":3,"file":"validate-credential.mjs","names":[],"sources":["../../src/actions/validate-credential.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityValidateCredentialInput: z.ZodTypeAny = z.object({}).describe(\"Request model for validating Sanity API credentials.\\nNo parameters required - uses the token from metadata headers.\");\nconst SanityValidateCredential_UserInfoSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier of the user.\").nullable().optional(),\n name: z.string().describe(\"The display name of the user.\").nullable().optional(),\n email: z.string().describe(\"The email address of the user.\").nullable().optional(),\n profileImage: z.string().describe(\"URL to the user's profile image.\").nullable().optional(),\n}).describe(\"Information about the authenticated user.\");\nconst SanityValidateCredential_ProjectInfoSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier of the project.\").nullable().optional(),\n displayName: z.string().describe(\"The display name of the project.\").nullable().optional(),\n organizationId: z.string().describe(\"The organization ID the project belongs to.\").nullable().optional(),\n}).describe(\"Information about a project the user has access to.\");\nexport const SanityValidateCredentialOutput: z.ZodTypeAny = z.object({\n user: SanityValidateCredential_UserInfoSchema.nullable().optional(),\n error: z.string().describe(\"Error message if validation failed.\").nullable().optional(),\n valid: z.boolean().describe(\"Whether the credential is valid and authenticated successfully.\"),\n projects: z.array(SanityValidateCredential_ProjectInfoSchema).describe(\"List of projects the user has access to, if available.\").nullable().optional(),\n}).describe(\"Response model for credential validation.\");\n\nexport const sanityValidateCredential = action(\"SANITY_VALIDATE_CREDENTIAL\", {\n slug: \"sanity-validate-credential\",\n name: \"Validate Credential\",\n description: \"Validate Sanity API credentials by fetching the authenticated user's information. Use this action when you need to verify that an API token is valid and has proper authentication. This action returns user information and accessible projects if the token is valid.\",\n input: SanityValidateCredentialInput,\n output: SanityValidateCredentialOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAA8C,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,sHAAsH;AACvM,MAAM,0CAAwD,EAAE,OAAO;CACrE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,SAAS,2CAA2C;AACvD,MAAM,6CAA2D,EAAE,OAAO;CACxE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzG,CAAC,CAAC,CAAC,SAAS,qDAAqD;AAQjE,MAAa,2BAA2B,OAAO,8BAA8B;CAC3E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZ0D,EAAE,OAAO;EACnE,MAAM,wCAAwC,SAAS,CAAC,CAAC,SAAS;EAClE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtF,OAAO,EAAE,QAAQ,CAAC,CAAC,SAAS,iEAAiE;EAC7F,UAAU,EAAE,MAAM,0CAA0C,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvJ,CAAC,CAAC,CAAC,SAAS,2CAOF;AACV,CAAC"}
1
+ {"version":3,"file":"validate-credential.mjs","names":[],"sources":["../../src/actions/validate-credential.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityValidateCredentialInput = z.object({}).describe(\"Request model for validating Sanity API credentials.\\nNo parameters required - uses the token from metadata headers.\");\nconst SanityValidateCredential_UserInfoSchema = z.object({\n id: z.string().describe(\"The unique identifier of the user.\").nullable().optional(),\n name: z.string().describe(\"The display name of the user.\").nullable().optional(),\n email: z.string().describe(\"The email address of the user.\").nullable().optional(),\n profileImage: z.string().describe(\"URL to the user's profile image.\").nullable().optional(),\n}).passthrough().describe(\"Information about the authenticated user.\");\nconst SanityValidateCredential_ProjectInfoSchema = z.object({\n id: z.string().describe(\"The unique identifier of the project.\").nullable().optional(),\n displayName: z.string().describe(\"The display name of the project.\").nullable().optional(),\n organizationId: z.string().describe(\"The organization ID the project belongs to.\").nullable().optional(),\n}).passthrough().describe(\"Information about a project the user has access to.\");\nexport const SanityValidateCredentialOutput = z.object({\n user: SanityValidateCredential_UserInfoSchema.nullable().optional(),\n error: z.string().describe(\"Error message if validation failed.\").nullable().optional(),\n valid: z.boolean().describe(\"Whether the credential is valid and authenticated successfully.\").nullable(),\n projects: z.array(SanityValidateCredential_ProjectInfoSchema).describe(\"List of projects the user has access to, if available.\").nullable().optional(),\n}).passthrough().describe(\"Response model for credential validation.\");\n\nexport const sanityValidateCredential = action(\"SANITY_VALIDATE_CREDENTIAL\", {\n slug: \"sanity-validate-credential\",\n name: \"Validate Credential\",\n description: \"Validate Sanity API credentials by fetching the authenticated user's information. Use this action when you need to verify that an API token is valid and has proper authentication. This action returns user information and accessible projects if the token is valid.\",\n input: SanityValidateCredentialInput,\n output: SanityValidateCredentialOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,sHAAsH;AACzL,MAAM,0CAA0C,EAAE,OAAO;CACvD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AACrE,MAAM,6CAA6C,EAAE,OAAO;CAC1D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAAqD;AAQ/E,MAAa,2BAA2B,OAAO,8BAA8B;CAC3E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZ4C,EAAE,OAAO;EACrD,MAAM,wCAAwC,SAAS,CAAC,CAAC,SAAS;EAClE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtF,OAAO,EAAE,QAAQ,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;EACxG,UAAU,EAAE,MAAM,0CAA0C,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAOhB;AACV,CAAC"}
package/dist/catalog.cjs CHANGED
@@ -7,7 +7,24 @@ const sanityCatalog = {
7
7
  "category": "Developer Tools",
8
8
  "logo": "https://logos.composio.dev/api/sanity",
9
9
  "authKind": "keystroke",
10
- "oauthScopes": []
10
+ "oauthScopes": [],
11
+ "credentialFields": {
12
+ "subdomain": {
13
+ "label": "Project ID",
14
+ "description": "Your Sanity project ID (found in project settings or from sanity.json)"
15
+ },
16
+ "version": {
17
+ "label": "API Version",
18
+ "description": "API version in YYYY-MM-DD format (e.g., 2021-06-07)",
19
+ "default": "2021-06-07"
20
+ },
21
+ "api_key": {
22
+ "label": "API Token",
23
+ "secret": true,
24
+ "description": "Your Sanity API token (personal token, robot token, or project token). Create one at: Manage > API > Tokens in your Sanity project settings, or use \"sanity debug --secrets\" CLI command"
25
+ }
26
+ },
27
+ "credentialScheme": "API_KEY"
11
28
  };
12
29
  //#endregion
13
30
  exports.sanityCatalog = sanityCatalog;
@@ -1 +1 @@
1
- {"version":3,"file":"catalog.cjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const sanityCatalog = {\n \"slug\": \"sanity\",\n \"name\": \"Sanity\",\n \"description\": \"Sanity is a headless CMS platform that provides structured content storage and APIs for modern applications\",\n \"category\": \"Developer Tools\",\n \"logo\": \"https://logos.composio.dev/api/sanity\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,gBAAgB;CAC3B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;AAClB"}
1
+ {"version":3,"file":"catalog.cjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const sanityCatalog = {\n \"slug\": \"sanity\",\n \"name\": \"Sanity\",\n \"description\": \"Sanity is a headless CMS platform that provides structured content storage and APIs for modern applications\",\n \"category\": \"Developer Tools\",\n \"logo\": \"https://logos.composio.dev/api/sanity\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": [],\n \"credentialFields\": {\n \"subdomain\": {\n \"label\": \"Project ID\",\n \"description\": \"Your Sanity project ID (found in project settings or from sanity.json)\"\n },\n \"version\": {\n \"label\": \"API Version\",\n \"description\": \"API version in YYYY-MM-DD format (e.g., 2021-06-07)\",\n \"default\": \"2021-06-07\"\n },\n \"api_key\": {\n \"label\": \"API Token\",\n \"secret\": true,\n \"description\": \"Your Sanity API token (personal token, robot token, or project token). Create one at: Manage > API > Tokens in your Sanity project settings, or use \\\"sanity debug --secrets\\\" CLI command\"\n }\n },\n \"credentialScheme\": \"API_KEY\"\n} as const;\n"],"mappings":";;AACA,MAAa,gBAAgB;CAC3B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;CAChB,oBAAoB;EAClB,aAAa;GACX,SAAS;GACT,eAAe;EACjB;EACA,WAAW;GACT,SAAS;GACT,eAAe;GACf,WAAW;EACb;EACA,WAAW;GACT,SAAS;GACT,UAAU;GACV,eAAe;EACjB;CACF;CACA,oBAAoB;AACtB"}
@@ -8,6 +8,23 @@ declare const sanityCatalog: {
8
8
  readonly logo: "https://logos.composio.dev/api/sanity";
9
9
  readonly authKind: "keystroke";
10
10
  readonly oauthScopes: readonly [];
11
+ readonly credentialFields: {
12
+ readonly subdomain: {
13
+ readonly label: "Project ID";
14
+ readonly description: "Your Sanity project ID (found in project settings or from sanity.json)";
15
+ };
16
+ readonly version: {
17
+ readonly label: "API Version";
18
+ readonly description: "API version in YYYY-MM-DD format (e.g., 2021-06-07)";
19
+ readonly default: "2021-06-07";
20
+ };
21
+ readonly api_key: {
22
+ readonly label: "API Token";
23
+ readonly secret: true;
24
+ readonly description: "Your Sanity API token (personal token, robot token, or project token). Create one at: Manage > API > Tokens in your Sanity project settings, or use \"sanity debug --secrets\" CLI command";
25
+ };
26
+ };
27
+ readonly credentialScheme: "API_KEY";
11
28
  };
12
29
  //#endregion
13
30
  export { sanityCatalog };
@@ -8,6 +8,23 @@ declare const sanityCatalog: {
8
8
  readonly logo: "https://logos.composio.dev/api/sanity";
9
9
  readonly authKind: "keystroke";
10
10
  readonly oauthScopes: readonly [];
11
+ readonly credentialFields: {
12
+ readonly subdomain: {
13
+ readonly label: "Project ID";
14
+ readonly description: "Your Sanity project ID (found in project settings or from sanity.json)";
15
+ };
16
+ readonly version: {
17
+ readonly label: "API Version";
18
+ readonly description: "API version in YYYY-MM-DD format (e.g., 2021-06-07)";
19
+ readonly default: "2021-06-07";
20
+ };
21
+ readonly api_key: {
22
+ readonly label: "API Token";
23
+ readonly secret: true;
24
+ readonly description: "Your Sanity API token (personal token, robot token, or project token). Create one at: Manage > API > Tokens in your Sanity project settings, or use \"sanity debug --secrets\" CLI command";
25
+ };
26
+ };
27
+ readonly credentialScheme: "API_KEY";
11
28
  };
12
29
  //#endregion
13
30
  export { sanityCatalog };
package/dist/catalog.mjs CHANGED
@@ -7,7 +7,24 @@ const sanityCatalog = {
7
7
  "category": "Developer Tools",
8
8
  "logo": "https://logos.composio.dev/api/sanity",
9
9
  "authKind": "keystroke",
10
- "oauthScopes": []
10
+ "oauthScopes": [],
11
+ "credentialFields": {
12
+ "subdomain": {
13
+ "label": "Project ID",
14
+ "description": "Your Sanity project ID (found in project settings or from sanity.json)"
15
+ },
16
+ "version": {
17
+ "label": "API Version",
18
+ "description": "API version in YYYY-MM-DD format (e.g., 2021-06-07)",
19
+ "default": "2021-06-07"
20
+ },
21
+ "api_key": {
22
+ "label": "API Token",
23
+ "secret": true,
24
+ "description": "Your Sanity API token (personal token, robot token, or project token). Create one at: Manage > API > Tokens in your Sanity project settings, or use \"sanity debug --secrets\" CLI command"
25
+ }
26
+ },
27
+ "credentialScheme": "API_KEY"
11
28
  };
12
29
  //#endregion
13
30
  export { sanityCatalog };
@@ -1 +1 @@
1
- {"version":3,"file":"catalog.mjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const sanityCatalog = {\n \"slug\": \"sanity\",\n \"name\": \"Sanity\",\n \"description\": \"Sanity is a headless CMS platform that provides structured content storage and APIs for modern applications\",\n \"category\": \"Developer Tools\",\n \"logo\": \"https://logos.composio.dev/api/sanity\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,gBAAgB;CAC3B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;AAClB"}
1
+ {"version":3,"file":"catalog.mjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const sanityCatalog = {\n \"slug\": \"sanity\",\n \"name\": \"Sanity\",\n \"description\": \"Sanity is a headless CMS platform that provides structured content storage and APIs for modern applications\",\n \"category\": \"Developer Tools\",\n \"logo\": \"https://logos.composio.dev/api/sanity\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": [],\n \"credentialFields\": {\n \"subdomain\": {\n \"label\": \"Project ID\",\n \"description\": \"Your Sanity project ID (found in project settings or from sanity.json)\"\n },\n \"version\": {\n \"label\": \"API Version\",\n \"description\": \"API version in YYYY-MM-DD format (e.g., 2021-06-07)\",\n \"default\": \"2021-06-07\"\n },\n \"api_key\": {\n \"label\": \"API Token\",\n \"secret\": true,\n \"description\": \"Your Sanity API token (personal token, robot token, or project token). Create one at: Manage > API > Tokens in your Sanity project settings, or use \\\"sanity debug --secrets\\\" CLI command\"\n }\n },\n \"credentialScheme\": \"API_KEY\"\n} as const;\n"],"mappings":";;AACA,MAAa,gBAAgB;CAC3B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;CAChB,oBAAoB;EAClB,aAAa;GACX,SAAS;GACT,eAAe;EACjB;EACA,WAAW;GACT,SAAS;GACT,eAAe;GACf,WAAW;EACb;EACA,WAAW;GACT,SAAS;GACT,UAAU;GACV,eAAe;EACjB;CACF;CACA,oBAAoB;AACtB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keystrokehq/sanity",
3
- "version": "0.1.0",
3
+ "version": "0.1.3",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"
@@ -31,7 +31,7 @@
31
31
  }
32
32
  },
33
33
  "peerDependencies": {
34
- "@keystrokehq/keystroke": "^0.1.4",
34
+ "@keystrokehq/keystroke": ">=0.1.4",
35
35
  "zod": "^4.4.3"
36
36
  },
37
37
  "devDependencies": {