@keystrokehq/sanity 0.1.0 → 0.1.2
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.map +1 -1
- package/dist/actions/add-default-role-to-users.d.cts +10 -3
- package/dist/actions/add-default-role-to-users.d.cts.map +1 -1
- package/dist/actions/add-default-role-to-users.d.mts +10 -3
- package/dist/actions/add-default-role-to-users.d.mts.map +1 -1
- package/dist/actions/add-default-role-to-users.mjs.map +1 -1
- package/dist/actions/create-attr-definition.cjs.map +1 -1
- package/dist/actions/create-attr-definition.d.cts +32 -3
- package/dist/actions/create-attr-definition.d.cts.map +1 -1
- package/dist/actions/create-attr-definition.d.mts +32 -3
- package/dist/actions/create-attr-definition.d.mts.map +1 -1
- package/dist/actions/create-attr-definition.mjs.map +1 -1
- package/dist/actions/create-prompt-post.cjs.map +1 -1
- package/dist/actions/create-prompt-post.d.cts +23 -3
- package/dist/actions/create-prompt-post.d.cts.map +1 -1
- package/dist/actions/create-prompt-post.d.mts +23 -3
- package/dist/actions/create-prompt-post.d.mts.map +1 -1
- package/dist/actions/create-prompt-post.mjs.map +1 -1
- package/dist/actions/delete-attr-definition.cjs +1 -1
- package/dist/actions/delete-attr-definition.cjs.map +1 -1
- package/dist/actions/delete-attr-definition.d.cts +16 -3
- package/dist/actions/delete-attr-definition.d.cts.map +1 -1
- package/dist/actions/delete-attr-definition.d.mts +16 -3
- package/dist/actions/delete-attr-definition.d.mts.map +1 -1
- package/dist/actions/delete-attr-definition.mjs +1 -1
- package/dist/actions/delete-attr-definition.mjs.map +1 -1
- package/dist/actions/delete-document.cjs.map +1 -1
- package/dist/actions/delete-document.d.cts +27 -3
- package/dist/actions/delete-document.d.cts.map +1 -1
- package/dist/actions/delete-document.d.mts +27 -3
- package/dist/actions/delete-document.d.mts.map +1 -1
- package/dist/actions/delete-document.mjs.map +1 -1
- package/dist/actions/delete-user-attributes.cjs +2 -2
- package/dist/actions/delete-user-attributes.cjs.map +1 -1
- package/dist/actions/delete-user-attributes.d.cts +26 -3
- package/dist/actions/delete-user-attributes.d.cts.map +1 -1
- package/dist/actions/delete-user-attributes.d.mts +26 -3
- package/dist/actions/delete-user-attributes.d.mts.map +1 -1
- package/dist/actions/delete-user-attributes.mjs +2 -2
- package/dist/actions/delete-user-attributes.mjs.map +1 -1
- package/dist/actions/get-document.cjs +4 -4
- package/dist/actions/get-document.cjs.map +1 -1
- package/dist/actions/get-document.d.cts +24 -3
- package/dist/actions/get-document.d.cts.map +1 -1
- package/dist/actions/get-document.d.mts +24 -3
- package/dist/actions/get-document.d.mts.map +1 -1
- package/dist/actions/get-document.mjs +4 -4
- 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 +46 -3
- package/dist/actions/get-invite-by-token.d.cts.map +1 -1
- package/dist/actions/get-invite-by-token.d.mts +46 -3
- package/dist/actions/get-invite-by-token.d.mts.map +1 -1
- package/dist/actions/get-invite-by-token.mjs +1 -1
- package/dist/actions/get-invite-by-token.mjs.map +1 -1
- package/dist/actions/get-org-role.cjs +6 -6
- package/dist/actions/get-org-role.cjs.map +1 -1
- package/dist/actions/get-org-role.d.cts +27 -3
- package/dist/actions/get-org-role.d.cts.map +1 -1
- package/dist/actions/get-org-role.d.mts +27 -3
- package/dist/actions/get-org-role.d.mts.map +1 -1
- package/dist/actions/get-org-role.mjs +6 -6
- package/dist/actions/get-org-role.mjs.map +1 -1
- package/dist/actions/get-permission.cjs +7 -7
- package/dist/actions/get-permission.cjs.map +1 -1
- package/dist/actions/get-permission.d.cts +25 -3
- package/dist/actions/get-permission.d.cts.map +1 -1
- package/dist/actions/get-permission.d.mts +25 -3
- package/dist/actions/get-permission.d.mts.map +1 -1
- package/dist/actions/get-permission.mjs +7 -7
- package/dist/actions/get-permission.mjs.map +1 -1
- package/dist/actions/get-project.cjs +2 -2
- package/dist/actions/get-project.cjs.map +1 -1
- package/dist/actions/get-project.d.cts +34 -3
- package/dist/actions/get-project.d.cts.map +1 -1
- package/dist/actions/get-project.d.mts +34 -3
- package/dist/actions/get-project.d.mts.map +1 -1
- package/dist/actions/get-project.mjs +2 -2
- package/dist/actions/get-project.mjs.map +1 -1
- package/dist/actions/get-robots.cjs +4 -4
- package/dist/actions/get-robots.cjs.map +1 -1
- package/dist/actions/get-robots.d.cts +37 -3
- package/dist/actions/get-robots.d.cts.map +1 -1
- package/dist/actions/get-robots.d.mts +37 -3
- package/dist/actions/get-robots.d.mts.map +1 -1
- package/dist/actions/get-robots.mjs +4 -4
- package/dist/actions/get-robots.mjs.map +1 -1
- package/dist/actions/get-role.cjs +6 -6
- package/dist/actions/get-role.cjs.map +1 -1
- package/dist/actions/get-role.d.cts +33 -3
- package/dist/actions/get-role.d.cts.map +1 -1
- package/dist/actions/get-role.d.mts +33 -3
- package/dist/actions/get-role.d.mts.map +1 -1
- package/dist/actions/get-role.mjs +6 -6
- package/dist/actions/get-role.mjs.map +1 -1
- package/dist/actions/get-users.cjs.map +1 -1
- package/dist/actions/get-users.d.cts +28 -3
- package/dist/actions/get-users.d.cts.map +1 -1
- package/dist/actions/get-users.d.mts +28 -3
- package/dist/actions/get-users.d.mts.map +1 -1
- package/dist/actions/get-users.mjs.map +1 -1
- package/dist/actions/list-org-roles.cjs +2 -2
- package/dist/actions/list-org-roles.cjs.map +1 -1
- package/dist/actions/list-org-roles.d.cts +16 -3
- package/dist/actions/list-org-roles.d.cts.map +1 -1
- package/dist/actions/list-org-roles.d.mts +16 -3
- package/dist/actions/list-org-roles.d.mts.map +1 -1
- package/dist/actions/list-org-roles.mjs +2 -2
- package/dist/actions/list-org-roles.mjs.map +1 -1
- package/dist/actions/list-user-attributes.cjs +4 -4
- package/dist/actions/list-user-attributes.cjs.map +1 -1
- package/dist/actions/list-user-attributes.d.cts +23 -3
- package/dist/actions/list-user-attributes.d.cts.map +1 -1
- package/dist/actions/list-user-attributes.d.mts +23 -3
- package/dist/actions/list-user-attributes.d.mts.map +1 -1
- package/dist/actions/list-user-attributes.mjs +4 -4
- package/dist/actions/list-user-attributes.mjs.map +1 -1
- package/dist/actions/query-all-screening.cjs.map +1 -1
- package/dist/actions/query-all-screening.d.cts +20 -3
- package/dist/actions/query-all-screening.d.cts.map +1 -1
- package/dist/actions/query-all-screening.d.mts +20 -3
- package/dist/actions/query-all-screening.d.mts.map +1 -1
- package/dist/actions/query-all-screening.mjs.map +1 -1
- package/dist/actions/query-documents.cjs.map +1 -1
- package/dist/actions/query-documents.d.cts +31 -3
- package/dist/actions/query-documents.d.cts.map +1 -1
- package/dist/actions/query-documents.d.mts +31 -3
- package/dist/actions/query-documents.d.mts.map +1 -1
- package/dist/actions/query-documents.mjs.map +1 -1
- package/dist/actions/update-org-acl.cjs +1 -1
- package/dist/actions/update-org-acl.cjs.map +1 -1
- package/dist/actions/update-org-acl.d.cts +13 -3
- package/dist/actions/update-org-acl.d.cts.map +1 -1
- package/dist/actions/update-org-acl.d.mts +13 -3
- package/dist/actions/update-org-acl.d.mts.map +1 -1
- package/dist/actions/update-org-acl.mjs +1 -1
- package/dist/actions/update-org-acl.mjs.map +1 -1
- package/dist/actions/update-user-attributes-values.cjs +4 -4
- package/dist/actions/update-user-attributes-values.cjs.map +1 -1
- package/dist/actions/update-user-attributes-values.d.cts +27 -3
- package/dist/actions/update-user-attributes-values.d.cts.map +1 -1
- package/dist/actions/update-user-attributes-values.d.mts +27 -3
- package/dist/actions/update-user-attributes-values.d.mts.map +1 -1
- package/dist/actions/update-user-attributes-values.mjs +4 -4
- package/dist/actions/update-user-attributes-values.mjs.map +1 -1
- package/dist/actions/validate-credential.cjs +1 -1
- package/dist/actions/validate-credential.cjs.map +1 -1
- package/dist/actions/validate-credential.d.cts +17 -3
- package/dist/actions/validate-credential.d.cts.map +1 -1
- package/dist/actions/validate-credential.d.mts +17 -3
- package/dist/actions/validate-credential.d.mts.map +1 -1
- package/dist/actions/validate-credential.mjs +1 -1
- package/dist/actions/validate-credential.mjs.map +1 -1
- package/dist/catalog.cjs +18 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +17 -0
- package/dist/catalog.d.mts +17 -0
- package/dist/catalog.mjs +18 -1
- package/dist/catalog.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1,9 +1,33 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/update-user-attributes-values.d.ts
|
|
4
|
-
declare const SanityUpdateUserAttributesValuesInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SanityUpdateUserAttributesValuesInput: z.ZodObject<{
|
|
5
|
+
userId: z.ZodString;
|
|
6
|
+
attributes: z.ZodObject<{}, z.core.$strip>;
|
|
7
|
+
resourceId: z.ZodString;
|
|
8
|
+
resourceType: z.ZodEnum<{
|
|
9
|
+
organization: "organization";
|
|
10
|
+
project: "project";
|
|
11
|
+
}>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
declare const SanityUpdateUserAttributesValuesOutput: z.ZodObject<{
|
|
14
|
+
updatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
attributes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
16
|
+
key: z.ZodNullable<z.ZodString>;
|
|
17
|
+
type: z.ZodNullable<z.ZodString>;
|
|
18
|
+
values: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
|
|
19
|
+
activeValue: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
|
|
20
|
+
activeSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
}, z.core.$strip>>>>;
|
|
22
|
+
sanityUserId: z.ZodNullable<z.ZodString>;
|
|
23
|
+
organizationId: z.ZodNullable<z.ZodString>;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
declare const sanityUpdateUserAttributesValues: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
26
|
+
userId: string;
|
|
27
|
+
attributes: Record<string, never>;
|
|
28
|
+
resourceId: string;
|
|
29
|
+
resourceType: "organization" | "project";
|
|
30
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
31
|
//#endregion
|
|
8
32
|
export { sanityUpdateUserAttributesValues };
|
|
9
33
|
//# sourceMappingURL=update-user-attributes-values.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-user-attributes-values.d.cts","names":[],"sources":["../../src/actions/update-user-attributes-values.ts"],"mappings":";;;cAIa,qCAAA,
|
|
1
|
+
{"version":3,"file":"update-user-attributes-values.d.cts","names":[],"sources":["../../src/actions/update-user-attributes-values.ts"],"mappings":";;;cAIa,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;;;;;;cAcrC,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;;;;;;;;;;cAOtC,gCAAA,gCAAgC,wBAAA;;cAM3C,MAAA"}
|
|
@@ -1,9 +1,33 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/update-user-attributes-values.d.ts
|
|
4
|
-
declare const SanityUpdateUserAttributesValuesInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SanityUpdateUserAttributesValuesInput: z.ZodObject<{
|
|
5
|
+
userId: z.ZodString;
|
|
6
|
+
attributes: z.ZodObject<{}, z.core.$strip>;
|
|
7
|
+
resourceId: z.ZodString;
|
|
8
|
+
resourceType: z.ZodEnum<{
|
|
9
|
+
organization: "organization";
|
|
10
|
+
project: "project";
|
|
11
|
+
}>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
declare const SanityUpdateUserAttributesValuesOutput: z.ZodObject<{
|
|
14
|
+
updatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
attributes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
16
|
+
key: z.ZodNullable<z.ZodString>;
|
|
17
|
+
type: z.ZodNullable<z.ZodString>;
|
|
18
|
+
values: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
|
|
19
|
+
activeValue: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
|
|
20
|
+
activeSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
}, z.core.$strip>>>>;
|
|
22
|
+
sanityUserId: z.ZodNullable<z.ZodString>;
|
|
23
|
+
organizationId: z.ZodNullable<z.ZodString>;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
declare const sanityUpdateUserAttributesValues: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
26
|
+
userId: string;
|
|
27
|
+
attributes: Record<string, never>;
|
|
28
|
+
resourceId: string;
|
|
29
|
+
resourceType: "organization" | "project";
|
|
30
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
31
|
//#endregion
|
|
8
32
|
export { sanityUpdateUserAttributesValues };
|
|
9
33
|
//# sourceMappingURL=update-user-attributes-values.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-user-attributes-values.d.mts","names":[],"sources":["../../src/actions/update-user-attributes-values.ts"],"mappings":";;;cAIa,qCAAA,
|
|
1
|
+
{"version":3,"file":"update-user-attributes-values.d.mts","names":[],"sources":["../../src/actions/update-user-attributes-values.ts"],"mappings":";;;cAIa,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;;;;;;cAcrC,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;;;;;;;;;;cAOtC,gCAAA,gCAAgC,wBAAA;;cAM3C,MAAA"}
|
|
@@ -9,8 +9,8 @@ const SanityUpdateUserAttributesValuesInput = z.object({
|
|
|
9
9
|
}).describe("Request model for updating user attribute values.");
|
|
10
10
|
const SanityUpdateUserAttributesValues_JsonValueSchema = z.unknown();
|
|
11
11
|
const SanityUpdateUserAttributesValues_UserAttributeSchema = z.object({
|
|
12
|
-
key: z.string().describe("The attribute key."),
|
|
13
|
-
type: z.string().describe("The attribute type (e.g., 'string', 'integer', 'boolean')."),
|
|
12
|
+
key: z.string().describe("The attribute key.").nullable(),
|
|
13
|
+
type: z.string().describe("The attribute type (e.g., 'string', 'integer', 'boolean').").nullable(),
|
|
14
14
|
values: z.object({}).describe("The attribute values from different sources (e.g., {'sanity': 'value', 'saml': 'value'}).").nullable().optional(),
|
|
15
15
|
activeValue: SanityUpdateUserAttributesValues_JsonValueSchema.nullable().optional(),
|
|
16
16
|
activeSource: z.string().describe("The active source for the attribute value ('sanity' or 'saml').").nullable().optional()
|
|
@@ -23,8 +23,8 @@ const sanityUpdateUserAttributesValues = action("SANITY_UPDATE_USER_ATTRIBUTES_V
|
|
|
23
23
|
output: z.object({
|
|
24
24
|
updatedAt: z.string().describe("ISO 8601 timestamp of when the attributes were updated.").nullable().optional(),
|
|
25
25
|
attributes: z.array(SanityUpdateUserAttributesValues_UserAttributeSchema).describe("The updated list of user attributes.").nullable().optional(),
|
|
26
|
-
sanityUserId: z.string().describe("The Sanity user ID."),
|
|
27
|
-
organizationId: z.string().describe("The unique identifier of the organization.")
|
|
26
|
+
sanityUserId: z.string().describe("The Sanity user ID.").nullable(),
|
|
27
|
+
organizationId: z.string().describe("The unique identifier of the organization.").nullable()
|
|
28
28
|
}).describe("Response model for user attribute values update.")
|
|
29
29
|
});
|
|
30
30
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-user-attributes-values.mjs","names":[],"sources":["../../src/actions/update-user-attributes-values.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityUpdateUserAttributesValuesInput
|
|
1
|
+
{"version":3,"file":"update-user-attributes-values.mjs","names":[],"sources":["../../src/actions/update-user-attributes-values.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityUpdateUserAttributesValuesInput = z.object({\n userId: z.string().describe(\"The unique identifier of the user whose attributes to update.\"),\n attributes: z.object({}).describe(\"A dictionary of attribute key-value pairs to set for the user. Values can be strings, numbers, booleans, arrays, or nested objects. These will shadow any SAML values for the same keys.\"),\n resourceId: z.string().describe(\"The unique identifier of the resource. For organizations, this is the organization ID.\"),\n resourceType: z.enum([\"organization\", \"project\"]).describe(\"The type of resource that scopes the user attributes (e.g., 'organization' or 'project').\"),\n}).describe(\"Request model for updating user attribute values.\");\nconst SanityUpdateUserAttributesValues_JsonValueSchema = z.unknown();\nconst SanityUpdateUserAttributesValues_UserAttributeSchema = z.object({\n key: z.string().describe(\"The attribute key.\").nullable(),\n type: z.string().describe(\"The attribute type (e.g., 'string', 'integer', 'boolean').\").nullable(),\n values: z.object({}).describe(\"The attribute values from different sources (e.g., {'sanity': 'value', 'saml': 'value'}).\").nullable().optional(),\n activeValue: SanityUpdateUserAttributesValues_JsonValueSchema.nullable().optional(),\n activeSource: z.string().describe(\"The active source for the attribute value ('sanity' or 'saml').\").nullable().optional(),\n}).describe(\"A user attribute with its values from different sources.\");\nexport const SanityUpdateUserAttributesValuesOutput = z.object({\n updatedAt: z.string().describe(\"ISO 8601 timestamp of when the attributes were updated.\").nullable().optional(),\n attributes: z.array(SanityUpdateUserAttributesValues_UserAttributeSchema).describe(\"The updated list of user attributes.\").nullable().optional(),\n sanityUserId: z.string().describe(\"The Sanity user ID.\").nullable(),\n organizationId: z.string().describe(\"The unique identifier of the organization.\").nullable(),\n}).describe(\"Response model for user attribute values update.\");\n\nexport const sanityUpdateUserAttributesValues = action(\"SANITY_UPDATE_USER_ATTRIBUTES_VALUES\", {\n slug: \"sanity-update-user-attributes-values\",\n name: \"Update User Attributes Values\",\n description: \"Update user attribute values for a resource. Use this action to set or update custom attributes for a user within an organization or project. When setting a value for an attribute key that also exists in SAML, the Sanity value will take precedence and shadow the SAML value.\",\n input: SanityUpdateUserAttributesValuesInput,\n output: SanityUpdateUserAttributesValuesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wCAAwC,EAAE,OAAO;CAC5D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D;CAC3F,YAAY,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,0LAA0L;CAC5N,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF;CACxH,cAAc,EAAE,KAAK,CAAC,gBAAgB,SAAS,CAAC,CAAC,CAAC,SAAS,2FAA2F;AACxJ,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAM,mDAAmD,EAAE,QAAQ;AACnE,MAAM,uDAAuD,EAAE,OAAO;CACpE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CACxD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACjG,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/I,aAAa,iDAAiD,SAAS,CAAC,CAAC,SAAS;CAClF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3H,CAAC,CAAC,CAAC,SAAS,0DAA0D;AAQtE,MAAa,mCAAmC,OAAO,wCAAwC;CAC7F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZoD,EAAE,OAAO;EAC7D,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9G,YAAY,EAAE,MAAM,oDAAoD,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/I,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;EAClE,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CAC7F,CAAC,CAAC,CAAC,SAAS,kDAOF;AACV,CAAC"}
|
|
@@ -16,7 +16,7 @@ const SanityValidateCredential_ProjectInfoSchema = zod.z.object({
|
|
|
16
16
|
const SanityValidateCredentialOutput = zod.z.object({
|
|
17
17
|
user: SanityValidateCredential_UserInfoSchema.nullable().optional(),
|
|
18
18
|
error: zod.z.string().describe("Error message if validation failed.").nullable().optional(),
|
|
19
|
-
valid: zod.z.boolean().describe("Whether the credential is valid and authenticated successfully."),
|
|
19
|
+
valid: zod.z.boolean().describe("Whether the credential is valid and authenticated successfully.").nullable(),
|
|
20
20
|
projects: zod.z.array(SanityValidateCredential_ProjectInfoSchema).describe("List of projects the user has access to, if available.").nullable().optional()
|
|
21
21
|
}).describe("Response model for credential validation.");
|
|
22
22
|
const sanityValidateCredential = require_action.action("SANITY_VALIDATE_CREDENTIAL", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validate-credential.cjs","names":["z","action"],"sources":["../../src/actions/validate-credential.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityValidateCredentialInput
|
|
1
|
+
{"version":3,"file":"validate-credential.cjs","names":["z","action"],"sources":["../../src/actions/validate-credential.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityValidateCredentialInput = z.object({}).describe(\"Request model for validating Sanity API credentials.\\nNo parameters required - uses the token from metadata headers.\");\nconst SanityValidateCredential_UserInfoSchema = z.object({\n id: z.string().describe(\"The unique identifier of the user.\").nullable().optional(),\n name: z.string().describe(\"The display name of the user.\").nullable().optional(),\n email: z.string().describe(\"The email address of the user.\").nullable().optional(),\n profileImage: z.string().describe(\"URL to the user's profile image.\").nullable().optional(),\n}).describe(\"Information about the authenticated user.\");\nconst SanityValidateCredential_ProjectInfoSchema = z.object({\n id: z.string().describe(\"The unique identifier of the project.\").nullable().optional(),\n displayName: z.string().describe(\"The display name of the project.\").nullable().optional(),\n organizationId: z.string().describe(\"The organization ID the project belongs to.\").nullable().optional(),\n}).describe(\"Information about a project the user has access to.\");\nexport const SanityValidateCredentialOutput = z.object({\n user: SanityValidateCredential_UserInfoSchema.nullable().optional(),\n error: z.string().describe(\"Error message if validation failed.\").nullable().optional(),\n valid: z.boolean().describe(\"Whether the credential is valid and authenticated successfully.\").nullable(),\n projects: z.array(SanityValidateCredential_ProjectInfoSchema).describe(\"List of projects the user has access to, if available.\").nullable().optional(),\n}).describe(\"Response model for credential validation.\");\n\nexport const sanityValidateCredential = action(\"SANITY_VALIDATE_CREDENTIAL\", {\n slug: \"sanity-validate-credential\",\n name: \"Validate Credential\",\n description: \"Validate Sanity API credentials by fetching the authenticated user's information. Use this action when you need to verify that an API token is valid and has proper authentication. This action returns user information and accessible projects if the token is valid.\",\n input: SanityValidateCredentialInput,\n output: SanityValidateCredentialOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,sHAAsH;AACzL,MAAM,0CAA0CA,IAAAA,EAAE,OAAO;CACvD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,SAAS,2CAA2C;AACvD,MAAM,6CAA6CA,IAAAA,EAAE,OAAO;CAC1D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzG,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,MAAM,wCAAwC,SAAS,CAAC,CAAC,SAAS;CAClE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CACxG,UAAUA,IAAAA,EAAE,MAAM,0CAA0C,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvJ,CAAC,CAAC,CAAC,SAAS,2CAA2C;AAEvD,MAAa,2BAA2BC,eAAAA,OAAO,8BAA8B;CAC3E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,23 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/validate-credential.d.ts
|
|
4
|
-
declare const SanityValidateCredentialInput: z.
|
|
5
|
-
declare const SanityValidateCredentialOutput: z.
|
|
6
|
-
|
|
4
|
+
declare const SanityValidateCredentialInput: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
declare const SanityValidateCredentialOutput: z.ZodObject<{
|
|
6
|
+
user: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
7
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
+
profileImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
+
}, z.core.$strip>>>;
|
|
12
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
valid: z.ZodNullable<z.ZodBoolean>;
|
|
14
|
+
projects: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
15
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
organizationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
}, z.core.$strip>>>>;
|
|
19
|
+
}, z.core.$strip>;
|
|
20
|
+
declare const sanityValidateCredential: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
21
|
//#endregion
|
|
8
22
|
export { sanityValidateCredential };
|
|
9
23
|
//# sourceMappingURL=validate-credential.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validate-credential.d.cts","names":[],"sources":["../../src/actions/validate-credential.ts"],"mappings":";;;cAIa,6BAAA,
|
|
1
|
+
{"version":3,"file":"validate-credential.d.cts","names":[],"sources":["../../src/actions/validate-credential.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAY7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAO9B,wBAAA,gCAAwB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -1,9 +1,23 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/validate-credential.d.ts
|
|
4
|
-
declare const SanityValidateCredentialInput: z.
|
|
5
|
-
declare const SanityValidateCredentialOutput: z.
|
|
6
|
-
|
|
4
|
+
declare const SanityValidateCredentialInput: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
declare const SanityValidateCredentialOutput: z.ZodObject<{
|
|
6
|
+
user: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
7
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
+
profileImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
+
}, z.core.$strip>>>;
|
|
12
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
valid: z.ZodNullable<z.ZodBoolean>;
|
|
14
|
+
projects: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
15
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
organizationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
}, z.core.$strip>>>>;
|
|
19
|
+
}, z.core.$strip>;
|
|
20
|
+
declare const sanityValidateCredential: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
21
|
//#endregion
|
|
8
22
|
export { sanityValidateCredential };
|
|
9
23
|
//# sourceMappingURL=validate-credential.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validate-credential.d.mts","names":[],"sources":["../../src/actions/validate-credential.ts"],"mappings":";;;cAIa,6BAAA,
|
|
1
|
+
{"version":3,"file":"validate-credential.d.mts","names":[],"sources":["../../src/actions/validate-credential.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAY7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAO9B,wBAAA,gCAAwB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -21,7 +21,7 @@ const sanityValidateCredential = action("SANITY_VALIDATE_CREDENTIAL", {
|
|
|
21
21
|
output: z.object({
|
|
22
22
|
user: SanityValidateCredential_UserInfoSchema.nullable().optional(),
|
|
23
23
|
error: z.string().describe("Error message if validation failed.").nullable().optional(),
|
|
24
|
-
valid: z.boolean().describe("Whether the credential is valid and authenticated successfully."),
|
|
24
|
+
valid: z.boolean().describe("Whether the credential is valid and authenticated successfully.").nullable(),
|
|
25
25
|
projects: z.array(SanityValidateCredential_ProjectInfoSchema).describe("List of projects the user has access to, if available.").nullable().optional()
|
|
26
26
|
}).describe("Response model for credential validation.")
|
|
27
27
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validate-credential.mjs","names":[],"sources":["../../src/actions/validate-credential.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityValidateCredentialInput
|
|
1
|
+
{"version":3,"file":"validate-credential.mjs","names":[],"sources":["../../src/actions/validate-credential.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SanityValidateCredentialInput = z.object({}).describe(\"Request model for validating Sanity API credentials.\\nNo parameters required - uses the token from metadata headers.\");\nconst SanityValidateCredential_UserInfoSchema = z.object({\n id: z.string().describe(\"The unique identifier of the user.\").nullable().optional(),\n name: z.string().describe(\"The display name of the user.\").nullable().optional(),\n email: z.string().describe(\"The email address of the user.\").nullable().optional(),\n profileImage: z.string().describe(\"URL to the user's profile image.\").nullable().optional(),\n}).describe(\"Information about the authenticated user.\");\nconst SanityValidateCredential_ProjectInfoSchema = z.object({\n id: z.string().describe(\"The unique identifier of the project.\").nullable().optional(),\n displayName: z.string().describe(\"The display name of the project.\").nullable().optional(),\n organizationId: z.string().describe(\"The organization ID the project belongs to.\").nullable().optional(),\n}).describe(\"Information about a project the user has access to.\");\nexport const SanityValidateCredentialOutput = z.object({\n user: SanityValidateCredential_UserInfoSchema.nullable().optional(),\n error: z.string().describe(\"Error message if validation failed.\").nullable().optional(),\n valid: z.boolean().describe(\"Whether the credential is valid and authenticated successfully.\").nullable(),\n projects: z.array(SanityValidateCredential_ProjectInfoSchema).describe(\"List of projects the user has access to, if available.\").nullable().optional(),\n}).describe(\"Response model for credential validation.\");\n\nexport const sanityValidateCredential = action(\"SANITY_VALIDATE_CREDENTIAL\", {\n slug: \"sanity-validate-credential\",\n name: \"Validate Credential\",\n description: \"Validate Sanity API credentials by fetching the authenticated user's information. Use this action when you need to verify that an API token is valid and has proper authentication. This action returns user information and accessible projects if the token is valid.\",\n input: SanityValidateCredentialInput,\n output: SanityValidateCredentialOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,sHAAsH;AACzL,MAAM,0CAA0C,EAAE,OAAO;CACvD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,SAAS,2CAA2C;AACvD,MAAM,6CAA6C,EAAE,OAAO;CAC1D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzG,CAAC,CAAC,CAAC,SAAS,qDAAqD;AAQjE,MAAa,2BAA2B,OAAO,8BAA8B;CAC3E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZ4C,EAAE,OAAO;EACrD,MAAM,wCAAwC,SAAS,CAAC,CAAC,SAAS;EAClE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtF,OAAO,EAAE,QAAQ,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;EACxG,UAAU,EAAE,MAAM,0CAA0C,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvJ,CAAC,CAAC,CAAC,SAAS,2CAOF;AACV,CAAC"}
|
package/dist/catalog.cjs
CHANGED
|
@@ -7,7 +7,24 @@ const sanityCatalog = {
|
|
|
7
7
|
"category": "Developer Tools",
|
|
8
8
|
"logo": "https://logos.composio.dev/api/sanity",
|
|
9
9
|
"authKind": "keystroke",
|
|
10
|
-
"oauthScopes": []
|
|
10
|
+
"oauthScopes": [],
|
|
11
|
+
"credentialFields": {
|
|
12
|
+
"subdomain": {
|
|
13
|
+
"label": "Project ID",
|
|
14
|
+
"description": "Your Sanity project ID (found in project settings or from sanity.json)"
|
|
15
|
+
},
|
|
16
|
+
"version": {
|
|
17
|
+
"label": "API Version",
|
|
18
|
+
"description": "API version in YYYY-MM-DD format (e.g., 2021-06-07)",
|
|
19
|
+
"default": "2021-06-07"
|
|
20
|
+
},
|
|
21
|
+
"api_key": {
|
|
22
|
+
"label": "API Token",
|
|
23
|
+
"secret": true,
|
|
24
|
+
"description": "Your Sanity API token (personal token, robot token, or project token). Create one at: Manage > API > Tokens in your Sanity project settings, or use \"sanity debug --secrets\" CLI command"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"credentialScheme": "API_KEY"
|
|
11
28
|
};
|
|
12
29
|
//#endregion
|
|
13
30
|
exports.sanityCatalog = sanityCatalog;
|
package/dist/catalog.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalog.cjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const sanityCatalog = {\n \"slug\": \"sanity\",\n \"name\": \"Sanity\",\n \"description\": \"Sanity is a headless CMS platform that provides structured content storage and APIs for modern applications\",\n \"category\": \"Developer Tools\",\n \"logo\": \"https://logos.composio.dev/api/sanity\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,gBAAgB;CAC3B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"catalog.cjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const sanityCatalog = {\n \"slug\": \"sanity\",\n \"name\": \"Sanity\",\n \"description\": \"Sanity is a headless CMS platform that provides structured content storage and APIs for modern applications\",\n \"category\": \"Developer Tools\",\n \"logo\": \"https://logos.composio.dev/api/sanity\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": [],\n \"credentialFields\": {\n \"subdomain\": {\n \"label\": \"Project ID\",\n \"description\": \"Your Sanity project ID (found in project settings or from sanity.json)\"\n },\n \"version\": {\n \"label\": \"API Version\",\n \"description\": \"API version in YYYY-MM-DD format (e.g., 2021-06-07)\",\n \"default\": \"2021-06-07\"\n },\n \"api_key\": {\n \"label\": \"API Token\",\n \"secret\": true,\n \"description\": \"Your Sanity API token (personal token, robot token, or project token). Create one at: Manage > API > Tokens in your Sanity project settings, or use \\\"sanity debug --secrets\\\" CLI command\"\n }\n },\n \"credentialScheme\": \"API_KEY\"\n} as const;\n"],"mappings":";;AACA,MAAa,gBAAgB;CAC3B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;CAChB,oBAAoB;EAClB,aAAa;GACX,SAAS;GACT,eAAe;EACjB;EACA,WAAW;GACT,SAAS;GACT,eAAe;GACf,WAAW;EACb;EACA,WAAW;GACT,SAAS;GACT,UAAU;GACV,eAAe;EACjB;CACF;CACA,oBAAoB;AACtB"}
|
package/dist/catalog.d.cts
CHANGED
|
@@ -8,6 +8,23 @@ declare const sanityCatalog: {
|
|
|
8
8
|
readonly logo: "https://logos.composio.dev/api/sanity";
|
|
9
9
|
readonly authKind: "keystroke";
|
|
10
10
|
readonly oauthScopes: readonly [];
|
|
11
|
+
readonly credentialFields: {
|
|
12
|
+
readonly subdomain: {
|
|
13
|
+
readonly label: "Project ID";
|
|
14
|
+
readonly description: "Your Sanity project ID (found in project settings or from sanity.json)";
|
|
15
|
+
};
|
|
16
|
+
readonly version: {
|
|
17
|
+
readonly label: "API Version";
|
|
18
|
+
readonly description: "API version in YYYY-MM-DD format (e.g., 2021-06-07)";
|
|
19
|
+
readonly default: "2021-06-07";
|
|
20
|
+
};
|
|
21
|
+
readonly api_key: {
|
|
22
|
+
readonly label: "API Token";
|
|
23
|
+
readonly secret: true;
|
|
24
|
+
readonly description: "Your Sanity API token (personal token, robot token, or project token). Create one at: Manage > API > Tokens in your Sanity project settings, or use \"sanity debug --secrets\" CLI command";
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
readonly credentialScheme: "API_KEY";
|
|
11
28
|
};
|
|
12
29
|
//#endregion
|
|
13
30
|
export { sanityCatalog };
|
package/dist/catalog.d.mts
CHANGED
|
@@ -8,6 +8,23 @@ declare const sanityCatalog: {
|
|
|
8
8
|
readonly logo: "https://logos.composio.dev/api/sanity";
|
|
9
9
|
readonly authKind: "keystroke";
|
|
10
10
|
readonly oauthScopes: readonly [];
|
|
11
|
+
readonly credentialFields: {
|
|
12
|
+
readonly subdomain: {
|
|
13
|
+
readonly label: "Project ID";
|
|
14
|
+
readonly description: "Your Sanity project ID (found in project settings or from sanity.json)";
|
|
15
|
+
};
|
|
16
|
+
readonly version: {
|
|
17
|
+
readonly label: "API Version";
|
|
18
|
+
readonly description: "API version in YYYY-MM-DD format (e.g., 2021-06-07)";
|
|
19
|
+
readonly default: "2021-06-07";
|
|
20
|
+
};
|
|
21
|
+
readonly api_key: {
|
|
22
|
+
readonly label: "API Token";
|
|
23
|
+
readonly secret: true;
|
|
24
|
+
readonly description: "Your Sanity API token (personal token, robot token, or project token). Create one at: Manage > API > Tokens in your Sanity project settings, or use \"sanity debug --secrets\" CLI command";
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
readonly credentialScheme: "API_KEY";
|
|
11
28
|
};
|
|
12
29
|
//#endregion
|
|
13
30
|
export { sanityCatalog };
|
package/dist/catalog.mjs
CHANGED
|
@@ -7,7 +7,24 @@ const sanityCatalog = {
|
|
|
7
7
|
"category": "Developer Tools",
|
|
8
8
|
"logo": "https://logos.composio.dev/api/sanity",
|
|
9
9
|
"authKind": "keystroke",
|
|
10
|
-
"oauthScopes": []
|
|
10
|
+
"oauthScopes": [],
|
|
11
|
+
"credentialFields": {
|
|
12
|
+
"subdomain": {
|
|
13
|
+
"label": "Project ID",
|
|
14
|
+
"description": "Your Sanity project ID (found in project settings or from sanity.json)"
|
|
15
|
+
},
|
|
16
|
+
"version": {
|
|
17
|
+
"label": "API Version",
|
|
18
|
+
"description": "API version in YYYY-MM-DD format (e.g., 2021-06-07)",
|
|
19
|
+
"default": "2021-06-07"
|
|
20
|
+
},
|
|
21
|
+
"api_key": {
|
|
22
|
+
"label": "API Token",
|
|
23
|
+
"secret": true,
|
|
24
|
+
"description": "Your Sanity API token (personal token, robot token, or project token). Create one at: Manage > API > Tokens in your Sanity project settings, or use \"sanity debug --secrets\" CLI command"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"credentialScheme": "API_KEY"
|
|
11
28
|
};
|
|
12
29
|
//#endregion
|
|
13
30
|
export { sanityCatalog };
|
package/dist/catalog.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalog.mjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const sanityCatalog = {\n \"slug\": \"sanity\",\n \"name\": \"Sanity\",\n \"description\": \"Sanity is a headless CMS platform that provides structured content storage and APIs for modern applications\",\n \"category\": \"Developer Tools\",\n \"logo\": \"https://logos.composio.dev/api/sanity\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,gBAAgB;CAC3B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"catalog.mjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const sanityCatalog = {\n \"slug\": \"sanity\",\n \"name\": \"Sanity\",\n \"description\": \"Sanity is a headless CMS platform that provides structured content storage and APIs for modern applications\",\n \"category\": \"Developer Tools\",\n \"logo\": \"https://logos.composio.dev/api/sanity\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": [],\n \"credentialFields\": {\n \"subdomain\": {\n \"label\": \"Project ID\",\n \"description\": \"Your Sanity project ID (found in project settings or from sanity.json)\"\n },\n \"version\": {\n \"label\": \"API Version\",\n \"description\": \"API version in YYYY-MM-DD format (e.g., 2021-06-07)\",\n \"default\": \"2021-06-07\"\n },\n \"api_key\": {\n \"label\": \"API Token\",\n \"secret\": true,\n \"description\": \"Your Sanity API token (personal token, robot token, or project token). Create one at: Manage > API > Tokens in your Sanity project settings, or use \\\"sanity debug --secrets\\\" CLI command\"\n }\n },\n \"credentialScheme\": \"API_KEY\"\n} as const;\n"],"mappings":";;AACA,MAAa,gBAAgB;CAC3B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;CAChB,oBAAoB;EAClB,aAAa;GACX,SAAS;GACT,eAAe;EACjB;EACA,WAAW;GACT,SAAS;GACT,eAAe;GACf,WAAW;EACb;EACA,WAAW;GACT,SAAS;GACT,UAAU;GACV,eAAe;EACjB;CACF;CACA,oBAAoB;AACtB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@keystrokehq/sanity",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
|
-
"@keystrokehq/keystroke": "
|
|
34
|
+
"@keystrokehq/keystroke": ">=0.1.4",
|
|
35
35
|
"zod": "^4.4.3"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|