@keystrokehq/sanity 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (127) hide show
  1. package/dist/actions/add-default-role-to-users.cjs +1 -1
  2. package/dist/actions/add-default-role-to-users.cjs.map +1 -1
  3. package/dist/actions/add-default-role-to-users.d.cts +1 -1
  4. package/dist/actions/add-default-role-to-users.d.mts +1 -1
  5. package/dist/actions/add-default-role-to-users.mjs +1 -1
  6. package/dist/actions/add-default-role-to-users.mjs.map +1 -1
  7. package/dist/actions/create-attr-definition.cjs +1 -1
  8. package/dist/actions/create-attr-definition.cjs.map +1 -1
  9. package/dist/actions/create-attr-definition.d.cts +1 -1
  10. package/dist/actions/create-attr-definition.d.mts +1 -1
  11. package/dist/actions/create-attr-definition.mjs +1 -1
  12. package/dist/actions/create-attr-definition.mjs.map +1 -1
  13. package/dist/actions/create-prompt-post.cjs +2 -2
  14. package/dist/actions/create-prompt-post.cjs.map +1 -1
  15. package/dist/actions/create-prompt-post.d.cts +2 -2
  16. package/dist/actions/create-prompt-post.d.mts +2 -2
  17. package/dist/actions/create-prompt-post.mjs +2 -2
  18. package/dist/actions/create-prompt-post.mjs.map +1 -1
  19. package/dist/actions/delete-attr-definition.cjs +1 -1
  20. package/dist/actions/delete-attr-definition.cjs.map +1 -1
  21. package/dist/actions/delete-attr-definition.d.cts +1 -1
  22. package/dist/actions/delete-attr-definition.d.mts +1 -1
  23. package/dist/actions/delete-attr-definition.mjs +1 -1
  24. package/dist/actions/delete-attr-definition.mjs.map +1 -1
  25. package/dist/actions/delete-document.cjs +1 -1
  26. package/dist/actions/delete-document.cjs.map +1 -1
  27. package/dist/actions/delete-document.d.cts +1 -1
  28. package/dist/actions/delete-document.d.mts +1 -1
  29. package/dist/actions/delete-document.mjs +1 -1
  30. package/dist/actions/delete-document.mjs.map +1 -1
  31. package/dist/actions/delete-user-attributes.cjs +3 -3
  32. package/dist/actions/delete-user-attributes.cjs.map +1 -1
  33. package/dist/actions/delete-user-attributes.d.cts +4 -3
  34. package/dist/actions/delete-user-attributes.d.mts +4 -3
  35. package/dist/actions/delete-user-attributes.mjs +3 -3
  36. package/dist/actions/delete-user-attributes.mjs.map +1 -1
  37. package/dist/actions/get-document.cjs +2 -2
  38. package/dist/actions/get-document.cjs.map +1 -1
  39. package/dist/actions/get-document.d.cts +2 -2
  40. package/dist/actions/get-document.d.mts +2 -2
  41. package/dist/actions/get-document.mjs +2 -2
  42. package/dist/actions/get-document.mjs.map +1 -1
  43. package/dist/actions/get-invite-by-token.cjs +1 -1
  44. package/dist/actions/get-invite-by-token.cjs.map +1 -1
  45. package/dist/actions/get-invite-by-token.d.cts +1 -1
  46. package/dist/actions/get-invite-by-token.d.mts +1 -1
  47. package/dist/actions/get-invite-by-token.mjs +1 -1
  48. package/dist/actions/get-invite-by-token.mjs.map +1 -1
  49. package/dist/actions/get-org-role.cjs +3 -3
  50. package/dist/actions/get-org-role.cjs.map +1 -1
  51. package/dist/actions/get-org-role.d.cts +3 -3
  52. package/dist/actions/get-org-role.d.mts +3 -3
  53. package/dist/actions/get-org-role.mjs +3 -3
  54. package/dist/actions/get-org-role.mjs.map +1 -1
  55. package/dist/actions/get-permission.cjs +2 -2
  56. package/dist/actions/get-permission.cjs.map +1 -1
  57. package/dist/actions/get-permission.d.cts +2 -2
  58. package/dist/actions/get-permission.d.mts +2 -2
  59. package/dist/actions/get-permission.mjs +2 -2
  60. package/dist/actions/get-permission.mjs.map +1 -1
  61. package/dist/actions/get-project.cjs +5 -5
  62. package/dist/actions/get-project.cjs.map +1 -1
  63. package/dist/actions/get-project.d.cts +5 -5
  64. package/dist/actions/get-project.d.mts +5 -5
  65. package/dist/actions/get-project.mjs +5 -5
  66. package/dist/actions/get-project.mjs.map +1 -1
  67. package/dist/actions/get-robots.cjs +3 -3
  68. package/dist/actions/get-robots.cjs.map +1 -1
  69. package/dist/actions/get-robots.d.cts +3 -3
  70. package/dist/actions/get-robots.d.mts +3 -3
  71. package/dist/actions/get-robots.mjs +3 -3
  72. package/dist/actions/get-robots.mjs.map +1 -1
  73. package/dist/actions/get-role.cjs +2 -2
  74. package/dist/actions/get-role.cjs.map +1 -1
  75. package/dist/actions/get-role.d.cts +2 -2
  76. package/dist/actions/get-role.d.mts +2 -2
  77. package/dist/actions/get-role.mjs +2 -2
  78. package/dist/actions/get-role.mjs.map +1 -1
  79. package/dist/actions/get-users.cjs +3 -3
  80. package/dist/actions/get-users.cjs.map +1 -1
  81. package/dist/actions/get-users.d.cts +3 -3
  82. package/dist/actions/get-users.d.mts +3 -3
  83. package/dist/actions/get-users.mjs +3 -3
  84. package/dist/actions/get-users.mjs.map +1 -1
  85. package/dist/actions/list-org-roles.cjs +3 -3
  86. package/dist/actions/list-org-roles.cjs.map +1 -1
  87. package/dist/actions/list-org-roles.d.cts +3 -3
  88. package/dist/actions/list-org-roles.d.mts +3 -3
  89. package/dist/actions/list-org-roles.mjs +3 -3
  90. package/dist/actions/list-org-roles.mjs.map +1 -1
  91. package/dist/actions/list-user-attributes.cjs +2 -2
  92. package/dist/actions/list-user-attributes.cjs.map +1 -1
  93. package/dist/actions/list-user-attributes.d.cts +2 -2
  94. package/dist/actions/list-user-attributes.d.mts +2 -2
  95. package/dist/actions/list-user-attributes.mjs +2 -2
  96. package/dist/actions/list-user-attributes.mjs.map +1 -1
  97. package/dist/actions/query-all-screening.cjs +1 -1
  98. package/dist/actions/query-all-screening.cjs.map +1 -1
  99. package/dist/actions/query-all-screening.d.cts +1 -1
  100. package/dist/actions/query-all-screening.d.mts +1 -1
  101. package/dist/actions/query-all-screening.mjs +1 -1
  102. package/dist/actions/query-all-screening.mjs.map +1 -1
  103. package/dist/actions/query-documents.cjs +2 -2
  104. package/dist/actions/query-documents.cjs.map +1 -1
  105. package/dist/actions/query-documents.d.cts +3 -3
  106. package/dist/actions/query-documents.d.mts +3 -3
  107. package/dist/actions/query-documents.mjs +2 -2
  108. package/dist/actions/query-documents.mjs.map +1 -1
  109. package/dist/actions/update-org-acl.cjs +1 -1
  110. package/dist/actions/update-org-acl.cjs.map +1 -1
  111. package/dist/actions/update-org-acl.d.cts +1 -1
  112. package/dist/actions/update-org-acl.d.mts +1 -1
  113. package/dist/actions/update-org-acl.mjs +1 -1
  114. package/dist/actions/update-org-acl.mjs.map +1 -1
  115. package/dist/actions/update-user-attributes-values.cjs +4 -4
  116. package/dist/actions/update-user-attributes-values.cjs.map +1 -1
  117. package/dist/actions/update-user-attributes-values.d.cts +5 -5
  118. package/dist/actions/update-user-attributes-values.d.mts +5 -5
  119. package/dist/actions/update-user-attributes-values.mjs +4 -4
  120. package/dist/actions/update-user-attributes-values.mjs.map +1 -1
  121. package/dist/actions/validate-credential.cjs +3 -3
  122. package/dist/actions/validate-credential.cjs.map +1 -1
  123. package/dist/actions/validate-credential.d.cts +3 -3
  124. package/dist/actions/validate-credential.d.mts +3 -3
  125. package/dist/actions/validate-credential.mjs +3 -3
  126. package/dist/actions/validate-credential.mjs.map +1 -1
  127. package/package.json +1 -1
@@ -5,7 +5,7 @@ const SanityAddDefaultRoleToUsersInput = zod.z.object({ resource_id: zod.z.strin
5
5
  const SanityAddDefaultRoleToUsersOutput = zod.z.object({
6
6
  message: zod.z.string().describe("Response message describing the result").nullable().optional(),
7
7
  success: zod.z.boolean().describe("Indicates whether the operation was successful").nullable().optional()
8
- }).describe("Response schema for the add default role to users action.");
8
+ }).passthrough().describe("Response schema for the add default role to users action.");
9
9
  const sanityAddDefaultRoleToUsers = require_action.action("SANITY_ADD_DEFAULT_ROLE_TO_USERS", {
10
10
  slug: "sanity-add-default-role-to-users",
11
11
  name: "Add Default Role to Users",
@@ -1 +1 @@
1
- {"version":3,"file":"add-default-role-to-users.cjs","names":["z","action"],"sources":["../../src/actions/add-default-role-to-users.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityAddDefaultRoleToUsersInput = z.object({\n resource_id: z.string().describe(\"The resource ID to scope the access request to. Must be a valid ID for the resource type.\"),\n});\nexport const SanityAddDefaultRoleToUsersOutput = z.object({\n message: z.string().describe(\"Response message describing the result\").nullable().optional(),\n success: z.boolean().describe(\"Indicates whether the operation was successful\").nullable().optional(),\n}).describe(\"Response schema for the add default role to users action.\");\n\nexport const sanityAddDefaultRoleToUsers = action(\"SANITY_ADD_DEFAULT_ROLE_TO_USERS\", {\n slug: \"sanity-add-default-role-to-users\",\n name: \"Add Default Role to Users\",\n description: \"Apply organization default role to all users. Use when you need to assign the organization's default role to all existing users in the organization. Requires the resource ID of the organization.\",\n input: SanityAddDefaultRoleToUsersInput,\n output: SanityAddDefaultRoleToUsersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmCA,IAAAA,EAAE,OAAO,EACvD,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2FAA2F,EAC9H,CAAC;AACD,MAAa,oCAAoCA,IAAAA,EAAE,OAAO;CACxD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,SAAS,2DAA2D;AAEvE,MAAa,8BAA8BC,eAAAA,OAAO,oCAAoC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"add-default-role-to-users.cjs","names":["z","action"],"sources":["../../src/actions/add-default-role-to-users.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityAddDefaultRoleToUsersInput = z.object({\n resource_id: z.string().describe(\"The resource ID to scope the access request to. Must be a valid ID for the resource type.\"),\n});\nexport const SanityAddDefaultRoleToUsersOutput = z.object({\n message: z.string().describe(\"Response message describing the result\").nullable().optional(),\n success: z.boolean().describe(\"Indicates whether the operation was successful\").nullable().optional(),\n}).passthrough().describe(\"Response schema for the add default role to users action.\");\n\nexport const sanityAddDefaultRoleToUsers = action(\"SANITY_ADD_DEFAULT_ROLE_TO_USERS\", {\n slug: \"sanity-add-default-role-to-users\",\n name: \"Add Default Role to Users\",\n description: \"Apply organization default role to all users. Use when you need to assign the organization's default role to all existing users in the organization. Requires the resource ID of the organization.\",\n input: SanityAddDefaultRoleToUsersInput,\n output: SanityAddDefaultRoleToUsersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmCA,IAAAA,EAAE,OAAO,EACvD,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2FAA2F,EAC9H,CAAC;AACD,MAAa,oCAAoCA,IAAAA,EAAE,OAAO;CACxD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2DAA2D;AAErF,MAAa,8BAA8BC,eAAAA,OAAO,oCAAoC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -7,7 +7,7 @@ declare const SanityAddDefaultRoleToUsersInput: z.ZodObject<{
7
7
  declare const SanityAddDefaultRoleToUsersOutput: z.ZodObject<{
8
8
  message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
9
  success: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
10
- }, z.core.$strip>;
10
+ }, z.core.$loose>;
11
11
  declare const sanityAddDefaultRoleToUsers: import("@keystrokehq/action").WorkflowActionDefinition<{
12
12
  resource_id: string;
13
13
  }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
@@ -7,7 +7,7 @@ declare const SanityAddDefaultRoleToUsersInput: z.ZodObject<{
7
7
  declare const SanityAddDefaultRoleToUsersOutput: z.ZodObject<{
8
8
  message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
9
  success: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
10
- }, z.core.$strip>;
10
+ }, z.core.$loose>;
11
11
  declare const sanityAddDefaultRoleToUsers: import("@keystrokehq/action").WorkflowActionDefinition<{
12
12
  resource_id: string;
13
13
  }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
@@ -8,7 +8,7 @@ const sanityAddDefaultRoleToUsers = action("SANITY_ADD_DEFAULT_ROLE_TO_USERS", {
8
8
  output: z.object({
9
9
  message: z.string().describe("Response message describing the result").nullable().optional(),
10
10
  success: z.boolean().describe("Indicates whether the operation was successful").nullable().optional()
11
- }).describe("Response schema for the add default role to users action.")
11
+ }).passthrough().describe("Response schema for the add default role to users action.")
12
12
  });
13
13
  //#endregion
14
14
  export { sanityAddDefaultRoleToUsers };
@@ -1 +1 @@
1
- {"version":3,"file":"add-default-role-to-users.mjs","names":[],"sources":["../../src/actions/add-default-role-to-users.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityAddDefaultRoleToUsersInput = z.object({\n resource_id: z.string().describe(\"The resource ID to scope the access request to. Must be a valid ID for the resource type.\"),\n});\nexport const SanityAddDefaultRoleToUsersOutput = z.object({\n message: z.string().describe(\"Response message describing the result\").nullable().optional(),\n success: z.boolean().describe(\"Indicates whether the operation was successful\").nullable().optional(),\n}).describe(\"Response schema for the add default role to users action.\");\n\nexport const sanityAddDefaultRoleToUsers = action(\"SANITY_ADD_DEFAULT_ROLE_TO_USERS\", {\n slug: \"sanity-add-default-role-to-users\",\n name: \"Add Default Role to Users\",\n description: \"Apply organization default role to all users. Use when you need to assign the organization's default role to all existing users in the organization. Requires the resource ID of the organization.\",\n input: SanityAddDefaultRoleToUsersInput,\n output: SanityAddDefaultRoleToUsersOutput,\n});\n"],"mappings":";;AAYA,MAAa,8BAA8B,OAAO,oCAAoC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZ8C,EAAE,OAAO,EACvD,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,2FAA2F,EAC9H,CAUS;CACP,QAV+C,EAAE,OAAO;EACxD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3F,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,CAAC,CAAC,CAAC,SAAS,2DAOF;AACV,CAAC"}
1
+ {"version":3,"file":"add-default-role-to-users.mjs","names":[],"sources":["../../src/actions/add-default-role-to-users.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityAddDefaultRoleToUsersInput = z.object({\n resource_id: z.string().describe(\"The resource ID to scope the access request to. Must be a valid ID for the resource type.\"),\n});\nexport const SanityAddDefaultRoleToUsersOutput = z.object({\n message: z.string().describe(\"Response message describing the result\").nullable().optional(),\n success: z.boolean().describe(\"Indicates whether the operation was successful\").nullable().optional(),\n}).passthrough().describe(\"Response schema for the add default role to users action.\");\n\nexport const sanityAddDefaultRoleToUsers = action(\"SANITY_ADD_DEFAULT_ROLE_TO_USERS\", {\n slug: \"sanity-add-default-role-to-users\",\n name: \"Add Default Role to Users\",\n description: \"Apply organization default role to all users. Use when you need to assign the organization's default role to all existing users in the organization. Requires the resource ID of the organization.\",\n input: SanityAddDefaultRoleToUsersInput,\n output: SanityAddDefaultRoleToUsersOutput,\n});\n"],"mappings":";;AAYA,MAAa,8BAA8B,OAAO,oCAAoC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZ8C,EAAE,OAAO,EACvD,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,2FAA2F,EAC9H,CAUS;CACP,QAV+C,EAAE,OAAO;EACxD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3F,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2DAOhB;AACV,CAAC"}
@@ -23,7 +23,7 @@ const SanityCreateAttrDefinitionOutput = zod.z.object({
23
23
  created_at: zod.z.string().describe("ISO 8601 timestamp when the attribute was created.").nullable().optional(),
24
24
  updated_at: zod.z.string().describe("ISO 8601 timestamp when the attribute was last updated.").nullable().optional(),
25
25
  description: zod.z.string().describe("Description of the attribute definition.").nullable().optional()
26
- }).describe("Response model for created user attribute definition.");
26
+ }).passthrough().describe("Response model for created user attribute definition.");
27
27
  const sanityCreateAttrDefinition = require_action.action("SANITY_CREATE_ATTR_DEFINITION", {
28
28
  slug: "sanity-create-attr-definition",
29
29
  name: "Create Attribute Definition",
@@ -1 +1 @@
1
- {"version":3,"file":"create-attr-definition.cjs","names":["z","action"],"sources":["../../src/actions/create-attr-definition.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityCreateAttrDefinitionInput = z.object({\n key: z.string().describe(\"The unique key/name for the attribute definition. This must be unique within the resource.\"),\n list: z.boolean().describe(\"When true, the attribute accepts an array of values. When false or omitted, it accepts a single value.\").optional(),\n type: z.enum([\"string\", \"number\", \"boolean\"]).describe(\"The data type of the attribute. Must be one of: 'string', 'number', 'boolean'.\"),\n read_only: z.boolean().describe(\"When true, the attribute value cannot be modified after creation. Defaults to false.\").optional(),\n description: z.string().describe(\"An optional description explaining what this attribute is used for.\").optional(),\n resource_id: z.string().describe(\"The unique identifier of the specific resource (e.g., organization ID, project ID).\"),\n resource_type: z.string().describe(\"The type of resource the attribute definition belongs to. Examples: 'organizations', 'projects', 'datasets'.\"),\n}).describe(\"Request model for creating a user attribute definition in Sanity.\");\nexport const SanityCreateAttrDefinitionOutput = z.object({\n id: z.string().describe(\"The unique identifier for the created attribute definition.\").nullable().optional(),\n key: z.string().describe(\"The unique key/name of the attribute definition.\").nullable().optional(),\n list: z.boolean().describe(\"Whether the attribute accepts an array of values.\").nullable().optional(),\n type: z.string().describe(\"The data type of the attribute (e.g., 'string', 'number', 'boolean').\").nullable().optional(),\n read_only: z.boolean().describe(\"Whether the attribute is read-only.\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp when the attribute was created.\").nullable().optional(),\n updated_at: z.string().describe(\"ISO 8601 timestamp when the attribute was last updated.\").nullable().optional(),\n description: z.string().describe(\"Description of the attribute definition.\").nullable().optional(),\n}).describe(\"Response model for created user attribute definition.\");\n\nexport const sanityCreateAttrDefinition = action(\"SANITY_CREATE_ATTR_DEFINITION\", {\n slug: \"sanity-create-attr-definition\",\n name: \"Create Attribute Definition\",\n description: \"Tool to create a new user attribute definition in Sanity. Use when you need to define a custom attribute (like 'customer-tier' or 'subscription-level') that can be attached to resources. The key must be unique within the resource. The attribute can have a type of 'string', 'number', or 'boolean' and can optionally be a list of values or read-only.\",\n input: SanityCreateAttrDefinitionInput,\n output: SanityCreateAttrDefinitionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4FAA4F;CACrH,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,wGAAwG,CAAC,CAAC,SAAS;CAC9I,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAU;EAAU;CAAS,CAAC,CAAC,CAAC,SAAS,gFAAgF;CACvI,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS;CACjI,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CACjH,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF;CACtH,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8GAA8G;AACnJ,CAAC,CAAC,CAAC,SAAS,mEAAmE;AAC/E,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3G,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvH,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/G,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnG,CAAC,CAAC,CAAC,SAAS,uDAAuD;AAEnE,MAAa,6BAA6BC,eAAAA,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-attr-definition.cjs","names":["z","action"],"sources":["../../src/actions/create-attr-definition.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityCreateAttrDefinitionInput = z.object({\n key: z.string().describe(\"The unique key/name for the attribute definition. This must be unique within the resource.\"),\n list: z.boolean().describe(\"When true, the attribute accepts an array of values. When false or omitted, it accepts a single value.\").optional(),\n type: z.enum([\"string\", \"number\", \"boolean\"]).describe(\"The data type of the attribute. Must be one of: 'string', 'number', 'boolean'.\"),\n read_only: z.boolean().describe(\"When true, the attribute value cannot be modified after creation. Defaults to false.\").optional(),\n description: z.string().describe(\"An optional description explaining what this attribute is used for.\").optional(),\n resource_id: z.string().describe(\"The unique identifier of the specific resource (e.g., organization ID, project ID).\"),\n resource_type: z.string().describe(\"The type of resource the attribute definition belongs to. Examples: 'organizations', 'projects', 'datasets'.\"),\n}).describe(\"Request model for creating a user attribute definition in Sanity.\");\nexport const SanityCreateAttrDefinitionOutput = z.object({\n id: z.string().describe(\"The unique identifier for the created attribute definition.\").nullable().optional(),\n key: z.string().describe(\"The unique key/name of the attribute definition.\").nullable().optional(),\n list: z.boolean().describe(\"Whether the attribute accepts an array of values.\").nullable().optional(),\n type: z.string().describe(\"The data type of the attribute (e.g., 'string', 'number', 'boolean').\").nullable().optional(),\n read_only: z.boolean().describe(\"Whether the attribute is read-only.\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp when the attribute was created.\").nullable().optional(),\n updated_at: z.string().describe(\"ISO 8601 timestamp when the attribute was last updated.\").nullable().optional(),\n description: z.string().describe(\"Description of the attribute definition.\").nullable().optional(),\n}).passthrough().describe(\"Response model for created user attribute definition.\");\n\nexport const sanityCreateAttrDefinition = action(\"SANITY_CREATE_ATTR_DEFINITION\", {\n slug: \"sanity-create-attr-definition\",\n name: \"Create Attribute Definition\",\n description: \"Tool to create a new user attribute definition in Sanity. Use when you need to define a custom attribute (like 'customer-tier' or 'subscription-level') that can be attached to resources. The key must be unique within the resource. The attribute can have a type of 'string', 'number', or 'boolean' and can optionally be a list of values or read-only.\",\n input: SanityCreateAttrDefinitionInput,\n output: SanityCreateAttrDefinitionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4FAA4F;CACrH,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,wGAAwG,CAAC,CAAC,SAAS;CAC9I,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAU;EAAU;CAAS,CAAC,CAAC,CAAC,SAAS,gFAAgF;CACvI,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS;CACjI,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CACjH,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF;CACtH,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8GAA8G;AACnJ,CAAC,CAAC,CAAC,SAAS,mEAAmE;AAC/E,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3G,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvH,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/G,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAAuD;AAEjF,MAAa,6BAA6BC,eAAAA,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -23,7 +23,7 @@ declare const SanityCreateAttrDefinitionOutput: z.ZodObject<{
23
23
  created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
24
  updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
25
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
- }, z.core.$strip>;
26
+ }, z.core.$loose>;
27
27
  declare const sanityCreateAttrDefinition: import("@keystrokehq/action").WorkflowActionDefinition<{
28
28
  key: string;
29
29
  type: "string" | "number" | "boolean";
@@ -23,7 +23,7 @@ declare const SanityCreateAttrDefinitionOutput: z.ZodObject<{
23
23
  created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
24
  updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
25
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
- }, z.core.$strip>;
26
+ }, z.core.$loose>;
27
27
  declare const sanityCreateAttrDefinition: import("@keystrokehq/action").WorkflowActionDefinition<{
28
28
  key: string;
29
29
  type: "string" | "number" | "boolean";
@@ -26,7 +26,7 @@ const sanityCreateAttrDefinition = action("SANITY_CREATE_ATTR_DEFINITION", {
26
26
  created_at: z.string().describe("ISO 8601 timestamp when the attribute was created.").nullable().optional(),
27
27
  updated_at: z.string().describe("ISO 8601 timestamp when the attribute was last updated.").nullable().optional(),
28
28
  description: z.string().describe("Description of the attribute definition.").nullable().optional()
29
- }).describe("Response model for created user attribute definition.")
29
+ }).passthrough().describe("Response model for created user attribute definition.")
30
30
  });
31
31
  //#endregion
32
32
  export { sanityCreateAttrDefinition };
@@ -1 +1 @@
1
- {"version":3,"file":"create-attr-definition.mjs","names":[],"sources":["../../src/actions/create-attr-definition.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityCreateAttrDefinitionInput = z.object({\n key: z.string().describe(\"The unique key/name for the attribute definition. This must be unique within the resource.\"),\n list: z.boolean().describe(\"When true, the attribute accepts an array of values. When false or omitted, it accepts a single value.\").optional(),\n type: z.enum([\"string\", \"number\", \"boolean\"]).describe(\"The data type of the attribute. Must be one of: 'string', 'number', 'boolean'.\"),\n read_only: z.boolean().describe(\"When true, the attribute value cannot be modified after creation. Defaults to false.\").optional(),\n description: z.string().describe(\"An optional description explaining what this attribute is used for.\").optional(),\n resource_id: z.string().describe(\"The unique identifier of the specific resource (e.g., organization ID, project ID).\"),\n resource_type: z.string().describe(\"The type of resource the attribute definition belongs to. Examples: 'organizations', 'projects', 'datasets'.\"),\n}).describe(\"Request model for creating a user attribute definition in Sanity.\");\nexport const SanityCreateAttrDefinitionOutput = z.object({\n id: z.string().describe(\"The unique identifier for the created attribute definition.\").nullable().optional(),\n key: z.string().describe(\"The unique key/name of the attribute definition.\").nullable().optional(),\n list: z.boolean().describe(\"Whether the attribute accepts an array of values.\").nullable().optional(),\n type: z.string().describe(\"The data type of the attribute (e.g., 'string', 'number', 'boolean').\").nullable().optional(),\n read_only: z.boolean().describe(\"Whether the attribute is read-only.\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp when the attribute was created.\").nullable().optional(),\n updated_at: z.string().describe(\"ISO 8601 timestamp when the attribute was last updated.\").nullable().optional(),\n description: z.string().describe(\"Description of the attribute definition.\").nullable().optional(),\n}).describe(\"Response model for created user attribute definition.\");\n\nexport const sanityCreateAttrDefinition = action(\"SANITY_CREATE_ATTR_DEFINITION\", {\n slug: \"sanity-create-attr-definition\",\n name: \"Create Attribute Definition\",\n description: \"Tool to create a new user attribute definition in Sanity. Use when you need to define a custom attribute (like 'customer-tier' or 'subscription-level') that can be attached to resources. The key must be unique within the resource. The attribute can have a type of 'string', 'number', or 'boolean' and can optionally be a list of values or read-only.\",\n input: SanityCreateAttrDefinitionInput,\n output: SanityCreateAttrDefinitionOutput,\n});\n"],"mappings":";;AAwBA,MAAa,6BAA6B,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAxB6C,EAAE,OAAO;EACtD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,4FAA4F;EACrH,MAAM,EAAE,QAAQ,CAAC,CAAC,SAAS,wGAAwG,CAAC,CAAC,SAAS;EAC9I,MAAM,EAAE,KAAK;GAAC;GAAU;GAAU;EAAS,CAAC,CAAC,CAAC,SAAS,gFAAgF;EACvI,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS;EACjI,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;EACjH,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF;EACtH,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,8GAA8G;CACnJ,CAAC,CAAC,CAAC,SAAS,mEAgBH;CACP,QAhB8C,EAAE,OAAO;EACvD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3G,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjG,MAAM,EAAE,QAAQ,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpG,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvH,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1G,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/G,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,CAAC,CAAC,CAAC,SAAS,uDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"create-attr-definition.mjs","names":[],"sources":["../../src/actions/create-attr-definition.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityCreateAttrDefinitionInput = z.object({\n key: z.string().describe(\"The unique key/name for the attribute definition. This must be unique within the resource.\"),\n list: z.boolean().describe(\"When true, the attribute accepts an array of values. When false or omitted, it accepts a single value.\").optional(),\n type: z.enum([\"string\", \"number\", \"boolean\"]).describe(\"The data type of the attribute. Must be one of: 'string', 'number', 'boolean'.\"),\n read_only: z.boolean().describe(\"When true, the attribute value cannot be modified after creation. Defaults to false.\").optional(),\n description: z.string().describe(\"An optional description explaining what this attribute is used for.\").optional(),\n resource_id: z.string().describe(\"The unique identifier of the specific resource (e.g., organization ID, project ID).\"),\n resource_type: z.string().describe(\"The type of resource the attribute definition belongs to. Examples: 'organizations', 'projects', 'datasets'.\"),\n}).describe(\"Request model for creating a user attribute definition in Sanity.\");\nexport const SanityCreateAttrDefinitionOutput = z.object({\n id: z.string().describe(\"The unique identifier for the created attribute definition.\").nullable().optional(),\n key: z.string().describe(\"The unique key/name of the attribute definition.\").nullable().optional(),\n list: z.boolean().describe(\"Whether the attribute accepts an array of values.\").nullable().optional(),\n type: z.string().describe(\"The data type of the attribute (e.g., 'string', 'number', 'boolean').\").nullable().optional(),\n read_only: z.boolean().describe(\"Whether the attribute is read-only.\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp when the attribute was created.\").nullable().optional(),\n updated_at: z.string().describe(\"ISO 8601 timestamp when the attribute was last updated.\").nullable().optional(),\n description: z.string().describe(\"Description of the attribute definition.\").nullable().optional(),\n}).passthrough().describe(\"Response model for created user attribute definition.\");\n\nexport const sanityCreateAttrDefinition = action(\"SANITY_CREATE_ATTR_DEFINITION\", {\n slug: \"sanity-create-attr-definition\",\n name: \"Create Attribute Definition\",\n description: \"Tool to create a new user attribute definition in Sanity. Use when you need to define a custom attribute (like 'customer-tier' or 'subscription-level') that can be attached to resources. The key must be unique within the resource. The attribute can have a type of 'string', 'number', or 'boolean' and can optionally be a list of values or read-only.\",\n input: SanityCreateAttrDefinitionInput,\n output: SanityCreateAttrDefinitionOutput,\n});\n"],"mappings":";;AAwBA,MAAa,6BAA6B,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAxB6C,EAAE,OAAO;EACtD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,4FAA4F;EACrH,MAAM,EAAE,QAAQ,CAAC,CAAC,SAAS,wGAAwG,CAAC,CAAC,SAAS;EAC9I,MAAM,EAAE,KAAK;GAAC;GAAU;GAAU;EAAS,CAAC,CAAC,CAAC,SAAS,gFAAgF;EACvI,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS;EACjI,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;EACjH,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF;EACtH,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,8GAA8G;CACnJ,CAAC,CAAC,CAAC,SAAS,mEAgBH;CACP,QAhB8C,EAAE,OAAO;EACvD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3G,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjG,MAAM,EAAE,QAAQ,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpG,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvH,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1G,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/G,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAOhB;AACV,CAAC"}
@@ -10,10 +10,10 @@ const SanityCreatePromptPostInput = zod.z.object({
10
10
  }).describe("Request model for sending a one-shot prompt to the Sanity Content Agent.\nStateless endpoint - no thread management or message persistence.\nIdeal for simple, single-turn interactions.");
11
11
  const SanityCreatePromptPostOutput = zod.z.object({
12
12
  text: zod.z.string().describe("The text content of the agent's response.").nullable().optional(),
13
- usage: zod.z.object({}).describe("Token usage statistics for the request.").nullable().optional(),
13
+ usage: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Token usage statistics for the request.").nullable().optional(),
14
14
  finishReason: zod.z.string().describe("The reason the model stopped generating (e.g., 'stop', 'length').").nullable().optional(),
15
15
  raw_response: zod.z.string().describe("The raw response data from the API.").nullable().optional()
16
- }).describe("Response model for the prompt endpoint.");
16
+ }).passthrough().describe("Response model for the prompt endpoint.");
17
17
  const sanityCreatePromptPost = require_action.action("SANITY_CREATE_PROMPT_POST", {
18
18
  slug: "sanity-create-prompt-post",
19
19
  name: "Create Prompt Post",
@@ -1 +1 @@
1
- {"version":3,"file":"create-prompt-post.cjs","names":["z","action"],"sources":["../../src/actions/create-prompt-post.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityCreatePromptPostInput = z.object({\n config: z.record(z.string(), z.unknown()).describe(\"Agent configuration. Controls behavior, capabilities, and document access.\").optional(),\n format: z.enum([\"markdown\", \"directives\"]).default(\"markdown\").describe(\"Controls how directives in the response are formatted.\").optional(),\n message: z.string().describe(\"The prompt message to send to the agent\"),\n instructions: z.string().describe(\"Custom instructions for the agent\").optional(),\n organizationId: z.string().describe(\"Your Sanity organization ID\"),\n}).describe(\"Request model for sending a one-shot prompt to the Sanity Content Agent.\\nStateless endpoint - no thread management or message persistence.\\nIdeal for simple, single-turn interactions.\");\nexport const SanityCreatePromptPostOutput = z.object({\n text: z.string().describe(\"The text content of the agent's response.\").nullable().optional(),\n usage: z.object({}).describe(\"Token usage statistics for the request.\").nullable().optional(),\n finishReason: z.string().describe(\"The reason the model stopped generating (e.g., 'stop', 'length').\").nullable().optional(),\n raw_response: z.string().describe(\"The raw response data from the API.\").nullable().optional(),\n}).describe(\"Response model for the prompt endpoint.\");\n\nexport const sanityCreatePromptPost = action(\"SANITY_CREATE_PROMPT_POST\", {\n slug: \"sanity-create-prompt-post\",\n name: \"Create Prompt Post\",\n description: \"Send a one-shot prompt to the Sanity Content Agent. Stateless one-shot prompt endpoint. No thread management or message persistence. Ideal for simple, single-turn interactions. Use when you need to send a single prompt and receive a response without maintaining conversation context.\",\n input: SanityCreatePromptPostInput,\n output: SanityCreatePromptPostOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;CAC1I,QAAQA,IAAAA,EAAE,KAAK,CAAC,YAAY,YAAY,CAAC,CAAC,CAAC,QAAQ,UAAU,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CAC3I,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;CACtE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAChF,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;AACnE,CAAC,CAAC,CAAC,SAAS,0LAA0L;AACtM,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3H,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,SAAS,yCAAyC;AAErD,MAAa,yBAAyBC,eAAAA,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-prompt-post.cjs","names":["z","action"],"sources":["../../src/actions/create-prompt-post.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityCreatePromptPostInput = z.object({\n config: z.record(z.string(), z.unknown()).describe(\"Agent configuration. Controls behavior, capabilities, and document access.\").optional(),\n format: z.enum([\"markdown\", \"directives\"]).default(\"markdown\").describe(\"Controls how directives in the response are formatted.\").optional(),\n message: z.string().describe(\"The prompt message to send to the agent\"),\n instructions: z.string().describe(\"Custom instructions for the agent\").optional(),\n organizationId: z.string().describe(\"Your Sanity organization ID\"),\n}).describe(\"Request model for sending a one-shot prompt to the Sanity Content Agent.\\nStateless endpoint - no thread management or message persistence.\\nIdeal for simple, single-turn interactions.\");\nexport const SanityCreatePromptPostOutput = z.object({\n text: z.string().describe(\"The text content of the agent's response.\").nullable().optional(),\n usage: z.record(z.string(), z.unknown()).describe(\"Token usage statistics for the request.\").nullable().optional(),\n finishReason: z.string().describe(\"The reason the model stopped generating (e.g., 'stop', 'length').\").nullable().optional(),\n raw_response: z.string().describe(\"The raw response data from the API.\").nullable().optional(),\n}).passthrough().describe(\"Response model for the prompt endpoint.\");\n\nexport const sanityCreatePromptPost = action(\"SANITY_CREATE_PROMPT_POST\", {\n slug: \"sanity-create-prompt-post\",\n name: \"Create Prompt Post\",\n description: \"Send a one-shot prompt to the Sanity Content Agent. Stateless one-shot prompt endpoint. No thread management or message persistence. Ideal for simple, single-turn interactions. Use when you need to send a single prompt and receive a response without maintaining conversation context.\",\n input: SanityCreatePromptPostInput,\n output: SanityCreatePromptPostOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;CAC1I,QAAQA,IAAAA,EAAE,KAAK,CAAC,YAAY,YAAY,CAAC,CAAC,CAAC,QAAQ,UAAU,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CAC3I,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;CACtE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAChF,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;AACnE,CAAC,CAAC,CAAC,SAAS,0LAA0L;AACtM,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,OAAOA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjH,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3H,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AAEnE,MAAa,yBAAyBC,eAAAA,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -13,10 +13,10 @@ declare const SanityCreatePromptPostInput: z.ZodObject<{
13
13
  }, z.core.$strip>;
14
14
  declare const SanityCreatePromptPostOutput: z.ZodObject<{
15
15
  text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
- usage: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
16
+ usage: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
17
17
  finishReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
18
  raw_response: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
- }, z.core.$strip>;
19
+ }, z.core.$loose>;
20
20
  declare const sanityCreatePromptPost: import("@keystrokehq/action").WorkflowActionDefinition<{
21
21
  message: string;
22
22
  organizationId: string;
@@ -13,10 +13,10 @@ declare const SanityCreatePromptPostInput: z.ZodObject<{
13
13
  }, z.core.$strip>;
14
14
  declare const SanityCreatePromptPostOutput: z.ZodObject<{
15
15
  text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
- usage: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
16
+ usage: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
17
17
  finishReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
18
  raw_response: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
- }, z.core.$strip>;
19
+ }, z.core.$loose>;
20
20
  declare const sanityCreatePromptPost: import("@keystrokehq/action").WorkflowActionDefinition<{
21
21
  message: string;
22
22
  organizationId: string;
@@ -13,10 +13,10 @@ const sanityCreatePromptPost = action("SANITY_CREATE_PROMPT_POST", {
13
13
  }).describe("Request model for sending a one-shot prompt to the Sanity Content Agent.\nStateless endpoint - no thread management or message persistence.\nIdeal for simple, single-turn interactions."),
14
14
  output: z.object({
15
15
  text: z.string().describe("The text content of the agent's response.").nullable().optional(),
16
- usage: z.object({}).describe("Token usage statistics for the request.").nullable().optional(),
16
+ usage: z.record(z.string(), z.unknown()).describe("Token usage statistics for the request.").nullable().optional(),
17
17
  finishReason: z.string().describe("The reason the model stopped generating (e.g., 'stop', 'length').").nullable().optional(),
18
18
  raw_response: z.string().describe("The raw response data from the API.").nullable().optional()
19
- }).describe("Response model for the prompt endpoint.")
19
+ }).passthrough().describe("Response model for the prompt endpoint.")
20
20
  });
21
21
  //#endregion
22
22
  export { sanityCreatePromptPost };
@@ -1 +1 @@
1
- {"version":3,"file":"create-prompt-post.mjs","names":[],"sources":["../../src/actions/create-prompt-post.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityCreatePromptPostInput = z.object({\n config: z.record(z.string(), z.unknown()).describe(\"Agent configuration. Controls behavior, capabilities, and document access.\").optional(),\n format: z.enum([\"markdown\", \"directives\"]).default(\"markdown\").describe(\"Controls how directives in the response are formatted.\").optional(),\n message: z.string().describe(\"The prompt message to send to the agent\"),\n instructions: z.string().describe(\"Custom instructions for the agent\").optional(),\n organizationId: z.string().describe(\"Your Sanity organization ID\"),\n}).describe(\"Request model for sending a one-shot prompt to the Sanity Content Agent.\\nStateless endpoint - no thread management or message persistence.\\nIdeal for simple, single-turn interactions.\");\nexport const SanityCreatePromptPostOutput = z.object({\n text: z.string().describe(\"The text content of the agent's response.\").nullable().optional(),\n usage: z.object({}).describe(\"Token usage statistics for the request.\").nullable().optional(),\n finishReason: z.string().describe(\"The reason the model stopped generating (e.g., 'stop', 'length').\").nullable().optional(),\n raw_response: z.string().describe(\"The raw response data from the API.\").nullable().optional(),\n}).describe(\"Response model for the prompt endpoint.\");\n\nexport const sanityCreatePromptPost = action(\"SANITY_CREATE_PROMPT_POST\", {\n slug: \"sanity-create-prompt-post\",\n name: \"Create Prompt Post\",\n description: \"Send a one-shot prompt to the Sanity Content Agent. Stateless one-shot prompt endpoint. No thread management or message persistence. Ideal for simple, single-turn interactions. Use when you need to send a single prompt and receive a response without maintaining conversation context.\",\n input: SanityCreatePromptPostInput,\n output: SanityCreatePromptPostOutput,\n});\n"],"mappings":";;AAkBA,MAAa,yBAAyB,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAlByC,EAAE,OAAO;EAClD,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;EAC1I,QAAQ,EAAE,KAAK,CAAC,YAAY,YAAY,CAAC,CAAC,CAAC,QAAQ,UAAU,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;EAC3I,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;EACtE,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EAChF,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;CACnE,CAAC,CAAC,CAAC,SAAS,0LAYH;CACP,QAZ0C,EAAE,OAAO;EACnD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3F,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5F,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3H,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,CAAC,CAAC,CAAC,SAAS,yCAOF;AACV,CAAC"}
1
+ {"version":3,"file":"create-prompt-post.mjs","names":[],"sources":["../../src/actions/create-prompt-post.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityCreatePromptPostInput = z.object({\n config: z.record(z.string(), z.unknown()).describe(\"Agent configuration. Controls behavior, capabilities, and document access.\").optional(),\n format: z.enum([\"markdown\", \"directives\"]).default(\"markdown\").describe(\"Controls how directives in the response are formatted.\").optional(),\n message: z.string().describe(\"The prompt message to send to the agent\"),\n instructions: z.string().describe(\"Custom instructions for the agent\").optional(),\n organizationId: z.string().describe(\"Your Sanity organization ID\"),\n}).describe(\"Request model for sending a one-shot prompt to the Sanity Content Agent.\\nStateless endpoint - no thread management or message persistence.\\nIdeal for simple, single-turn interactions.\");\nexport const SanityCreatePromptPostOutput = z.object({\n text: z.string().describe(\"The text content of the agent's response.\").nullable().optional(),\n usage: z.record(z.string(), z.unknown()).describe(\"Token usage statistics for the request.\").nullable().optional(),\n finishReason: z.string().describe(\"The reason the model stopped generating (e.g., 'stop', 'length').\").nullable().optional(),\n raw_response: z.string().describe(\"The raw response data from the API.\").nullable().optional(),\n}).passthrough().describe(\"Response model for the prompt endpoint.\");\n\nexport const sanityCreatePromptPost = action(\"SANITY_CREATE_PROMPT_POST\", {\n slug: \"sanity-create-prompt-post\",\n name: \"Create Prompt Post\",\n description: \"Send a one-shot prompt to the Sanity Content Agent. Stateless one-shot prompt endpoint. No thread management or message persistence. Ideal for simple, single-turn interactions. Use when you need to send a single prompt and receive a response without maintaining conversation context.\",\n input: SanityCreatePromptPostInput,\n output: SanityCreatePromptPostOutput,\n});\n"],"mappings":";;AAkBA,MAAa,yBAAyB,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAlByC,EAAE,OAAO;EAClD,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;EAC1I,QAAQ,EAAE,KAAK,CAAC,YAAY,YAAY,CAAC,CAAC,CAAC,QAAQ,UAAU,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;EAC3I,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;EACtE,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EAChF,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;CACnE,CAAC,CAAC,CAAC,SAAS,0LAYH;CACP,QAZ0C,EAAE,OAAO;EACnD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3F,OAAO,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjH,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3H,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAOhB;AACV,CAAC"}
@@ -6,7 +6,7 @@ const SanityDeleteAttrDefinitionInput = zod.z.object({
6
6
  definition_id: zod.z.string().describe("The unique identifier of the attribute definition to delete."),
7
7
  resource_type: zod.z.enum(["organization", "project"]).describe("The type of resource to scope the user attribute definitions to. Common values: 'organization' or 'project'.")
8
8
  });
9
- const SanityDeleteAttrDefinitionOutput = zod.z.object({ deleted: zod.z.boolean().describe("Whether the attribute definition was successfully deleted.").nullable() }).describe("Response schema for deleting an attribute definition.");
9
+ const SanityDeleteAttrDefinitionOutput = zod.z.object({ deleted: zod.z.boolean().describe("Whether the attribute definition was successfully deleted.").nullable() }).passthrough().describe("Response schema for deleting an attribute definition.");
10
10
  const sanityDeleteAttrDefinition = require_action.action("SANITY_DELETE_ATTR_DEFINITION", {
11
11
  slug: "sanity-delete-attr-definition",
12
12
  name: "Delete User Attribute Definition",
@@ -1 +1 @@
1
- {"version":3,"file":"delete-attr-definition.cjs","names":["z","action"],"sources":["../../src/actions/delete-attr-definition.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityDeleteAttrDefinitionInput = z.object({\n resource_id: z.string().describe(\"The unique identifier of the resource. For organizations, this is typically like 'oN7sjLEfL'. For projects, this is the project ID.\"),\n definition_id: z.string().describe(\"The unique identifier of the attribute definition to delete.\"),\n resource_type: z.enum([\"organization\", \"project\"]).describe(\"The type of resource to scope the user attribute definitions to. Common values: 'organization' or 'project'.\"),\n});\nexport const SanityDeleteAttrDefinitionOutput = z.object({\n deleted: z.boolean().describe(\"Whether the attribute definition was successfully deleted.\").nullable(),\n}).describe(\"Response schema for deleting an attribute definition.\");\n\nexport const sanityDeleteAttrDefinition = action(\"SANITY_DELETE_ATTR_DEFINITION\", {\n slug: \"sanity-delete-attr-definition\",\n name: \"Delete User Attribute Definition\",\n description: \"Delete a user attribute definition. Use when you need to remove a custom attribute definition from an organization or project in Sanity. The attribute definition controls how user attributes are structured and validated for a given resource. Deleting a definition does not delete existing user attribute values, but users will no longer be able to set values for that attribute.\",\n input: SanityDeleteAttrDefinitionInput,\n output: SanityDeleteAttrDefinitionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qIAAqI;CACtK,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D;CACjG,eAAeA,IAAAA,EAAE,KAAK,CAAC,gBAAgB,SAAS,CAAC,CAAC,CAAC,SAAS,8GAA8G;AAC5K,CAAC;AACD,MAAa,mCAAmCA,IAAAA,EAAE,OAAO,EACvD,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,EACvG,CAAC,CAAC,CAAC,SAAS,uDAAuD;AAEnE,MAAa,6BAA6BC,eAAAA,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"delete-attr-definition.cjs","names":["z","action"],"sources":["../../src/actions/delete-attr-definition.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityDeleteAttrDefinitionInput = z.object({\n resource_id: z.string().describe(\"The unique identifier of the resource. For organizations, this is typically like 'oN7sjLEfL'. For projects, this is the project ID.\"),\n definition_id: z.string().describe(\"The unique identifier of the attribute definition to delete.\"),\n resource_type: z.enum([\"organization\", \"project\"]).describe(\"The type of resource to scope the user attribute definitions to. Common values: 'organization' or 'project'.\"),\n});\nexport const SanityDeleteAttrDefinitionOutput = z.object({\n deleted: z.boolean().describe(\"Whether the attribute definition was successfully deleted.\").nullable(),\n}).passthrough().describe(\"Response schema for deleting an attribute definition.\");\n\nexport const sanityDeleteAttrDefinition = action(\"SANITY_DELETE_ATTR_DEFINITION\", {\n slug: \"sanity-delete-attr-definition\",\n name: \"Delete User Attribute Definition\",\n description: \"Delete a user attribute definition. Use when you need to remove a custom attribute definition from an organization or project in Sanity. The attribute definition controls how user attributes are structured and validated for a given resource. Deleting a definition does not delete existing user attribute values, but users will no longer be able to set values for that attribute.\",\n input: SanityDeleteAttrDefinitionInput,\n output: SanityDeleteAttrDefinitionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qIAAqI;CACtK,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D;CACjG,eAAeA,IAAAA,EAAE,KAAK,CAAC,gBAAgB,SAAS,CAAC,CAAC,CAAC,SAAS,8GAA8G;AAC5K,CAAC;AACD,MAAa,mCAAmCA,IAAAA,EAAE,OAAO,EACvD,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,EACvG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAAuD;AAEjF,MAAa,6BAA6BC,eAAAA,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -11,7 +11,7 @@ declare const SanityDeleteAttrDefinitionInput: z.ZodObject<{
11
11
  }, z.core.$strip>;
12
12
  declare const SanityDeleteAttrDefinitionOutput: z.ZodObject<{
13
13
  deleted: z.ZodNullable<z.ZodBoolean>;
14
- }, z.core.$strip>;
14
+ }, z.core.$loose>;
15
15
  declare const sanityDeleteAttrDefinition: import("@keystrokehq/action").WorkflowActionDefinition<{
16
16
  resource_id: string;
17
17
  definition_id: string;
@@ -11,7 +11,7 @@ declare const SanityDeleteAttrDefinitionInput: z.ZodObject<{
11
11
  }, z.core.$strip>;
12
12
  declare const SanityDeleteAttrDefinitionOutput: z.ZodObject<{
13
13
  deleted: z.ZodNullable<z.ZodBoolean>;
14
- }, z.core.$strip>;
14
+ }, z.core.$loose>;
15
15
  declare const sanityDeleteAttrDefinition: import("@keystrokehq/action").WorkflowActionDefinition<{
16
16
  resource_id: string;
17
17
  definition_id: string;
@@ -9,7 +9,7 @@ const sanityDeleteAttrDefinition = action("SANITY_DELETE_ATTR_DEFINITION", {
9
9
  definition_id: z.string().describe("The unique identifier of the attribute definition to delete."),
10
10
  resource_type: z.enum(["organization", "project"]).describe("The type of resource to scope the user attribute definitions to. Common values: 'organization' or 'project'.")
11
11
  }),
12
- output: z.object({ deleted: z.boolean().describe("Whether the attribute definition was successfully deleted.").nullable() }).describe("Response schema for deleting an attribute definition.")
12
+ output: z.object({ deleted: z.boolean().describe("Whether the attribute definition was successfully deleted.").nullable() }).passthrough().describe("Response schema for deleting an attribute definition.")
13
13
  });
14
14
  //#endregion
15
15
  export { sanityDeleteAttrDefinition };
@@ -1 +1 @@
1
- {"version":3,"file":"delete-attr-definition.mjs","names":[],"sources":["../../src/actions/delete-attr-definition.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityDeleteAttrDefinitionInput = z.object({\n resource_id: z.string().describe(\"The unique identifier of the resource. For organizations, this is typically like 'oN7sjLEfL'. For projects, this is the project ID.\"),\n definition_id: z.string().describe(\"The unique identifier of the attribute definition to delete.\"),\n resource_type: z.enum([\"organization\", \"project\"]).describe(\"The type of resource to scope the user attribute definitions to. Common values: 'organization' or 'project'.\"),\n});\nexport const SanityDeleteAttrDefinitionOutput = z.object({\n deleted: z.boolean().describe(\"Whether the attribute definition was successfully deleted.\").nullable(),\n}).describe(\"Response schema for deleting an attribute definition.\");\n\nexport const sanityDeleteAttrDefinition = action(\"SANITY_DELETE_ATTR_DEFINITION\", {\n slug: \"sanity-delete-attr-definition\",\n name: \"Delete User Attribute Definition\",\n description: \"Delete a user attribute definition. Use when you need to remove a custom attribute definition from an organization or project in Sanity. The attribute definition controls how user attributes are structured and validated for a given resource. Deleting a definition does not delete existing user attribute values, but users will no longer be able to set values for that attribute.\",\n input: SanityDeleteAttrDefinitionInput,\n output: SanityDeleteAttrDefinitionOutput,\n});\n"],"mappings":";;AAaA,MAAa,6BAA6B,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAb6C,EAAE,OAAO;EACtD,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qIAAqI;EACtK,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D;EACjG,eAAe,EAAE,KAAK,CAAC,gBAAgB,SAAS,CAAC,CAAC,CAAC,SAAS,8GAA8G;CAC5K,CASS;CACP,QAT8C,EAAE,OAAO,EACvD,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,EACvG,CAAC,CAAC,CAAC,SAAS,uDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"delete-attr-definition.mjs","names":[],"sources":["../../src/actions/delete-attr-definition.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityDeleteAttrDefinitionInput = z.object({\n resource_id: z.string().describe(\"The unique identifier of the resource. For organizations, this is typically like 'oN7sjLEfL'. For projects, this is the project ID.\"),\n definition_id: z.string().describe(\"The unique identifier of the attribute definition to delete.\"),\n resource_type: z.enum([\"organization\", \"project\"]).describe(\"The type of resource to scope the user attribute definitions to. Common values: 'organization' or 'project'.\"),\n});\nexport const SanityDeleteAttrDefinitionOutput = z.object({\n deleted: z.boolean().describe(\"Whether the attribute definition was successfully deleted.\").nullable(),\n}).passthrough().describe(\"Response schema for deleting an attribute definition.\");\n\nexport const sanityDeleteAttrDefinition = action(\"SANITY_DELETE_ATTR_DEFINITION\", {\n slug: \"sanity-delete-attr-definition\",\n name: \"Delete User Attribute Definition\",\n description: \"Delete a user attribute definition. Use when you need to remove a custom attribute definition from an organization or project in Sanity. The attribute definition controls how user attributes are structured and validated for a given resource. Deleting a definition does not delete existing user attribute values, but users will no longer be able to set values for that attribute.\",\n input: SanityDeleteAttrDefinitionInput,\n output: SanityDeleteAttrDefinitionOutput,\n});\n"],"mappings":";;AAaA,MAAa,6BAA6B,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAb6C,EAAE,OAAO;EACtD,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qIAAqI;EACtK,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D;EACjG,eAAe,EAAE,KAAK,CAAC,gBAAgB,SAAS,CAAC,CAAC,CAAC,SAAS,8GAA8G;CAC5K,CASS;CACP,QAT8C,EAAE,OAAO,EACvD,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,EACvG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAOhB;AACV,CAAC"}
@@ -16,7 +16,7 @@ const SanityDeleteDocumentOutput = zod.z.object({
16
16
  results: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("List of full document objects that were deleted. Only present if return_documents was true.").nullable().optional(),
17
17
  documentIds: zod.z.array(zod.z.string()).describe("List of document IDs that were deleted. Only present if return_ids was true.").nullable().optional(),
18
18
  transactionId: zod.z.string().describe("Unique identifier for this mutation transaction.").nullable().optional()
19
- }).describe("Response model for the delete document operation.");
19
+ }).passthrough().describe("Response model for the delete document operation.");
20
20
  const sanityDeleteDocument = require_action.action("SANITY_DELETE_DOCUMENT", {
21
21
  slug: "sanity-delete-document",
22
22
  name: "Delete Document",
@@ -1 +1 @@
1
- {"version":3,"file":"delete-document.cjs","names":["z","action"],"sources":["../../src/actions/delete-document.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityDeleteDocumentInput = z.object({\n purge: z.boolean().describe(\"If true, permanently removes the document from the history. If false or omitted, the document is soft-deleted and can be recovered.\").optional(),\n query: z.string().describe(\"GROQ query string to select documents for deletion. Query-based deletions are limited to 10,000 documents. Either document_id or query must be provided, not both.\").optional(),\n params: z.record(z.string(), z.unknown()).describe(\"Optional parameters for the GROQ query when using query-based deletion. Use $variableName syntax in the query.\").optional(),\n dataset: z.string().describe(\"The dataset name where the document resides.\"),\n dry_run: z.boolean().describe(\"If true, simulates the deletion without actually modifying any documents. Useful for testing.\").optional(),\n project_id: z.string().describe(\"The Sanity project ID where the document resides.\"),\n return_ids: z.boolean().describe(\"If true, returns the IDs of deleted documents in the response.\").optional(),\n document_id: z.string().describe(\"The ID of the specific document to delete. Either document_id or query must be provided, not both.\").optional(),\n return_documents: z.boolean().describe(\"If true, returns the full document content of deleted documents in the response.\").optional(),\n}).describe(\"Request model for deleting a document from Sanity.\");\nexport const SanityDeleteDocumentOutput = z.object({\n results: z.array(z.record(z.string(), z.unknown())).describe(\"List of full document objects that were deleted. Only present if return_documents was true.\").nullable().optional(),\n documentIds: z.array(z.string()).describe(\"List of document IDs that were deleted. Only present if return_ids was true.\").nullable().optional(),\n transactionId: z.string().describe(\"Unique identifier for this mutation transaction.\").nullable().optional(),\n}).describe(\"Response model for the delete document operation.\");\n\nexport const sanityDeleteDocument = action(\"SANITY_DELETE_DOCUMENT\", {\n slug: \"sanity-delete-document\",\n name: \"Delete Document\",\n description: \"Delete a document from Sanity by ID or query. This action is irreversible when purge is true — the document cannot be recovered once permanently deleted. Use when you need to remove a specific document by ID or bulk delete documents matching a GROQ query (limited to 10,000 documents per operation). For large deletions, paginate by document ID. Set dry_run to true to test the operation without modifying data.\",\n input: SanityDeleteDocumentInput,\n output: SanityDeleteDocumentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,qIAAqI,CAAC,CAAC,SAAS;CAC5K,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oKAAoK,CAAC,CAAC,SAAS;CAC1M,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,gHAAgH,CAAC,CAAC,SAAS;CAC9K,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;CAC3E,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,+FAA+F,CAAC,CAAC,SAAS;CACxI,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;CACnF,YAAYA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CAC5G,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;CAChJ,kBAAkBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;AACtI,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAChE,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChL,aAAaA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9I,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7G,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAE/D,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"delete-document.cjs","names":["z","action"],"sources":["../../src/actions/delete-document.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityDeleteDocumentInput = z.object({\n purge: z.boolean().describe(\"If true, permanently removes the document from the history. If false or omitted, the document is soft-deleted and can be recovered.\").optional(),\n query: z.string().describe(\"GROQ query string to select documents for deletion. Query-based deletions are limited to 10,000 documents. Either document_id or query must be provided, not both.\").optional(),\n params: z.record(z.string(), z.unknown()).describe(\"Optional parameters for the GROQ query when using query-based deletion. Use $variableName syntax in the query.\").optional(),\n dataset: z.string().describe(\"The dataset name where the document resides.\"),\n dry_run: z.boolean().describe(\"If true, simulates the deletion without actually modifying any documents. Useful for testing.\").optional(),\n project_id: z.string().describe(\"The Sanity project ID where the document resides.\"),\n return_ids: z.boolean().describe(\"If true, returns the IDs of deleted documents in the response.\").optional(),\n document_id: z.string().describe(\"The ID of the specific document to delete. Either document_id or query must be provided, not both.\").optional(),\n return_documents: z.boolean().describe(\"If true, returns the full document content of deleted documents in the response.\").optional(),\n}).describe(\"Request model for deleting a document from Sanity.\");\nexport const SanityDeleteDocumentOutput = z.object({\n results: z.array(z.record(z.string(), z.unknown())).describe(\"List of full document objects that were deleted. Only present if return_documents was true.\").nullable().optional(),\n documentIds: z.array(z.string()).describe(\"List of document IDs that were deleted. Only present if return_ids was true.\").nullable().optional(),\n transactionId: z.string().describe(\"Unique identifier for this mutation transaction.\").nullable().optional(),\n}).passthrough().describe(\"Response model for the delete document operation.\");\n\nexport const sanityDeleteDocument = action(\"SANITY_DELETE_DOCUMENT\", {\n slug: \"sanity-delete-document\",\n name: \"Delete Document\",\n description: \"Delete a document from Sanity by ID or query. This action is irreversible when purge is true — the document cannot be recovered once permanently deleted. Use when you need to remove a specific document by ID or bulk delete documents matching a GROQ query (limited to 10,000 documents per operation). For large deletions, paginate by document ID. Set dry_run to true to test the operation without modifying data.\",\n input: SanityDeleteDocumentInput,\n output: SanityDeleteDocumentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,qIAAqI,CAAC,CAAC,SAAS;CAC5K,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oKAAoK,CAAC,CAAC,SAAS;CAC1M,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,gHAAgH,CAAC,CAAC,SAAS;CAC9K,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;CAC3E,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,+FAA+F,CAAC,CAAC,SAAS;CACxI,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;CACnF,YAAYA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CAC5G,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;CAChJ,kBAAkBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;AACtI,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAChE,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChL,aAAaA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9I,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAE7E,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -16,7 +16,7 @@ declare const SanityDeleteDocumentOutput: z.ZodObject<{
16
16
  results: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
17
17
  documentIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
18
18
  transactionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
- }, z.core.$strip>;
19
+ }, z.core.$loose>;
20
20
  declare const sanityDeleteDocument: import("@keystrokehq/action").WorkflowActionDefinition<{
21
21
  dataset: string;
22
22
  project_id: string;
@@ -16,7 +16,7 @@ declare const SanityDeleteDocumentOutput: z.ZodObject<{
16
16
  results: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
17
17
  documentIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
18
18
  transactionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
- }, z.core.$strip>;
19
+ }, z.core.$loose>;
20
20
  declare const sanityDeleteDocument: import("@keystrokehq/action").WorkflowActionDefinition<{
21
21
  dataset: string;
22
22
  project_id: string;
@@ -19,7 +19,7 @@ const sanityDeleteDocument = action("SANITY_DELETE_DOCUMENT", {
19
19
  results: z.array(z.record(z.string(), z.unknown())).describe("List of full document objects that were deleted. Only present if return_documents was true.").nullable().optional(),
20
20
  documentIds: z.array(z.string()).describe("List of document IDs that were deleted. Only present if return_ids was true.").nullable().optional(),
21
21
  transactionId: z.string().describe("Unique identifier for this mutation transaction.").nullable().optional()
22
- }).describe("Response model for the delete document operation.")
22
+ }).passthrough().describe("Response model for the delete document operation.")
23
23
  });
24
24
  //#endregion
25
25
  export { sanityDeleteDocument };
@@ -1 +1 @@
1
- {"version":3,"file":"delete-document.mjs","names":[],"sources":["../../src/actions/delete-document.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityDeleteDocumentInput = z.object({\n purge: z.boolean().describe(\"If true, permanently removes the document from the history. If false or omitted, the document is soft-deleted and can be recovered.\").optional(),\n query: z.string().describe(\"GROQ query string to select documents for deletion. Query-based deletions are limited to 10,000 documents. Either document_id or query must be provided, not both.\").optional(),\n params: z.record(z.string(), z.unknown()).describe(\"Optional parameters for the GROQ query when using query-based deletion. Use $variableName syntax in the query.\").optional(),\n dataset: z.string().describe(\"The dataset name where the document resides.\"),\n dry_run: z.boolean().describe(\"If true, simulates the deletion without actually modifying any documents. Useful for testing.\").optional(),\n project_id: z.string().describe(\"The Sanity project ID where the document resides.\"),\n return_ids: z.boolean().describe(\"If true, returns the IDs of deleted documents in the response.\").optional(),\n document_id: z.string().describe(\"The ID of the specific document to delete. Either document_id or query must be provided, not both.\").optional(),\n return_documents: z.boolean().describe(\"If true, returns the full document content of deleted documents in the response.\").optional(),\n}).describe(\"Request model for deleting a document from Sanity.\");\nexport const SanityDeleteDocumentOutput = z.object({\n results: z.array(z.record(z.string(), z.unknown())).describe(\"List of full document objects that were deleted. Only present if return_documents was true.\").nullable().optional(),\n documentIds: z.array(z.string()).describe(\"List of document IDs that were deleted. Only present if return_ids was true.\").nullable().optional(),\n transactionId: z.string().describe(\"Unique identifier for this mutation transaction.\").nullable().optional(),\n}).describe(\"Response model for the delete document operation.\");\n\nexport const sanityDeleteDocument = action(\"SANITY_DELETE_DOCUMENT\", {\n slug: \"sanity-delete-document\",\n name: \"Delete Document\",\n description: \"Delete a document from Sanity by ID or query. This action is irreversible when purge is true — the document cannot be recovered once permanently deleted. Use when you need to remove a specific document by ID or bulk delete documents matching a GROQ query (limited to 10,000 documents per operation). For large deletions, paginate by document ID. Set dry_run to true to test the operation without modifying data.\",\n input: SanityDeleteDocumentInput,\n output: SanityDeleteDocumentOutput,\n});\n"],"mappings":";;AAqBA,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OArBuC,EAAE,OAAO;EAChD,OAAO,EAAE,QAAQ,CAAC,CAAC,SAAS,qIAAqI,CAAC,CAAC,SAAS;EAC5K,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oKAAoK,CAAC,CAAC,SAAS;EAC1M,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,gHAAgH,CAAC,CAAC,SAAS;EAC9K,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;EAC3E,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,+FAA+F,CAAC,CAAC,SAAS;EACxI,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;EACnF,YAAY,EAAE,QAAQ,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;EAC5G,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;EAChJ,kBAAkB,EAAE,QAAQ,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;CACtI,CAAC,CAAC,CAAC,SAAS,oDAWH;CACP,QAXwC,EAAE,OAAO;EACjD,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChL,aAAa,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9I,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,CAAC,CAAC,CAAC,SAAS,mDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"delete-document.mjs","names":[],"sources":["../../src/actions/delete-document.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityDeleteDocumentInput = z.object({\n purge: z.boolean().describe(\"If true, permanently removes the document from the history. If false or omitted, the document is soft-deleted and can be recovered.\").optional(),\n query: z.string().describe(\"GROQ query string to select documents for deletion. Query-based deletions are limited to 10,000 documents. Either document_id or query must be provided, not both.\").optional(),\n params: z.record(z.string(), z.unknown()).describe(\"Optional parameters for the GROQ query when using query-based deletion. Use $variableName syntax in the query.\").optional(),\n dataset: z.string().describe(\"The dataset name where the document resides.\"),\n dry_run: z.boolean().describe(\"If true, simulates the deletion without actually modifying any documents. Useful for testing.\").optional(),\n project_id: z.string().describe(\"The Sanity project ID where the document resides.\"),\n return_ids: z.boolean().describe(\"If true, returns the IDs of deleted documents in the response.\").optional(),\n document_id: z.string().describe(\"The ID of the specific document to delete. Either document_id or query must be provided, not both.\").optional(),\n return_documents: z.boolean().describe(\"If true, returns the full document content of deleted documents in the response.\").optional(),\n}).describe(\"Request model for deleting a document from Sanity.\");\nexport const SanityDeleteDocumentOutput = z.object({\n results: z.array(z.record(z.string(), z.unknown())).describe(\"List of full document objects that were deleted. Only present if return_documents was true.\").nullable().optional(),\n documentIds: z.array(z.string()).describe(\"List of document IDs that were deleted. Only present if return_ids was true.\").nullable().optional(),\n transactionId: z.string().describe(\"Unique identifier for this mutation transaction.\").nullable().optional(),\n}).passthrough().describe(\"Response model for the delete document operation.\");\n\nexport const sanityDeleteDocument = action(\"SANITY_DELETE_DOCUMENT\", {\n slug: \"sanity-delete-document\",\n name: \"Delete Document\",\n description: \"Delete a document from Sanity by ID or query. This action is irreversible when purge is true — the document cannot be recovered once permanently deleted. Use when you need to remove a specific document by ID or bulk delete documents matching a GROQ query (limited to 10,000 documents per operation). For large deletions, paginate by document ID. Set dry_run to true to test the operation without modifying data.\",\n input: SanityDeleteDocumentInput,\n output: SanityDeleteDocumentOutput,\n});\n"],"mappings":";;AAqBA,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OArBuC,EAAE,OAAO;EAChD,OAAO,EAAE,QAAQ,CAAC,CAAC,SAAS,qIAAqI,CAAC,CAAC,SAAS;EAC5K,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oKAAoK,CAAC,CAAC,SAAS;EAC1M,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,gHAAgH,CAAC,CAAC,SAAS;EAC9K,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;EAC3E,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,+FAA+F,CAAC,CAAC,SAAS;EACxI,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;EACnF,YAAY,EAAE,QAAQ,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;EAC5G,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;EAChJ,kBAAkB,EAAE,QAAQ,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;CACtI,CAAC,CAAC,CAAC,SAAS,oDAWH;CACP,QAXwC,EAAE,OAAO;EACjD,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChL,aAAa,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9I,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAOhB;AACV,CAAC"}
@@ -2,7 +2,7 @@ const require_action = require("../action.cjs");
2
2
  let zod = require("zod");
3
3
  //#region src/actions/delete-user-attributes.ts
4
4
  const SanityDeleteUserAttributesInput = zod.z.object({
5
- attributes: zod.z.array(zod.z.object({ key: zod.z.string().describe("The key of the attribute to delete") }).describe("Single attribute key to delete.")).describe("List of attribute keys to delete from the user"),
5
+ attributes: zod.z.array(zod.z.object({ key: zod.z.string().describe("The key of the attribute to delete") }).passthrough().describe("Single attribute key to delete.")).describe("List of attribute keys to delete from the user"),
6
6
  sanity_user_id: zod.z.string().describe("Unique identifier of the Sanity user"),
7
7
  organization_id: zod.z.string().describe("Unique identifier of the organization")
8
8
  }).describe("Request model for deleting user attributes in a Sanity organization.\n\nUse this action to remove specific custom attributes from a user within an organization.");
@@ -12,13 +12,13 @@ const SanityDeleteUserAttributes_AttributeItemSchema = zod.z.object({
12
12
  values: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Possible values for this attribute").nullable().optional(),
13
13
  active_value: zod.z.record(zod.z.string(), zod.z.unknown()).describe("The active value for this attribute").nullable().optional(),
14
14
  active_source: zod.z.string().describe("The source of the active value").nullable().optional()
15
- }).describe("Individual user attribute item.");
15
+ }).passthrough().describe("Individual user attribute item.");
16
16
  const SanityDeleteUserAttributesOutput = zod.z.object({
17
17
  attributes: zod.z.array(SanityDeleteUserAttributes_AttributeItemSchema).describe("Remaining attributes for the user").nullable().optional(),
18
18
  updated_at: zod.z.string().describe("Timestamp when attributes were last updated in ISO 8601 format").nullable().optional(),
19
19
  sanity_user_id: zod.z.string().describe("ID of the user").nullable().optional(),
20
20
  organization_id: zod.z.string().describe("ID of the organization").nullable().optional()
21
- }).describe("Response model for deleted user attributes.\n\nReturns the updated list of remaining attributes for the user after deletion.");
21
+ }).passthrough().describe("Response model for deleted user attributes.\n\nReturns the updated list of remaining attributes for the user after deletion.");
22
22
  const sanityDeleteUserAttributes = require_action.action("SANITY_DELETE_USER_ATTRIBUTES", {
23
23
  slug: "sanity-delete-user-attributes",
24
24
  name: "Delete User Attributes",
@@ -1 +1 @@
1
- {"version":3,"file":"delete-user-attributes.cjs","names":["z","action"],"sources":["../../src/actions/delete-user-attributes.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityDeleteUserAttributesInput = z.object({\n attributes: z.array(z.object({\n key: z.string().describe(\"The key of the attribute to delete\"),\n}).describe(\"Single attribute key to delete.\")).describe(\"List of attribute keys to delete from the user\"),\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 deleting user attributes in a Sanity organization.\\n\\nUse this action to remove specific custom attributes from a user within an organization.\");\nconst SanityDeleteUserAttributes_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 SanityDeleteUserAttributesOutput = z.object({\n attributes: z.array(SanityDeleteUserAttributes_AttributeItemSchema).describe(\"Remaining attributes for the user\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when attributes were last updated in ISO 8601 format\").nullable().optional(),\n sanity_user_id: z.string().describe(\"ID of the user\").nullable().optional(),\n organization_id: z.string().describe(\"ID of the organization\").nullable().optional(),\n}).describe(\"Response model for deleted user attributes.\\n\\nReturns the updated list of remaining attributes for the user after deletion.\");\n\nexport const sanityDeleteUserAttributes = action(\"SANITY_DELETE_USER_ATTRIBUTES\", {\n slug: \"sanity-delete-user-attributes\",\n name: \"Delete User Attributes\",\n description: \"Delete custom attributes from a Sanity user within an organization. Use this tool when you need to remove specific custom attributes from a user account. The action deletes the attributes specified in the request and returns the updated attribute list for the user. Example use case: Removing outdated metadata like 'location' or 'year_started' from a user profile.\",\n input: SanityDeleteUserAttributesInput,\n output: SanityDeleteUserAttributesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,YAAYA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,EAC7B,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,EAC/D,CAAC,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,CAAC,SAAS,gDAAgD;CACvG,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CAC1E,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;AAC9E,CAAC,CAAC,CAAC,SAAS,kKAAkK;AAC9K,MAAM,iDAAiDA,IAAAA,EAAE,OAAO;CAC9D,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,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,YAAYA,IAAAA,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtI,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtH,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1E,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrF,CAAC,CAAC,CAAC,SAAS,8HAA8H;AAE1I,MAAa,6BAA6BC,eAAAA,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"delete-user-attributes.cjs","names":["z","action"],"sources":["../../src/actions/delete-user-attributes.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityDeleteUserAttributesInput = z.object({\n attributes: z.array(z.object({\n key: z.string().describe(\"The key of the attribute to delete\"),\n}).passthrough().describe(\"Single attribute key to delete.\")).describe(\"List of attribute keys to delete from the user\"),\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 deleting user attributes in a Sanity organization.\\n\\nUse this action to remove specific custom attributes from a user within an organization.\");\nconst SanityDeleteUserAttributes_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 SanityDeleteUserAttributesOutput = z.object({\n attributes: z.array(SanityDeleteUserAttributes_AttributeItemSchema).describe(\"Remaining attributes for the user\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when attributes were last updated in ISO 8601 format\").nullable().optional(),\n sanity_user_id: z.string().describe(\"ID of the user\").nullable().optional(),\n organization_id: z.string().describe(\"ID of the organization\").nullable().optional(),\n}).passthrough().describe(\"Response model for deleted user attributes.\\n\\nReturns the updated list of remaining attributes for the user after deletion.\");\n\nexport const sanityDeleteUserAttributes = action(\"SANITY_DELETE_USER_ATTRIBUTES\", {\n slug: \"sanity-delete-user-attributes\",\n name: \"Delete User Attributes\",\n description: \"Delete custom attributes from a Sanity user within an organization. Use this tool when you need to remove specific custom attributes from a user account. The action deletes the attributes specified in the request and returns the updated attribute list for the user. Example use case: Removing outdated metadata like 'location' or 'year_started' from a user profile.\",\n input: SanityDeleteUserAttributesInput,\n output: SanityDeleteUserAttributesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,YAAYA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,EAC7B,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,EAC/D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,CAAC,SAAS,gDAAgD;CACrH,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CAC1E,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;AAC9E,CAAC,CAAC,CAAC,SAAS,kKAAkK;AAC9K,MAAM,iDAAiDA,IAAAA,EAAE,OAAO;CAC9D,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,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,YAAYA,IAAAA,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtI,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtH,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1E,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8HAA8H;AAExJ,MAAa,6BAA6BC,eAAAA,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -4,7 +4,7 @@ import { z } from "zod";
4
4
  declare const SanityDeleteUserAttributesInput: z.ZodObject<{
5
5
  attributes: z.ZodArray<z.ZodObject<{
6
6
  key: z.ZodString;
7
- }, z.core.$strip>>;
7
+ }, z.core.$loose>>;
8
8
  sanity_user_id: z.ZodString;
9
9
  organization_id: z.ZodString;
10
10
  }, z.core.$strip>;
@@ -15,13 +15,14 @@ declare const SanityDeleteUserAttributesOutput: z.ZodObject<{
15
15
  values: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
16
16
  active_value: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
17
17
  active_source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
- }, z.core.$strip>>>>;
18
+ }, z.core.$loose>>>>;
19
19
  updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
20
  sanity_user_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
21
  organization_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
- }, z.core.$strip>;
22
+ }, z.core.$loose>;
23
23
  declare const sanityDeleteUserAttributes: import("@keystrokehq/action").WorkflowActionDefinition<{
24
24
  attributes: {
25
+ [x: string]: unknown;
25
26
  key: string;
26
27
  }[];
27
28
  sanity_user_id: string;
@@ -4,7 +4,7 @@ import { z } from "zod";
4
4
  declare const SanityDeleteUserAttributesInput: z.ZodObject<{
5
5
  attributes: z.ZodArray<z.ZodObject<{
6
6
  key: z.ZodString;
7
- }, z.core.$strip>>;
7
+ }, z.core.$loose>>;
8
8
  sanity_user_id: z.ZodString;
9
9
  organization_id: z.ZodString;
10
10
  }, z.core.$strip>;
@@ -15,13 +15,14 @@ declare const SanityDeleteUserAttributesOutput: z.ZodObject<{
15
15
  values: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
16
16
  active_value: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
17
17
  active_source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
- }, z.core.$strip>>>>;
18
+ }, z.core.$loose>>>>;
19
19
  updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
20
  sanity_user_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
21
  organization_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
- }, z.core.$strip>;
22
+ }, z.core.$loose>;
23
23
  declare const sanityDeleteUserAttributes: import("@keystrokehq/action").WorkflowActionDefinition<{
24
24
  attributes: {
25
+ [x: string]: unknown;
25
26
  key: string;
26
27
  }[];
27
28
  sanity_user_id: string;
@@ -2,7 +2,7 @@ import { action } from "../action.mjs";
2
2
  import { z } from "zod";
3
3
  //#region src/actions/delete-user-attributes.ts
4
4
  const SanityDeleteUserAttributesInput = z.object({
5
- attributes: z.array(z.object({ key: z.string().describe("The key of the attribute to delete") }).describe("Single attribute key to delete.")).describe("List of attribute keys to delete from the user"),
5
+ attributes: z.array(z.object({ key: z.string().describe("The key of the attribute to delete") }).passthrough().describe("Single attribute key to delete.")).describe("List of attribute keys to delete from the user"),
6
6
  sanity_user_id: z.string().describe("Unique identifier of the Sanity user"),
7
7
  organization_id: z.string().describe("Unique identifier of the organization")
8
8
  }).describe("Request model for deleting user attributes in a Sanity organization.\n\nUse this action to remove specific custom attributes from a user within an organization.");
@@ -12,7 +12,7 @@ const SanityDeleteUserAttributes_AttributeItemSchema = z.object({
12
12
  values: z.record(z.string(), z.unknown()).describe("Possible values for this attribute").nullable().optional(),
13
13
  active_value: z.record(z.string(), z.unknown()).describe("The active value for this attribute").nullable().optional(),
14
14
  active_source: z.string().describe("The source of the active value").nullable().optional()
15
- }).describe("Individual user attribute item.");
15
+ }).passthrough().describe("Individual user attribute item.");
16
16
  const sanityDeleteUserAttributes = action("SANITY_DELETE_USER_ATTRIBUTES", {
17
17
  slug: "sanity-delete-user-attributes",
18
18
  name: "Delete User Attributes",
@@ -23,7 +23,7 @@ const sanityDeleteUserAttributes = action("SANITY_DELETE_USER_ATTRIBUTES", {
23
23
  updated_at: z.string().describe("Timestamp when attributes were last updated in ISO 8601 format").nullable().optional(),
24
24
  sanity_user_id: z.string().describe("ID of the user").nullable().optional(),
25
25
  organization_id: z.string().describe("ID of the organization").nullable().optional()
26
- }).describe("Response model for deleted user attributes.\n\nReturns the updated list of remaining attributes for the user after deletion.")
26
+ }).passthrough().describe("Response model for deleted user attributes.\n\nReturns the updated list of remaining attributes for the user after deletion.")
27
27
  });
28
28
  //#endregion
29
29
  export { sanityDeleteUserAttributes };
@@ -1 +1 @@
1
- {"version":3,"file":"delete-user-attributes.mjs","names":[],"sources":["../../src/actions/delete-user-attributes.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityDeleteUserAttributesInput = z.object({\n attributes: z.array(z.object({\n key: z.string().describe(\"The key of the attribute to delete\"),\n}).describe(\"Single attribute key to delete.\")).describe(\"List of attribute keys to delete from the user\"),\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 deleting user attributes in a Sanity organization.\\n\\nUse this action to remove specific custom attributes from a user within an organization.\");\nconst SanityDeleteUserAttributes_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 SanityDeleteUserAttributesOutput = z.object({\n attributes: z.array(SanityDeleteUserAttributes_AttributeItemSchema).describe(\"Remaining attributes for the user\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when attributes were last updated in ISO 8601 format\").nullable().optional(),\n sanity_user_id: z.string().describe(\"ID of the user\").nullable().optional(),\n organization_id: z.string().describe(\"ID of the organization\").nullable().optional(),\n}).describe(\"Response model for deleted user attributes.\\n\\nReturns the updated list of remaining attributes for the user after deletion.\");\n\nexport const sanityDeleteUserAttributes = action(\"SANITY_DELETE_USER_ATTRIBUTES\", {\n slug: \"sanity-delete-user-attributes\",\n name: \"Delete User Attributes\",\n description: \"Delete custom attributes from a Sanity user within an organization. Use this tool when you need to remove specific custom attributes from a user account. The action deletes the attributes specified in the request and returns the updated attribute list for the user. Example use case: Removing outdated metadata like 'location' or 'year_started' from a user profile.\",\n input: SanityDeleteUserAttributesInput,\n output: SanityDeleteUserAttributesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkC,EAAE,OAAO;CACtD,YAAY,EAAE,MAAM,EAAE,OAAO,EAC7B,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,EAC/D,CAAC,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,CAAC,SAAS,gDAAgD;CACvG,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CAC1E,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;AAC9E,CAAC,CAAC,CAAC,SAAS,kKAAkK;AAC9K,MAAM,iDAAiD,EAAE,OAAO;CAC9D,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;AAQ7C,MAAa,6BAA6B,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZ8C,EAAE,OAAO;EACvD,YAAY,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtI,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtH,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1E,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,CAAC,CAAC,CAAC,SAAS,8HAOF;AACV,CAAC"}
1
+ {"version":3,"file":"delete-user-attributes.mjs","names":[],"sources":["../../src/actions/delete-user-attributes.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityDeleteUserAttributesInput = z.object({\n attributes: z.array(z.object({\n key: z.string().describe(\"The key of the attribute to delete\"),\n}).passthrough().describe(\"Single attribute key to delete.\")).describe(\"List of attribute keys to delete from the user\"),\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 deleting user attributes in a Sanity organization.\\n\\nUse this action to remove specific custom attributes from a user within an organization.\");\nconst SanityDeleteUserAttributes_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 SanityDeleteUserAttributesOutput = z.object({\n attributes: z.array(SanityDeleteUserAttributes_AttributeItemSchema).describe(\"Remaining attributes for the user\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when attributes were last updated in ISO 8601 format\").nullable().optional(),\n sanity_user_id: z.string().describe(\"ID of the user\").nullable().optional(),\n organization_id: z.string().describe(\"ID of the organization\").nullable().optional(),\n}).passthrough().describe(\"Response model for deleted user attributes.\\n\\nReturns the updated list of remaining attributes for the user after deletion.\");\n\nexport const sanityDeleteUserAttributes = action(\"SANITY_DELETE_USER_ATTRIBUTES\", {\n slug: \"sanity-delete-user-attributes\",\n name: \"Delete User Attributes\",\n description: \"Delete custom attributes from a Sanity user within an organization. Use this tool when you need to remove specific custom attributes from a user account. The action deletes the attributes specified in the request and returns the updated attribute list for the user. Example use case: Removing outdated metadata like 'location' or 'year_started' from a user profile.\",\n input: SanityDeleteUserAttributesInput,\n output: SanityDeleteUserAttributesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkC,EAAE,OAAO;CACtD,YAAY,EAAE,MAAM,EAAE,OAAO,EAC7B,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,EAC/D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,CAAC,SAAS,gDAAgD;CACrH,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CAC1E,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;AAC9E,CAAC,CAAC,CAAC,SAAS,kKAAkK;AAC9K,MAAM,iDAAiD,EAAE,OAAO;CAC9D,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;AAQ3D,MAAa,6BAA6B,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZ8C,EAAE,OAAO;EACvD,YAAY,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtI,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtH,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1E,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8HAOhB;AACV,CAAC"}
@@ -9,7 +9,7 @@ const SanityGetDocumentInput = zod.z.object({
9
9
  const SanityGetDocument_OmittedDocumentSchema = zod.z.object({
10
10
  id: zod.z.string().describe("ID of the omitted document").nullable(),
11
11
  reason: zod.z.string().describe("Reason for omission (e.g., 'existence')").nullable()
12
- }).describe("Model for documents that were omitted from the response.");
12
+ }).passthrough().describe("Model for documents that were omitted from the response.");
13
13
  const SanityGetDocument_SanityDocumentSchema = zod.z.object({
14
14
  _id: zod.z.string().describe("Unique identifier of the document").nullable(),
15
15
  _rev: zod.z.string().describe("Revision identifier").nullable().optional(),
@@ -21,7 +21,7 @@ const SanityGetDocumentOutput = zod.z.object({
21
21
  ms: zod.z.number().int().describe("Time taken to execute the request in milliseconds.").nullable().optional(),
22
22
  omitted: zod.z.array(SanityGetDocument_OmittedDocumentSchema).describe("Array of documents that were omitted from the response, typically because they don't exist.").nullable().optional(),
23
23
  documents: zod.z.array(SanityGetDocument_SanityDocumentSchema).describe("Array containing the requested document. Returns a single-element array with the full document including system fields (_id, _type, _rev, _createdAt, _updatedAt).").nullable().optional()
24
- }).describe("Response model for fetching a single document.");
24
+ }).passthrough().describe("Response model for fetching a single document.");
25
25
  const sanityGetDocument = require_action.action("SANITY_GET_DOCUMENT", {
26
26
  slug: "sanity-get-document",
27
27
  name: "Get Document by ID",