@keystrokehq/sanity 0.1.5 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/add-default-role-to-users.cjs +1 -0
- package/dist/actions/add-default-role-to-users.cjs.map +1 -1
- package/dist/actions/add-default-role-to-users.d.cts +3 -19
- package/dist/actions/add-default-role-to-users.d.cts.map +1 -1
- package/dist/actions/add-default-role-to-users.d.mts +3 -19
- package/dist/actions/add-default-role-to-users.d.mts.map +1 -1
- package/dist/actions/add-default-role-to-users.mjs +1 -0
- package/dist/actions/add-default-role-to-users.mjs.map +1 -1
- package/dist/actions/create-attr-definition.cjs +1 -0
- package/dist/actions/create-attr-definition.cjs.map +1 -1
- package/dist/actions/create-attr-definition.d.cts +3 -25
- package/dist/actions/create-attr-definition.d.cts.map +1 -1
- package/dist/actions/create-attr-definition.d.mts +3 -25
- package/dist/actions/create-attr-definition.d.mts.map +1 -1
- package/dist/actions/create-attr-definition.mjs +1 -0
- package/dist/actions/create-attr-definition.mjs.map +1 -1
- package/dist/actions/create-prompt-post.cjs +1 -0
- package/dist/actions/create-prompt-post.cjs.map +1 -1
- package/dist/actions/create-prompt-post.d.cts +3 -23
- package/dist/actions/create-prompt-post.d.cts.map +1 -1
- package/dist/actions/create-prompt-post.d.mts +3 -23
- package/dist/actions/create-prompt-post.d.mts.map +1 -1
- package/dist/actions/create-prompt-post.mjs +1 -0
- package/dist/actions/create-prompt-post.mjs.map +1 -1
- package/dist/actions/delete-attr-definition.cjs +1 -0
- package/dist/actions/delete-attr-definition.cjs.map +1 -1
- package/dist/actions/delete-attr-definition.d.cts +3 -21
- package/dist/actions/delete-attr-definition.d.cts.map +1 -1
- package/dist/actions/delete-attr-definition.d.mts +3 -21
- package/dist/actions/delete-attr-definition.d.mts.map +1 -1
- package/dist/actions/delete-attr-definition.mjs +1 -0
- package/dist/actions/delete-attr-definition.mjs.map +1 -1
- package/dist/actions/delete-document.cjs +1 -0
- package/dist/actions/delete-document.cjs.map +1 -1
- package/dist/actions/delete-document.d.cts +3 -27
- package/dist/actions/delete-document.d.cts.map +1 -1
- package/dist/actions/delete-document.d.mts +3 -27
- package/dist/actions/delete-document.d.mts.map +1 -1
- package/dist/actions/delete-document.mjs +1 -0
- package/dist/actions/delete-document.mjs.map +1 -1
- package/dist/actions/delete-user-attributes.cjs +1 -0
- package/dist/actions/delete-user-attributes.cjs.map +1 -1
- package/dist/actions/delete-user-attributes.d.cts +3 -24
- package/dist/actions/delete-user-attributes.d.cts.map +1 -1
- package/dist/actions/delete-user-attributes.d.mts +3 -24
- package/dist/actions/delete-user-attributes.d.mts.map +1 -1
- package/dist/actions/delete-user-attributes.mjs +1 -0
- package/dist/actions/delete-user-attributes.mjs.map +1 -1
- package/dist/actions/get-document.cjs +1 -0
- package/dist/actions/get-document.cjs.map +1 -1
- package/dist/actions/get-document.d.cts +3 -21
- package/dist/actions/get-document.d.cts.map +1 -1
- package/dist/actions/get-document.d.mts +3 -21
- package/dist/actions/get-document.d.mts.map +1 -1
- package/dist/actions/get-document.mjs +1 -0
- package/dist/actions/get-document.mjs.map +1 -1
- package/dist/actions/get-invite-by-token.cjs +1 -0
- package/dist/actions/get-invite-by-token.cjs.map +1 -1
- package/dist/actions/get-invite-by-token.d.cts +3 -21
- package/dist/actions/get-invite-by-token.d.cts.map +1 -1
- package/dist/actions/get-invite-by-token.d.mts +3 -21
- package/dist/actions/get-invite-by-token.d.mts.map +1 -1
- package/dist/actions/get-invite-by-token.mjs +1 -0
- package/dist/actions/get-invite-by-token.mjs.map +1 -1
- package/dist/actions/get-org-role.cjs +1 -0
- package/dist/actions/get-org-role.cjs.map +1 -1
- package/dist/actions/get-org-role.d.cts +3 -20
- package/dist/actions/get-org-role.d.cts.map +1 -1
- package/dist/actions/get-org-role.d.mts +3 -20
- package/dist/actions/get-org-role.d.mts.map +1 -1
- package/dist/actions/get-org-role.mjs +1 -0
- package/dist/actions/get-org-role.mjs.map +1 -1
- package/dist/actions/get-permission.cjs +1 -0
- package/dist/actions/get-permission.cjs.map +1 -1
- package/dist/actions/get-permission.d.cts +3 -21
- package/dist/actions/get-permission.d.cts.map +1 -1
- package/dist/actions/get-permission.d.mts +3 -21
- package/dist/actions/get-permission.d.mts.map +1 -1
- package/dist/actions/get-permission.mjs +1 -0
- package/dist/actions/get-permission.mjs.map +1 -1
- package/dist/actions/get-project.cjs +1 -0
- package/dist/actions/get-project.cjs.map +1 -1
- package/dist/actions/get-project.d.cts +3 -19
- package/dist/actions/get-project.d.cts.map +1 -1
- package/dist/actions/get-project.d.mts +3 -19
- package/dist/actions/get-project.d.mts.map +1 -1
- package/dist/actions/get-project.mjs +1 -0
- package/dist/actions/get-project.mjs.map +1 -1
- package/dist/actions/get-robots.cjs +1 -0
- package/dist/actions/get-robots.cjs.map +1 -1
- package/dist/actions/get-robots.d.cts +3 -23
- package/dist/actions/get-robots.d.cts.map +1 -1
- package/dist/actions/get-robots.d.mts +3 -23
- package/dist/actions/get-robots.d.mts.map +1 -1
- package/dist/actions/get-robots.mjs +1 -0
- package/dist/actions/get-robots.mjs.map +1 -1
- package/dist/actions/get-role.cjs +1 -0
- package/dist/actions/get-role.cjs.map +1 -1
- package/dist/actions/get-role.d.cts +3 -21
- package/dist/actions/get-role.d.cts.map +1 -1
- package/dist/actions/get-role.d.mts +3 -21
- package/dist/actions/get-role.d.mts.map +1 -1
- package/dist/actions/get-role.mjs +1 -0
- package/dist/actions/get-role.mjs.map +1 -1
- package/dist/actions/get-users.cjs +1 -0
- package/dist/actions/get-users.cjs.map +1 -1
- package/dist/actions/get-users.d.cts +3 -22
- package/dist/actions/get-users.d.cts.map +1 -1
- package/dist/actions/get-users.d.mts +3 -22
- package/dist/actions/get-users.d.mts.map +1 -1
- package/dist/actions/get-users.mjs +1 -0
- package/dist/actions/get-users.mjs.map +1 -1
- package/dist/actions/list-org-roles.cjs +1 -0
- package/dist/actions/list-org-roles.cjs.map +1 -1
- package/dist/actions/list-org-roles.d.cts +3 -19
- package/dist/actions/list-org-roles.d.cts.map +1 -1
- package/dist/actions/list-org-roles.d.mts +3 -19
- package/dist/actions/list-org-roles.d.mts.map +1 -1
- package/dist/actions/list-org-roles.mjs +1 -0
- package/dist/actions/list-org-roles.mjs.map +1 -1
- package/dist/actions/list-user-attributes.cjs +1 -0
- package/dist/actions/list-user-attributes.cjs.map +1 -1
- package/dist/actions/list-user-attributes.d.cts +3 -22
- package/dist/actions/list-user-attributes.d.cts.map +1 -1
- package/dist/actions/list-user-attributes.d.mts +3 -22
- package/dist/actions/list-user-attributes.d.mts.map +1 -1
- package/dist/actions/list-user-attributes.mjs +1 -0
- package/dist/actions/list-user-attributes.mjs.map +1 -1
- package/dist/actions/query-all-screening.cjs +1 -0
- package/dist/actions/query-all-screening.cjs.map +1 -1
- package/dist/actions/query-all-screening.d.cts +3 -23
- package/dist/actions/query-all-screening.d.cts.map +1 -1
- package/dist/actions/query-all-screening.d.mts +3 -23
- package/dist/actions/query-all-screening.d.mts.map +1 -1
- package/dist/actions/query-all-screening.mjs +1 -0
- package/dist/actions/query-all-screening.mjs.map +1 -1
- package/dist/actions/query-documents.cjs +1 -0
- package/dist/actions/query-documents.cjs.map +1 -1
- package/dist/actions/query-documents.d.cts +3 -24
- package/dist/actions/query-documents.d.cts.map +1 -1
- package/dist/actions/query-documents.d.mts +3 -24
- package/dist/actions/query-documents.d.mts.map +1 -1
- package/dist/actions/query-documents.mjs +1 -0
- package/dist/actions/query-documents.mjs.map +1 -1
- package/dist/actions/update-org-acl.cjs +1 -0
- package/dist/actions/update-org-acl.cjs.map +1 -1
- package/dist/actions/update-org-acl.d.cts +3 -21
- package/dist/actions/update-org-acl.d.cts.map +1 -1
- package/dist/actions/update-org-acl.d.mts +3 -21
- package/dist/actions/update-org-acl.d.mts.map +1 -1
- package/dist/actions/update-org-acl.mjs +1 -0
- package/dist/actions/update-org-acl.mjs.map +1 -1
- package/dist/actions/update-user-attributes-values.cjs +1 -0
- package/dist/actions/update-user-attributes-values.cjs.map +1 -1
- package/dist/actions/update-user-attributes-values.d.cts +3 -22
- package/dist/actions/update-user-attributes-values.d.cts.map +1 -1
- package/dist/actions/update-user-attributes-values.d.mts +3 -22
- package/dist/actions/update-user-attributes-values.d.mts.map +1 -1
- package/dist/actions/update-user-attributes-values.mjs +1 -0
- package/dist/actions/update-user-attributes-values.mjs.map +1 -1
- package/dist/actions/validate-credential.cjs +1 -0
- package/dist/actions/validate-credential.cjs.map +1 -1
- package/dist/actions/validate-credential.d.cts +3 -17
- package/dist/actions/validate-credential.d.cts.map +1 -1
- package/dist/actions/validate-credential.d.mts +3 -17
- package/dist/actions/validate-credential.d.mts.map +1 -1
- package/dist/actions/validate-credential.mjs +1 -0
- package/dist/actions/validate-credential.mjs.map +1 -1
- package/dist/app.cjs +6 -5
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +4 -6
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +4 -6
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +0 -1
- package/dist/app.mjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/package.json +2 -2
package/dist/action.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.cjs","names":["sanity","executeSanityTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { sanity } from \"./app\";\nimport { executeSanityTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output:
|
|
1
|
+
{"version":3,"file":"action.cjs","names":["sanity","executeSanityTool"],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { sanity } from \"./app\";\nimport { executeSanityTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof sanity.credential> {\n return sanity.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeSanityTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAOA,SAAgB,OACd,MACA,KAOsD;CACtD,OAAOA,YAAAA,OAAO,OAAO;EACnB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,kBAAkB,MAAM,KAAgC,CAAC;EACzF;CACF,CAAC;AACH"}
|
package/dist/action.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { sanity } from \"./app\";\nimport { executeSanityTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output:
|
|
1
|
+
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { sanity } from \"./app\";\nimport { executeSanityTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof sanity.credential> {\n return sanity.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeSanityTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAOA,SAAgB,OACd,MACA,KAOsD;CACtD,OAAO,OAAO,OAAO;EACnB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,kBAAkB,MAAM,KAAgC,CAAC;EACzF;CACF,CAAC;AACH"}
|
|
@@ -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}).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":"
|
|
1
|
+
{"version":3,"file":"add-default-role-to-users.cjs","names":["z","action"],"sources":["../../src/actions/add-default-role-to-users.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { sanity } from \"../app\";\n\nexport const 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: AppAction<\n typeof SanityAddDefaultRoleToUsersInput,\n typeof SanityAddDefaultRoleToUsersOutput,\n typeof sanity.credential\n> = 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":";;;;AAMA,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,8BAITC,eAAAA,OAAO,oCAAoC;CAC7C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { sanity } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/add-default-role-to-users.d.ts
|
|
@@ -8,25 +10,7 @@ declare const SanityAddDefaultRoleToUsersOutput: z.ZodObject<{
|
|
|
8
10
|
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
11
|
success: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
10
12
|
}, z.core.$loose>;
|
|
11
|
-
declare const sanityAddDefaultRoleToUsers:
|
|
12
|
-
resource_id: string;
|
|
13
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"sanity", z.ZodObject<{
|
|
14
|
-
connectionId: z.ZodString;
|
|
15
|
-
entityId: z.ZodString;
|
|
16
|
-
instanceId: z.ZodString;
|
|
17
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
18
|
-
subdomain: z.ZodString;
|
|
19
|
-
version: z.ZodString;
|
|
20
|
-
generic_api_key: z.ZodString;
|
|
21
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"sanity", z.ZodObject<{
|
|
22
|
-
connectionId: z.ZodString;
|
|
23
|
-
entityId: z.ZodString;
|
|
24
|
-
instanceId: z.ZodString;
|
|
25
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
26
|
-
subdomain: z.ZodString;
|
|
27
|
-
version: z.ZodString;
|
|
28
|
-
generic_api_key: z.ZodString;
|
|
29
|
-
}, z.core.$strip>>]>;
|
|
13
|
+
declare const sanityAddDefaultRoleToUsers: AppAction<typeof SanityAddDefaultRoleToUsersInput, typeof SanityAddDefaultRoleToUsersOutput, typeof sanity.credential>;
|
|
30
14
|
//#endregion
|
|
31
15
|
export { sanityAddDefaultRoleToUsers };
|
|
32
16
|
//# sourceMappingURL=add-default-role-to-users.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-default-role-to-users.d.cts","names":[],"sources":["../../src/actions/add-default-role-to-users.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"add-default-role-to-users.d.cts","names":[],"sources":["../../src/actions/add-default-role-to-users.ts"],"mappings":";;;;;cAMa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;cAGhC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;cAKjC,2BAAA,EAA6B,SAAA,QACjC,gCAAA,SACA,iCAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { sanity } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/add-default-role-to-users.d.ts
|
|
@@ -8,25 +10,7 @@ declare const SanityAddDefaultRoleToUsersOutput: z.ZodObject<{
|
|
|
8
10
|
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
11
|
success: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
10
12
|
}, z.core.$loose>;
|
|
11
|
-
declare const sanityAddDefaultRoleToUsers:
|
|
12
|
-
resource_id: string;
|
|
13
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"sanity", z.ZodObject<{
|
|
14
|
-
connectionId: z.ZodString;
|
|
15
|
-
entityId: z.ZodString;
|
|
16
|
-
instanceId: z.ZodString;
|
|
17
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
18
|
-
subdomain: z.ZodString;
|
|
19
|
-
version: z.ZodString;
|
|
20
|
-
generic_api_key: z.ZodString;
|
|
21
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"sanity", z.ZodObject<{
|
|
22
|
-
connectionId: z.ZodString;
|
|
23
|
-
entityId: z.ZodString;
|
|
24
|
-
instanceId: z.ZodString;
|
|
25
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
26
|
-
subdomain: z.ZodString;
|
|
27
|
-
version: z.ZodString;
|
|
28
|
-
generic_api_key: z.ZodString;
|
|
29
|
-
}, z.core.$strip>>]>;
|
|
13
|
+
declare const sanityAddDefaultRoleToUsers: AppAction<typeof SanityAddDefaultRoleToUsersInput, typeof SanityAddDefaultRoleToUsersOutput, typeof sanity.credential>;
|
|
30
14
|
//#endregion
|
|
31
15
|
export { sanityAddDefaultRoleToUsers };
|
|
32
16
|
//# sourceMappingURL=add-default-role-to-users.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-default-role-to-users.d.mts","names":[],"sources":["../../src/actions/add-default-role-to-users.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"add-default-role-to-users.d.mts","names":[],"sources":["../../src/actions/add-default-role-to-users.ts"],"mappings":";;;;;cAMa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;cAGhC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;cAKjC,2BAAA,EAA6B,SAAA,QACjC,gCAAA,SACA,iCAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -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}).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":"
|
|
1
|
+
{"version":3,"file":"add-default-role-to-users.mjs","names":[],"sources":["../../src/actions/add-default-role-to-users.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { sanity } from \"../app\";\n\nexport const 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: AppAction<\n typeof SanityAddDefaultRoleToUsersInput,\n typeof SanityAddDefaultRoleToUsersOutput,\n typeof sanity.credential\n> = 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":";;;AAcA,MAAa,8BAIT,OAAO,oCAAoC;CAC7C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhB8C,EAAE,OAAO,EACvD,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,2FAA2F,EAC9H,CAcS;CACP,QAd+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,2DAWhB;AACV,CAAC"}
|
|
@@ -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}).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":"
|
|
1
|
+
{"version":3,"file":"create-attr-definition.cjs","names":["z","action"],"sources":["../../src/actions/create-attr-definition.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { sanity } from \"../app\";\n\nexport const 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: AppAction<\n typeof SanityCreateAttrDefinitionInput,\n typeof SanityCreateAttrDefinitionOutput,\n typeof sanity.credential\n> = 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":";;;;AAMA,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,6BAITC,eAAAA,OAAO,iCAAiC;CAC1C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { sanity } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/create-attr-definition.d.ts
|
|
@@ -24,31 +26,7 @@ declare const SanityCreateAttrDefinitionOutput: z.ZodObject<{
|
|
|
24
26
|
updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
27
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
28
|
}, z.core.$loose>;
|
|
27
|
-
declare const sanityCreateAttrDefinition:
|
|
28
|
-
key: string;
|
|
29
|
-
type: "string" | "number" | "boolean";
|
|
30
|
-
resource_id: string;
|
|
31
|
-
resource_type: string;
|
|
32
|
-
list?: boolean | undefined;
|
|
33
|
-
read_only?: boolean | undefined;
|
|
34
|
-
description?: string | undefined;
|
|
35
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"sanity", z.ZodObject<{
|
|
36
|
-
connectionId: z.ZodString;
|
|
37
|
-
entityId: z.ZodString;
|
|
38
|
-
instanceId: z.ZodString;
|
|
39
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
40
|
-
subdomain: z.ZodString;
|
|
41
|
-
version: z.ZodString;
|
|
42
|
-
generic_api_key: z.ZodString;
|
|
43
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"sanity", z.ZodObject<{
|
|
44
|
-
connectionId: z.ZodString;
|
|
45
|
-
entityId: z.ZodString;
|
|
46
|
-
instanceId: z.ZodString;
|
|
47
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
48
|
-
subdomain: z.ZodString;
|
|
49
|
-
version: z.ZodString;
|
|
50
|
-
generic_api_key: z.ZodString;
|
|
51
|
-
}, z.core.$strip>>]>;
|
|
29
|
+
declare const sanityCreateAttrDefinition: AppAction<typeof SanityCreateAttrDefinitionInput, typeof SanityCreateAttrDefinitionOutput, typeof sanity.credential>;
|
|
52
30
|
//#endregion
|
|
53
31
|
export { sanityCreateAttrDefinition };
|
|
54
32
|
//# sourceMappingURL=create-attr-definition.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-attr-definition.d.cts","names":[],"sources":["../../src/actions/create-attr-definition.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-attr-definition.d.cts","names":[],"sources":["../../src/actions/create-attr-definition.ts"],"mappings":";;;;;cAMa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAS/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;cAWhC,0BAAA,EAA4B,SAAA,QAChC,+BAAA,SACA,gCAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { sanity } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/create-attr-definition.d.ts
|
|
@@ -24,31 +26,7 @@ declare const SanityCreateAttrDefinitionOutput: z.ZodObject<{
|
|
|
24
26
|
updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
27
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
28
|
}, z.core.$loose>;
|
|
27
|
-
declare const sanityCreateAttrDefinition:
|
|
28
|
-
key: string;
|
|
29
|
-
type: "string" | "number" | "boolean";
|
|
30
|
-
resource_id: string;
|
|
31
|
-
resource_type: string;
|
|
32
|
-
list?: boolean | undefined;
|
|
33
|
-
read_only?: boolean | undefined;
|
|
34
|
-
description?: string | undefined;
|
|
35
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"sanity", z.ZodObject<{
|
|
36
|
-
connectionId: z.ZodString;
|
|
37
|
-
entityId: z.ZodString;
|
|
38
|
-
instanceId: z.ZodString;
|
|
39
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
40
|
-
subdomain: z.ZodString;
|
|
41
|
-
version: z.ZodString;
|
|
42
|
-
generic_api_key: z.ZodString;
|
|
43
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"sanity", z.ZodObject<{
|
|
44
|
-
connectionId: z.ZodString;
|
|
45
|
-
entityId: z.ZodString;
|
|
46
|
-
instanceId: z.ZodString;
|
|
47
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
48
|
-
subdomain: z.ZodString;
|
|
49
|
-
version: z.ZodString;
|
|
50
|
-
generic_api_key: z.ZodString;
|
|
51
|
-
}, z.core.$strip>>]>;
|
|
29
|
+
declare const sanityCreateAttrDefinition: AppAction<typeof SanityCreateAttrDefinitionInput, typeof SanityCreateAttrDefinitionOutput, typeof sanity.credential>;
|
|
52
30
|
//#endregion
|
|
53
31
|
export { sanityCreateAttrDefinition };
|
|
54
32
|
//# sourceMappingURL=create-attr-definition.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-attr-definition.d.mts","names":[],"sources":["../../src/actions/create-attr-definition.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-attr-definition.d.mts","names":[],"sources":["../../src/actions/create-attr-definition.ts"],"mappings":";;;;;cAMa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAS/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;cAWhC,0BAAA,EAA4B,SAAA,QAChC,+BAAA,SACA,gCAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -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}).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":"
|
|
1
|
+
{"version":3,"file":"create-attr-definition.mjs","names":[],"sources":["../../src/actions/create-attr-definition.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { sanity } from \"../app\";\n\nexport const 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: AppAction<\n typeof SanityCreateAttrDefinitionInput,\n typeof SanityCreateAttrDefinitionOutput,\n typeof sanity.credential\n> = 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":";;;AA0BA,MAAa,6BAIT,OAAO,iCAAiC;CAC1C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA5B6C,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,mEAoBH;CACP,QApB8C,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,uDAWhB;AACV,CAAC"}
|
|
@@ -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.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":"
|
|
1
|
+
{"version":3,"file":"create-prompt-post.cjs","names":["z","action"],"sources":["../../src/actions/create-prompt-post.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { sanity } from \"../app\";\n\nexport const 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: AppAction<\n typeof SanityCreatePromptPostInput,\n typeof SanityCreatePromptPostOutput,\n typeof sanity.credential\n> = 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":";;;;AAMA,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,yBAITC,eAAAA,OAAO,6BAA6B;CACtC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { sanity } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/create-prompt-post.d.ts
|
|
@@ -17,29 +19,7 @@ declare const SanityCreatePromptPostOutput: z.ZodObject<{
|
|
|
17
19
|
finishReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
20
|
raw_response: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
21
|
}, z.core.$loose>;
|
|
20
|
-
declare const sanityCreatePromptPost:
|
|
21
|
-
message: string;
|
|
22
|
-
organizationId: string;
|
|
23
|
-
config?: Record<string, unknown> | undefined;
|
|
24
|
-
format?: "markdown" | "directives" | undefined;
|
|
25
|
-
instructions?: string | undefined;
|
|
26
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"sanity", z.ZodObject<{
|
|
27
|
-
connectionId: z.ZodString;
|
|
28
|
-
entityId: z.ZodString;
|
|
29
|
-
instanceId: z.ZodString;
|
|
30
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
31
|
-
subdomain: z.ZodString;
|
|
32
|
-
version: z.ZodString;
|
|
33
|
-
generic_api_key: z.ZodString;
|
|
34
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"sanity", z.ZodObject<{
|
|
35
|
-
connectionId: z.ZodString;
|
|
36
|
-
entityId: z.ZodString;
|
|
37
|
-
instanceId: z.ZodString;
|
|
38
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
39
|
-
subdomain: z.ZodString;
|
|
40
|
-
version: z.ZodString;
|
|
41
|
-
generic_api_key: z.ZodString;
|
|
42
|
-
}, z.core.$strip>>]>;
|
|
22
|
+
declare const sanityCreatePromptPost: AppAction<typeof SanityCreatePromptPostInput, typeof SanityCreatePromptPostOutput, typeof sanity.credential>;
|
|
43
23
|
//#endregion
|
|
44
24
|
export { sanityCreatePromptPost };
|
|
45
25
|
//# sourceMappingURL=create-prompt-post.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-prompt-post.d.cts","names":[],"sources":["../../src/actions/create-prompt-post.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-prompt-post.d.cts","names":[],"sources":["../../src/actions/create-prompt-post.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;cAO3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;cAO5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { sanity } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/create-prompt-post.d.ts
|
|
@@ -17,29 +19,7 @@ declare const SanityCreatePromptPostOutput: z.ZodObject<{
|
|
|
17
19
|
finishReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
20
|
raw_response: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
21
|
}, z.core.$loose>;
|
|
20
|
-
declare const sanityCreatePromptPost:
|
|
21
|
-
message: string;
|
|
22
|
-
organizationId: string;
|
|
23
|
-
config?: Record<string, unknown> | undefined;
|
|
24
|
-
format?: "markdown" | "directives" | undefined;
|
|
25
|
-
instructions?: string | undefined;
|
|
26
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"sanity", z.ZodObject<{
|
|
27
|
-
connectionId: z.ZodString;
|
|
28
|
-
entityId: z.ZodString;
|
|
29
|
-
instanceId: z.ZodString;
|
|
30
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
31
|
-
subdomain: z.ZodString;
|
|
32
|
-
version: z.ZodString;
|
|
33
|
-
generic_api_key: z.ZodString;
|
|
34
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"sanity", z.ZodObject<{
|
|
35
|
-
connectionId: z.ZodString;
|
|
36
|
-
entityId: z.ZodString;
|
|
37
|
-
instanceId: z.ZodString;
|
|
38
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
39
|
-
subdomain: z.ZodString;
|
|
40
|
-
version: z.ZodString;
|
|
41
|
-
generic_api_key: z.ZodString;
|
|
42
|
-
}, z.core.$strip>>]>;
|
|
22
|
+
declare const sanityCreatePromptPost: AppAction<typeof SanityCreatePromptPostInput, typeof SanityCreatePromptPostOutput, typeof sanity.credential>;
|
|
43
23
|
//#endregion
|
|
44
24
|
export { sanityCreatePromptPost };
|
|
45
25
|
//# sourceMappingURL=create-prompt-post.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-prompt-post.d.mts","names":[],"sources":["../../src/actions/create-prompt-post.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-prompt-post.d.mts","names":[],"sources":["../../src/actions/create-prompt-post.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;cAO3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;cAO5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -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.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":"
|
|
1
|
+
{"version":3,"file":"create-prompt-post.mjs","names":[],"sources":["../../src/actions/create-prompt-post.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { sanity } from \"../app\";\n\nexport const 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: AppAction<\n typeof SanityCreatePromptPostInput,\n typeof SanityCreatePromptPostOutput,\n typeof sanity.credential\n> = 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":";;;AAoBA,MAAa,yBAIT,OAAO,6BAA6B;CACtC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAtByC,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,0LAgBH;CACP,QAhB0C,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,yCAWhB;AACV,CAAC"}
|
|
@@ -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}).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":"
|
|
1
|
+
{"version":3,"file":"delete-attr-definition.cjs","names":["z","action"],"sources":["../../src/actions/delete-attr-definition.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { sanity } from \"../app\";\n\nexport const 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: AppAction<\n typeof SanityDeleteAttrDefinitionInput,\n typeof SanityDeleteAttrDefinitionOutput,\n typeof sanity.credential\n> = 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":";;;;AAMA,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,6BAITC,eAAAA,OAAO,iCAAiC;CAC1C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { sanity } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/delete-attr-definition.d.ts
|
|
@@ -12,27 +14,7 @@ declare const SanityDeleteAttrDefinitionInput: z.ZodObject<{
|
|
|
12
14
|
declare const SanityDeleteAttrDefinitionOutput: z.ZodObject<{
|
|
13
15
|
deleted: z.ZodNullable<z.ZodBoolean>;
|
|
14
16
|
}, z.core.$loose>;
|
|
15
|
-
declare const sanityDeleteAttrDefinition:
|
|
16
|
-
resource_id: string;
|
|
17
|
-
definition_id: string;
|
|
18
|
-
resource_type: "organization" | "project";
|
|
19
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"sanity", z.ZodObject<{
|
|
20
|
-
connectionId: z.ZodString;
|
|
21
|
-
entityId: z.ZodString;
|
|
22
|
-
instanceId: z.ZodString;
|
|
23
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
24
|
-
subdomain: z.ZodString;
|
|
25
|
-
version: z.ZodString;
|
|
26
|
-
generic_api_key: z.ZodString;
|
|
27
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"sanity", z.ZodObject<{
|
|
28
|
-
connectionId: z.ZodString;
|
|
29
|
-
entityId: z.ZodString;
|
|
30
|
-
instanceId: z.ZodString;
|
|
31
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
32
|
-
subdomain: z.ZodString;
|
|
33
|
-
version: z.ZodString;
|
|
34
|
-
generic_api_key: z.ZodString;
|
|
35
|
-
}, z.core.$strip>>]>;
|
|
17
|
+
declare const sanityDeleteAttrDefinition: AppAction<typeof SanityDeleteAttrDefinitionInput, typeof SanityDeleteAttrDefinitionOutput, typeof sanity.credential>;
|
|
36
18
|
//#endregion
|
|
37
19
|
export { sanityDeleteAttrDefinition };
|
|
38
20
|
//# sourceMappingURL=delete-attr-definition.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-attr-definition.d.cts","names":[],"sources":["../../src/actions/delete-attr-definition.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"delete-attr-definition.d.cts","names":[],"sources":["../../src/actions/delete-attr-definition.ts"],"mappings":";;;;;cAMa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;cAK/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;cAIhC,0BAAA,EAA4B,SAAA,QAChC,+BAAA,SACA,gCAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { sanity } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/delete-attr-definition.d.ts
|
|
@@ -12,27 +14,7 @@ declare const SanityDeleteAttrDefinitionInput: z.ZodObject<{
|
|
|
12
14
|
declare const SanityDeleteAttrDefinitionOutput: z.ZodObject<{
|
|
13
15
|
deleted: z.ZodNullable<z.ZodBoolean>;
|
|
14
16
|
}, z.core.$loose>;
|
|
15
|
-
declare const sanityDeleteAttrDefinition:
|
|
16
|
-
resource_id: string;
|
|
17
|
-
definition_id: string;
|
|
18
|
-
resource_type: "organization" | "project";
|
|
19
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"sanity", z.ZodObject<{
|
|
20
|
-
connectionId: z.ZodString;
|
|
21
|
-
entityId: z.ZodString;
|
|
22
|
-
instanceId: z.ZodString;
|
|
23
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
24
|
-
subdomain: z.ZodString;
|
|
25
|
-
version: z.ZodString;
|
|
26
|
-
generic_api_key: z.ZodString;
|
|
27
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"sanity", z.ZodObject<{
|
|
28
|
-
connectionId: z.ZodString;
|
|
29
|
-
entityId: z.ZodString;
|
|
30
|
-
instanceId: z.ZodString;
|
|
31
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
32
|
-
subdomain: z.ZodString;
|
|
33
|
-
version: z.ZodString;
|
|
34
|
-
generic_api_key: z.ZodString;
|
|
35
|
-
}, z.core.$strip>>]>;
|
|
17
|
+
declare const sanityDeleteAttrDefinition: AppAction<typeof SanityDeleteAttrDefinitionInput, typeof SanityDeleteAttrDefinitionOutput, typeof sanity.credential>;
|
|
36
18
|
//#endregion
|
|
37
19
|
export { sanityDeleteAttrDefinition };
|
|
38
20
|
//# sourceMappingURL=delete-attr-definition.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-attr-definition.d.mts","names":[],"sources":["../../src/actions/delete-attr-definition.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"delete-attr-definition.d.mts","names":[],"sources":["../../src/actions/delete-attr-definition.ts"],"mappings":";;;;;cAMa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;cAK/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;cAIhC,0BAAA,EAA4B,SAAA,QAChC,+BAAA,SACA,gCAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -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}).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":"
|
|
1
|
+
{"version":3,"file":"delete-attr-definition.mjs","names":[],"sources":["../../src/actions/delete-attr-definition.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { sanity } from \"../app\";\n\nexport const 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: AppAction<\n typeof SanityDeleteAttrDefinitionInput,\n typeof SanityDeleteAttrDefinitionOutput,\n typeof sanity.credential\n> = 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":";;;AAeA,MAAa,6BAIT,OAAO,iCAAiC;CAC1C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAjB6C,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,CAaS;CACP,QAb8C,EAAE,OAAO,EACvD,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,EACvG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAWhB;AACV,CAAC"}
|
|
@@ -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}).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":"
|
|
1
|
+
{"version":3,"file":"delete-document.cjs","names":["z","action"],"sources":["../../src/actions/delete-document.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { sanity } from \"../app\";\n\nexport const 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: AppAction<\n typeof SanityDeleteDocumentInput,\n typeof SanityDeleteDocumentOutput,\n typeof sanity.credential\n> = 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":";;;;AAMA,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,uBAITC,eAAAA,OAAO,0BAA0B;CACnC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|