@keystrokehq/sanity 0.1.4 → 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 -3
- package/dist/actions/add-default-role-to-users.d.cts.map +1 -1
- package/dist/actions/add-default-role-to-users.d.mts +3 -3
- 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 -9
- package/dist/actions/create-attr-definition.d.cts.map +1 -1
- package/dist/actions/create-attr-definition.d.mts +3 -9
- 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 -7
- package/dist/actions/create-prompt-post.d.cts.map +1 -1
- package/dist/actions/create-prompt-post.d.mts +3 -7
- 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 -5
- package/dist/actions/delete-attr-definition.d.cts.map +1 -1
- package/dist/actions/delete-attr-definition.d.mts +3 -5
- 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 -11
- package/dist/actions/delete-document.d.cts.map +1 -1
- package/dist/actions/delete-document.d.mts +3 -11
- 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 -8
- package/dist/actions/delete-user-attributes.d.cts.map +1 -1
- package/dist/actions/delete-user-attributes.d.mts +3 -8
- 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 -5
- package/dist/actions/get-document.d.cts.map +1 -1
- package/dist/actions/get-document.d.mts +3 -5
- 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 -5
- package/dist/actions/get-invite-by-token.d.cts.map +1 -1
- package/dist/actions/get-invite-by-token.d.mts +3 -5
- 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 -4
- package/dist/actions/get-org-role.d.cts.map +1 -1
- package/dist/actions/get-org-role.d.mts +3 -4
- 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 -5
- package/dist/actions/get-permission.d.cts.map +1 -1
- package/dist/actions/get-permission.d.mts +3 -5
- 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 -3
- package/dist/actions/get-project.d.cts.map +1 -1
- package/dist/actions/get-project.d.mts +3 -3
- 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 -7
- package/dist/actions/get-robots.d.cts.map +1 -1
- package/dist/actions/get-robots.d.mts +3 -7
- 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 -5
- package/dist/actions/get-role.d.cts.map +1 -1
- package/dist/actions/get-role.d.mts +3 -5
- 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 -6
- package/dist/actions/get-users.d.cts.map +1 -1
- package/dist/actions/get-users.d.mts +3 -6
- 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 -3
- package/dist/actions/list-org-roles.d.cts.map +1 -1
- package/dist/actions/list-org-roles.d.mts +3 -3
- 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 -6
- package/dist/actions/list-user-attributes.d.cts.map +1 -1
- package/dist/actions/list-user-attributes.d.mts +3 -6
- 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 -7
- package/dist/actions/query-all-screening.d.cts.map +1 -1
- package/dist/actions/query-all-screening.d.mts +3 -7
- 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 -8
- package/dist/actions/query-documents.d.cts.map +1 -1
- package/dist/actions/query-documents.d.mts +3 -8
- 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 -5
- package/dist/actions/update-org-acl.d.cts.map +1 -1
- package/dist/actions/update-org-acl.d.mts +3 -5
- 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 -6
- package/dist/actions/update-user-attributes-values.d.cts.map +1 -1
- package/dist/actions/update-user-attributes-values.d.mts +3 -6
- 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 -1
- package/dist/actions/validate-credential.d.cts.map +1 -1
- package/dist/actions/validate-credential.d.mts +3 -1
- 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 +10 -2
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +9 -1
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +9 -1
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +7 -2
- 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
|
@@ -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/list-user-attributes.d.ts
|
|
@@ -18,12 +20,7 @@ declare const SanityListUserAttributesOutput: z.ZodObject<{
|
|
|
18
20
|
sanityUserId: z.ZodNullable<z.ZodString>;
|
|
19
21
|
organizationId: z.ZodNullable<z.ZodString>;
|
|
20
22
|
}, z.core.$loose>;
|
|
21
|
-
declare const sanityListUserAttributes:
|
|
22
|
-
sanity_user_id: string;
|
|
23
|
-
organization_id: string;
|
|
24
|
-
limit?: number | undefined;
|
|
25
|
-
cursor?: string | undefined;
|
|
26
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
23
|
+
declare const sanityListUserAttributes: AppAction<typeof SanityListUserAttributesInput, typeof SanityListUserAttributesOutput, typeof sanity.credential>;
|
|
27
24
|
//#endregion
|
|
28
25
|
export { sanityListUserAttributes };
|
|
29
26
|
//# sourceMappingURL=list-user-attributes.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-user-attributes.d.mts","names":[],"sources":["../../src/actions/list-user-attributes.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-user-attributes.d.mts","names":[],"sources":["../../src/actions/list-user-attributes.ts"],"mappings":";;;;;cAMa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;cAa7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;cAM9B,wBAAA,EAA0B,SAAA,QAC9B,6BAAA,SACA,8BAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-user-attributes.mjs","names":[],"sources":["../../src/actions/list-user-attributes.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityListUserAttributesInput = z.object({\n limit: z.number().int().default(50).describe(\"Maximum number of attributes to return\").optional(),\n cursor: z.string().describe(\"The last attribute key from the previous page (used for pagination)\").optional(),\n sanity_user_id: z.string().describe(\"Unique identifier of the Sanity user\"),\n organization_id: z.string().describe(\"Unique identifier of the organization\"),\n}).describe(\"Request model for retrieving user attributes from a Sanity organization.\");\nconst SanityListUserAttributes_AttributeItemSchema = z.object({\n key: z.string().describe(\"The key/name of the attribute\").nullable(),\n type: z.string().describe(\"The type of the attribute\").nullable(),\n values: z.record(z.string(), z.unknown()).describe(\"Possible values for this attribute\").nullable().optional(),\n active_value: z.record(z.string(), z.unknown()).describe(\"The active value for this attribute\").nullable().optional(),\n active_source: z.string().describe(\"The source of the active value\").nullable().optional(),\n}).passthrough().describe(\"Individual user attribute item.\");\nexport const SanityListUserAttributesOutput = z.object({\n attributes: z.array(SanityListUserAttributes_AttributeItemSchema).describe(\"List of user attributes\"),\n sanityUserId: z.string().describe(\"ID of the user\").nullable(),\n organizationId: z.string().describe(\"ID of the organization\").nullable(),\n}).passthrough().describe(\"Response model for user attributes retrieval.\");\n\nexport const sanityListUserAttributes = action(\"SANITY_LIST_USER_ATTRIBUTES\", {\n slug: \"sanity-list-user-attributes\",\n name: \"List User Attributes\",\n description: \"Tool to retrieve user attributes from a Sanity organization. Use when you need to get the attributes (such as roles, permissions, or custom properties) associated with a specific user in a Sanity organization. Supports pagination via the cursor parameter.\",\n input: SanityListUserAttributesInput,\n output: SanityListUserAttributesOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-user-attributes.mjs","names":[],"sources":["../../src/actions/list-user-attributes.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 SanityListUserAttributesInput = z.object({\n limit: z.number().int().default(50).describe(\"Maximum number of attributes to return\").optional(),\n cursor: z.string().describe(\"The last attribute key from the previous page (used for pagination)\").optional(),\n sanity_user_id: z.string().describe(\"Unique identifier of the Sanity user\"),\n organization_id: z.string().describe(\"Unique identifier of the organization\"),\n}).describe(\"Request model for retrieving user attributes from a Sanity organization.\");\nconst SanityListUserAttributes_AttributeItemSchema = z.object({\n key: z.string().describe(\"The key/name of the attribute\").nullable(),\n type: z.string().describe(\"The type of the attribute\").nullable(),\n values: z.record(z.string(), z.unknown()).describe(\"Possible values for this attribute\").nullable().optional(),\n active_value: z.record(z.string(), z.unknown()).describe(\"The active value for this attribute\").nullable().optional(),\n active_source: z.string().describe(\"The source of the active value\").nullable().optional(),\n}).passthrough().describe(\"Individual user attribute item.\");\nexport const SanityListUserAttributesOutput = z.object({\n attributes: z.array(SanityListUserAttributes_AttributeItemSchema).describe(\"List of user attributes\"),\n sanityUserId: z.string().describe(\"ID of the user\").nullable(),\n organizationId: z.string().describe(\"ID of the organization\").nullable(),\n}).passthrough().describe(\"Response model for user attributes retrieval.\");\n\nexport const sanityListUserAttributes: AppAction<\n typeof SanityListUserAttributesInput,\n typeof SanityListUserAttributesOutput,\n typeof sanity.credential\n> = action(\"SANITY_LIST_USER_ATTRIBUTES\", {\n slug: \"sanity-list-user-attributes\",\n name: \"List User Attributes\",\n description: \"Tool to retrieve user attributes from a Sanity organization. Use when you need to get the attributes (such as roles, permissions, or custom properties) associated with a specific user in a Sanity organization. Supports pagination via the cursor parameter.\",\n input: SanityListUserAttributesInput,\n output: SanityListUserAttributesOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,gCAAgC,EAAE,OAAO;CACpD,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAChG,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CAC5G,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CAC1E,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;AAC9E,CAAC,CAAC,CAAC,SAAS,0EAA0E;AACtF,MAAM,+CAA+C,EAAE,OAAO;CAC5D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACnE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAChE,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,cAAc,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpH,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iCAAiC;AAO3D,MAAa,2BAIT,OAAO,+BAA+B;CACxC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAf4C,EAAE,OAAO;EACrD,YAAY,EAAE,MAAM,4CAA4C,CAAC,CAAC,SAAS,yBAAyB;EACpG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;EAC7D,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CACzE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-all-screening.cjs","names":["z","action"],"sources":["../../src/actions/query-all-screening.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityQueryAllScreeningInput = z.object({\n query: z.string().default(\"*[_type == 'screening']\").describe(\"GROQ query string to execute. Defaults to querying all documents of type 'screening'.\").optional(),\n params: z.record(z.string(), z.unknown()).describe(\"Optional parameters to pass to the GROQ query. Use $variableName syntax in query.\").optional(),\n dataset: z.string().default(\"production\").describe(\"The Sanity dataset to query. Defaults to 'production'.\").optional(),\n explain: z.boolean().describe(\"If true, returns query execution plan details.\").optional(),\n resultSourceMap: z.boolean().describe(\"If true, includes source map information in the response.\").optional(),\n});\nexport const SanityQueryAllScreeningOutput = z.object({\n ms: z.number().int().describe(\"Time taken to execute the query in milliseconds.\").nullable().optional(),\n query: z.string().describe(\"The GROQ query that was executed.\").nullable().optional(),\n result: z.array(z.record(z.string(), z.unknown())).describe(\"Array of screening documents matching the query.\").nullable().optional(),\n syncTags: z.array(z.string()).describe(\"Tags for cache synchronization.\").nullable().optional(),\n}).passthrough();\n\nexport const sanityQueryAllScreening = action(\"SANITY_QUERY_ALL_SCREENING\", {\n slug: \"sanity-query-all-screening\",\n name: \"Query All Screening\",\n description: \"Execute a GROQ query to fetch all screening documents from Sanity. Uses the Sanity HTTP query API endpoint. Default query retrieves all documents of type 'screening'. Supports optional query parameters for dynamic queries.\",\n input: SanityQueryAllScreeningInput,\n output: SanityQueryAllScreeningOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"query-all-screening.cjs","names":["z","action"],"sources":["../../src/actions/query-all-screening.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 SanityQueryAllScreeningInput = z.object({\n query: z.string().default(\"*[_type == 'screening']\").describe(\"GROQ query string to execute. Defaults to querying all documents of type 'screening'.\").optional(),\n params: z.record(z.string(), z.unknown()).describe(\"Optional parameters to pass to the GROQ query. Use $variableName syntax in query.\").optional(),\n dataset: z.string().default(\"production\").describe(\"The Sanity dataset to query. Defaults to 'production'.\").optional(),\n explain: z.boolean().describe(\"If true, returns query execution plan details.\").optional(),\n resultSourceMap: z.boolean().describe(\"If true, includes source map information in the response.\").optional(),\n});\nexport const SanityQueryAllScreeningOutput = z.object({\n ms: z.number().int().describe(\"Time taken to execute the query in milliseconds.\").nullable().optional(),\n query: z.string().describe(\"The GROQ query that was executed.\").nullable().optional(),\n result: z.array(z.record(z.string(), z.unknown())).describe(\"Array of screening documents matching the query.\").nullable().optional(),\n syncTags: z.array(z.string()).describe(\"Tags for cache synchronization.\").nullable().optional(),\n}).passthrough();\n\nexport const sanityQueryAllScreening: AppAction<\n typeof SanityQueryAllScreeningInput,\n typeof SanityQueryAllScreeningOutput,\n typeof sanity.credential\n> = action(\"SANITY_QUERY_ALL_SCREENING\", {\n slug: \"sanity-query-all-screening\",\n name: \"Query All Screening\",\n description: \"Execute a GROQ query to fetch all screening documents from Sanity. Uses the Sanity HTTP query API endpoint. Default query retrieves all documents of type 'screening'. Supports optional query parameters for dynamic queries.\",\n input: SanityQueryAllScreeningInput,\n output: SanityQueryAllScreeningOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,yBAAyB,CAAC,CAAC,SAAS,uFAAuF,CAAC,CAAC,SAAS;CAChK,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS;CACjJ,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,YAAY,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CACtH,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACzF,iBAAiBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;AAC9G,CAAC;AACD,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpI,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChG,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,0BAITC,eAAAA,OAAO,8BAA8B;CACvC,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/query-all-screening.d.ts
|
|
@@ -14,13 +16,7 @@ declare const SanityQueryAllScreeningOutput: z.ZodObject<{
|
|
|
14
16
|
result: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
15
17
|
syncTags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
16
18
|
}, z.core.$loose>;
|
|
17
|
-
declare const sanityQueryAllScreening:
|
|
18
|
-
query?: string | undefined;
|
|
19
|
-
params?: Record<string, unknown> | undefined;
|
|
20
|
-
dataset?: string | undefined;
|
|
21
|
-
explain?: boolean | undefined;
|
|
22
|
-
resultSourceMap?: boolean | undefined;
|
|
23
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
19
|
+
declare const sanityQueryAllScreening: AppAction<typeof SanityQueryAllScreeningInput, typeof SanityQueryAllScreeningOutput, typeof sanity.credential>;
|
|
24
20
|
//#endregion
|
|
25
21
|
export { sanityQueryAllScreening };
|
|
26
22
|
//# sourceMappingURL=query-all-screening.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-all-screening.d.cts","names":[],"sources":["../../src/actions/query-all-screening.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"query-all-screening.d.cts","names":[],"sources":["../../src/actions/query-all-screening.ts"],"mappings":";;;;;cAMa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;cAO5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;cAO7B,uBAAA,EAAyB,SAAA,QAC7B,4BAAA,SACA,6BAAA,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/query-all-screening.d.ts
|
|
@@ -14,13 +16,7 @@ declare const SanityQueryAllScreeningOutput: z.ZodObject<{
|
|
|
14
16
|
result: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
15
17
|
syncTags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
16
18
|
}, z.core.$loose>;
|
|
17
|
-
declare const sanityQueryAllScreening:
|
|
18
|
-
query?: string | undefined;
|
|
19
|
-
params?: Record<string, unknown> | undefined;
|
|
20
|
-
dataset?: string | undefined;
|
|
21
|
-
explain?: boolean | undefined;
|
|
22
|
-
resultSourceMap?: boolean | undefined;
|
|
23
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
19
|
+
declare const sanityQueryAllScreening: AppAction<typeof SanityQueryAllScreeningInput, typeof SanityQueryAllScreeningOutput, typeof sanity.credential>;
|
|
24
20
|
//#endregion
|
|
25
21
|
export { sanityQueryAllScreening };
|
|
26
22
|
//# sourceMappingURL=query-all-screening.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-all-screening.d.mts","names":[],"sources":["../../src/actions/query-all-screening.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"query-all-screening.d.mts","names":[],"sources":["../../src/actions/query-all-screening.ts"],"mappings":";;;;;cAMa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;cAO5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;cAO7B,uBAAA,EAAyB,SAAA,QAC7B,4BAAA,SACA,6BAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-all-screening.mjs","names":[],"sources":["../../src/actions/query-all-screening.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityQueryAllScreeningInput = z.object({\n query: z.string().default(\"*[_type == 'screening']\").describe(\"GROQ query string to execute. Defaults to querying all documents of type 'screening'.\").optional(),\n params: z.record(z.string(), z.unknown()).describe(\"Optional parameters to pass to the GROQ query. Use $variableName syntax in query.\").optional(),\n dataset: z.string().default(\"production\").describe(\"The Sanity dataset to query. Defaults to 'production'.\").optional(),\n explain: z.boolean().describe(\"If true, returns query execution plan details.\").optional(),\n resultSourceMap: z.boolean().describe(\"If true, includes source map information in the response.\").optional(),\n});\nexport const SanityQueryAllScreeningOutput = z.object({\n ms: z.number().int().describe(\"Time taken to execute the query in milliseconds.\").nullable().optional(),\n query: z.string().describe(\"The GROQ query that was executed.\").nullable().optional(),\n result: z.array(z.record(z.string(), z.unknown())).describe(\"Array of screening documents matching the query.\").nullable().optional(),\n syncTags: z.array(z.string()).describe(\"Tags for cache synchronization.\").nullable().optional(),\n}).passthrough();\n\nexport const sanityQueryAllScreening = action(\"SANITY_QUERY_ALL_SCREENING\", {\n slug: \"sanity-query-all-screening\",\n name: \"Query All Screening\",\n description: \"Execute a GROQ query to fetch all screening documents from Sanity. Uses the Sanity HTTP query API endpoint. Default query retrieves all documents of type 'screening'. Supports optional query parameters for dynamic queries.\",\n input: SanityQueryAllScreeningInput,\n output: SanityQueryAllScreeningOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"query-all-screening.mjs","names":[],"sources":["../../src/actions/query-all-screening.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 SanityQueryAllScreeningInput = z.object({\n query: z.string().default(\"*[_type == 'screening']\").describe(\"GROQ query string to execute. Defaults to querying all documents of type 'screening'.\").optional(),\n params: z.record(z.string(), z.unknown()).describe(\"Optional parameters to pass to the GROQ query. Use $variableName syntax in query.\").optional(),\n dataset: z.string().default(\"production\").describe(\"The Sanity dataset to query. Defaults to 'production'.\").optional(),\n explain: z.boolean().describe(\"If true, returns query execution plan details.\").optional(),\n resultSourceMap: z.boolean().describe(\"If true, includes source map information in the response.\").optional(),\n});\nexport const SanityQueryAllScreeningOutput = z.object({\n ms: z.number().int().describe(\"Time taken to execute the query in milliseconds.\").nullable().optional(),\n query: z.string().describe(\"The GROQ query that was executed.\").nullable().optional(),\n result: z.array(z.record(z.string(), z.unknown())).describe(\"Array of screening documents matching the query.\").nullable().optional(),\n syncTags: z.array(z.string()).describe(\"Tags for cache synchronization.\").nullable().optional(),\n}).passthrough();\n\nexport const sanityQueryAllScreening: AppAction<\n typeof SanityQueryAllScreeningInput,\n typeof SanityQueryAllScreeningOutput,\n typeof sanity.credential\n> = action(\"SANITY_QUERY_ALL_SCREENING\", {\n slug: \"sanity-query-all-screening\",\n name: \"Query All Screening\",\n description: \"Execute a GROQ query to fetch all screening documents from Sanity. Uses the Sanity HTTP query API endpoint. Default query retrieves all documents of type 'screening'. Supports optional query parameters for dynamic queries.\",\n input: SanityQueryAllScreeningInput,\n output: SanityQueryAllScreeningOutput,\n});\n"],"mappings":";;;AAoBA,MAAa,0BAIT,OAAO,8BAA8B;CACvC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAtB0C,EAAE,OAAO;EACnD,OAAO,EAAE,OAAO,CAAC,CAAC,QAAQ,yBAAyB,CAAC,CAAC,SAAS,uFAAuF,CAAC,CAAC,SAAS;EAChK,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS;EACjJ,SAAS,EAAE,OAAO,CAAC,CAAC,QAAQ,YAAY,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;EACtH,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;EACzF,iBAAiB,EAAE,QAAQ,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CAC9G,CAgBS;CACP,QAhB2C,EAAE,OAAO;EACpD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtG,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpF,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpI,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,CAAC,CAAC,CAAC,YAWO;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-documents.cjs","names":["z","action"],"sources":["../../src/actions/query-documents.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityQueryDocumentsInput = z.object({\n query: z.string().describe(\"The GROQ query string to execute. GROQ is Sanity's query language for fetching and transforming documents.\"),\n params: z.record(z.string(), z.unknown()).describe(\"Optional parameters for the GROQ query. Use $variableName syntax in the query string, then pass the values here (e.g., query='*[_type == $type]' with params={'type': 'post'}).\").optional(),\n useCdn: z.boolean().describe(\"Whether to use Sanity's CDN for faster response times. Recommended for read-heavy workloads with data that doesn't change frequently.\").optional(),\n dataset: z.string().describe(\"The dataset name to query within the project (e.g., 'production', 'staging').\"),\n project_id: z.string().describe(\"The Sanity project ID to query. This identifies which project's data to access.\"),\n perspective: z.enum([\"published\", \"previewDrafts\", \"raw\"]).describe(\"Perspective determines which version of documents to query.\").optional(),\n}).describe(\"Request parameters for querying documents with GROQ.\");\nconst SanityQueryDocuments_SanityDocumentSchema = z.object({\n _id: z.string().describe(\"The unique identifier of the document.\").nullable().optional(),\n _rev: z.string().describe(\"The document revision identifier.\").nullable().optional(),\n _type: z.string().describe(\"The document type/schema name.\").nullable().optional(),\n _createdAt: z.string().describe(\"ISO 8601 timestamp when the document was created.\").nullable().optional(),\n _updatedAt: z.string().describe(\"ISO 8601 timestamp when the document was last updated.\").nullable().optional(),\n}).passthrough().describe(\"A Sanity document returned by a GROQ query.\");\nexport const SanityQueryDocumentsOutput = z.object({\n ms: z.number().int().describe(\"Time taken to execute the query in milliseconds.\").nullable().optional(),\n query: z.string().describe(\"The GROQ query that was executed.\").nullable().optional(),\n result: z.array(SanityQueryDocuments_SanityDocumentSchema).describe(\"Array of documents matching the query. Each document contains at minimum the Sanity system fields (_id, _type, _createdAt, _updatedAt, _rev) plus any additional fields from the query projection.\").nullable().optional(),\n}).passthrough().describe(\"Response from querying documents.\");\n\nexport const sanityQueryDocuments = action(\"SANITY_QUERY_DOCUMENTS\", {\n slug: \"sanity-query-documents\",\n name: \"Query Documents\",\n description: \"Execute an arbitrary GROQ query against a Sanity dataset. GROQ is Sanity's query language for fetching and transforming content. This is a general-purpose query action distinct from any screening-specific tools. Use this action when you need to query documents from a Sanity dataset using custom GROQ queries. Supports optional parameters, perspective control, and CDN optimization.\",\n input: SanityQueryDocumentsInput,\n output: SanityQueryDocumentsOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"query-documents.cjs","names":["z","action"],"sources":["../../src/actions/query-documents.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 SanityQueryDocumentsInput = z.object({\n query: z.string().describe(\"The GROQ query string to execute. GROQ is Sanity's query language for fetching and transforming documents.\"),\n params: z.record(z.string(), z.unknown()).describe(\"Optional parameters for the GROQ query. Use $variableName syntax in the query string, then pass the values here (e.g., query='*[_type == $type]' with params={'type': 'post'}).\").optional(),\n useCdn: z.boolean().describe(\"Whether to use Sanity's CDN for faster response times. Recommended for read-heavy workloads with data that doesn't change frequently.\").optional(),\n dataset: z.string().describe(\"The dataset name to query within the project (e.g., 'production', 'staging').\"),\n project_id: z.string().describe(\"The Sanity project ID to query. This identifies which project's data to access.\"),\n perspective: z.enum([\"published\", \"previewDrafts\", \"raw\"]).describe(\"Perspective determines which version of documents to query.\").optional(),\n}).describe(\"Request parameters for querying documents with GROQ.\");\nconst SanityQueryDocuments_SanityDocumentSchema = z.object({\n _id: z.string().describe(\"The unique identifier of the document.\").nullable().optional(),\n _rev: z.string().describe(\"The document revision identifier.\").nullable().optional(),\n _type: z.string().describe(\"The document type/schema name.\").nullable().optional(),\n _createdAt: z.string().describe(\"ISO 8601 timestamp when the document was created.\").nullable().optional(),\n _updatedAt: z.string().describe(\"ISO 8601 timestamp when the document was last updated.\").nullable().optional(),\n}).passthrough().describe(\"A Sanity document returned by a GROQ query.\");\nexport const SanityQueryDocumentsOutput = z.object({\n ms: z.number().int().describe(\"Time taken to execute the query in milliseconds.\").nullable().optional(),\n query: z.string().describe(\"The GROQ query that was executed.\").nullable().optional(),\n result: z.array(SanityQueryDocuments_SanityDocumentSchema).describe(\"Array of documents matching the query. Each document contains at minimum the Sanity system fields (_id, _type, _createdAt, _updatedAt, _rev) plus any additional fields from the query projection.\").nullable().optional(),\n}).passthrough().describe(\"Response from querying documents.\");\n\nexport const sanityQueryDocuments: AppAction<\n typeof SanityQueryDocumentsInput,\n typeof SanityQueryDocumentsOutput,\n typeof sanity.credential\n> = action(\"SANITY_QUERY_DOCUMENTS\", {\n slug: \"sanity-query-documents\",\n name: \"Query Documents\",\n description: \"Execute an arbitrary GROQ query against a Sanity dataset. GROQ is Sanity's query language for fetching and transforming content. This is a general-purpose query action distinct from any screening-specific tools. Use this action when you need to query documents from a Sanity dataset using custom GROQ queries. Supports optional parameters, perspective control, and CDN optimization.\",\n input: SanityQueryDocumentsInput,\n output: SanityQueryDocumentsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4GAA4G;CACvI,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,iLAAiL,CAAC,CAAC,SAAS;CAC/O,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,uIAAuI,CAAC,CAAC,SAAS;CAC/K,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E;CAC5G,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF;CACjH,aAAaA,IAAAA,EAAE,KAAK;EAAC;EAAa;EAAiB;CAAK,CAAC,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;AAC9I,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAM,4CAA4CA,IAAAA,EAAE,OAAO;CACzD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AACvE,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,QAAQA,IAAAA,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,oMAAoM,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChS,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mCAAmC;AAE7D,MAAa,uBAITC,eAAAA,OAAO,0BAA0B;CACnC,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/query-documents.d.ts
|
|
@@ -24,14 +26,7 @@ declare const SanityQueryDocumentsOutput: z.ZodObject<{
|
|
|
24
26
|
_updatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
27
|
}, z.core.$loose>>>>;
|
|
26
28
|
}, z.core.$loose>;
|
|
27
|
-
declare const sanityQueryDocuments:
|
|
28
|
-
query: string;
|
|
29
|
-
dataset: string;
|
|
30
|
-
project_id: string;
|
|
31
|
-
params?: Record<string, unknown> | undefined;
|
|
32
|
-
useCdn?: boolean | undefined;
|
|
33
|
-
perspective?: "published" | "previewDrafts" | "raw" | undefined;
|
|
34
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
29
|
+
declare const sanityQueryDocuments: AppAction<typeof SanityQueryDocumentsInput, typeof SanityQueryDocumentsOutput, typeof sanity.credential>;
|
|
35
30
|
//#endregion
|
|
36
31
|
export { sanityQueryDocuments };
|
|
37
32
|
//# sourceMappingURL=query-documents.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-documents.d.cts","names":[],"sources":["../../src/actions/query-documents.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"query-documents.d.cts","names":[],"sources":["../../src/actions/query-documents.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;cAezB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;cAM1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,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/query-documents.d.ts
|
|
@@ -24,14 +26,7 @@ declare const SanityQueryDocumentsOutput: z.ZodObject<{
|
|
|
24
26
|
_updatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
27
|
}, z.core.$loose>>>>;
|
|
26
28
|
}, z.core.$loose>;
|
|
27
|
-
declare const sanityQueryDocuments:
|
|
28
|
-
query: string;
|
|
29
|
-
dataset: string;
|
|
30
|
-
project_id: string;
|
|
31
|
-
params?: Record<string, unknown> | undefined;
|
|
32
|
-
useCdn?: boolean | undefined;
|
|
33
|
-
perspective?: "published" | "previewDrafts" | "raw" | undefined;
|
|
34
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
29
|
+
declare const sanityQueryDocuments: AppAction<typeof SanityQueryDocumentsInput, typeof SanityQueryDocumentsOutput, typeof sanity.credential>;
|
|
35
30
|
//#endregion
|
|
36
31
|
export { sanityQueryDocuments };
|
|
37
32
|
//# sourceMappingURL=query-documents.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-documents.d.mts","names":[],"sources":["../../src/actions/query-documents.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"query-documents.d.mts","names":[],"sources":["../../src/actions/query-documents.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;cAezB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;cAM1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-documents.mjs","names":[],"sources":["../../src/actions/query-documents.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityQueryDocumentsInput = z.object({\n query: z.string().describe(\"The GROQ query string to execute. GROQ is Sanity's query language for fetching and transforming documents.\"),\n params: z.record(z.string(), z.unknown()).describe(\"Optional parameters for the GROQ query. Use $variableName syntax in the query string, then pass the values here (e.g., query='*[_type == $type]' with params={'type': 'post'}).\").optional(),\n useCdn: z.boolean().describe(\"Whether to use Sanity's CDN for faster response times. Recommended for read-heavy workloads with data that doesn't change frequently.\").optional(),\n dataset: z.string().describe(\"The dataset name to query within the project (e.g., 'production', 'staging').\"),\n project_id: z.string().describe(\"The Sanity project ID to query. This identifies which project's data to access.\"),\n perspective: z.enum([\"published\", \"previewDrafts\", \"raw\"]).describe(\"Perspective determines which version of documents to query.\").optional(),\n}).describe(\"Request parameters for querying documents with GROQ.\");\nconst SanityQueryDocuments_SanityDocumentSchema = z.object({\n _id: z.string().describe(\"The unique identifier of the document.\").nullable().optional(),\n _rev: z.string().describe(\"The document revision identifier.\").nullable().optional(),\n _type: z.string().describe(\"The document type/schema name.\").nullable().optional(),\n _createdAt: z.string().describe(\"ISO 8601 timestamp when the document was created.\").nullable().optional(),\n _updatedAt: z.string().describe(\"ISO 8601 timestamp when the document was last updated.\").nullable().optional(),\n}).passthrough().describe(\"A Sanity document returned by a GROQ query.\");\nexport const SanityQueryDocumentsOutput = z.object({\n ms: z.number().int().describe(\"Time taken to execute the query in milliseconds.\").nullable().optional(),\n query: z.string().describe(\"The GROQ query that was executed.\").nullable().optional(),\n result: z.array(SanityQueryDocuments_SanityDocumentSchema).describe(\"Array of documents matching the query. Each document contains at minimum the Sanity system fields (_id, _type, _createdAt, _updatedAt, _rev) plus any additional fields from the query projection.\").nullable().optional(),\n}).passthrough().describe(\"Response from querying documents.\");\n\nexport const sanityQueryDocuments = action(\"SANITY_QUERY_DOCUMENTS\", {\n slug: \"sanity-query-documents\",\n name: \"Query Documents\",\n description: \"Execute an arbitrary GROQ query against a Sanity dataset. GROQ is Sanity's query language for fetching and transforming content. This is a general-purpose query action distinct from any screening-specific tools. Use this action when you need to query documents from a Sanity dataset using custom GROQ queries. Supports optional parameters, perspective control, and CDN optimization.\",\n input: SanityQueryDocumentsInput,\n output: SanityQueryDocumentsOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"query-documents.mjs","names":[],"sources":["../../src/actions/query-documents.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 SanityQueryDocumentsInput = z.object({\n query: z.string().describe(\"The GROQ query string to execute. GROQ is Sanity's query language for fetching and transforming documents.\"),\n params: z.record(z.string(), z.unknown()).describe(\"Optional parameters for the GROQ query. Use $variableName syntax in the query string, then pass the values here (e.g., query='*[_type == $type]' with params={'type': 'post'}).\").optional(),\n useCdn: z.boolean().describe(\"Whether to use Sanity's CDN for faster response times. Recommended for read-heavy workloads with data that doesn't change frequently.\").optional(),\n dataset: z.string().describe(\"The dataset name to query within the project (e.g., 'production', 'staging').\"),\n project_id: z.string().describe(\"The Sanity project ID to query. This identifies which project's data to access.\"),\n perspective: z.enum([\"published\", \"previewDrafts\", \"raw\"]).describe(\"Perspective determines which version of documents to query.\").optional(),\n}).describe(\"Request parameters for querying documents with GROQ.\");\nconst SanityQueryDocuments_SanityDocumentSchema = z.object({\n _id: z.string().describe(\"The unique identifier of the document.\").nullable().optional(),\n _rev: z.string().describe(\"The document revision identifier.\").nullable().optional(),\n _type: z.string().describe(\"The document type/schema name.\").nullable().optional(),\n _createdAt: z.string().describe(\"ISO 8601 timestamp when the document was created.\").nullable().optional(),\n _updatedAt: z.string().describe(\"ISO 8601 timestamp when the document was last updated.\").nullable().optional(),\n}).passthrough().describe(\"A Sanity document returned by a GROQ query.\");\nexport const SanityQueryDocumentsOutput = z.object({\n ms: z.number().int().describe(\"Time taken to execute the query in milliseconds.\").nullable().optional(),\n query: z.string().describe(\"The GROQ query that was executed.\").nullable().optional(),\n result: z.array(SanityQueryDocuments_SanityDocumentSchema).describe(\"Array of documents matching the query. Each document contains at minimum the Sanity system fields (_id, _type, _createdAt, _updatedAt, _rev) plus any additional fields from the query projection.\").nullable().optional(),\n}).passthrough().describe(\"Response from querying documents.\");\n\nexport const sanityQueryDocuments: AppAction<\n typeof SanityQueryDocumentsInput,\n typeof SanityQueryDocumentsOutput,\n typeof sanity.credential\n> = action(\"SANITY_QUERY_DOCUMENTS\", {\n slug: \"sanity-query-documents\",\n name: \"Query Documents\",\n description: \"Execute an arbitrary GROQ query against a Sanity dataset. GROQ is Sanity's query language for fetching and transforming content. This is a general-purpose query action distinct from any screening-specific tools. Use this action when you need to query documents from a Sanity dataset using custom GROQ queries. Supports optional parameters, perspective control, and CDN optimization.\",\n input: SanityQueryDocumentsInput,\n output: SanityQueryDocumentsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,4BAA4B,EAAE,OAAO;CAChD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4GAA4G;CACvI,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,iLAAiL,CAAC,CAAC,SAAS;CAC/O,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,uIAAuI,CAAC,CAAC,SAAS;CAC/K,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E;CAC5G,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF;CACjH,aAAa,EAAE,KAAK;EAAC;EAAa;EAAiB;CAAK,CAAC,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;AAC9I,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAM,4CAA4C,EAAE,OAAO;CACzD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AAOvE,MAAa,uBAIT,OAAO,0BAA0B;CACnC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAfwC,EAAE,OAAO;EACjD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtG,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpF,QAAQ,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,oMAAoM,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChS,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mCAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-org-acl.cjs","names":["z","action"],"sources":["../../src/actions/update-org-acl.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityUpdateOrgAclInput = z.object({\n role_name: z.string().describe(\"The role name to assign (e.g., 'administrator', 'member')\"),\n sanity_user_id: z.string().describe(\"The Sanity user ID to assign the role to\"),\n organization_id: z.string().describe(\"The ID of the organization\"),\n}).describe(\"Request model for updating organization ACL (assigning a role to a member).\");\nexport const SanityUpdateOrgAclOutput = z.object({\n success: z.boolean().describe(\"Whether the role was successfully assigned\").nullable(),\n}).passthrough().describe(\"Response model for organization ACL update.\");\n\nexport const sanityUpdateOrgAcl = action(\"SANITY_UPDATE_ORG_ACL\", {\n slug: \"sanity-update-org-acl\",\n name: \"Update Organization ACL\",\n description: \"Tool to assign a role to a member in a Sanity organization. Use when adding or modifying user roles within an organization.\",\n input: SanityUpdateOrgAclInput,\n output: SanityUpdateOrgAclOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-org-acl.cjs","names":["z","action"],"sources":["../../src/actions/update-org-acl.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 SanityUpdateOrgAclInput = z.object({\n role_name: z.string().describe(\"The role name to assign (e.g., 'administrator', 'member')\"),\n sanity_user_id: z.string().describe(\"The Sanity user ID to assign the role to\"),\n organization_id: z.string().describe(\"The ID of the organization\"),\n}).describe(\"Request model for updating organization ACL (assigning a role to a member).\");\nexport const SanityUpdateOrgAclOutput = z.object({\n success: z.boolean().describe(\"Whether the role was successfully assigned\").nullable(),\n}).passthrough().describe(\"Response model for organization ACL update.\");\n\nexport const sanityUpdateOrgAcl: AppAction<\n typeof SanityUpdateOrgAclInput,\n typeof SanityUpdateOrgAclOutput,\n typeof sanity.credential\n> = action(\"SANITY_UPDATE_ORG_ACL\", {\n slug: \"sanity-update-org-acl\",\n name: \"Update Organization ACL\",\n description: \"Tool to assign a role to a member in a Sanity organization. Use when adding or modifying user roles within an organization.\",\n input: SanityUpdateOrgAclInput,\n output: SanityUpdateOrgAclOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D;CAC1F,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;CAC9E,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;AACnE,CAAC,CAAC,CAAC,SAAS,6EAA6E;AACzF,MAAa,2BAA2BA,IAAAA,EAAE,OAAO,EAC/C,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,EACvF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AAEvE,MAAa,qBAITC,eAAAA,OAAO,yBAAyB;CAClC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { sanity } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/update-org-acl.d.ts
|
|
@@ -9,11 +11,7 @@ declare const SanityUpdateOrgAclInput: z.ZodObject<{
|
|
|
9
11
|
declare const SanityUpdateOrgAclOutput: z.ZodObject<{
|
|
10
12
|
success: z.ZodNullable<z.ZodBoolean>;
|
|
11
13
|
}, z.core.$loose>;
|
|
12
|
-
declare const sanityUpdateOrgAcl:
|
|
13
|
-
role_name: string;
|
|
14
|
-
sanity_user_id: string;
|
|
15
|
-
organization_id: string;
|
|
16
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
14
|
+
declare const sanityUpdateOrgAcl: AppAction<typeof SanityUpdateOrgAclInput, typeof SanityUpdateOrgAclOutput, typeof sanity.credential>;
|
|
17
15
|
//#endregion
|
|
18
16
|
export { sanityUpdateOrgAcl };
|
|
19
17
|
//# sourceMappingURL=update-org-acl.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-org-acl.d.cts","names":[],"sources":["../../src/actions/update-org-acl.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-org-acl.d.cts","names":[],"sources":["../../src/actions/update-org-acl.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;cAKvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;cAIxB,kBAAA,EAAoB,SAAA,QACxB,uBAAA,SACA,wBAAA,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/update-org-acl.d.ts
|
|
@@ -9,11 +11,7 @@ declare const SanityUpdateOrgAclInput: z.ZodObject<{
|
|
|
9
11
|
declare const SanityUpdateOrgAclOutput: z.ZodObject<{
|
|
10
12
|
success: z.ZodNullable<z.ZodBoolean>;
|
|
11
13
|
}, z.core.$loose>;
|
|
12
|
-
declare const sanityUpdateOrgAcl:
|
|
13
|
-
role_name: string;
|
|
14
|
-
sanity_user_id: string;
|
|
15
|
-
organization_id: string;
|
|
16
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
14
|
+
declare const sanityUpdateOrgAcl: AppAction<typeof SanityUpdateOrgAclInput, typeof SanityUpdateOrgAclOutput, typeof sanity.credential>;
|
|
17
15
|
//#endregion
|
|
18
16
|
export { sanityUpdateOrgAcl };
|
|
19
17
|
//# sourceMappingURL=update-org-acl.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-org-acl.d.mts","names":[],"sources":["../../src/actions/update-org-acl.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-org-acl.d.mts","names":[],"sources":["../../src/actions/update-org-acl.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;cAKvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;cAIxB,kBAAA,EAAoB,SAAA,QACxB,uBAAA,SACA,wBAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-org-acl.mjs","names":[],"sources":["../../src/actions/update-org-acl.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityUpdateOrgAclInput = z.object({\n role_name: z.string().describe(\"The role name to assign (e.g., 'administrator', 'member')\"),\n sanity_user_id: z.string().describe(\"The Sanity user ID to assign the role to\"),\n organization_id: z.string().describe(\"The ID of the organization\"),\n}).describe(\"Request model for updating organization ACL (assigning a role to a member).\");\nexport const SanityUpdateOrgAclOutput = z.object({\n success: z.boolean().describe(\"Whether the role was successfully assigned\").nullable(),\n}).passthrough().describe(\"Response model for organization ACL update.\");\n\nexport const sanityUpdateOrgAcl = action(\"SANITY_UPDATE_ORG_ACL\", {\n slug: \"sanity-update-org-acl\",\n name: \"Update Organization ACL\",\n description: \"Tool to assign a role to a member in a Sanity organization. Use when adding or modifying user roles within an organization.\",\n input: SanityUpdateOrgAclInput,\n output: SanityUpdateOrgAclOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-org-acl.mjs","names":[],"sources":["../../src/actions/update-org-acl.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 SanityUpdateOrgAclInput = z.object({\n role_name: z.string().describe(\"The role name to assign (e.g., 'administrator', 'member')\"),\n sanity_user_id: z.string().describe(\"The Sanity user ID to assign the role to\"),\n organization_id: z.string().describe(\"The ID of the organization\"),\n}).describe(\"Request model for updating organization ACL (assigning a role to a member).\");\nexport const SanityUpdateOrgAclOutput = z.object({\n success: z.boolean().describe(\"Whether the role was successfully assigned\").nullable(),\n}).passthrough().describe(\"Response model for organization ACL update.\");\n\nexport const sanityUpdateOrgAcl: AppAction<\n typeof SanityUpdateOrgAclInput,\n typeof SanityUpdateOrgAclOutput,\n typeof sanity.credential\n> = action(\"SANITY_UPDATE_ORG_ACL\", {\n slug: \"sanity-update-org-acl\",\n name: \"Update Organization ACL\",\n description: \"Tool to assign a role to a member in a Sanity organization. Use when adding or modifying user roles within an organization.\",\n input: SanityUpdateOrgAclInput,\n output: SanityUpdateOrgAclOutput,\n});\n"],"mappings":";;;AAeA,MAAa,qBAIT,OAAO,yBAAyB;CAClC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAjBqC,EAAE,OAAO;EAC9C,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D;EAC1F,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;EAC9E,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;CACnE,CAAC,CAAC,CAAC,SAAS,6EAaH;CACP,QAbsC,EAAE,OAAO,EAC/C,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,EACvF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-user-attributes-values.cjs","names":["z","action"],"sources":["../../src/actions/update-user-attributes-values.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityUpdateUserAttributesValuesInput = z.object({\n userId: z.string().describe(\"The unique identifier of the user whose attributes to update.\"),\n attributes: z.record(z.string(), z.unknown()).describe(\"A dictionary of attribute key-value pairs to set for the user. Values can be strings, numbers, booleans, arrays, or nested objects. These will shadow any SAML values for the same keys.\"),\n resourceId: z.string().describe(\"The unique identifier of the resource. For organizations, this is the organization ID.\"),\n resourceType: z.enum([\"organization\", \"project\"]).describe(\"The type of resource that scopes the user attributes (e.g., 'organization' or 'project').\"),\n}).describe(\"Request model for updating user attribute values.\");\nconst SanityUpdateUserAttributesValues_JsonValueSchema = z.unknown();\nconst SanityUpdateUserAttributesValues_UserAttributeSchema = z.object({\n key: z.string().describe(\"The attribute key.\").nullable(),\n type: z.string().describe(\"The attribute type (e.g., 'string', 'integer', 'boolean').\").nullable(),\n values: z.record(z.string(), z.unknown()).describe(\"The attribute values from different sources (e.g., {'sanity': 'value', 'saml': 'value'}).\").nullable().optional(),\n activeValue: SanityUpdateUserAttributesValues_JsonValueSchema.nullable().optional(),\n activeSource: z.string().describe(\"The active source for the attribute value ('sanity' or 'saml').\").nullable().optional(),\n}).passthrough().describe(\"A user attribute with its values from different sources.\");\nexport const SanityUpdateUserAttributesValuesOutput = z.object({\n updatedAt: z.string().describe(\"ISO 8601 timestamp of when the attributes were updated.\").nullable().optional(),\n attributes: z.array(SanityUpdateUserAttributesValues_UserAttributeSchema).describe(\"The updated list of user attributes.\").nullable().optional(),\n sanityUserId: z.string().describe(\"The Sanity user ID.\").nullable(),\n organizationId: z.string().describe(\"The unique identifier of the organization.\").nullable(),\n}).passthrough().describe(\"Response model for user attribute values update.\");\n\nexport const sanityUpdateUserAttributesValues = action(\"SANITY_UPDATE_USER_ATTRIBUTES_VALUES\", {\n slug: \"sanity-update-user-attributes-values\",\n name: \"Update User Attributes Values\",\n description: \"Update user attribute values for a resource. Use this action to set or update custom attributes for a user within an organization or project. When setting a value for an attribute key that also exists in SAML, the Sanity value will take precedence and shadow the SAML value.\",\n input: SanityUpdateUserAttributesValuesInput,\n output: SanityUpdateUserAttributesValuesOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-user-attributes-values.cjs","names":["z","action"],"sources":["../../src/actions/update-user-attributes-values.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 SanityUpdateUserAttributesValuesInput = z.object({\n userId: z.string().describe(\"The unique identifier of the user whose attributes to update.\"),\n attributes: z.record(z.string(), z.unknown()).describe(\"A dictionary of attribute key-value pairs to set for the user. Values can be strings, numbers, booleans, arrays, or nested objects. These will shadow any SAML values for the same keys.\"),\n resourceId: z.string().describe(\"The unique identifier of the resource. For organizations, this is the organization ID.\"),\n resourceType: z.enum([\"organization\", \"project\"]).describe(\"The type of resource that scopes the user attributes (e.g., 'organization' or 'project').\"),\n}).describe(\"Request model for updating user attribute values.\");\nconst SanityUpdateUserAttributesValues_JsonValueSchema = z.unknown();\nconst SanityUpdateUserAttributesValues_UserAttributeSchema = z.object({\n key: z.string().describe(\"The attribute key.\").nullable(),\n type: z.string().describe(\"The attribute type (e.g., 'string', 'integer', 'boolean').\").nullable(),\n values: z.record(z.string(), z.unknown()).describe(\"The attribute values from different sources (e.g., {'sanity': 'value', 'saml': 'value'}).\").nullable().optional(),\n activeValue: SanityUpdateUserAttributesValues_JsonValueSchema.nullable().optional(),\n activeSource: z.string().describe(\"The active source for the attribute value ('sanity' or 'saml').\").nullable().optional(),\n}).passthrough().describe(\"A user attribute with its values from different sources.\");\nexport const SanityUpdateUserAttributesValuesOutput = z.object({\n updatedAt: z.string().describe(\"ISO 8601 timestamp of when the attributes were updated.\").nullable().optional(),\n attributes: z.array(SanityUpdateUserAttributesValues_UserAttributeSchema).describe(\"The updated list of user attributes.\").nullable().optional(),\n sanityUserId: z.string().describe(\"The Sanity user ID.\").nullable(),\n organizationId: z.string().describe(\"The unique identifier of the organization.\").nullable(),\n}).passthrough().describe(\"Response model for user attribute values update.\");\n\nexport const sanityUpdateUserAttributesValues: AppAction<\n typeof SanityUpdateUserAttributesValuesInput,\n typeof SanityUpdateUserAttributesValuesOutput,\n typeof sanity.credential\n> = action(\"SANITY_UPDATE_USER_ATTRIBUTES_VALUES\", {\n slug: \"sanity-update-user-attributes-values\",\n name: \"Update User Attributes Values\",\n description: \"Update user attribute values for a resource. Use this action to set or update custom attributes for a user within an organization or project. When setting a value for an attribute key that also exists in SAML, the Sanity value will take precedence and shadow the SAML value.\",\n input: SanityUpdateUserAttributesValuesInput,\n output: SanityUpdateUserAttributesValuesOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,wCAAwCA,IAAAA,EAAE,OAAO;CAC5D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D;CAC3F,YAAYA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0LAA0L;CACjP,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF;CACxH,cAAcA,IAAAA,EAAE,KAAK,CAAC,gBAAgB,SAAS,CAAC,CAAC,CAAC,SAAS,2FAA2F;AACxJ,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAM,mDAAmDA,IAAAA,EAAE,QAAQ;AACnE,MAAM,uDAAuDA,IAAAA,EAAE,OAAO;CACpE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CACxD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACjG,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpK,aAAa,iDAAiD,SAAS,CAAC,CAAC,SAAS;CAClF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0DAA0D;AACpF,MAAa,yCAAyCA,IAAAA,EAAE,OAAO;CAC7D,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9G,YAAYA,IAAAA,EAAE,MAAM,oDAAoD,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/I,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAClE,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;AAC7F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAAkD;AAE5E,MAAa,mCAITC,eAAAA,OAAO,wCAAwC;CACjD,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/update-user-attributes-values.d.ts
|
|
@@ -22,12 +24,7 @@ declare const SanityUpdateUserAttributesValuesOutput: z.ZodObject<{
|
|
|
22
24
|
sanityUserId: z.ZodNullable<z.ZodString>;
|
|
23
25
|
organizationId: z.ZodNullable<z.ZodString>;
|
|
24
26
|
}, z.core.$loose>;
|
|
25
|
-
declare const sanityUpdateUserAttributesValues:
|
|
26
|
-
userId: string;
|
|
27
|
-
attributes: Record<string, unknown>;
|
|
28
|
-
resourceId: string;
|
|
29
|
-
resourceType: "organization" | "project";
|
|
30
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
27
|
+
declare const sanityUpdateUserAttributesValues: AppAction<typeof SanityUpdateUserAttributesValuesInput, typeof SanityUpdateUserAttributesValuesOutput, typeof sanity.credential>;
|
|
31
28
|
//#endregion
|
|
32
29
|
export { sanityUpdateUserAttributesValues };
|
|
33
30
|
//# sourceMappingURL=update-user-attributes-values.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-user-attributes-values.d.cts","names":[],"sources":["../../src/actions/update-user-attributes-values.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-user-attributes-values.d.cts","names":[],"sources":["../../src/actions/update-user-attributes-values.ts"],"mappings":";;;;;cAMa,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;;;;;;cAcrC,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;;;;;;;;;;cAOtC,gCAAA,EAAkC,SAAA,QACtC,qCAAA,SACA,sCAAA,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/update-user-attributes-values.d.ts
|
|
@@ -22,12 +24,7 @@ declare const SanityUpdateUserAttributesValuesOutput: z.ZodObject<{
|
|
|
22
24
|
sanityUserId: z.ZodNullable<z.ZodString>;
|
|
23
25
|
organizationId: z.ZodNullable<z.ZodString>;
|
|
24
26
|
}, z.core.$loose>;
|
|
25
|
-
declare const sanityUpdateUserAttributesValues:
|
|
26
|
-
userId: string;
|
|
27
|
-
attributes: Record<string, unknown>;
|
|
28
|
-
resourceId: string;
|
|
29
|
-
resourceType: "organization" | "project";
|
|
30
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
27
|
+
declare const sanityUpdateUserAttributesValues: AppAction<typeof SanityUpdateUserAttributesValuesInput, typeof SanityUpdateUserAttributesValuesOutput, typeof sanity.credential>;
|
|
31
28
|
//#endregion
|
|
32
29
|
export { sanityUpdateUserAttributesValues };
|
|
33
30
|
//# sourceMappingURL=update-user-attributes-values.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-user-attributes-values.d.mts","names":[],"sources":["../../src/actions/update-user-attributes-values.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-user-attributes-values.d.mts","names":[],"sources":["../../src/actions/update-user-attributes-values.ts"],"mappings":";;;;;cAMa,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;;;;;;cAcrC,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;;;;;;;;;;cAOtC,gCAAA,EAAkC,SAAA,QACtC,qCAAA,SACA,sCAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-user-attributes-values.mjs","names":[],"sources":["../../src/actions/update-user-attributes-values.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityUpdateUserAttributesValuesInput = z.object({\n userId: z.string().describe(\"The unique identifier of the user whose attributes to update.\"),\n attributes: z.record(z.string(), z.unknown()).describe(\"A dictionary of attribute key-value pairs to set for the user. Values can be strings, numbers, booleans, arrays, or nested objects. These will shadow any SAML values for the same keys.\"),\n resourceId: z.string().describe(\"The unique identifier of the resource. For organizations, this is the organization ID.\"),\n resourceType: z.enum([\"organization\", \"project\"]).describe(\"The type of resource that scopes the user attributes (e.g., 'organization' or 'project').\"),\n}).describe(\"Request model for updating user attribute values.\");\nconst SanityUpdateUserAttributesValues_JsonValueSchema = z.unknown();\nconst SanityUpdateUserAttributesValues_UserAttributeSchema = z.object({\n key: z.string().describe(\"The attribute key.\").nullable(),\n type: z.string().describe(\"The attribute type (e.g., 'string', 'integer', 'boolean').\").nullable(),\n values: z.record(z.string(), z.unknown()).describe(\"The attribute values from different sources (e.g., {'sanity': 'value', 'saml': 'value'}).\").nullable().optional(),\n activeValue: SanityUpdateUserAttributesValues_JsonValueSchema.nullable().optional(),\n activeSource: z.string().describe(\"The active source for the attribute value ('sanity' or 'saml').\").nullable().optional(),\n}).passthrough().describe(\"A user attribute with its values from different sources.\");\nexport const SanityUpdateUserAttributesValuesOutput = z.object({\n updatedAt: z.string().describe(\"ISO 8601 timestamp of when the attributes were updated.\").nullable().optional(),\n attributes: z.array(SanityUpdateUserAttributesValues_UserAttributeSchema).describe(\"The updated list of user attributes.\").nullable().optional(),\n sanityUserId: z.string().describe(\"The Sanity user ID.\").nullable(),\n organizationId: z.string().describe(\"The unique identifier of the organization.\").nullable(),\n}).passthrough().describe(\"Response model for user attribute values update.\");\n\nexport const sanityUpdateUserAttributesValues = action(\"SANITY_UPDATE_USER_ATTRIBUTES_VALUES\", {\n slug: \"sanity-update-user-attributes-values\",\n name: \"Update User Attributes Values\",\n description: \"Update user attribute values for a resource. Use this action to set or update custom attributes for a user within an organization or project. When setting a value for an attribute key that also exists in SAML, the Sanity value will take precedence and shadow the SAML value.\",\n input: SanityUpdateUserAttributesValuesInput,\n output: SanityUpdateUserAttributesValuesOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-user-attributes-values.mjs","names":[],"sources":["../../src/actions/update-user-attributes-values.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 SanityUpdateUserAttributesValuesInput = z.object({\n userId: z.string().describe(\"The unique identifier of the user whose attributes to update.\"),\n attributes: z.record(z.string(), z.unknown()).describe(\"A dictionary of attribute key-value pairs to set for the user. Values can be strings, numbers, booleans, arrays, or nested objects. These will shadow any SAML values for the same keys.\"),\n resourceId: z.string().describe(\"The unique identifier of the resource. For organizations, this is the organization ID.\"),\n resourceType: z.enum([\"organization\", \"project\"]).describe(\"The type of resource that scopes the user attributes (e.g., 'organization' or 'project').\"),\n}).describe(\"Request model for updating user attribute values.\");\nconst SanityUpdateUserAttributesValues_JsonValueSchema = z.unknown();\nconst SanityUpdateUserAttributesValues_UserAttributeSchema = z.object({\n key: z.string().describe(\"The attribute key.\").nullable(),\n type: z.string().describe(\"The attribute type (e.g., 'string', 'integer', 'boolean').\").nullable(),\n values: z.record(z.string(), z.unknown()).describe(\"The attribute values from different sources (e.g., {'sanity': 'value', 'saml': 'value'}).\").nullable().optional(),\n activeValue: SanityUpdateUserAttributesValues_JsonValueSchema.nullable().optional(),\n activeSource: z.string().describe(\"The active source for the attribute value ('sanity' or 'saml').\").nullable().optional(),\n}).passthrough().describe(\"A user attribute with its values from different sources.\");\nexport const SanityUpdateUserAttributesValuesOutput = z.object({\n updatedAt: z.string().describe(\"ISO 8601 timestamp of when the attributes were updated.\").nullable().optional(),\n attributes: z.array(SanityUpdateUserAttributesValues_UserAttributeSchema).describe(\"The updated list of user attributes.\").nullable().optional(),\n sanityUserId: z.string().describe(\"The Sanity user ID.\").nullable(),\n organizationId: z.string().describe(\"The unique identifier of the organization.\").nullable(),\n}).passthrough().describe(\"Response model for user attribute values update.\");\n\nexport const sanityUpdateUserAttributesValues: AppAction<\n typeof SanityUpdateUserAttributesValuesInput,\n typeof SanityUpdateUserAttributesValuesOutput,\n typeof sanity.credential\n> = action(\"SANITY_UPDATE_USER_ATTRIBUTES_VALUES\", {\n slug: \"sanity-update-user-attributes-values\",\n name: \"Update User Attributes Values\",\n description: \"Update user attribute values for a resource. Use this action to set or update custom attributes for a user within an organization or project. When setting a value for an attribute key that also exists in SAML, the Sanity value will take precedence and shadow the SAML value.\",\n input: SanityUpdateUserAttributesValuesInput,\n output: SanityUpdateUserAttributesValuesOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,wCAAwC,EAAE,OAAO;CAC5D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D;CAC3F,YAAY,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0LAA0L;CACjP,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF;CACxH,cAAc,EAAE,KAAK,CAAC,gBAAgB,SAAS,CAAC,CAAC,CAAC,SAAS,2FAA2F;AACxJ,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAM,mDAAmD,EAAE,QAAQ;AACnE,MAAM,uDAAuD,EAAE,OAAO;CACpE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CACxD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACjG,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpK,aAAa,iDAAiD,SAAS,CAAC,CAAC,SAAS;CAClF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0DAA0D;AAQpF,MAAa,mCAIT,OAAO,wCAAwC;CACjD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAhBoD,EAAE,OAAO;EAC7D,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9G,YAAY,EAAE,MAAM,oDAAoD,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/I,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;EAClE,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CAC7F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validate-credential.cjs","names":["z","action"],"sources":["../../src/actions/validate-credential.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityValidateCredentialInput = z.object({}).describe(\"Request model for validating Sanity API credentials.\\nNo parameters required - uses the token from metadata headers.\");\nconst SanityValidateCredential_UserInfoSchema = z.object({\n id: z.string().describe(\"The unique identifier of the user.\").nullable().optional(),\n name: z.string().describe(\"The display name of the user.\").nullable().optional(),\n email: z.string().describe(\"The email address of the user.\").nullable().optional(),\n profileImage: z.string().describe(\"URL to the user's profile image.\").nullable().optional(),\n}).passthrough().describe(\"Information about the authenticated user.\");\nconst SanityValidateCredential_ProjectInfoSchema = z.object({\n id: z.string().describe(\"The unique identifier of the project.\").nullable().optional(),\n displayName: z.string().describe(\"The display name of the project.\").nullable().optional(),\n organizationId: z.string().describe(\"The organization ID the project belongs to.\").nullable().optional(),\n}).passthrough().describe(\"Information about a project the user has access to.\");\nexport const SanityValidateCredentialOutput = z.object({\n user: SanityValidateCredential_UserInfoSchema.nullable().optional(),\n error: z.string().describe(\"Error message if validation failed.\").nullable().optional(),\n valid: z.boolean().describe(\"Whether the credential is valid and authenticated successfully.\").nullable(),\n projects: z.array(SanityValidateCredential_ProjectInfoSchema).describe(\"List of projects the user has access to, if available.\").nullable().optional(),\n}).passthrough().describe(\"Response model for credential validation.\");\n\nexport const sanityValidateCredential = action(\"SANITY_VALIDATE_CREDENTIAL\", {\n slug: \"sanity-validate-credential\",\n name: \"Validate Credential\",\n description: \"Validate Sanity API credentials by fetching the authenticated user's information. Use this action when you need to verify that an API token is valid and has proper authentication. This action returns user information and accessible projects if the token is valid.\",\n input: SanityValidateCredentialInput,\n output: SanityValidateCredentialOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"validate-credential.cjs","names":["z","action"],"sources":["../../src/actions/validate-credential.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 SanityValidateCredentialInput = z.object({}).describe(\"Request model for validating Sanity API credentials.\\nNo parameters required - uses the token from metadata headers.\");\nconst SanityValidateCredential_UserInfoSchema = z.object({\n id: z.string().describe(\"The unique identifier of the user.\").nullable().optional(),\n name: z.string().describe(\"The display name of the user.\").nullable().optional(),\n email: z.string().describe(\"The email address of the user.\").nullable().optional(),\n profileImage: z.string().describe(\"URL to the user's profile image.\").nullable().optional(),\n}).passthrough().describe(\"Information about the authenticated user.\");\nconst SanityValidateCredential_ProjectInfoSchema = z.object({\n id: z.string().describe(\"The unique identifier of the project.\").nullable().optional(),\n displayName: z.string().describe(\"The display name of the project.\").nullable().optional(),\n organizationId: z.string().describe(\"The organization ID the project belongs to.\").nullable().optional(),\n}).passthrough().describe(\"Information about a project the user has access to.\");\nexport const SanityValidateCredentialOutput = z.object({\n user: SanityValidateCredential_UserInfoSchema.nullable().optional(),\n error: z.string().describe(\"Error message if validation failed.\").nullable().optional(),\n valid: z.boolean().describe(\"Whether the credential is valid and authenticated successfully.\").nullable(),\n projects: z.array(SanityValidateCredential_ProjectInfoSchema).describe(\"List of projects the user has access to, if available.\").nullable().optional(),\n}).passthrough().describe(\"Response model for credential validation.\");\n\nexport const sanityValidateCredential: AppAction<\n typeof SanityValidateCredentialInput,\n typeof SanityValidateCredentialOutput,\n typeof sanity.credential\n> = action(\"SANITY_VALIDATE_CREDENTIAL\", {\n slug: \"sanity-validate-credential\",\n name: \"Validate Credential\",\n description: \"Validate Sanity API credentials by fetching the authenticated user's information. Use this action when you need to verify that an API token is valid and has proper authentication. This action returns user information and accessible projects if the token is valid.\",\n input: SanityValidateCredentialInput,\n output: SanityValidateCredentialOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,sHAAsH;AACzL,MAAM,0CAA0CA,IAAAA,EAAE,OAAO;CACvD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AACrE,MAAM,6CAA6CA,IAAAA,EAAE,OAAO;CAC1D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAAqD;AAC/E,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,MAAM,wCAAwC,SAAS,CAAC,CAAC,SAAS;CAClE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CACxG,UAAUA,IAAAA,EAAE,MAAM,0CAA0C,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AAErE,MAAa,2BAITC,eAAAA,OAAO,8BAA8B;CACvC,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/validate-credential.d.ts
|
|
@@ -17,7 +19,7 @@ declare const SanityValidateCredentialOutput: z.ZodObject<{
|
|
|
17
19
|
organizationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
20
|
}, z.core.$loose>>>>;
|
|
19
21
|
}, z.core.$loose>;
|
|
20
|
-
declare const sanityValidateCredential:
|
|
22
|
+
declare const sanityValidateCredential: AppAction<typeof SanityValidateCredentialInput, typeof SanityValidateCredentialOutput, typeof sanity.credential>;
|
|
21
23
|
//#endregion
|
|
22
24
|
export { sanityValidateCredential };
|
|
23
25
|
//# sourceMappingURL=validate-credential.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validate-credential.d.cts","names":[],"sources":["../../src/actions/validate-credential.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"validate-credential.d.cts","names":[],"sources":["../../src/actions/validate-credential.ts"],"mappings":";;;;;cAMa,6BAAA,EAA6B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAY7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAO9B,wBAAA,EAA0B,SAAA,QAC9B,6BAAA,SACA,8BAAA,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/validate-credential.d.ts
|
|
@@ -17,7 +19,7 @@ declare const SanityValidateCredentialOutput: z.ZodObject<{
|
|
|
17
19
|
organizationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
20
|
}, z.core.$loose>>>>;
|
|
19
21
|
}, z.core.$loose>;
|
|
20
|
-
declare const sanityValidateCredential:
|
|
22
|
+
declare const sanityValidateCredential: AppAction<typeof SanityValidateCredentialInput, typeof SanityValidateCredentialOutput, typeof sanity.credential>;
|
|
21
23
|
//#endregion
|
|
22
24
|
export { sanityValidateCredential };
|
|
23
25
|
//# sourceMappingURL=validate-credential.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validate-credential.d.mts","names":[],"sources":["../../src/actions/validate-credential.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"validate-credential.d.mts","names":[],"sources":["../../src/actions/validate-credential.ts"],"mappings":";;;;;cAMa,6BAAA,EAA6B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAY7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAO9B,wBAAA,EAA0B,SAAA,QAC9B,6BAAA,SACA,8BAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validate-credential.mjs","names":[],"sources":["../../src/actions/validate-credential.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityValidateCredentialInput = z.object({}).describe(\"Request model for validating Sanity API credentials.\\nNo parameters required - uses the token from metadata headers.\");\nconst SanityValidateCredential_UserInfoSchema = z.object({\n id: z.string().describe(\"The unique identifier of the user.\").nullable().optional(),\n name: z.string().describe(\"The display name of the user.\").nullable().optional(),\n email: z.string().describe(\"The email address of the user.\").nullable().optional(),\n profileImage: z.string().describe(\"URL to the user's profile image.\").nullable().optional(),\n}).passthrough().describe(\"Information about the authenticated user.\");\nconst SanityValidateCredential_ProjectInfoSchema = z.object({\n id: z.string().describe(\"The unique identifier of the project.\").nullable().optional(),\n displayName: z.string().describe(\"The display name of the project.\").nullable().optional(),\n organizationId: z.string().describe(\"The organization ID the project belongs to.\").nullable().optional(),\n}).passthrough().describe(\"Information about a project the user has access to.\");\nexport const SanityValidateCredentialOutput = z.object({\n user: SanityValidateCredential_UserInfoSchema.nullable().optional(),\n error: z.string().describe(\"Error message if validation failed.\").nullable().optional(),\n valid: z.boolean().describe(\"Whether the credential is valid and authenticated successfully.\").nullable(),\n projects: z.array(SanityValidateCredential_ProjectInfoSchema).describe(\"List of projects the user has access to, if available.\").nullable().optional(),\n}).passthrough().describe(\"Response model for credential validation.\");\n\nexport const sanityValidateCredential = action(\"SANITY_VALIDATE_CREDENTIAL\", {\n slug: \"sanity-validate-credential\",\n name: \"Validate Credential\",\n description: \"Validate Sanity API credentials by fetching the authenticated user's information. Use this action when you need to verify that an API token is valid and has proper authentication. This action returns user information and accessible projects if the token is valid.\",\n input: SanityValidateCredentialInput,\n output: SanityValidateCredentialOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"validate-credential.mjs","names":[],"sources":["../../src/actions/validate-credential.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 SanityValidateCredentialInput = z.object({}).describe(\"Request model for validating Sanity API credentials.\\nNo parameters required - uses the token from metadata headers.\");\nconst SanityValidateCredential_UserInfoSchema = z.object({\n id: z.string().describe(\"The unique identifier of the user.\").nullable().optional(),\n name: z.string().describe(\"The display name of the user.\").nullable().optional(),\n email: z.string().describe(\"The email address of the user.\").nullable().optional(),\n profileImage: z.string().describe(\"URL to the user's profile image.\").nullable().optional(),\n}).passthrough().describe(\"Information about the authenticated user.\");\nconst SanityValidateCredential_ProjectInfoSchema = z.object({\n id: z.string().describe(\"The unique identifier of the project.\").nullable().optional(),\n displayName: z.string().describe(\"The display name of the project.\").nullable().optional(),\n organizationId: z.string().describe(\"The organization ID the project belongs to.\").nullable().optional(),\n}).passthrough().describe(\"Information about a project the user has access to.\");\nexport const SanityValidateCredentialOutput = z.object({\n user: SanityValidateCredential_UserInfoSchema.nullable().optional(),\n error: z.string().describe(\"Error message if validation failed.\").nullable().optional(),\n valid: z.boolean().describe(\"Whether the credential is valid and authenticated successfully.\").nullable(),\n projects: z.array(SanityValidateCredential_ProjectInfoSchema).describe(\"List of projects the user has access to, if available.\").nullable().optional(),\n}).passthrough().describe(\"Response model for credential validation.\");\n\nexport const sanityValidateCredential: AppAction<\n typeof SanityValidateCredentialInput,\n typeof SanityValidateCredentialOutput,\n typeof sanity.credential\n> = action(\"SANITY_VALIDATE_CREDENTIAL\", {\n slug: \"sanity-validate-credential\",\n name: \"Validate Credential\",\n description: \"Validate Sanity API credentials by fetching the authenticated user's information. Use this action when you need to verify that an API token is valid and has proper authentication. This action returns user information and accessible projects if the token is valid.\",\n input: SanityValidateCredentialInput,\n output: SanityValidateCredentialOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,gCAAgC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,sHAAsH;AACzL,MAAM,0CAA0C,EAAE,OAAO;CACvD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AACrE,MAAM,6CAA6C,EAAE,OAAO;CAC1D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAAqD;AAQ/E,MAAa,2BAIT,OAAO,8BAA8B;CACvC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAhB4C,EAAE,OAAO;EACrD,MAAM,wCAAwC,SAAS,CAAC,CAAC,SAAS;EAClE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtF,OAAO,EAAE,QAAQ,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;EACxG,UAAU,EAAE,MAAM,0CAA0C,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAWhB;AACV,CAAC"}
|