@keystrokehq/sanity 0.1.0
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/README.md +17 -0
- package/dist/action.cjs +21 -0
- package/dist/action.cjs.map +1 -0
- package/dist/action.mjs +21 -0
- package/dist/action.mjs.map +1 -0
- package/dist/actions/add-default-role-to-users.cjs +19 -0
- package/dist/actions/add-default-role-to-users.cjs.map +1 -0
- package/dist/actions/add-default-role-to-users.d.cts +9 -0
- package/dist/actions/add-default-role-to-users.d.cts.map +1 -0
- package/dist/actions/add-default-role-to-users.d.mts +9 -0
- package/dist/actions/add-default-role-to-users.d.mts.map +1 -0
- package/dist/actions/add-default-role-to-users.mjs +16 -0
- package/dist/actions/add-default-role-to-users.mjs.map +1 -0
- package/dist/actions/create-attr-definition.cjs +37 -0
- package/dist/actions/create-attr-definition.cjs.map +1 -0
- package/dist/actions/create-attr-definition.d.cts +9 -0
- package/dist/actions/create-attr-definition.d.cts.map +1 -0
- package/dist/actions/create-attr-definition.d.mts +9 -0
- package/dist/actions/create-attr-definition.d.mts.map +1 -0
- package/dist/actions/create-attr-definition.mjs +34 -0
- package/dist/actions/create-attr-definition.mjs.map +1 -0
- package/dist/actions/create-prompt-post.cjs +27 -0
- package/dist/actions/create-prompt-post.cjs.map +1 -0
- package/dist/actions/create-prompt-post.d.cts +9 -0
- package/dist/actions/create-prompt-post.d.cts.map +1 -0
- package/dist/actions/create-prompt-post.d.mts +9 -0
- package/dist/actions/create-prompt-post.d.mts.map +1 -0
- package/dist/actions/create-prompt-post.mjs +24 -0
- package/dist/actions/create-prompt-post.mjs.map +1 -0
- package/dist/actions/delete-attr-definition.cjs +20 -0
- package/dist/actions/delete-attr-definition.cjs.map +1 -0
- package/dist/actions/delete-attr-definition.d.cts +9 -0
- package/dist/actions/delete-attr-definition.d.cts.map +1 -0
- package/dist/actions/delete-attr-definition.d.mts +9 -0
- package/dist/actions/delete-attr-definition.d.mts.map +1 -0
- package/dist/actions/delete-attr-definition.mjs +17 -0
- package/dist/actions/delete-attr-definition.mjs.map +1 -0
- package/dist/actions/delete-document.cjs +30 -0
- package/dist/actions/delete-document.cjs.map +1 -0
- package/dist/actions/delete-document.d.cts +9 -0
- package/dist/actions/delete-document.d.cts.map +1 -0
- package/dist/actions/delete-document.d.mts +9 -0
- package/dist/actions/delete-document.d.mts.map +1 -0
- package/dist/actions/delete-document.mjs +27 -0
- package/dist/actions/delete-document.mjs.map +1 -0
- package/dist/actions/delete-user-attributes.cjs +32 -0
- package/dist/actions/delete-user-attributes.cjs.map +1 -0
- package/dist/actions/delete-user-attributes.d.cts +9 -0
- package/dist/actions/delete-user-attributes.d.cts.map +1 -0
- package/dist/actions/delete-user-attributes.d.mts +9 -0
- package/dist/actions/delete-user-attributes.d.mts.map +1 -0
- package/dist/actions/delete-user-attributes.mjs +31 -0
- package/dist/actions/delete-user-attributes.mjs.map +1 -0
- package/dist/actions/get-document.cjs +35 -0
- package/dist/actions/get-document.cjs.map +1 -0
- package/dist/actions/get-document.d.cts +9 -0
- package/dist/actions/get-document.d.cts.map +1 -0
- package/dist/actions/get-document.d.mts +9 -0
- package/dist/actions/get-document.d.mts.map +1 -0
- package/dist/actions/get-document.mjs +34 -0
- package/dist/actions/get-document.mjs.map +1 -0
- package/dist/actions/get-invite-by-token.cjs +55 -0
- package/dist/actions/get-invite-by-token.cjs.map +1 -0
- package/dist/actions/get-invite-by-token.d.cts +9 -0
- package/dist/actions/get-invite-by-token.d.cts.map +1 -0
- package/dist/actions/get-invite-by-token.d.mts +9 -0
- package/dist/actions/get-invite-by-token.d.mts.map +1 -0
- package/dist/actions/get-invite-by-token.mjs +54 -0
- package/dist/actions/get-invite-by-token.mjs.map +1 -0
- package/dist/actions/get-org-role.cjs +37 -0
- package/dist/actions/get-org-role.cjs.map +1 -0
- package/dist/actions/get-org-role.d.cts +9 -0
- package/dist/actions/get-org-role.d.cts.map +1 -0
- package/dist/actions/get-org-role.d.mts +9 -0
- package/dist/actions/get-org-role.d.mts.map +1 -0
- package/dist/actions/get-org-role.mjs +36 -0
- package/dist/actions/get-org-role.mjs.map +1 -0
- package/dist/actions/get-permission.cjs +35 -0
- package/dist/actions/get-permission.cjs.map +1 -0
- package/dist/actions/get-permission.d.cts +9 -0
- package/dist/actions/get-permission.d.cts.map +1 -0
- package/dist/actions/get-permission.d.mts +9 -0
- package/dist/actions/get-permission.d.mts.map +1 -0
- package/dist/actions/get-permission.mjs +34 -0
- package/dist/actions/get-permission.mjs.map +1 -0
- package/dist/actions/get-project.cjs +45 -0
- package/dist/actions/get-project.cjs.map +1 -0
- package/dist/actions/get-project.d.cts +9 -0
- package/dist/actions/get-project.d.cts.map +1 -0
- package/dist/actions/get-project.d.mts +9 -0
- package/dist/actions/get-project.d.mts.map +1 -0
- package/dist/actions/get-project.mjs +44 -0
- package/dist/actions/get-project.mjs.map +1 -0
- package/dist/actions/get-robots.cjs +46 -0
- package/dist/actions/get-robots.cjs.map +1 -0
- package/dist/actions/get-robots.d.cts +9 -0
- package/dist/actions/get-robots.d.cts.map +1 -0
- package/dist/actions/get-robots.d.mts +9 -0
- package/dist/actions/get-robots.d.mts.map +1 -0
- package/dist/actions/get-robots.mjs +45 -0
- package/dist/actions/get-robots.mjs.map +1 -0
- package/dist/actions/get-role.cjs +43 -0
- package/dist/actions/get-role.cjs.map +1 -0
- package/dist/actions/get-role.d.cts +9 -0
- package/dist/actions/get-role.d.cts.map +1 -0
- package/dist/actions/get-role.d.mts +9 -0
- package/dist/actions/get-role.d.mts.map +1 -0
- package/dist/actions/get-role.mjs +42 -0
- package/dist/actions/get-role.mjs.map +1 -0
- package/dist/actions/get-users.cjs +35 -0
- package/dist/actions/get-users.cjs.map +1 -0
- package/dist/actions/get-users.d.cts +9 -0
- package/dist/actions/get-users.d.cts.map +1 -0
- package/dist/actions/get-users.d.mts +9 -0
- package/dist/actions/get-users.d.mts.map +1 -0
- package/dist/actions/get-users.mjs +34 -0
- package/dist/actions/get-users.mjs.map +1 -0
- package/dist/actions/index.cjs +43 -0
- package/dist/actions/index.d.cts +22 -0
- package/dist/actions/index.d.mts +22 -0
- package/dist/actions/index.mjs +22 -0
- package/dist/actions/list-org-roles.cjs +24 -0
- package/dist/actions/list-org-roles.cjs.map +1 -0
- package/dist/actions/list-org-roles.d.cts +9 -0
- package/dist/actions/list-org-roles.d.cts.map +1 -0
- package/dist/actions/list-org-roles.d.mts +9 -0
- package/dist/actions/list-org-roles.d.mts.map +1 -0
- package/dist/actions/list-org-roles.mjs +23 -0
- package/dist/actions/list-org-roles.mjs.map +1 -0
- package/dist/actions/list-user-attributes.cjs +32 -0
- package/dist/actions/list-user-attributes.cjs.map +1 -0
- package/dist/actions/list-user-attributes.d.cts +9 -0
- package/dist/actions/list-user-attributes.d.cts.map +1 -0
- package/dist/actions/list-user-attributes.d.mts +9 -0
- package/dist/actions/list-user-attributes.d.mts.map +1 -0
- package/dist/actions/list-user-attributes.mjs +31 -0
- package/dist/actions/list-user-attributes.mjs.map +1 -0
- package/dist/actions/query-all-screening.cjs +27 -0
- package/dist/actions/query-all-screening.cjs.map +1 -0
- package/dist/actions/query-all-screening.d.cts +9 -0
- package/dist/actions/query-all-screening.d.cts.map +1 -0
- package/dist/actions/query-all-screening.d.mts +9 -0
- package/dist/actions/query-all-screening.d.mts.map +1 -0
- package/dist/actions/query-all-screening.mjs +24 -0
- package/dist/actions/query-all-screening.mjs.map +1 -0
- package/dist/actions/query-documents.cjs +38 -0
- package/dist/actions/query-documents.cjs.map +1 -0
- package/dist/actions/query-documents.d.cts +9 -0
- package/dist/actions/query-documents.d.cts.map +1 -0
- package/dist/actions/query-documents.d.mts +9 -0
- package/dist/actions/query-documents.d.mts.map +1 -0
- package/dist/actions/query-documents.mjs +37 -0
- package/dist/actions/query-documents.mjs.map +1 -0
- package/dist/actions/update-org-acl.cjs +20 -0
- package/dist/actions/update-org-acl.cjs.map +1 -0
- package/dist/actions/update-org-acl.d.cts +9 -0
- package/dist/actions/update-org-acl.d.cts.map +1 -0
- package/dist/actions/update-org-acl.d.mts +9 -0
- package/dist/actions/update-org-acl.d.mts.map +1 -0
- package/dist/actions/update-org-acl.mjs +17 -0
- package/dist/actions/update-org-acl.mjs.map +1 -0
- package/dist/actions/update-user-attributes-values.cjs +34 -0
- package/dist/actions/update-user-attributes-values.cjs.map +1 -0
- package/dist/actions/update-user-attributes-values.d.cts +9 -0
- package/dist/actions/update-user-attributes-values.d.cts.map +1 -0
- package/dist/actions/update-user-attributes-values.d.mts +9 -0
- package/dist/actions/update-user-attributes-values.d.mts.map +1 -0
- package/dist/actions/update-user-attributes-values.mjs +33 -0
- package/dist/actions/update-user-attributes-values.mjs.map +1 -0
- package/dist/actions/validate-credential.cjs +32 -0
- package/dist/actions/validate-credential.cjs.map +1 -0
- package/dist/actions/validate-credential.d.cts +9 -0
- package/dist/actions/validate-credential.d.cts.map +1 -0
- package/dist/actions/validate-credential.d.mts +9 -0
- package/dist/actions/validate-credential.d.mts.map +1 -0
- package/dist/actions/validate-credential.mjs +31 -0
- package/dist/actions/validate-credential.mjs.map +1 -0
- package/dist/app.cjs +9 -0
- package/dist/app.cjs.map +1 -0
- package/dist/app.d.cts +5 -0
- package/dist/app.d.cts.map +1 -0
- package/dist/app.d.mts +5 -0
- package/dist/app.d.mts.map +1 -0
- package/dist/app.mjs +10 -0
- package/dist/app.mjs.map +1 -0
- package/dist/catalog.cjs +15 -0
- package/dist/catalog.cjs.map +1 -0
- package/dist/catalog.d.cts +14 -0
- package/dist/catalog.d.cts.map +1 -0
- package/dist/catalog.d.mts +14 -0
- package/dist/catalog.d.mts.map +1 -0
- package/dist/catalog.mjs +15 -0
- package/dist/catalog.mjs.map +1 -0
- package/dist/execute.cjs +18 -0
- package/dist/execute.cjs.map +1 -0
- package/dist/execute.mjs +18 -0
- package/dist/execute.mjs.map +1 -0
- package/dist/index.cjs +48 -0
- package/dist/index.d.cts +24 -0
- package/dist/index.d.mts +24 -0
- package/dist/index.mjs +25 -0
- package/package.json +49 -0
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/query-documents.ts
|
|
4
|
+
const SanityQueryDocumentsInput = z.object({
|
|
5
|
+
query: z.string().describe("The GROQ query string to execute. GROQ is Sanity's query language for fetching and transforming documents."),
|
|
6
|
+
params: z.object({}).describe("Optional parameters for the GROQ query. Use $variableName syntax in the query string, then pass the values here (e.g., query='*[_type == $type]' with params={'type': 'post'}).").optional(),
|
|
7
|
+
useCdn: z.boolean().describe("Whether to use Sanity's CDN for faster response times. Recommended for read-heavy workloads with data that doesn't change frequently.").optional(),
|
|
8
|
+
dataset: z.string().describe("The dataset name to query within the project (e.g., 'production', 'staging')."),
|
|
9
|
+
project_id: z.string().describe("The Sanity project ID to query. This identifies which project's data to access."),
|
|
10
|
+
perspective: z.enum([
|
|
11
|
+
"published",
|
|
12
|
+
"previewDrafts",
|
|
13
|
+
"raw"
|
|
14
|
+
]).describe("Perspective determines which version of documents to query.").optional()
|
|
15
|
+
}).describe("Request parameters for querying documents with GROQ.");
|
|
16
|
+
const SanityQueryDocuments_SanityDocumentSchema = z.object({
|
|
17
|
+
_id: z.string().describe("The unique identifier of the document.").nullable().optional(),
|
|
18
|
+
_rev: z.string().describe("The document revision identifier.").nullable().optional(),
|
|
19
|
+
_type: z.string().describe("The document type/schema name.").nullable().optional(),
|
|
20
|
+
_createdAt: z.string().describe("ISO 8601 timestamp when the document was created.").nullable().optional(),
|
|
21
|
+
_updatedAt: z.string().describe("ISO 8601 timestamp when the document was last updated.").nullable().optional()
|
|
22
|
+
}).passthrough().describe("A Sanity document returned by a GROQ query.");
|
|
23
|
+
const sanityQueryDocuments = action("SANITY_QUERY_DOCUMENTS", {
|
|
24
|
+
slug: "sanity-query-documents",
|
|
25
|
+
name: "Query Documents",
|
|
26
|
+
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.",
|
|
27
|
+
input: SanityQueryDocumentsInput,
|
|
28
|
+
output: z.object({
|
|
29
|
+
ms: z.number().int().describe("Time taken to execute the query in milliseconds.").nullable().optional(),
|
|
30
|
+
query: z.string().describe("The GROQ query that was executed.").nullable().optional(),
|
|
31
|
+
result: z.array(SanityQueryDocuments_SanityDocumentSchema).describe("Array of documents matching the query. Each document contains at minimum the Sanity system fields (_id, _type, _createdAt, _updatedAt, _rev) plus any additional fields from the query projection.").nullable().optional()
|
|
32
|
+
}).describe("Response from querying documents.")
|
|
33
|
+
});
|
|
34
|
+
//#endregion
|
|
35
|
+
export { sanityQueryDocuments };
|
|
36
|
+
|
|
37
|
+
//# sourceMappingURL=query-documents.mjs.map
|
|
@@ -0,0 +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.ZodTypeAny = z.object({\n query: z.string().describe(\"The GROQ query string to execute. GROQ is Sanity's query language for fetching and transforming documents.\"),\n params: z.object({}).describe(\"Optional parameters for the GROQ query. Use $variableName syntax in the query string, then pass the values here (e.g., query='*[_type == $type]' with params={'type': 'post'}).\").optional(),\n useCdn: z.boolean().describe(\"Whether to use Sanity's CDN for faster response times. Recommended for read-heavy workloads with data that doesn't change frequently.\").optional(),\n dataset: z.string().describe(\"The dataset name to query within the project (e.g., 'production', 'staging').\"),\n project_id: z.string().describe(\"The Sanity project ID to query. This identifies which project's data to access.\"),\n perspective: z.enum([\"published\", \"previewDrafts\", \"raw\"]).describe(\"Perspective determines which version of documents to query.\").optional(),\n}).describe(\"Request parameters for querying documents with GROQ.\");\nconst SanityQueryDocuments_SanityDocumentSchema: z.ZodTypeAny = 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.ZodTypeAny = z.object({\n ms: z.number().int().describe(\"Time taken to execute the query in milliseconds.\").nullable().optional(),\n query: z.string().describe(\"The GROQ query that was executed.\").nullable().optional(),\n result: z.array(SanityQueryDocuments_SanityDocumentSchema).describe(\"Array of documents matching the query. Each document contains at minimum the Sanity system fields (_id, _type, _createdAt, _updatedAt, _rev) plus any additional fields from the query projection.\").nullable().optional(),\n}).describe(\"Response from querying documents.\");\n\nexport const sanityQueryDocuments = action(\"SANITY_QUERY_DOCUMENTS\", {\n slug: \"sanity-query-documents\",\n name: \"Query Documents\",\n description: \"Execute an arbitrary GROQ query against a Sanity dataset. GROQ is Sanity's query language for fetching and transforming content. This is a general-purpose query action distinct from any screening-specific tools. Use this action when you need to query documents from a Sanity dataset using custom GROQ queries. Supports optional parameters, perspective control, and CDN optimization.\",\n input: SanityQueryDocumentsInput,\n output: SanityQueryDocumentsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA0C,EAAE,OAAO;CAC9D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4GAA4G;CACvI,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,iLAAiL,CAAC,CAAC,SAAS;CAC1N,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,uIAAuI,CAAC,CAAC,SAAS;CAC/K,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E;CAC5G,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF;CACjH,aAAa,EAAE,KAAK;EAAC;EAAa;EAAiB;CAAK,CAAC,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;AAC9I,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAM,4CAA0D,EAAE,OAAO;CACvE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AAOvE,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAXsD,EAAE,OAAO;EAC/D,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtG,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpF,QAAQ,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,oMAAoM,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChS,CAAC,CAAC,CAAC,SAAS,mCAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/update-org-acl.ts
|
|
4
|
+
const SanityUpdateOrgAclInput = zod.z.object({
|
|
5
|
+
role_name: zod.z.string().describe("The role name to assign (e.g., 'administrator', 'member')"),
|
|
6
|
+
sanity_user_id: zod.z.string().describe("The Sanity user ID to assign the role to"),
|
|
7
|
+
organization_id: zod.z.string().describe("The ID of the organization")
|
|
8
|
+
}).describe("Request model for updating organization ACL (assigning a role to a member).");
|
|
9
|
+
const SanityUpdateOrgAclOutput = zod.z.object({ success: zod.z.boolean().describe("Whether the role was successfully assigned") }).describe("Response model for organization ACL update.");
|
|
10
|
+
const sanityUpdateOrgAcl = require_action.action("SANITY_UPDATE_ORG_ACL", {
|
|
11
|
+
slug: "sanity-update-org-acl",
|
|
12
|
+
name: "Update Organization ACL",
|
|
13
|
+
description: "Tool to assign a role to a member in a Sanity organization. Use when adding or modifying user roles within an organization.",
|
|
14
|
+
input: SanityUpdateOrgAclInput,
|
|
15
|
+
output: SanityUpdateOrgAclOutput
|
|
16
|
+
});
|
|
17
|
+
//#endregion
|
|
18
|
+
exports.sanityUpdateOrgAcl = sanityUpdateOrgAcl;
|
|
19
|
+
|
|
20
|
+
//# sourceMappingURL=update-org-acl.cjs.map
|
|
@@ -0,0 +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.ZodTypeAny = 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.ZodTypeAny = z.object({\n success: z.boolean().describe(\"Whether the role was successfully assigned\"),\n}).describe(\"Response model for organization ACL update.\");\n\nexport const sanityUpdateOrgAcl = action(\"SANITY_UPDATE_ORG_ACL\", {\n slug: \"sanity-update-org-acl\",\n name: \"Update Organization ACL\",\n description: \"Tool to assign a role to a member in a Sanity organization. Use when adding or modifying user roles within an organization.\",\n input: SanityUpdateOrgAclInput,\n output: SanityUpdateOrgAclOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAAwCA,IAAAA,EAAE,OAAO;CAC5D,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,2BAAyCA,IAAAA,EAAE,OAAO,EAC7D,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,4CAA4C,EAC5E,CAAC,CAAC,CAAC,SAAS,6CAA6C;AAEzD,MAAa,qBAAqBC,eAAAA,OAAO,yBAAyB;CAChE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/update-org-acl.d.ts
|
|
4
|
+
declare const SanityUpdateOrgAclInput: z.ZodTypeAny;
|
|
5
|
+
declare const SanityUpdateOrgAclOutput: z.ZodTypeAny;
|
|
6
|
+
declare const sanityUpdateOrgAcl: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { sanityUpdateOrgAcl };
|
|
9
|
+
//# sourceMappingURL=update-org-acl.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-org-acl.d.cts","names":[],"sources":["../../src/actions/update-org-acl.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAIkD;AAAA,cAC7E,wBAAA,EAA0B,CAAA,CAAE,UAEiB;AAAA,cAE7C,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/update-org-acl.d.ts
|
|
4
|
+
declare const SanityUpdateOrgAclInput: z.ZodTypeAny;
|
|
5
|
+
declare const SanityUpdateOrgAclOutput: z.ZodTypeAny;
|
|
6
|
+
declare const sanityUpdateOrgAcl: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { sanityUpdateOrgAcl };
|
|
9
|
+
//# sourceMappingURL=update-org-acl.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-org-acl.d.mts","names":[],"sources":["../../src/actions/update-org-acl.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAIkD;AAAA,cAC7E,wBAAA,EAA0B,CAAA,CAAE,UAEiB;AAAA,cAE7C,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const sanityUpdateOrgAcl = action("SANITY_UPDATE_ORG_ACL", {
|
|
4
|
+
slug: "sanity-update-org-acl",
|
|
5
|
+
name: "Update Organization ACL",
|
|
6
|
+
description: "Tool to assign a role to a member in a Sanity organization. Use when adding or modifying user roles within an organization.",
|
|
7
|
+
input: z.object({
|
|
8
|
+
role_name: z.string().describe("The role name to assign (e.g., 'administrator', 'member')"),
|
|
9
|
+
sanity_user_id: z.string().describe("The Sanity user ID to assign the role to"),
|
|
10
|
+
organization_id: z.string().describe("The ID of the organization")
|
|
11
|
+
}).describe("Request model for updating organization ACL (assigning a role to a member)."),
|
|
12
|
+
output: z.object({ success: z.boolean().describe("Whether the role was successfully assigned") }).describe("Response model for organization ACL update.")
|
|
13
|
+
});
|
|
14
|
+
//#endregion
|
|
15
|
+
export { sanityUpdateOrgAcl };
|
|
16
|
+
|
|
17
|
+
//# sourceMappingURL=update-org-acl.mjs.map
|
|
@@ -0,0 +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.ZodTypeAny = 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.ZodTypeAny = z.object({\n success: z.boolean().describe(\"Whether the role was successfully assigned\"),\n}).describe(\"Response model for organization ACL update.\");\n\nexport const sanityUpdateOrgAcl = action(\"SANITY_UPDATE_ORG_ACL\", {\n slug: \"sanity-update-org-acl\",\n name: \"Update Organization ACL\",\n description: \"Tool to assign a role to a member in a Sanity organization. Use when adding or modifying user roles within an organization.\",\n input: SanityUpdateOrgAclInput,\n output: SanityUpdateOrgAclOutput,\n});\n"],"mappings":";;AAaA,MAAa,qBAAqB,OAAO,yBAAyB;CAChE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAbmD,EAAE,OAAO;EAC5D,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D;EAC1F,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;EAC9E,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;CACnE,CAAC,CAAC,CAAC,SAAS,6EASH;CACP,QAToD,EAAE,OAAO,EAC7D,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,4CAA4C,EAC5E,CAAC,CAAC,CAAC,SAAS,6CAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/update-user-attributes-values.ts
|
|
4
|
+
const SanityUpdateUserAttributesValuesInput = zod.z.object({
|
|
5
|
+
userId: zod.z.string().describe("The unique identifier of the user whose attributes to update."),
|
|
6
|
+
attributes: zod.z.object({}).describe("A dictionary of attribute key-value pairs to set for the user. Values can be strings, numbers, booleans, arrays, or nested objects. These will shadow any SAML values for the same keys."),
|
|
7
|
+
resourceId: zod.z.string().describe("The unique identifier of the resource. For organizations, this is the organization ID."),
|
|
8
|
+
resourceType: zod.z.enum(["organization", "project"]).describe("The type of resource that scopes the user attributes (e.g., 'organization' or 'project').")
|
|
9
|
+
}).describe("Request model for updating user attribute values.");
|
|
10
|
+
const SanityUpdateUserAttributesValues_JsonValueSchema = zod.z.unknown();
|
|
11
|
+
const SanityUpdateUserAttributesValues_UserAttributeSchema = zod.z.object({
|
|
12
|
+
key: zod.z.string().describe("The attribute key."),
|
|
13
|
+
type: zod.z.string().describe("The attribute type (e.g., 'string', 'integer', 'boolean')."),
|
|
14
|
+
values: zod.z.object({}).describe("The attribute values from different sources (e.g., {'sanity': 'value', 'saml': 'value'}).").nullable().optional(),
|
|
15
|
+
activeValue: SanityUpdateUserAttributesValues_JsonValueSchema.nullable().optional(),
|
|
16
|
+
activeSource: zod.z.string().describe("The active source for the attribute value ('sanity' or 'saml').").nullable().optional()
|
|
17
|
+
}).describe("A user attribute with its values from different sources.");
|
|
18
|
+
const SanityUpdateUserAttributesValuesOutput = zod.z.object({
|
|
19
|
+
updatedAt: zod.z.string().describe("ISO 8601 timestamp of when the attributes were updated.").nullable().optional(),
|
|
20
|
+
attributes: zod.z.array(SanityUpdateUserAttributesValues_UserAttributeSchema).describe("The updated list of user attributes.").nullable().optional(),
|
|
21
|
+
sanityUserId: zod.z.string().describe("The Sanity user ID."),
|
|
22
|
+
organizationId: zod.z.string().describe("The unique identifier of the organization.")
|
|
23
|
+
}).describe("Response model for user attribute values update.");
|
|
24
|
+
const sanityUpdateUserAttributesValues = require_action.action("SANITY_UPDATE_USER_ATTRIBUTES_VALUES", {
|
|
25
|
+
slug: "sanity-update-user-attributes-values",
|
|
26
|
+
name: "Update User Attributes Values",
|
|
27
|
+
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.",
|
|
28
|
+
input: SanityUpdateUserAttributesValuesInput,
|
|
29
|
+
output: SanityUpdateUserAttributesValuesOutput
|
|
30
|
+
});
|
|
31
|
+
//#endregion
|
|
32
|
+
exports.sanityUpdateUserAttributesValues = sanityUpdateUserAttributesValues;
|
|
33
|
+
|
|
34
|
+
//# sourceMappingURL=update-user-attributes-values.cjs.map
|
|
@@ -0,0 +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.ZodTypeAny = z.object({\n userId: z.string().describe(\"The unique identifier of the user whose attributes to update.\"),\n attributes: z.object({}).describe(\"A dictionary of attribute key-value pairs to set for the user. Values can be strings, numbers, booleans, arrays, or nested objects. These will shadow any SAML values for the same keys.\"),\n resourceId: z.string().describe(\"The unique identifier of the resource. For organizations, this is the organization ID.\"),\n resourceType: z.enum([\"organization\", \"project\"]).describe(\"The type of resource that scopes the user attributes (e.g., 'organization' or 'project').\"),\n}).describe(\"Request model for updating user attribute values.\");\nconst SanityUpdateUserAttributesValues_JsonValueSchema: z.ZodTypeAny = z.unknown();\nconst SanityUpdateUserAttributesValues_UserAttributeSchema: z.ZodTypeAny = z.object({\n key: z.string().describe(\"The attribute key.\"),\n type: z.string().describe(\"The attribute type (e.g., 'string', 'integer', 'boolean').\"),\n values: z.object({}).describe(\"The attribute values from different sources (e.g., {'sanity': 'value', 'saml': 'value'}).\").nullable().optional(),\n activeValue: SanityUpdateUserAttributesValues_JsonValueSchema.nullable().optional(),\n activeSource: z.string().describe(\"The active source for the attribute value ('sanity' or 'saml').\").nullable().optional(),\n}).describe(\"A user attribute with its values from different sources.\");\nexport const SanityUpdateUserAttributesValuesOutput: z.ZodTypeAny = z.object({\n updatedAt: z.string().describe(\"ISO 8601 timestamp of when the attributes were updated.\").nullable().optional(),\n attributes: z.array(SanityUpdateUserAttributesValues_UserAttributeSchema).describe(\"The updated list of user attributes.\").nullable().optional(),\n sanityUserId: z.string().describe(\"The Sanity user ID.\"),\n organizationId: z.string().describe(\"The unique identifier of the organization.\"),\n}).describe(\"Response model for user attribute values update.\");\n\nexport const sanityUpdateUserAttributesValues = action(\"SANITY_UPDATE_USER_ATTRIBUTES_VALUES\", {\n slug: \"sanity-update-user-attributes-values\",\n name: \"Update User Attributes Values\",\n description: \"Update user attribute values for a resource. Use this action to set or update custom attributes for a user within an organization or project. When setting a value for an attribute key that also exists in SAML, the Sanity value will take precedence and shadow the SAML value.\",\n input: SanityUpdateUserAttributesValuesInput,\n output: SanityUpdateUserAttributesValuesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wCAAsDA,IAAAA,EAAE,OAAO;CAC1E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D;CAC3F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,0LAA0L;CAC5N,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF;CACxH,cAAcA,IAAAA,EAAE,KAAK,CAAC,gBAAgB,SAAS,CAAC,CAAC,CAAC,SAAS,2FAA2F;AACxJ,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAM,mDAAiEA,IAAAA,EAAE,QAAQ;AACjF,MAAM,uDAAqEA,IAAAA,EAAE,OAAO;CAClF,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB;CAC7C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;CACtF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/I,aAAa,iDAAiD,SAAS,CAAC,CAAC,SAAS;CAClF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3H,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACtE,MAAa,yCAAuDA,IAAAA,EAAE,OAAO;CAC3E,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;CACvD,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;AAClF,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAE9D,MAAa,mCAAmCC,eAAAA,OAAO,wCAAwC;CAC7F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/update-user-attributes-values.d.ts
|
|
4
|
+
declare const SanityUpdateUserAttributesValuesInput: z.ZodTypeAny;
|
|
5
|
+
declare const SanityUpdateUserAttributesValuesOutput: z.ZodTypeAny;
|
|
6
|
+
declare const sanityUpdateUserAttributesValues: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { sanityUpdateUserAttributesValues };
|
|
9
|
+
//# sourceMappingURL=update-user-attributes-values.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-user-attributes-values.d.cts","names":[],"sources":["../../src/actions/update-user-attributes-values.ts"],"mappings":";;;cAIa,qCAAA,EAAuC,CAAA,CAAE,UAKU;AAAA,cASnD,sCAAA,EAAwC,CAAA,CAAE,UAKQ;AAAA,cAElD,gCAAA,gCAAgC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/update-user-attributes-values.d.ts
|
|
4
|
+
declare const SanityUpdateUserAttributesValuesInput: z.ZodTypeAny;
|
|
5
|
+
declare const SanityUpdateUserAttributesValuesOutput: z.ZodTypeAny;
|
|
6
|
+
declare const sanityUpdateUserAttributesValues: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { sanityUpdateUserAttributesValues };
|
|
9
|
+
//# sourceMappingURL=update-user-attributes-values.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-user-attributes-values.d.mts","names":[],"sources":["../../src/actions/update-user-attributes-values.ts"],"mappings":";;;cAIa,qCAAA,EAAuC,CAAA,CAAE,UAKU;AAAA,cASnD,sCAAA,EAAwC,CAAA,CAAE,UAKQ;AAAA,cAElD,gCAAA,gCAAgC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/update-user-attributes-values.ts
|
|
4
|
+
const SanityUpdateUserAttributesValuesInput = z.object({
|
|
5
|
+
userId: z.string().describe("The unique identifier of the user whose attributes to update."),
|
|
6
|
+
attributes: z.object({}).describe("A dictionary of attribute key-value pairs to set for the user. Values can be strings, numbers, booleans, arrays, or nested objects. These will shadow any SAML values for the same keys."),
|
|
7
|
+
resourceId: z.string().describe("The unique identifier of the resource. For organizations, this is the organization ID."),
|
|
8
|
+
resourceType: z.enum(["organization", "project"]).describe("The type of resource that scopes the user attributes (e.g., 'organization' or 'project').")
|
|
9
|
+
}).describe("Request model for updating user attribute values.");
|
|
10
|
+
const SanityUpdateUserAttributesValues_JsonValueSchema = z.unknown();
|
|
11
|
+
const SanityUpdateUserAttributesValues_UserAttributeSchema = z.object({
|
|
12
|
+
key: z.string().describe("The attribute key."),
|
|
13
|
+
type: z.string().describe("The attribute type (e.g., 'string', 'integer', 'boolean')."),
|
|
14
|
+
values: z.object({}).describe("The attribute values from different sources (e.g., {'sanity': 'value', 'saml': 'value'}).").nullable().optional(),
|
|
15
|
+
activeValue: SanityUpdateUserAttributesValues_JsonValueSchema.nullable().optional(),
|
|
16
|
+
activeSource: z.string().describe("The active source for the attribute value ('sanity' or 'saml').").nullable().optional()
|
|
17
|
+
}).describe("A user attribute with its values from different sources.");
|
|
18
|
+
const sanityUpdateUserAttributesValues = action("SANITY_UPDATE_USER_ATTRIBUTES_VALUES", {
|
|
19
|
+
slug: "sanity-update-user-attributes-values",
|
|
20
|
+
name: "Update User Attributes Values",
|
|
21
|
+
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.",
|
|
22
|
+
input: SanityUpdateUserAttributesValuesInput,
|
|
23
|
+
output: z.object({
|
|
24
|
+
updatedAt: z.string().describe("ISO 8601 timestamp of when the attributes were updated.").nullable().optional(),
|
|
25
|
+
attributes: z.array(SanityUpdateUserAttributesValues_UserAttributeSchema).describe("The updated list of user attributes.").nullable().optional(),
|
|
26
|
+
sanityUserId: z.string().describe("The Sanity user ID."),
|
|
27
|
+
organizationId: z.string().describe("The unique identifier of the organization.")
|
|
28
|
+
}).describe("Response model for user attribute values update.")
|
|
29
|
+
});
|
|
30
|
+
//#endregion
|
|
31
|
+
export { sanityUpdateUserAttributesValues };
|
|
32
|
+
|
|
33
|
+
//# sourceMappingURL=update-user-attributes-values.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-user-attributes-values.mjs","names":[],"sources":["../../src/actions/update-user-attributes-values.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityUpdateUserAttributesValuesInput: z.ZodTypeAny = z.object({\n userId: z.string().describe(\"The unique identifier of the user whose attributes to update.\"),\n attributes: z.object({}).describe(\"A dictionary of attribute key-value pairs to set for the user. Values can be strings, numbers, booleans, arrays, or nested objects. These will shadow any SAML values for the same keys.\"),\n resourceId: z.string().describe(\"The unique identifier of the resource. For organizations, this is the organization ID.\"),\n resourceType: z.enum([\"organization\", \"project\"]).describe(\"The type of resource that scopes the user attributes (e.g., 'organization' or 'project').\"),\n}).describe(\"Request model for updating user attribute values.\");\nconst SanityUpdateUserAttributesValues_JsonValueSchema: z.ZodTypeAny = z.unknown();\nconst SanityUpdateUserAttributesValues_UserAttributeSchema: z.ZodTypeAny = z.object({\n key: z.string().describe(\"The attribute key.\"),\n type: z.string().describe(\"The attribute type (e.g., 'string', 'integer', 'boolean').\"),\n values: z.object({}).describe(\"The attribute values from different sources (e.g., {'sanity': 'value', 'saml': 'value'}).\").nullable().optional(),\n activeValue: SanityUpdateUserAttributesValues_JsonValueSchema.nullable().optional(),\n activeSource: z.string().describe(\"The active source for the attribute value ('sanity' or 'saml').\").nullable().optional(),\n}).describe(\"A user attribute with its values from different sources.\");\nexport const SanityUpdateUserAttributesValuesOutput: z.ZodTypeAny = z.object({\n updatedAt: z.string().describe(\"ISO 8601 timestamp of when the attributes were updated.\").nullable().optional(),\n attributes: z.array(SanityUpdateUserAttributesValues_UserAttributeSchema).describe(\"The updated list of user attributes.\").nullable().optional(),\n sanityUserId: z.string().describe(\"The Sanity user ID.\"),\n organizationId: z.string().describe(\"The unique identifier of the organization.\"),\n}).describe(\"Response model for user attribute values update.\");\n\nexport const sanityUpdateUserAttributesValues = action(\"SANITY_UPDATE_USER_ATTRIBUTES_VALUES\", {\n slug: \"sanity-update-user-attributes-values\",\n name: \"Update User Attributes Values\",\n description: \"Update user attribute values for a resource. Use this action to set or update custom attributes for a user within an organization or project. When setting a value for an attribute key that also exists in SAML, the Sanity value will take precedence and shadow the SAML value.\",\n input: SanityUpdateUserAttributesValuesInput,\n output: SanityUpdateUserAttributesValuesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wCAAsD,EAAE,OAAO;CAC1E,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D;CAC3F,YAAY,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,0LAA0L;CAC5N,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF;CACxH,cAAc,EAAE,KAAK,CAAC,gBAAgB,SAAS,CAAC,CAAC,CAAC,SAAS,2FAA2F;AACxJ,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAM,mDAAiE,EAAE,QAAQ;AACjF,MAAM,uDAAqE,EAAE,OAAO;CAClF,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB;CAC7C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;CACtF,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/I,aAAa,iDAAiD,SAAS,CAAC,CAAC,SAAS;CAClF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3H,CAAC,CAAC,CAAC,SAAS,0DAA0D;AAQtE,MAAa,mCAAmC,OAAO,wCAAwC;CAC7F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZkE,EAAE,OAAO;EAC3E,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9G,YAAY,EAAE,MAAM,oDAAoD,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/I,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;EACvD,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;CAClF,CAAC,CAAC,CAAC,SAAS,kDAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/validate-credential.ts
|
|
4
|
+
const SanityValidateCredentialInput = zod.z.object({}).describe("Request model for validating Sanity API credentials.\nNo parameters required - uses the token from metadata headers.");
|
|
5
|
+
const SanityValidateCredential_UserInfoSchema = zod.z.object({
|
|
6
|
+
id: zod.z.string().describe("The unique identifier of the user.").nullable().optional(),
|
|
7
|
+
name: zod.z.string().describe("The display name of the user.").nullable().optional(),
|
|
8
|
+
email: zod.z.string().describe("The email address of the user.").nullable().optional(),
|
|
9
|
+
profileImage: zod.z.string().describe("URL to the user's profile image.").nullable().optional()
|
|
10
|
+
}).describe("Information about the authenticated user.");
|
|
11
|
+
const SanityValidateCredential_ProjectInfoSchema = zod.z.object({
|
|
12
|
+
id: zod.z.string().describe("The unique identifier of the project.").nullable().optional(),
|
|
13
|
+
displayName: zod.z.string().describe("The display name of the project.").nullable().optional(),
|
|
14
|
+
organizationId: zod.z.string().describe("The organization ID the project belongs to.").nullable().optional()
|
|
15
|
+
}).describe("Information about a project the user has access to.");
|
|
16
|
+
const SanityValidateCredentialOutput = zod.z.object({
|
|
17
|
+
user: SanityValidateCredential_UserInfoSchema.nullable().optional(),
|
|
18
|
+
error: zod.z.string().describe("Error message if validation failed.").nullable().optional(),
|
|
19
|
+
valid: zod.z.boolean().describe("Whether the credential is valid and authenticated successfully."),
|
|
20
|
+
projects: zod.z.array(SanityValidateCredential_ProjectInfoSchema).describe("List of projects the user has access to, if available.").nullable().optional()
|
|
21
|
+
}).describe("Response model for credential validation.");
|
|
22
|
+
const sanityValidateCredential = require_action.action("SANITY_VALIDATE_CREDENTIAL", {
|
|
23
|
+
slug: "sanity-validate-credential",
|
|
24
|
+
name: "Validate Credential",
|
|
25
|
+
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.",
|
|
26
|
+
input: SanityValidateCredentialInput,
|
|
27
|
+
output: SanityValidateCredentialOutput
|
|
28
|
+
});
|
|
29
|
+
//#endregion
|
|
30
|
+
exports.sanityValidateCredential = sanityValidateCredential;
|
|
31
|
+
|
|
32
|
+
//# sourceMappingURL=validate-credential.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validate-credential.cjs","names":["z","action"],"sources":["../../src/actions/validate-credential.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityValidateCredentialInput: z.ZodTypeAny = z.object({}).describe(\"Request model for validating Sanity API credentials.\\nNo parameters required - uses the token from metadata headers.\");\nconst SanityValidateCredential_UserInfoSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier of the user.\").nullable().optional(),\n name: z.string().describe(\"The display name of the user.\").nullable().optional(),\n email: z.string().describe(\"The email address of the user.\").nullable().optional(),\n profileImage: z.string().describe(\"URL to the user's profile image.\").nullable().optional(),\n}).describe(\"Information about the authenticated user.\");\nconst SanityValidateCredential_ProjectInfoSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier of the project.\").nullable().optional(),\n displayName: z.string().describe(\"The display name of the project.\").nullable().optional(),\n organizationId: z.string().describe(\"The organization ID the project belongs to.\").nullable().optional(),\n}).describe(\"Information about a project the user has access to.\");\nexport const SanityValidateCredentialOutput: z.ZodTypeAny = z.object({\n user: SanityValidateCredential_UserInfoSchema.nullable().optional(),\n error: z.string().describe(\"Error message if validation failed.\").nullable().optional(),\n valid: z.boolean().describe(\"Whether the credential is valid and authenticated successfully.\"),\n projects: z.array(SanityValidateCredential_ProjectInfoSchema).describe(\"List of projects the user has access to, if available.\").nullable().optional(),\n}).describe(\"Response model for credential validation.\");\n\nexport const sanityValidateCredential = action(\"SANITY_VALIDATE_CREDENTIAL\", {\n slug: \"sanity-validate-credential\",\n name: \"Validate Credential\",\n description: \"Validate Sanity API credentials by fetching the authenticated user's information. Use this action when you need to verify that an API token is valid and has proper authentication. This action returns user information and accessible projects if the token is valid.\",\n input: SanityValidateCredentialInput,\n output: SanityValidateCredentialOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAA8CA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,sHAAsH;AACvM,MAAM,0CAAwDA,IAAAA,EAAE,OAAO;CACrE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,SAAS,2CAA2C;AACvD,MAAM,6CAA2DA,IAAAA,EAAE,OAAO;CACxE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzG,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAa,iCAA+CA,IAAAA,EAAE,OAAO;CACnE,MAAM,wCAAwC,SAAS,CAAC,CAAC,SAAS;CAClE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iEAAiE;CAC7F,UAAUA,IAAAA,EAAE,MAAM,0CAA0C,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvJ,CAAC,CAAC,CAAC,SAAS,2CAA2C;AAEvD,MAAa,2BAA2BC,eAAAA,OAAO,8BAA8B;CAC3E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/validate-credential.d.ts
|
|
4
|
+
declare const SanityValidateCredentialInput: z.ZodTypeAny;
|
|
5
|
+
declare const SanityValidateCredentialOutput: z.ZodTypeAny;
|
|
6
|
+
declare const sanityValidateCredential: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { sanityValidateCredential };
|
|
9
|
+
//# sourceMappingURL=validate-credential.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validate-credential.d.cts","names":[],"sources":["../../src/actions/validate-credential.ts"],"mappings":";;;cAIa,6BAAA,EAA+B,CAAA,CAAE,UAA0J;AAAA,cAY3L,8BAAA,EAAgC,CAAA,CAAE,UAKS;AAAA,cAE3C,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/validate-credential.d.ts
|
|
4
|
+
declare const SanityValidateCredentialInput: z.ZodTypeAny;
|
|
5
|
+
declare const SanityValidateCredentialOutput: z.ZodTypeAny;
|
|
6
|
+
declare const sanityValidateCredential: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { sanityValidateCredential };
|
|
9
|
+
//# sourceMappingURL=validate-credential.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validate-credential.d.mts","names":[],"sources":["../../src/actions/validate-credential.ts"],"mappings":";;;cAIa,6BAAA,EAA+B,CAAA,CAAE,UAA0J;AAAA,cAY3L,8BAAA,EAAgC,CAAA,CAAE,UAKS;AAAA,cAE3C,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/validate-credential.ts
|
|
4
|
+
const SanityValidateCredentialInput = z.object({}).describe("Request model for validating Sanity API credentials.\nNo parameters required - uses the token from metadata headers.");
|
|
5
|
+
const SanityValidateCredential_UserInfoSchema = z.object({
|
|
6
|
+
id: z.string().describe("The unique identifier of the user.").nullable().optional(),
|
|
7
|
+
name: z.string().describe("The display name of the user.").nullable().optional(),
|
|
8
|
+
email: z.string().describe("The email address of the user.").nullable().optional(),
|
|
9
|
+
profileImage: z.string().describe("URL to the user's profile image.").nullable().optional()
|
|
10
|
+
}).describe("Information about the authenticated user.");
|
|
11
|
+
const SanityValidateCredential_ProjectInfoSchema = z.object({
|
|
12
|
+
id: z.string().describe("The unique identifier of the project.").nullable().optional(),
|
|
13
|
+
displayName: z.string().describe("The display name of the project.").nullable().optional(),
|
|
14
|
+
organizationId: z.string().describe("The organization ID the project belongs to.").nullable().optional()
|
|
15
|
+
}).describe("Information about a project the user has access to.");
|
|
16
|
+
const sanityValidateCredential = action("SANITY_VALIDATE_CREDENTIAL", {
|
|
17
|
+
slug: "sanity-validate-credential",
|
|
18
|
+
name: "Validate Credential",
|
|
19
|
+
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.",
|
|
20
|
+
input: SanityValidateCredentialInput,
|
|
21
|
+
output: z.object({
|
|
22
|
+
user: SanityValidateCredential_UserInfoSchema.nullable().optional(),
|
|
23
|
+
error: z.string().describe("Error message if validation failed.").nullable().optional(),
|
|
24
|
+
valid: z.boolean().describe("Whether the credential is valid and authenticated successfully."),
|
|
25
|
+
projects: z.array(SanityValidateCredential_ProjectInfoSchema).describe("List of projects the user has access to, if available.").nullable().optional()
|
|
26
|
+
}).describe("Response model for credential validation.")
|
|
27
|
+
});
|
|
28
|
+
//#endregion
|
|
29
|
+
export { sanityValidateCredential };
|
|
30
|
+
|
|
31
|
+
//# sourceMappingURL=validate-credential.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validate-credential.mjs","names":[],"sources":["../../src/actions/validate-credential.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityValidateCredentialInput: z.ZodTypeAny = z.object({}).describe(\"Request model for validating Sanity API credentials.\\nNo parameters required - uses the token from metadata headers.\");\nconst SanityValidateCredential_UserInfoSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier of the user.\").nullable().optional(),\n name: z.string().describe(\"The display name of the user.\").nullable().optional(),\n email: z.string().describe(\"The email address of the user.\").nullable().optional(),\n profileImage: z.string().describe(\"URL to the user's profile image.\").nullable().optional(),\n}).describe(\"Information about the authenticated user.\");\nconst SanityValidateCredential_ProjectInfoSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier of the project.\").nullable().optional(),\n displayName: z.string().describe(\"The display name of the project.\").nullable().optional(),\n organizationId: z.string().describe(\"The organization ID the project belongs to.\").nullable().optional(),\n}).describe(\"Information about a project the user has access to.\");\nexport const SanityValidateCredentialOutput: z.ZodTypeAny = z.object({\n user: SanityValidateCredential_UserInfoSchema.nullable().optional(),\n error: z.string().describe(\"Error message if validation failed.\").nullable().optional(),\n valid: z.boolean().describe(\"Whether the credential is valid and authenticated successfully.\"),\n projects: z.array(SanityValidateCredential_ProjectInfoSchema).describe(\"List of projects the user has access to, if available.\").nullable().optional(),\n}).describe(\"Response model for credential validation.\");\n\nexport const sanityValidateCredential = action(\"SANITY_VALIDATE_CREDENTIAL\", {\n slug: \"sanity-validate-credential\",\n name: \"Validate Credential\",\n description: \"Validate Sanity API credentials by fetching the authenticated user's information. Use this action when you need to verify that an API token is valid and has proper authentication. This action returns user information and accessible projects if the token is valid.\",\n input: SanityValidateCredentialInput,\n output: SanityValidateCredentialOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAA8C,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,sHAAsH;AACvM,MAAM,0CAAwD,EAAE,OAAO;CACrE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,SAAS,2CAA2C;AACvD,MAAM,6CAA2D,EAAE,OAAO;CACxE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzG,CAAC,CAAC,CAAC,SAAS,qDAAqD;AAQjE,MAAa,2BAA2B,OAAO,8BAA8B;CAC3E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZ0D,EAAE,OAAO;EACnE,MAAM,wCAAwC,SAAS,CAAC,CAAC,SAAS;EAClE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtF,OAAO,EAAE,QAAQ,CAAC,CAAC,SAAS,iEAAiE;EAC7F,UAAU,EAAE,MAAM,0CAA0C,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvJ,CAAC,CAAC,CAAC,SAAS,2CAOF;AACV,CAAC"}
|
package/dist/app.cjs
ADDED
package/dist/app.cjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.cjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const sanity = defineApp({\n slug: \"sanity\",\n auth: \"keystroke\",\n});\n"],"mappings":";AAEA,MAAa,UAAA,uCAAA,CAAA,CAAA,UAAA,CAAmB;CAC9B,MAAM;CACN,MAAM;AACR,CAAC"}
|
package/dist/app.d.cts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";cAEa,MAAA,6BAAM,GAAA,+BAAA,UAAA"}
|
package/dist/app.d.mts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";cAEa,MAAA,6BAAM,GAAA,+BAAA,UAAA"}
|
package/dist/app.mjs
ADDED
package/dist/app.mjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const sanity = defineApp({\n slug: \"sanity\",\n auth: \"keystroke\",\n});\n"],"mappings":";;AAEA,MAAa,SAAS,UAAU;CAC9B,MAAM;CACN,MAAM;AACR,CAAC"}
|
package/dist/catalog.cjs
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//#region src/catalog.ts
|
|
2
|
+
/** Generated — kept in sync with src/app.ts. */
|
|
3
|
+
const sanityCatalog = {
|
|
4
|
+
"slug": "sanity",
|
|
5
|
+
"name": "Sanity",
|
|
6
|
+
"description": "Sanity is a headless CMS platform that provides structured content storage and APIs for modern applications",
|
|
7
|
+
"category": "Developer Tools",
|
|
8
|
+
"logo": "https://logos.composio.dev/api/sanity",
|
|
9
|
+
"authKind": "keystroke",
|
|
10
|
+
"oauthScopes": []
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
exports.sanityCatalog = sanityCatalog;
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=catalog.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog.cjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const sanityCatalog = {\n \"slug\": \"sanity\",\n \"name\": \"Sanity\",\n \"description\": \"Sanity is a headless CMS platform that provides structured content storage and APIs for modern applications\",\n \"category\": \"Developer Tools\",\n \"logo\": \"https://logos.composio.dev/api/sanity\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,gBAAgB;CAC3B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;AAClB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region src/catalog.d.ts
|
|
2
|
+
/** Generated — kept in sync with src/app.ts. */
|
|
3
|
+
declare const sanityCatalog: {
|
|
4
|
+
readonly slug: "sanity";
|
|
5
|
+
readonly name: "Sanity";
|
|
6
|
+
readonly description: "Sanity is a headless CMS platform that provides structured content storage and APIs for modern applications";
|
|
7
|
+
readonly category: "Developer Tools";
|
|
8
|
+
readonly logo: "https://logos.composio.dev/api/sanity";
|
|
9
|
+
readonly authKind: "keystroke";
|
|
10
|
+
readonly oauthScopes: readonly [];
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { sanityCatalog };
|
|
14
|
+
//# sourceMappingURL=catalog.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog.d.cts","names":[],"sources":["../src/catalog.ts"],"mappings":";;cACa,aAAA;EAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region src/catalog.d.ts
|
|
2
|
+
/** Generated — kept in sync with src/app.ts. */
|
|
3
|
+
declare const sanityCatalog: {
|
|
4
|
+
readonly slug: "sanity";
|
|
5
|
+
readonly name: "Sanity";
|
|
6
|
+
readonly description: "Sanity is a headless CMS platform that provides structured content storage and APIs for modern applications";
|
|
7
|
+
readonly category: "Developer Tools";
|
|
8
|
+
readonly logo: "https://logos.composio.dev/api/sanity";
|
|
9
|
+
readonly authKind: "keystroke";
|
|
10
|
+
readonly oauthScopes: readonly [];
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { sanityCatalog };
|
|
14
|
+
//# sourceMappingURL=catalog.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog.d.mts","names":[],"sources":["../src/catalog.ts"],"mappings":";;cACa,aAAA;EAAA"}
|
package/dist/catalog.mjs
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//#region src/catalog.ts
|
|
2
|
+
/** Generated — kept in sync with src/app.ts. */
|
|
3
|
+
const sanityCatalog = {
|
|
4
|
+
"slug": "sanity",
|
|
5
|
+
"name": "Sanity",
|
|
6
|
+
"description": "Sanity is a headless CMS platform that provides structured content storage and APIs for modern applications",
|
|
7
|
+
"category": "Developer Tools",
|
|
8
|
+
"logo": "https://logos.composio.dev/api/sanity",
|
|
9
|
+
"authKind": "keystroke",
|
|
10
|
+
"oauthScopes": []
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { sanityCatalog };
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=catalog.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog.mjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const sanityCatalog = {\n \"slug\": \"sanity\",\n \"name\": \"Sanity\",\n \"description\": \"Sanity is a headless CMS platform that provides structured content storage and APIs for modern applications\",\n \"category\": \"Developer Tools\",\n \"logo\": \"https://logos.composio.dev/api/sanity\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,gBAAgB;CAC3B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;AAClB"}
|
package/dist/execute.cjs
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
let _keystrokehq_keystroke_client = require("@keystrokehq/keystroke/client");
|
|
2
|
+
//#region src/execute.ts
|
|
3
|
+
const APP_SLUG = "sanity";
|
|
4
|
+
/** Pinned app version — updated on regeneration. */
|
|
5
|
+
const APP_VERSION = "20260615_00";
|
|
6
|
+
async function executeSanityTool(tool, args) {
|
|
7
|
+
const { result } = await (0, _keystrokehq_keystroke_client.createKeystrokeClient)().tools.execute({
|
|
8
|
+
app: APP_SLUG,
|
|
9
|
+
tool,
|
|
10
|
+
arguments: args,
|
|
11
|
+
version: APP_VERSION
|
|
12
|
+
});
|
|
13
|
+
return result;
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
exports.executeSanityTool = executeSanityTool;
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=execute.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execute.cjs","names":[],"sources":["../src/execute.ts"],"sourcesContent":["import { createKeystrokeClient } from \"@keystrokehq/keystroke/client\";\n\nconst APP_SLUG = \"sanity\";\n/** Pinned app version — updated on regeneration. */\nconst APP_VERSION = \"20260615_00\";\n\nexport async function executeSanityTool(\n tool: string,\n args: Record<string, unknown>,\n): Promise<unknown> {\n const { result } = await createKeystrokeClient().tools.execute({\n app: APP_SLUG,\n tool,\n arguments: args,\n version: APP_VERSION,\n });\n return result;\n}\n"],"mappings":";;AAEA,MAAM,WAAW;;AAEjB,MAAM,cAAc;AAEpB,eAAsB,kBACpB,MACA,MACkB;CAClB,MAAM,EAAE,WAAW,OAAA,GAAA,8BAAA,sBAAA,CAA4B,CAAC,CAAC,MAAM,QAAQ;EAC7D,KAAK;EACL;EACA,WAAW;EACX,SAAS;CACX,CAAC;CACD,OAAO;AACT"}
|
package/dist/execute.mjs
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { createKeystrokeClient } from "@keystrokehq/keystroke/client";
|
|
2
|
+
//#region src/execute.ts
|
|
3
|
+
const APP_SLUG = "sanity";
|
|
4
|
+
/** Pinned app version — updated on regeneration. */
|
|
5
|
+
const APP_VERSION = "20260615_00";
|
|
6
|
+
async function executeSanityTool(tool, args) {
|
|
7
|
+
const { result } = await createKeystrokeClient().tools.execute({
|
|
8
|
+
app: APP_SLUG,
|
|
9
|
+
tool,
|
|
10
|
+
arguments: args,
|
|
11
|
+
version: APP_VERSION
|
|
12
|
+
});
|
|
13
|
+
return result;
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
export { executeSanityTool };
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=execute.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execute.mjs","names":[],"sources":["../src/execute.ts"],"sourcesContent":["import { createKeystrokeClient } from \"@keystrokehq/keystroke/client\";\n\nconst APP_SLUG = \"sanity\";\n/** Pinned app version — updated on regeneration. */\nconst APP_VERSION = \"20260615_00\";\n\nexport async function executeSanityTool(\n tool: string,\n args: Record<string, unknown>,\n): Promise<unknown> {\n const { result } = await createKeystrokeClient().tools.execute({\n app: APP_SLUG,\n tool,\n arguments: args,\n version: APP_VERSION,\n });\n return result;\n}\n"],"mappings":";;AAEA,MAAM,WAAW;;AAEjB,MAAM,cAAc;AAEpB,eAAsB,kBACpB,MACA,MACkB;CAClB,MAAM,EAAE,WAAW,MAAM,sBAAsB,CAAC,CAAC,MAAM,QAAQ;EAC7D,KAAK;EACL;EACA,WAAW;EACX,SAAS;CACX,CAAC;CACD,OAAO;AACT"}
|