@keystrokehq/sanity 0.1.5 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/add-default-role-to-users.cjs +1 -0
- package/dist/actions/add-default-role-to-users.cjs.map +1 -1
- package/dist/actions/add-default-role-to-users.d.cts +3 -19
- package/dist/actions/add-default-role-to-users.d.cts.map +1 -1
- package/dist/actions/add-default-role-to-users.d.mts +3 -19
- package/dist/actions/add-default-role-to-users.d.mts.map +1 -1
- package/dist/actions/add-default-role-to-users.mjs +1 -0
- package/dist/actions/add-default-role-to-users.mjs.map +1 -1
- package/dist/actions/create-attr-definition.cjs +1 -0
- package/dist/actions/create-attr-definition.cjs.map +1 -1
- package/dist/actions/create-attr-definition.d.cts +3 -25
- package/dist/actions/create-attr-definition.d.cts.map +1 -1
- package/dist/actions/create-attr-definition.d.mts +3 -25
- package/dist/actions/create-attr-definition.d.mts.map +1 -1
- package/dist/actions/create-attr-definition.mjs +1 -0
- package/dist/actions/create-attr-definition.mjs.map +1 -1
- package/dist/actions/create-prompt-post.cjs +1 -0
- package/dist/actions/create-prompt-post.cjs.map +1 -1
- package/dist/actions/create-prompt-post.d.cts +3 -23
- package/dist/actions/create-prompt-post.d.cts.map +1 -1
- package/dist/actions/create-prompt-post.d.mts +3 -23
- package/dist/actions/create-prompt-post.d.mts.map +1 -1
- package/dist/actions/create-prompt-post.mjs +1 -0
- package/dist/actions/create-prompt-post.mjs.map +1 -1
- package/dist/actions/delete-attr-definition.cjs +1 -0
- package/dist/actions/delete-attr-definition.cjs.map +1 -1
- package/dist/actions/delete-attr-definition.d.cts +3 -21
- package/dist/actions/delete-attr-definition.d.cts.map +1 -1
- package/dist/actions/delete-attr-definition.d.mts +3 -21
- package/dist/actions/delete-attr-definition.d.mts.map +1 -1
- package/dist/actions/delete-attr-definition.mjs +1 -0
- package/dist/actions/delete-attr-definition.mjs.map +1 -1
- package/dist/actions/delete-document.cjs +1 -0
- package/dist/actions/delete-document.cjs.map +1 -1
- package/dist/actions/delete-document.d.cts +3 -27
- package/dist/actions/delete-document.d.cts.map +1 -1
- package/dist/actions/delete-document.d.mts +3 -27
- package/dist/actions/delete-document.d.mts.map +1 -1
- package/dist/actions/delete-document.mjs +1 -0
- package/dist/actions/delete-document.mjs.map +1 -1
- package/dist/actions/delete-user-attributes.cjs +1 -0
- package/dist/actions/delete-user-attributes.cjs.map +1 -1
- package/dist/actions/delete-user-attributes.d.cts +3 -24
- package/dist/actions/delete-user-attributes.d.cts.map +1 -1
- package/dist/actions/delete-user-attributes.d.mts +3 -24
- package/dist/actions/delete-user-attributes.d.mts.map +1 -1
- package/dist/actions/delete-user-attributes.mjs +1 -0
- package/dist/actions/delete-user-attributes.mjs.map +1 -1
- package/dist/actions/get-document.cjs +1 -0
- package/dist/actions/get-document.cjs.map +1 -1
- package/dist/actions/get-document.d.cts +3 -21
- package/dist/actions/get-document.d.cts.map +1 -1
- package/dist/actions/get-document.d.mts +3 -21
- package/dist/actions/get-document.d.mts.map +1 -1
- package/dist/actions/get-document.mjs +1 -0
- package/dist/actions/get-document.mjs.map +1 -1
- package/dist/actions/get-invite-by-token.cjs +1 -0
- package/dist/actions/get-invite-by-token.cjs.map +1 -1
- package/dist/actions/get-invite-by-token.d.cts +3 -21
- package/dist/actions/get-invite-by-token.d.cts.map +1 -1
- package/dist/actions/get-invite-by-token.d.mts +3 -21
- package/dist/actions/get-invite-by-token.d.mts.map +1 -1
- package/dist/actions/get-invite-by-token.mjs +1 -0
- package/dist/actions/get-invite-by-token.mjs.map +1 -1
- package/dist/actions/get-org-role.cjs +1 -0
- package/dist/actions/get-org-role.cjs.map +1 -1
- package/dist/actions/get-org-role.d.cts +3 -20
- package/dist/actions/get-org-role.d.cts.map +1 -1
- package/dist/actions/get-org-role.d.mts +3 -20
- package/dist/actions/get-org-role.d.mts.map +1 -1
- package/dist/actions/get-org-role.mjs +1 -0
- package/dist/actions/get-org-role.mjs.map +1 -1
- package/dist/actions/get-permission.cjs +1 -0
- package/dist/actions/get-permission.cjs.map +1 -1
- package/dist/actions/get-permission.d.cts +3 -21
- package/dist/actions/get-permission.d.cts.map +1 -1
- package/dist/actions/get-permission.d.mts +3 -21
- package/dist/actions/get-permission.d.mts.map +1 -1
- package/dist/actions/get-permission.mjs +1 -0
- package/dist/actions/get-permission.mjs.map +1 -1
- package/dist/actions/get-project.cjs +1 -0
- package/dist/actions/get-project.cjs.map +1 -1
- package/dist/actions/get-project.d.cts +3 -19
- package/dist/actions/get-project.d.cts.map +1 -1
- package/dist/actions/get-project.d.mts +3 -19
- package/dist/actions/get-project.d.mts.map +1 -1
- package/dist/actions/get-project.mjs +1 -0
- package/dist/actions/get-project.mjs.map +1 -1
- package/dist/actions/get-robots.cjs +1 -0
- package/dist/actions/get-robots.cjs.map +1 -1
- package/dist/actions/get-robots.d.cts +3 -23
- package/dist/actions/get-robots.d.cts.map +1 -1
- package/dist/actions/get-robots.d.mts +3 -23
- package/dist/actions/get-robots.d.mts.map +1 -1
- package/dist/actions/get-robots.mjs +1 -0
- package/dist/actions/get-robots.mjs.map +1 -1
- package/dist/actions/get-role.cjs +1 -0
- package/dist/actions/get-role.cjs.map +1 -1
- package/dist/actions/get-role.d.cts +3 -21
- package/dist/actions/get-role.d.cts.map +1 -1
- package/dist/actions/get-role.d.mts +3 -21
- package/dist/actions/get-role.d.mts.map +1 -1
- package/dist/actions/get-role.mjs +1 -0
- package/dist/actions/get-role.mjs.map +1 -1
- package/dist/actions/get-users.cjs +1 -0
- package/dist/actions/get-users.cjs.map +1 -1
- package/dist/actions/get-users.d.cts +3 -22
- package/dist/actions/get-users.d.cts.map +1 -1
- package/dist/actions/get-users.d.mts +3 -22
- package/dist/actions/get-users.d.mts.map +1 -1
- package/dist/actions/get-users.mjs +1 -0
- package/dist/actions/get-users.mjs.map +1 -1
- package/dist/actions/list-org-roles.cjs +1 -0
- package/dist/actions/list-org-roles.cjs.map +1 -1
- package/dist/actions/list-org-roles.d.cts +3 -19
- package/dist/actions/list-org-roles.d.cts.map +1 -1
- package/dist/actions/list-org-roles.d.mts +3 -19
- package/dist/actions/list-org-roles.d.mts.map +1 -1
- package/dist/actions/list-org-roles.mjs +1 -0
- package/dist/actions/list-org-roles.mjs.map +1 -1
- package/dist/actions/list-user-attributes.cjs +1 -0
- package/dist/actions/list-user-attributes.cjs.map +1 -1
- package/dist/actions/list-user-attributes.d.cts +3 -22
- package/dist/actions/list-user-attributes.d.cts.map +1 -1
- package/dist/actions/list-user-attributes.d.mts +3 -22
- package/dist/actions/list-user-attributes.d.mts.map +1 -1
- package/dist/actions/list-user-attributes.mjs +1 -0
- package/dist/actions/list-user-attributes.mjs.map +1 -1
- package/dist/actions/query-all-screening.cjs +1 -0
- package/dist/actions/query-all-screening.cjs.map +1 -1
- package/dist/actions/query-all-screening.d.cts +3 -23
- package/dist/actions/query-all-screening.d.cts.map +1 -1
- package/dist/actions/query-all-screening.d.mts +3 -23
- package/dist/actions/query-all-screening.d.mts.map +1 -1
- package/dist/actions/query-all-screening.mjs +1 -0
- package/dist/actions/query-all-screening.mjs.map +1 -1
- package/dist/actions/query-documents.cjs +1 -0
- package/dist/actions/query-documents.cjs.map +1 -1
- package/dist/actions/query-documents.d.cts +3 -24
- package/dist/actions/query-documents.d.cts.map +1 -1
- package/dist/actions/query-documents.d.mts +3 -24
- package/dist/actions/query-documents.d.mts.map +1 -1
- package/dist/actions/query-documents.mjs +1 -0
- package/dist/actions/query-documents.mjs.map +1 -1
- package/dist/actions/update-org-acl.cjs +1 -0
- package/dist/actions/update-org-acl.cjs.map +1 -1
- package/dist/actions/update-org-acl.d.cts +3 -21
- package/dist/actions/update-org-acl.d.cts.map +1 -1
- package/dist/actions/update-org-acl.d.mts +3 -21
- package/dist/actions/update-org-acl.d.mts.map +1 -1
- package/dist/actions/update-org-acl.mjs +1 -0
- package/dist/actions/update-org-acl.mjs.map +1 -1
- package/dist/actions/update-user-attributes-values.cjs +1 -0
- package/dist/actions/update-user-attributes-values.cjs.map +1 -1
- package/dist/actions/update-user-attributes-values.d.cts +3 -22
- package/dist/actions/update-user-attributes-values.d.cts.map +1 -1
- package/dist/actions/update-user-attributes-values.d.mts +3 -22
- package/dist/actions/update-user-attributes-values.d.mts.map +1 -1
- package/dist/actions/update-user-attributes-values.mjs +1 -0
- package/dist/actions/update-user-attributes-values.mjs.map +1 -1
- package/dist/actions/validate-credential.cjs +1 -0
- package/dist/actions/validate-credential.cjs.map +1 -1
- package/dist/actions/validate-credential.d.cts +3 -17
- package/dist/actions/validate-credential.d.cts.map +1 -1
- package/dist/actions/validate-credential.d.mts +3 -17
- package/dist/actions/validate-credential.d.mts.map +1 -1
- package/dist/actions/validate-credential.mjs +1 -0
- package/dist/actions/validate-credential.mjs.map +1 -1
- package/dist/app.cjs +6 -5
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +4 -6
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +4 -6
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +0 -1
- package/dist/app.mjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/package.json +2 -2
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { sanity } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/delete-document.d.ts
|
|
@@ -17,33 +19,7 @@ declare const SanityDeleteDocumentOutput: z.ZodObject<{
|
|
|
17
19
|
documentIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
18
20
|
transactionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
21
|
}, z.core.$loose>;
|
|
20
|
-
declare const sanityDeleteDocument:
|
|
21
|
-
dataset: string;
|
|
22
|
-
project_id: string;
|
|
23
|
-
purge?: boolean | undefined;
|
|
24
|
-
query?: string | undefined;
|
|
25
|
-
params?: Record<string, unknown> | undefined;
|
|
26
|
-
dry_run?: boolean | undefined;
|
|
27
|
-
return_ids?: boolean | undefined;
|
|
28
|
-
document_id?: string | undefined;
|
|
29
|
-
return_documents?: boolean | undefined;
|
|
30
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"sanity", z.ZodObject<{
|
|
31
|
-
connectionId: z.ZodString;
|
|
32
|
-
entityId: z.ZodString;
|
|
33
|
-
instanceId: z.ZodString;
|
|
34
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
35
|
-
subdomain: z.ZodString;
|
|
36
|
-
version: z.ZodString;
|
|
37
|
-
generic_api_key: z.ZodString;
|
|
38
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"sanity", z.ZodObject<{
|
|
39
|
-
connectionId: z.ZodString;
|
|
40
|
-
entityId: z.ZodString;
|
|
41
|
-
instanceId: z.ZodString;
|
|
42
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
43
|
-
subdomain: z.ZodString;
|
|
44
|
-
version: z.ZodString;
|
|
45
|
-
generic_api_key: z.ZodString;
|
|
46
|
-
}, z.core.$strip>>]>;
|
|
22
|
+
declare const sanityDeleteDocument: AppAction<typeof SanityDeleteDocumentInput, typeof SanityDeleteDocumentOutput, typeof sanity.credential>;
|
|
47
23
|
//#endregion
|
|
48
24
|
export { sanityDeleteDocument };
|
|
49
25
|
//# sourceMappingURL=delete-document.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-document.d.cts","names":[],"sources":["../../src/actions/delete-document.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"delete-document.d.cts","names":[],"sources":["../../src/actions/delete-document.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;cAWzB,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/delete-document.d.ts
|
|
@@ -17,33 +19,7 @@ declare const SanityDeleteDocumentOutput: z.ZodObject<{
|
|
|
17
19
|
documentIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
18
20
|
transactionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
21
|
}, z.core.$loose>;
|
|
20
|
-
declare const sanityDeleteDocument:
|
|
21
|
-
dataset: string;
|
|
22
|
-
project_id: string;
|
|
23
|
-
purge?: boolean | undefined;
|
|
24
|
-
query?: string | undefined;
|
|
25
|
-
params?: Record<string, unknown> | undefined;
|
|
26
|
-
dry_run?: boolean | undefined;
|
|
27
|
-
return_ids?: boolean | undefined;
|
|
28
|
-
document_id?: string | undefined;
|
|
29
|
-
return_documents?: boolean | undefined;
|
|
30
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"sanity", z.ZodObject<{
|
|
31
|
-
connectionId: z.ZodString;
|
|
32
|
-
entityId: z.ZodString;
|
|
33
|
-
instanceId: z.ZodString;
|
|
34
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
35
|
-
subdomain: z.ZodString;
|
|
36
|
-
version: z.ZodString;
|
|
37
|
-
generic_api_key: z.ZodString;
|
|
38
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"sanity", z.ZodObject<{
|
|
39
|
-
connectionId: z.ZodString;
|
|
40
|
-
entityId: z.ZodString;
|
|
41
|
-
instanceId: z.ZodString;
|
|
42
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
43
|
-
subdomain: z.ZodString;
|
|
44
|
-
version: z.ZodString;
|
|
45
|
-
generic_api_key: z.ZodString;
|
|
46
|
-
}, z.core.$strip>>]>;
|
|
22
|
+
declare const sanityDeleteDocument: AppAction<typeof SanityDeleteDocumentInput, typeof SanityDeleteDocumentOutput, typeof sanity.credential>;
|
|
47
23
|
//#endregion
|
|
48
24
|
export { sanityDeleteDocument };
|
|
49
25
|
//# sourceMappingURL=delete-document.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-document.d.mts","names":[],"sources":["../../src/actions/delete-document.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"delete-document.d.mts","names":[],"sources":["../../src/actions/delete-document.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;cAWzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;cAM1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-document.mjs","names":[],"sources":["../../src/actions/delete-document.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityDeleteDocumentInput = z.object({\n purge: z.boolean().describe(\"If true, permanently removes the document from the history. If false or omitted, the document is soft-deleted and can be recovered.\").optional(),\n query: z.string().describe(\"GROQ query string to select documents for deletion. Query-based deletions are limited to 10,000 documents. Either document_id or query must be provided, not both.\").optional(),\n params: z.record(z.string(), z.unknown()).describe(\"Optional parameters for the GROQ query when using query-based deletion. Use $variableName syntax in the query.\").optional(),\n dataset: z.string().describe(\"The dataset name where the document resides.\"),\n dry_run: z.boolean().describe(\"If true, simulates the deletion without actually modifying any documents. Useful for testing.\").optional(),\n project_id: z.string().describe(\"The Sanity project ID where the document resides.\"),\n return_ids: z.boolean().describe(\"If true, returns the IDs of deleted documents in the response.\").optional(),\n document_id: z.string().describe(\"The ID of the specific document to delete. Either document_id or query must be provided, not both.\").optional(),\n return_documents: z.boolean().describe(\"If true, returns the full document content of deleted documents in the response.\").optional(),\n}).describe(\"Request model for deleting a document from Sanity.\");\nexport const SanityDeleteDocumentOutput = z.object({\n results: z.array(z.record(z.string(), z.unknown())).describe(\"List of full document objects that were deleted. Only present if return_documents was true.\").nullable().optional(),\n documentIds: z.array(z.string()).describe(\"List of document IDs that were deleted. Only present if return_ids was true.\").nullable().optional(),\n transactionId: z.string().describe(\"Unique identifier for this mutation transaction.\").nullable().optional(),\n}).passthrough().describe(\"Response model for the delete document operation.\");\n\nexport const sanityDeleteDocument = action(\"SANITY_DELETE_DOCUMENT\", {\n slug: \"sanity-delete-document\",\n name: \"Delete Document\",\n description: \"Delete a document from Sanity by ID or query. This action is irreversible when purge is true — the document cannot be recovered once permanently deleted. Use when you need to remove a specific document by ID or bulk delete documents matching a GROQ query (limited to 10,000 documents per operation). For large deletions, paginate by document ID. Set dry_run to true to test the operation without modifying data.\",\n input: SanityDeleteDocumentInput,\n output: SanityDeleteDocumentOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"delete-document.mjs","names":[],"sources":["../../src/actions/delete-document.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { sanity } from \"../app\";\n\nexport const SanityDeleteDocumentInput = z.object({\n purge: z.boolean().describe(\"If true, permanently removes the document from the history. If false or omitted, the document is soft-deleted and can be recovered.\").optional(),\n query: z.string().describe(\"GROQ query string to select documents for deletion. Query-based deletions are limited to 10,000 documents. Either document_id or query must be provided, not both.\").optional(),\n params: z.record(z.string(), z.unknown()).describe(\"Optional parameters for the GROQ query when using query-based deletion. Use $variableName syntax in the query.\").optional(),\n dataset: z.string().describe(\"The dataset name where the document resides.\"),\n dry_run: z.boolean().describe(\"If true, simulates the deletion without actually modifying any documents. Useful for testing.\").optional(),\n project_id: z.string().describe(\"The Sanity project ID where the document resides.\"),\n return_ids: z.boolean().describe(\"If true, returns the IDs of deleted documents in the response.\").optional(),\n document_id: z.string().describe(\"The ID of the specific document to delete. Either document_id or query must be provided, not both.\").optional(),\n return_documents: z.boolean().describe(\"If true, returns the full document content of deleted documents in the response.\").optional(),\n}).describe(\"Request model for deleting a document from Sanity.\");\nexport const SanityDeleteDocumentOutput = z.object({\n results: z.array(z.record(z.string(), z.unknown())).describe(\"List of full document objects that were deleted. Only present if return_documents was true.\").nullable().optional(),\n documentIds: z.array(z.string()).describe(\"List of document IDs that were deleted. Only present if return_ids was true.\").nullable().optional(),\n transactionId: z.string().describe(\"Unique identifier for this mutation transaction.\").nullable().optional(),\n}).passthrough().describe(\"Response model for the delete document operation.\");\n\nexport const sanityDeleteDocument: AppAction<\n typeof SanityDeleteDocumentInput,\n typeof SanityDeleteDocumentOutput,\n typeof sanity.credential\n> = action(\"SANITY_DELETE_DOCUMENT\", {\n slug: \"sanity-delete-document\",\n name: \"Delete Document\",\n description: \"Delete a document from Sanity by ID or query. This action is irreversible when purge is true — the document cannot be recovered once permanently deleted. Use when you need to remove a specific document by ID or bulk delete documents matching a GROQ query (limited to 10,000 documents per operation). For large deletions, paginate by document ID. Set dry_run to true to test the operation without modifying data.\",\n input: SanityDeleteDocumentInput,\n output: SanityDeleteDocumentOutput,\n});\n"],"mappings":";;;AAuBA,MAAa,uBAIT,OAAO,0BAA0B;CACnC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAzBuC,EAAE,OAAO;EAChD,OAAO,EAAE,QAAQ,CAAC,CAAC,SAAS,qIAAqI,CAAC,CAAC,SAAS;EAC5K,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oKAAoK,CAAC,CAAC,SAAS;EAC1M,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,gHAAgH,CAAC,CAAC,SAAS;EAC9K,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;EAC3E,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,+FAA+F,CAAC,CAAC,SAAS;EACxI,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;EACnF,YAAY,EAAE,QAAQ,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;EAC5G,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;EAChJ,kBAAkB,EAAE,QAAQ,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;CACtI,CAAC,CAAC,CAAC,SAAS,oDAeH;CACP,QAfwC,EAAE,OAAO;EACjD,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChL,aAAa,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9I,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-user-attributes.cjs","names":["z","action"],"sources":["../../src/actions/delete-user-attributes.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityDeleteUserAttributesInput = z.object({\n attributes: z.array(z.object({\n key: z.string().describe(\"The key of the attribute to delete\"),\n}).passthrough().describe(\"Single attribute key to delete.\")).describe(\"List of attribute keys to delete from the user\"),\n sanity_user_id: z.string().describe(\"Unique identifier of the Sanity user\"),\n organization_id: z.string().describe(\"Unique identifier of the organization\"),\n}).describe(\"Request model for deleting user attributes in a Sanity organization.\\n\\nUse this action to remove specific custom attributes from a user within an organization.\");\nconst SanityDeleteUserAttributes_AttributeItemSchema = z.object({\n key: z.string().describe(\"The key/name of the attribute\").nullable(),\n type: z.string().describe(\"The type of the attribute\").nullable(),\n values: z.record(z.string(), z.unknown()).describe(\"Possible values for this attribute\").nullable().optional(),\n active_value: z.record(z.string(), z.unknown()).describe(\"The active value for this attribute\").nullable().optional(),\n active_source: z.string().describe(\"The source of the active value\").nullable().optional(),\n}).passthrough().describe(\"Individual user attribute item.\");\nexport const SanityDeleteUserAttributesOutput = z.object({\n attributes: z.array(SanityDeleteUserAttributes_AttributeItemSchema).describe(\"Remaining attributes for the user\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when attributes were last updated in ISO 8601 format\").nullable().optional(),\n sanity_user_id: z.string().describe(\"ID of the user\").nullable().optional(),\n organization_id: z.string().describe(\"ID of the organization\").nullable().optional(),\n}).passthrough().describe(\"Response model for deleted user attributes.\\n\\nReturns the updated list of remaining attributes for the user after deletion.\");\n\nexport const sanityDeleteUserAttributes = action(\"SANITY_DELETE_USER_ATTRIBUTES\", {\n slug: \"sanity-delete-user-attributes\",\n name: \"Delete User Attributes\",\n description: \"Delete custom attributes from a Sanity user within an organization. Use this tool when you need to remove specific custom attributes from a user account. The action deletes the attributes specified in the request and returns the updated attribute list for the user. Example use case: Removing outdated metadata like 'location' or 'year_started' from a user profile.\",\n input: SanityDeleteUserAttributesInput,\n output: SanityDeleteUserAttributesOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"delete-user-attributes.cjs","names":["z","action"],"sources":["../../src/actions/delete-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 SanityDeleteUserAttributesInput = z.object({\n attributes: z.array(z.object({\n key: z.string().describe(\"The key of the attribute to delete\"),\n}).passthrough().describe(\"Single attribute key to delete.\")).describe(\"List of attribute keys to delete from the user\"),\n sanity_user_id: z.string().describe(\"Unique identifier of the Sanity user\"),\n organization_id: z.string().describe(\"Unique identifier of the organization\"),\n}).describe(\"Request model for deleting user attributes in a Sanity organization.\\n\\nUse this action to remove specific custom attributes from a user within an organization.\");\nconst SanityDeleteUserAttributes_AttributeItemSchema = z.object({\n key: z.string().describe(\"The key/name of the attribute\").nullable(),\n type: z.string().describe(\"The type of the attribute\").nullable(),\n values: z.record(z.string(), z.unknown()).describe(\"Possible values for this attribute\").nullable().optional(),\n active_value: z.record(z.string(), z.unknown()).describe(\"The active value for this attribute\").nullable().optional(),\n active_source: z.string().describe(\"The source of the active value\").nullable().optional(),\n}).passthrough().describe(\"Individual user attribute item.\");\nexport const SanityDeleteUserAttributesOutput = z.object({\n attributes: z.array(SanityDeleteUserAttributes_AttributeItemSchema).describe(\"Remaining attributes for the user\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when attributes were last updated in ISO 8601 format\").nullable().optional(),\n sanity_user_id: z.string().describe(\"ID of the user\").nullable().optional(),\n organization_id: z.string().describe(\"ID of the organization\").nullable().optional(),\n}).passthrough().describe(\"Response model for deleted user attributes.\\n\\nReturns the updated list of remaining attributes for the user after deletion.\");\n\nexport const sanityDeleteUserAttributes: AppAction<\n typeof SanityDeleteUserAttributesInput,\n typeof SanityDeleteUserAttributesOutput,\n typeof sanity.credential\n> = action(\"SANITY_DELETE_USER_ATTRIBUTES\", {\n slug: \"sanity-delete-user-attributes\",\n name: \"Delete User Attributes\",\n description: \"Delete custom attributes from a Sanity user within an organization. Use this tool when you need to remove specific custom attributes from a user account. The action deletes the attributes specified in the request and returns the updated attribute list for the user. Example use case: Removing outdated metadata like 'location' or 'year_started' from a user profile.\",\n input: SanityDeleteUserAttributesInput,\n output: SanityDeleteUserAttributesOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,YAAYA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,EAC7B,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,EAC/D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,CAAC,SAAS,gDAAgD;CACrH,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CAC1E,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;AAC9E,CAAC,CAAC,CAAC,SAAS,kKAAkK;AAC9K,MAAM,iDAAiDA,IAAAA,EAAE,OAAO;CAC9D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACnE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAChE,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,cAAcA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpH,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iCAAiC;AAC3D,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,YAAYA,IAAAA,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtI,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtH,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1E,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8HAA8H;AAExJ,MAAa,6BAITC,eAAAA,OAAO,iCAAiC;CAC1C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { sanity } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/delete-user-attributes.d.ts
|
|
@@ -20,30 +22,7 @@ declare const SanityDeleteUserAttributesOutput: z.ZodObject<{
|
|
|
20
22
|
sanity_user_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
23
|
organization_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
24
|
}, z.core.$loose>;
|
|
23
|
-
declare const sanityDeleteUserAttributes:
|
|
24
|
-
attributes: {
|
|
25
|
-
[x: string]: unknown;
|
|
26
|
-
key: string;
|
|
27
|
-
}[];
|
|
28
|
-
sanity_user_id: string;
|
|
29
|
-
organization_id: string;
|
|
30
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"sanity", z.ZodObject<{
|
|
31
|
-
connectionId: z.ZodString;
|
|
32
|
-
entityId: z.ZodString;
|
|
33
|
-
instanceId: z.ZodString;
|
|
34
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
35
|
-
subdomain: z.ZodString;
|
|
36
|
-
version: z.ZodString;
|
|
37
|
-
generic_api_key: z.ZodString;
|
|
38
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"sanity", z.ZodObject<{
|
|
39
|
-
connectionId: z.ZodString;
|
|
40
|
-
entityId: z.ZodString;
|
|
41
|
-
instanceId: z.ZodString;
|
|
42
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
43
|
-
subdomain: z.ZodString;
|
|
44
|
-
version: z.ZodString;
|
|
45
|
-
generic_api_key: z.ZodString;
|
|
46
|
-
}, z.core.$strip>>]>;
|
|
25
|
+
declare const sanityDeleteUserAttributes: AppAction<typeof SanityDeleteUserAttributesInput, typeof SanityDeleteUserAttributesOutput, typeof sanity.credential>;
|
|
47
26
|
//#endregion
|
|
48
27
|
export { sanityDeleteUserAttributes };
|
|
49
28
|
//# sourceMappingURL=delete-user-attributes.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-user-attributes.d.cts","names":[],"sources":["../../src/actions/delete-user-attributes.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"delete-user-attributes.d.cts","names":[],"sources":["../../src/actions/delete-user-attributes.ts"],"mappings":";;;;;cAMa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;cAc/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;cAOhC,0BAAA,EAA4B,SAAA,QAChC,+BAAA,SACA,gCAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { sanity } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/delete-user-attributes.d.ts
|
|
@@ -20,30 +22,7 @@ declare const SanityDeleteUserAttributesOutput: z.ZodObject<{
|
|
|
20
22
|
sanity_user_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
23
|
organization_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
24
|
}, z.core.$loose>;
|
|
23
|
-
declare const sanityDeleteUserAttributes:
|
|
24
|
-
attributes: {
|
|
25
|
-
[x: string]: unknown;
|
|
26
|
-
key: string;
|
|
27
|
-
}[];
|
|
28
|
-
sanity_user_id: string;
|
|
29
|
-
organization_id: string;
|
|
30
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"sanity", z.ZodObject<{
|
|
31
|
-
connectionId: z.ZodString;
|
|
32
|
-
entityId: z.ZodString;
|
|
33
|
-
instanceId: z.ZodString;
|
|
34
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
35
|
-
subdomain: z.ZodString;
|
|
36
|
-
version: z.ZodString;
|
|
37
|
-
generic_api_key: z.ZodString;
|
|
38
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"sanity", z.ZodObject<{
|
|
39
|
-
connectionId: z.ZodString;
|
|
40
|
-
entityId: z.ZodString;
|
|
41
|
-
instanceId: z.ZodString;
|
|
42
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
43
|
-
subdomain: z.ZodString;
|
|
44
|
-
version: z.ZodString;
|
|
45
|
-
generic_api_key: z.ZodString;
|
|
46
|
-
}, z.core.$strip>>]>;
|
|
25
|
+
declare const sanityDeleteUserAttributes: AppAction<typeof SanityDeleteUserAttributesInput, typeof SanityDeleteUserAttributesOutput, typeof sanity.credential>;
|
|
47
26
|
//#endregion
|
|
48
27
|
export { sanityDeleteUserAttributes };
|
|
49
28
|
//# sourceMappingURL=delete-user-attributes.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-user-attributes.d.mts","names":[],"sources":["../../src/actions/delete-user-attributes.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"delete-user-attributes.d.mts","names":[],"sources":["../../src/actions/delete-user-attributes.ts"],"mappings":";;;;;cAMa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;cAc/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;cAOhC,0BAAA,EAA4B,SAAA,QAChC,+BAAA,SACA,gCAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-user-attributes.mjs","names":[],"sources":["../../src/actions/delete-user-attributes.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityDeleteUserAttributesInput = z.object({\n attributes: z.array(z.object({\n key: z.string().describe(\"The key of the attribute to delete\"),\n}).passthrough().describe(\"Single attribute key to delete.\")).describe(\"List of attribute keys to delete from the user\"),\n sanity_user_id: z.string().describe(\"Unique identifier of the Sanity user\"),\n organization_id: z.string().describe(\"Unique identifier of the organization\"),\n}).describe(\"Request model for deleting user attributes in a Sanity organization.\\n\\nUse this action to remove specific custom attributes from a user within an organization.\");\nconst SanityDeleteUserAttributes_AttributeItemSchema = z.object({\n key: z.string().describe(\"The key/name of the attribute\").nullable(),\n type: z.string().describe(\"The type of the attribute\").nullable(),\n values: z.record(z.string(), z.unknown()).describe(\"Possible values for this attribute\").nullable().optional(),\n active_value: z.record(z.string(), z.unknown()).describe(\"The active value for this attribute\").nullable().optional(),\n active_source: z.string().describe(\"The source of the active value\").nullable().optional(),\n}).passthrough().describe(\"Individual user attribute item.\");\nexport const SanityDeleteUserAttributesOutput = z.object({\n attributes: z.array(SanityDeleteUserAttributes_AttributeItemSchema).describe(\"Remaining attributes for the user\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when attributes were last updated in ISO 8601 format\").nullable().optional(),\n sanity_user_id: z.string().describe(\"ID of the user\").nullable().optional(),\n organization_id: z.string().describe(\"ID of the organization\").nullable().optional(),\n}).passthrough().describe(\"Response model for deleted user attributes.\\n\\nReturns the updated list of remaining attributes for the user after deletion.\");\n\nexport const sanityDeleteUserAttributes = action(\"SANITY_DELETE_USER_ATTRIBUTES\", {\n slug: \"sanity-delete-user-attributes\",\n name: \"Delete User Attributes\",\n description: \"Delete custom attributes from a Sanity user within an organization. Use this tool when you need to remove specific custom attributes from a user account. The action deletes the attributes specified in the request and returns the updated attribute list for the user. Example use case: Removing outdated metadata like 'location' or 'year_started' from a user profile.\",\n input: SanityDeleteUserAttributesInput,\n output: SanityDeleteUserAttributesOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"delete-user-attributes.mjs","names":[],"sources":["../../src/actions/delete-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 SanityDeleteUserAttributesInput = z.object({\n attributes: z.array(z.object({\n key: z.string().describe(\"The key of the attribute to delete\"),\n}).passthrough().describe(\"Single attribute key to delete.\")).describe(\"List of attribute keys to delete from the user\"),\n sanity_user_id: z.string().describe(\"Unique identifier of the Sanity user\"),\n organization_id: z.string().describe(\"Unique identifier of the organization\"),\n}).describe(\"Request model for deleting user attributes in a Sanity organization.\\n\\nUse this action to remove specific custom attributes from a user within an organization.\");\nconst SanityDeleteUserAttributes_AttributeItemSchema = z.object({\n key: z.string().describe(\"The key/name of the attribute\").nullable(),\n type: z.string().describe(\"The type of the attribute\").nullable(),\n values: z.record(z.string(), z.unknown()).describe(\"Possible values for this attribute\").nullable().optional(),\n active_value: z.record(z.string(), z.unknown()).describe(\"The active value for this attribute\").nullable().optional(),\n active_source: z.string().describe(\"The source of the active value\").nullable().optional(),\n}).passthrough().describe(\"Individual user attribute item.\");\nexport const SanityDeleteUserAttributesOutput = z.object({\n attributes: z.array(SanityDeleteUserAttributes_AttributeItemSchema).describe(\"Remaining attributes for the user\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when attributes were last updated in ISO 8601 format\").nullable().optional(),\n sanity_user_id: z.string().describe(\"ID of the user\").nullable().optional(),\n organization_id: z.string().describe(\"ID of the organization\").nullable().optional(),\n}).passthrough().describe(\"Response model for deleted user attributes.\\n\\nReturns the updated list of remaining attributes for the user after deletion.\");\n\nexport const sanityDeleteUserAttributes: AppAction<\n typeof SanityDeleteUserAttributesInput,\n typeof SanityDeleteUserAttributesOutput,\n typeof sanity.credential\n> = action(\"SANITY_DELETE_USER_ATTRIBUTES\", {\n slug: \"sanity-delete-user-attributes\",\n name: \"Delete User Attributes\",\n description: \"Delete custom attributes from a Sanity user within an organization. Use this tool when you need to remove specific custom attributes from a user account. The action deletes the attributes specified in the request and returns the updated attribute list for the user. Example use case: Removing outdated metadata like 'location' or 'year_started' from a user profile.\",\n input: SanityDeleteUserAttributesInput,\n output: SanityDeleteUserAttributesOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,kCAAkC,EAAE,OAAO;CACtD,YAAY,EAAE,MAAM,EAAE,OAAO,EAC7B,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,EAC/D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,CAAC,SAAS,gDAAgD;CACrH,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CAC1E,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;AAC9E,CAAC,CAAC,CAAC,SAAS,kKAAkK;AAC9K,MAAM,iDAAiD,EAAE,OAAO;CAC9D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACnE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAChE,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,cAAc,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpH,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iCAAiC;AAQ3D,MAAa,6BAIT,OAAO,iCAAiC;CAC1C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAhB8C,EAAE,OAAO;EACvD,YAAY,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtI,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtH,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1E,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8HAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-document.cjs","names":["z","action"],"sources":["../../src/actions/get-document.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityGetDocumentInput = z.object({\n dataset: z.string().describe(\"The Sanity dataset to fetch the document from.\"),\n project_id: z.string().describe(\"The Sanity project ID. This is the unique identifier for your Sanity project.\"),\n document_id: z.string().describe(\"The unique identifier of the document to retrieve. This is the _id field of the document.\"),\n}).describe(\"Request model for fetching a single document by ID.\");\nconst SanityGetDocument_OmittedDocumentSchema = z.object({\n id: z.string().describe(\"ID of the omitted document\").nullable(),\n reason: z.string().describe(\"Reason for omission (e.g., 'existence')\").nullable(),\n}).passthrough().describe(\"Model for documents that were omitted from the response.\");\nconst SanityGetDocument_SanityDocumentSchema = z.object({\n _id: z.string().describe(\"Unique identifier of the document\").nullable(),\n _rev: z.string().describe(\"Revision identifier\").nullable().optional(),\n _type: z.string().describe(\"Document type\").nullable(),\n _createdAt: z.string().describe(\"Creation timestamp\").nullable().optional(),\n _updatedAt: z.string().describe(\"Last update timestamp\").nullable().optional(),\n}).passthrough().describe(\"Model for a Sanity document with system fields.\");\nexport const SanityGetDocumentOutput = z.object({\n ms: z.number().int().describe(\"Time taken to execute the request in milliseconds.\").nullable().optional(),\n omitted: z.array(SanityGetDocument_OmittedDocumentSchema).describe(\"Array of documents that were omitted from the response, typically because they don't exist.\").nullable().optional(),\n documents: z.array(SanityGetDocument_SanityDocumentSchema).describe(\"Array containing the requested document. Returns a single-element array with the full document including system fields (_id, _type, _rev, _createdAt, _updatedAt).\").nullable().optional(),\n}).passthrough().describe(\"Response model for fetching a single document.\");\n\nexport const sanityGetDocument = action(\"SANITY_GET_DOCUMENT\", {\n slug: \"sanity-get-document\",\n name: \"Get Document by ID\",\n description: \"Fetch a single document by its ID from Sanity. Use this action when you need to retrieve a specific document using its unique identifier rather than running a GROQ query. Returns the complete document with all system fields including _id, _type, _rev, _createdAt, and _updatedAt.\",\n input: SanityGetDocumentInput,\n output: SanityGetDocumentOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-document.cjs","names":["z","action"],"sources":["../../src/actions/get-document.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { sanity } from \"../app\";\n\nexport const SanityGetDocumentInput = z.object({\n dataset: z.string().describe(\"The Sanity dataset to fetch the document from.\"),\n project_id: z.string().describe(\"The Sanity project ID. This is the unique identifier for your Sanity project.\"),\n document_id: z.string().describe(\"The unique identifier of the document to retrieve. This is the _id field of the document.\"),\n}).describe(\"Request model for fetching a single document by ID.\");\nconst SanityGetDocument_OmittedDocumentSchema = z.object({\n id: z.string().describe(\"ID of the omitted document\").nullable(),\n reason: z.string().describe(\"Reason for omission (e.g., 'existence')\").nullable(),\n}).passthrough().describe(\"Model for documents that were omitted from the response.\");\nconst SanityGetDocument_SanityDocumentSchema = z.object({\n _id: z.string().describe(\"Unique identifier of the document\").nullable(),\n _rev: z.string().describe(\"Revision identifier\").nullable().optional(),\n _type: z.string().describe(\"Document type\").nullable(),\n _createdAt: z.string().describe(\"Creation timestamp\").nullable().optional(),\n _updatedAt: z.string().describe(\"Last update timestamp\").nullable().optional(),\n}).passthrough().describe(\"Model for a Sanity document with system fields.\");\nexport const SanityGetDocumentOutput = z.object({\n ms: z.number().int().describe(\"Time taken to execute the request in milliseconds.\").nullable().optional(),\n omitted: z.array(SanityGetDocument_OmittedDocumentSchema).describe(\"Array of documents that were omitted from the response, typically because they don't exist.\").nullable().optional(),\n documents: z.array(SanityGetDocument_SanityDocumentSchema).describe(\"Array containing the requested document. Returns a single-element array with the full document including system fields (_id, _type, _rev, _createdAt, _updatedAt).\").nullable().optional(),\n}).passthrough().describe(\"Response model for fetching a single document.\");\n\nexport const sanityGetDocument: AppAction<\n typeof SanityGetDocumentInput,\n typeof SanityGetDocumentOutput,\n typeof sanity.credential\n> = action(\"SANITY_GET_DOCUMENT\", {\n slug: \"sanity-get-document\",\n name: \"Get Document by ID\",\n description: \"Fetch a single document by its ID from Sanity. Use this action when you need to retrieve a specific document using its unique identifier rather than running a GROQ query. Returns the complete document with all system fields including _id, _type, _rev, _createdAt, and _updatedAt.\",\n input: SanityGetDocumentInput,\n output: SanityGetDocumentOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,yBAAyBA,IAAAA,EAAE,OAAO;CAC7C,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;CAC7E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E;CAC/G,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2FAA2F;AAC9H,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAM,0CAA0CA,IAAAA,EAAE,OAAO;CACvD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CAC/D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;AAClF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0DAA0D;AACpF,MAAM,yCAAyCA,IAAAA,EAAE,OAAO;CACtD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACvE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS;CACrD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAC3E,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,SAASA,IAAAA,EAAE,MAAM,uCAAuC,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtL,WAAWA,IAAAA,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,oKAAoK,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChQ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAAgD;AAE1E,MAAa,oBAITC,eAAAA,OAAO,uBAAuB;CAChC,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/get-document.d.ts
|
|
@@ -20,27 +22,7 @@ declare const SanityGetDocumentOutput: z.ZodObject<{
|
|
|
20
22
|
_updatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
23
|
}, z.core.$loose>>>>;
|
|
22
24
|
}, z.core.$loose>;
|
|
23
|
-
declare const sanityGetDocument:
|
|
24
|
-
dataset: string;
|
|
25
|
-
project_id: string;
|
|
26
|
-
document_id: string;
|
|
27
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"sanity", z.ZodObject<{
|
|
28
|
-
connectionId: z.ZodString;
|
|
29
|
-
entityId: z.ZodString;
|
|
30
|
-
instanceId: z.ZodString;
|
|
31
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
32
|
-
subdomain: z.ZodString;
|
|
33
|
-
version: z.ZodString;
|
|
34
|
-
generic_api_key: z.ZodString;
|
|
35
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"sanity", z.ZodObject<{
|
|
36
|
-
connectionId: z.ZodString;
|
|
37
|
-
entityId: z.ZodString;
|
|
38
|
-
instanceId: z.ZodString;
|
|
39
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
40
|
-
subdomain: z.ZodString;
|
|
41
|
-
version: z.ZodString;
|
|
42
|
-
generic_api_key: z.ZodString;
|
|
43
|
-
}, z.core.$strip>>]>;
|
|
25
|
+
declare const sanityGetDocument: AppAction<typeof SanityGetDocumentInput, typeof SanityGetDocumentOutput, typeof sanity.credential>;
|
|
44
26
|
//#endregion
|
|
45
27
|
export { sanityGetDocument };
|
|
46
28
|
//# sourceMappingURL=get-document.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-document.d.cts","names":[],"sources":["../../src/actions/get-document.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-document.d.cts","names":[],"sources":["../../src/actions/get-document.ts"],"mappings":";;;;;cAMa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;cAgBtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAMvB,iBAAA,EAAmB,SAAA,QACvB,sBAAA,SACA,uBAAA,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/get-document.d.ts
|
|
@@ -20,27 +22,7 @@ declare const SanityGetDocumentOutput: z.ZodObject<{
|
|
|
20
22
|
_updatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
23
|
}, z.core.$loose>>>>;
|
|
22
24
|
}, z.core.$loose>;
|
|
23
|
-
declare const sanityGetDocument:
|
|
24
|
-
dataset: string;
|
|
25
|
-
project_id: string;
|
|
26
|
-
document_id: string;
|
|
27
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"sanity", z.ZodObject<{
|
|
28
|
-
connectionId: z.ZodString;
|
|
29
|
-
entityId: z.ZodString;
|
|
30
|
-
instanceId: z.ZodString;
|
|
31
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
32
|
-
subdomain: z.ZodString;
|
|
33
|
-
version: z.ZodString;
|
|
34
|
-
generic_api_key: z.ZodString;
|
|
35
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"sanity", z.ZodObject<{
|
|
36
|
-
connectionId: z.ZodString;
|
|
37
|
-
entityId: z.ZodString;
|
|
38
|
-
instanceId: z.ZodString;
|
|
39
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
40
|
-
subdomain: z.ZodString;
|
|
41
|
-
version: z.ZodString;
|
|
42
|
-
generic_api_key: z.ZodString;
|
|
43
|
-
}, z.core.$strip>>]>;
|
|
25
|
+
declare const sanityGetDocument: AppAction<typeof SanityGetDocumentInput, typeof SanityGetDocumentOutput, typeof sanity.credential>;
|
|
44
26
|
//#endregion
|
|
45
27
|
export { sanityGetDocument };
|
|
46
28
|
//# sourceMappingURL=get-document.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-document.d.mts","names":[],"sources":["../../src/actions/get-document.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-document.d.mts","names":[],"sources":["../../src/actions/get-document.ts"],"mappings":";;;;;cAMa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;cAgBtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAMvB,iBAAA,EAAmB,SAAA,QACvB,sBAAA,SACA,uBAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-document.mjs","names":[],"sources":["../../src/actions/get-document.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityGetDocumentInput = z.object({\n dataset: z.string().describe(\"The Sanity dataset to fetch the document from.\"),\n project_id: z.string().describe(\"The Sanity project ID. This is the unique identifier for your Sanity project.\"),\n document_id: z.string().describe(\"The unique identifier of the document to retrieve. This is the _id field of the document.\"),\n}).describe(\"Request model for fetching a single document by ID.\");\nconst SanityGetDocument_OmittedDocumentSchema = z.object({\n id: z.string().describe(\"ID of the omitted document\").nullable(),\n reason: z.string().describe(\"Reason for omission (e.g., 'existence')\").nullable(),\n}).passthrough().describe(\"Model for documents that were omitted from the response.\");\nconst SanityGetDocument_SanityDocumentSchema = z.object({\n _id: z.string().describe(\"Unique identifier of the document\").nullable(),\n _rev: z.string().describe(\"Revision identifier\").nullable().optional(),\n _type: z.string().describe(\"Document type\").nullable(),\n _createdAt: z.string().describe(\"Creation timestamp\").nullable().optional(),\n _updatedAt: z.string().describe(\"Last update timestamp\").nullable().optional(),\n}).passthrough().describe(\"Model for a Sanity document with system fields.\");\nexport const SanityGetDocumentOutput = z.object({\n ms: z.number().int().describe(\"Time taken to execute the request in milliseconds.\").nullable().optional(),\n omitted: z.array(SanityGetDocument_OmittedDocumentSchema).describe(\"Array of documents that were omitted from the response, typically because they don't exist.\").nullable().optional(),\n documents: z.array(SanityGetDocument_SanityDocumentSchema).describe(\"Array containing the requested document. Returns a single-element array with the full document including system fields (_id, _type, _rev, _createdAt, _updatedAt).\").nullable().optional(),\n}).passthrough().describe(\"Response model for fetching a single document.\");\n\nexport const sanityGetDocument = action(\"SANITY_GET_DOCUMENT\", {\n slug: \"sanity-get-document\",\n name: \"Get Document by ID\",\n description: \"Fetch a single document by its ID from Sanity. Use this action when you need to retrieve a specific document using its unique identifier rather than running a GROQ query. Returns the complete document with all system fields including _id, _type, _rev, _createdAt, and _updatedAt.\",\n input: SanityGetDocumentInput,\n output: SanityGetDocumentOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-document.mjs","names":[],"sources":["../../src/actions/get-document.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { sanity } from \"../app\";\n\nexport const SanityGetDocumentInput = z.object({\n dataset: z.string().describe(\"The Sanity dataset to fetch the document from.\"),\n project_id: z.string().describe(\"The Sanity project ID. This is the unique identifier for your Sanity project.\"),\n document_id: z.string().describe(\"The unique identifier of the document to retrieve. This is the _id field of the document.\"),\n}).describe(\"Request model for fetching a single document by ID.\");\nconst SanityGetDocument_OmittedDocumentSchema = z.object({\n id: z.string().describe(\"ID of the omitted document\").nullable(),\n reason: z.string().describe(\"Reason for omission (e.g., 'existence')\").nullable(),\n}).passthrough().describe(\"Model for documents that were omitted from the response.\");\nconst SanityGetDocument_SanityDocumentSchema = z.object({\n _id: z.string().describe(\"Unique identifier of the document\").nullable(),\n _rev: z.string().describe(\"Revision identifier\").nullable().optional(),\n _type: z.string().describe(\"Document type\").nullable(),\n _createdAt: z.string().describe(\"Creation timestamp\").nullable().optional(),\n _updatedAt: z.string().describe(\"Last update timestamp\").nullable().optional(),\n}).passthrough().describe(\"Model for a Sanity document with system fields.\");\nexport const SanityGetDocumentOutput = z.object({\n ms: z.number().int().describe(\"Time taken to execute the request in milliseconds.\").nullable().optional(),\n omitted: z.array(SanityGetDocument_OmittedDocumentSchema).describe(\"Array of documents that were omitted from the response, typically because they don't exist.\").nullable().optional(),\n documents: z.array(SanityGetDocument_SanityDocumentSchema).describe(\"Array containing the requested document. Returns a single-element array with the full document including system fields (_id, _type, _rev, _createdAt, _updatedAt).\").nullable().optional(),\n}).passthrough().describe(\"Response model for fetching a single document.\");\n\nexport const sanityGetDocument: AppAction<\n typeof SanityGetDocumentInput,\n typeof SanityGetDocumentOutput,\n typeof sanity.credential\n> = action(\"SANITY_GET_DOCUMENT\", {\n slug: \"sanity-get-document\",\n name: \"Get Document by ID\",\n description: \"Fetch a single document by its ID from Sanity. Use this action when you need to retrieve a specific document using its unique identifier rather than running a GROQ query. Returns the complete document with all system fields including _id, _type, _rev, _createdAt, and _updatedAt.\",\n input: SanityGetDocumentInput,\n output: SanityGetDocumentOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,yBAAyB,EAAE,OAAO;CAC7C,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;CAC7E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E;CAC/G,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,2FAA2F;AAC9H,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAM,0CAA0C,EAAE,OAAO;CACvD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CAC/D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;AAClF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0DAA0D;AACpF,MAAM,yCAAyC,EAAE,OAAO;CACtD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACvE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS;CACrD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAO3E,MAAa,oBAIT,OAAO,uBAAuB;CAChC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAfqC,EAAE,OAAO;EAC9C,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxG,SAAS,EAAE,MAAM,uCAAuC,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtL,WAAW,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,oKAAoK,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChQ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-invite-by-token.cjs","names":["z","action"],"sources":["../../src/actions/get-invite-by-token.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityGetInviteByTokenInput = z.object({\n resourceId: z.string().describe(\"The resource ID to scope the access request to. Must be a valid ID for the resource type.\"),\n inviteToken: z.string().describe(\"The public token for the invite. This token is shared with the invitee.\"),\n resourceType: z.enum([\"organization\", \"project\", \"media-library\", \"canvas\", \"dashboard\", \"view\"]).describe(\"The resource type to scope the access requests to. Must be one of: organization, project, media-library, canvas, dashboard, view.\"),\n}).describe(\"Request model for retrieving an invite by its public token.\");\nconst SanityGetInviteByToken_InviteStatusSchema = z.enum([\"pending\", \"accepted\", \"revoked\"]).describe(\"The status of an invite.\");\nconst SanityGetInviteByToken_InviterTypeSchema = z.enum([\"user\", \"service\"]).describe(\"The type of entity that created the invite.\");\nconst SanityGetInviteByToken_ResourceTypeSchema = z.enum([\"organization\", \"project\", \"media-library\", \"canvas\", \"dashboard\", \"view\"]).describe(\"The resource types available for access control in Sanity.\");\nexport const SanityGetInviteByTokenOutput = z.object({\n id: z.string().describe(\"The unique identifier of the invite. Only present if found=True.\").nullable().optional(),\n role: z.string().describe(\"The role that will be assigned to the invitee upon accepting the invite. Only present if found=True.\").nullable().optional(),\n email: z.string().describe(\"The email address of the invitee. Only present if the invite is still pending.\").nullable().optional(),\n error: z.string().describe(\"Error message if the invite was not found. Only present if found=False.\").nullable().optional(),\n found: z.boolean().describe(\"Whether the invite was found. True if invite exists, False if not found.\").nullable(),\n status: SanityGetInviteByToken_InviteStatusSchema.nullable().optional(),\n createdAt: z.string().describe(\"The ISO 8601 timestamp when the invite was created. Only present if found=True.\").nullable().optional(),\n inviteeId: z.string().describe(\"The ID of the user that accepted the invite. Only present if the invite has been accepted.\").nullable().optional(),\n inviterId: z.string().describe(\"The ID of the user or service that created the invite. Only present if the invite was created by a user.\").nullable().optional(),\n updatedAt: z.string().describe(\"The ISO 8601 timestamp when the invite was last updated. Only present if found=True.\").nullable().optional(),\n resourceId: z.string().describe(\"The ID of the resource this invite applies to. Only present if found=True.\").nullable().optional(),\n inviterType: SanityGetInviteByToken_InviterTypeSchema.nullable().optional(),\n resourceType: SanityGetInviteByToken_ResourceTypeSchema.nullable().optional(),\n}).passthrough().describe(\"Response model for the get invite by token operation.\");\n\nexport const sanityGetInviteByToken = action(\"SANITY_GET_INVITE_BY_TOKEN\", {\n slug: \"sanity-get-invite-by-token\",\n name: \"Get Invite By Token\",\n description: \"Retrieve an invite by its public token. Use this action when you need to fetch details about an invite using the invite token that was shared with the invitee. Returns invite information including status, role, and inviter details.\",\n input: SanityGetInviteByTokenInput,\n output: SanityGetInviteByTokenOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-invite-by-token.cjs","names":["z","action"],"sources":["../../src/actions/get-invite-by-token.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 SanityGetInviteByTokenInput = z.object({\n resourceId: z.string().describe(\"The resource ID to scope the access request to. Must be a valid ID for the resource type.\"),\n inviteToken: z.string().describe(\"The public token for the invite. This token is shared with the invitee.\"),\n resourceType: z.enum([\"organization\", \"project\", \"media-library\", \"canvas\", \"dashboard\", \"view\"]).describe(\"The resource type to scope the access requests to. Must be one of: organization, project, media-library, canvas, dashboard, view.\"),\n}).describe(\"Request model for retrieving an invite by its public token.\");\nconst SanityGetInviteByToken_InviteStatusSchema = z.enum([\"pending\", \"accepted\", \"revoked\"]).describe(\"The status of an invite.\");\nconst SanityGetInviteByToken_InviterTypeSchema = z.enum([\"user\", \"service\"]).describe(\"The type of entity that created the invite.\");\nconst SanityGetInviteByToken_ResourceTypeSchema = z.enum([\"organization\", \"project\", \"media-library\", \"canvas\", \"dashboard\", \"view\"]).describe(\"The resource types available for access control in Sanity.\");\nexport const SanityGetInviteByTokenOutput = z.object({\n id: z.string().describe(\"The unique identifier of the invite. Only present if found=True.\").nullable().optional(),\n role: z.string().describe(\"The role that will be assigned to the invitee upon accepting the invite. Only present if found=True.\").nullable().optional(),\n email: z.string().describe(\"The email address of the invitee. Only present if the invite is still pending.\").nullable().optional(),\n error: z.string().describe(\"Error message if the invite was not found. Only present if found=False.\").nullable().optional(),\n found: z.boolean().describe(\"Whether the invite was found. True if invite exists, False if not found.\").nullable(),\n status: SanityGetInviteByToken_InviteStatusSchema.nullable().optional(),\n createdAt: z.string().describe(\"The ISO 8601 timestamp when the invite was created. Only present if found=True.\").nullable().optional(),\n inviteeId: z.string().describe(\"The ID of the user that accepted the invite. Only present if the invite has been accepted.\").nullable().optional(),\n inviterId: z.string().describe(\"The ID of the user or service that created the invite. Only present if the invite was created by a user.\").nullable().optional(),\n updatedAt: z.string().describe(\"The ISO 8601 timestamp when the invite was last updated. Only present if found=True.\").nullable().optional(),\n resourceId: z.string().describe(\"The ID of the resource this invite applies to. Only present if found=True.\").nullable().optional(),\n inviterType: SanityGetInviteByToken_InviterTypeSchema.nullable().optional(),\n resourceType: SanityGetInviteByToken_ResourceTypeSchema.nullable().optional(),\n}).passthrough().describe(\"Response model for the get invite by token operation.\");\n\nexport const sanityGetInviteByToken: AppAction<\n typeof SanityGetInviteByTokenInput,\n typeof SanityGetInviteByTokenOutput,\n typeof sanity.credential\n> = action(\"SANITY_GET_INVITE_BY_TOKEN\", {\n slug: \"sanity-get-invite-by-token\",\n name: \"Get Invite By Token\",\n description: \"Retrieve an invite by its public token. Use this action when you need to fetch details about an invite using the invite token that was shared with the invitee. Returns invite information including status, role, and inviter details.\",\n input: SanityGetInviteByTokenInput,\n output: SanityGetInviteByTokenOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2FAA2F;CAC3H,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE;CAC1G,cAAcA,IAAAA,EAAE,KAAK;EAAC;EAAgB;EAAW;EAAiB;EAAU;EAAa;CAAM,CAAC,CAAC,CAAC,SAAS,mIAAmI;AAChP,CAAC,CAAC,CAAC,SAAS,6DAA6D;AACzE,MAAM,4CAA4CA,IAAAA,EAAE,KAAK;CAAC;CAAW;CAAY;AAAS,CAAC,CAAC,CAAC,SAAS,0BAA0B;AAChI,MAAM,2CAA2CA,IAAAA,EAAE,KAAK,CAAC,QAAQ,SAAS,CAAC,CAAC,CAAC,SAAS,6CAA6C;AACnI,MAAM,4CAA4CA,IAAAA,EAAE,KAAK;CAAC;CAAgB;CAAW;CAAiB;CAAU;CAAa;AAAM,CAAC,CAAC,CAAC,SAAS,4DAA4D;AAC3M,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtJ,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjI,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1H,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CACjH,QAAQ,0CAA0C,SAAS,CAAC,CAAC,SAAS;CACtE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtI,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4FAA4F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjJ,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0GAA0G,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/J,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3I,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClI,aAAa,yCAAyC,SAAS,CAAC,CAAC,SAAS;CAC1E,cAAc,0CAA0C,SAAS,CAAC,CAAC,SAAS;AAC9E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAAuD;AAEjF,MAAa,yBAITC,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/get-invite-by-token.d.ts
|
|
@@ -42,27 +44,7 @@ declare const SanityGetInviteByTokenOutput: z.ZodObject<{
|
|
|
42
44
|
view: "view";
|
|
43
45
|
}>>>;
|
|
44
46
|
}, z.core.$loose>;
|
|
45
|
-
declare const sanityGetInviteByToken:
|
|
46
|
-
resourceId: string;
|
|
47
|
-
inviteToken: string;
|
|
48
|
-
resourceType: "organization" | "project" | "media-library" | "canvas" | "dashboard" | "view";
|
|
49
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"sanity", z.ZodObject<{
|
|
50
|
-
connectionId: z.ZodString;
|
|
51
|
-
entityId: z.ZodString;
|
|
52
|
-
instanceId: z.ZodString;
|
|
53
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
54
|
-
subdomain: z.ZodString;
|
|
55
|
-
version: z.ZodString;
|
|
56
|
-
generic_api_key: z.ZodString;
|
|
57
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"sanity", z.ZodObject<{
|
|
58
|
-
connectionId: z.ZodString;
|
|
59
|
-
entityId: z.ZodString;
|
|
60
|
-
instanceId: z.ZodString;
|
|
61
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
62
|
-
subdomain: z.ZodString;
|
|
63
|
-
version: z.ZodString;
|
|
64
|
-
generic_api_key: z.ZodString;
|
|
65
|
-
}, z.core.$strip>>]>;
|
|
47
|
+
declare const sanityGetInviteByToken: AppAction<typeof SanityGetInviteByTokenInput, typeof SanityGetInviteByTokenOutput, typeof sanity.credential>;
|
|
66
48
|
//#endregion
|
|
67
49
|
export { sanityGetInviteByToken };
|
|
68
50
|
//# sourceMappingURL=get-invite-by-token.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-invite-by-token.d.cts","names":[],"sources":["../../src/actions/get-invite-by-token.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-invite-by-token.d.cts","names":[],"sources":["../../src/actions/get-invite-by-token.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;cAQ3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAgB5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { sanity } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-invite-by-token.d.ts
|
|
@@ -42,27 +44,7 @@ declare const SanityGetInviteByTokenOutput: z.ZodObject<{
|
|
|
42
44
|
view: "view";
|
|
43
45
|
}>>>;
|
|
44
46
|
}, z.core.$loose>;
|
|
45
|
-
declare const sanityGetInviteByToken:
|
|
46
|
-
resourceId: string;
|
|
47
|
-
inviteToken: string;
|
|
48
|
-
resourceType: "organization" | "project" | "media-library" | "canvas" | "dashboard" | "view";
|
|
49
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"sanity", z.ZodObject<{
|
|
50
|
-
connectionId: z.ZodString;
|
|
51
|
-
entityId: z.ZodString;
|
|
52
|
-
instanceId: z.ZodString;
|
|
53
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
54
|
-
subdomain: z.ZodString;
|
|
55
|
-
version: z.ZodString;
|
|
56
|
-
generic_api_key: z.ZodString;
|
|
57
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"sanity", z.ZodObject<{
|
|
58
|
-
connectionId: z.ZodString;
|
|
59
|
-
entityId: z.ZodString;
|
|
60
|
-
instanceId: z.ZodString;
|
|
61
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
62
|
-
subdomain: z.ZodString;
|
|
63
|
-
version: z.ZodString;
|
|
64
|
-
generic_api_key: z.ZodString;
|
|
65
|
-
}, z.core.$strip>>]>;
|
|
47
|
+
declare const sanityGetInviteByToken: AppAction<typeof SanityGetInviteByTokenInput, typeof SanityGetInviteByTokenOutput, typeof sanity.credential>;
|
|
66
48
|
//#endregion
|
|
67
49
|
export { sanityGetInviteByToken };
|
|
68
50
|
//# sourceMappingURL=get-invite-by-token.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-invite-by-token.d.mts","names":[],"sources":["../../src/actions/get-invite-by-token.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-invite-by-token.d.mts","names":[],"sources":["../../src/actions/get-invite-by-token.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;cAQ3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAgB5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-invite-by-token.mjs","names":[],"sources":["../../src/actions/get-invite-by-token.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityGetInviteByTokenInput = z.object({\n resourceId: z.string().describe(\"The resource ID to scope the access request to. Must be a valid ID for the resource type.\"),\n inviteToken: z.string().describe(\"The public token for the invite. This token is shared with the invitee.\"),\n resourceType: z.enum([\"organization\", \"project\", \"media-library\", \"canvas\", \"dashboard\", \"view\"]).describe(\"The resource type to scope the access requests to. Must be one of: organization, project, media-library, canvas, dashboard, view.\"),\n}).describe(\"Request model for retrieving an invite by its public token.\");\nconst SanityGetInviteByToken_InviteStatusSchema = z.enum([\"pending\", \"accepted\", \"revoked\"]).describe(\"The status of an invite.\");\nconst SanityGetInviteByToken_InviterTypeSchema = z.enum([\"user\", \"service\"]).describe(\"The type of entity that created the invite.\");\nconst SanityGetInviteByToken_ResourceTypeSchema = z.enum([\"organization\", \"project\", \"media-library\", \"canvas\", \"dashboard\", \"view\"]).describe(\"The resource types available for access control in Sanity.\");\nexport const SanityGetInviteByTokenOutput = z.object({\n id: z.string().describe(\"The unique identifier of the invite. Only present if found=True.\").nullable().optional(),\n role: z.string().describe(\"The role that will be assigned to the invitee upon accepting the invite. Only present if found=True.\").nullable().optional(),\n email: z.string().describe(\"The email address of the invitee. Only present if the invite is still pending.\").nullable().optional(),\n error: z.string().describe(\"Error message if the invite was not found. Only present if found=False.\").nullable().optional(),\n found: z.boolean().describe(\"Whether the invite was found. True if invite exists, False if not found.\").nullable(),\n status: SanityGetInviteByToken_InviteStatusSchema.nullable().optional(),\n createdAt: z.string().describe(\"The ISO 8601 timestamp when the invite was created. Only present if found=True.\").nullable().optional(),\n inviteeId: z.string().describe(\"The ID of the user that accepted the invite. Only present if the invite has been accepted.\").nullable().optional(),\n inviterId: z.string().describe(\"The ID of the user or service that created the invite. Only present if the invite was created by a user.\").nullable().optional(),\n updatedAt: z.string().describe(\"The ISO 8601 timestamp when the invite was last updated. Only present if found=True.\").nullable().optional(),\n resourceId: z.string().describe(\"The ID of the resource this invite applies to. Only present if found=True.\").nullable().optional(),\n inviterType: SanityGetInviteByToken_InviterTypeSchema.nullable().optional(),\n resourceType: SanityGetInviteByToken_ResourceTypeSchema.nullable().optional(),\n}).passthrough().describe(\"Response model for the get invite by token operation.\");\n\nexport const sanityGetInviteByToken = action(\"SANITY_GET_INVITE_BY_TOKEN\", {\n slug: \"sanity-get-invite-by-token\",\n name: \"Get Invite By Token\",\n description: \"Retrieve an invite by its public token. Use this action when you need to fetch details about an invite using the invite token that was shared with the invitee. Returns invite information including status, role, and inviter details.\",\n input: SanityGetInviteByTokenInput,\n output: SanityGetInviteByTokenOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-invite-by-token.mjs","names":[],"sources":["../../src/actions/get-invite-by-token.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 SanityGetInviteByTokenInput = z.object({\n resourceId: z.string().describe(\"The resource ID to scope the access request to. Must be a valid ID for the resource type.\"),\n inviteToken: z.string().describe(\"The public token for the invite. This token is shared with the invitee.\"),\n resourceType: z.enum([\"organization\", \"project\", \"media-library\", \"canvas\", \"dashboard\", \"view\"]).describe(\"The resource type to scope the access requests to. Must be one of: organization, project, media-library, canvas, dashboard, view.\"),\n}).describe(\"Request model for retrieving an invite by its public token.\");\nconst SanityGetInviteByToken_InviteStatusSchema = z.enum([\"pending\", \"accepted\", \"revoked\"]).describe(\"The status of an invite.\");\nconst SanityGetInviteByToken_InviterTypeSchema = z.enum([\"user\", \"service\"]).describe(\"The type of entity that created the invite.\");\nconst SanityGetInviteByToken_ResourceTypeSchema = z.enum([\"organization\", \"project\", \"media-library\", \"canvas\", \"dashboard\", \"view\"]).describe(\"The resource types available for access control in Sanity.\");\nexport const SanityGetInviteByTokenOutput = z.object({\n id: z.string().describe(\"The unique identifier of the invite. Only present if found=True.\").nullable().optional(),\n role: z.string().describe(\"The role that will be assigned to the invitee upon accepting the invite. Only present if found=True.\").nullable().optional(),\n email: z.string().describe(\"The email address of the invitee. Only present if the invite is still pending.\").nullable().optional(),\n error: z.string().describe(\"Error message if the invite was not found. Only present if found=False.\").nullable().optional(),\n found: z.boolean().describe(\"Whether the invite was found. True if invite exists, False if not found.\").nullable(),\n status: SanityGetInviteByToken_InviteStatusSchema.nullable().optional(),\n createdAt: z.string().describe(\"The ISO 8601 timestamp when the invite was created. Only present if found=True.\").nullable().optional(),\n inviteeId: z.string().describe(\"The ID of the user that accepted the invite. Only present if the invite has been accepted.\").nullable().optional(),\n inviterId: z.string().describe(\"The ID of the user or service that created the invite. Only present if the invite was created by a user.\").nullable().optional(),\n updatedAt: z.string().describe(\"The ISO 8601 timestamp when the invite was last updated. Only present if found=True.\").nullable().optional(),\n resourceId: z.string().describe(\"The ID of the resource this invite applies to. Only present if found=True.\").nullable().optional(),\n inviterType: SanityGetInviteByToken_InviterTypeSchema.nullable().optional(),\n resourceType: SanityGetInviteByToken_ResourceTypeSchema.nullable().optional(),\n}).passthrough().describe(\"Response model for the get invite by token operation.\");\n\nexport const sanityGetInviteByToken: AppAction<\n typeof SanityGetInviteByTokenInput,\n typeof SanityGetInviteByTokenOutput,\n typeof sanity.credential\n> = action(\"SANITY_GET_INVITE_BY_TOKEN\", {\n slug: \"sanity-get-invite-by-token\",\n name: \"Get Invite By Token\",\n description: \"Retrieve an invite by its public token. Use this action when you need to fetch details about an invite using the invite token that was shared with the invitee. Returns invite information including status, role, and inviter details.\",\n input: SanityGetInviteByTokenInput,\n output: SanityGetInviteByTokenOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,8BAA8B,EAAE,OAAO;CAClD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2FAA2F;CAC3H,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE;CAC1G,cAAc,EAAE,KAAK;EAAC;EAAgB;EAAW;EAAiB;EAAU;EAAa;CAAM,CAAC,CAAC,CAAC,SAAS,mIAAmI;AAChP,CAAC,CAAC,CAAC,SAAS,6DAA6D;AACzE,MAAM,4CAA4C,EAAE,KAAK;CAAC;CAAW;CAAY;AAAS,CAAC,CAAC,CAAC,SAAS,0BAA0B;AAChI,MAAM,2CAA2C,EAAE,KAAK,CAAC,QAAQ,SAAS,CAAC,CAAC,CAAC,SAAS,6CAA6C;AACnI,MAAM,4CAA4C,EAAE,KAAK;CAAC;CAAgB;CAAW;CAAiB;CAAU;CAAa;AAAM,CAAC,CAAC,CAAC,SAAS,4DAA4D;AAiB3M,MAAa,yBAIT,OAAO,8BAA8B;CACvC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAzB0C,EAAE,OAAO;EACnD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChH,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtJ,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjI,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1H,OAAO,EAAE,QAAQ,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;EACjH,QAAQ,0CAA0C,SAAS,CAAC,CAAC,SAAS;EACtE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtI,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,4FAA4F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjJ,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,0GAA0G,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/J,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3I,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClI,aAAa,yCAAyC,SAAS,CAAC,CAAC,SAAS;EAC1E,cAAc,0CAA0C,SAAS,CAAC,CAAC,SAAS;CAC9E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-org-role.cjs","names":["z","action"],"sources":["../../src/actions/get-org-role.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityGetOrgRoleInput = z.object({\n roleId: z.string().describe(\"The unique identifier of the role to retrieve\"),\n organizationId: z.string().describe(\"The unique identifier of the organization\"),\n}).describe(\"Request model for retrieving a specific organization role.\");\nconst SanityGetOrgRole_PermissionSchema = z.object({\n name: z.string().describe(\"Name of the permission action\").nullable().optional(),\n type: z.string().describe(\"Type of the permission\").nullable().optional(),\n action: z.record(z.string(), z.unknown()).describe(\"Action details for the permission\").nullable().optional(),\n params: z.record(z.string(), z.unknown()).describe(\"Parameters for the permission\").nullable().optional(),\n}).passthrough().describe(\"Represents a single permission within a role.\");\nconst SanityGetOrgRole_OrgRoleSchema = z.object({\n id: z.string().describe(\"The unique identifier of the role\").nullable().optional(),\n name: z.string().describe(\"The unique name identifier of the role\").nullable(),\n title: z.string().describe(\"Display title of the role\").nullable(),\n isCustom: z.boolean().describe(\"Whether this is a custom role defined by the user\").nullable().optional(),\n resourceId: z.string().describe(\"The ID of the resource this role applies to\").nullable(),\n description: z.string().describe(\"Detailed description of what the role allows\").nullable().optional(),\n permissions: z.array(SanityGetOrgRole_PermissionSchema).describe(\"List of permissions granted by this role\"),\n resourceType: z.string().describe(\"The type of resource this role applies to\").nullable(),\n appliesToUsers: z.boolean().describe(\"Whether this role can be assigned to users\").nullable(),\n appliesToRobots: z.boolean().describe(\"Whether this role can be assigned to robots/service accounts\").nullable(),\n}).passthrough().describe(\"Represents an organization role with its permissions and settings.\");\nexport const SanityGetOrgRoleOutput = z.object({\n data: SanityGetOrgRole_OrgRoleSchema.nullable(),\n}).passthrough().describe(\"Response model for the get organization role operation.\");\n\nexport const sanityGetOrgRole = action(\"SANITY_GET_ORG_ROLE\", {\n slug: \"sanity-get-org-role\",\n name: \"Get Organization Role\",\n description: \"Retrieve a specific organization role by its ID. Use this action when you need to fetch details about an organization role including its permissions, title, description, and whether it applies to users or robots. The role must exist for the specified organization.\",\n input: SanityGetOrgRoleInput,\n output: SanityGetOrgRoleOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-org-role.cjs","names":["z","action"],"sources":["../../src/actions/get-org-role.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 SanityGetOrgRoleInput = z.object({\n roleId: z.string().describe(\"The unique identifier of the role to retrieve\"),\n organizationId: z.string().describe(\"The unique identifier of the organization\"),\n}).describe(\"Request model for retrieving a specific organization role.\");\nconst SanityGetOrgRole_PermissionSchema = z.object({\n name: z.string().describe(\"Name of the permission action\").nullable().optional(),\n type: z.string().describe(\"Type of the permission\").nullable().optional(),\n action: z.record(z.string(), z.unknown()).describe(\"Action details for the permission\").nullable().optional(),\n params: z.record(z.string(), z.unknown()).describe(\"Parameters for the permission\").nullable().optional(),\n}).passthrough().describe(\"Represents a single permission within a role.\");\nconst SanityGetOrgRole_OrgRoleSchema = z.object({\n id: z.string().describe(\"The unique identifier of the role\").nullable().optional(),\n name: z.string().describe(\"The unique name identifier of the role\").nullable(),\n title: z.string().describe(\"Display title of the role\").nullable(),\n isCustom: z.boolean().describe(\"Whether this is a custom role defined by the user\").nullable().optional(),\n resourceId: z.string().describe(\"The ID of the resource this role applies to\").nullable(),\n description: z.string().describe(\"Detailed description of what the role allows\").nullable().optional(),\n permissions: z.array(SanityGetOrgRole_PermissionSchema).describe(\"List of permissions granted by this role\"),\n resourceType: z.string().describe(\"The type of resource this role applies to\").nullable(),\n appliesToUsers: z.boolean().describe(\"Whether this role can be assigned to users\").nullable(),\n appliesToRobots: z.boolean().describe(\"Whether this role can be assigned to robots/service accounts\").nullable(),\n}).passthrough().describe(\"Represents an organization role with its permissions and settings.\");\nexport const SanityGetOrgRoleOutput = z.object({\n data: SanityGetOrgRole_OrgRoleSchema.nullable(),\n}).passthrough().describe(\"Response model for the get organization role operation.\");\n\nexport const sanityGetOrgRole: AppAction<\n typeof SanityGetOrgRoleInput,\n typeof SanityGetOrgRoleOutput,\n typeof sanity.credential\n> = action(\"SANITY_GET_ORG_ROLE\", {\n slug: \"sanity-get-org-role\",\n name: \"Get Organization Role\",\n description: \"Retrieve a specific organization role by its ID. Use this action when you need to fetch details about an organization role including its permissions, title, description, and whether it applies to users or robots. The role must exist for the specified organization.\",\n input: SanityGetOrgRoleInput,\n output: SanityGetOrgRoleOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,wBAAwBA,IAAAA,EAAE,OAAO;CAC5C,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CAC3E,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;AACjF,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAM,oCAAoCA,IAAAA,EAAE,OAAO;CACjD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxE,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAA+C;AACzE,MAAM,iCAAiCA,IAAAA,EAAE,OAAO;CAC9C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC7E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACjE,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACxF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,aAAaA,IAAAA,EAAE,MAAM,iCAAiC,CAAC,CAAC,SAAS,0CAA0C;CAC3G,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACxF,gBAAgBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CAC5F,iBAAiBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;AACjH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oEAAoE;AAC9F,MAAa,yBAAyBA,IAAAA,EAAE,OAAO,EAC7C,MAAM,+BAA+B,SAAS,EAChD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yDAAyD;AAEnF,MAAa,mBAITC,eAAAA,OAAO,uBAAuB;CAChC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|