@keystrokehq/sanity 0.1.5 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/add-default-role-to-users.cjs +1 -0
- package/dist/actions/add-default-role-to-users.cjs.map +1 -1
- package/dist/actions/add-default-role-to-users.d.cts +3 -19
- package/dist/actions/add-default-role-to-users.d.cts.map +1 -1
- package/dist/actions/add-default-role-to-users.d.mts +3 -19
- package/dist/actions/add-default-role-to-users.d.mts.map +1 -1
- package/dist/actions/add-default-role-to-users.mjs +1 -0
- package/dist/actions/add-default-role-to-users.mjs.map +1 -1
- package/dist/actions/create-attr-definition.cjs +1 -0
- package/dist/actions/create-attr-definition.cjs.map +1 -1
- package/dist/actions/create-attr-definition.d.cts +3 -25
- package/dist/actions/create-attr-definition.d.cts.map +1 -1
- package/dist/actions/create-attr-definition.d.mts +3 -25
- package/dist/actions/create-attr-definition.d.mts.map +1 -1
- package/dist/actions/create-attr-definition.mjs +1 -0
- package/dist/actions/create-attr-definition.mjs.map +1 -1
- package/dist/actions/create-prompt-post.cjs +1 -0
- package/dist/actions/create-prompt-post.cjs.map +1 -1
- package/dist/actions/create-prompt-post.d.cts +3 -23
- package/dist/actions/create-prompt-post.d.cts.map +1 -1
- package/dist/actions/create-prompt-post.d.mts +3 -23
- package/dist/actions/create-prompt-post.d.mts.map +1 -1
- package/dist/actions/create-prompt-post.mjs +1 -0
- package/dist/actions/create-prompt-post.mjs.map +1 -1
- package/dist/actions/delete-attr-definition.cjs +1 -0
- package/dist/actions/delete-attr-definition.cjs.map +1 -1
- package/dist/actions/delete-attr-definition.d.cts +3 -21
- package/dist/actions/delete-attr-definition.d.cts.map +1 -1
- package/dist/actions/delete-attr-definition.d.mts +3 -21
- package/dist/actions/delete-attr-definition.d.mts.map +1 -1
- package/dist/actions/delete-attr-definition.mjs +1 -0
- package/dist/actions/delete-attr-definition.mjs.map +1 -1
- package/dist/actions/delete-document.cjs +1 -0
- package/dist/actions/delete-document.cjs.map +1 -1
- package/dist/actions/delete-document.d.cts +3 -27
- package/dist/actions/delete-document.d.cts.map +1 -1
- package/dist/actions/delete-document.d.mts +3 -27
- package/dist/actions/delete-document.d.mts.map +1 -1
- package/dist/actions/delete-document.mjs +1 -0
- package/dist/actions/delete-document.mjs.map +1 -1
- package/dist/actions/delete-user-attributes.cjs +1 -0
- package/dist/actions/delete-user-attributes.cjs.map +1 -1
- package/dist/actions/delete-user-attributes.d.cts +3 -24
- package/dist/actions/delete-user-attributes.d.cts.map +1 -1
- package/dist/actions/delete-user-attributes.d.mts +3 -24
- package/dist/actions/delete-user-attributes.d.mts.map +1 -1
- package/dist/actions/delete-user-attributes.mjs +1 -0
- package/dist/actions/delete-user-attributes.mjs.map +1 -1
- package/dist/actions/get-document.cjs +1 -0
- package/dist/actions/get-document.cjs.map +1 -1
- package/dist/actions/get-document.d.cts +3 -21
- package/dist/actions/get-document.d.cts.map +1 -1
- package/dist/actions/get-document.d.mts +3 -21
- package/dist/actions/get-document.d.mts.map +1 -1
- package/dist/actions/get-document.mjs +1 -0
- package/dist/actions/get-document.mjs.map +1 -1
- package/dist/actions/get-invite-by-token.cjs +1 -0
- package/dist/actions/get-invite-by-token.cjs.map +1 -1
- package/dist/actions/get-invite-by-token.d.cts +3 -21
- package/dist/actions/get-invite-by-token.d.cts.map +1 -1
- package/dist/actions/get-invite-by-token.d.mts +3 -21
- package/dist/actions/get-invite-by-token.d.mts.map +1 -1
- package/dist/actions/get-invite-by-token.mjs +1 -0
- package/dist/actions/get-invite-by-token.mjs.map +1 -1
- package/dist/actions/get-org-role.cjs +1 -0
- package/dist/actions/get-org-role.cjs.map +1 -1
- package/dist/actions/get-org-role.d.cts +3 -20
- package/dist/actions/get-org-role.d.cts.map +1 -1
- package/dist/actions/get-org-role.d.mts +3 -20
- package/dist/actions/get-org-role.d.mts.map +1 -1
- package/dist/actions/get-org-role.mjs +1 -0
- package/dist/actions/get-org-role.mjs.map +1 -1
- package/dist/actions/get-permission.cjs +1 -0
- package/dist/actions/get-permission.cjs.map +1 -1
- package/dist/actions/get-permission.d.cts +3 -21
- package/dist/actions/get-permission.d.cts.map +1 -1
- package/dist/actions/get-permission.d.mts +3 -21
- package/dist/actions/get-permission.d.mts.map +1 -1
- package/dist/actions/get-permission.mjs +1 -0
- package/dist/actions/get-permission.mjs.map +1 -1
- package/dist/actions/get-project.cjs +1 -0
- package/dist/actions/get-project.cjs.map +1 -1
- package/dist/actions/get-project.d.cts +3 -19
- package/dist/actions/get-project.d.cts.map +1 -1
- package/dist/actions/get-project.d.mts +3 -19
- package/dist/actions/get-project.d.mts.map +1 -1
- package/dist/actions/get-project.mjs +1 -0
- package/dist/actions/get-project.mjs.map +1 -1
- package/dist/actions/get-robots.cjs +1 -0
- package/dist/actions/get-robots.cjs.map +1 -1
- package/dist/actions/get-robots.d.cts +3 -23
- package/dist/actions/get-robots.d.cts.map +1 -1
- package/dist/actions/get-robots.d.mts +3 -23
- package/dist/actions/get-robots.d.mts.map +1 -1
- package/dist/actions/get-robots.mjs +1 -0
- package/dist/actions/get-robots.mjs.map +1 -1
- package/dist/actions/get-role.cjs +1 -0
- package/dist/actions/get-role.cjs.map +1 -1
- package/dist/actions/get-role.d.cts +3 -21
- package/dist/actions/get-role.d.cts.map +1 -1
- package/dist/actions/get-role.d.mts +3 -21
- package/dist/actions/get-role.d.mts.map +1 -1
- package/dist/actions/get-role.mjs +1 -0
- package/dist/actions/get-role.mjs.map +1 -1
- package/dist/actions/get-users.cjs +1 -0
- package/dist/actions/get-users.cjs.map +1 -1
- package/dist/actions/get-users.d.cts +3 -22
- package/dist/actions/get-users.d.cts.map +1 -1
- package/dist/actions/get-users.d.mts +3 -22
- package/dist/actions/get-users.d.mts.map +1 -1
- package/dist/actions/get-users.mjs +1 -0
- package/dist/actions/get-users.mjs.map +1 -1
- package/dist/actions/list-org-roles.cjs +1 -0
- package/dist/actions/list-org-roles.cjs.map +1 -1
- package/dist/actions/list-org-roles.d.cts +3 -19
- package/dist/actions/list-org-roles.d.cts.map +1 -1
- package/dist/actions/list-org-roles.d.mts +3 -19
- package/dist/actions/list-org-roles.d.mts.map +1 -1
- package/dist/actions/list-org-roles.mjs +1 -0
- package/dist/actions/list-org-roles.mjs.map +1 -1
- package/dist/actions/list-user-attributes.cjs +1 -0
- package/dist/actions/list-user-attributes.cjs.map +1 -1
- package/dist/actions/list-user-attributes.d.cts +3 -22
- package/dist/actions/list-user-attributes.d.cts.map +1 -1
- package/dist/actions/list-user-attributes.d.mts +3 -22
- package/dist/actions/list-user-attributes.d.mts.map +1 -1
- package/dist/actions/list-user-attributes.mjs +1 -0
- package/dist/actions/list-user-attributes.mjs.map +1 -1
- package/dist/actions/query-all-screening.cjs +1 -0
- package/dist/actions/query-all-screening.cjs.map +1 -1
- package/dist/actions/query-all-screening.d.cts +3 -23
- package/dist/actions/query-all-screening.d.cts.map +1 -1
- package/dist/actions/query-all-screening.d.mts +3 -23
- package/dist/actions/query-all-screening.d.mts.map +1 -1
- package/dist/actions/query-all-screening.mjs +1 -0
- package/dist/actions/query-all-screening.mjs.map +1 -1
- package/dist/actions/query-documents.cjs +1 -0
- package/dist/actions/query-documents.cjs.map +1 -1
- package/dist/actions/query-documents.d.cts +3 -24
- package/dist/actions/query-documents.d.cts.map +1 -1
- package/dist/actions/query-documents.d.mts +3 -24
- package/dist/actions/query-documents.d.mts.map +1 -1
- package/dist/actions/query-documents.mjs +1 -0
- package/dist/actions/query-documents.mjs.map +1 -1
- package/dist/actions/update-org-acl.cjs +1 -0
- package/dist/actions/update-org-acl.cjs.map +1 -1
- package/dist/actions/update-org-acl.d.cts +3 -21
- package/dist/actions/update-org-acl.d.cts.map +1 -1
- package/dist/actions/update-org-acl.d.mts +3 -21
- package/dist/actions/update-org-acl.d.mts.map +1 -1
- package/dist/actions/update-org-acl.mjs +1 -0
- package/dist/actions/update-org-acl.mjs.map +1 -1
- package/dist/actions/update-user-attributes-values.cjs +1 -0
- package/dist/actions/update-user-attributes-values.cjs.map +1 -1
- package/dist/actions/update-user-attributes-values.d.cts +3 -22
- package/dist/actions/update-user-attributes-values.d.cts.map +1 -1
- package/dist/actions/update-user-attributes-values.d.mts +3 -22
- package/dist/actions/update-user-attributes-values.d.mts.map +1 -1
- package/dist/actions/update-user-attributes-values.mjs +1 -0
- package/dist/actions/update-user-attributes-values.mjs.map +1 -1
- package/dist/actions/validate-credential.cjs +1 -0
- package/dist/actions/validate-credential.cjs.map +1 -1
- package/dist/actions/validate-credential.d.cts +3 -17
- package/dist/actions/validate-credential.d.cts.map +1 -1
- package/dist/actions/validate-credential.d.mts +3 -17
- package/dist/actions/validate-credential.d.mts.map +1 -1
- package/dist/actions/validate-credential.mjs +1 -0
- package/dist/actions/validate-credential.mjs.map +1 -1
- package/dist/app.cjs +6 -5
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +4 -6
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +4 -6
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +0 -1
- package/dist/app.mjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/package.json +2 -2
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { sanity } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-role.d.ts
|
|
@@ -29,27 +31,7 @@ declare const SanityGetRoleOutput: z.ZodObject<{
|
|
|
29
31
|
appliesToUsers: z.ZodNullable<z.ZodBoolean>;
|
|
30
32
|
appliesToRobots: z.ZodNullable<z.ZodBoolean>;
|
|
31
33
|
}, z.core.$loose>;
|
|
32
|
-
declare const sanityGetRole:
|
|
33
|
-
roleName: string;
|
|
34
|
-
resourceId: string;
|
|
35
|
-
resourceType: "organization" | "project" | "media-library" | "canvas" | "dashboard" | "view";
|
|
36
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"sanity", z.ZodObject<{
|
|
37
|
-
connectionId: z.ZodString;
|
|
38
|
-
entityId: z.ZodString;
|
|
39
|
-
instanceId: z.ZodString;
|
|
40
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
41
|
-
subdomain: z.ZodString;
|
|
42
|
-
version: z.ZodString;
|
|
43
|
-
generic_api_key: z.ZodString;
|
|
44
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"sanity", z.ZodObject<{
|
|
45
|
-
connectionId: z.ZodString;
|
|
46
|
-
entityId: z.ZodString;
|
|
47
|
-
instanceId: z.ZodString;
|
|
48
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
49
|
-
subdomain: z.ZodString;
|
|
50
|
-
version: z.ZodString;
|
|
51
|
-
generic_api_key: z.ZodString;
|
|
52
|
-
}, z.core.$strip>>]>;
|
|
34
|
+
declare const sanityGetRole: AppAction<typeof SanityGetRoleInput, typeof SanityGetRoleOutput, typeof sanity.credential>;
|
|
53
35
|
//#endregion
|
|
54
36
|
export { sanityGetRole };
|
|
55
37
|
//# sourceMappingURL=get-role.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-role.d.cts","names":[],"sources":["../../src/actions/get-role.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-role.d.cts","names":[],"sources":["../../src/actions/get-role.ts"],"mappings":";;;;;cAMa,kBAAA,EAAkB,CAAA,CAAA,SAAA;;;;;;;;;;;;cAWlB,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAYnB,aAAA,EAAe,SAAA,QACnB,kBAAA,SACA,mBAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { sanity } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-role.d.ts
|
|
@@ -29,27 +31,7 @@ declare const SanityGetRoleOutput: z.ZodObject<{
|
|
|
29
31
|
appliesToUsers: z.ZodNullable<z.ZodBoolean>;
|
|
30
32
|
appliesToRobots: z.ZodNullable<z.ZodBoolean>;
|
|
31
33
|
}, z.core.$loose>;
|
|
32
|
-
declare const sanityGetRole:
|
|
33
|
-
roleName: string;
|
|
34
|
-
resourceId: string;
|
|
35
|
-
resourceType: "organization" | "project" | "media-library" | "canvas" | "dashboard" | "view";
|
|
36
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"sanity", z.ZodObject<{
|
|
37
|
-
connectionId: z.ZodString;
|
|
38
|
-
entityId: z.ZodString;
|
|
39
|
-
instanceId: z.ZodString;
|
|
40
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
41
|
-
subdomain: z.ZodString;
|
|
42
|
-
version: z.ZodString;
|
|
43
|
-
generic_api_key: z.ZodString;
|
|
44
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"sanity", z.ZodObject<{
|
|
45
|
-
connectionId: z.ZodString;
|
|
46
|
-
entityId: z.ZodString;
|
|
47
|
-
instanceId: z.ZodString;
|
|
48
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
49
|
-
subdomain: z.ZodString;
|
|
50
|
-
version: z.ZodString;
|
|
51
|
-
generic_api_key: z.ZodString;
|
|
52
|
-
}, z.core.$strip>>]>;
|
|
34
|
+
declare const sanityGetRole: AppAction<typeof SanityGetRoleInput, typeof SanityGetRoleOutput, typeof sanity.credential>;
|
|
53
35
|
//#endregion
|
|
54
36
|
export { sanityGetRole };
|
|
55
37
|
//# sourceMappingURL=get-role.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-role.d.mts","names":[],"sources":["../../src/actions/get-role.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-role.d.mts","names":[],"sources":["../../src/actions/get-role.ts"],"mappings":";;;;;cAMa,kBAAA,EAAkB,CAAA,CAAA,SAAA;;;;;;;;;;;;cAWlB,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAYnB,aAAA,EAAe,SAAA,QACnB,kBAAA,SACA,mBAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-role.mjs","names":[],"sources":["../../src/actions/get-role.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityGetRoleInput = z.object({\n roleName: z.string().describe(\"The name of the role to retrieve.\"),\n resourceId: z.string().describe(\"The resource ID to scope the access request to. Must be a valid ID for the resource type.\"),\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 a specific role.\");\nconst SanityGetRole_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.union([z.string(), z.record(z.string(), z.unknown())]).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.\");\nexport const SanityGetRoleOutput = z.object({\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\").nullable().optional(),\n resourceId: z.string().describe(\"The ID of the resource\").nullable(),\n description: z.string().describe(\"Description of the role\").nullable().optional(),\n permissions: z.array(SanityGetRole_PermissionSchema).describe(\"List of permissions\"),\n resourceType: z.string().describe(\"The type of resource\").nullable(),\n appliesToUsers: z.boolean().describe(\"Whether applies to users\").nullable(),\n appliesToRobots: z.boolean().describe(\"Whether applies to robots\").nullable(),\n}).passthrough().describe(\"Response model for the get role operation.\\nThe API returns the role directly without a data wrapper.\");\n\nexport const sanityGetRole = action(\"SANITY_GET_ROLE\", {\n slug: \"sanity-get-role\",\n name: \"Get Role\",\n description: \"Retrieve a specific role for a given resource type and resource ID. Use this action when you need to fetch details about a role including its permissions, title, description, and whether it applies to users or robots. The role must exist for the specified resource.\",\n input: SanityGetRoleInput,\n output: SanityGetRoleOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-role.mjs","names":[],"sources":["../../src/actions/get-role.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { sanity } from \"../app\";\n\nexport const SanityGetRoleInput = z.object({\n roleName: z.string().describe(\"The name of the role to retrieve.\"),\n resourceId: z.string().describe(\"The resource ID to scope the access request to. Must be a valid ID for the resource type.\"),\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 a specific role.\");\nconst SanityGetRole_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.union([z.string(), z.record(z.string(), z.unknown())]).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.\");\nexport const SanityGetRoleOutput = z.object({\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\").nullable().optional(),\n resourceId: z.string().describe(\"The ID of the resource\").nullable(),\n description: z.string().describe(\"Description of the role\").nullable().optional(),\n permissions: z.array(SanityGetRole_PermissionSchema).describe(\"List of permissions\"),\n resourceType: z.string().describe(\"The type of resource\").nullable(),\n appliesToUsers: z.boolean().describe(\"Whether applies to users\").nullable(),\n appliesToRobots: z.boolean().describe(\"Whether applies to robots\").nullable(),\n}).passthrough().describe(\"Response model for the get role operation.\\nThe API returns the role directly without a data wrapper.\");\n\nexport const sanityGetRole: AppAction<\n typeof SanityGetRoleInput,\n typeof SanityGetRoleOutput,\n typeof sanity.credential\n> = action(\"SANITY_GET_ROLE\", {\n slug: \"sanity-get-role\",\n name: \"Get Role\",\n description: \"Retrieve a specific role for a given resource type and resource ID. Use this action when you need to fetch details about a role including its permissions, title, description, and whether it applies to users or robots. The role must exist for the specified resource.\",\n input: SanityGetRoleInput,\n output: SanityGetRoleOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,qBAAqB,EAAE,OAAO;CACzC,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;CACjE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2FAA2F;CAC3H,cAAc,EAAE,KAAK;EAAC;EAAgB;EAAW;EAAiB;EAAU;EAAa;CAAM,CAAC,CAAC,CAAC,SAAS,mIAAmI;AAChP,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAC3D,MAAM,iCAAiC,EAAE,OAAO;CAC9C,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,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAA+C;AAazE,MAAa,gBAIT,OAAO,mBAAmB;CAC5B,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QArBiC,EAAE,OAAO;EAC1C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;EAC7E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;EACjE,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;EACnE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChF,aAAa,EAAE,MAAM,8BAA8B,CAAC,CAAC,SAAS,qBAAqB;EACnF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;EACnE,gBAAgB,EAAE,QAAQ,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;EAC1E,iBAAiB,EAAE,QAAQ,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAC9E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uGAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-users.cjs","names":["z","action"],"sources":["../../src/actions/get-users.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityGetUsersInput = z.object({\n limit: z.number().int().default(100).describe(\"Number of items to return per page. Defaults to 100. Maximum value is 100.\").optional(),\n next_cursor: z.string().describe(\"Cursor for pagination. Use the nextCursor from the previous response to get the next page of results.\").optional(),\n resource_id: z.string().describe(\"The resource ID to scope the access request to. Must be a valid ID for the resource type (e.g., project ID or organization ID).\"),\n resource_type: z.enum([\"organization\", \"project\"]).describe(\"The resource to scope access requests to. Use 'organization' for organization-level access or 'project' for project-level access.\"),\n}).describe(\"Request parameters for listing users of a resource.\");\nconst SanityGetUsers_UserRoleSchema = z.object({\n role_id: z.string().describe(\"The unique identifier of the role.\").nullable().optional(),\n role_name: z.string().describe(\"The display name of the role.\").nullable().optional(),\n}).passthrough().describe(\"Role assigned to a user.\");\nconst SanityGetUsers_ResourceUserSchema = z.object({\n name: z.string().describe(\"The display name of the user.\").nullable().optional(),\n email: z.string().describe(\"The email address of the user.\").nullable().optional(),\n roles: z.array(SanityGetUsers_UserRoleSchema).describe(\"List of roles assigned to this user.\").nullable().optional(),\n user_id: z.string().describe(\"The unique identifier of the user.\").nullable().optional(),\n}).passthrough().describe(\"A user with their assigned roles.\");\nexport const SanityGetUsersOutput = z.object({\n total: z.number().int().describe(\"Total number of users for the resource.\").nullable().optional(),\n users: z.array(SanityGetUsers_ResourceUserSchema).describe(\"List of users with their assigned roles.\").nullable().optional(),\n next_cursor: z.string().describe(\"Cursor for pagination. Present when there are more results available.\").nullable().optional(),\n}).passthrough().describe(\"Response model for listing users of a resource.\");\n\nexport const sanityGetUsers = action(\"SANITY_GET_USERS\", {\n slug: \"sanity-get-users\",\n name: \"List Resource Users\",\n description: \"List all users of a resource and their assigned roles. Use when you need to retrieve user information and role assignments for a specific project or organization. Supports pagination via cursor.\",\n input: SanityGetUsersInput,\n output: SanityGetUsersOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-users.cjs","names":["z","action"],"sources":["../../src/actions/get-users.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { sanity } from \"../app\";\n\nexport const SanityGetUsersInput = z.object({\n limit: z.number().int().default(100).describe(\"Number of items to return per page. Defaults to 100. Maximum value is 100.\").optional(),\n next_cursor: z.string().describe(\"Cursor for pagination. Use the nextCursor from the previous response to get the next page of results.\").optional(),\n resource_id: z.string().describe(\"The resource ID to scope the access request to. Must be a valid ID for the resource type (e.g., project ID or organization ID).\"),\n resource_type: z.enum([\"organization\", \"project\"]).describe(\"The resource to scope access requests to. Use 'organization' for organization-level access or 'project' for project-level access.\"),\n}).describe(\"Request parameters for listing users of a resource.\");\nconst SanityGetUsers_UserRoleSchema = z.object({\n role_id: z.string().describe(\"The unique identifier of the role.\").nullable().optional(),\n role_name: z.string().describe(\"The display name of the role.\").nullable().optional(),\n}).passthrough().describe(\"Role assigned to a user.\");\nconst SanityGetUsers_ResourceUserSchema = z.object({\n name: z.string().describe(\"The display name of the user.\").nullable().optional(),\n email: z.string().describe(\"The email address of the user.\").nullable().optional(),\n roles: z.array(SanityGetUsers_UserRoleSchema).describe(\"List of roles assigned to this user.\").nullable().optional(),\n user_id: z.string().describe(\"The unique identifier of the user.\").nullable().optional(),\n}).passthrough().describe(\"A user with their assigned roles.\");\nexport const SanityGetUsersOutput = z.object({\n total: z.number().int().describe(\"Total number of users for the resource.\").nullable().optional(),\n users: z.array(SanityGetUsers_ResourceUserSchema).describe(\"List of users with their assigned roles.\").nullable().optional(),\n next_cursor: z.string().describe(\"Cursor for pagination. Present when there are more results available.\").nullable().optional(),\n}).passthrough().describe(\"Response model for listing users of a resource.\");\n\nexport const sanityGetUsers: AppAction<\n typeof SanityGetUsersInput,\n typeof SanityGetUsersOutput,\n typeof sanity.credential\n> = action(\"SANITY_GET_USERS\", {\n slug: \"sanity-get-users\",\n name: \"List Resource Users\",\n description: \"List all users of a resource and their assigned roles. Use when you need to retrieve user information and role assignments for a specific project or organization. Supports pagination via cursor.\",\n input: SanityGetUsersInput,\n output: SanityGetUsersOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,sBAAsBA,IAAAA,EAAE,OAAO;CAC1C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;CACrI,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS;CACnJ,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iIAAiI;CAClK,eAAeA,IAAAA,EAAE,KAAK,CAAC,gBAAgB,SAAS,CAAC,CAAC,CAAC,SAAS,mIAAmI;AACjM,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAM,gCAAgCA,IAAAA,EAAE,OAAO;CAC7C,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0BAA0B;AACpD,MAAM,oCAAoCA,IAAAA,EAAE,OAAO;CACjD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,OAAOA,IAAAA,EAAE,MAAM,6BAA6B,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnH,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mCAAmC;AAC7D,MAAa,uBAAuBA,IAAAA,EAAE,OAAO;CAC3C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,OAAOA,IAAAA,EAAE,MAAM,iCAAiC,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3H,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAE3E,MAAa,iBAITC,eAAAA,OAAO,oBAAoB;CAC7B,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { sanity } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-users.d.ts
|
|
@@ -23,28 +25,7 @@ declare const SanityGetUsersOutput: z.ZodObject<{
|
|
|
23
25
|
}, z.core.$loose>>>>;
|
|
24
26
|
next_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
27
|
}, z.core.$loose>;
|
|
26
|
-
declare const sanityGetUsers:
|
|
27
|
-
resource_id: string;
|
|
28
|
-
resource_type: "organization" | "project";
|
|
29
|
-
limit?: number | undefined;
|
|
30
|
-
next_cursor?: string | undefined;
|
|
31
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"sanity", z.ZodObject<{
|
|
32
|
-
connectionId: z.ZodString;
|
|
33
|
-
entityId: z.ZodString;
|
|
34
|
-
instanceId: z.ZodString;
|
|
35
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
36
|
-
subdomain: z.ZodString;
|
|
37
|
-
version: z.ZodString;
|
|
38
|
-
generic_api_key: z.ZodString;
|
|
39
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"sanity", z.ZodObject<{
|
|
40
|
-
connectionId: z.ZodString;
|
|
41
|
-
entityId: z.ZodString;
|
|
42
|
-
instanceId: z.ZodString;
|
|
43
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
44
|
-
subdomain: z.ZodString;
|
|
45
|
-
version: z.ZodString;
|
|
46
|
-
generic_api_key: z.ZodString;
|
|
47
|
-
}, z.core.$strip>>]>;
|
|
28
|
+
declare const sanityGetUsers: AppAction<typeof SanityGetUsersInput, typeof SanityGetUsersOutput, typeof sanity.credential>;
|
|
48
29
|
//#endregion
|
|
49
30
|
export { sanityGetUsers };
|
|
50
31
|
//# sourceMappingURL=get-users.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-users.d.cts","names":[],"sources":["../../src/actions/get-users.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-users.d.cts","names":[],"sources":["../../src/actions/get-users.ts"],"mappings":";;;;;cAMa,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;;;;;;cAgBnB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAMpB,cAAA,EAAgB,SAAA,QACpB,mBAAA,SACA,oBAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { sanity } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-users.d.ts
|
|
@@ -23,28 +25,7 @@ declare const SanityGetUsersOutput: z.ZodObject<{
|
|
|
23
25
|
}, z.core.$loose>>>>;
|
|
24
26
|
next_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
27
|
}, z.core.$loose>;
|
|
26
|
-
declare const sanityGetUsers:
|
|
27
|
-
resource_id: string;
|
|
28
|
-
resource_type: "organization" | "project";
|
|
29
|
-
limit?: number | undefined;
|
|
30
|
-
next_cursor?: string | undefined;
|
|
31
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"sanity", z.ZodObject<{
|
|
32
|
-
connectionId: z.ZodString;
|
|
33
|
-
entityId: z.ZodString;
|
|
34
|
-
instanceId: z.ZodString;
|
|
35
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
36
|
-
subdomain: z.ZodString;
|
|
37
|
-
version: z.ZodString;
|
|
38
|
-
generic_api_key: z.ZodString;
|
|
39
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"sanity", z.ZodObject<{
|
|
40
|
-
connectionId: z.ZodString;
|
|
41
|
-
entityId: z.ZodString;
|
|
42
|
-
instanceId: z.ZodString;
|
|
43
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
44
|
-
subdomain: z.ZodString;
|
|
45
|
-
version: z.ZodString;
|
|
46
|
-
generic_api_key: z.ZodString;
|
|
47
|
-
}, z.core.$strip>>]>;
|
|
28
|
+
declare const sanityGetUsers: AppAction<typeof SanityGetUsersInput, typeof SanityGetUsersOutput, typeof sanity.credential>;
|
|
48
29
|
//#endregion
|
|
49
30
|
export { sanityGetUsers };
|
|
50
31
|
//# sourceMappingURL=get-users.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-users.d.mts","names":[],"sources":["../../src/actions/get-users.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-users.d.mts","names":[],"sources":["../../src/actions/get-users.ts"],"mappings":";;;;;cAMa,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;;;;;;cAgBnB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAMpB,cAAA,EAAgB,SAAA,QACpB,mBAAA,SACA,oBAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-users.mjs","names":[],"sources":["../../src/actions/get-users.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityGetUsersInput = z.object({\n limit: z.number().int().default(100).describe(\"Number of items to return per page. Defaults to 100. Maximum value is 100.\").optional(),\n next_cursor: z.string().describe(\"Cursor for pagination. Use the nextCursor from the previous response to get the next page of results.\").optional(),\n resource_id: z.string().describe(\"The resource ID to scope the access request to. Must be a valid ID for the resource type (e.g., project ID or organization ID).\"),\n resource_type: z.enum([\"organization\", \"project\"]).describe(\"The resource to scope access requests to. Use 'organization' for organization-level access or 'project' for project-level access.\"),\n}).describe(\"Request parameters for listing users of a resource.\");\nconst SanityGetUsers_UserRoleSchema = z.object({\n role_id: z.string().describe(\"The unique identifier of the role.\").nullable().optional(),\n role_name: z.string().describe(\"The display name of the role.\").nullable().optional(),\n}).passthrough().describe(\"Role assigned to a user.\");\nconst SanityGetUsers_ResourceUserSchema = z.object({\n name: z.string().describe(\"The display name of the user.\").nullable().optional(),\n email: z.string().describe(\"The email address of the user.\").nullable().optional(),\n roles: z.array(SanityGetUsers_UserRoleSchema).describe(\"List of roles assigned to this user.\").nullable().optional(),\n user_id: z.string().describe(\"The unique identifier of the user.\").nullable().optional(),\n}).passthrough().describe(\"A user with their assigned roles.\");\nexport const SanityGetUsersOutput = z.object({\n total: z.number().int().describe(\"Total number of users for the resource.\").nullable().optional(),\n users: z.array(SanityGetUsers_ResourceUserSchema).describe(\"List of users with their assigned roles.\").nullable().optional(),\n next_cursor: z.string().describe(\"Cursor for pagination. Present when there are more results available.\").nullable().optional(),\n}).passthrough().describe(\"Response model for listing users of a resource.\");\n\nexport const sanityGetUsers = action(\"SANITY_GET_USERS\", {\n slug: \"sanity-get-users\",\n name: \"List Resource Users\",\n description: \"List all users of a resource and their assigned roles. Use when you need to retrieve user information and role assignments for a specific project or organization. Supports pagination via cursor.\",\n input: SanityGetUsersInput,\n output: SanityGetUsersOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-users.mjs","names":[],"sources":["../../src/actions/get-users.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { sanity } from \"../app\";\n\nexport const SanityGetUsersInput = z.object({\n limit: z.number().int().default(100).describe(\"Number of items to return per page. Defaults to 100. Maximum value is 100.\").optional(),\n next_cursor: z.string().describe(\"Cursor for pagination. Use the nextCursor from the previous response to get the next page of results.\").optional(),\n resource_id: z.string().describe(\"The resource ID to scope the access request to. Must be a valid ID for the resource type (e.g., project ID or organization ID).\"),\n resource_type: z.enum([\"organization\", \"project\"]).describe(\"The resource to scope access requests to. Use 'organization' for organization-level access or 'project' for project-level access.\"),\n}).describe(\"Request parameters for listing users of a resource.\");\nconst SanityGetUsers_UserRoleSchema = z.object({\n role_id: z.string().describe(\"The unique identifier of the role.\").nullable().optional(),\n role_name: z.string().describe(\"The display name of the role.\").nullable().optional(),\n}).passthrough().describe(\"Role assigned to a user.\");\nconst SanityGetUsers_ResourceUserSchema = z.object({\n name: z.string().describe(\"The display name of the user.\").nullable().optional(),\n email: z.string().describe(\"The email address of the user.\").nullable().optional(),\n roles: z.array(SanityGetUsers_UserRoleSchema).describe(\"List of roles assigned to this user.\").nullable().optional(),\n user_id: z.string().describe(\"The unique identifier of the user.\").nullable().optional(),\n}).passthrough().describe(\"A user with their assigned roles.\");\nexport const SanityGetUsersOutput = z.object({\n total: z.number().int().describe(\"Total number of users for the resource.\").nullable().optional(),\n users: z.array(SanityGetUsers_ResourceUserSchema).describe(\"List of users with their assigned roles.\").nullable().optional(),\n next_cursor: z.string().describe(\"Cursor for pagination. Present when there are more results available.\").nullable().optional(),\n}).passthrough().describe(\"Response model for listing users of a resource.\");\n\nexport const sanityGetUsers: AppAction<\n typeof SanityGetUsersInput,\n typeof SanityGetUsersOutput,\n typeof sanity.credential\n> = action(\"SANITY_GET_USERS\", {\n slug: \"sanity-get-users\",\n name: \"List Resource Users\",\n description: \"List all users of a resource and their assigned roles. Use when you need to retrieve user information and role assignments for a specific project or organization. Supports pagination via cursor.\",\n input: SanityGetUsersInput,\n output: SanityGetUsersOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,sBAAsB,EAAE,OAAO;CAC1C,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;CACrI,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS;CACnJ,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,iIAAiI;CAClK,eAAe,EAAE,KAAK,CAAC,gBAAgB,SAAS,CAAC,CAAC,CAAC,SAAS,mIAAmI;AACjM,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAM,gCAAgC,EAAE,OAAO;CAC7C,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0BAA0B;AACpD,MAAM,oCAAoC,EAAE,OAAO;CACjD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,OAAO,EAAE,MAAM,6BAA6B,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnH,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mCAAmC;AAO7D,MAAa,iBAIT,OAAO,oBAAoB;CAC7B,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAfkC,EAAE,OAAO;EAC3C,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChG,OAAO,EAAE,MAAM,iCAAiC,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3H,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-org-roles.cjs","names":["z","action"],"sources":["../../src/actions/list-org-roles.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityListOrgRolesInput = z.object({\n organization_id: z.string().describe(\"The unique identifier of the organization\"),\n});\nconst SanityListOrgRoles_RoleSchema = z.object({\n name: z.string().describe(\"The machine-readable name of the role\").nullable(),\n title: z.string().describe(\"The human-readable title of the role\").nullable(),\n grants: z.record(z.string(), z.unknown()).describe(\"Map of resource types to their grants\").nullable().optional(),\n isCustom: z.boolean().describe(\"Whether this is a custom role defined by the user\").nullable().optional(),\n description: z.string().describe(\"Description of what the role allows\").nullable().optional(),\n organizationId: z.string().describe(\"The organization ID this role belongs to\").nullable().optional(),\n}).passthrough().describe(\"Represents a single role with its details and grants.\");\nexport const SanityListOrgRolesOutput = z.object({\n roles: z.array(SanityListOrgRoles_RoleSchema).describe(\"List of roles available in the organization\"),\n}).passthrough().describe(\"Response model for listing organization roles.\");\n\nexport const sanityListOrgRoles = action(\"SANITY_LIST_ORG_ROLES\", {\n slug: \"sanity-list-org-roles\",\n name: \"List Organization Roles\",\n description: \"List all roles available for an organization. Use this action to retrieve all available roles that can be assigned to users within a specific Sanity organization. The organization_id is required to identify which organization's roles to list.\",\n input: SanityListOrgRolesInput,\n output: SanityListOrgRolesOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-org-roles.cjs","names":["z","action"],"sources":["../../src/actions/list-org-roles.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { sanity } from \"../app\";\n\nexport const SanityListOrgRolesInput = z.object({\n organization_id: z.string().describe(\"The unique identifier of the organization\"),\n});\nconst SanityListOrgRoles_RoleSchema = z.object({\n name: z.string().describe(\"The machine-readable name of the role\").nullable(),\n title: z.string().describe(\"The human-readable title of the role\").nullable(),\n grants: z.record(z.string(), z.unknown()).describe(\"Map of resource types to their grants\").nullable().optional(),\n isCustom: z.boolean().describe(\"Whether this is a custom role defined by the user\").nullable().optional(),\n description: z.string().describe(\"Description of what the role allows\").nullable().optional(),\n organizationId: z.string().describe(\"The organization ID this role belongs to\").nullable().optional(),\n}).passthrough().describe(\"Represents a single role with its details and grants.\");\nexport const SanityListOrgRolesOutput = z.object({\n roles: z.array(SanityListOrgRoles_RoleSchema).describe(\"List of roles available in the organization\"),\n}).passthrough().describe(\"Response model for listing organization roles.\");\n\nexport const sanityListOrgRoles: AppAction<\n typeof SanityListOrgRolesInput,\n typeof SanityListOrgRolesOutput,\n typeof sanity.credential\n> = action(\"SANITY_LIST_ORG_ROLES\", {\n slug: \"sanity-list-org-roles\",\n name: \"List Organization Roles\",\n description: \"List all roles available for an organization. Use this action to retrieve all available roles that can be assigned to users within a specific Sanity organization. The organization_id is required to identify which organization's roles to list.\",\n input: SanityListOrgRolesInput,\n output: SanityListOrgRolesOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO,EAC9C,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,EAClF,CAAC;AACD,MAAM,gCAAgCA,IAAAA,EAAE,OAAO;CAC7C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC5E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC5E,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAAuD;AACjF,MAAa,2BAA2BA,IAAAA,EAAE,OAAO,EAC/C,OAAOA,IAAAA,EAAE,MAAM,6BAA6B,CAAC,CAAC,SAAS,6CAA6C,EACtG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAAgD;AAE1E,MAAa,qBAITC,eAAAA,OAAO,yBAAyB;CAClC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { sanity } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/list-org-roles.d.ts
|
|
@@ -14,25 +16,7 @@ declare const SanityListOrgRolesOutput: z.ZodObject<{
|
|
|
14
16
|
organizationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
17
|
}, z.core.$loose>>;
|
|
16
18
|
}, z.core.$loose>;
|
|
17
|
-
declare const sanityListOrgRoles:
|
|
18
|
-
organization_id: string;
|
|
19
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"sanity", z.ZodObject<{
|
|
20
|
-
connectionId: z.ZodString;
|
|
21
|
-
entityId: z.ZodString;
|
|
22
|
-
instanceId: z.ZodString;
|
|
23
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
24
|
-
subdomain: z.ZodString;
|
|
25
|
-
version: z.ZodString;
|
|
26
|
-
generic_api_key: z.ZodString;
|
|
27
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"sanity", z.ZodObject<{
|
|
28
|
-
connectionId: z.ZodString;
|
|
29
|
-
entityId: z.ZodString;
|
|
30
|
-
instanceId: z.ZodString;
|
|
31
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
32
|
-
subdomain: z.ZodString;
|
|
33
|
-
version: z.ZodString;
|
|
34
|
-
generic_api_key: z.ZodString;
|
|
35
|
-
}, z.core.$strip>>]>;
|
|
19
|
+
declare const sanityListOrgRoles: AppAction<typeof SanityListOrgRolesInput, typeof SanityListOrgRolesOutput, typeof sanity.credential>;
|
|
36
20
|
//#endregion
|
|
37
21
|
export { sanityListOrgRoles };
|
|
38
22
|
//# sourceMappingURL=list-org-roles.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-org-roles.d.cts","names":[],"sources":["../../src/actions/list-org-roles.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-org-roles.d.cts","names":[],"sources":["../../src/actions/list-org-roles.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;cAWvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;cAIxB,kBAAA,EAAoB,SAAA,QACxB,uBAAA,SACA,wBAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { sanity } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/list-org-roles.d.ts
|
|
@@ -14,25 +16,7 @@ declare const SanityListOrgRolesOutput: z.ZodObject<{
|
|
|
14
16
|
organizationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
17
|
}, z.core.$loose>>;
|
|
16
18
|
}, z.core.$loose>;
|
|
17
|
-
declare const sanityListOrgRoles:
|
|
18
|
-
organization_id: string;
|
|
19
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"sanity", z.ZodObject<{
|
|
20
|
-
connectionId: z.ZodString;
|
|
21
|
-
entityId: z.ZodString;
|
|
22
|
-
instanceId: z.ZodString;
|
|
23
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
24
|
-
subdomain: z.ZodString;
|
|
25
|
-
version: z.ZodString;
|
|
26
|
-
generic_api_key: z.ZodString;
|
|
27
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"sanity", z.ZodObject<{
|
|
28
|
-
connectionId: z.ZodString;
|
|
29
|
-
entityId: z.ZodString;
|
|
30
|
-
instanceId: z.ZodString;
|
|
31
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
32
|
-
subdomain: z.ZodString;
|
|
33
|
-
version: z.ZodString;
|
|
34
|
-
generic_api_key: z.ZodString;
|
|
35
|
-
}, z.core.$strip>>]>;
|
|
19
|
+
declare const sanityListOrgRoles: AppAction<typeof SanityListOrgRolesInput, typeof SanityListOrgRolesOutput, typeof sanity.credential>;
|
|
36
20
|
//#endregion
|
|
37
21
|
export { sanityListOrgRoles };
|
|
38
22
|
//# sourceMappingURL=list-org-roles.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-org-roles.d.mts","names":[],"sources":["../../src/actions/list-org-roles.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-org-roles.d.mts","names":[],"sources":["../../src/actions/list-org-roles.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;cAWvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;cAIxB,kBAAA,EAAoB,SAAA,QACxB,uBAAA,SACA,wBAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-org-roles.mjs","names":[],"sources":["../../src/actions/list-org-roles.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityListOrgRolesInput = z.object({\n organization_id: z.string().describe(\"The unique identifier of the organization\"),\n});\nconst SanityListOrgRoles_RoleSchema = z.object({\n name: z.string().describe(\"The machine-readable name of the role\").nullable(),\n title: z.string().describe(\"The human-readable title of the role\").nullable(),\n grants: z.record(z.string(), z.unknown()).describe(\"Map of resource types to their grants\").nullable().optional(),\n isCustom: z.boolean().describe(\"Whether this is a custom role defined by the user\").nullable().optional(),\n description: z.string().describe(\"Description of what the role allows\").nullable().optional(),\n organizationId: z.string().describe(\"The organization ID this role belongs to\").nullable().optional(),\n}).passthrough().describe(\"Represents a single role with its details and grants.\");\nexport const SanityListOrgRolesOutput = z.object({\n roles: z.array(SanityListOrgRoles_RoleSchema).describe(\"List of roles available in the organization\"),\n}).passthrough().describe(\"Response model for listing organization roles.\");\n\nexport const sanityListOrgRoles = action(\"SANITY_LIST_ORG_ROLES\", {\n slug: \"sanity-list-org-roles\",\n name: \"List Organization Roles\",\n description: \"List all roles available for an organization. Use this action to retrieve all available roles that can be assigned to users within a specific Sanity organization. The organization_id is required to identify which organization's roles to list.\",\n input: SanityListOrgRolesInput,\n output: SanityListOrgRolesOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-org-roles.mjs","names":[],"sources":["../../src/actions/list-org-roles.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { sanity } from \"../app\";\n\nexport const SanityListOrgRolesInput = z.object({\n organization_id: z.string().describe(\"The unique identifier of the organization\"),\n});\nconst SanityListOrgRoles_RoleSchema = z.object({\n name: z.string().describe(\"The machine-readable name of the role\").nullable(),\n title: z.string().describe(\"The human-readable title of the role\").nullable(),\n grants: z.record(z.string(), z.unknown()).describe(\"Map of resource types to their grants\").nullable().optional(),\n isCustom: z.boolean().describe(\"Whether this is a custom role defined by the user\").nullable().optional(),\n description: z.string().describe(\"Description of what the role allows\").nullable().optional(),\n organizationId: z.string().describe(\"The organization ID this role belongs to\").nullable().optional(),\n}).passthrough().describe(\"Represents a single role with its details and grants.\");\nexport const SanityListOrgRolesOutput = z.object({\n roles: z.array(SanityListOrgRoles_RoleSchema).describe(\"List of roles available in the organization\"),\n}).passthrough().describe(\"Response model for listing organization roles.\");\n\nexport const sanityListOrgRoles: AppAction<\n typeof SanityListOrgRolesInput,\n typeof SanityListOrgRolesOutput,\n typeof sanity.credential\n> = action(\"SANITY_LIST_ORG_ROLES\", {\n slug: \"sanity-list-org-roles\",\n name: \"List Organization Roles\",\n description: \"List all roles available for an organization. Use this action to retrieve all available roles that can be assigned to users within a specific Sanity organization. The organization_id is required to identify which organization's roles to list.\",\n input: SanityListOrgRolesInput,\n output: SanityListOrgRolesOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,0BAA0B,EAAE,OAAO,EAC9C,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,EAClF,CAAC;AACD,MAAM,gCAAgC,EAAE,OAAO;CAC7C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC5E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC5E,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAAuD;AAKjF,MAAa,qBAIT,OAAO,yBAAyB;CAClC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAbsC,EAAE,OAAO,EAC/C,OAAO,EAAE,MAAM,6BAA6B,CAAC,CAAC,SAAS,6CAA6C,EACtG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-user-attributes.cjs","names":["z","action"],"sources":["../../src/actions/list-user-attributes.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityListUserAttributesInput = z.object({\n limit: z.number().int().default(50).describe(\"Maximum number of attributes to return\").optional(),\n cursor: z.string().describe(\"The last attribute key from the previous page (used for pagination)\").optional(),\n sanity_user_id: z.string().describe(\"Unique identifier of the Sanity user\"),\n organization_id: z.string().describe(\"Unique identifier of the organization\"),\n}).describe(\"Request model for retrieving user attributes from a Sanity organization.\");\nconst SanityListUserAttributes_AttributeItemSchema = z.object({\n key: z.string().describe(\"The key/name of the attribute\").nullable(),\n type: z.string().describe(\"The type of the attribute\").nullable(),\n values: z.record(z.string(), z.unknown()).describe(\"Possible values for this attribute\").nullable().optional(),\n active_value: z.record(z.string(), z.unknown()).describe(\"The active value for this attribute\").nullable().optional(),\n active_source: z.string().describe(\"The source of the active value\").nullable().optional(),\n}).passthrough().describe(\"Individual user attribute item.\");\nexport const SanityListUserAttributesOutput = z.object({\n attributes: z.array(SanityListUserAttributes_AttributeItemSchema).describe(\"List of user attributes\"),\n sanityUserId: z.string().describe(\"ID of the user\").nullable(),\n organizationId: z.string().describe(\"ID of the organization\").nullable(),\n}).passthrough().describe(\"Response model for user attributes retrieval.\");\n\nexport const sanityListUserAttributes = action(\"SANITY_LIST_USER_ATTRIBUTES\", {\n slug: \"sanity-list-user-attributes\",\n name: \"List User Attributes\",\n description: \"Tool to retrieve user attributes from a Sanity organization. Use when you need to get the attributes (such as roles, permissions, or custom properties) associated with a specific user in a Sanity organization. Supports pagination via the cursor parameter.\",\n input: SanityListUserAttributesInput,\n output: SanityListUserAttributesOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-user-attributes.cjs","names":["z","action"],"sources":["../../src/actions/list-user-attributes.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { sanity } from \"../app\";\n\nexport const SanityListUserAttributesInput = z.object({\n limit: z.number().int().default(50).describe(\"Maximum number of attributes to return\").optional(),\n cursor: z.string().describe(\"The last attribute key from the previous page (used for pagination)\").optional(),\n sanity_user_id: z.string().describe(\"Unique identifier of the Sanity user\"),\n organization_id: z.string().describe(\"Unique identifier of the organization\"),\n}).describe(\"Request model for retrieving user attributes from a Sanity organization.\");\nconst SanityListUserAttributes_AttributeItemSchema = z.object({\n key: z.string().describe(\"The key/name of the attribute\").nullable(),\n type: z.string().describe(\"The type of the attribute\").nullable(),\n values: z.record(z.string(), z.unknown()).describe(\"Possible values for this attribute\").nullable().optional(),\n active_value: z.record(z.string(), z.unknown()).describe(\"The active value for this attribute\").nullable().optional(),\n active_source: z.string().describe(\"The source of the active value\").nullable().optional(),\n}).passthrough().describe(\"Individual user attribute item.\");\nexport const SanityListUserAttributesOutput = z.object({\n attributes: z.array(SanityListUserAttributes_AttributeItemSchema).describe(\"List of user attributes\"),\n sanityUserId: z.string().describe(\"ID of the user\").nullable(),\n organizationId: z.string().describe(\"ID of the organization\").nullable(),\n}).passthrough().describe(\"Response model for user attributes retrieval.\");\n\nexport const sanityListUserAttributes: AppAction<\n typeof SanityListUserAttributesInput,\n typeof SanityListUserAttributesOutput,\n typeof sanity.credential\n> = action(\"SANITY_LIST_USER_ATTRIBUTES\", {\n slug: \"sanity-list-user-attributes\",\n name: \"List User Attributes\",\n description: \"Tool to retrieve user attributes from a Sanity organization. Use when you need to get the attributes (such as roles, permissions, or custom properties) associated with a specific user in a Sanity organization. Supports pagination via the cursor parameter.\",\n input: SanityListUserAttributesInput,\n output: SanityListUserAttributesOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAChG,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CAC5G,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CAC1E,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;AAC9E,CAAC,CAAC,CAAC,SAAS,0EAA0E;AACtF,MAAM,+CAA+CA,IAAAA,EAAE,OAAO;CAC5D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACnE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAChE,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,cAAcA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpH,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iCAAiC;AAC3D,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,YAAYA,IAAAA,EAAE,MAAM,4CAA4C,CAAC,CAAC,SAAS,yBAAyB;CACpG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;CAC7D,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;AACzE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAA+C;AAEzE,MAAa,2BAITC,eAAAA,OAAO,+BAA+B;CACxC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { sanity } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/list-user-attributes.d.ts
|
|
@@ -18,28 +20,7 @@ declare const SanityListUserAttributesOutput: z.ZodObject<{
|
|
|
18
20
|
sanityUserId: z.ZodNullable<z.ZodString>;
|
|
19
21
|
organizationId: z.ZodNullable<z.ZodString>;
|
|
20
22
|
}, z.core.$loose>;
|
|
21
|
-
declare const sanityListUserAttributes:
|
|
22
|
-
sanity_user_id: string;
|
|
23
|
-
organization_id: string;
|
|
24
|
-
limit?: number | undefined;
|
|
25
|
-
cursor?: string | undefined;
|
|
26
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"sanity", z.ZodObject<{
|
|
27
|
-
connectionId: z.ZodString;
|
|
28
|
-
entityId: z.ZodString;
|
|
29
|
-
instanceId: z.ZodString;
|
|
30
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
31
|
-
subdomain: z.ZodString;
|
|
32
|
-
version: z.ZodString;
|
|
33
|
-
generic_api_key: z.ZodString;
|
|
34
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"sanity", z.ZodObject<{
|
|
35
|
-
connectionId: z.ZodString;
|
|
36
|
-
entityId: z.ZodString;
|
|
37
|
-
instanceId: z.ZodString;
|
|
38
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
39
|
-
subdomain: z.ZodString;
|
|
40
|
-
version: z.ZodString;
|
|
41
|
-
generic_api_key: z.ZodString;
|
|
42
|
-
}, z.core.$strip>>]>;
|
|
23
|
+
declare const sanityListUserAttributes: AppAction<typeof SanityListUserAttributesInput, typeof SanityListUserAttributesOutput, typeof sanity.credential>;
|
|
43
24
|
//#endregion
|
|
44
25
|
export { sanityListUserAttributes };
|
|
45
26
|
//# sourceMappingURL=list-user-attributes.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-user-attributes.d.cts","names":[],"sources":["../../src/actions/list-user-attributes.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-user-attributes.d.cts","names":[],"sources":["../../src/actions/list-user-attributes.ts"],"mappings":";;;;;cAMa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;cAa7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;cAM9B,wBAAA,EAA0B,SAAA,QAC9B,6BAAA,SACA,8BAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { sanity } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/list-user-attributes.d.ts
|
|
@@ -18,28 +20,7 @@ declare const SanityListUserAttributesOutput: z.ZodObject<{
|
|
|
18
20
|
sanityUserId: z.ZodNullable<z.ZodString>;
|
|
19
21
|
organizationId: z.ZodNullable<z.ZodString>;
|
|
20
22
|
}, z.core.$loose>;
|
|
21
|
-
declare const sanityListUserAttributes:
|
|
22
|
-
sanity_user_id: string;
|
|
23
|
-
organization_id: string;
|
|
24
|
-
limit?: number | undefined;
|
|
25
|
-
cursor?: string | undefined;
|
|
26
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"sanity", z.ZodObject<{
|
|
27
|
-
connectionId: z.ZodString;
|
|
28
|
-
entityId: z.ZodString;
|
|
29
|
-
instanceId: z.ZodString;
|
|
30
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
31
|
-
subdomain: z.ZodString;
|
|
32
|
-
version: z.ZodString;
|
|
33
|
-
generic_api_key: z.ZodString;
|
|
34
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"sanity", z.ZodObject<{
|
|
35
|
-
connectionId: z.ZodString;
|
|
36
|
-
entityId: z.ZodString;
|
|
37
|
-
instanceId: z.ZodString;
|
|
38
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
39
|
-
subdomain: z.ZodString;
|
|
40
|
-
version: z.ZodString;
|
|
41
|
-
generic_api_key: z.ZodString;
|
|
42
|
-
}, z.core.$strip>>]>;
|
|
23
|
+
declare const sanityListUserAttributes: AppAction<typeof SanityListUserAttributesInput, typeof SanityListUserAttributesOutput, typeof sanity.credential>;
|
|
43
24
|
//#endregion
|
|
44
25
|
export { sanityListUserAttributes };
|
|
45
26
|
//# sourceMappingURL=list-user-attributes.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-user-attributes.d.mts","names":[],"sources":["../../src/actions/list-user-attributes.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-user-attributes.d.mts","names":[],"sources":["../../src/actions/list-user-attributes.ts"],"mappings":";;;;;cAMa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;cAa7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;cAM9B,wBAAA,EAA0B,SAAA,QAC9B,6BAAA,SACA,8BAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-user-attributes.mjs","names":[],"sources":["../../src/actions/list-user-attributes.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityListUserAttributesInput = z.object({\n limit: z.number().int().default(50).describe(\"Maximum number of attributes to return\").optional(),\n cursor: z.string().describe(\"The last attribute key from the previous page (used for pagination)\").optional(),\n sanity_user_id: z.string().describe(\"Unique identifier of the Sanity user\"),\n organization_id: z.string().describe(\"Unique identifier of the organization\"),\n}).describe(\"Request model for retrieving user attributes from a Sanity organization.\");\nconst SanityListUserAttributes_AttributeItemSchema = z.object({\n key: z.string().describe(\"The key/name of the attribute\").nullable(),\n type: z.string().describe(\"The type of the attribute\").nullable(),\n values: z.record(z.string(), z.unknown()).describe(\"Possible values for this attribute\").nullable().optional(),\n active_value: z.record(z.string(), z.unknown()).describe(\"The active value for this attribute\").nullable().optional(),\n active_source: z.string().describe(\"The source of the active value\").nullable().optional(),\n}).passthrough().describe(\"Individual user attribute item.\");\nexport const SanityListUserAttributesOutput = z.object({\n attributes: z.array(SanityListUserAttributes_AttributeItemSchema).describe(\"List of user attributes\"),\n sanityUserId: z.string().describe(\"ID of the user\").nullable(),\n organizationId: z.string().describe(\"ID of the organization\").nullable(),\n}).passthrough().describe(\"Response model for user attributes retrieval.\");\n\nexport const sanityListUserAttributes = action(\"SANITY_LIST_USER_ATTRIBUTES\", {\n slug: \"sanity-list-user-attributes\",\n name: \"List User Attributes\",\n description: \"Tool to retrieve user attributes from a Sanity organization. Use when you need to get the attributes (such as roles, permissions, or custom properties) associated with a specific user in a Sanity organization. Supports pagination via the cursor parameter.\",\n input: SanityListUserAttributesInput,\n output: SanityListUserAttributesOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-user-attributes.mjs","names":[],"sources":["../../src/actions/list-user-attributes.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { sanity } from \"../app\";\n\nexport const SanityListUserAttributesInput = z.object({\n limit: z.number().int().default(50).describe(\"Maximum number of attributes to return\").optional(),\n cursor: z.string().describe(\"The last attribute key from the previous page (used for pagination)\").optional(),\n sanity_user_id: z.string().describe(\"Unique identifier of the Sanity user\"),\n organization_id: z.string().describe(\"Unique identifier of the organization\"),\n}).describe(\"Request model for retrieving user attributes from a Sanity organization.\");\nconst SanityListUserAttributes_AttributeItemSchema = z.object({\n key: z.string().describe(\"The key/name of the attribute\").nullable(),\n type: z.string().describe(\"The type of the attribute\").nullable(),\n values: z.record(z.string(), z.unknown()).describe(\"Possible values for this attribute\").nullable().optional(),\n active_value: z.record(z.string(), z.unknown()).describe(\"The active value for this attribute\").nullable().optional(),\n active_source: z.string().describe(\"The source of the active value\").nullable().optional(),\n}).passthrough().describe(\"Individual user attribute item.\");\nexport const SanityListUserAttributesOutput = z.object({\n attributes: z.array(SanityListUserAttributes_AttributeItemSchema).describe(\"List of user attributes\"),\n sanityUserId: z.string().describe(\"ID of the user\").nullable(),\n organizationId: z.string().describe(\"ID of the organization\").nullable(),\n}).passthrough().describe(\"Response model for user attributes retrieval.\");\n\nexport const sanityListUserAttributes: AppAction<\n typeof SanityListUserAttributesInput,\n typeof SanityListUserAttributesOutput,\n typeof sanity.credential\n> = action(\"SANITY_LIST_USER_ATTRIBUTES\", {\n slug: \"sanity-list-user-attributes\",\n name: \"List User Attributes\",\n description: \"Tool to retrieve user attributes from a Sanity organization. Use when you need to get the attributes (such as roles, permissions, or custom properties) associated with a specific user in a Sanity organization. Supports pagination via the cursor parameter.\",\n input: SanityListUserAttributesInput,\n output: SanityListUserAttributesOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,gCAAgC,EAAE,OAAO;CACpD,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAChG,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CAC5G,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CAC1E,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;AAC9E,CAAC,CAAC,CAAC,SAAS,0EAA0E;AACtF,MAAM,+CAA+C,EAAE,OAAO;CAC5D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACnE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAChE,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,cAAc,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpH,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iCAAiC;AAO3D,MAAa,2BAIT,OAAO,+BAA+B;CACxC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAf4C,EAAE,OAAO;EACrD,YAAY,EAAE,MAAM,4CAA4C,CAAC,CAAC,SAAS,yBAAyB;EACpG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;EAC7D,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CACzE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-all-screening.cjs","names":["z","action"],"sources":["../../src/actions/query-all-screening.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityQueryAllScreeningInput = z.object({\n query: z.string().default(\"*[_type == 'screening']\").describe(\"GROQ query string to execute. Defaults to querying all documents of type 'screening'.\").optional(),\n params: z.record(z.string(), z.unknown()).describe(\"Optional parameters to pass to the GROQ query. Use $variableName syntax in query.\").optional(),\n dataset: z.string().default(\"production\").describe(\"The Sanity dataset to query. Defaults to 'production'.\").optional(),\n explain: z.boolean().describe(\"If true, returns query execution plan details.\").optional(),\n resultSourceMap: z.boolean().describe(\"If true, includes source map information in the response.\").optional(),\n});\nexport const SanityQueryAllScreeningOutput = z.object({\n ms: z.number().int().describe(\"Time taken to execute the query in milliseconds.\").nullable().optional(),\n query: z.string().describe(\"The GROQ query that was executed.\").nullable().optional(),\n result: z.array(z.record(z.string(), z.unknown())).describe(\"Array of screening documents matching the query.\").nullable().optional(),\n syncTags: z.array(z.string()).describe(\"Tags for cache synchronization.\").nullable().optional(),\n}).passthrough();\n\nexport const sanityQueryAllScreening = action(\"SANITY_QUERY_ALL_SCREENING\", {\n slug: \"sanity-query-all-screening\",\n name: \"Query All Screening\",\n description: \"Execute a GROQ query to fetch all screening documents from Sanity. Uses the Sanity HTTP query API endpoint. Default query retrieves all documents of type 'screening'. Supports optional query parameters for dynamic queries.\",\n input: SanityQueryAllScreeningInput,\n output: SanityQueryAllScreeningOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"query-all-screening.cjs","names":["z","action"],"sources":["../../src/actions/query-all-screening.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { sanity } from \"../app\";\n\nexport const SanityQueryAllScreeningInput = z.object({\n query: z.string().default(\"*[_type == 'screening']\").describe(\"GROQ query string to execute. Defaults to querying all documents of type 'screening'.\").optional(),\n params: z.record(z.string(), z.unknown()).describe(\"Optional parameters to pass to the GROQ query. Use $variableName syntax in query.\").optional(),\n dataset: z.string().default(\"production\").describe(\"The Sanity dataset to query. Defaults to 'production'.\").optional(),\n explain: z.boolean().describe(\"If true, returns query execution plan details.\").optional(),\n resultSourceMap: z.boolean().describe(\"If true, includes source map information in the response.\").optional(),\n});\nexport const SanityQueryAllScreeningOutput = z.object({\n ms: z.number().int().describe(\"Time taken to execute the query in milliseconds.\").nullable().optional(),\n query: z.string().describe(\"The GROQ query that was executed.\").nullable().optional(),\n result: z.array(z.record(z.string(), z.unknown())).describe(\"Array of screening documents matching the query.\").nullable().optional(),\n syncTags: z.array(z.string()).describe(\"Tags for cache synchronization.\").nullable().optional(),\n}).passthrough();\n\nexport const sanityQueryAllScreening: AppAction<\n typeof SanityQueryAllScreeningInput,\n typeof SanityQueryAllScreeningOutput,\n typeof sanity.credential\n> = action(\"SANITY_QUERY_ALL_SCREENING\", {\n slug: \"sanity-query-all-screening\",\n name: \"Query All Screening\",\n description: \"Execute a GROQ query to fetch all screening documents from Sanity. Uses the Sanity HTTP query API endpoint. Default query retrieves all documents of type 'screening'. Supports optional query parameters for dynamic queries.\",\n input: SanityQueryAllScreeningInput,\n output: SanityQueryAllScreeningOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,yBAAyB,CAAC,CAAC,SAAS,uFAAuF,CAAC,CAAC,SAAS;CAChK,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS;CACjJ,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,YAAY,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CACtH,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACzF,iBAAiBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;AAC9G,CAAC;AACD,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpI,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChG,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,0BAITC,eAAAA,OAAO,8BAA8B;CACvC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { sanity } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/query-all-screening.d.ts
|
|
@@ -14,29 +16,7 @@ declare const SanityQueryAllScreeningOutput: z.ZodObject<{
|
|
|
14
16
|
result: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
15
17
|
syncTags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
16
18
|
}, z.core.$loose>;
|
|
17
|
-
declare const sanityQueryAllScreening:
|
|
18
|
-
query?: string | undefined;
|
|
19
|
-
params?: Record<string, unknown> | undefined;
|
|
20
|
-
dataset?: string | undefined;
|
|
21
|
-
explain?: boolean | undefined;
|
|
22
|
-
resultSourceMap?: boolean | undefined;
|
|
23
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"sanity", z.ZodObject<{
|
|
24
|
-
connectionId: z.ZodString;
|
|
25
|
-
entityId: z.ZodString;
|
|
26
|
-
instanceId: z.ZodString;
|
|
27
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
28
|
-
subdomain: z.ZodString;
|
|
29
|
-
version: z.ZodString;
|
|
30
|
-
generic_api_key: z.ZodString;
|
|
31
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"sanity", z.ZodObject<{
|
|
32
|
-
connectionId: z.ZodString;
|
|
33
|
-
entityId: z.ZodString;
|
|
34
|
-
instanceId: z.ZodString;
|
|
35
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
36
|
-
subdomain: z.ZodString;
|
|
37
|
-
version: z.ZodString;
|
|
38
|
-
generic_api_key: z.ZodString;
|
|
39
|
-
}, z.core.$strip>>]>;
|
|
19
|
+
declare const sanityQueryAllScreening: AppAction<typeof SanityQueryAllScreeningInput, typeof SanityQueryAllScreeningOutput, typeof sanity.credential>;
|
|
40
20
|
//#endregion
|
|
41
21
|
export { sanityQueryAllScreening };
|
|
42
22
|
//# sourceMappingURL=query-all-screening.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-all-screening.d.cts","names":[],"sources":["../../src/actions/query-all-screening.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"query-all-screening.d.cts","names":[],"sources":["../../src/actions/query-all-screening.ts"],"mappings":";;;;;cAMa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;cAO5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;cAO7B,uBAAA,EAAyB,SAAA,QAC7B,4BAAA,SACA,6BAAA,SACA,MAAA,CAAO,UAAA"}
|