@keystrokehq/sanity 0.1.2 → 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/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 +1 -1
- package/dist/actions/add-default-role-to-users.d.mts +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 +1 -1
- package/dist/actions/create-attr-definition.d.mts +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 +2 -2
- package/dist/actions/create-prompt-post.d.mts +2 -2
- 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 +1 -1
- package/dist/actions/delete-attr-definition.d.mts +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 +1 -1
- package/dist/actions/delete-document.d.mts +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 +3 -3
- package/dist/actions/delete-user-attributes.cjs.map +1 -1
- package/dist/actions/delete-user-attributes.d.cts +4 -3
- package/dist/actions/delete-user-attributes.d.mts +4 -3
- package/dist/actions/delete-user-attributes.mjs +3 -3
- package/dist/actions/delete-user-attributes.mjs.map +1 -1
- package/dist/actions/get-document.cjs +2 -2
- package/dist/actions/get-document.cjs.map +1 -1
- package/dist/actions/get-document.d.cts +2 -2
- package/dist/actions/get-document.d.mts +2 -2
- package/dist/actions/get-document.mjs +2 -2
- package/dist/actions/get-document.mjs.map +1 -1
- package/dist/actions/get-invite-by-token.cjs +1 -1
- package/dist/actions/get-invite-by-token.cjs.map +1 -1
- package/dist/actions/get-invite-by-token.d.cts +1 -1
- package/dist/actions/get-invite-by-token.d.mts +1 -1
- package/dist/actions/get-invite-by-token.mjs +1 -1
- package/dist/actions/get-invite-by-token.mjs.map +1 -1
- package/dist/actions/get-org-role.cjs +3 -3
- package/dist/actions/get-org-role.cjs.map +1 -1
- package/dist/actions/get-org-role.d.cts +3 -3
- package/dist/actions/get-org-role.d.mts +3 -3
- package/dist/actions/get-org-role.mjs +3 -3
- package/dist/actions/get-org-role.mjs.map +1 -1
- package/dist/actions/get-permission.cjs +2 -2
- package/dist/actions/get-permission.cjs.map +1 -1
- package/dist/actions/get-permission.d.cts +2 -2
- package/dist/actions/get-permission.d.mts +2 -2
- package/dist/actions/get-permission.mjs +2 -2
- package/dist/actions/get-permission.mjs.map +1 -1
- package/dist/actions/get-project.cjs +5 -5
- package/dist/actions/get-project.cjs.map +1 -1
- package/dist/actions/get-project.d.cts +5 -5
- package/dist/actions/get-project.d.mts +5 -5
- package/dist/actions/get-project.mjs +5 -5
- package/dist/actions/get-project.mjs.map +1 -1
- package/dist/actions/get-robots.cjs +3 -3
- package/dist/actions/get-robots.cjs.map +1 -1
- package/dist/actions/get-robots.d.cts +3 -3
- package/dist/actions/get-robots.d.mts +3 -3
- package/dist/actions/get-robots.mjs +3 -3
- package/dist/actions/get-robots.mjs.map +1 -1
- package/dist/actions/get-role.cjs +2 -2
- package/dist/actions/get-role.cjs.map +1 -1
- package/dist/actions/get-role.d.cts +2 -2
- package/dist/actions/get-role.d.mts +2 -2
- package/dist/actions/get-role.mjs +2 -2
- 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 +3 -3
- package/dist/actions/get-users.d.mts +3 -3
- package/dist/actions/get-users.mjs +3 -3
- package/dist/actions/get-users.mjs.map +1 -1
- package/dist/actions/list-org-roles.cjs +3 -3
- package/dist/actions/list-org-roles.cjs.map +1 -1
- package/dist/actions/list-org-roles.d.cts +3 -3
- package/dist/actions/list-org-roles.d.mts +3 -3
- package/dist/actions/list-org-roles.mjs +3 -3
- package/dist/actions/list-org-roles.mjs.map +1 -1
- package/dist/actions/list-user-attributes.cjs +2 -2
- package/dist/actions/list-user-attributes.cjs.map +1 -1
- package/dist/actions/list-user-attributes.d.cts +2 -2
- package/dist/actions/list-user-attributes.d.mts +2 -2
- package/dist/actions/list-user-attributes.mjs +2 -2
- 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 +1 -1
- package/dist/actions/query-all-screening.d.mts +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 +3 -3
- package/dist/actions/query-documents.d.mts +3 -3
- 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 +1 -1
- package/dist/actions/update-org-acl.d.mts +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 +4 -4
- package/dist/actions/update-user-attributes-values.cjs.map +1 -1
- package/dist/actions/update-user-attributes-values.d.cts +5 -5
- package/dist/actions/update-user-attributes-values.d.mts +5 -5
- package/dist/actions/update-user-attributes-values.mjs +4 -4
- package/dist/actions/update-user-attributes-values.mjs.map +1 -1
- package/dist/actions/validate-credential.cjs +3 -3
- package/dist/actions/validate-credential.cjs.map +1 -1
- package/dist/actions/validate-credential.d.cts +3 -3
- package/dist/actions/validate-credential.d.mts +3 -3
- package/dist/actions/validate-credential.mjs +3 -3
- package/dist/actions/validate-credential.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -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}).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}).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,SAAS,0DAA0D;
|
|
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,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a;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -11,7 +11,7 @@ declare const SanityGetDocumentOutput: z.ZodObject<{
|
|
|
11
11
|
omitted: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
12
12
|
id: z.ZodNullable<z.ZodString>;
|
|
13
13
|
reason: z.ZodNullable<z.ZodString>;
|
|
14
|
-
}, z.core.$
|
|
14
|
+
}, z.core.$loose>>>>;
|
|
15
15
|
documents: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
16
16
|
_id: z.ZodNullable<z.ZodString>;
|
|
17
17
|
_rev: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -19,7 +19,7 @@ declare const SanityGetDocumentOutput: z.ZodObject<{
|
|
|
19
19
|
_createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
20
|
_updatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
21
|
}, z.core.$loose>>>>;
|
|
22
|
-
}, z.core.$
|
|
22
|
+
}, z.core.$loose>;
|
|
23
23
|
declare const sanityGetDocument: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
24
24
|
dataset: string;
|
|
25
25
|
project_id: string;
|
|
@@ -11,7 +11,7 @@ declare const SanityGetDocumentOutput: z.ZodObject<{
|
|
|
11
11
|
omitted: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
12
12
|
id: z.ZodNullable<z.ZodString>;
|
|
13
13
|
reason: z.ZodNullable<z.ZodString>;
|
|
14
|
-
}, z.core.$
|
|
14
|
+
}, z.core.$loose>>>>;
|
|
15
15
|
documents: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
16
16
|
_id: z.ZodNullable<z.ZodString>;
|
|
17
17
|
_rev: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -19,7 +19,7 @@ declare const SanityGetDocumentOutput: z.ZodObject<{
|
|
|
19
19
|
_createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
20
|
_updatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
21
|
}, z.core.$loose>>>>;
|
|
22
|
-
}, z.core.$
|
|
22
|
+
}, z.core.$loose>;
|
|
23
23
|
declare const sanityGetDocument: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
24
24
|
dataset: string;
|
|
25
25
|
project_id: string;
|
|
@@ -9,7 +9,7 @@ const SanityGetDocumentInput = z.object({
|
|
|
9
9
|
const SanityGetDocument_OmittedDocumentSchema = z.object({
|
|
10
10
|
id: z.string().describe("ID of the omitted document").nullable(),
|
|
11
11
|
reason: z.string().describe("Reason for omission (e.g., 'existence')").nullable()
|
|
12
|
-
}).describe("Model for documents that were omitted from the response.");
|
|
12
|
+
}).passthrough().describe("Model for documents that were omitted from the response.");
|
|
13
13
|
const SanityGetDocument_SanityDocumentSchema = z.object({
|
|
14
14
|
_id: z.string().describe("Unique identifier of the document").nullable(),
|
|
15
15
|
_rev: z.string().describe("Revision identifier").nullable().optional(),
|
|
@@ -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 = 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}).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}).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,SAAS,0DAA0D;
|
|
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"}
|
|
@@ -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 = 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}).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,SAAS,uDAAuD;
|
|
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"}
|
|
@@ -41,7 +41,7 @@ declare const SanityGetInviteByTokenOutput: z.ZodObject<{
|
|
|
41
41
|
dashboard: "dashboard";
|
|
42
42
|
view: "view";
|
|
43
43
|
}>>>;
|
|
44
|
-
}, z.core.$
|
|
44
|
+
}, z.core.$loose>;
|
|
45
45
|
declare const sanityGetInviteByToken: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
46
46
|
resourceId: string;
|
|
47
47
|
inviteToken: string;
|
|
@@ -41,7 +41,7 @@ declare const SanityGetInviteByTokenOutput: z.ZodObject<{
|
|
|
41
41
|
dashboard: "dashboard";
|
|
42
42
|
view: "view";
|
|
43
43
|
}>>>;
|
|
44
|
-
}, z.core.$
|
|
44
|
+
}, z.core.$loose>;
|
|
45
45
|
declare const sanityGetInviteByToken: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
46
46
|
resourceId: string;
|
|
47
47
|
inviteToken: string;
|
|
@@ -46,7 +46,7 @@ const sanityGetInviteByToken = action("SANITY_GET_INVITE_BY_TOKEN", {
|
|
|
46
46
|
resourceId: z.string().describe("The ID of the resource this invite applies to. Only present if found=True.").nullable().optional(),
|
|
47
47
|
inviterType: SanityGetInviteByToken_InviterTypeSchema.nullable().optional(),
|
|
48
48
|
resourceType: SanityGetInviteByToken_ResourceTypeSchema.nullable().optional()
|
|
49
|
-
}).describe("Response model for the get invite by token operation.")
|
|
49
|
+
}).passthrough().describe("Response model for the get invite by token operation.")
|
|
50
50
|
});
|
|
51
51
|
//#endregion
|
|
52
52
|
export { sanityGetInviteByToken };
|
|
@@ -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}).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,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,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AE,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,SAAS,
|
|
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":";;;AAIA,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,M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: zod.z.string().describe("Type of the permission").nullable().optional(),
|
|
11
11
|
action: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Action details for the permission").nullable().optional(),
|
|
12
12
|
params: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Parameters for the permission").nullable().optional()
|
|
13
|
-
}).describe("Represents a single permission within a role.");
|
|
13
|
+
}).passthrough().describe("Represents a single permission within a role.");
|
|
14
14
|
const SanityGetOrgRole_OrgRoleSchema = zod.z.object({
|
|
15
15
|
id: zod.z.string().describe("The unique identifier of the role").nullable().optional(),
|
|
16
16
|
name: zod.z.string().describe("The unique name identifier of the role").nullable(),
|
|
@@ -22,8 +22,8 @@ const SanityGetOrgRole_OrgRoleSchema = zod.z.object({
|
|
|
22
22
|
resourceType: zod.z.string().describe("The type of resource this role applies to").nullable(),
|
|
23
23
|
appliesToUsers: zod.z.boolean().describe("Whether this role can be assigned to users").nullable(),
|
|
24
24
|
appliesToRobots: zod.z.boolean().describe("Whether this role can be assigned to robots/service accounts").nullable()
|
|
25
|
-
}).describe("Represents an organization role with its permissions and settings.");
|
|
26
|
-
const SanityGetOrgRoleOutput = zod.z.object({ data: SanityGetOrgRole_OrgRoleSchema.nullable() }).describe("Response model for the get organization role operation.");
|
|
25
|
+
}).passthrough().describe("Represents an organization role with its permissions and settings.");
|
|
26
|
+
const SanityGetOrgRoleOutput = zod.z.object({ data: SanityGetOrgRole_OrgRoleSchema.nullable() }).passthrough().describe("Response model for the get organization role operation.");
|
|
27
27
|
const sanityGetOrgRole = require_action.action("SANITY_GET_ORG_ROLE", {
|
|
28
28
|
slug: "sanity-get-org-role",
|
|
29
29
|
name: "Get Organization Role",
|
|
@@ -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}).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}).describe(\"Represents an organization role with its permissions and settings.\");\nexport const SanityGetOrgRoleOutput = z.object({\n data: SanityGetOrgRole_OrgRoleSchema.nullable(),\n}).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":";;;AAIA,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,SAAS,+CAA+C;
|
|
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":";;;AAIA,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,QAAQ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,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,mBAAmBC,eAAAA,OAAO,uBAAuB;CAC5D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -18,12 +18,12 @@ declare const SanityGetOrgRoleOutput: z.ZodObject<{
|
|
|
18
18
|
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
19
|
action: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
20
20
|
params: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
21
|
-
}, z.core.$
|
|
21
|
+
}, z.core.$loose>>;
|
|
22
22
|
resourceType: z.ZodNullable<z.ZodString>;
|
|
23
23
|
appliesToUsers: z.ZodNullable<z.ZodBoolean>;
|
|
24
24
|
appliesToRobots: z.ZodNullable<z.ZodBoolean>;
|
|
25
|
-
}, z.core.$
|
|
26
|
-
}, z.core.$
|
|
25
|
+
}, z.core.$loose>>;
|
|
26
|
+
}, z.core.$loose>;
|
|
27
27
|
declare const sanityGetOrgRole: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
28
28
|
roleId: string;
|
|
29
29
|
organizationId: string;
|
|
@@ -18,12 +18,12 @@ declare const SanityGetOrgRoleOutput: z.ZodObject<{
|
|
|
18
18
|
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
19
|
action: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
20
20
|
params: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
21
|
-
}, z.core.$
|
|
21
|
+
}, z.core.$loose>>;
|
|
22
22
|
resourceType: z.ZodNullable<z.ZodString>;
|
|
23
23
|
appliesToUsers: z.ZodNullable<z.ZodBoolean>;
|
|
24
24
|
appliesToRobots: z.ZodNullable<z.ZodBoolean>;
|
|
25
|
-
}, z.core.$
|
|
26
|
-
}, z.core.$
|
|
25
|
+
}, z.core.$loose>>;
|
|
26
|
+
}, z.core.$loose>;
|
|
27
27
|
declare const sanityGetOrgRole: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
28
28
|
roleId: string;
|
|
29
29
|
organizationId: string;
|
|
@@ -10,7 +10,7 @@ const SanityGetOrgRole_PermissionSchema = z.object({
|
|
|
10
10
|
type: z.string().describe("Type of the permission").nullable().optional(),
|
|
11
11
|
action: z.record(z.string(), z.unknown()).describe("Action details for the permission").nullable().optional(),
|
|
12
12
|
params: z.record(z.string(), z.unknown()).describe("Parameters for the permission").nullable().optional()
|
|
13
|
-
}).describe("Represents a single permission within a role.");
|
|
13
|
+
}).passthrough().describe("Represents a single permission within a role.");
|
|
14
14
|
const SanityGetOrgRole_OrgRoleSchema = z.object({
|
|
15
15
|
id: z.string().describe("The unique identifier of the role").nullable().optional(),
|
|
16
16
|
name: z.string().describe("The unique name identifier of the role").nullable(),
|
|
@@ -22,13 +22,13 @@ const SanityGetOrgRole_OrgRoleSchema = z.object({
|
|
|
22
22
|
resourceType: z.string().describe("The type of resource this role applies to").nullable(),
|
|
23
23
|
appliesToUsers: z.boolean().describe("Whether this role can be assigned to users").nullable(),
|
|
24
24
|
appliesToRobots: z.boolean().describe("Whether this role can be assigned to robots/service accounts").nullable()
|
|
25
|
-
}).describe("Represents an organization role with its permissions and settings.");
|
|
25
|
+
}).passthrough().describe("Represents an organization role with its permissions and settings.");
|
|
26
26
|
const sanityGetOrgRole = action("SANITY_GET_ORG_ROLE", {
|
|
27
27
|
slug: "sanity-get-org-role",
|
|
28
28
|
name: "Get Organization Role",
|
|
29
29
|
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.",
|
|
30
30
|
input: SanityGetOrgRoleInput,
|
|
31
|
-
output: z.object({ data: SanityGetOrgRole_OrgRoleSchema.nullable() }).describe("Response model for the get organization role operation.")
|
|
31
|
+
output: z.object({ data: SanityGetOrgRole_OrgRoleSchema.nullable() }).passthrough().describe("Response model for the get organization role operation.")
|
|
32
32
|
});
|
|
33
33
|
//#endregion
|
|
34
34
|
export { sanityGetOrgRole };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-org-role.mjs","names":[],"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}).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}).describe(\"Represents an organization role with its permissions and settings.\");\nexport const SanityGetOrgRoleOutput = z.object({\n data: SanityGetOrgRole_OrgRoleSchema.nullable(),\n}).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":";;;AAIA,MAAa,wBAAwB,EAAE,OAAO;CAC5C,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CAC3E,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;AACjF,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAM,oCAAoC,EAAE,OAAO;CACjD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxE,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,SAAS,+CAA+C;
|
|
1
|
+
{"version":3,"file":"get-org-role.mjs","names":[],"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":";;;AAIA,MAAa,wBAAwB,EAAE,OAAO;CAC5C,QAAQ,EAAE,OAAO,CAAC,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,2CAA2C,CAAC,CAAC,SAAS;CACxF,gBAAgB,EAAE,QAAQ,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CAC5F,iBAAiB,EAAE,QAAQ,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;AACjH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oEAAoE;AAK9F,MAAa,mBAAmB,OAAO,uBAAuB;CAC5D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAToC,EAAE,OAAO,EAC7C,MAAM,+BAA+B,SAAS,EAChD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yDAOhB;AACV,CAAC"}
|
|
@@ -10,7 +10,7 @@ const SanityGetPermission_PermissionActionSchema = zod.z.object({
|
|
|
10
10
|
name: zod.z.string().describe("The name of the action.").nullable(),
|
|
11
11
|
title: zod.z.string().describe("The title of the action.").nullable(),
|
|
12
12
|
description: zod.z.string().describe("The description of the action.").nullable().optional()
|
|
13
|
-
}).describe("A permission action.");
|
|
13
|
+
}).passthrough().describe("A permission action.");
|
|
14
14
|
const SanityGetPermissionOutput = zod.z.object({
|
|
15
15
|
name: zod.z.string().describe("The name of the permission. This is the unique identifier for the resource.").nullable(),
|
|
16
16
|
type: zod.z.string().describe("The resource type for the permission.").nullable(),
|
|
@@ -21,7 +21,7 @@ const SanityGetPermissionOutput = zod.z.object({
|
|
|
21
21
|
description: zod.z.string().describe("The description of the permission.").nullable().optional(),
|
|
22
22
|
resourceType: zod.z.string().describe("The resource that the permission applies to.").nullable(),
|
|
23
23
|
ownerOrganizationId: zod.z.string().describe("The organization ID that the permission applies to. Used for wildcard permissions where the resourceId is `*`.").nullable().optional()
|
|
24
|
-
}).describe("Response model for SanityGetPermission action.");
|
|
24
|
+
}).passthrough().describe("Response model for SanityGetPermission action.");
|
|
25
25
|
const sanityGetPermission = require_action.action("SANITY_GET_PERMISSION", {
|
|
26
26
|
slug: "sanity-get-permission",
|
|
27
27
|
name: "Get Permission",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-permission.cjs","names":["z","action"],"sources":["../../src/actions/get-permission.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityGetPermissionInput = z.object({\n resource_id: z.string().describe(\"The resource ID to scope the access request to. Must be a valid ID for the resource type.\"),\n resource_type: z.string().describe(\"The resource to scope access requests to. Must be one of: 'organization' or 'project'.\"),\n permission_name: z.string().describe(\"The name of the permission. This is a unique identifier for the permission.\"),\n}).describe(\"Request model for SanityGetPermission action.\");\nconst SanityGetPermission_PermissionActionSchema = z.object({\n name: z.string().describe(\"The name of the action.\").nullable(),\n title: z.string().describe(\"The title of the action.\").nullable(),\n description: z.string().describe(\"The description of the action.\").nullable().optional(),\n}).describe(\"A permission action.\");\nexport const SanityGetPermissionOutput = z.object({\n name: z.string().describe(\"The name of the permission. This is the unique identifier for the resource.\").nullable(),\n type: z.string().describe(\"The resource type for the permission.\").nullable(),\n title: z.string().describe(\"The human-readable title of the permission.\").nullable(),\n params: z.record(z.string(), z.unknown()).describe(\"The parameters for the permission. This is a key-value map of the permission's configuration.\").nullable().optional(),\n actions: z.array(SanityGetPermission_PermissionActionSchema).describe(\"The actions allowed by the permission for this role.\").nullable().optional(),\n resourceId: z.string().describe(\"The resource ID that the permission applies to.\").nullable(),\n description: z.string().describe(\"The description of the permission.\").nullable().optional(),\n resourceType: z.string().describe(\"The resource that the permission applies to.\").nullable(),\n ownerOrganizationId: z.string().describe(\"The organization ID that the permission applies to. Used for wildcard permissions where the resourceId is `*`.\").nullable().optional(),\n}).describe(\"Response model for SanityGetPermission action.\");\n\nexport const sanityGetPermission = action(\"SANITY_GET_PERMISSION\", {\n slug: \"sanity-get-permission\",\n name: \"Get Permission\",\n description: \"Get a permission for a specific resource. Use when you need to retrieve details about a particular permission including its actions, parameters, and scope. The action retrieves permission information based on the resource type, resource ID, and permission name provided in the path parameters.\",\n input: SanityGetPermissionInput,\n output: SanityGetPermissionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2FAA2F;CAC5H,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF;CAC3H,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E;AACpH,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAC3D,MAAM,6CAA6CA,IAAAA,EAAE,OAAO;CAC1D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAC9D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAChE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzF,CAAC,CAAC,CAAC,SAAS,sBAAsB;
|
|
1
|
+
{"version":3,"file":"get-permission.cjs","names":["z","action"],"sources":["../../src/actions/get-permission.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityGetPermissionInput = z.object({\n resource_id: z.string().describe(\"The resource ID to scope the access request to. Must be a valid ID for the resource type.\"),\n resource_type: z.string().describe(\"The resource to scope access requests to. Must be one of: 'organization' or 'project'.\"),\n permission_name: z.string().describe(\"The name of the permission. This is a unique identifier for the permission.\"),\n}).describe(\"Request model for SanityGetPermission action.\");\nconst SanityGetPermission_PermissionActionSchema = z.object({\n name: z.string().describe(\"The name of the action.\").nullable(),\n title: z.string().describe(\"The title of the action.\").nullable(),\n description: z.string().describe(\"The description of the action.\").nullable().optional(),\n}).passthrough().describe(\"A permission action.\");\nexport const SanityGetPermissionOutput = z.object({\n name: z.string().describe(\"The name of the permission. This is the unique identifier for the resource.\").nullable(),\n type: z.string().describe(\"The resource type for the permission.\").nullable(),\n title: z.string().describe(\"The human-readable title of the permission.\").nullable(),\n params: z.record(z.string(), z.unknown()).describe(\"The parameters for the permission. This is a key-value map of the permission's configuration.\").nullable().optional(),\n actions: z.array(SanityGetPermission_PermissionActionSchema).describe(\"The actions allowed by the permission for this role.\").nullable().optional(),\n resourceId: z.string().describe(\"The resource ID that the permission applies to.\").nullable(),\n description: z.string().describe(\"The description of the permission.\").nullable().optional(),\n resourceType: z.string().describe(\"The resource that the permission applies to.\").nullable(),\n ownerOrganizationId: z.string().describe(\"The organization ID that the permission applies to. Used for wildcard permissions where the resourceId is `*`.\").nullable().optional(),\n}).passthrough().describe(\"Response model for SanityGetPermission action.\");\n\nexport const sanityGetPermission = action(\"SANITY_GET_PERMISSION\", {\n slug: \"sanity-get-permission\",\n name: \"Get Permission\",\n description: \"Get a permission for a specific resource. Use when you need to retrieve details about a particular permission including its actions, parameters, and scope. The action retrieves permission information based on the resource type, resource ID, and permission name provided in the path parameters.\",\n input: SanityGetPermissionInput,\n output: SanityGetPermissionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2FAA2F;CAC5H,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF;CAC3H,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E;AACpH,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAC3D,MAAM,6CAA6CA,IAAAA,EAAE,OAAO;CAC1D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAC9D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAChE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzF,CAAC,CAAC,CAAC,YA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z.ZodNullable<z.ZodString>>;
|
|
18
|
-
}, z.core.$
|
|
18
|
+
}, z.core.$loose>>>>;
|
|
19
19
|
resourceId: z.ZodNullable<z.ZodString>;
|
|
20
20
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
21
|
resourceType: z.ZodNullable<z.ZodString>;
|
|
22
22
|
ownerOrganizationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
|
-
}, z.core.$
|
|
23
|
+
}, z.core.$loose>;
|
|
24
24
|
declare const sanityGetPermission: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
25
25
|
resource_id: string;
|
|
26
26
|
resource_type: string;
|
|
@@ -15,12 +15,12 @@ declare const SanityGetPermissionOutput: z.ZodObject<{
|
|
|
15
15
|
name: z.ZodNullable<z.ZodString>;
|
|
16
16
|
title: z.ZodNullable<z.ZodString>;
|
|
17
17
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
-
}, z.core.$
|
|
18
|
+
}, z.core.$loose>>>>;
|
|
19
19
|
resourceId: z.ZodNullable<z.ZodString>;
|
|
20
20
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
21
|
resourceType: z.ZodNullable<z.ZodString>;
|
|
22
22
|
ownerOrganizationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
|
-
}, z.core.$
|
|
23
|
+
}, z.core.$loose>;
|
|
24
24
|
declare const sanityGetPermission: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
25
25
|
resource_id: string;
|
|
26
26
|
resource_type: string;
|
|
@@ -10,7 +10,7 @@ const SanityGetPermission_PermissionActionSchema = z.object({
|
|
|
10
10
|
name: z.string().describe("The name of the action.").nullable(),
|
|
11
11
|
title: z.string().describe("The title of the action.").nullable(),
|
|
12
12
|
description: z.string().describe("The description of the action.").nullable().optional()
|
|
13
|
-
}).describe("A permission action.");
|
|
13
|
+
}).passthrough().describe("A permission action.");
|
|
14
14
|
const sanityGetPermission = action("SANITY_GET_PERMISSION", {
|
|
15
15
|
slug: "sanity-get-permission",
|
|
16
16
|
name: "Get Permission",
|
|
@@ -26,7 +26,7 @@ const sanityGetPermission = action("SANITY_GET_PERMISSION", {
|
|
|
26
26
|
description: z.string().describe("The description of the permission.").nullable().optional(),
|
|
27
27
|
resourceType: z.string().describe("The resource that the permission applies to.").nullable(),
|
|
28
28
|
ownerOrganizationId: z.string().describe("The organization ID that the permission applies to. Used for wildcard permissions where the resourceId is `*`.").nullable().optional()
|
|
29
|
-
}).describe("Response model for SanityGetPermission action.")
|
|
29
|
+
}).passthrough().describe("Response model for SanityGetPermission action.")
|
|
30
30
|
});
|
|
31
31
|
//#endregion
|
|
32
32
|
export { sanityGetPermission };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-permission.mjs","names":[],"sources":["../../src/actions/get-permission.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityGetPermissionInput = z.object({\n resource_id: z.string().describe(\"The resource ID to scope the access request to. Must be a valid ID for the resource type.\"),\n resource_type: z.string().describe(\"The resource to scope access requests to. Must be one of: 'organization' or 'project'.\"),\n permission_name: z.string().describe(\"The name of the permission. This is a unique identifier for the permission.\"),\n}).describe(\"Request model for SanityGetPermission action.\");\nconst SanityGetPermission_PermissionActionSchema = z.object({\n name: z.string().describe(\"The name of the action.\").nullable(),\n title: z.string().describe(\"The title of the action.\").nullable(),\n description: z.string().describe(\"The description of the action.\").nullable().optional(),\n}).describe(\"A permission action.\");\nexport const SanityGetPermissionOutput = z.object({\n name: z.string().describe(\"The name of the permission. This is the unique identifier for the resource.\").nullable(),\n type: z.string().describe(\"The resource type for the permission.\").nullable(),\n title: z.string().describe(\"The human-readable title of the permission.\").nullable(),\n params: z.record(z.string(), z.unknown()).describe(\"The parameters for the permission. This is a key-value map of the permission's configuration.\").nullable().optional(),\n actions: z.array(SanityGetPermission_PermissionActionSchema).describe(\"The actions allowed by the permission for this role.\").nullable().optional(),\n resourceId: z.string().describe(\"The resource ID that the permission applies to.\").nullable(),\n description: z.string().describe(\"The description of the permission.\").nullable().optional(),\n resourceType: z.string().describe(\"The resource that the permission applies to.\").nullable(),\n ownerOrganizationId: z.string().describe(\"The organization ID that the permission applies to. Used for wildcard permissions where the resourceId is `*`.\").nullable().optional(),\n}).describe(\"Response model for SanityGetPermission action.\");\n\nexport const sanityGetPermission = action(\"SANITY_GET_PERMISSION\", {\n slug: \"sanity-get-permission\",\n name: \"Get Permission\",\n description: \"Get a permission for a specific resource. Use when you need to retrieve details about a particular permission including its actions, parameters, and scope. The action retrieves permission information based on the resource type, resource ID, and permission name provided in the path parameters.\",\n input: SanityGetPermissionInput,\n output: SanityGetPermissionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2B,EAAE,OAAO;CAC/C,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,2FAA2F;CAC5H,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF;CAC3H,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E;AACpH,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAC3D,MAAM,6CAA6C,EAAE,OAAO;CAC1D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAC9D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAChE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzF,CAAC,CAAC,CAAC,SAAS,sBAAsB;
|
|
1
|
+
{"version":3,"file":"get-permission.mjs","names":[],"sources":["../../src/actions/get-permission.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityGetPermissionInput = z.object({\n resource_id: z.string().describe(\"The resource ID to scope the access request to. Must be a valid ID for the resource type.\"),\n resource_type: z.string().describe(\"The resource to scope access requests to. Must be one of: 'organization' or 'project'.\"),\n permission_name: z.string().describe(\"The name of the permission. This is a unique identifier for the permission.\"),\n}).describe(\"Request model for SanityGetPermission action.\");\nconst SanityGetPermission_PermissionActionSchema = z.object({\n name: z.string().describe(\"The name of the action.\").nullable(),\n title: z.string().describe(\"The title of the action.\").nullable(),\n description: z.string().describe(\"The description of the action.\").nullable().optional(),\n}).passthrough().describe(\"A permission action.\");\nexport const SanityGetPermissionOutput = z.object({\n name: z.string().describe(\"The name of the permission. This is the unique identifier for the resource.\").nullable(),\n type: z.string().describe(\"The resource type for the permission.\").nullable(),\n title: z.string().describe(\"The human-readable title of the permission.\").nullable(),\n params: z.record(z.string(), z.unknown()).describe(\"The parameters for the permission. This is a key-value map of the permission's configuration.\").nullable().optional(),\n actions: z.array(SanityGetPermission_PermissionActionSchema).describe(\"The actions allowed by the permission for this role.\").nullable().optional(),\n resourceId: z.string().describe(\"The resource ID that the permission applies to.\").nullable(),\n description: z.string().describe(\"The description of the permission.\").nullable().optional(),\n resourceType: z.string().describe(\"The resource that the permission applies to.\").nullable(),\n ownerOrganizationId: z.string().describe(\"The organization ID that the permission applies to. Used for wildcard permissions where the resourceId is `*`.\").nullable().optional(),\n}).passthrough().describe(\"Response model for SanityGetPermission action.\");\n\nexport const sanityGetPermission = action(\"SANITY_GET_PERMISSION\", {\n slug: \"sanity-get-permission\",\n name: \"Get Permission\",\n description: \"Get a permission for a specific resource. Use when you need to retrieve details about a particular permission including its actions, parameters, and scope. The action retrieves permission information based on the resource type, resource ID, and permission name provided in the path parameters.\",\n input: SanityGetPermissionInput,\n output: SanityGetPermissionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2B,EAAE,OAAO;CAC/C,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,2FAA2F;CAC5H,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF;CAC3H,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E;AACpH,CAAC,CAAC,CAAC,SAAS,+C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,CAAC"}
|
|
@@ -5,19 +5,19 @@ const SanityGetProjectInput = zod.z.object({ project_id: zod.z.string().describe
|
|
|
5
5
|
const SanityGetProject_ProjectPlanSchema = zod.z.object({
|
|
6
6
|
name: zod.z.string().describe("The name of the plan.").nullable().optional(),
|
|
7
7
|
tier: zod.z.string().describe("The tier level of the plan.").nullable().optional()
|
|
8
|
-
}).describe("Plan information for the project.");
|
|
8
|
+
}).passthrough().describe("Plan information for the project.");
|
|
9
9
|
const SanityGetProject_ProjectMemberRoleSchema = zod.z.object({
|
|
10
10
|
name: zod.z.string().describe("The name of the role.").nullable().optional(),
|
|
11
11
|
title: zod.z.string().describe("The display title of the role.").nullable().optional()
|
|
12
|
-
}).describe("Role information for a project member.");
|
|
12
|
+
}).passthrough().describe("Role information for a project member.");
|
|
13
13
|
const SanityGetProject_ProjectMemberSchema = zod.z.object({
|
|
14
14
|
id: zod.z.string().describe("The unique identifier of the member.").nullable().optional(),
|
|
15
15
|
role: zod.z.string().describe("The primary role name of the member (deprecated, use roles array).").nullable().optional(),
|
|
16
16
|
roles: zod.z.array(SanityGetProject_ProjectMemberRoleSchema).describe("List of roles assigned to this member.").nullable().optional(),
|
|
17
17
|
isRobot: zod.z.boolean().describe("Whether this member is a robot/service account.").nullable().optional(),
|
|
18
18
|
createdAt: zod.z.string().describe("ISO 8601 timestamp when the member was added to the project.").nullable().optional()
|
|
19
|
-
}).describe("A member of the project with their role information.");
|
|
20
|
-
const SanityGetProject_ProjectMetadataSchema = zod.z.object({ color: zod.z.string().describe("Color code associated with the project.").nullable().optional() }).describe("Metadata associated with the project.");
|
|
19
|
+
}).passthrough().describe("A member of the project with their role information.");
|
|
20
|
+
const SanityGetProject_ProjectMetadataSchema = zod.z.object({ color: zod.z.string().describe("Color code associated with the project.").nullable().optional() }).passthrough().describe("Metadata associated with the project.");
|
|
21
21
|
const SanityGetProjectOutput = zod.z.object({
|
|
22
22
|
id: zod.z.string().describe("The unique identifier of the project.").nullable(),
|
|
23
23
|
plan: SanityGetProject_ProjectPlanSchema.nullable().optional(),
|
|
@@ -31,7 +31,7 @@ const SanityGetProjectOutput = zod.z.object({
|
|
|
31
31
|
displayName: zod.z.string().describe("The display name of the project.").nullable(),
|
|
32
32
|
organizationId: zod.z.string().describe("The ID of the organization this project belongs to.").nullable().optional(),
|
|
33
33
|
activityFeedEnabled: zod.z.boolean().describe("Whether activity feed is enabled for the project.").nullable().optional()
|
|
34
|
-
}).describe("Response model for the get project operation.");
|
|
34
|
+
}).passthrough().describe("Response model for the get project operation.");
|
|
35
35
|
const sanityGetProject = require_action.action("SANITY_GET_PROJECT", {
|
|
36
36
|
slug: "sanity-get-project",
|
|
37
37
|
name: "Get Project",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-project.cjs","names":["z","action"],"sources":["../../src/actions/get-project.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityGetProjectInput = z.object({\n project_id: z.string().describe(\"The unique ID of the project to retrieve.\"),\n}).describe(\"Request parameters for retrieving a project.\");\nconst SanityGetProject_ProjectPlanSchema = z.object({\n name: z.string().describe(\"The name of the plan.\").nullable().optional(),\n tier: z.string().describe(\"The tier level of the plan.\").nullable().optional(),\n}).describe(\"Plan information for the project.\");\nconst SanityGetProject_ProjectMemberRoleSchema = z.object({\n name: z.string().describe(\"The name of the role.\").nullable().optional(),\n title: z.string().describe(\"The display title of the role.\").nullable().optional(),\n}).describe(\"Role information for a project member.\");\nconst SanityGetProject_ProjectMemberSchema = z.object({\n id: z.string().describe(\"The unique identifier of the member.\").nullable().optional(),\n role: z.string().describe(\"The primary role name of the member (deprecated, use roles array).\").nullable().optional(),\n roles: z.array(SanityGetProject_ProjectMemberRoleSchema).describe(\"List of roles assigned to this member.\").nullable().optional(),\n isRobot: z.boolean().describe(\"Whether this member is a robot/service account.\").nullable().optional(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the member was added to the project.\").nullable().optional(),\n}).describe(\"A member of the project with their role information.\");\nconst SanityGetProject_ProjectMetadataSchema = z.object({\n color: z.string().describe(\"Color code associated with the project.\").nullable().optional(),\n}).describe(\"Metadata associated with the project.\");\nexport const SanityGetProjectOutput = z.object({\n id: z.string().describe(\"The unique identifier of the project.\").nullable(),\n plan: SanityGetProject_ProjectPlanSchema.nullable().optional(),\n members: z.array(SanityGetProject_ProjectMemberSchema).describe(\"List of project members with their roles (included when includeMembers is true).\").nullable().optional(),\n features: z.array(z.string()).describe(\"List of feature names enabled for the project (included when includeFeatures is true).\").nullable().optional(),\n metadata: SanityGetProject_ProjectMetadataSchema.nullable().optional(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the project was created.\").nullable().optional(),\n isBlocked: z.boolean().describe(\"Whether the project is blocked.\").nullable().optional(),\n isDisabled: z.boolean().describe(\"Whether the project is disabled.\").nullable().optional(),\n studioHost: z.string().describe(\"The custom studio host URL for the project.\").nullable().optional(),\n displayName: z.string().describe(\"The display name of the project.\").nullable(),\n organizationId: z.string().describe(\"The ID of the organization this project belongs to.\").nullable().optional(),\n activityFeedEnabled: z.boolean().describe(\"Whether activity feed is enabled for the project.\").nullable().optional(),\n}).describe(\"Response model for the get project operation.\");\n\nexport const sanityGetProject = action(\"SANITY_GET_PROJECT\", {\n slug: \"sanity-get-project\",\n name: \"Get Project\",\n description: \"Retrieve full details for a specific Sanity project by its ID. Returns comprehensive project information including display name, organization, studio host, and timestamps. Use this action when you need to fetch complete project details or verify project configuration. Optional parameters allow including member lists and feature flags in the response.\",\n input: SanityGetProjectInput,\n output: SanityGetProjectOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAwBA,IAAAA,EAAE,OAAO,EAC5C,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,EAC7E,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAM,qCAAqCA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/E,CAAC,CAAC,CAAC,SAAS,mCAAmC;
|
|
1
|
+
{"version":3,"file":"get-project.cjs","names":["z","action"],"sources":["../../src/actions/get-project.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityGetProjectInput = z.object({\n project_id: z.string().describe(\"The unique ID of the project to retrieve.\"),\n}).describe(\"Request parameters for retrieving a project.\");\nconst SanityGetProject_ProjectPlanSchema = z.object({\n name: z.string().describe(\"The name of the plan.\").nullable().optional(),\n tier: z.string().describe(\"The tier level of the plan.\").nullable().optional(),\n}).passthrough().describe(\"Plan information for the project.\");\nconst SanityGetProject_ProjectMemberRoleSchema = z.object({\n name: z.string().describe(\"The name of the role.\").nullable().optional(),\n title: z.string().describe(\"The display title of the role.\").nullable().optional(),\n}).passthrough().describe(\"Role information for a project member.\");\nconst SanityGetProject_ProjectMemberSchema = z.object({\n id: z.string().describe(\"The unique identifier of the member.\").nullable().optional(),\n role: z.string().describe(\"The primary role name of the member (deprecated, use roles array).\").nullable().optional(),\n roles: z.array(SanityGetProject_ProjectMemberRoleSchema).describe(\"List of roles assigned to this member.\").nullable().optional(),\n isRobot: z.boolean().describe(\"Whether this member is a robot/service account.\").nullable().optional(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the member was added to the project.\").nullable().optional(),\n}).passthrough().describe(\"A member of the project with their role information.\");\nconst SanityGetProject_ProjectMetadataSchema = z.object({\n color: z.string().describe(\"Color code associated with the project.\").nullable().optional(),\n}).passthrough().describe(\"Metadata associated with the project.\");\nexport const SanityGetProjectOutput = z.object({\n id: z.string().describe(\"The unique identifier of the project.\").nullable(),\n plan: SanityGetProject_ProjectPlanSchema.nullable().optional(),\n members: z.array(SanityGetProject_ProjectMemberSchema).describe(\"List of project members with their roles (included when includeMembers is true).\").nullable().optional(),\n features: z.array(z.string()).describe(\"List of feature names enabled for the project (included when includeFeatures is true).\").nullable().optional(),\n metadata: SanityGetProject_ProjectMetadataSchema.nullable().optional(),\n createdAt: z.string().describe(\"ISO 8601 timestamp when the project was created.\").nullable().optional(),\n isBlocked: z.boolean().describe(\"Whether the project is blocked.\").nullable().optional(),\n isDisabled: z.boolean().describe(\"Whether the project is disabled.\").nullable().optional(),\n studioHost: z.string().describe(\"The custom studio host URL for the project.\").nullable().optional(),\n displayName: z.string().describe(\"The display name of the project.\").nullable(),\n organizationId: z.string().describe(\"The ID of the organization this project belongs to.\").nullable().optional(),\n activityFeedEnabled: z.boolean().describe(\"Whether activity feed is enabled for the project.\").nullable().optional(),\n}).passthrough().describe(\"Response model for the get project operation.\");\n\nexport const sanityGetProject = action(\"SANITY_GET_PROJECT\", {\n slug: \"sanity-get-project\",\n name: \"Get Project\",\n description: \"Retrieve full details for a specific Sanity project by its ID. Returns comprehensive project information including display name, organization, studio host, and timestamps. Use this action when you need to fetch complete project details or verify project configuration. Optional parameters allow including member lists and feature flags in the response.\",\n input: SanityGetProjectInput,\n output: SanityGetProjectOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAwBA,IAAAA,EAAE,OAAO,EAC5C,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,EAC7E,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAM,qCAAqCA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mCAAmC;AAC7D,MAAM,2CAA2CA,IAAAA,EAAE,OAAO;CACxD,MAAMA,IAAAA,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String>>;
|
|
12
|
-
}, z.core.$
|
|
12
|
+
}, z.core.$loose>>>;
|
|
13
13
|
members: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
14
14
|
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
15
|
role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
16
|
roles: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
17
17
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
18
|
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
-
}, z.core.$
|
|
19
|
+
}, z.core.$loose>>>>;
|
|
20
20
|
isRobot: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
21
21
|
createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
-
}, z.core.$
|
|
22
|
+
}, z.core.$loose>>>>;
|
|
23
23
|
features: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
24
24
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
25
25
|
color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
-
}, z.core.$
|
|
26
|
+
}, z.core.$loose>>>;
|
|
27
27
|
createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
28
|
isBlocked: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
29
29
|
isDisabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
@@ -31,7 +31,7 @@ declare const SanityGetProjectOutput: z.ZodObject<{
|
|
|
31
31
|
displayName: z.ZodNullable<z.ZodString>;
|
|
32
32
|
organizationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
33
33
|
activityFeedEnabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
34
|
-
}, z.core.$
|
|
34
|
+
}, z.core.$loose>;
|
|
35
35
|
declare const sanityGetProject: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
36
36
|
project_id: string;
|
|
37
37
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -9,21 +9,21 @@ declare const SanityGetProjectOutput: z.ZodObject<{
|
|
|
9
9
|
plan: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
10
10
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
11
|
tier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
-
}, z.core.$
|
|
12
|
+
}, z.core.$loose>>>;
|
|
13
13
|
members: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
14
14
|
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
15
|
role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
16
|
roles: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
17
17
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
18
|
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
-
}, z.core.$
|
|
19
|
+
}, z.core.$loose>>>>;
|
|
20
20
|
isRobot: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
21
21
|
createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
-
}, z.core.$
|
|
22
|
+
}, z.core.$loose>>>>;
|
|
23
23
|
features: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
24
24
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
25
25
|
color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
-
}, z.core.$
|
|
26
|
+
}, z.core.$loose>>>;
|
|
27
27
|
createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
28
|
isBlocked: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
29
29
|
isDisabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
@@ -31,7 +31,7 @@ declare const SanityGetProjectOutput: z.ZodObject<{
|
|
|
31
31
|
displayName: z.ZodNullable<z.ZodString>;
|
|
32
32
|
organizationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
33
33
|
activityFeedEnabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
34
|
-
}, z.core.$
|
|
34
|
+
}, z.core.$loose>;
|
|
35
35
|
declare const sanityGetProject: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
36
36
|
project_id: string;
|
|
37
37
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|