@keystrokehq/sanity 0.1.0 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/add-default-role-to-users.cjs +1 -1
- package/dist/actions/add-default-role-to-users.cjs.map +1 -1
- package/dist/actions/add-default-role-to-users.d.cts +10 -3
- package/dist/actions/add-default-role-to-users.d.cts.map +1 -1
- package/dist/actions/add-default-role-to-users.d.mts +10 -3
- package/dist/actions/add-default-role-to-users.d.mts.map +1 -1
- package/dist/actions/add-default-role-to-users.mjs +1 -1
- package/dist/actions/add-default-role-to-users.mjs.map +1 -1
- package/dist/actions/create-attr-definition.cjs +1 -1
- package/dist/actions/create-attr-definition.cjs.map +1 -1
- package/dist/actions/create-attr-definition.d.cts +32 -3
- package/dist/actions/create-attr-definition.d.cts.map +1 -1
- package/dist/actions/create-attr-definition.d.mts +32 -3
- package/dist/actions/create-attr-definition.d.mts.map +1 -1
- package/dist/actions/create-attr-definition.mjs +1 -1
- package/dist/actions/create-attr-definition.mjs.map +1 -1
- package/dist/actions/create-prompt-post.cjs +2 -2
- package/dist/actions/create-prompt-post.cjs.map +1 -1
- package/dist/actions/create-prompt-post.d.cts +23 -3
- package/dist/actions/create-prompt-post.d.cts.map +1 -1
- package/dist/actions/create-prompt-post.d.mts +23 -3
- package/dist/actions/create-prompt-post.d.mts.map +1 -1
- package/dist/actions/create-prompt-post.mjs +2 -2
- package/dist/actions/create-prompt-post.mjs.map +1 -1
- package/dist/actions/delete-attr-definition.cjs +1 -1
- package/dist/actions/delete-attr-definition.cjs.map +1 -1
- package/dist/actions/delete-attr-definition.d.cts +16 -3
- package/dist/actions/delete-attr-definition.d.cts.map +1 -1
- package/dist/actions/delete-attr-definition.d.mts +16 -3
- package/dist/actions/delete-attr-definition.d.mts.map +1 -1
- package/dist/actions/delete-attr-definition.mjs +1 -1
- package/dist/actions/delete-attr-definition.mjs.map +1 -1
- package/dist/actions/delete-document.cjs +1 -1
- package/dist/actions/delete-document.cjs.map +1 -1
- package/dist/actions/delete-document.d.cts +27 -3
- package/dist/actions/delete-document.d.cts.map +1 -1
- package/dist/actions/delete-document.d.mts +27 -3
- package/dist/actions/delete-document.d.mts.map +1 -1
- package/dist/actions/delete-document.mjs +1 -1
- package/dist/actions/delete-document.mjs.map +1 -1
- package/dist/actions/delete-user-attributes.cjs +5 -5
- package/dist/actions/delete-user-attributes.cjs.map +1 -1
- package/dist/actions/delete-user-attributes.d.cts +27 -3
- package/dist/actions/delete-user-attributes.d.cts.map +1 -1
- package/dist/actions/delete-user-attributes.d.mts +27 -3
- package/dist/actions/delete-user-attributes.d.mts.map +1 -1
- package/dist/actions/delete-user-attributes.mjs +5 -5
- package/dist/actions/delete-user-attributes.mjs.map +1 -1
- package/dist/actions/get-document.cjs +6 -6
- package/dist/actions/get-document.cjs.map +1 -1
- package/dist/actions/get-document.d.cts +24 -3
- package/dist/actions/get-document.d.cts.map +1 -1
- package/dist/actions/get-document.d.mts +24 -3
- package/dist/actions/get-document.d.mts.map +1 -1
- package/dist/actions/get-document.mjs +6 -6
- package/dist/actions/get-document.mjs.map +1 -1
- package/dist/actions/get-invite-by-token.cjs +2 -2
- package/dist/actions/get-invite-by-token.cjs.map +1 -1
- package/dist/actions/get-invite-by-token.d.cts +46 -3
- package/dist/actions/get-invite-by-token.d.cts.map +1 -1
- package/dist/actions/get-invite-by-token.d.mts +46 -3
- package/dist/actions/get-invite-by-token.d.mts.map +1 -1
- package/dist/actions/get-invite-by-token.mjs +2 -2
- package/dist/actions/get-invite-by-token.mjs.map +1 -1
- package/dist/actions/get-org-role.cjs +9 -9
- package/dist/actions/get-org-role.cjs.map +1 -1
- package/dist/actions/get-org-role.d.cts +27 -3
- package/dist/actions/get-org-role.d.cts.map +1 -1
- package/dist/actions/get-org-role.d.mts +27 -3
- package/dist/actions/get-org-role.d.mts.map +1 -1
- package/dist/actions/get-org-role.mjs +9 -9
- package/dist/actions/get-org-role.mjs.map +1 -1
- package/dist/actions/get-permission.cjs +9 -9
- package/dist/actions/get-permission.cjs.map +1 -1
- package/dist/actions/get-permission.d.cts +25 -3
- package/dist/actions/get-permission.d.cts.map +1 -1
- package/dist/actions/get-permission.d.mts +25 -3
- package/dist/actions/get-permission.d.mts.map +1 -1
- package/dist/actions/get-permission.mjs +9 -9
- package/dist/actions/get-permission.mjs.map +1 -1
- package/dist/actions/get-project.cjs +7 -7
- package/dist/actions/get-project.cjs.map +1 -1
- package/dist/actions/get-project.d.cts +34 -3
- package/dist/actions/get-project.d.cts.map +1 -1
- package/dist/actions/get-project.d.mts +34 -3
- package/dist/actions/get-project.d.mts.map +1 -1
- package/dist/actions/get-project.mjs +7 -7
- package/dist/actions/get-project.mjs.map +1 -1
- package/dist/actions/get-robots.cjs +7 -7
- package/dist/actions/get-robots.cjs.map +1 -1
- package/dist/actions/get-robots.d.cts +37 -3
- package/dist/actions/get-robots.d.cts.map +1 -1
- package/dist/actions/get-robots.d.mts +37 -3
- package/dist/actions/get-robots.d.mts.map +1 -1
- package/dist/actions/get-robots.mjs +7 -7
- package/dist/actions/get-robots.mjs.map +1 -1
- package/dist/actions/get-role.cjs +8 -8
- package/dist/actions/get-role.cjs.map +1 -1
- package/dist/actions/get-role.d.cts +33 -3
- package/dist/actions/get-role.d.cts.map +1 -1
- package/dist/actions/get-role.d.mts +33 -3
- package/dist/actions/get-role.d.mts.map +1 -1
- package/dist/actions/get-role.mjs +8 -8
- package/dist/actions/get-role.mjs.map +1 -1
- package/dist/actions/get-users.cjs +3 -3
- package/dist/actions/get-users.cjs.map +1 -1
- package/dist/actions/get-users.d.cts +28 -3
- package/dist/actions/get-users.d.cts.map +1 -1
- package/dist/actions/get-users.d.mts +28 -3
- package/dist/actions/get-users.d.mts.map +1 -1
- package/dist/actions/get-users.mjs +3 -3
- package/dist/actions/get-users.mjs.map +1 -1
- package/dist/actions/list-org-roles.cjs +5 -5
- package/dist/actions/list-org-roles.cjs.map +1 -1
- package/dist/actions/list-org-roles.d.cts +16 -3
- package/dist/actions/list-org-roles.d.cts.map +1 -1
- package/dist/actions/list-org-roles.d.mts +16 -3
- package/dist/actions/list-org-roles.d.mts.map +1 -1
- package/dist/actions/list-org-roles.mjs +5 -5
- package/dist/actions/list-org-roles.mjs.map +1 -1
- package/dist/actions/list-user-attributes.cjs +6 -6
- package/dist/actions/list-user-attributes.cjs.map +1 -1
- package/dist/actions/list-user-attributes.d.cts +23 -3
- package/dist/actions/list-user-attributes.d.cts.map +1 -1
- package/dist/actions/list-user-attributes.d.mts +23 -3
- package/dist/actions/list-user-attributes.d.mts.map +1 -1
- package/dist/actions/list-user-attributes.mjs +6 -6
- package/dist/actions/list-user-attributes.mjs.map +1 -1
- package/dist/actions/query-all-screening.cjs +1 -1
- package/dist/actions/query-all-screening.cjs.map +1 -1
- package/dist/actions/query-all-screening.d.cts +20 -3
- package/dist/actions/query-all-screening.d.cts.map +1 -1
- package/dist/actions/query-all-screening.d.mts +20 -3
- package/dist/actions/query-all-screening.d.mts.map +1 -1
- package/dist/actions/query-all-screening.mjs +1 -1
- package/dist/actions/query-all-screening.mjs.map +1 -1
- package/dist/actions/query-documents.cjs +2 -2
- package/dist/actions/query-documents.cjs.map +1 -1
- package/dist/actions/query-documents.d.cts +31 -3
- package/dist/actions/query-documents.d.cts.map +1 -1
- package/dist/actions/query-documents.d.mts +31 -3
- package/dist/actions/query-documents.d.mts.map +1 -1
- package/dist/actions/query-documents.mjs +2 -2
- package/dist/actions/query-documents.mjs.map +1 -1
- package/dist/actions/update-org-acl.cjs +1 -1
- package/dist/actions/update-org-acl.cjs.map +1 -1
- package/dist/actions/update-org-acl.d.cts +13 -3
- package/dist/actions/update-org-acl.d.cts.map +1 -1
- package/dist/actions/update-org-acl.d.mts +13 -3
- package/dist/actions/update-org-acl.d.mts.map +1 -1
- package/dist/actions/update-org-acl.mjs +1 -1
- package/dist/actions/update-org-acl.mjs.map +1 -1
- package/dist/actions/update-user-attributes-values.cjs +8 -8
- package/dist/actions/update-user-attributes-values.cjs.map +1 -1
- package/dist/actions/update-user-attributes-values.d.cts +27 -3
- package/dist/actions/update-user-attributes-values.d.cts.map +1 -1
- package/dist/actions/update-user-attributes-values.d.mts +27 -3
- package/dist/actions/update-user-attributes-values.d.mts.map +1 -1
- package/dist/actions/update-user-attributes-values.mjs +8 -8
- package/dist/actions/update-user-attributes-values.mjs.map +1 -1
- package/dist/actions/validate-credential.cjs +4 -4
- package/dist/actions/validate-credential.cjs.map +1 -1
- package/dist/actions/validate-credential.d.cts +17 -3
- package/dist/actions/validate-credential.d.cts.map +1 -1
- package/dist/actions/validate-credential.d.mts +17 -3
- package/dist/actions/validate-credential.d.mts.map +1 -1
- package/dist/actions/validate-credential.mjs +4 -4
- package/dist/actions/validate-credential.mjs.map +1 -1
- package/dist/catalog.cjs +18 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +17 -0
- package/dist/catalog.d.mts +17 -0
- package/dist/catalog.mjs +18 -1
- package/dist/catalog.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1,9 +1,33 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/delete-document.d.ts
|
|
4
|
-
declare const SanityDeleteDocumentInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SanityDeleteDocumentInput: z.ZodObject<{
|
|
5
|
+
purge: z.ZodOptional<z.ZodBoolean>;
|
|
6
|
+
query: z.ZodOptional<z.ZodString>;
|
|
7
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
8
|
+
dataset: z.ZodString;
|
|
9
|
+
dry_run: z.ZodOptional<z.ZodBoolean>;
|
|
10
|
+
project_id: z.ZodString;
|
|
11
|
+
return_ids: z.ZodOptional<z.ZodBoolean>;
|
|
12
|
+
document_id: z.ZodOptional<z.ZodString>;
|
|
13
|
+
return_documents: z.ZodOptional<z.ZodBoolean>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
declare const SanityDeleteDocumentOutput: z.ZodObject<{
|
|
16
|
+
results: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
17
|
+
documentIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
18
|
+
transactionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
}, z.core.$loose>;
|
|
20
|
+
declare const sanityDeleteDocument: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
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]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
31
|
//#endregion
|
|
8
32
|
export { sanityDeleteDocument };
|
|
9
33
|
//# sourceMappingURL=delete-document.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-document.d.cts","names":[],"sources":["../../src/actions/delete-document.ts"],"mappings":";;;cAIa,yBAAA,
|
|
1
|
+
{"version":3,"file":"delete-document.d.cts","names":[],"sources":["../../src/actions/delete-document.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;cAWzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;cAM1B,oBAAA,gCAAoB,wBAAA;;;;;WAM/B,MAAA"}
|
|
@@ -1,9 +1,33 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/delete-document.d.ts
|
|
4
|
-
declare const SanityDeleteDocumentInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SanityDeleteDocumentInput: z.ZodObject<{
|
|
5
|
+
purge: z.ZodOptional<z.ZodBoolean>;
|
|
6
|
+
query: z.ZodOptional<z.ZodString>;
|
|
7
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
8
|
+
dataset: z.ZodString;
|
|
9
|
+
dry_run: z.ZodOptional<z.ZodBoolean>;
|
|
10
|
+
project_id: z.ZodString;
|
|
11
|
+
return_ids: z.ZodOptional<z.ZodBoolean>;
|
|
12
|
+
document_id: z.ZodOptional<z.ZodString>;
|
|
13
|
+
return_documents: z.ZodOptional<z.ZodBoolean>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
declare const SanityDeleteDocumentOutput: z.ZodObject<{
|
|
16
|
+
results: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
17
|
+
documentIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
18
|
+
transactionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
}, z.core.$loose>;
|
|
20
|
+
declare const sanityDeleteDocument: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
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]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
31
|
//#endregion
|
|
8
32
|
export { sanityDeleteDocument };
|
|
9
33
|
//# sourceMappingURL=delete-document.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-document.d.mts","names":[],"sources":["../../src/actions/delete-document.ts"],"mappings":";;;cAIa,yBAAA,
|
|
1
|
+
{"version":3,"file":"delete-document.d.mts","names":[],"sources":["../../src/actions/delete-document.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;cAWzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;cAM1B,oBAAA,gCAAoB,wBAAA;;;;;WAM/B,MAAA"}
|
|
@@ -19,7 +19,7 @@ const sanityDeleteDocument = action("SANITY_DELETE_DOCUMENT", {
|
|
|
19
19
|
results: z.array(z.record(z.string(), z.unknown())).describe("List of full document objects that were deleted. Only present if return_documents was true.").nullable().optional(),
|
|
20
20
|
documentIds: z.array(z.string()).describe("List of document IDs that were deleted. Only present if return_ids was true.").nullable().optional(),
|
|
21
21
|
transactionId: z.string().describe("Unique identifier for this mutation transaction.").nullable().optional()
|
|
22
|
-
}).describe("Response model for the delete document operation.")
|
|
22
|
+
}).passthrough().describe("Response model for the delete document operation.")
|
|
23
23
|
});
|
|
24
24
|
//#endregion
|
|
25
25
|
export { sanityDeleteDocument };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-document.mjs","names":[],"sources":["../../src/actions/delete-document.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityDeleteDocumentInput
|
|
1
|
+
{"version":3,"file":"delete-document.mjs","names":[],"sources":["../../src/actions/delete-document.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityDeleteDocumentInput = z.object({\n purge: z.boolean().describe(\"If true, permanently removes the document from the history. If false or omitted, the document is soft-deleted and can be recovered.\").optional(),\n query: z.string().describe(\"GROQ query string to select documents for deletion. Query-based deletions are limited to 10,000 documents. Either document_id or query must be provided, not both.\").optional(),\n params: z.record(z.string(), z.unknown()).describe(\"Optional parameters for the GROQ query when using query-based deletion. Use $variableName syntax in the query.\").optional(),\n dataset: z.string().describe(\"The dataset name where the document resides.\"),\n dry_run: z.boolean().describe(\"If true, simulates the deletion without actually modifying any documents. Useful for testing.\").optional(),\n project_id: z.string().describe(\"The Sanity project ID where the document resides.\"),\n return_ids: z.boolean().describe(\"If true, returns the IDs of deleted documents in the response.\").optional(),\n document_id: z.string().describe(\"The ID of the specific document to delete. Either document_id or query must be provided, not both.\").optional(),\n return_documents: z.boolean().describe(\"If true, returns the full document content of deleted documents in the response.\").optional(),\n}).describe(\"Request model for deleting a document from Sanity.\");\nexport const SanityDeleteDocumentOutput = z.object({\n results: z.array(z.record(z.string(), z.unknown())).describe(\"List of full document objects that were deleted. Only present if return_documents was true.\").nullable().optional(),\n documentIds: z.array(z.string()).describe(\"List of document IDs that were deleted. Only present if return_ids was true.\").nullable().optional(),\n transactionId: z.string().describe(\"Unique identifier for this mutation transaction.\").nullable().optional(),\n}).passthrough().describe(\"Response model for the delete document operation.\");\n\nexport const sanityDeleteDocument = action(\"SANITY_DELETE_DOCUMENT\", {\n slug: \"sanity-delete-document\",\n name: \"Delete Document\",\n description: \"Delete a document from Sanity by ID or query. This action is irreversible when purge is true — the document cannot be recovered once permanently deleted. Use when you need to remove a specific document by ID or bulk delete documents matching a GROQ query (limited to 10,000 documents per operation). For large deletions, paginate by document ID. Set dry_run to true to test the operation without modifying data.\",\n input: SanityDeleteDocumentInput,\n output: SanityDeleteDocumentOutput,\n});\n"],"mappings":";;AAqBA,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OArBuC,EAAE,OAAO;EAChD,OAAO,EAAE,QAAQ,CAAC,CAAC,SAAS,qIAAqI,CAAC,CAAC,SAAS;EAC5K,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oKAAoK,CAAC,CAAC,SAAS;EAC1M,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,gHAAgH,CAAC,CAAC,SAAS;EAC9K,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;EAC3E,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,+FAA+F,CAAC,CAAC,SAAS;EACxI,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;EACnF,YAAY,EAAE,QAAQ,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;EAC5G,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;EAChJ,kBAAkB,EAAE,QAAQ,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;CACtI,CAAC,CAAC,CAAC,SAAS,oDAWH;CACP,QAXwC,EAAE,OAAO;EACjD,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChL,aAAa,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9I,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAOhB;AACV,CAAC"}
|
|
@@ -2,23 +2,23 @@ const require_action = require("../action.cjs");
|
|
|
2
2
|
let zod = require("zod");
|
|
3
3
|
//#region src/actions/delete-user-attributes.ts
|
|
4
4
|
const SanityDeleteUserAttributesInput = zod.z.object({
|
|
5
|
-
attributes: zod.z.array(zod.z.object({ key: zod.z.string().describe("The key of the attribute to delete") }).describe("Single attribute key to delete.")).describe("List of attribute keys to delete from the user"),
|
|
5
|
+
attributes: zod.z.array(zod.z.object({ key: zod.z.string().describe("The key of the attribute to delete") }).passthrough().describe("Single attribute key to delete.")).describe("List of attribute keys to delete from the user"),
|
|
6
6
|
sanity_user_id: zod.z.string().describe("Unique identifier of the Sanity user"),
|
|
7
7
|
organization_id: zod.z.string().describe("Unique identifier of the organization")
|
|
8
8
|
}).describe("Request model for deleting user attributes in a Sanity organization.\n\nUse this action to remove specific custom attributes from a user within an organization.");
|
|
9
9
|
const SanityDeleteUserAttributes_AttributeItemSchema = zod.z.object({
|
|
10
|
-
key: zod.z.string().describe("The key/name of the attribute"),
|
|
11
|
-
type: zod.z.string().describe("The type of the attribute"),
|
|
10
|
+
key: zod.z.string().describe("The key/name of the attribute").nullable(),
|
|
11
|
+
type: zod.z.string().describe("The type of the attribute").nullable(),
|
|
12
12
|
values: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Possible values for this attribute").nullable().optional(),
|
|
13
13
|
active_value: zod.z.record(zod.z.string(), zod.z.unknown()).describe("The active value for this attribute").nullable().optional(),
|
|
14
14
|
active_source: zod.z.string().describe("The source of the active value").nullable().optional()
|
|
15
|
-
}).describe("Individual user attribute item.");
|
|
15
|
+
}).passthrough().describe("Individual user attribute item.");
|
|
16
16
|
const SanityDeleteUserAttributesOutput = zod.z.object({
|
|
17
17
|
attributes: zod.z.array(SanityDeleteUserAttributes_AttributeItemSchema).describe("Remaining attributes for the user").nullable().optional(),
|
|
18
18
|
updated_at: zod.z.string().describe("Timestamp when attributes were last updated in ISO 8601 format").nullable().optional(),
|
|
19
19
|
sanity_user_id: zod.z.string().describe("ID of the user").nullable().optional(),
|
|
20
20
|
organization_id: zod.z.string().describe("ID of the organization").nullable().optional()
|
|
21
|
-
}).describe("Response model for deleted user attributes.\n\nReturns the updated list of remaining attributes for the user after deletion.");
|
|
21
|
+
}).passthrough().describe("Response model for deleted user attributes.\n\nReturns the updated list of remaining attributes for the user after deletion.");
|
|
22
22
|
const sanityDeleteUserAttributes = require_action.action("SANITY_DELETE_USER_ATTRIBUTES", {
|
|
23
23
|
slug: "sanity-delete-user-attributes",
|
|
24
24
|
name: "Delete User Attributes",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-user-attributes.cjs","names":["z","action"],"sources":["../../src/actions/delete-user-attributes.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityDeleteUserAttributesInput
|
|
1
|
+
{"version":3,"file":"delete-user-attributes.cjs","names":["z","action"],"sources":["../../src/actions/delete-user-attributes.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityDeleteUserAttributesInput = z.object({\n attributes: z.array(z.object({\n key: z.string().describe(\"The key of the attribute to delete\"),\n}).passthrough().describe(\"Single attribute key to delete.\")).describe(\"List of attribute keys to delete from the user\"),\n sanity_user_id: z.string().describe(\"Unique identifier of the Sanity user\"),\n organization_id: z.string().describe(\"Unique identifier of the organization\"),\n}).describe(\"Request model for deleting user attributes in a Sanity organization.\\n\\nUse this action to remove specific custom attributes from a user within an organization.\");\nconst SanityDeleteUserAttributes_AttributeItemSchema = z.object({\n key: z.string().describe(\"The key/name of the attribute\").nullable(),\n type: z.string().describe(\"The type of the attribute\").nullable(),\n values: z.record(z.string(), z.unknown()).describe(\"Possible values for this attribute\").nullable().optional(),\n active_value: z.record(z.string(), z.unknown()).describe(\"The active value for this attribute\").nullable().optional(),\n active_source: z.string().describe(\"The source of the active value\").nullable().optional(),\n}).passthrough().describe(\"Individual user attribute item.\");\nexport const SanityDeleteUserAttributesOutput = z.object({\n attributes: z.array(SanityDeleteUserAttributes_AttributeItemSchema).describe(\"Remaining attributes for the user\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when attributes were last updated in ISO 8601 format\").nullable().optional(),\n sanity_user_id: z.string().describe(\"ID of the user\").nullable().optional(),\n organization_id: z.string().describe(\"ID of the organization\").nullable().optional(),\n}).passthrough().describe(\"Response model for deleted user attributes.\\n\\nReturns the updated list of remaining attributes for the user after deletion.\");\n\nexport const sanityDeleteUserAttributes = action(\"SANITY_DELETE_USER_ATTRIBUTES\", {\n slug: \"sanity-delete-user-attributes\",\n name: \"Delete User Attributes\",\n description: \"Delete custom attributes from a Sanity user within an organization. Use this tool when you need to remove specific custom attributes from a user account. The action deletes the attributes specified in the request and returns the updated attribute list for the user. Example use case: Removing outdated metadata like 'location' or 'year_started' from a user profile.\",\n input: SanityDeleteUserAttributesInput,\n output: SanityDeleteUserAttributesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,YAAYA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,EAC7B,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,EAC/D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,CAAC,SAAS,gDAAgD;CACrH,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CAC1E,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;AAC9E,CAAC,CAAC,CAAC,SAAS,kKAAkK;AAC9K,MAAM,iDAAiDA,IAAAA,EAAE,OAAO;CAC9D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACnE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAChE,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,cAAcA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpH,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iCAAiC;AAC3D,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,YAAYA,IAAAA,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtI,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtH,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1E,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8HAA8H;AAExJ,MAAa,6BAA6BC,eAAAA,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,33 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/delete-user-attributes.d.ts
|
|
4
|
-
declare const SanityDeleteUserAttributesInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SanityDeleteUserAttributesInput: z.ZodObject<{
|
|
5
|
+
attributes: z.ZodArray<z.ZodObject<{
|
|
6
|
+
key: z.ZodString;
|
|
7
|
+
}, z.core.$loose>>;
|
|
8
|
+
sanity_user_id: z.ZodString;
|
|
9
|
+
organization_id: z.ZodString;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
declare const SanityDeleteUserAttributesOutput: z.ZodObject<{
|
|
12
|
+
attributes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
13
|
+
key: z.ZodNullable<z.ZodString>;
|
|
14
|
+
type: z.ZodNullable<z.ZodString>;
|
|
15
|
+
values: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
16
|
+
active_value: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
17
|
+
active_source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
}, z.core.$loose>>>>;
|
|
19
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
sanity_user_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
organization_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
}, z.core.$loose>;
|
|
23
|
+
declare const sanityDeleteUserAttributes: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
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]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
31
|
//#endregion
|
|
8
32
|
export { sanityDeleteUserAttributes };
|
|
9
33
|
//# 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":";;;cAIa,+BAAA,
|
|
1
|
+
{"version":3,"file":"delete-user-attributes.d.cts","names":[],"sources":["../../src/actions/delete-user-attributes.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;cAc/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;cAOhC,0BAAA,gCAA0B,wBAAA"}
|
|
@@ -1,9 +1,33 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/delete-user-attributes.d.ts
|
|
4
|
-
declare const SanityDeleteUserAttributesInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SanityDeleteUserAttributesInput: z.ZodObject<{
|
|
5
|
+
attributes: z.ZodArray<z.ZodObject<{
|
|
6
|
+
key: z.ZodString;
|
|
7
|
+
}, z.core.$loose>>;
|
|
8
|
+
sanity_user_id: z.ZodString;
|
|
9
|
+
organization_id: z.ZodString;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
declare const SanityDeleteUserAttributesOutput: z.ZodObject<{
|
|
12
|
+
attributes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
13
|
+
key: z.ZodNullable<z.ZodString>;
|
|
14
|
+
type: z.ZodNullable<z.ZodString>;
|
|
15
|
+
values: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
16
|
+
active_value: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
17
|
+
active_source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
}, z.core.$loose>>>>;
|
|
19
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
sanity_user_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
organization_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
}, z.core.$loose>;
|
|
23
|
+
declare const sanityDeleteUserAttributes: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
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]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
31
|
//#endregion
|
|
8
32
|
export { sanityDeleteUserAttributes };
|
|
9
33
|
//# 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":";;;cAIa,+BAAA,
|
|
1
|
+
{"version":3,"file":"delete-user-attributes.d.mts","names":[],"sources":["../../src/actions/delete-user-attributes.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;cAc/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;cAOhC,0BAAA,gCAA0B,wBAAA"}
|
|
@@ -2,17 +2,17 @@ import { action } from "../action.mjs";
|
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
//#region src/actions/delete-user-attributes.ts
|
|
4
4
|
const SanityDeleteUserAttributesInput = z.object({
|
|
5
|
-
attributes: z.array(z.object({ key: z.string().describe("The key of the attribute to delete") }).describe("Single attribute key to delete.")).describe("List of attribute keys to delete from the user"),
|
|
5
|
+
attributes: z.array(z.object({ key: z.string().describe("The key of the attribute to delete") }).passthrough().describe("Single attribute key to delete.")).describe("List of attribute keys to delete from the user"),
|
|
6
6
|
sanity_user_id: z.string().describe("Unique identifier of the Sanity user"),
|
|
7
7
|
organization_id: z.string().describe("Unique identifier of the organization")
|
|
8
8
|
}).describe("Request model for deleting user attributes in a Sanity organization.\n\nUse this action to remove specific custom attributes from a user within an organization.");
|
|
9
9
|
const SanityDeleteUserAttributes_AttributeItemSchema = z.object({
|
|
10
|
-
key: z.string().describe("The key/name of the attribute"),
|
|
11
|
-
type: z.string().describe("The type of the attribute"),
|
|
10
|
+
key: z.string().describe("The key/name of the attribute").nullable(),
|
|
11
|
+
type: z.string().describe("The type of the attribute").nullable(),
|
|
12
12
|
values: z.record(z.string(), z.unknown()).describe("Possible values for this attribute").nullable().optional(),
|
|
13
13
|
active_value: z.record(z.string(), z.unknown()).describe("The active value for this attribute").nullable().optional(),
|
|
14
14
|
active_source: z.string().describe("The source of the active value").nullable().optional()
|
|
15
|
-
}).describe("Individual user attribute item.");
|
|
15
|
+
}).passthrough().describe("Individual user attribute item.");
|
|
16
16
|
const sanityDeleteUserAttributes = action("SANITY_DELETE_USER_ATTRIBUTES", {
|
|
17
17
|
slug: "sanity-delete-user-attributes",
|
|
18
18
|
name: "Delete User Attributes",
|
|
@@ -23,7 +23,7 @@ const sanityDeleteUserAttributes = action("SANITY_DELETE_USER_ATTRIBUTES", {
|
|
|
23
23
|
updated_at: z.string().describe("Timestamp when attributes were last updated in ISO 8601 format").nullable().optional(),
|
|
24
24
|
sanity_user_id: z.string().describe("ID of the user").nullable().optional(),
|
|
25
25
|
organization_id: z.string().describe("ID of the organization").nullable().optional()
|
|
26
|
-
}).describe("Response model for deleted user attributes.\n\nReturns the updated list of remaining attributes for the user after deletion.")
|
|
26
|
+
}).passthrough().describe("Response model for deleted user attributes.\n\nReturns the updated list of remaining attributes for the user after deletion.")
|
|
27
27
|
});
|
|
28
28
|
//#endregion
|
|
29
29
|
export { sanityDeleteUserAttributes };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-user-attributes.mjs","names":[],"sources":["../../src/actions/delete-user-attributes.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityDeleteUserAttributesInput
|
|
1
|
+
{"version":3,"file":"delete-user-attributes.mjs","names":[],"sources":["../../src/actions/delete-user-attributes.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityDeleteUserAttributesInput = z.object({\n attributes: z.array(z.object({\n key: z.string().describe(\"The key of the attribute to delete\"),\n}).passthrough().describe(\"Single attribute key to delete.\")).describe(\"List of attribute keys to delete from the user\"),\n sanity_user_id: z.string().describe(\"Unique identifier of the Sanity user\"),\n organization_id: z.string().describe(\"Unique identifier of the organization\"),\n}).describe(\"Request model for deleting user attributes in a Sanity organization.\\n\\nUse this action to remove specific custom attributes from a user within an organization.\");\nconst SanityDeleteUserAttributes_AttributeItemSchema = z.object({\n key: z.string().describe(\"The key/name of the attribute\").nullable(),\n type: z.string().describe(\"The type of the attribute\").nullable(),\n values: z.record(z.string(), z.unknown()).describe(\"Possible values for this attribute\").nullable().optional(),\n active_value: z.record(z.string(), z.unknown()).describe(\"The active value for this attribute\").nullable().optional(),\n active_source: z.string().describe(\"The source of the active value\").nullable().optional(),\n}).passthrough().describe(\"Individual user attribute item.\");\nexport const SanityDeleteUserAttributesOutput = z.object({\n attributes: z.array(SanityDeleteUserAttributes_AttributeItemSchema).describe(\"Remaining attributes for the user\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when attributes were last updated in ISO 8601 format\").nullable().optional(),\n sanity_user_id: z.string().describe(\"ID of the user\").nullable().optional(),\n organization_id: z.string().describe(\"ID of the organization\").nullable().optional(),\n}).passthrough().describe(\"Response model for deleted user attributes.\\n\\nReturns the updated list of remaining attributes for the user after deletion.\");\n\nexport const sanityDeleteUserAttributes = action(\"SANITY_DELETE_USER_ATTRIBUTES\", {\n slug: \"sanity-delete-user-attributes\",\n name: \"Delete User Attributes\",\n description: \"Delete custom attributes from a Sanity user within an organization. Use this tool when you need to remove specific custom attributes from a user account. The action deletes the attributes specified in the request and returns the updated attribute list for the user. Example use case: Removing outdated metadata like 'location' or 'year_started' from a user profile.\",\n input: SanityDeleteUserAttributesInput,\n output: SanityDeleteUserAttributesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkC,EAAE,OAAO;CACtD,YAAY,EAAE,MAAM,EAAE,OAAO,EAC7B,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,EAC/D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,CAAC,SAAS,gDAAgD;CACrH,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CAC1E,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;AAC9E,CAAC,CAAC,CAAC,SAAS,kKAAkK;AAC9K,MAAM,iDAAiD,EAAE,OAAO;CAC9D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACnE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAChE,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,cAAc,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpH,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iCAAiC;AAQ3D,MAAa,6BAA6B,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZ8C,EAAE,OAAO;EACvD,YAAY,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtI,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtH,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1E,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8HAOhB;AACV,CAAC"}
|
|
@@ -7,13 +7,13 @@ const SanityGetDocumentInput = zod.z.object({
|
|
|
7
7
|
document_id: zod.z.string().describe("The unique identifier of the document to retrieve. This is the _id field of the document.")
|
|
8
8
|
}).describe("Request model for fetching a single document by ID.");
|
|
9
9
|
const SanityGetDocument_OmittedDocumentSchema = zod.z.object({
|
|
10
|
-
id: zod.z.string().describe("ID of the omitted document"),
|
|
11
|
-
reason: zod.z.string().describe("Reason for omission (e.g., 'existence')")
|
|
12
|
-
}).describe("Model for documents that were omitted from the response.");
|
|
10
|
+
id: zod.z.string().describe("ID of the omitted document").nullable(),
|
|
11
|
+
reason: zod.z.string().describe("Reason for omission (e.g., 'existence')").nullable()
|
|
12
|
+
}).passthrough().describe("Model for documents that were omitted from the response.");
|
|
13
13
|
const SanityGetDocument_SanityDocumentSchema = zod.z.object({
|
|
14
|
-
_id: zod.z.string().describe("Unique identifier of the document"),
|
|
14
|
+
_id: zod.z.string().describe("Unique identifier of the document").nullable(),
|
|
15
15
|
_rev: zod.z.string().describe("Revision identifier").nullable().optional(),
|
|
16
|
-
_type: zod.z.string().describe("Document type"),
|
|
16
|
+
_type: zod.z.string().describe("Document type").nullable(),
|
|
17
17
|
_createdAt: zod.z.string().describe("Creation timestamp").nullable().optional(),
|
|
18
18
|
_updatedAt: zod.z.string().describe("Last update timestamp").nullable().optional()
|
|
19
19
|
}).passthrough().describe("Model for a Sanity document with system fields.");
|
|
@@ -21,7 +21,7 @@ const SanityGetDocumentOutput = zod.z.object({
|
|
|
21
21
|
ms: zod.z.number().int().describe("Time taken to execute the request in milliseconds.").nullable().optional(),
|
|
22
22
|
omitted: zod.z.array(SanityGetDocument_OmittedDocumentSchema).describe("Array of documents that were omitted from the response, typically because they don't exist.").nullable().optional(),
|
|
23
23
|
documents: zod.z.array(SanityGetDocument_SanityDocumentSchema).describe("Array containing the requested document. Returns a single-element array with the full document including system fields (_id, _type, _rev, _createdAt, _updatedAt).").nullable().optional()
|
|
24
|
-
}).describe("Response model for fetching a single document.");
|
|
24
|
+
}).passthrough().describe("Response model for fetching a single document.");
|
|
25
25
|
const sanityGetDocument = require_action.action("SANITY_GET_DOCUMENT", {
|
|
26
26
|
slug: "sanity-get-document",
|
|
27
27
|
name: "Get Document by ID",
|
|
@@ -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
|
|
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":";;;AAIA,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,oBAAoBC,eAAAA,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,30 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-document.d.ts
|
|
4
|
-
declare const SanityGetDocumentInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SanityGetDocumentInput: z.ZodObject<{
|
|
5
|
+
dataset: z.ZodString;
|
|
6
|
+
project_id: z.ZodString;
|
|
7
|
+
document_id: z.ZodString;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
declare const SanityGetDocumentOutput: z.ZodObject<{
|
|
10
|
+
ms: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
11
|
+
omitted: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
12
|
+
id: z.ZodNullable<z.ZodString>;
|
|
13
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
14
|
+
}, z.core.$loose>>>>;
|
|
15
|
+
documents: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
16
|
+
_id: z.ZodNullable<z.ZodString>;
|
|
17
|
+
_rev: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
_type: z.ZodNullable<z.ZodString>;
|
|
19
|
+
_createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
_updatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
}, z.core.$loose>>>>;
|
|
22
|
+
}, z.core.$loose>;
|
|
23
|
+
declare const sanityGetDocument: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
24
|
+
dataset: string;
|
|
25
|
+
project_id: string;
|
|
26
|
+
document_id: string;
|
|
27
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
28
|
//#endregion
|
|
8
29
|
export { sanityGetDocument };
|
|
9
30
|
//# sourceMappingURL=get-document.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-document.d.cts","names":[],"sources":["../../src/actions/get-document.ts"],"mappings":";;;cAIa,sBAAA,
|
|
1
|
+
{"version":3,"file":"get-document.d.cts","names":[],"sources":["../../src/actions/get-document.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;cAgBtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAMvB,iBAAA,gCAAiB,wBAAA"}
|
|
@@ -1,9 +1,30 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-document.d.ts
|
|
4
|
-
declare const SanityGetDocumentInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SanityGetDocumentInput: z.ZodObject<{
|
|
5
|
+
dataset: z.ZodString;
|
|
6
|
+
project_id: z.ZodString;
|
|
7
|
+
document_id: z.ZodString;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
declare const SanityGetDocumentOutput: z.ZodObject<{
|
|
10
|
+
ms: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
11
|
+
omitted: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
12
|
+
id: z.ZodNullable<z.ZodString>;
|
|
13
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
14
|
+
}, z.core.$loose>>>>;
|
|
15
|
+
documents: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
16
|
+
_id: z.ZodNullable<z.ZodString>;
|
|
17
|
+
_rev: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
_type: z.ZodNullable<z.ZodString>;
|
|
19
|
+
_createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
_updatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
}, z.core.$loose>>>>;
|
|
22
|
+
}, z.core.$loose>;
|
|
23
|
+
declare const sanityGetDocument: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
24
|
+
dataset: string;
|
|
25
|
+
project_id: string;
|
|
26
|
+
document_id: string;
|
|
27
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
28
|
//#endregion
|
|
8
29
|
export { sanityGetDocument };
|
|
9
30
|
//# sourceMappingURL=get-document.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-document.d.mts","names":[],"sources":["../../src/actions/get-document.ts"],"mappings":";;;cAIa,sBAAA,
|
|
1
|
+
{"version":3,"file":"get-document.d.mts","names":[],"sources":["../../src/actions/get-document.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;cAgBtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAMvB,iBAAA,gCAAiB,wBAAA"}
|
|
@@ -7,13 +7,13 @@ const SanityGetDocumentInput = z.object({
|
|
|
7
7
|
document_id: z.string().describe("The unique identifier of the document to retrieve. This is the _id field of the document.")
|
|
8
8
|
}).describe("Request model for fetching a single document by ID.");
|
|
9
9
|
const SanityGetDocument_OmittedDocumentSchema = z.object({
|
|
10
|
-
id: z.string().describe("ID of the omitted document"),
|
|
11
|
-
reason: z.string().describe("Reason for omission (e.g., 'existence')")
|
|
12
|
-
}).describe("Model for documents that were omitted from the response.");
|
|
10
|
+
id: z.string().describe("ID of the omitted document").nullable(),
|
|
11
|
+
reason: z.string().describe("Reason for omission (e.g., 'existence')").nullable()
|
|
12
|
+
}).passthrough().describe("Model for documents that were omitted from the response.");
|
|
13
13
|
const SanityGetDocument_SanityDocumentSchema = z.object({
|
|
14
|
-
_id: z.string().describe("Unique identifier of the document"),
|
|
14
|
+
_id: z.string().describe("Unique identifier of the document").nullable(),
|
|
15
15
|
_rev: z.string().describe("Revision identifier").nullable().optional(),
|
|
16
|
-
_type: z.string().describe("Document type"),
|
|
16
|
+
_type: z.string().describe("Document type").nullable(),
|
|
17
17
|
_createdAt: z.string().describe("Creation timestamp").nullable().optional(),
|
|
18
18
|
_updatedAt: z.string().describe("Last update timestamp").nullable().optional()
|
|
19
19
|
}).passthrough().describe("Model for a Sanity document with system fields.");
|
|
@@ -26,7 +26,7 @@ const sanityGetDocument = action("SANITY_GET_DOCUMENT", {
|
|
|
26
26
|
ms: z.number().int().describe("Time taken to execute the request in milliseconds.").nullable().optional(),
|
|
27
27
|
omitted: z.array(SanityGetDocument_OmittedDocumentSchema).describe("Array of documents that were omitted from the response, typically because they don't exist.").nullable().optional(),
|
|
28
28
|
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()
|
|
29
|
-
}).describe("Response model for fetching a single document.")
|
|
29
|
+
}).passthrough().describe("Response model for fetching a single document.")
|
|
30
30
|
});
|
|
31
31
|
//#endregion
|
|
32
32
|
export { sanityGetDocument };
|
|
@@ -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
|
|
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":";;;AAIA,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,oBAAoB,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAXqC,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,gDAOhB;AACV,CAAC"}
|
|
@@ -32,7 +32,7 @@ const SanityGetInviteByTokenOutput = zod.z.object({
|
|
|
32
32
|
role: zod.z.string().describe("The role that will be assigned to the invitee upon accepting the invite. Only present if found=True.").nullable().optional(),
|
|
33
33
|
email: zod.z.string().describe("The email address of the invitee. Only present if the invite is still pending.").nullable().optional(),
|
|
34
34
|
error: zod.z.string().describe("Error message if the invite was not found. Only present if found=False.").nullable().optional(),
|
|
35
|
-
found: zod.z.boolean().describe("Whether the invite was found. True if invite exists, False if not found."),
|
|
35
|
+
found: zod.z.boolean().describe("Whether the invite was found. True if invite exists, False if not found.").nullable(),
|
|
36
36
|
status: SanityGetInviteByToken_InviteStatusSchema.nullable().optional(),
|
|
37
37
|
createdAt: zod.z.string().describe("The ISO 8601 timestamp when the invite was created. Only present if found=True.").nullable().optional(),
|
|
38
38
|
inviteeId: zod.z.string().describe("The ID of the user that accepted the invite. Only present if the invite has been accepted.").nullable().optional(),
|
|
@@ -41,7 +41,7 @@ const SanityGetInviteByTokenOutput = zod.z.object({
|
|
|
41
41
|
resourceId: zod.z.string().describe("The ID of the resource this invite applies to. Only present if found=True.").nullable().optional(),
|
|
42
42
|
inviterType: SanityGetInviteByToken_InviterTypeSchema.nullable().optional(),
|
|
43
43
|
resourceType: SanityGetInviteByToken_ResourceTypeSchema.nullable().optional()
|
|
44
|
-
}).describe("Response model for the get invite by token operation.");
|
|
44
|
+
}).passthrough().describe("Response model for the get invite by token operation.");
|
|
45
45
|
const sanityGetInviteByToken = require_action.action("SANITY_GET_INVITE_BY_TOKEN", {
|
|
46
46
|
slug: "sanity-get-invite-by-token",
|
|
47
47
|
name: "Get Invite By Token",
|
|
@@ -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
|
|
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":";;;AAIA,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,yBAAyBC,eAAAA,OAAO,8BAA8B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|