@keystrokehq/sanity 0.1.2 → 0.1.4

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 (133) hide show
  1. package/dist/actions/add-default-role-to-users.cjs +1 -1
  2. package/dist/actions/add-default-role-to-users.cjs.map +1 -1
  3. package/dist/actions/add-default-role-to-users.d.cts +1 -1
  4. package/dist/actions/add-default-role-to-users.d.mts +1 -1
  5. package/dist/actions/add-default-role-to-users.mjs +1 -1
  6. package/dist/actions/add-default-role-to-users.mjs.map +1 -1
  7. package/dist/actions/create-attr-definition.cjs +1 -1
  8. package/dist/actions/create-attr-definition.cjs.map +1 -1
  9. package/dist/actions/create-attr-definition.d.cts +1 -1
  10. package/dist/actions/create-attr-definition.d.mts +1 -1
  11. package/dist/actions/create-attr-definition.mjs +1 -1
  12. package/dist/actions/create-attr-definition.mjs.map +1 -1
  13. package/dist/actions/create-prompt-post.cjs +2 -2
  14. package/dist/actions/create-prompt-post.cjs.map +1 -1
  15. package/dist/actions/create-prompt-post.d.cts +2 -2
  16. package/dist/actions/create-prompt-post.d.mts +2 -2
  17. package/dist/actions/create-prompt-post.mjs +2 -2
  18. package/dist/actions/create-prompt-post.mjs.map +1 -1
  19. package/dist/actions/delete-attr-definition.cjs +1 -1
  20. package/dist/actions/delete-attr-definition.cjs.map +1 -1
  21. package/dist/actions/delete-attr-definition.d.cts +1 -1
  22. package/dist/actions/delete-attr-definition.d.mts +1 -1
  23. package/dist/actions/delete-attr-definition.mjs +1 -1
  24. package/dist/actions/delete-attr-definition.mjs.map +1 -1
  25. package/dist/actions/delete-document.cjs +1 -1
  26. package/dist/actions/delete-document.cjs.map +1 -1
  27. package/dist/actions/delete-document.d.cts +1 -1
  28. package/dist/actions/delete-document.d.mts +1 -1
  29. package/dist/actions/delete-document.mjs +1 -1
  30. package/dist/actions/delete-document.mjs.map +1 -1
  31. package/dist/actions/delete-user-attributes.cjs +3 -3
  32. package/dist/actions/delete-user-attributes.cjs.map +1 -1
  33. package/dist/actions/delete-user-attributes.d.cts +4 -3
  34. package/dist/actions/delete-user-attributes.d.mts +4 -3
  35. package/dist/actions/delete-user-attributes.mjs +3 -3
  36. package/dist/actions/delete-user-attributes.mjs.map +1 -1
  37. package/dist/actions/get-document.cjs +2 -2
  38. package/dist/actions/get-document.cjs.map +1 -1
  39. package/dist/actions/get-document.d.cts +2 -2
  40. package/dist/actions/get-document.d.mts +2 -2
  41. package/dist/actions/get-document.mjs +2 -2
  42. package/dist/actions/get-document.mjs.map +1 -1
  43. package/dist/actions/get-invite-by-token.cjs +1 -1
  44. package/dist/actions/get-invite-by-token.cjs.map +1 -1
  45. package/dist/actions/get-invite-by-token.d.cts +1 -1
  46. package/dist/actions/get-invite-by-token.d.mts +1 -1
  47. package/dist/actions/get-invite-by-token.mjs +1 -1
  48. package/dist/actions/get-invite-by-token.mjs.map +1 -1
  49. package/dist/actions/get-org-role.cjs +3 -3
  50. package/dist/actions/get-org-role.cjs.map +1 -1
  51. package/dist/actions/get-org-role.d.cts +3 -3
  52. package/dist/actions/get-org-role.d.mts +3 -3
  53. package/dist/actions/get-org-role.mjs +3 -3
  54. package/dist/actions/get-org-role.mjs.map +1 -1
  55. package/dist/actions/get-permission.cjs +2 -2
  56. package/dist/actions/get-permission.cjs.map +1 -1
  57. package/dist/actions/get-permission.d.cts +2 -2
  58. package/dist/actions/get-permission.d.mts +2 -2
  59. package/dist/actions/get-permission.mjs +2 -2
  60. package/dist/actions/get-permission.mjs.map +1 -1
  61. package/dist/actions/get-project.cjs +5 -5
  62. package/dist/actions/get-project.cjs.map +1 -1
  63. package/dist/actions/get-project.d.cts +5 -5
  64. package/dist/actions/get-project.d.mts +5 -5
  65. package/dist/actions/get-project.mjs +5 -5
  66. package/dist/actions/get-project.mjs.map +1 -1
  67. package/dist/actions/get-robots.cjs +3 -3
  68. package/dist/actions/get-robots.cjs.map +1 -1
  69. package/dist/actions/get-robots.d.cts +3 -3
  70. package/dist/actions/get-robots.d.mts +3 -3
  71. package/dist/actions/get-robots.mjs +3 -3
  72. package/dist/actions/get-robots.mjs.map +1 -1
  73. package/dist/actions/get-role.cjs +2 -2
  74. package/dist/actions/get-role.cjs.map +1 -1
  75. package/dist/actions/get-role.d.cts +2 -2
  76. package/dist/actions/get-role.d.mts +2 -2
  77. package/dist/actions/get-role.mjs +2 -2
  78. package/dist/actions/get-role.mjs.map +1 -1
  79. package/dist/actions/get-users.cjs +3 -3
  80. package/dist/actions/get-users.cjs.map +1 -1
  81. package/dist/actions/get-users.d.cts +3 -3
  82. package/dist/actions/get-users.d.mts +3 -3
  83. package/dist/actions/get-users.mjs +3 -3
  84. package/dist/actions/get-users.mjs.map +1 -1
  85. package/dist/actions/list-org-roles.cjs +3 -3
  86. package/dist/actions/list-org-roles.cjs.map +1 -1
  87. package/dist/actions/list-org-roles.d.cts +3 -3
  88. package/dist/actions/list-org-roles.d.mts +3 -3
  89. package/dist/actions/list-org-roles.mjs +3 -3
  90. package/dist/actions/list-org-roles.mjs.map +1 -1
  91. package/dist/actions/list-user-attributes.cjs +2 -2
  92. package/dist/actions/list-user-attributes.cjs.map +1 -1
  93. package/dist/actions/list-user-attributes.d.cts +2 -2
  94. package/dist/actions/list-user-attributes.d.mts +2 -2
  95. package/dist/actions/list-user-attributes.mjs +2 -2
  96. package/dist/actions/list-user-attributes.mjs.map +1 -1
  97. package/dist/actions/query-all-screening.cjs +1 -1
  98. package/dist/actions/query-all-screening.cjs.map +1 -1
  99. package/dist/actions/query-all-screening.d.cts +1 -1
  100. package/dist/actions/query-all-screening.d.mts +1 -1
  101. package/dist/actions/query-all-screening.mjs +1 -1
  102. package/dist/actions/query-all-screening.mjs.map +1 -1
  103. package/dist/actions/query-documents.cjs +2 -2
  104. package/dist/actions/query-documents.cjs.map +1 -1
  105. package/dist/actions/query-documents.d.cts +3 -3
  106. package/dist/actions/query-documents.d.mts +3 -3
  107. package/dist/actions/query-documents.mjs +2 -2
  108. package/dist/actions/query-documents.mjs.map +1 -1
  109. package/dist/actions/update-org-acl.cjs +1 -1
  110. package/dist/actions/update-org-acl.cjs.map +1 -1
  111. package/dist/actions/update-org-acl.d.cts +1 -1
  112. package/dist/actions/update-org-acl.d.mts +1 -1
  113. package/dist/actions/update-org-acl.mjs +1 -1
  114. package/dist/actions/update-org-acl.mjs.map +1 -1
  115. package/dist/actions/update-user-attributes-values.cjs +4 -4
  116. package/dist/actions/update-user-attributes-values.cjs.map +1 -1
  117. package/dist/actions/update-user-attributes-values.d.cts +5 -5
  118. package/dist/actions/update-user-attributes-values.d.mts +5 -5
  119. package/dist/actions/update-user-attributes-values.mjs +4 -4
  120. package/dist/actions/update-user-attributes-values.mjs.map +1 -1
  121. package/dist/actions/validate-credential.cjs +3 -3
  122. package/dist/actions/validate-credential.cjs.map +1 -1
  123. package/dist/actions/validate-credential.d.cts +3 -3
  124. package/dist/actions/validate-credential.d.mts +3 -3
  125. package/dist/actions/validate-credential.mjs +3 -3
  126. package/dist/actions/validate-credential.mjs.map +1 -1
  127. package/dist/catalog.cjs +1 -1
  128. package/dist/catalog.cjs.map +1 -1
  129. package/dist/catalog.d.cts +1 -1
  130. package/dist/catalog.d.mts +1 -1
  131. package/dist/catalog.mjs +1 -1
  132. package/dist/catalog.mjs.map +1 -1
  133. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"list-user-attributes.cjs","names":["z","action"],"sources":["../../src/actions/list-user-attributes.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityListUserAttributesInput = z.object({\n limit: z.number().int().default(50).describe(\"Maximum number of attributes to return\").optional(),\n cursor: z.string().describe(\"The last attribute key from the previous page (used for pagination)\").optional(),\n sanity_user_id: z.string().describe(\"Unique identifier of the Sanity user\"),\n organization_id: z.string().describe(\"Unique identifier of the organization\"),\n}).describe(\"Request model for retrieving user attributes from a Sanity organization.\");\nconst SanityListUserAttributes_AttributeItemSchema = z.object({\n key: z.string().describe(\"The key/name of the attribute\").nullable(),\n type: z.string().describe(\"The type of the attribute\").nullable(),\n values: z.record(z.string(), z.unknown()).describe(\"Possible values for this attribute\").nullable().optional(),\n active_value: z.record(z.string(), z.unknown()).describe(\"The active value for this attribute\").nullable().optional(),\n active_source: z.string().describe(\"The source of the active value\").nullable().optional(),\n}).describe(\"Individual user attribute item.\");\nexport const SanityListUserAttributesOutput = z.object({\n attributes: z.array(SanityListUserAttributes_AttributeItemSchema).describe(\"List of user attributes\"),\n sanityUserId: z.string().describe(\"ID of the user\").nullable(),\n organizationId: z.string().describe(\"ID of the organization\").nullable(),\n}).describe(\"Response model for user attributes retrieval.\");\n\nexport const sanityListUserAttributes = action(\"SANITY_LIST_USER_ATTRIBUTES\", {\n slug: \"sanity-list-user-attributes\",\n name: \"List User Attributes\",\n description: \"Tool to retrieve user attributes from a Sanity organization. Use when you need to get the attributes (such as roles, permissions, or custom properties) associated with a specific user in a Sanity organization. Supports pagination via the cursor parameter.\",\n input: SanityListUserAttributesInput,\n output: SanityListUserAttributesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAChG,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CAC5G,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CAC1E,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;AAC9E,CAAC,CAAC,CAAC,SAAS,0EAA0E;AACtF,MAAM,+CAA+CA,IAAAA,EAAE,OAAO;CAC5D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACnE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAChE,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,cAAcA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpH,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3F,CAAC,CAAC,CAAC,SAAS,iCAAiC;AAC7C,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,YAAYA,IAAAA,EAAE,MAAM,4CAA4C,CAAC,CAAC,SAAS,yBAAyB;CACpG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;CAC7D,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;AACzE,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAE3D,MAAa,2BAA2BC,eAAAA,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-user-attributes.cjs","names":["z","action"],"sources":["../../src/actions/list-user-attributes.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityListUserAttributesInput = z.object({\n limit: z.number().int().default(50).describe(\"Maximum number of attributes to return\").optional(),\n cursor: z.string().describe(\"The last attribute key from the previous page (used for pagination)\").optional(),\n sanity_user_id: z.string().describe(\"Unique identifier of the Sanity user\"),\n organization_id: z.string().describe(\"Unique identifier of the organization\"),\n}).describe(\"Request model for retrieving user attributes from a Sanity organization.\");\nconst SanityListUserAttributes_AttributeItemSchema = z.object({\n key: z.string().describe(\"The key/name of the attribute\").nullable(),\n type: z.string().describe(\"The type of the attribute\").nullable(),\n values: z.record(z.string(), z.unknown()).describe(\"Possible values for this attribute\").nullable().optional(),\n active_value: z.record(z.string(), z.unknown()).describe(\"The active value for this attribute\").nullable().optional(),\n active_source: z.string().describe(\"The source of the active value\").nullable().optional(),\n}).passthrough().describe(\"Individual user attribute item.\");\nexport const SanityListUserAttributesOutput = z.object({\n attributes: z.array(SanityListUserAttributes_AttributeItemSchema).describe(\"List of user attributes\"),\n sanityUserId: z.string().describe(\"ID of the user\").nullable(),\n organizationId: z.string().describe(\"ID of the organization\").nullable(),\n}).passthrough().describe(\"Response model for user attributes retrieval.\");\n\nexport const sanityListUserAttributes = action(\"SANITY_LIST_USER_ATTRIBUTES\", {\n slug: \"sanity-list-user-attributes\",\n name: \"List User Attributes\",\n description: \"Tool to retrieve user attributes from a Sanity organization. Use when you need to get the attributes (such as roles, permissions, or custom properties) associated with a specific user in a Sanity organization. Supports pagination via the cursor parameter.\",\n input: SanityListUserAttributesInput,\n output: SanityListUserAttributesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAChG,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CAC5G,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CAC1E,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;AAC9E,CAAC,CAAC,CAAC,SAAS,0EAA0E;AACtF,MAAM,+CAA+CA,IAAAA,EAAE,OAAO;CAC5D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACnE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAChE,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,cAAcA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpH,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iCAAiC;AAC3D,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,YAAYA,IAAAA,EAAE,MAAM,4CAA4C,CAAC,CAAC,SAAS,yBAAyB;CACpG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;CAC7D,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;AACzE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAA+C;AAEzE,MAAa,2BAA2BC,eAAAA,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -14,10 +14,10 @@ declare const SanityListUserAttributesOutput: z.ZodObject<{
14
14
  values: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
15
15
  active_value: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
16
16
  active_source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
- }, z.core.$strip>>;
17
+ }, z.core.$loose>>;
18
18
  sanityUserId: z.ZodNullable<z.ZodString>;
19
19
  organizationId: z.ZodNullable<z.ZodString>;
20
- }, z.core.$strip>;
20
+ }, z.core.$loose>;
21
21
  declare const sanityListUserAttributes: import("@keystrokehq/action").WorkflowActionDefinition<{
22
22
  sanity_user_id: string;
23
23
  organization_id: string;
@@ -14,10 +14,10 @@ declare const SanityListUserAttributesOutput: z.ZodObject<{
14
14
  values: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
15
15
  active_value: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
16
16
  active_source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
- }, z.core.$strip>>;
17
+ }, z.core.$loose>>;
18
18
  sanityUserId: z.ZodNullable<z.ZodString>;
19
19
  organizationId: z.ZodNullable<z.ZodString>;
20
- }, z.core.$strip>;
20
+ }, z.core.$loose>;
21
21
  declare const sanityListUserAttributes: import("@keystrokehq/action").WorkflowActionDefinition<{
22
22
  sanity_user_id: string;
23
23
  organization_id: string;
@@ -13,7 +13,7 @@ const SanityListUserAttributes_AttributeItemSchema = z.object({
13
13
  values: z.record(z.string(), z.unknown()).describe("Possible values for this attribute").nullable().optional(),
14
14
  active_value: z.record(z.string(), z.unknown()).describe("The active value for this attribute").nullable().optional(),
15
15
  active_source: z.string().describe("The source of the active value").nullable().optional()
16
- }).describe("Individual user attribute item.");
16
+ }).passthrough().describe("Individual user attribute item.");
17
17
  const sanityListUserAttributes = action("SANITY_LIST_USER_ATTRIBUTES", {
18
18
  slug: "sanity-list-user-attributes",
19
19
  name: "List User Attributes",
@@ -23,7 +23,7 @@ const sanityListUserAttributes = action("SANITY_LIST_USER_ATTRIBUTES", {
23
23
  attributes: z.array(SanityListUserAttributes_AttributeItemSchema).describe("List of user attributes"),
24
24
  sanityUserId: z.string().describe("ID of the user").nullable(),
25
25
  organizationId: z.string().describe("ID of the organization").nullable()
26
- }).describe("Response model for user attributes retrieval.")
26
+ }).passthrough().describe("Response model for user attributes retrieval.")
27
27
  });
28
28
  //#endregion
29
29
  export { sanityListUserAttributes };
@@ -1 +1 @@
1
- {"version":3,"file":"list-user-attributes.mjs","names":[],"sources":["../../src/actions/list-user-attributes.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityListUserAttributesInput = z.object({\n limit: z.number().int().default(50).describe(\"Maximum number of attributes to return\").optional(),\n cursor: z.string().describe(\"The last attribute key from the previous page (used for pagination)\").optional(),\n sanity_user_id: z.string().describe(\"Unique identifier of the Sanity user\"),\n organization_id: z.string().describe(\"Unique identifier of the organization\"),\n}).describe(\"Request model for retrieving user attributes from a Sanity organization.\");\nconst SanityListUserAttributes_AttributeItemSchema = z.object({\n key: z.string().describe(\"The key/name of the attribute\").nullable(),\n type: z.string().describe(\"The type of the attribute\").nullable(),\n values: z.record(z.string(), z.unknown()).describe(\"Possible values for this attribute\").nullable().optional(),\n active_value: z.record(z.string(), z.unknown()).describe(\"The active value for this attribute\").nullable().optional(),\n active_source: z.string().describe(\"The source of the active value\").nullable().optional(),\n}).describe(\"Individual user attribute item.\");\nexport const SanityListUserAttributesOutput = z.object({\n attributes: z.array(SanityListUserAttributes_AttributeItemSchema).describe(\"List of user attributes\"),\n sanityUserId: z.string().describe(\"ID of the user\").nullable(),\n organizationId: z.string().describe(\"ID of the organization\").nullable(),\n}).describe(\"Response model for user attributes retrieval.\");\n\nexport const sanityListUserAttributes = action(\"SANITY_LIST_USER_ATTRIBUTES\", {\n slug: \"sanity-list-user-attributes\",\n name: \"List User Attributes\",\n description: \"Tool to retrieve user attributes from a Sanity organization. Use when you need to get the attributes (such as roles, permissions, or custom properties) associated with a specific user in a Sanity organization. Supports pagination via the cursor parameter.\",\n input: SanityListUserAttributesInput,\n output: SanityListUserAttributesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgC,EAAE,OAAO;CACpD,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAChG,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CAC5G,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CAC1E,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;AAC9E,CAAC,CAAC,CAAC,SAAS,0EAA0E;AACtF,MAAM,+CAA+C,EAAE,OAAO;CAC5D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACnE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAChE,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,cAAc,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpH,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3F,CAAC,CAAC,CAAC,SAAS,iCAAiC;AAO7C,MAAa,2BAA2B,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAX4C,EAAE,OAAO;EACrD,YAAY,EAAE,MAAM,4CAA4C,CAAC,CAAC,SAAS,yBAAyB;EACpG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;EAC7D,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CACzE,CAAC,CAAC,CAAC,SAAS,+CAOF;AACV,CAAC"}
1
+ {"version":3,"file":"list-user-attributes.mjs","names":[],"sources":["../../src/actions/list-user-attributes.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityListUserAttributesInput = z.object({\n limit: z.number().int().default(50).describe(\"Maximum number of attributes to return\").optional(),\n cursor: z.string().describe(\"The last attribute key from the previous page (used for pagination)\").optional(),\n sanity_user_id: z.string().describe(\"Unique identifier of the Sanity user\"),\n organization_id: z.string().describe(\"Unique identifier of the organization\"),\n}).describe(\"Request model for retrieving user attributes from a Sanity organization.\");\nconst SanityListUserAttributes_AttributeItemSchema = z.object({\n key: z.string().describe(\"The key/name of the attribute\").nullable(),\n type: z.string().describe(\"The type of the attribute\").nullable(),\n values: z.record(z.string(), z.unknown()).describe(\"Possible values for this attribute\").nullable().optional(),\n active_value: z.record(z.string(), z.unknown()).describe(\"The active value for this attribute\").nullable().optional(),\n active_source: z.string().describe(\"The source of the active value\").nullable().optional(),\n}).passthrough().describe(\"Individual user attribute item.\");\nexport const SanityListUserAttributesOutput = z.object({\n attributes: z.array(SanityListUserAttributes_AttributeItemSchema).describe(\"List of user attributes\"),\n sanityUserId: z.string().describe(\"ID of the user\").nullable(),\n organizationId: z.string().describe(\"ID of the organization\").nullable(),\n}).passthrough().describe(\"Response model for user attributes retrieval.\");\n\nexport const sanityListUserAttributes = action(\"SANITY_LIST_USER_ATTRIBUTES\", {\n slug: \"sanity-list-user-attributes\",\n name: \"List User Attributes\",\n description: \"Tool to retrieve user attributes from a Sanity organization. Use when you need to get the attributes (such as roles, permissions, or custom properties) associated with a specific user in a Sanity organization. Supports pagination via the cursor parameter.\",\n input: SanityListUserAttributesInput,\n output: SanityListUserAttributesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgC,EAAE,OAAO;CACpD,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAChG,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CAC5G,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CAC1E,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;AAC9E,CAAC,CAAC,CAAC,SAAS,0EAA0E;AACtF,MAAM,+CAA+C,EAAE,OAAO;CAC5D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACnE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAChE,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,cAAc,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpH,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iCAAiC;AAO3D,MAAa,2BAA2B,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAX4C,EAAE,OAAO;EACrD,YAAY,EAAE,MAAM,4CAA4C,CAAC,CAAC,SAAS,yBAAyB;EACpG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;EAC7D,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CACzE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAOhB;AACV,CAAC"}
@@ -13,7 +13,7 @@ const SanityQueryAllScreeningOutput = zod.z.object({
13
13
  query: zod.z.string().describe("The GROQ query that was executed.").nullable().optional(),
14
14
  result: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("Array of screening documents matching the query.").nullable().optional(),
15
15
  syncTags: zod.z.array(zod.z.string()).describe("Tags for cache synchronization.").nullable().optional()
16
- });
16
+ }).passthrough();
17
17
  const sanityQueryAllScreening = require_action.action("SANITY_QUERY_ALL_SCREENING", {
18
18
  slug: "sanity-query-all-screening",
19
19
  name: "Query All Screening",
@@ -1 +1 @@
1
- {"version":3,"file":"query-all-screening.cjs","names":["z","action"],"sources":["../../src/actions/query-all-screening.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityQueryAllScreeningInput = z.object({\n query: z.string().default(\"*[_type == 'screening']\").describe(\"GROQ query string to execute. Defaults to querying all documents of type 'screening'.\").optional(),\n params: z.record(z.string(), z.unknown()).describe(\"Optional parameters to pass to the GROQ query. Use $variableName syntax in query.\").optional(),\n dataset: z.string().default(\"production\").describe(\"The Sanity dataset to query. Defaults to 'production'.\").optional(),\n explain: z.boolean().describe(\"If true, returns query execution plan details.\").optional(),\n resultSourceMap: z.boolean().describe(\"If true, includes source map information in the response.\").optional(),\n});\nexport const SanityQueryAllScreeningOutput = z.object({\n ms: z.number().int().describe(\"Time taken to execute the query in milliseconds.\").nullable().optional(),\n query: z.string().describe(\"The GROQ query that was executed.\").nullable().optional(),\n result: z.array(z.record(z.string(), z.unknown())).describe(\"Array of screening documents matching the query.\").nullable().optional(),\n syncTags: z.array(z.string()).describe(\"Tags for cache synchronization.\").nullable().optional(),\n});\n\nexport const sanityQueryAllScreening = action(\"SANITY_QUERY_ALL_SCREENING\", {\n slug: \"sanity-query-all-screening\",\n name: \"Query All Screening\",\n description: \"Execute a GROQ query to fetch all screening documents from Sanity. Uses the Sanity HTTP query API endpoint. Default query retrieves all documents of type 'screening'. Supports optional query parameters for dynamic queries.\",\n input: SanityQueryAllScreeningInput,\n output: SanityQueryAllScreeningOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,yBAAyB,CAAC,CAAC,SAAS,uFAAuF,CAAC,CAAC,SAAS;CAChK,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS;CACjJ,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,YAAY,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CACtH,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACzF,iBAAiBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;AAC9G,CAAC;AACD,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpI,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChG,CAAC;AAED,MAAa,0BAA0BC,eAAAA,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"query-all-screening.cjs","names":["z","action"],"sources":["../../src/actions/query-all-screening.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityQueryAllScreeningInput = z.object({\n query: z.string().default(\"*[_type == 'screening']\").describe(\"GROQ query string to execute. Defaults to querying all documents of type 'screening'.\").optional(),\n params: z.record(z.string(), z.unknown()).describe(\"Optional parameters to pass to the GROQ query. Use $variableName syntax in query.\").optional(),\n dataset: z.string().default(\"production\").describe(\"The Sanity dataset to query. Defaults to 'production'.\").optional(),\n explain: z.boolean().describe(\"If true, returns query execution plan details.\").optional(),\n resultSourceMap: z.boolean().describe(\"If true, includes source map information in the response.\").optional(),\n});\nexport const SanityQueryAllScreeningOutput = z.object({\n ms: z.number().int().describe(\"Time taken to execute the query in milliseconds.\").nullable().optional(),\n query: z.string().describe(\"The GROQ query that was executed.\").nullable().optional(),\n result: z.array(z.record(z.string(), z.unknown())).describe(\"Array of screening documents matching the query.\").nullable().optional(),\n syncTags: z.array(z.string()).describe(\"Tags for cache synchronization.\").nullable().optional(),\n}).passthrough();\n\nexport const sanityQueryAllScreening = action(\"SANITY_QUERY_ALL_SCREENING\", {\n slug: \"sanity-query-all-screening\",\n name: \"Query All Screening\",\n description: \"Execute a GROQ query to fetch all screening documents from Sanity. Uses the Sanity HTTP query API endpoint. Default query retrieves all documents of type 'screening'. Supports optional query parameters for dynamic queries.\",\n input: SanityQueryAllScreeningInput,\n output: SanityQueryAllScreeningOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,yBAAyB,CAAC,CAAC,SAAS,uFAAuF,CAAC,CAAC,SAAS;CAChK,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS;CACjJ,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,YAAY,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CACtH,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACzF,iBAAiBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;AAC9G,CAAC;AACD,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpI,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChG,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,0BAA0BC,eAAAA,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -13,7 +13,7 @@ declare const SanityQueryAllScreeningOutput: z.ZodObject<{
13
13
  query: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
14
  result: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
15
15
  syncTags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
16
- }, z.core.$strip>;
16
+ }, z.core.$loose>;
17
17
  declare const sanityQueryAllScreening: import("@keystrokehq/action").WorkflowActionDefinition<{
18
18
  query?: string | undefined;
19
19
  params?: Record<string, unknown> | undefined;
@@ -13,7 +13,7 @@ declare const SanityQueryAllScreeningOutput: z.ZodObject<{
13
13
  query: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
14
  result: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
15
15
  syncTags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
16
- }, z.core.$strip>;
16
+ }, z.core.$loose>;
17
17
  declare const sanityQueryAllScreening: import("@keystrokehq/action").WorkflowActionDefinition<{
18
18
  query?: string | undefined;
19
19
  params?: Record<string, unknown> | undefined;
@@ -16,7 +16,7 @@ const sanityQueryAllScreening = action("SANITY_QUERY_ALL_SCREENING", {
16
16
  query: z.string().describe("The GROQ query that was executed.").nullable().optional(),
17
17
  result: z.array(z.record(z.string(), z.unknown())).describe("Array of screening documents matching the query.").nullable().optional(),
18
18
  syncTags: z.array(z.string()).describe("Tags for cache synchronization.").nullable().optional()
19
- })
19
+ }).passthrough()
20
20
  });
21
21
  //#endregion
22
22
  export { sanityQueryAllScreening };
@@ -1 +1 @@
1
- {"version":3,"file":"query-all-screening.mjs","names":[],"sources":["../../src/actions/query-all-screening.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityQueryAllScreeningInput = z.object({\n query: z.string().default(\"*[_type == 'screening']\").describe(\"GROQ query string to execute. Defaults to querying all documents of type 'screening'.\").optional(),\n params: z.record(z.string(), z.unknown()).describe(\"Optional parameters to pass to the GROQ query. Use $variableName syntax in query.\").optional(),\n dataset: z.string().default(\"production\").describe(\"The Sanity dataset to query. Defaults to 'production'.\").optional(),\n explain: z.boolean().describe(\"If true, returns query execution plan details.\").optional(),\n resultSourceMap: z.boolean().describe(\"If true, includes source map information in the response.\").optional(),\n});\nexport const SanityQueryAllScreeningOutput = z.object({\n ms: z.number().int().describe(\"Time taken to execute the query in milliseconds.\").nullable().optional(),\n query: z.string().describe(\"The GROQ query that was executed.\").nullable().optional(),\n result: z.array(z.record(z.string(), z.unknown())).describe(\"Array of screening documents matching the query.\").nullable().optional(),\n syncTags: z.array(z.string()).describe(\"Tags for cache synchronization.\").nullable().optional(),\n});\n\nexport const sanityQueryAllScreening = action(\"SANITY_QUERY_ALL_SCREENING\", {\n slug: \"sanity-query-all-screening\",\n name: \"Query All Screening\",\n description: \"Execute a GROQ query to fetch all screening documents from Sanity. Uses the Sanity HTTP query API endpoint. Default query retrieves all documents of type 'screening'. Supports optional query parameters for dynamic queries.\",\n input: SanityQueryAllScreeningInput,\n output: SanityQueryAllScreeningOutput,\n});\n"],"mappings":";;AAkBA,MAAa,0BAA0B,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAlB0C,EAAE,OAAO;EACnD,OAAO,EAAE,OAAO,CAAC,CAAC,QAAQ,yBAAyB,CAAC,CAAC,SAAS,uFAAuF,CAAC,CAAC,SAAS;EAChK,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS;EACjJ,SAAS,EAAE,OAAO,CAAC,CAAC,QAAQ,YAAY,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;EACtH,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;EACzF,iBAAiB,EAAE,QAAQ,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CAC9G,CAYS;CACP,QAZ2C,EAAE,OAAO;EACpD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtG,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpF,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpI,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,CAOU;AACV,CAAC"}
1
+ {"version":3,"file":"query-all-screening.mjs","names":[],"sources":["../../src/actions/query-all-screening.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityQueryAllScreeningInput = z.object({\n query: z.string().default(\"*[_type == 'screening']\").describe(\"GROQ query string to execute. Defaults to querying all documents of type 'screening'.\").optional(),\n params: z.record(z.string(), z.unknown()).describe(\"Optional parameters to pass to the GROQ query. Use $variableName syntax in query.\").optional(),\n dataset: z.string().default(\"production\").describe(\"The Sanity dataset to query. Defaults to 'production'.\").optional(),\n explain: z.boolean().describe(\"If true, returns query execution plan details.\").optional(),\n resultSourceMap: z.boolean().describe(\"If true, includes source map information in the response.\").optional(),\n});\nexport const SanityQueryAllScreeningOutput = z.object({\n ms: z.number().int().describe(\"Time taken to execute the query in milliseconds.\").nullable().optional(),\n query: z.string().describe(\"The GROQ query that was executed.\").nullable().optional(),\n result: z.array(z.record(z.string(), z.unknown())).describe(\"Array of screening documents matching the query.\").nullable().optional(),\n syncTags: z.array(z.string()).describe(\"Tags for cache synchronization.\").nullable().optional(),\n}).passthrough();\n\nexport const sanityQueryAllScreening = action(\"SANITY_QUERY_ALL_SCREENING\", {\n slug: \"sanity-query-all-screening\",\n name: \"Query All Screening\",\n description: \"Execute a GROQ query to fetch all screening documents from Sanity. Uses the Sanity HTTP query API endpoint. Default query retrieves all documents of type 'screening'. Supports optional query parameters for dynamic queries.\",\n input: SanityQueryAllScreeningInput,\n output: SanityQueryAllScreeningOutput,\n});\n"],"mappings":";;AAkBA,MAAa,0BAA0B,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAlB0C,EAAE,OAAO;EACnD,OAAO,EAAE,OAAO,CAAC,CAAC,QAAQ,yBAAyB,CAAC,CAAC,SAAS,uFAAuF,CAAC,CAAC,SAAS;EAChK,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS;EACjJ,SAAS,EAAE,OAAO,CAAC,CAAC,QAAQ,YAAY,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;EACtH,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;EACzF,iBAAiB,EAAE,QAAQ,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CAC9G,CAYS;CACP,QAZ2C,EAAE,OAAO;EACpD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtG,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpF,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpI,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
@@ -3,7 +3,7 @@ let zod = require("zod");
3
3
  //#region src/actions/query-documents.ts
4
4
  const SanityQueryDocumentsInput = zod.z.object({
5
5
  query: zod.z.string().describe("The GROQ query string to execute. GROQ is Sanity's query language for fetching and transforming documents."),
6
- params: zod.z.object({}).describe("Optional parameters for the GROQ query. Use $variableName syntax in the query string, then pass the values here (e.g., query='*[_type == $type]' with params={'type': 'post'}).").optional(),
6
+ params: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Optional parameters for the GROQ query. Use $variableName syntax in the query string, then pass the values here (e.g., query='*[_type == $type]' with params={'type': 'post'}).").optional(),
7
7
  useCdn: zod.z.boolean().describe("Whether to use Sanity's CDN for faster response times. Recommended for read-heavy workloads with data that doesn't change frequently.").optional(),
8
8
  dataset: zod.z.string().describe("The dataset name to query within the project (e.g., 'production', 'staging')."),
9
9
  project_id: zod.z.string().describe("The Sanity project ID to query. This identifies which project's data to access."),
@@ -24,7 +24,7 @@ const SanityQueryDocumentsOutput = zod.z.object({
24
24
  ms: zod.z.number().int().describe("Time taken to execute the query in milliseconds.").nullable().optional(),
25
25
  query: zod.z.string().describe("The GROQ query that was executed.").nullable().optional(),
26
26
  result: zod.z.array(SanityQueryDocuments_SanityDocumentSchema).describe("Array of documents matching the query. Each document contains at minimum the Sanity system fields (_id, _type, _createdAt, _updatedAt, _rev) plus any additional fields from the query projection.").nullable().optional()
27
- }).describe("Response from querying documents.");
27
+ }).passthrough().describe("Response from querying documents.");
28
28
  const sanityQueryDocuments = require_action.action("SANITY_QUERY_DOCUMENTS", {
29
29
  slug: "sanity-query-documents",
30
30
  name: "Query Documents",
@@ -1 +1 @@
1
- {"version":3,"file":"query-documents.cjs","names":["z","action"],"sources":["../../src/actions/query-documents.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityQueryDocumentsInput = z.object({\n query: z.string().describe(\"The GROQ query string to execute. GROQ is Sanity's query language for fetching and transforming documents.\"),\n params: z.object({}).describe(\"Optional parameters for the GROQ query. Use $variableName syntax in the query string, then pass the values here (e.g., query='*[_type == $type]' with params={'type': 'post'}).\").optional(),\n useCdn: z.boolean().describe(\"Whether to use Sanity's CDN for faster response times. Recommended for read-heavy workloads with data that doesn't change frequently.\").optional(),\n dataset: z.string().describe(\"The dataset name to query within the project (e.g., 'production', 'staging').\"),\n project_id: z.string().describe(\"The Sanity project ID to query. This identifies which project's data to access.\"),\n perspective: z.enum([\"published\", \"previewDrafts\", \"raw\"]).describe(\"Perspective determines which version of documents to query.\").optional(),\n}).describe(\"Request parameters for querying documents with GROQ.\");\nconst SanityQueryDocuments_SanityDocumentSchema = z.object({\n _id: z.string().describe(\"The unique identifier of the document.\").nullable().optional(),\n _rev: z.string().describe(\"The document revision identifier.\").nullable().optional(),\n _type: z.string().describe(\"The document type/schema name.\").nullable().optional(),\n _createdAt: z.string().describe(\"ISO 8601 timestamp when the document was created.\").nullable().optional(),\n _updatedAt: z.string().describe(\"ISO 8601 timestamp when the document was last updated.\").nullable().optional(),\n}).passthrough().describe(\"A Sanity document returned by a GROQ query.\");\nexport const SanityQueryDocumentsOutput = z.object({\n ms: z.number().int().describe(\"Time taken to execute the query in milliseconds.\").nullable().optional(),\n query: z.string().describe(\"The GROQ query that was executed.\").nullable().optional(),\n result: z.array(SanityQueryDocuments_SanityDocumentSchema).describe(\"Array of documents matching the query. Each document contains at minimum the Sanity system fields (_id, _type, _createdAt, _updatedAt, _rev) plus any additional fields from the query projection.\").nullable().optional(),\n}).describe(\"Response from querying documents.\");\n\nexport const sanityQueryDocuments = action(\"SANITY_QUERY_DOCUMENTS\", {\n slug: \"sanity-query-documents\",\n name: \"Query Documents\",\n description: \"Execute an arbitrary GROQ query against a Sanity dataset. GROQ is Sanity's query language for fetching and transforming content. This is a general-purpose query action distinct from any screening-specific tools. Use this action when you need to query documents from a Sanity dataset using custom GROQ queries. Supports optional parameters, perspective control, and CDN optimization.\",\n input: SanityQueryDocumentsInput,\n output: SanityQueryDocumentsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4GAA4G;CACvI,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,iLAAiL,CAAC,CAAC,SAAS;CAC1N,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,uIAAuI,CAAC,CAAC,SAAS;CAC/K,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E;CAC5G,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF;CACjH,aAAaA,IAAAA,EAAE,KAAK;EAAC;EAAa;EAAiB;CAAK,CAAC,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;AAC9I,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAM,4CAA4CA,IAAAA,EAAE,OAAO;CACzD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AACvE,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,QAAQA,IAAAA,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,oMAAoM,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChS,CAAC,CAAC,CAAC,SAAS,mCAAmC;AAE/C,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"query-documents.cjs","names":["z","action"],"sources":["../../src/actions/query-documents.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityQueryDocumentsInput = z.object({\n query: z.string().describe(\"The GROQ query string to execute. GROQ is Sanity's query language for fetching and transforming documents.\"),\n params: z.record(z.string(), z.unknown()).describe(\"Optional parameters for the GROQ query. Use $variableName syntax in the query string, then pass the values here (e.g., query='*[_type == $type]' with params={'type': 'post'}).\").optional(),\n useCdn: z.boolean().describe(\"Whether to use Sanity's CDN for faster response times. Recommended for read-heavy workloads with data that doesn't change frequently.\").optional(),\n dataset: z.string().describe(\"The dataset name to query within the project (e.g., 'production', 'staging').\"),\n project_id: z.string().describe(\"The Sanity project ID to query. This identifies which project's data to access.\"),\n perspective: z.enum([\"published\", \"previewDrafts\", \"raw\"]).describe(\"Perspective determines which version of documents to query.\").optional(),\n}).describe(\"Request parameters for querying documents with GROQ.\");\nconst SanityQueryDocuments_SanityDocumentSchema = z.object({\n _id: z.string().describe(\"The unique identifier of the document.\").nullable().optional(),\n _rev: z.string().describe(\"The document revision identifier.\").nullable().optional(),\n _type: z.string().describe(\"The document type/schema name.\").nullable().optional(),\n _createdAt: z.string().describe(\"ISO 8601 timestamp when the document was created.\").nullable().optional(),\n _updatedAt: z.string().describe(\"ISO 8601 timestamp when the document was last updated.\").nullable().optional(),\n}).passthrough().describe(\"A Sanity document returned by a GROQ query.\");\nexport const SanityQueryDocumentsOutput = z.object({\n ms: z.number().int().describe(\"Time taken to execute the query in milliseconds.\").nullable().optional(),\n query: z.string().describe(\"The GROQ query that was executed.\").nullable().optional(),\n result: z.array(SanityQueryDocuments_SanityDocumentSchema).describe(\"Array of documents matching the query. Each document contains at minimum the Sanity system fields (_id, _type, _createdAt, _updatedAt, _rev) plus any additional fields from the query projection.\").nullable().optional(),\n}).passthrough().describe(\"Response from querying documents.\");\n\nexport const sanityQueryDocuments = action(\"SANITY_QUERY_DOCUMENTS\", {\n slug: \"sanity-query-documents\",\n name: \"Query Documents\",\n description: \"Execute an arbitrary GROQ query against a Sanity dataset. GROQ is Sanity's query language for fetching and transforming content. This is a general-purpose query action distinct from any screening-specific tools. Use this action when you need to query documents from a Sanity dataset using custom GROQ queries. Supports optional parameters, perspective control, and CDN optimization.\",\n input: SanityQueryDocumentsInput,\n output: SanityQueryDocumentsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4GAA4G;CACvI,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,iLAAiL,CAAC,CAAC,SAAS;CAC/O,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,uIAAuI,CAAC,CAAC,SAAS;CAC/K,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E;CAC5G,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF;CACjH,aAAaA,IAAAA,EAAE,KAAK;EAAC;EAAa;EAAiB;CAAK,CAAC,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;AAC9I,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAM,4CAA4CA,IAAAA,EAAE,OAAO;CACzD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AACvE,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,QAAQA,IAAAA,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,oMAAoM,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChS,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mCAAmC;AAE7D,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -3,7 +3,7 @@ import { z } from "zod";
3
3
  //#region src/actions/query-documents.d.ts
4
4
  declare const SanityQueryDocumentsInput: z.ZodObject<{
5
5
  query: z.ZodString;
6
- params: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
6
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
7
7
  useCdn: z.ZodOptional<z.ZodBoolean>;
8
8
  dataset: z.ZodString;
9
9
  project_id: z.ZodString;
@@ -23,12 +23,12 @@ declare const SanityQueryDocumentsOutput: z.ZodObject<{
23
23
  _createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
24
  _updatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
25
  }, z.core.$loose>>>>;
26
- }, z.core.$strip>;
26
+ }, z.core.$loose>;
27
27
  declare const sanityQueryDocuments: import("@keystrokehq/action").WorkflowActionDefinition<{
28
28
  query: string;
29
29
  dataset: string;
30
30
  project_id: string;
31
- params?: Record<string, never> | undefined;
31
+ params?: Record<string, unknown> | undefined;
32
32
  useCdn?: boolean | undefined;
33
33
  perspective?: "published" | "previewDrafts" | "raw" | undefined;
34
34
  }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
@@ -3,7 +3,7 @@ import { z } from "zod";
3
3
  //#region src/actions/query-documents.d.ts
4
4
  declare const SanityQueryDocumentsInput: z.ZodObject<{
5
5
  query: z.ZodString;
6
- params: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
6
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
7
7
  useCdn: z.ZodOptional<z.ZodBoolean>;
8
8
  dataset: z.ZodString;
9
9
  project_id: z.ZodString;
@@ -23,12 +23,12 @@ declare const SanityQueryDocumentsOutput: z.ZodObject<{
23
23
  _createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
24
  _updatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
25
  }, z.core.$loose>>>>;
26
- }, z.core.$strip>;
26
+ }, z.core.$loose>;
27
27
  declare const sanityQueryDocuments: import("@keystrokehq/action").WorkflowActionDefinition<{
28
28
  query: string;
29
29
  dataset: string;
30
30
  project_id: string;
31
- params?: Record<string, never> | undefined;
31
+ params?: Record<string, unknown> | undefined;
32
32
  useCdn?: boolean | undefined;
33
33
  perspective?: "published" | "previewDrafts" | "raw" | undefined;
34
34
  }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
@@ -3,7 +3,7 @@ import { z } from "zod";
3
3
  //#region src/actions/query-documents.ts
4
4
  const SanityQueryDocumentsInput = z.object({
5
5
  query: z.string().describe("The GROQ query string to execute. GROQ is Sanity's query language for fetching and transforming documents."),
6
- params: z.object({}).describe("Optional parameters for the GROQ query. Use $variableName syntax in the query string, then pass the values here (e.g., query='*[_type == $type]' with params={'type': 'post'}).").optional(),
6
+ params: z.record(z.string(), z.unknown()).describe("Optional parameters for the GROQ query. Use $variableName syntax in the query string, then pass the values here (e.g., query='*[_type == $type]' with params={'type': 'post'}).").optional(),
7
7
  useCdn: z.boolean().describe("Whether to use Sanity's CDN for faster response times. Recommended for read-heavy workloads with data that doesn't change frequently.").optional(),
8
8
  dataset: z.string().describe("The dataset name to query within the project (e.g., 'production', 'staging')."),
9
9
  project_id: z.string().describe("The Sanity project ID to query. This identifies which project's data to access."),
@@ -29,7 +29,7 @@ const sanityQueryDocuments = action("SANITY_QUERY_DOCUMENTS", {
29
29
  ms: z.number().int().describe("Time taken to execute the query in milliseconds.").nullable().optional(),
30
30
  query: z.string().describe("The GROQ query that was executed.").nullable().optional(),
31
31
  result: z.array(SanityQueryDocuments_SanityDocumentSchema).describe("Array of documents matching the query. Each document contains at minimum the Sanity system fields (_id, _type, _createdAt, _updatedAt, _rev) plus any additional fields from the query projection.").nullable().optional()
32
- }).describe("Response from querying documents.")
32
+ }).passthrough().describe("Response from querying documents.")
33
33
  });
34
34
  //#endregion
35
35
  export { sanityQueryDocuments };
@@ -1 +1 @@
1
- {"version":3,"file":"query-documents.mjs","names":[],"sources":["../../src/actions/query-documents.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityQueryDocumentsInput = z.object({\n query: z.string().describe(\"The GROQ query string to execute. GROQ is Sanity's query language for fetching and transforming documents.\"),\n params: z.object({}).describe(\"Optional parameters for the GROQ query. Use $variableName syntax in the query string, then pass the values here (e.g., query='*[_type == $type]' with params={'type': 'post'}).\").optional(),\n useCdn: z.boolean().describe(\"Whether to use Sanity's CDN for faster response times. Recommended for read-heavy workloads with data that doesn't change frequently.\").optional(),\n dataset: z.string().describe(\"The dataset name to query within the project (e.g., 'production', 'staging').\"),\n project_id: z.string().describe(\"The Sanity project ID to query. This identifies which project's data to access.\"),\n perspective: z.enum([\"published\", \"previewDrafts\", \"raw\"]).describe(\"Perspective determines which version of documents to query.\").optional(),\n}).describe(\"Request parameters for querying documents with GROQ.\");\nconst SanityQueryDocuments_SanityDocumentSchema = z.object({\n _id: z.string().describe(\"The unique identifier of the document.\").nullable().optional(),\n _rev: z.string().describe(\"The document revision identifier.\").nullable().optional(),\n _type: z.string().describe(\"The document type/schema name.\").nullable().optional(),\n _createdAt: z.string().describe(\"ISO 8601 timestamp when the document was created.\").nullable().optional(),\n _updatedAt: z.string().describe(\"ISO 8601 timestamp when the document was last updated.\").nullable().optional(),\n}).passthrough().describe(\"A Sanity document returned by a GROQ query.\");\nexport const SanityQueryDocumentsOutput = z.object({\n ms: z.number().int().describe(\"Time taken to execute the query in milliseconds.\").nullable().optional(),\n query: z.string().describe(\"The GROQ query that was executed.\").nullable().optional(),\n result: z.array(SanityQueryDocuments_SanityDocumentSchema).describe(\"Array of documents matching the query. Each document contains at minimum the Sanity system fields (_id, _type, _createdAt, _updatedAt, _rev) plus any additional fields from the query projection.\").nullable().optional(),\n}).describe(\"Response from querying documents.\");\n\nexport const sanityQueryDocuments = action(\"SANITY_QUERY_DOCUMENTS\", {\n slug: \"sanity-query-documents\",\n name: \"Query Documents\",\n description: \"Execute an arbitrary GROQ query against a Sanity dataset. GROQ is Sanity's query language for fetching and transforming content. This is a general-purpose query action distinct from any screening-specific tools. Use this action when you need to query documents from a Sanity dataset using custom GROQ queries. Supports optional parameters, perspective control, and CDN optimization.\",\n input: SanityQueryDocumentsInput,\n output: SanityQueryDocumentsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4B,EAAE,OAAO;CAChD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4GAA4G;CACvI,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,iLAAiL,CAAC,CAAC,SAAS;CAC1N,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,uIAAuI,CAAC,CAAC,SAAS;CAC/K,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E;CAC5G,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF;CACjH,aAAa,EAAE,KAAK;EAAC;EAAa;EAAiB;CAAK,CAAC,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;AAC9I,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAM,4CAA4C,EAAE,OAAO;CACzD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AAOvE,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAXwC,EAAE,OAAO;EACjD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtG,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpF,QAAQ,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,oMAAoM,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChS,CAAC,CAAC,CAAC,SAAS,mCAOF;AACV,CAAC"}
1
+ {"version":3,"file":"query-documents.mjs","names":[],"sources":["../../src/actions/query-documents.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityQueryDocumentsInput = z.object({\n query: z.string().describe(\"The GROQ query string to execute. GROQ is Sanity's query language for fetching and transforming documents.\"),\n params: z.record(z.string(), z.unknown()).describe(\"Optional parameters for the GROQ query. Use $variableName syntax in the query string, then pass the values here (e.g., query='*[_type == $type]' with params={'type': 'post'}).\").optional(),\n useCdn: z.boolean().describe(\"Whether to use Sanity's CDN for faster response times. Recommended for read-heavy workloads with data that doesn't change frequently.\").optional(),\n dataset: z.string().describe(\"The dataset name to query within the project (e.g., 'production', 'staging').\"),\n project_id: z.string().describe(\"The Sanity project ID to query. This identifies which project's data to access.\"),\n perspective: z.enum([\"published\", \"previewDrafts\", \"raw\"]).describe(\"Perspective determines which version of documents to query.\").optional(),\n}).describe(\"Request parameters for querying documents with GROQ.\");\nconst SanityQueryDocuments_SanityDocumentSchema = z.object({\n _id: z.string().describe(\"The unique identifier of the document.\").nullable().optional(),\n _rev: z.string().describe(\"The document revision identifier.\").nullable().optional(),\n _type: z.string().describe(\"The document type/schema name.\").nullable().optional(),\n _createdAt: z.string().describe(\"ISO 8601 timestamp when the document was created.\").nullable().optional(),\n _updatedAt: z.string().describe(\"ISO 8601 timestamp when the document was last updated.\").nullable().optional(),\n}).passthrough().describe(\"A Sanity document returned by a GROQ query.\");\nexport const SanityQueryDocumentsOutput = z.object({\n ms: z.number().int().describe(\"Time taken to execute the query in milliseconds.\").nullable().optional(),\n query: z.string().describe(\"The GROQ query that was executed.\").nullable().optional(),\n result: z.array(SanityQueryDocuments_SanityDocumentSchema).describe(\"Array of documents matching the query. Each document contains at minimum the Sanity system fields (_id, _type, _createdAt, _updatedAt, _rev) plus any additional fields from the query projection.\").nullable().optional(),\n}).passthrough().describe(\"Response from querying documents.\");\n\nexport const sanityQueryDocuments = action(\"SANITY_QUERY_DOCUMENTS\", {\n slug: \"sanity-query-documents\",\n name: \"Query Documents\",\n description: \"Execute an arbitrary GROQ query against a Sanity dataset. GROQ is Sanity's query language for fetching and transforming content. This is a general-purpose query action distinct from any screening-specific tools. Use this action when you need to query documents from a Sanity dataset using custom GROQ queries. Supports optional parameters, perspective control, and CDN optimization.\",\n input: SanityQueryDocumentsInput,\n output: SanityQueryDocumentsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4B,EAAE,OAAO;CAChD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4GAA4G;CACvI,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,iLAAiL,CAAC,CAAC,SAAS;CAC/O,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,uIAAuI,CAAC,CAAC,SAAS;CAC/K,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E;CAC5G,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF;CACjH,aAAa,EAAE,KAAK;EAAC;EAAa;EAAiB;CAAK,CAAC,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;AAC9I,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAM,4CAA4C,EAAE,OAAO;CACzD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AAOvE,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAXwC,EAAE,OAAO;EACjD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtG,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpF,QAAQ,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,oMAAoM,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChS,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mCAOhB;AACV,CAAC"}
@@ -6,7 +6,7 @@ const SanityUpdateOrgAclInput = zod.z.object({
6
6
  sanity_user_id: zod.z.string().describe("The Sanity user ID to assign the role to"),
7
7
  organization_id: zod.z.string().describe("The ID of the organization")
8
8
  }).describe("Request model for updating organization ACL (assigning a role to a member).");
9
- const SanityUpdateOrgAclOutput = zod.z.object({ success: zod.z.boolean().describe("Whether the role was successfully assigned").nullable() }).describe("Response model for organization ACL update.");
9
+ const SanityUpdateOrgAclOutput = zod.z.object({ success: zod.z.boolean().describe("Whether the role was successfully assigned").nullable() }).passthrough().describe("Response model for organization ACL update.");
10
10
  const sanityUpdateOrgAcl = require_action.action("SANITY_UPDATE_ORG_ACL", {
11
11
  slug: "sanity-update-org-acl",
12
12
  name: "Update Organization ACL",
@@ -1 +1 @@
1
- {"version":3,"file":"update-org-acl.cjs","names":["z","action"],"sources":["../../src/actions/update-org-acl.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityUpdateOrgAclInput = z.object({\n role_name: z.string().describe(\"The role name to assign (e.g., 'administrator', 'member')\"),\n sanity_user_id: z.string().describe(\"The Sanity user ID to assign the role to\"),\n organization_id: z.string().describe(\"The ID of the organization\"),\n}).describe(\"Request model for updating organization ACL (assigning a role to a member).\");\nexport const SanityUpdateOrgAclOutput = z.object({\n success: z.boolean().describe(\"Whether the role was successfully assigned\").nullable(),\n}).describe(\"Response model for organization ACL update.\");\n\nexport const sanityUpdateOrgAcl = action(\"SANITY_UPDATE_ORG_ACL\", {\n slug: \"sanity-update-org-acl\",\n name: \"Update Organization ACL\",\n description: \"Tool to assign a role to a member in a Sanity organization. Use when adding or modifying user roles within an organization.\",\n input: SanityUpdateOrgAclInput,\n output: SanityUpdateOrgAclOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D;CAC1F,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;CAC9E,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;AACnE,CAAC,CAAC,CAAC,SAAS,6EAA6E;AACzF,MAAa,2BAA2BA,IAAAA,EAAE,OAAO,EAC/C,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,EACvF,CAAC,CAAC,CAAC,SAAS,6CAA6C;AAEzD,MAAa,qBAAqBC,eAAAA,OAAO,yBAAyB;CAChE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"update-org-acl.cjs","names":["z","action"],"sources":["../../src/actions/update-org-acl.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityUpdateOrgAclInput = z.object({\n role_name: z.string().describe(\"The role name to assign (e.g., 'administrator', 'member')\"),\n sanity_user_id: z.string().describe(\"The Sanity user ID to assign the role to\"),\n organization_id: z.string().describe(\"The ID of the organization\"),\n}).describe(\"Request model for updating organization ACL (assigning a role to a member).\");\nexport const SanityUpdateOrgAclOutput = z.object({\n success: z.boolean().describe(\"Whether the role was successfully assigned\").nullable(),\n}).passthrough().describe(\"Response model for organization ACL update.\");\n\nexport const sanityUpdateOrgAcl = action(\"SANITY_UPDATE_ORG_ACL\", {\n slug: \"sanity-update-org-acl\",\n name: \"Update Organization ACL\",\n description: \"Tool to assign a role to a member in a Sanity organization. Use when adding or modifying user roles within an organization.\",\n input: SanityUpdateOrgAclInput,\n output: SanityUpdateOrgAclOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D;CAC1F,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;CAC9E,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;AACnE,CAAC,CAAC,CAAC,SAAS,6EAA6E;AACzF,MAAa,2BAA2BA,IAAAA,EAAE,OAAO,EAC/C,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,EACvF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AAEvE,MAAa,qBAAqBC,eAAAA,OAAO,yBAAyB;CAChE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -8,7 +8,7 @@ declare const SanityUpdateOrgAclInput: z.ZodObject<{
8
8
  }, z.core.$strip>;
9
9
  declare const SanityUpdateOrgAclOutput: z.ZodObject<{
10
10
  success: z.ZodNullable<z.ZodBoolean>;
11
- }, z.core.$strip>;
11
+ }, z.core.$loose>;
12
12
  declare const sanityUpdateOrgAcl: import("@keystrokehq/action").WorkflowActionDefinition<{
13
13
  role_name: string;
14
14
  sanity_user_id: string;
@@ -8,7 +8,7 @@ declare const SanityUpdateOrgAclInput: z.ZodObject<{
8
8
  }, z.core.$strip>;
9
9
  declare const SanityUpdateOrgAclOutput: z.ZodObject<{
10
10
  success: z.ZodNullable<z.ZodBoolean>;
11
- }, z.core.$strip>;
11
+ }, z.core.$loose>;
12
12
  declare const sanityUpdateOrgAcl: import("@keystrokehq/action").WorkflowActionDefinition<{
13
13
  role_name: string;
14
14
  sanity_user_id: string;
@@ -9,7 +9,7 @@ const sanityUpdateOrgAcl = action("SANITY_UPDATE_ORG_ACL", {
9
9
  sanity_user_id: z.string().describe("The Sanity user ID to assign the role to"),
10
10
  organization_id: z.string().describe("The ID of the organization")
11
11
  }).describe("Request model for updating organization ACL (assigning a role to a member)."),
12
- output: z.object({ success: z.boolean().describe("Whether the role was successfully assigned").nullable() }).describe("Response model for organization ACL update.")
12
+ output: z.object({ success: z.boolean().describe("Whether the role was successfully assigned").nullable() }).passthrough().describe("Response model for organization ACL update.")
13
13
  });
14
14
  //#endregion
15
15
  export { sanityUpdateOrgAcl };
@@ -1 +1 @@
1
- {"version":3,"file":"update-org-acl.mjs","names":[],"sources":["../../src/actions/update-org-acl.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityUpdateOrgAclInput = z.object({\n role_name: z.string().describe(\"The role name to assign (e.g., 'administrator', 'member')\"),\n sanity_user_id: z.string().describe(\"The Sanity user ID to assign the role to\"),\n organization_id: z.string().describe(\"The ID of the organization\"),\n}).describe(\"Request model for updating organization ACL (assigning a role to a member).\");\nexport const SanityUpdateOrgAclOutput = z.object({\n success: z.boolean().describe(\"Whether the role was successfully assigned\").nullable(),\n}).describe(\"Response model for organization ACL update.\");\n\nexport const sanityUpdateOrgAcl = action(\"SANITY_UPDATE_ORG_ACL\", {\n slug: \"sanity-update-org-acl\",\n name: \"Update Organization ACL\",\n description: \"Tool to assign a role to a member in a Sanity organization. Use when adding or modifying user roles within an organization.\",\n input: SanityUpdateOrgAclInput,\n output: SanityUpdateOrgAclOutput,\n});\n"],"mappings":";;AAaA,MAAa,qBAAqB,OAAO,yBAAyB;CAChE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAbqC,EAAE,OAAO;EAC9C,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D;EAC1F,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;EAC9E,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;CACnE,CAAC,CAAC,CAAC,SAAS,6EASH;CACP,QATsC,EAAE,OAAO,EAC/C,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,EACvF,CAAC,CAAC,CAAC,SAAS,6CAOF;AACV,CAAC"}
1
+ {"version":3,"file":"update-org-acl.mjs","names":[],"sources":["../../src/actions/update-org-acl.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityUpdateOrgAclInput = z.object({\n role_name: z.string().describe(\"The role name to assign (e.g., 'administrator', 'member')\"),\n sanity_user_id: z.string().describe(\"The Sanity user ID to assign the role to\"),\n organization_id: z.string().describe(\"The ID of the organization\"),\n}).describe(\"Request model for updating organization ACL (assigning a role to a member).\");\nexport const SanityUpdateOrgAclOutput = z.object({\n success: z.boolean().describe(\"Whether the role was successfully assigned\").nullable(),\n}).passthrough().describe(\"Response model for organization ACL update.\");\n\nexport const sanityUpdateOrgAcl = action(\"SANITY_UPDATE_ORG_ACL\", {\n slug: \"sanity-update-org-acl\",\n name: \"Update Organization ACL\",\n description: \"Tool to assign a role to a member in a Sanity organization. Use when adding or modifying user roles within an organization.\",\n input: SanityUpdateOrgAclInput,\n output: SanityUpdateOrgAclOutput,\n});\n"],"mappings":";;AAaA,MAAa,qBAAqB,OAAO,yBAAyB;CAChE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAbqC,EAAE,OAAO;EAC9C,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D;EAC1F,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;EAC9E,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;CACnE,CAAC,CAAC,CAAC,SAAS,6EASH;CACP,QATsC,EAAE,OAAO,EAC/C,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,EACvF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAOhB;AACV,CAAC"}
@@ -3,7 +3,7 @@ let zod = require("zod");
3
3
  //#region src/actions/update-user-attributes-values.ts
4
4
  const SanityUpdateUserAttributesValuesInput = zod.z.object({
5
5
  userId: zod.z.string().describe("The unique identifier of the user whose attributes to update."),
6
- attributes: zod.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: zod.z.record(zod.z.string(), zod.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: zod.z.string().describe("The unique identifier of the resource. For organizations, this is the organization ID."),
8
8
  resourceType: zod.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.");
@@ -11,16 +11,16 @@ const SanityUpdateUserAttributesValues_JsonValueSchema = zod.z.unknown();
11
11
  const SanityUpdateUserAttributesValues_UserAttributeSchema = zod.z.object({
12
12
  key: zod.z.string().describe("The attribute key.").nullable(),
13
13
  type: zod.z.string().describe("The attribute type (e.g., 'string', 'integer', 'boolean').").nullable(),
14
- values: zod.z.object({}).describe("The attribute values from different sources (e.g., {'sanity': 'value', 'saml': 'value'}).").nullable().optional(),
14
+ values: zod.z.record(zod.z.string(), zod.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: zod.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 SanityUpdateUserAttributesValuesOutput = zod.z.object({
19
19
  updatedAt: zod.z.string().describe("ISO 8601 timestamp of when the attributes were updated.").nullable().optional(),
20
20
  attributes: zod.z.array(SanityUpdateUserAttributesValues_UserAttributeSchema).describe("The updated list of user attributes.").nullable().optional(),
21
21
  sanityUserId: zod.z.string().describe("The Sanity user ID.").nullable(),
22
22
  organizationId: zod.z.string().describe("The unique identifier of the organization.").nullable()
23
- }).describe("Response model for user attribute values update.");
23
+ }).passthrough().describe("Response model for user attribute values update.");
24
24
  const sanityUpdateUserAttributesValues = require_action.action("SANITY_UPDATE_USER_ATTRIBUTES_VALUES", {
25
25
  slug: "sanity-update-user-attributes-values",
26
26
  name: "Update User Attributes Values",
@@ -1 +1 @@
1
- {"version":3,"file":"update-user-attributes-values.cjs","names":["z","action"],"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.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.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.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.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}).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,wCAAwCA,IAAAA,EAAE,OAAO;CAC5D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D;CAC3F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,0LAA0L;CAC5N,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF;CACxH,cAAcA,IAAAA,EAAE,KAAK,CAAC,gBAAgB,SAAS,CAAC,CAAC,CAAC,SAAS,2FAA2F;AACxJ,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAM,mDAAmDA,IAAAA,EAAE,QAAQ;AACnE,MAAM,uDAAuDA,IAAAA,EAAE,OAAO;CACpE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CACxD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACjG,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/I,aAAa,iDAAiD,SAAS,CAAC,CAAC,SAAS;CAClF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3H,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACtE,MAAa,yCAAyCA,IAAAA,EAAE,OAAO;CAC7D,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9G,YAAYA,IAAAA,EAAE,MAAM,oDAAoD,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/I,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAClE,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;AAC7F,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAE9D,MAAa,mCAAmCC,eAAAA,OAAO,wCAAwC;CAC7F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"update-user-attributes-values.cjs","names":["z","action"],"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,wCAAwCA,IAAAA,EAAE,OAAO;CAC5D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D;CAC3F,YAAYA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0LAA0L;CACjP,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF;CACxH,cAAcA,IAAAA,EAAE,KAAK,CAAC,gBAAgB,SAAS,CAAC,CAAC,CAAC,SAAS,2FAA2F;AACxJ,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAM,mDAAmDA,IAAAA,EAAE,QAAQ;AACnE,MAAM,uDAAuDA,IAAAA,EAAE,OAAO;CACpE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CACxD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACjG,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpK,aAAa,iDAAiD,SAAS,CAAC,CAAC,SAAS;CAClF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0DAA0D;AACpF,MAAa,yCAAyCA,IAAAA,EAAE,OAAO;CAC7D,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9G,YAAYA,IAAAA,EAAE,MAAM,oDAAoD,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/I,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAClE,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;AAC7F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAAkD;AAE5E,MAAa,mCAAmCC,eAAAA,OAAO,wCAAwC;CAC7F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -3,7 +3,7 @@ import { z } from "zod";
3
3
  //#region src/actions/update-user-attributes-values.d.ts
4
4
  declare const SanityUpdateUserAttributesValuesInput: z.ZodObject<{
5
5
  userId: z.ZodString;
6
- attributes: z.ZodObject<{}, z.core.$strip>;
6
+ attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
7
7
  resourceId: z.ZodString;
8
8
  resourceType: z.ZodEnum<{
9
9
  organization: "organization";
@@ -15,16 +15,16 @@ declare const SanityUpdateUserAttributesValuesOutput: z.ZodObject<{
15
15
  attributes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
16
16
  key: z.ZodNullable<z.ZodString>;
17
17
  type: z.ZodNullable<z.ZodString>;
18
- values: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
18
+ values: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
19
19
  activeValue: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
20
20
  activeSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
- }, z.core.$strip>>>>;
21
+ }, z.core.$loose>>>>;
22
22
  sanityUserId: z.ZodNullable<z.ZodString>;
23
23
  organizationId: z.ZodNullable<z.ZodString>;
24
- }, z.core.$strip>;
24
+ }, z.core.$loose>;
25
25
  declare const sanityUpdateUserAttributesValues: import("@keystrokehq/action").WorkflowActionDefinition<{
26
26
  userId: string;
27
- attributes: Record<string, never>;
27
+ attributes: Record<string, unknown>;
28
28
  resourceId: string;
29
29
  resourceType: "organization" | "project";
30
30
  }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
@@ -3,7 +3,7 @@ import { z } from "zod";
3
3
  //#region src/actions/update-user-attributes-values.d.ts
4
4
  declare const SanityUpdateUserAttributesValuesInput: z.ZodObject<{
5
5
  userId: z.ZodString;
6
- attributes: z.ZodObject<{}, z.core.$strip>;
6
+ attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
7
7
  resourceId: z.ZodString;
8
8
  resourceType: z.ZodEnum<{
9
9
  organization: "organization";
@@ -15,16 +15,16 @@ declare const SanityUpdateUserAttributesValuesOutput: z.ZodObject<{
15
15
  attributes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
16
16
  key: z.ZodNullable<z.ZodString>;
17
17
  type: z.ZodNullable<z.ZodString>;
18
- values: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
18
+ values: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
19
19
  activeValue: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
20
20
  activeSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
- }, z.core.$strip>>>>;
21
+ }, z.core.$loose>>>>;
22
22
  sanityUserId: z.ZodNullable<z.ZodString>;
23
23
  organizationId: z.ZodNullable<z.ZodString>;
24
- }, z.core.$strip>;
24
+ }, z.core.$loose>;
25
25
  declare const sanityUpdateUserAttributesValues: import("@keystrokehq/action").WorkflowActionDefinition<{
26
26
  userId: string;
27
- attributes: Record<string, never>;
27
+ attributes: Record<string, unknown>;
28
28
  resourceId: string;
29
29
  resourceType: "organization" | "project";
30
30
  }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
@@ -3,7 +3,7 @@ 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.");
@@ -11,10 +11,10 @@ const SanityUpdateUserAttributesValues_JsonValueSchema = z.unknown();
11
11
  const SanityUpdateUserAttributesValues_UserAttributeSchema = z.object({
12
12
  key: z.string().describe("The attribute key.").nullable(),
13
13
  type: z.string().describe("The attribute type (e.g., 'string', 'integer', 'boolean').").nullable(),
14
- values: z.object({}).describe("The attribute values from different sources (e.g., {'sanity': 'value', 'saml': 'value'}).").nullable().optional(),
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",
@@ -25,7 +25,7 @@ const sanityUpdateUserAttributesValues = action("SANITY_UPDATE_USER_ATTRIBUTES_V
25
25
  attributes: z.array(SanityUpdateUserAttributesValues_UserAttributeSchema).describe("The updated list of user attributes.").nullable().optional(),
26
26
  sanityUserId: z.string().describe("The Sanity user ID.").nullable(),
27
27
  organizationId: z.string().describe("The unique identifier of the organization.").nullable()
28
- }).describe("Response model for user attribute values update.")
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.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.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.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.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}).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,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,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,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,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,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
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",