@keystrokehq/accredible_certificates 0.1.0
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/README.md +17 -0
- package/dist/action.cjs +21 -0
- package/dist/action.cjs.map +1 -0
- package/dist/action.mjs +21 -0
- package/dist/action.mjs.map +1 -0
- package/dist/actions/bulk-create-credentials-v2.cjs +84 -0
- package/dist/actions/bulk-create-credentials-v2.cjs.map +1 -0
- package/dist/actions/bulk-create-credentials-v2.d.cts +9 -0
- package/dist/actions/bulk-create-credentials-v2.d.cts.map +1 -0
- package/dist/actions/bulk-create-credentials-v2.d.mts +9 -0
- package/dist/actions/bulk-create-credentials-v2.d.mts.map +1 -0
- package/dist/actions/bulk-create-credentials-v2.mjs +83 -0
- package/dist/actions/bulk-create-credentials-v2.mjs.map +1 -0
- package/dist/actions/clone-group.cjs +97 -0
- package/dist/actions/clone-group.cjs.map +1 -0
- package/dist/actions/clone-group.d.cts +9 -0
- package/dist/actions/clone-group.d.cts.map +1 -0
- package/dist/actions/clone-group.d.mts +9 -0
- package/dist/actions/clone-group.d.mts.map +1 -0
- package/dist/actions/clone-group.mjs +96 -0
- package/dist/actions/clone-group.mjs.map +1 -0
- package/dist/actions/create-attribute-key.cjs +31 -0
- package/dist/actions/create-attribute-key.cjs.map +1 -0
- package/dist/actions/create-attribute-key.d.cts +9 -0
- package/dist/actions/create-attribute-key.d.cts.map +1 -0
- package/dist/actions/create-attribute-key.d.mts +9 -0
- package/dist/actions/create-attribute-key.d.mts.map +1 -0
- package/dist/actions/create-attribute-key.mjs +30 -0
- package/dist/actions/create-attribute-key.mjs.map +1 -0
- package/dist/actions/create-collection.cjs +34 -0
- package/dist/actions/create-collection.cjs.map +1 -0
- package/dist/actions/create-collection.d.cts +9 -0
- package/dist/actions/create-collection.d.cts.map +1 -0
- package/dist/actions/create-collection.d.mts +9 -0
- package/dist/actions/create-collection.d.mts.map +1 -0
- package/dist/actions/create-collection.mjs +33 -0
- package/dist/actions/create-collection.mjs.map +1 -0
- package/dist/actions/create-credential.cjs +131 -0
- package/dist/actions/create-credential.cjs.map +1 -0
- package/dist/actions/create-credential.d.cts +9 -0
- package/dist/actions/create-credential.d.cts.map +1 -0
- package/dist/actions/create-credential.d.mts +9 -0
- package/dist/actions/create-credential.d.mts.map +1 -0
- package/dist/actions/create-credential.mjs +130 -0
- package/dist/actions/create-credential.mjs.map +1 -0
- package/dist/actions/create-evidence-item.cjs +42 -0
- package/dist/actions/create-evidence-item.cjs.map +1 -0
- package/dist/actions/create-evidence-item.d.cts +9 -0
- package/dist/actions/create-evidence-item.d.cts.map +1 -0
- package/dist/actions/create-evidence-item.d.mts +9 -0
- package/dist/actions/create-evidence-item.d.mts.map +1 -0
- package/dist/actions/create-evidence-item.mjs +41 -0
- package/dist/actions/create-evidence-item.mjs.map +1 -0
- package/dist/actions/create-group.cjs +99 -0
- package/dist/actions/create-group.cjs.map +1 -0
- package/dist/actions/create-group.d.cts +9 -0
- package/dist/actions/create-group.d.cts.map +1 -0
- package/dist/actions/create-group.d.mts +9 -0
- package/dist/actions/create-group.d.mts.map +1 -0
- package/dist/actions/create-group.mjs +98 -0
- package/dist/actions/create-group.mjs.map +1 -0
- package/dist/actions/create-reference.cjs +50 -0
- package/dist/actions/create-reference.cjs.map +1 -0
- package/dist/actions/create-reference.d.cts +9 -0
- package/dist/actions/create-reference.d.cts.map +1 -0
- package/dist/actions/create-reference.d.mts +9 -0
- package/dist/actions/create-reference.d.mts.map +1 -0
- package/dist/actions/create-reference.mjs +49 -0
- package/dist/actions/create-reference.mjs.map +1 -0
- package/dist/actions/delete-collection.cjs +19 -0
- package/dist/actions/delete-collection.cjs.map +1 -0
- package/dist/actions/delete-collection.d.cts +9 -0
- package/dist/actions/delete-collection.d.cts.map +1 -0
- package/dist/actions/delete-collection.d.mts +9 -0
- package/dist/actions/delete-collection.d.mts.map +1 -0
- package/dist/actions/delete-collection.mjs +16 -0
- package/dist/actions/delete-collection.mjs.map +1 -0
- package/dist/actions/delete-credential.cjs +19 -0
- package/dist/actions/delete-credential.cjs.map +1 -0
- package/dist/actions/delete-credential.d.cts +9 -0
- package/dist/actions/delete-credential.d.cts.map +1 -0
- package/dist/actions/delete-credential.d.mts +9 -0
- package/dist/actions/delete-credential.d.mts.map +1 -0
- package/dist/actions/delete-credential.mjs +16 -0
- package/dist/actions/delete-credential.mjs.map +1 -0
- package/dist/actions/delete-evidence-item.cjs +23 -0
- package/dist/actions/delete-evidence-item.cjs.map +1 -0
- package/dist/actions/delete-evidence-item.d.cts +9 -0
- package/dist/actions/delete-evidence-item.d.cts.map +1 -0
- package/dist/actions/delete-evidence-item.d.mts +9 -0
- package/dist/actions/delete-evidence-item.d.mts.map +1 -0
- package/dist/actions/delete-evidence-item.mjs +22 -0
- package/dist/actions/delete-evidence-item.mjs.map +1 -0
- package/dist/actions/delete-group.cjs +16 -0
- package/dist/actions/delete-group.cjs.map +1 -0
- package/dist/actions/delete-group.d.cts +9 -0
- package/dist/actions/delete-group.d.cts.map +1 -0
- package/dist/actions/delete-group.d.mts +9 -0
- package/dist/actions/delete-group.d.mts.map +1 -0
- package/dist/actions/delete-group.mjs +13 -0
- package/dist/actions/delete-group.mjs.map +1 -0
- package/dist/actions/delete-reference.cjs +31 -0
- package/dist/actions/delete-reference.cjs.map +1 -0
- package/dist/actions/delete-reference.d.cts +9 -0
- package/dist/actions/delete-reference.d.cts.map +1 -0
- package/dist/actions/delete-reference.d.mts +9 -0
- package/dist/actions/delete-reference.d.mts.map +1 -0
- package/dist/actions/delete-reference.mjs +30 -0
- package/dist/actions/delete-reference.mjs.map +1 -0
- package/dist/actions/generate-pd-fs-for-credentials.cjs +16 -0
- package/dist/actions/generate-pd-fs-for-credentials.cjs.map +1 -0
- package/dist/actions/generate-pd-fs-for-credentials.d.cts +9 -0
- package/dist/actions/generate-pd-fs-for-credentials.d.cts.map +1 -0
- package/dist/actions/generate-pd-fs-for-credentials.d.mts +9 -0
- package/dist/actions/generate-pd-fs-for-credentials.d.mts.map +1 -0
- package/dist/actions/generate-pd-fs-for-credentials.mjs +13 -0
- package/dist/actions/generate-pd-fs-for-credentials.mjs.map +1 -0
- package/dist/actions/get-analytics.cjs +44 -0
- package/dist/actions/get-analytics.cjs.map +1 -0
- package/dist/actions/get-analytics.d.cts +9 -0
- package/dist/actions/get-analytics.d.cts.map +1 -0
- package/dist/actions/get-analytics.d.mts +9 -0
- package/dist/actions/get-analytics.d.mts.map +1 -0
- package/dist/actions/get-analytics.mjs +43 -0
- package/dist/actions/get-analytics.mjs.map +1 -0
- package/dist/actions/get-credential-analytics.cjs +21 -0
- package/dist/actions/get-credential-analytics.cjs.map +1 -0
- package/dist/actions/get-credential-analytics.d.cts +9 -0
- package/dist/actions/get-credential-analytics.d.cts.map +1 -0
- package/dist/actions/get-credential-analytics.d.mts +9 -0
- package/dist/actions/get-credential-analytics.d.mts.map +1 -0
- package/dist/actions/get-credential-analytics.mjs +20 -0
- package/dist/actions/get-credential-analytics.mjs.map +1 -0
- package/dist/actions/get-credential.cjs +62 -0
- package/dist/actions/get-credential.cjs.map +1 -0
- package/dist/actions/get-credential.d.cts +9 -0
- package/dist/actions/get-credential.d.cts.map +1 -0
- package/dist/actions/get-credential.d.mts +9 -0
- package/dist/actions/get-credential.d.mts.map +1 -0
- package/dist/actions/get-credential.mjs +61 -0
- package/dist/actions/get-credential.mjs.map +1 -0
- package/dist/actions/get-department.cjs +32 -0
- package/dist/actions/get-department.cjs.map +1 -0
- package/dist/actions/get-department.d.cts +9 -0
- package/dist/actions/get-department.d.cts.map +1 -0
- package/dist/actions/get-department.d.mts +9 -0
- package/dist/actions/get-department.d.mts.map +1 -0
- package/dist/actions/get-department.mjs +31 -0
- package/dist/actions/get-department.mjs.map +1 -0
- package/dist/actions/get-evidence-item.cjs +29 -0
- package/dist/actions/get-evidence-item.cjs.map +1 -0
- package/dist/actions/get-evidence-item.d.cts +9 -0
- package/dist/actions/get-evidence-item.d.cts.map +1 -0
- package/dist/actions/get-evidence-item.d.mts +9 -0
- package/dist/actions/get-evidence-item.d.mts.map +1 -0
- package/dist/actions/get-evidence-item.mjs +28 -0
- package/dist/actions/get-evidence-item.mjs.map +1 -0
- package/dist/actions/get-group.cjs +53 -0
- package/dist/actions/get-group.cjs.map +1 -0
- package/dist/actions/get-group.d.cts +9 -0
- package/dist/actions/get-group.d.cts.map +1 -0
- package/dist/actions/get-group.d.mts +9 -0
- package/dist/actions/get-group.d.mts.map +1 -0
- package/dist/actions/get-group.mjs +52 -0
- package/dist/actions/get-group.mjs.map +1 -0
- package/dist/actions/get-issuer.cjs +28 -0
- package/dist/actions/get-issuer.cjs.map +1 -0
- package/dist/actions/get-issuer.d.cts +9 -0
- package/dist/actions/get-issuer.d.cts.map +1 -0
- package/dist/actions/get-issuer.d.mts +9 -0
- package/dist/actions/get-issuer.d.mts.map +1 -0
- package/dist/actions/get-issuer.mjs +27 -0
- package/dist/actions/get-issuer.mjs.map +1 -0
- package/dist/actions/get-reference.cjs +31 -0
- package/dist/actions/get-reference.cjs.map +1 -0
- package/dist/actions/get-reference.d.cts +9 -0
- package/dist/actions/get-reference.d.cts.map +1 -0
- package/dist/actions/get-reference.d.mts +9 -0
- package/dist/actions/get-reference.d.mts.map +1 -0
- package/dist/actions/get-reference.mjs +30 -0
- package/dist/actions/get-reference.mjs.map +1 -0
- package/dist/actions/index.cjs +73 -0
- package/dist/actions/index.d.cts +37 -0
- package/dist/actions/index.d.mts +37 -0
- package/dist/actions/index.mjs +37 -0
- package/dist/actions/initialize-badge-designer.cjs +22 -0
- package/dist/actions/initialize-badge-designer.cjs.map +1 -0
- package/dist/actions/initialize-badge-designer.d.cts +9 -0
- package/dist/actions/initialize-badge-designer.d.cts.map +1 -0
- package/dist/actions/initialize-badge-designer.d.mts +9 -0
- package/dist/actions/initialize-badge-designer.d.mts.map +1 -0
- package/dist/actions/initialize-badge-designer.mjs +19 -0
- package/dist/actions/initialize-badge-designer.mjs.map +1 -0
- package/dist/actions/initialize-certificate-designer.cjs +23 -0
- package/dist/actions/initialize-certificate-designer.cjs.map +1 -0
- package/dist/actions/initialize-certificate-designer.d.cts +9 -0
- package/dist/actions/initialize-certificate-designer.d.cts.map +1 -0
- package/dist/actions/initialize-certificate-designer.d.mts +9 -0
- package/dist/actions/initialize-certificate-designer.d.mts.map +1 -0
- package/dist/actions/initialize-certificate-designer.mjs +20 -0
- package/dist/actions/initialize-certificate-designer.mjs.map +1 -0
- package/dist/actions/list-templates.cjs +37 -0
- package/dist/actions/list-templates.cjs.map +1 -0
- package/dist/actions/list-templates.d.cts +9 -0
- package/dist/actions/list-templates.d.cts.map +1 -0
- package/dist/actions/list-templates.d.mts +9 -0
- package/dist/actions/list-templates.d.mts.map +1 -0
- package/dist/actions/list-templates.mjs +36 -0
- package/dist/actions/list-templates.mjs.map +1 -0
- package/dist/actions/search-attribute-keys.cjs +43 -0
- package/dist/actions/search-attribute-keys.cjs.map +1 -0
- package/dist/actions/search-attribute-keys.d.cts +9 -0
- package/dist/actions/search-attribute-keys.d.cts.map +1 -0
- package/dist/actions/search-attribute-keys.d.mts +9 -0
- package/dist/actions/search-attribute-keys.d.mts.map +1 -0
- package/dist/actions/search-attribute-keys.mjs +42 -0
- package/dist/actions/search-attribute-keys.mjs.map +1 -0
- package/dist/actions/search-collections.cjs +52 -0
- package/dist/actions/search-collections.cjs.map +1 -0
- package/dist/actions/search-collections.d.cts +9 -0
- package/dist/actions/search-collections.d.cts.map +1 -0
- package/dist/actions/search-collections.d.mts +9 -0
- package/dist/actions/search-collections.d.mts.map +1 -0
- package/dist/actions/search-collections.mjs +51 -0
- package/dist/actions/search-collections.mjs.map +1 -0
- package/dist/actions/search-credentials-v2.cjs +67 -0
- package/dist/actions/search-credentials-v2.cjs.map +1 -0
- package/dist/actions/search-credentials-v2.d.cts +9 -0
- package/dist/actions/search-credentials-v2.d.cts.map +1 -0
- package/dist/actions/search-credentials-v2.d.mts +9 -0
- package/dist/actions/search-credentials-v2.d.mts.map +1 -0
- package/dist/actions/search-credentials-v2.mjs +66 -0
- package/dist/actions/search-credentials-v2.mjs.map +1 -0
- package/dist/actions/search-departments.cjs +47 -0
- package/dist/actions/search-departments.cjs.map +1 -0
- package/dist/actions/search-departments.d.cts +9 -0
- package/dist/actions/search-departments.d.cts.map +1 -0
- package/dist/actions/search-departments.d.mts +9 -0
- package/dist/actions/search-departments.d.mts.map +1 -0
- package/dist/actions/search-departments.mjs +46 -0
- package/dist/actions/search-departments.mjs.map +1 -0
- package/dist/actions/search-designs.cjs +41 -0
- package/dist/actions/search-designs.cjs.map +1 -0
- package/dist/actions/search-designs.d.cts +9 -0
- package/dist/actions/search-designs.d.cts.map +1 -0
- package/dist/actions/search-designs.d.mts +9 -0
- package/dist/actions/search-designs.d.mts.map +1 -0
- package/dist/actions/search-designs.mjs +40 -0
- package/dist/actions/search-designs.mjs.map +1 -0
- package/dist/actions/search-groups.cjs +72 -0
- package/dist/actions/search-groups.cjs.map +1 -0
- package/dist/actions/search-groups.d.cts +9 -0
- package/dist/actions/search-groups.d.cts.map +1 -0
- package/dist/actions/search-groups.d.mts +9 -0
- package/dist/actions/search-groups.d.mts.map +1 -0
- package/dist/actions/search-groups.mjs +71 -0
- package/dist/actions/search-groups.mjs.map +1 -0
- package/dist/actions/update-credential.cjs +92 -0
- package/dist/actions/update-credential.cjs.map +1 -0
- package/dist/actions/update-credential.d.cts +9 -0
- package/dist/actions/update-credential.d.cts.map +1 -0
- package/dist/actions/update-credential.d.mts +9 -0
- package/dist/actions/update-credential.d.mts.map +1 -0
- package/dist/actions/update-credential.mjs +91 -0
- package/dist/actions/update-credential.mjs.map +1 -0
- package/dist/actions/update-evidence-item.cjs +43 -0
- package/dist/actions/update-evidence-item.cjs.map +1 -0
- package/dist/actions/update-evidence-item.d.cts +9 -0
- package/dist/actions/update-evidence-item.d.cts.map +1 -0
- package/dist/actions/update-evidence-item.d.mts +9 -0
- package/dist/actions/update-evidence-item.d.mts.map +1 -0
- package/dist/actions/update-evidence-item.mjs +42 -0
- package/dist/actions/update-evidence-item.mjs.map +1 -0
- package/dist/actions/update-group.cjs +99 -0
- package/dist/actions/update-group.cjs.map +1 -0
- package/dist/actions/update-group.d.cts +9 -0
- package/dist/actions/update-group.d.cts.map +1 -0
- package/dist/actions/update-group.d.mts +9 -0
- package/dist/actions/update-group.d.mts.map +1 -0
- package/dist/actions/update-group.mjs +98 -0
- package/dist/actions/update-group.mjs.map +1 -0
- package/dist/actions/update-reference.cjs +54 -0
- package/dist/actions/update-reference.cjs.map +1 -0
- package/dist/actions/update-reference.d.cts +9 -0
- package/dist/actions/update-reference.d.cts.map +1 -0
- package/dist/actions/update-reference.d.mts +9 -0
- package/dist/actions/update-reference.d.mts.map +1 -0
- package/dist/actions/update-reference.mjs +53 -0
- package/dist/actions/update-reference.mjs.map +1 -0
- package/dist/actions/view-all-skill-categories.cjs +20 -0
- package/dist/actions/view-all-skill-categories.cjs.map +1 -0
- package/dist/actions/view-all-skill-categories.d.cts +9 -0
- package/dist/actions/view-all-skill-categories.d.cts.map +1 -0
- package/dist/actions/view-all-skill-categories.d.mts +9 -0
- package/dist/actions/view-all-skill-categories.d.mts.map +1 -0
- package/dist/actions/view-all-skill-categories.mjs +19 -0
- package/dist/actions/view-all-skill-categories.mjs.map +1 -0
- package/dist/app.cjs +9 -0
- package/dist/app.cjs.map +1 -0
- package/dist/app.d.cts +5 -0
- package/dist/app.d.cts.map +1 -0
- package/dist/app.d.mts +5 -0
- package/dist/app.d.mts.map +1 -0
- package/dist/app.mjs +10 -0
- package/dist/app.mjs.map +1 -0
- package/dist/catalog.cjs +15 -0
- package/dist/catalog.cjs.map +1 -0
- package/dist/catalog.d.cts +14 -0
- package/dist/catalog.d.cts.map +1 -0
- package/dist/catalog.d.mts +14 -0
- package/dist/catalog.d.mts.map +1 -0
- package/dist/catalog.mjs +15 -0
- package/dist/catalog.mjs.map +1 -0
- package/dist/execute.cjs +18 -0
- package/dist/execute.cjs.map +1 -0
- package/dist/execute.mjs +18 -0
- package/dist/execute.mjs.map +1 -0
- package/dist/index.cjs +78 -0
- package/dist/index.d.cts +39 -0
- package/dist/index.d.mts +39 -0
- package/dist/index.mjs +40 -0
- package/package.json +49 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/search-designs.ts
|
|
4
|
+
const AccredibleCertificatesSearchDesignsInput = z.object({
|
|
5
|
+
kind: z.string().describe("Filter designs by type (e.g., 'certificate', 'badge')").optional(),
|
|
6
|
+
page: z.number().int().default(1).describe("Page number to retrieve, starting from 1").optional(),
|
|
7
|
+
meta_data: z.record(z.string(), z.unknown()).describe("Filter designs by metadata fields. Provide key-value pairs to match against design metadata").optional(),
|
|
8
|
+
page_size: z.number().int().default(50).describe("Number of results per page (maximum 100)").optional()
|
|
9
|
+
}).describe("Request parameters for searching designs.");
|
|
10
|
+
const AccredibleCertificatesSearchDesigns_SearchDesignsMetaSchema = z.object({
|
|
11
|
+
next_page: z.number().int().describe("Next page number, if available").nullable().optional(),
|
|
12
|
+
page_size: z.number().int().describe("Number of results per page").nullable().optional(),
|
|
13
|
+
prev_page: z.number().int().describe("Previous page number, if available").nullable().optional(),
|
|
14
|
+
total_count: z.number().int().describe("Total number of designs matching the search").nullable().optional(),
|
|
15
|
+
total_pages: z.number().int().describe("Total number of pages").nullable().optional(),
|
|
16
|
+
current_page: z.number().int().describe("Current page number").nullable().optional()
|
|
17
|
+
}).describe("Pagination metadata for search results.");
|
|
18
|
+
const AccredibleCertificatesSearchDesigns_DesignSchema = z.object({
|
|
19
|
+
id: z.number().int().describe("Unique identifier for the design"),
|
|
20
|
+
kind: z.string().describe("Type of design (e.g., certificate, badge)").nullable().optional(),
|
|
21
|
+
name: z.string().describe("Name of the design").nullable().optional(),
|
|
22
|
+
group_id: z.number().int().describe("ID of the group this design belongs to").nullable().optional(),
|
|
23
|
+
meta_data: z.record(z.string(), z.unknown()).describe("Additional metadata associated with the design").nullable().optional(),
|
|
24
|
+
created_at: z.string().describe("Timestamp when the design was created (ISO 8601)").nullable().optional(),
|
|
25
|
+
updated_at: z.string().describe("Timestamp when the design was last updated (ISO 8601)").nullable().optional()
|
|
26
|
+
}).describe("Represents a single design/template object from Accredible.");
|
|
27
|
+
const accredibleCertificatesSearchDesigns = action("ACCREDIBLE_CERTIFICATES_SEARCH_DESIGNS", {
|
|
28
|
+
slug: "accredible_certificates-search-designs",
|
|
29
|
+
name: "Search Designs",
|
|
30
|
+
description: "Tool to search for designs (certificate/badge templates). Use when you need to filter designs by type, metadata, or paginate through design results.",
|
|
31
|
+
input: AccredibleCertificatesSearchDesignsInput,
|
|
32
|
+
output: z.object({
|
|
33
|
+
meta: AccredibleCertificatesSearchDesigns_SearchDesignsMetaSchema.nullable().optional(),
|
|
34
|
+
designs: z.array(AccredibleCertificatesSearchDesigns_DesignSchema).describe("List of designs matching the search criteria")
|
|
35
|
+
}).describe("Response containing designs matching the search criteria.")
|
|
36
|
+
});
|
|
37
|
+
//#endregion
|
|
38
|
+
export { accredibleCertificatesSearchDesigns };
|
|
39
|
+
|
|
40
|
+
//# sourceMappingURL=search-designs.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search-designs.mjs","names":[],"sources":["../../src/actions/search-designs.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const AccredibleCertificatesSearchDesignsInput: z.ZodTypeAny = z.object({\n kind: z.string().describe(\"Filter designs by type (e.g., 'certificate', 'badge')\").optional(),\n page: z.number().int().default(1).describe(\"Page number to retrieve, starting from 1\").optional(),\n meta_data: z.record(z.string(), z.unknown()).describe(\"Filter designs by metadata fields. Provide key-value pairs to match against design metadata\").optional(),\n page_size: z.number().int().default(50).describe(\"Number of results per page (maximum 100)\").optional(),\n}).describe(\"Request parameters for searching designs.\");\nconst AccredibleCertificatesSearchDesigns_SearchDesignsMetaSchema: z.ZodTypeAny = z.object({\n next_page: z.number().int().describe(\"Next page number, if available\").nullable().optional(),\n page_size: z.number().int().describe(\"Number of results per page\").nullable().optional(),\n prev_page: z.number().int().describe(\"Previous page number, if available\").nullable().optional(),\n total_count: z.number().int().describe(\"Total number of designs matching the search\").nullable().optional(),\n total_pages: z.number().int().describe(\"Total number of pages\").nullable().optional(),\n current_page: z.number().int().describe(\"Current page number\").nullable().optional(),\n}).describe(\"Pagination metadata for search results.\");\nconst AccredibleCertificatesSearchDesigns_DesignSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier for the design\"),\n kind: z.string().describe(\"Type of design (e.g., certificate, badge)\").nullable().optional(),\n name: z.string().describe(\"Name of the design\").nullable().optional(),\n group_id: z.number().int().describe(\"ID of the group this design belongs to\").nullable().optional(),\n meta_data: z.record(z.string(), z.unknown()).describe(\"Additional metadata associated with the design\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the design was created (ISO 8601)\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when the design was last updated (ISO 8601)\").nullable().optional(),\n}).describe(\"Represents a single design/template object from Accredible.\");\nexport const AccredibleCertificatesSearchDesignsOutput: z.ZodTypeAny = z.object({\n meta: AccredibleCertificatesSearchDesigns_SearchDesignsMetaSchema.nullable().optional(),\n designs: z.array(AccredibleCertificatesSearchDesigns_DesignSchema).describe(\"List of designs matching the search criteria\"),\n}).describe(\"Response containing designs matching the search criteria.\");\n\nexport const accredibleCertificatesSearchDesigns = action(\"ACCREDIBLE_CERTIFICATES_SEARCH_DESIGNS\", {\n slug: \"accredible_certificates-search-designs\",\n name: \"Search Designs\",\n description: \"Tool to search for designs (certificate/badge templates). Use when you need to filter designs by type, metadata, or paginate through design results.\",\n input: AccredibleCertificatesSearchDesignsInput,\n output: AccredibleCertificatesSearchDesignsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2CAAyD,EAAE,OAAO;CAC7E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAC5F,MAAM,EAAE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CAAC,SAAS;CAC3F,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpE,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,WAAW,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5H,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/G,CAAC,CAAC,CAAC,SAAS,6DAA6D;AAMzE,MAAa,sCAAsC,OAAO,0CAA0C;CAClG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVqE,EAAE,OAAO;EAC9E,MAAM,4DAA4D,SAAS,CAAC,CAAC,SAAS;EACtF,SAAS,EAAE,MAAM,gDAAgD,CAAC,CAAC,SAAS,8CAA8C;CAC5H,CAAC,CAAC,CAAC,SAAS,2DAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/search-groups.ts
|
|
4
|
+
const AccredibleCertificatesSearchGroupsInput = zod.z.object({
|
|
5
|
+
ids: zod.z.array(zod.z.number().int()).describe("Limit the list of groups to those with IDs matching the given array").optional(),
|
|
6
|
+
name: zod.z.string().describe("Limit the list of groups to those named with the given string").optional(),
|
|
7
|
+
page: zod.z.number().int().describe("Page number for pagination").optional(),
|
|
8
|
+
meta_data: zod.z.object({}).describe("Key/value pairs for client's own data on group").optional(),
|
|
9
|
+
page_size: zod.z.number().int().describe("Number of results per page, default is 50").optional(),
|
|
10
|
+
end_updated_date: zod.z.string().describe("Date before which groups which have been updated should be returned. Format: YYYY-MM-DD").optional(),
|
|
11
|
+
start_updated_date: zod.z.string().describe("Date after which groups which have been updated should be returned. Format: YYYY-MM-DD").optional()
|
|
12
|
+
}).describe("Request schema for searching groups in Accredible.");
|
|
13
|
+
const AccredibleCertificatesSearchGroups_SearchGroupsMetaSchema = zod.z.object({
|
|
14
|
+
next_page: zod.z.number().int().describe("Next page number, if any").nullable().optional(),
|
|
15
|
+
prev_page: zod.z.number().int().describe("Previous page number, if any").nullable().optional(),
|
|
16
|
+
total_count: zod.z.number().int().describe("Total number of matching groups"),
|
|
17
|
+
total_pages: zod.z.number().int().describe("Total number of pages available"),
|
|
18
|
+
current_page: zod.z.number().int().describe("Current page number")
|
|
19
|
+
}).describe("Pagination metadata for search results.");
|
|
20
|
+
const AccredibleCertificatesSearchGroups_CollectionSchema = zod.z.object({
|
|
21
|
+
id: zod.z.number().int().describe("Collection ID").nullable().optional(),
|
|
22
|
+
name: zod.z.string().describe("Collection name").nullable().optional(),
|
|
23
|
+
description: zod.z.string().describe("Collection description").nullable().optional()
|
|
24
|
+
}).describe("Collection associated with a group.");
|
|
25
|
+
const AccredibleCertificatesSearchGroups_SkillCategorySchema = zod.z.object({
|
|
26
|
+
id: zod.z.number().int().describe("Skill category ID").nullable().optional(),
|
|
27
|
+
name: zod.z.string().describe("Skill category name").nullable().optional()
|
|
28
|
+
}).describe("Skill category associated with a group.");
|
|
29
|
+
const AccredibleCertificatesSearchGroups_GroupSchema = zod.z.object({
|
|
30
|
+
id: zod.z.number().int().describe("Unique identifier for the group"),
|
|
31
|
+
name: zod.z.string().describe("Name of the group"),
|
|
32
|
+
language: zod.z.string().describe("Language code for the group"),
|
|
33
|
+
design_id: zod.z.number().int().describe("Design ID for the group").nullable().optional(),
|
|
34
|
+
meta_data: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Metadata key-value pairs").nullable().optional(),
|
|
35
|
+
attach_pdf: zod.z.boolean().describe("Whether to attach credential PDF to notification email"),
|
|
36
|
+
blockchain: zod.z.boolean().describe("Whether credentials are recorded on blockchain"),
|
|
37
|
+
created_at: zod.z.string().describe("Timestamp when the group was created"),
|
|
38
|
+
signup_url: zod.z.string().describe("Signup URL for enrollment").nullable().optional(),
|
|
39
|
+
updated_at: zod.z.string().describe("Timestamp when the group was last updated"),
|
|
40
|
+
auto_expiry: zod.z.number().int().describe("Years until auto-expiry of credential").nullable().optional(),
|
|
41
|
+
collections: zod.z.array(AccredibleCertificatesSearchGroups_CollectionSchema).describe("Collections associated with the group").nullable().optional(),
|
|
42
|
+
course_link: zod.z.string().describe("URL for course information").nullable().optional(),
|
|
43
|
+
course_name: zod.z.string().describe("Course or achievement name visible to the recipient"),
|
|
44
|
+
design_name: zod.z.string().describe("Design name for the group").nullable().optional(),
|
|
45
|
+
department_id: zod.z.number().int().describe("Department ID").nullable().optional(),
|
|
46
|
+
skill_category: AccredibleCertificatesSearchGroups_SkillCategorySchema.nullable().optional(),
|
|
47
|
+
badge_design_id: zod.z.number().int().describe("Badge design ID").nullable().optional(),
|
|
48
|
+
signup_url_show: zod.z.boolean().describe("Whether to display signup URL").nullable().optional(),
|
|
49
|
+
achievement_type: zod.z.string().describe("Type of achievement for the group").nullable().optional(),
|
|
50
|
+
course_link_show: zod.z.boolean().describe("Whether to display course link").nullable().optional(),
|
|
51
|
+
learning_outcomes: zod.z.array(zod.z.string()).describe("Learning outcomes list for this group").nullable().optional(),
|
|
52
|
+
primary_design_id: zod.z.number().int().describe("Primary design ID").nullable().optional(),
|
|
53
|
+
course_description: zod.z.string().describe("Description of the course or achievement"),
|
|
54
|
+
certificate_design_id: zod.z.number().int().describe("Certificate design ID").nullable().optional(),
|
|
55
|
+
organization_link_show: zod.z.boolean().describe("Whether to display organization link").nullable().optional(),
|
|
56
|
+
generate_private_credential: zod.z.boolean().describe("Whether to generate private credentials").nullable().optional()
|
|
57
|
+
}).describe("Group object returned in search results.");
|
|
58
|
+
const AccredibleCertificatesSearchGroupsOutput = zod.z.object({
|
|
59
|
+
meta: AccredibleCertificatesSearchGroups_SearchGroupsMetaSchema.nullable(),
|
|
60
|
+
groups: zod.z.array(AccredibleCertificatesSearchGroups_GroupSchema).describe("List of matching groups")
|
|
61
|
+
}).describe("Response schema for searching groups.");
|
|
62
|
+
const accredibleCertificatesSearchGroups = require_action.action("ACCREDIBLE_CERTIFICATES_SEARCH_GROUPS", {
|
|
63
|
+
slug: "accredible_certificates-search-groups",
|
|
64
|
+
name: "Search Groups",
|
|
65
|
+
description: "Tool to search for groups in Accredible. Use when you need to filter groups by IDs, name, update dates, or metadata and paginate through results.",
|
|
66
|
+
input: AccredibleCertificatesSearchGroupsInput,
|
|
67
|
+
output: AccredibleCertificatesSearchGroupsOutput
|
|
68
|
+
});
|
|
69
|
+
//#endregion
|
|
70
|
+
exports.accredibleCertificatesSearchGroups = accredibleCertificatesSearchGroups;
|
|
71
|
+
|
|
72
|
+
//# sourceMappingURL=search-groups.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search-groups.cjs","names":["z","action"],"sources":["../../src/actions/search-groups.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const AccredibleCertificatesSearchGroupsInput: z.ZodTypeAny = z.object({\n ids: z.array(z.number().int()).describe(\"Limit the list of groups to those with IDs matching the given array\").optional(),\n name: z.string().describe(\"Limit the list of groups to those named with the given string\").optional(),\n page: z.number().int().describe(\"Page number for pagination\").optional(),\n meta_data: z.object({}).describe(\"Key/value pairs for client's own data on group\").optional(),\n page_size: z.number().int().describe(\"Number of results per page, default is 50\").optional(),\n end_updated_date: z.string().describe(\"Date before which groups which have been updated should be returned. Format: YYYY-MM-DD\").optional(),\n start_updated_date: z.string().describe(\"Date after which groups which have been updated should be returned. Format: YYYY-MM-DD\").optional(),\n}).describe(\"Request schema for searching groups in Accredible.\");\nconst AccredibleCertificatesSearchGroups_SearchGroupsMetaSchema: z.ZodTypeAny = z.object({\n next_page: z.number().int().describe(\"Next page number, if any\").nullable().optional(),\n prev_page: z.number().int().describe(\"Previous page number, if any\").nullable().optional(),\n total_count: z.number().int().describe(\"Total number of matching groups\"),\n total_pages: z.number().int().describe(\"Total number of pages available\"),\n current_page: z.number().int().describe(\"Current page number\"),\n}).describe(\"Pagination metadata for search results.\");\nconst AccredibleCertificatesSearchGroups_CollectionSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Collection ID\").nullable().optional(),\n name: z.string().describe(\"Collection name\").nullable().optional(),\n description: z.string().describe(\"Collection description\").nullable().optional(),\n}).describe(\"Collection associated with a group.\");\nconst AccredibleCertificatesSearchGroups_SkillCategorySchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Skill category ID\").nullable().optional(),\n name: z.string().describe(\"Skill category name\").nullable().optional(),\n}).describe(\"Skill category associated with a group.\");\nconst AccredibleCertificatesSearchGroups_GroupSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier for the group\"),\n name: z.string().describe(\"Name of the group\"),\n language: z.string().describe(\"Language code for the group\"),\n design_id: z.number().int().describe(\"Design ID for the group\").nullable().optional(),\n meta_data: z.record(z.string(), z.unknown()).describe(\"Metadata key-value pairs\").nullable().optional(),\n attach_pdf: z.boolean().describe(\"Whether to attach credential PDF to notification email\"),\n blockchain: z.boolean().describe(\"Whether credentials are recorded on blockchain\"),\n created_at: z.string().describe(\"Timestamp when the group was created\"),\n signup_url: z.string().describe(\"Signup URL for enrollment\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when the group was last updated\"),\n auto_expiry: z.number().int().describe(\"Years until auto-expiry of credential\").nullable().optional(),\n collections: z.array(AccredibleCertificatesSearchGroups_CollectionSchema).describe(\"Collections associated with the group\").nullable().optional(),\n course_link: z.string().describe(\"URL for course information\").nullable().optional(),\n course_name: z.string().describe(\"Course or achievement name visible to the recipient\"),\n design_name: z.string().describe(\"Design name for the group\").nullable().optional(),\n department_id: z.number().int().describe(\"Department ID\").nullable().optional(),\n skill_category: AccredibleCertificatesSearchGroups_SkillCategorySchema.nullable().optional(),\n badge_design_id: z.number().int().describe(\"Badge design ID\").nullable().optional(),\n signup_url_show: z.boolean().describe(\"Whether to display signup URL\").nullable().optional(),\n achievement_type: z.string().describe(\"Type of achievement for the group\").nullable().optional(),\n course_link_show: z.boolean().describe(\"Whether to display course link\").nullable().optional(),\n learning_outcomes: z.array(z.string()).describe(\"Learning outcomes list for this group\").nullable().optional(),\n primary_design_id: z.number().int().describe(\"Primary design ID\").nullable().optional(),\n course_description: z.string().describe(\"Description of the course or achievement\"),\n certificate_design_id: z.number().int().describe(\"Certificate design ID\").nullable().optional(),\n organization_link_show: z.boolean().describe(\"Whether to display organization link\").nullable().optional(),\n generate_private_credential: z.boolean().describe(\"Whether to generate private credentials\").nullable().optional(),\n}).describe(\"Group object returned in search results.\");\nexport const AccredibleCertificatesSearchGroupsOutput: z.ZodTypeAny = z.object({\n meta: AccredibleCertificatesSearchGroups_SearchGroupsMetaSchema.nullable(),\n groups: z.array(AccredibleCertificatesSearchGroups_GroupSchema).describe(\"List of matching groups\"),\n}).describe(\"Response schema for searching groups.\");\n\nexport const accredibleCertificatesSearchGroups = action(\"ACCREDIBLE_CERTIFICATES_SEARCH_GROUPS\", {\n slug: \"accredible_certificates-search-groups\",\n name: \"Search Groups\",\n description: \"Tool to search for groups in Accredible. Use when you need to filter groups by IDs, name, update dates, or metadata and paginate through results.\",\n input: AccredibleCertificatesSearchGroupsInput,\n output: AccredibleCertificatesSearchGroupsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0CAAwDA,IAAAA,EAAE,OAAO;CAC5E,KAAKA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CACxH,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CACpG,M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A,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;CAClF,uBAAuBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,wBAAwBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,6BAA6BA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnH,CAAC,CAAC,CAAC,SAAS,0CAA0C;AACtD,MAAa,2CAAyDA,IAAAA,EAAE,OAAO;CAC7E,MAAM,0DAA0D,SAAS;CACzE,QAAQA,IAAAA,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,yBAAyB;AACpG,CAAC,CAAC,CAAC,SAAS,uCAAuC;AAEnD,MAAa,qCAAqCC,eAAAA,OAAO,yCAAyC;CAChG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/search-groups.d.ts
|
|
4
|
+
declare const AccredibleCertificatesSearchGroupsInput: z.ZodTypeAny;
|
|
5
|
+
declare const AccredibleCertificatesSearchGroupsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const accredibleCertificatesSearchGroups: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { accredibleCertificatesSearchGroups };
|
|
9
|
+
//# sourceMappingURL=search-groups.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search-groups.d.cts","names":[],"sources":["../../src/actions/search-groups.ts"],"mappings":";;;cAIa,uCAAA,EAAyC,CAAA,CAAE,UAQS;AAAA,cA8CpD,wCAAA,EAA0C,CAAA,CAAE,UAGL;AAAA,cAEvC,kCAAA,gCAAkC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/search-groups.d.ts
|
|
4
|
+
declare const AccredibleCertificatesSearchGroupsInput: z.ZodTypeAny;
|
|
5
|
+
declare const AccredibleCertificatesSearchGroupsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const accredibleCertificatesSearchGroups: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { accredibleCertificatesSearchGroups };
|
|
9
|
+
//# sourceMappingURL=search-groups.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search-groups.d.mts","names":[],"sources":["../../src/actions/search-groups.ts"],"mappings":";;;cAIa,uCAAA,EAAyC,CAAA,CAAE,UAQS;AAAA,cA8CpD,wCAAA,EAA0C,CAAA,CAAE,UAGL;AAAA,cAEvC,kCAAA,gCAAkC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/search-groups.ts
|
|
4
|
+
const AccredibleCertificatesSearchGroupsInput = z.object({
|
|
5
|
+
ids: z.array(z.number().int()).describe("Limit the list of groups to those with IDs matching the given array").optional(),
|
|
6
|
+
name: z.string().describe("Limit the list of groups to those named with the given string").optional(),
|
|
7
|
+
page: z.number().int().describe("Page number for pagination").optional(),
|
|
8
|
+
meta_data: z.object({}).describe("Key/value pairs for client's own data on group").optional(),
|
|
9
|
+
page_size: z.number().int().describe("Number of results per page, default is 50").optional(),
|
|
10
|
+
end_updated_date: z.string().describe("Date before which groups which have been updated should be returned. Format: YYYY-MM-DD").optional(),
|
|
11
|
+
start_updated_date: z.string().describe("Date after which groups which have been updated should be returned. Format: YYYY-MM-DD").optional()
|
|
12
|
+
}).describe("Request schema for searching groups in Accredible.");
|
|
13
|
+
const AccredibleCertificatesSearchGroups_SearchGroupsMetaSchema = z.object({
|
|
14
|
+
next_page: z.number().int().describe("Next page number, if any").nullable().optional(),
|
|
15
|
+
prev_page: z.number().int().describe("Previous page number, if any").nullable().optional(),
|
|
16
|
+
total_count: z.number().int().describe("Total number of matching groups"),
|
|
17
|
+
total_pages: z.number().int().describe("Total number of pages available"),
|
|
18
|
+
current_page: z.number().int().describe("Current page number")
|
|
19
|
+
}).describe("Pagination metadata for search results.");
|
|
20
|
+
const AccredibleCertificatesSearchGroups_CollectionSchema = z.object({
|
|
21
|
+
id: z.number().int().describe("Collection ID").nullable().optional(),
|
|
22
|
+
name: z.string().describe("Collection name").nullable().optional(),
|
|
23
|
+
description: z.string().describe("Collection description").nullable().optional()
|
|
24
|
+
}).describe("Collection associated with a group.");
|
|
25
|
+
const AccredibleCertificatesSearchGroups_SkillCategorySchema = z.object({
|
|
26
|
+
id: z.number().int().describe("Skill category ID").nullable().optional(),
|
|
27
|
+
name: z.string().describe("Skill category name").nullable().optional()
|
|
28
|
+
}).describe("Skill category associated with a group.");
|
|
29
|
+
const AccredibleCertificatesSearchGroups_GroupSchema = z.object({
|
|
30
|
+
id: z.number().int().describe("Unique identifier for the group"),
|
|
31
|
+
name: z.string().describe("Name of the group"),
|
|
32
|
+
language: z.string().describe("Language code for the group"),
|
|
33
|
+
design_id: z.number().int().describe("Design ID for the group").nullable().optional(),
|
|
34
|
+
meta_data: z.record(z.string(), z.unknown()).describe("Metadata key-value pairs").nullable().optional(),
|
|
35
|
+
attach_pdf: z.boolean().describe("Whether to attach credential PDF to notification email"),
|
|
36
|
+
blockchain: z.boolean().describe("Whether credentials are recorded on blockchain"),
|
|
37
|
+
created_at: z.string().describe("Timestamp when the group was created"),
|
|
38
|
+
signup_url: z.string().describe("Signup URL for enrollment").nullable().optional(),
|
|
39
|
+
updated_at: z.string().describe("Timestamp when the group was last updated"),
|
|
40
|
+
auto_expiry: z.number().int().describe("Years until auto-expiry of credential").nullable().optional(),
|
|
41
|
+
collections: z.array(AccredibleCertificatesSearchGroups_CollectionSchema).describe("Collections associated with the group").nullable().optional(),
|
|
42
|
+
course_link: z.string().describe("URL for course information").nullable().optional(),
|
|
43
|
+
course_name: z.string().describe("Course or achievement name visible to the recipient"),
|
|
44
|
+
design_name: z.string().describe("Design name for the group").nullable().optional(),
|
|
45
|
+
department_id: z.number().int().describe("Department ID").nullable().optional(),
|
|
46
|
+
skill_category: AccredibleCertificatesSearchGroups_SkillCategorySchema.nullable().optional(),
|
|
47
|
+
badge_design_id: z.number().int().describe("Badge design ID").nullable().optional(),
|
|
48
|
+
signup_url_show: z.boolean().describe("Whether to display signup URL").nullable().optional(),
|
|
49
|
+
achievement_type: z.string().describe("Type of achievement for the group").nullable().optional(),
|
|
50
|
+
course_link_show: z.boolean().describe("Whether to display course link").nullable().optional(),
|
|
51
|
+
learning_outcomes: z.array(z.string()).describe("Learning outcomes list for this group").nullable().optional(),
|
|
52
|
+
primary_design_id: z.number().int().describe("Primary design ID").nullable().optional(),
|
|
53
|
+
course_description: z.string().describe("Description of the course or achievement"),
|
|
54
|
+
certificate_design_id: z.number().int().describe("Certificate design ID").nullable().optional(),
|
|
55
|
+
organization_link_show: z.boolean().describe("Whether to display organization link").nullable().optional(),
|
|
56
|
+
generate_private_credential: z.boolean().describe("Whether to generate private credentials").nullable().optional()
|
|
57
|
+
}).describe("Group object returned in search results.");
|
|
58
|
+
const accredibleCertificatesSearchGroups = action("ACCREDIBLE_CERTIFICATES_SEARCH_GROUPS", {
|
|
59
|
+
slug: "accredible_certificates-search-groups",
|
|
60
|
+
name: "Search Groups",
|
|
61
|
+
description: "Tool to search for groups in Accredible. Use when you need to filter groups by IDs, name, update dates, or metadata and paginate through results.",
|
|
62
|
+
input: AccredibleCertificatesSearchGroupsInput,
|
|
63
|
+
output: z.object({
|
|
64
|
+
meta: AccredibleCertificatesSearchGroups_SearchGroupsMetaSchema.nullable(),
|
|
65
|
+
groups: z.array(AccredibleCertificatesSearchGroups_GroupSchema).describe("List of matching groups")
|
|
66
|
+
}).describe("Response schema for searching groups.")
|
|
67
|
+
});
|
|
68
|
+
//#endregion
|
|
69
|
+
export { accredibleCertificatesSearchGroups };
|
|
70
|
+
|
|
71
|
+
//# sourceMappingURL=search-groups.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search-groups.mjs","names":[],"sources":["../../src/actions/search-groups.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const AccredibleCertificatesSearchGroupsInput: z.ZodTypeAny = z.object({\n ids: z.array(z.number().int()).describe(\"Limit the list of groups to those with IDs matching the given array\").optional(),\n name: z.string().describe(\"Limit the list of groups to those named with the given string\").optional(),\n page: z.number().int().describe(\"Page number for pagination\").optional(),\n meta_data: z.object({}).describe(\"Key/value pairs for client's own data on group\").optional(),\n page_size: z.number().int().describe(\"Number of results per page, default is 50\").optional(),\n end_updated_date: z.string().describe(\"Date before which groups which have been updated should be returned. Format: YYYY-MM-DD\").optional(),\n start_updated_date: z.string().describe(\"Date after which groups which have been updated should be returned. Format: YYYY-MM-DD\").optional(),\n}).describe(\"Request schema for searching groups in Accredible.\");\nconst AccredibleCertificatesSearchGroups_SearchGroupsMetaSchema: z.ZodTypeAny = z.object({\n next_page: z.number().int().describe(\"Next page number, if any\").nullable().optional(),\n prev_page: z.number().int().describe(\"Previous page number, if any\").nullable().optional(),\n total_count: z.number().int().describe(\"Total number of matching groups\"),\n total_pages: z.number().int().describe(\"Total number of pages available\"),\n current_page: z.number().int().describe(\"Current page number\"),\n}).describe(\"Pagination metadata for search results.\");\nconst AccredibleCertificatesSearchGroups_CollectionSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Collection ID\").nullable().optional(),\n name: z.string().describe(\"Collection name\").nullable().optional(),\n description: z.string().describe(\"Collection description\").nullable().optional(),\n}).describe(\"Collection associated with a group.\");\nconst AccredibleCertificatesSearchGroups_SkillCategorySchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Skill category ID\").nullable().optional(),\n name: z.string().describe(\"Skill category name\").nullable().optional(),\n}).describe(\"Skill category associated with a group.\");\nconst AccredibleCertificatesSearchGroups_GroupSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier for the group\"),\n name: z.string().describe(\"Name of the group\"),\n language: z.string().describe(\"Language code for the group\"),\n design_id: z.number().int().describe(\"Design ID for the group\").nullable().optional(),\n meta_data: z.record(z.string(), z.unknown()).describe(\"Metadata key-value pairs\").nullable().optional(),\n attach_pdf: z.boolean().describe(\"Whether to attach credential PDF to notification email\"),\n blockchain: z.boolean().describe(\"Whether credentials are recorded on blockchain\"),\n created_at: z.string().describe(\"Timestamp when the group was created\"),\n signup_url: z.string().describe(\"Signup URL for enrollment\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when the group was last updated\"),\n auto_expiry: z.number().int().describe(\"Years until auto-expiry of credential\").nullable().optional(),\n collections: z.array(AccredibleCertificatesSearchGroups_CollectionSchema).describe(\"Collections associated with the group\").nullable().optional(),\n course_link: z.string().describe(\"URL for course information\").nullable().optional(),\n course_name: z.string().describe(\"Course or achievement name visible to the recipient\"),\n design_name: z.string().describe(\"Design name for the group\").nullable().optional(),\n department_id: z.number().int().describe(\"Department ID\").nullable().optional(),\n skill_category: AccredibleCertificatesSearchGroups_SkillCategorySchema.nullable().optional(),\n badge_design_id: z.number().int().describe(\"Badge design ID\").nullable().optional(),\n signup_url_show: z.boolean().describe(\"Whether to display signup URL\").nullable().optional(),\n achievement_type: z.string().describe(\"Type of achievement for the group\").nullable().optional(),\n course_link_show: z.boolean().describe(\"Whether to display course link\").nullable().optional(),\n learning_outcomes: z.array(z.string()).describe(\"Learning outcomes list for this group\").nullable().optional(),\n primary_design_id: z.number().int().describe(\"Primary design ID\").nullable().optional(),\n course_description: z.string().describe(\"Description of the course or achievement\"),\n certificate_design_id: z.number().int().describe(\"Certificate design ID\").nullable().optional(),\n organization_link_show: z.boolean().describe(\"Whether to display organization link\").nullable().optional(),\n generate_private_credential: z.boolean().describe(\"Whether to generate private credentials\").nullable().optional(),\n}).describe(\"Group object returned in search results.\");\nexport const AccredibleCertificatesSearchGroupsOutput: z.ZodTypeAny = z.object({\n meta: AccredibleCertificatesSearchGroups_SearchGroupsMetaSchema.nullable(),\n groups: z.array(AccredibleCertificatesSearchGroups_GroupSchema).describe(\"List of matching groups\"),\n}).describe(\"Response schema for searching groups.\");\n\nexport const accredibleCertificatesSearchGroups = action(\"ACCREDIBLE_CERTIFICATES_SEARCH_GROUPS\", {\n slug: \"accredible_certificates-search-groups\",\n name: \"Search Groups\",\n description: \"Tool to search for groups in Accredible. Use when you need to filter groups by IDs, name, update dates, or metadata and paginate through results.\",\n input: AccredibleCertificatesSearchGroupsInput,\n output: AccredibleCertificatesSearchGroupsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0CAAwD,EAAE,OAAO;CAC5E,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CACxH,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CACpG,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACvE,WAAW,EAAE,OAAO,CAAC,C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;AAMtD,MAAa,qCAAqC,OAAO,yCAAyC;CAChG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVoE,EAAE,OAAO;EAC7E,MAAM,0DAA0D,SAAS;EACzE,QAAQ,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,yBAAyB;CACpG,CAAC,CAAC,CAAC,SAAS,uCAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/update-credential.ts
|
|
4
|
+
const AccredibleCertificatesUpdateCredentialInput = zod.z.object({
|
|
5
|
+
name: zod.z.string().describe("The credential/course name displayed to recipients. Required if the Group doesn't have a Course Name set").optional(),
|
|
6
|
+
complete: zod.z.boolean().describe("Whether the achievement is complete or still in progress. True by default").optional(),
|
|
7
|
+
group_id: zod.z.number().int().describe("Group ID to which the credential should belong").optional(),
|
|
8
|
+
issued_on: zod.z.string().describe("Date of issue. Format: YYYY-MM-DD (DD/MM/YYYY also works but is deprecated)").optional(),
|
|
9
|
+
meta_data: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Key-value metadata to attach to the credential object. Useful for storing additional structured information").optional(),
|
|
10
|
+
recipient: zod.z.object({
|
|
11
|
+
id: zod.z.string().describe("The recipient's user ID as defined by your organization. Allows mapping recipients to credentials regardless of email changes").optional(),
|
|
12
|
+
name: zod.z.string().describe("The name of the recipient the credential is issued to").optional(),
|
|
13
|
+
email: zod.z.string().describe("The recipient's email address").optional(),
|
|
14
|
+
meta_data: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Key-value metadata to attach to the recipient object. Useful for storing additional structured information").optional(),
|
|
15
|
+
phone_number: zod.z.string().describe("The recipient's phone number in E.164 format (e.g., +14155552671). Optional, available as part of Growth plan").optional()
|
|
16
|
+
}).describe("Recipient information for credential update.").optional(),
|
|
17
|
+
expired_on: zod.z.string().describe("Date when the credential should expire. Format: YYYY-MM-DD (DD/MM/YYYY also works but is deprecated). Set to null by default").optional(),
|
|
18
|
+
description: zod.z.string().describe("The credential/course description displayed to recipients. Required if the Group doesn't have a Course Description set").optional(),
|
|
19
|
+
credential_id: zod.z.string().describe("The unique ID of the credential to update"),
|
|
20
|
+
custom_attributes: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Custom variables to display on the credential. Should be added to the design using the visual editor. JSON hash where keys are custom attribute names and values are displayed on the credential").optional(),
|
|
21
|
+
allow_supplemental_evidence: zod.z.boolean().describe("Whether to allow recipients to add their own supplemental evidence to the credential. True by default").optional(),
|
|
22
|
+
allow_supplemental_references: zod.z.boolean().describe("Whether to allow recipients to add their own supplemental references to the credential. True by default").optional()
|
|
23
|
+
}).describe("Request schema for updating an existing credential.");
|
|
24
|
+
const AccredibleCertificatesUpdateCredential_CertificateImageSchema = zod.z.object({ preview: zod.z.string().describe("Preview image URL").nullable().optional() }).describe("Certificate or badge image information.");
|
|
25
|
+
const AccredibleCertificatesUpdateCredential_CertificateSchema = zod.z.object({ image: AccredibleCertificatesUpdateCredential_CertificateImageSchema.nullable().optional() }).describe("Certificate design information.");
|
|
26
|
+
const AccredibleCertificatesUpdateCredential_IssuerSchema = zod.z.object({
|
|
27
|
+
id: zod.z.number().int().describe("Unique ID of the issuer"),
|
|
28
|
+
url: zod.z.string().describe("URL of the issuer").nullable().optional(),
|
|
29
|
+
name: zod.z.string().describe("Name of the issuer"),
|
|
30
|
+
description: zod.z.string().describe("Description of the issuer").nullable().optional()
|
|
31
|
+
}).describe("Issuer information in the credential response.");
|
|
32
|
+
const AccredibleCertificatesUpdateCredential_RecipientSchema = zod.z.object({
|
|
33
|
+
id: zod.z.string().describe("Custom recipient ID").nullable().optional(),
|
|
34
|
+
name: zod.z.string().describe("Name of the recipient"),
|
|
35
|
+
email: zod.z.string().describe("Email address of the recipient"),
|
|
36
|
+
meta_data: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Recipient metadata").nullable().optional(),
|
|
37
|
+
phone_number: zod.z.string().describe("Phone number of recipient").nullable().optional()
|
|
38
|
+
}).describe("Recipient information in the credential response.");
|
|
39
|
+
const AccredibleCertificatesUpdateCredential_ReferenceSchema = zod.z.object({
|
|
40
|
+
id: zod.z.number().int().describe("Unique ID of the reference"),
|
|
41
|
+
approve: zod.z.boolean().describe("Whether the reference is approved"),
|
|
42
|
+
description: zod.z.string().describe("Description of the reference"),
|
|
43
|
+
relationship: zod.z.string().describe("Relationship to recipient").nullable().optional(),
|
|
44
|
+
supplemental: zod.z.boolean().describe("Whether this is supplemental")
|
|
45
|
+
}).describe("Reference attached to a credential.");
|
|
46
|
+
const AccredibleCertificatesUpdateCredential_EvidenceItemSchema = zod.z.object({
|
|
47
|
+
id: zod.z.number().int().describe("Unique ID of the evidence item"),
|
|
48
|
+
type: zod.z.string().describe("Type/category of the evidence item"),
|
|
49
|
+
link_url: zod.z.string().describe("Link URL of the evidence item").nullable().optional(),
|
|
50
|
+
position: zod.z.number().int().describe("Position index in the list"),
|
|
51
|
+
description: zod.z.string().describe("Title text of the evidence item"),
|
|
52
|
+
supplemental: zod.z.boolean().describe("Whether this is supplemental evidence"),
|
|
53
|
+
string_object: zod.z.unknown().describe("String or object data for grade or transcript types").nullable().optional(),
|
|
54
|
+
preview_image_url: zod.z.string().describe("Preview image URL for the evidence item").nullable().optional()
|
|
55
|
+
}).describe("Evidence item attached to a credential.");
|
|
56
|
+
const AccredibleCertificatesUpdateCredential_CredentialSchema = zod.z.object({
|
|
57
|
+
id: zod.z.number().int().describe("Unique identifier of the credential"),
|
|
58
|
+
url: zod.z.string().describe("Public URL of the credential"),
|
|
59
|
+
name: zod.z.string().describe("Name of the credential/course"),
|
|
60
|
+
badge: AccredibleCertificatesUpdateCredential_CertificateSchema.nullable().optional(),
|
|
61
|
+
grade: zod.z.unknown().describe("Grade information if applicable").nullable().optional(),
|
|
62
|
+
issuer: AccredibleCertificatesUpdateCredential_IssuerSchema.nullable(),
|
|
63
|
+
approve: zod.z.boolean().describe("Whether the credential is approved"),
|
|
64
|
+
private: zod.z.boolean().describe("Whether the credential is private"),
|
|
65
|
+
complete: zod.z.boolean().describe("Whether the achievement is complete or in progress"),
|
|
66
|
+
group_id: zod.z.number().int().describe("ID of the group"),
|
|
67
|
+
issued_on: zod.z.string().describe("Date the credential was issued").nullable().optional(),
|
|
68
|
+
meta_data: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Metadata attached to the credential").nullable().optional(),
|
|
69
|
+
recipient: AccredibleCertificatesUpdateCredential_RecipientSchema.nullable(),
|
|
70
|
+
seo_image: zod.z.string().describe("SEO image URL").nullable().optional(),
|
|
71
|
+
encoded_id: zod.z.string().describe("Encoded credential ID"),
|
|
72
|
+
expired_on: zod.z.string().describe("Expiration date if set").nullable().optional(),
|
|
73
|
+
group_name: zod.z.string().describe("Name of the group"),
|
|
74
|
+
references: zod.z.array(AccredibleCertificatesUpdateCredential_ReferenceSchema).describe("References attached to the credential").nullable().optional(),
|
|
75
|
+
certificate: AccredibleCertificatesUpdateCredential_CertificateSchema.nullable().optional(),
|
|
76
|
+
course_link: zod.z.string().describe("Link to course information").nullable().optional(),
|
|
77
|
+
description: zod.z.string().describe("Description of the credential/course"),
|
|
78
|
+
evidence_items: zod.z.array(AccredibleCertificatesUpdateCredential_EvidenceItemSchema).describe("Evidence items attached to the credential").nullable().optional(),
|
|
79
|
+
custom_attributes: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Custom attributes displayed on the credential").nullable().optional()
|
|
80
|
+
}).describe("Complete credential object returned by the API.");
|
|
81
|
+
const AccredibleCertificatesUpdateCredentialOutput = zod.z.object({ credential: AccredibleCertificatesUpdateCredential_CredentialSchema.nullable() }).describe("Response from updating a credential.");
|
|
82
|
+
const accredibleCertificatesUpdateCredential = require_action.action("ACCREDIBLE_CERTIFICATES_UPDATE_CREDENTIAL", {
|
|
83
|
+
slug: "accredible_certificates-update-credential",
|
|
84
|
+
name: "Update Credential",
|
|
85
|
+
description: "Tool to update an existing credential. Use when you need to modify credential details such as description, dates, recipient information, or custom attributes.",
|
|
86
|
+
input: AccredibleCertificatesUpdateCredentialInput,
|
|
87
|
+
output: AccredibleCertificatesUpdateCredentialOutput
|
|
88
|
+
});
|
|
89
|
+
//#endregion
|
|
90
|
+
exports.accredibleCertificatesUpdateCredential = accredibleCertificatesUpdateCredential;
|
|
91
|
+
|
|
92
|
+
//# sourceMappingURL=update-credential.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-credential.cjs","names":["z","action"],"sources":["../../src/actions/update-credential.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const AccredibleCertificatesUpdateCredentialInput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"The credential/course name displayed to recipients. Required if the Group doesn't have a Course Name set\").optional(),\n complete: z.boolean().describe(\"Whether the achievement is complete or still in progress. True by default\").optional(),\n group_id: z.number().int().describe(\"Group ID to which the credential should belong\").optional(),\n issued_on: z.string().describe(\"Date of issue. Format: YYYY-MM-DD (DD/MM/YYYY also works but is deprecated)\").optional(),\n meta_data: z.record(z.string(), z.unknown()).describe(\"Key-value metadata to attach to the credential object. Useful for storing additional structured information\").optional(),\n recipient: z.object({\n id: z.string().describe(\"The recipient's user ID as defined by your organization. Allows mapping recipients to credentials regardless of email changes\").optional(),\n name: z.string().describe(\"The name of the recipient the credential is issued to\").optional(),\n email: z.string().describe(\"The recipient's email address\").optional(),\n meta_data: z.record(z.string(), z.unknown()).describe(\"Key-value metadata to attach to the recipient object. Useful for storing additional structured information\").optional(),\n phone_number: z.string().describe(\"The recipient's phone number in E.164 format (e.g., +14155552671). Optional, available as part of Growth plan\").optional(),\n}).describe(\"Recipient information for credential update.\").optional(),\n expired_on: z.string().describe(\"Date when the credential should expire. Format: YYYY-MM-DD (DD/MM/YYYY also works but is deprecated). Set to null by default\").optional(),\n description: z.string().describe(\"The credential/course description displayed to recipients. Required if the Group doesn't have a Course Description set\").optional(),\n credential_id: z.string().describe(\"The unique ID of the credential to update\"),\n custom_attributes: z.record(z.string(), z.unknown()).describe(\"Custom variables to display on the credential. Should be added to the design using the visual editor. JSON hash where keys are custom attribute names and values are displayed on the credential\").optional(),\n allow_supplemental_evidence: z.boolean().describe(\"Whether to allow recipients to add their own supplemental evidence to the credential. True by default\").optional(),\n allow_supplemental_references: z.boolean().describe(\"Whether to allow recipients to add their own supplemental references to the credential. True by default\").optional(),\n}).describe(\"Request schema for updating an existing credential.\");\nconst AccredibleCertificatesUpdateCredential_CertificateImageSchema: z.ZodTypeAny = z.object({\n preview: z.string().describe(\"Preview image URL\").nullable().optional(),\n}).describe(\"Certificate or badge image information.\");\nconst AccredibleCertificatesUpdateCredential_CertificateSchema: z.ZodTypeAny = z.object({\n image: AccredibleCertificatesUpdateCredential_CertificateImageSchema.nullable().optional(),\n}).describe(\"Certificate design information.\");\nconst AccredibleCertificatesUpdateCredential_IssuerSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique ID of the issuer\"),\n url: z.string().describe(\"URL of the issuer\").nullable().optional(),\n name: z.string().describe(\"Name of the issuer\"),\n description: z.string().describe(\"Description of the issuer\").nullable().optional(),\n}).describe(\"Issuer information in the credential response.\");\nconst AccredibleCertificatesUpdateCredential_RecipientSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Custom recipient ID\").nullable().optional(),\n name: z.string().describe(\"Name of the recipient\"),\n email: z.string().describe(\"Email address of the recipient\"),\n meta_data: z.record(z.string(), z.unknown()).describe(\"Recipient metadata\").nullable().optional(),\n phone_number: z.string().describe(\"Phone number of recipient\").nullable().optional(),\n}).describe(\"Recipient information in the credential response.\");\nconst AccredibleCertificatesUpdateCredential_ReferenceSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique ID of the reference\"),\n approve: z.boolean().describe(\"Whether the reference is approved\"),\n description: z.string().describe(\"Description of the reference\"),\n relationship: z.string().describe(\"Relationship to recipient\").nullable().optional(),\n supplemental: z.boolean().describe(\"Whether this is supplemental\"),\n}).describe(\"Reference attached to a credential.\");\nconst AccredibleCertificatesUpdateCredential_EvidenceItemSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique ID of the evidence item\"),\n type: z.string().describe(\"Type/category of the evidence item\"),\n link_url: z.string().describe(\"Link URL of the evidence item\").nullable().optional(),\n position: z.number().int().describe(\"Position index in the list\"),\n description: z.string().describe(\"Title text of the evidence item\"),\n supplemental: z.boolean().describe(\"Whether this is supplemental evidence\"),\n string_object: z.unknown().describe(\"String or object data for grade or transcript types\").nullable().optional(),\n preview_image_url: z.string().describe(\"Preview image URL for the evidence item\").nullable().optional(),\n}).describe(\"Evidence item attached to a credential.\");\nconst AccredibleCertificatesUpdateCredential_CredentialSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier of the credential\"),\n url: z.string().describe(\"Public URL of the credential\"),\n name: z.string().describe(\"Name of the credential/course\"),\n badge: AccredibleCertificatesUpdateCredential_CertificateSchema.nullable().optional(),\n grade: z.unknown().describe(\"Grade information if applicable\").nullable().optional(),\n issuer: AccredibleCertificatesUpdateCredential_IssuerSchema.nullable(),\n approve: z.boolean().describe(\"Whether the credential is approved\"),\n private: z.boolean().describe(\"Whether the credential is private\"),\n complete: z.boolean().describe(\"Whether the achievement is complete or in progress\"),\n group_id: z.number().int().describe(\"ID of the group\"),\n issued_on: z.string().describe(\"Date the credential was issued\").nullable().optional(),\n meta_data: z.record(z.string(), z.unknown()).describe(\"Metadata attached to the credential\").nullable().optional(),\n recipient: AccredibleCertificatesUpdateCredential_RecipientSchema.nullable(),\n seo_image: z.string().describe(\"SEO image URL\").nullable().optional(),\n encoded_id: z.string().describe(\"Encoded credential ID\"),\n expired_on: z.string().describe(\"Expiration date if set\").nullable().optional(),\n group_name: z.string().describe(\"Name of the group\"),\n references: z.array(AccredibleCertificatesUpdateCredential_ReferenceSchema).describe(\"References attached to the credential\").nullable().optional(),\n certificate: AccredibleCertificatesUpdateCredential_CertificateSchema.nullable().optional(),\n course_link: z.string().describe(\"Link to course information\").nullable().optional(),\n description: z.string().describe(\"Description of the credential/course\"),\n evidence_items: z.array(AccredibleCertificatesUpdateCredential_EvidenceItemSchema).describe(\"Evidence items attached to the credential\").nullable().optional(),\n custom_attributes: z.record(z.string(), z.unknown()).describe(\"Custom attributes displayed on the credential\").nullable().optional(),\n}).describe(\"Complete credential object returned by the API.\");\nexport const AccredibleCertificatesUpdateCredentialOutput: z.ZodTypeAny = z.object({\n credential: AccredibleCertificatesUpdateCredential_CredentialSchema.nullable(),\n}).describe(\"Response from updating a credential.\");\n\nexport const accredibleCertificatesUpdateCredential = action(\"ACCREDIBLE_CERTIFICATES_UPDATE_CREDENTIAL\", {\n slug: \"accredible_certificates-update-credential\",\n name: \"Update Credential\",\n description: \"Tool to update an existing credential. Use when you need to modify credential details such as description, dates, recipient information, or custom attributes.\",\n input: AccredibleCertificatesUpdateCredentialInput,\n output: AccredibleCertificatesUpdateCredentialOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8CAA4DA,IAAAA,EAAE,OAAO;CAChF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0GAA0G,CAAC,CAAC,SAAS;CAC/I,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;CACrH,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CAC/F,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CACvH,WAAWA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6GAA6G,CAAC,CAAC,SAAS;CAC9K,WAAWA,IAAAA,EAAE,OAAO;EACpB,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+HAA+H,CAAC,CAAC,SAAS;EAClK,MAAMA,IA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CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7J,mBAAmBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrI,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC7D,MAAa,+CAA6DA,IAAAA,EAAE,OAAO,EACjF,YAAY,wDAAwD,SAAS,EAC/E,CAAC,CAAC,CAAC,SAAS,sCAAsC;AAElD,MAAa,yCAAyCC,eAAAA,OAAO,6CAA6C;CACxG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/update-credential.d.ts
|
|
4
|
+
declare const AccredibleCertificatesUpdateCredentialInput: z.ZodTypeAny;
|
|
5
|
+
declare const AccredibleCertificatesUpdateCredentialOutput: z.ZodTypeAny;
|
|
6
|
+
declare const accredibleCertificatesUpdateCredential: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { accredibleCertificatesUpdateCredential };
|
|
9
|
+
//# sourceMappingURL=update-credential.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-credential.d.cts","names":[],"sources":["../../src/actions/update-credential.ts"],"mappings":";;;cAIa,2CAAA,EAA6C,CAAA,CAAE,UAmBM;AAAA,cA8DrD,4CAAA,EAA8C,CAAA,CAAE,UAEV;AAAA,cAEtC,sCAAA,gCAAsC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/update-credential.d.ts
|
|
4
|
+
declare const AccredibleCertificatesUpdateCredentialInput: z.ZodTypeAny;
|
|
5
|
+
declare const AccredibleCertificatesUpdateCredentialOutput: z.ZodTypeAny;
|
|
6
|
+
declare const accredibleCertificatesUpdateCredential: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { accredibleCertificatesUpdateCredential };
|
|
9
|
+
//# sourceMappingURL=update-credential.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-credential.d.mts","names":[],"sources":["../../src/actions/update-credential.ts"],"mappings":";;;cAIa,2CAAA,EAA6C,CAAA,CAAE,UAmBM;AAAA,cA8DrD,4CAAA,EAA8C,CAAA,CAAE,UAEV;AAAA,cAEtC,sCAAA,gCAAsC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/update-credential.ts
|
|
4
|
+
const AccredibleCertificatesUpdateCredentialInput = z.object({
|
|
5
|
+
name: z.string().describe("The credential/course name displayed to recipients. Required if the Group doesn't have a Course Name set").optional(),
|
|
6
|
+
complete: z.boolean().describe("Whether the achievement is complete or still in progress. True by default").optional(),
|
|
7
|
+
group_id: z.number().int().describe("Group ID to which the credential should belong").optional(),
|
|
8
|
+
issued_on: z.string().describe("Date of issue. Format: YYYY-MM-DD (DD/MM/YYYY also works but is deprecated)").optional(),
|
|
9
|
+
meta_data: z.record(z.string(), z.unknown()).describe("Key-value metadata to attach to the credential object. Useful for storing additional structured information").optional(),
|
|
10
|
+
recipient: z.object({
|
|
11
|
+
id: z.string().describe("The recipient's user ID as defined by your organization. Allows mapping recipients to credentials regardless of email changes").optional(),
|
|
12
|
+
name: z.string().describe("The name of the recipient the credential is issued to").optional(),
|
|
13
|
+
email: z.string().describe("The recipient's email address").optional(),
|
|
14
|
+
meta_data: z.record(z.string(), z.unknown()).describe("Key-value metadata to attach to the recipient object. Useful for storing additional structured information").optional(),
|
|
15
|
+
phone_number: z.string().describe("The recipient's phone number in E.164 format (e.g., +14155552671). Optional, available as part of Growth plan").optional()
|
|
16
|
+
}).describe("Recipient information for credential update.").optional(),
|
|
17
|
+
expired_on: z.string().describe("Date when the credential should expire. Format: YYYY-MM-DD (DD/MM/YYYY also works but is deprecated). Set to null by default").optional(),
|
|
18
|
+
description: z.string().describe("The credential/course description displayed to recipients. Required if the Group doesn't have a Course Description set").optional(),
|
|
19
|
+
credential_id: z.string().describe("The unique ID of the credential to update"),
|
|
20
|
+
custom_attributes: z.record(z.string(), z.unknown()).describe("Custom variables to display on the credential. Should be added to the design using the visual editor. JSON hash where keys are custom attribute names and values are displayed on the credential").optional(),
|
|
21
|
+
allow_supplemental_evidence: z.boolean().describe("Whether to allow recipients to add their own supplemental evidence to the credential. True by default").optional(),
|
|
22
|
+
allow_supplemental_references: z.boolean().describe("Whether to allow recipients to add their own supplemental references to the credential. True by default").optional()
|
|
23
|
+
}).describe("Request schema for updating an existing credential.");
|
|
24
|
+
const AccredibleCertificatesUpdateCredential_CertificateImageSchema = z.object({ preview: z.string().describe("Preview image URL").nullable().optional() }).describe("Certificate or badge image information.");
|
|
25
|
+
const AccredibleCertificatesUpdateCredential_CertificateSchema = z.object({ image: AccredibleCertificatesUpdateCredential_CertificateImageSchema.nullable().optional() }).describe("Certificate design information.");
|
|
26
|
+
const AccredibleCertificatesUpdateCredential_IssuerSchema = z.object({
|
|
27
|
+
id: z.number().int().describe("Unique ID of the issuer"),
|
|
28
|
+
url: z.string().describe("URL of the issuer").nullable().optional(),
|
|
29
|
+
name: z.string().describe("Name of the issuer"),
|
|
30
|
+
description: z.string().describe("Description of the issuer").nullable().optional()
|
|
31
|
+
}).describe("Issuer information in the credential response.");
|
|
32
|
+
const AccredibleCertificatesUpdateCredential_RecipientSchema = z.object({
|
|
33
|
+
id: z.string().describe("Custom recipient ID").nullable().optional(),
|
|
34
|
+
name: z.string().describe("Name of the recipient"),
|
|
35
|
+
email: z.string().describe("Email address of the recipient"),
|
|
36
|
+
meta_data: z.record(z.string(), z.unknown()).describe("Recipient metadata").nullable().optional(),
|
|
37
|
+
phone_number: z.string().describe("Phone number of recipient").nullable().optional()
|
|
38
|
+
}).describe("Recipient information in the credential response.");
|
|
39
|
+
const AccredibleCertificatesUpdateCredential_ReferenceSchema = z.object({
|
|
40
|
+
id: z.number().int().describe("Unique ID of the reference"),
|
|
41
|
+
approve: z.boolean().describe("Whether the reference is approved"),
|
|
42
|
+
description: z.string().describe("Description of the reference"),
|
|
43
|
+
relationship: z.string().describe("Relationship to recipient").nullable().optional(),
|
|
44
|
+
supplemental: z.boolean().describe("Whether this is supplemental")
|
|
45
|
+
}).describe("Reference attached to a credential.");
|
|
46
|
+
const AccredibleCertificatesUpdateCredential_EvidenceItemSchema = z.object({
|
|
47
|
+
id: z.number().int().describe("Unique ID of the evidence item"),
|
|
48
|
+
type: z.string().describe("Type/category of the evidence item"),
|
|
49
|
+
link_url: z.string().describe("Link URL of the evidence item").nullable().optional(),
|
|
50
|
+
position: z.number().int().describe("Position index in the list"),
|
|
51
|
+
description: z.string().describe("Title text of the evidence item"),
|
|
52
|
+
supplemental: z.boolean().describe("Whether this is supplemental evidence"),
|
|
53
|
+
string_object: z.unknown().describe("String or object data for grade or transcript types").nullable().optional(),
|
|
54
|
+
preview_image_url: z.string().describe("Preview image URL for the evidence item").nullable().optional()
|
|
55
|
+
}).describe("Evidence item attached to a credential.");
|
|
56
|
+
const AccredibleCertificatesUpdateCredential_CredentialSchema = z.object({
|
|
57
|
+
id: z.number().int().describe("Unique identifier of the credential"),
|
|
58
|
+
url: z.string().describe("Public URL of the credential"),
|
|
59
|
+
name: z.string().describe("Name of the credential/course"),
|
|
60
|
+
badge: AccredibleCertificatesUpdateCredential_CertificateSchema.nullable().optional(),
|
|
61
|
+
grade: z.unknown().describe("Grade information if applicable").nullable().optional(),
|
|
62
|
+
issuer: AccredibleCertificatesUpdateCredential_IssuerSchema.nullable(),
|
|
63
|
+
approve: z.boolean().describe("Whether the credential is approved"),
|
|
64
|
+
private: z.boolean().describe("Whether the credential is private"),
|
|
65
|
+
complete: z.boolean().describe("Whether the achievement is complete or in progress"),
|
|
66
|
+
group_id: z.number().int().describe("ID of the group"),
|
|
67
|
+
issued_on: z.string().describe("Date the credential was issued").nullable().optional(),
|
|
68
|
+
meta_data: z.record(z.string(), z.unknown()).describe("Metadata attached to the credential").nullable().optional(),
|
|
69
|
+
recipient: AccredibleCertificatesUpdateCredential_RecipientSchema.nullable(),
|
|
70
|
+
seo_image: z.string().describe("SEO image URL").nullable().optional(),
|
|
71
|
+
encoded_id: z.string().describe("Encoded credential ID"),
|
|
72
|
+
expired_on: z.string().describe("Expiration date if set").nullable().optional(),
|
|
73
|
+
group_name: z.string().describe("Name of the group"),
|
|
74
|
+
references: z.array(AccredibleCertificatesUpdateCredential_ReferenceSchema).describe("References attached to the credential").nullable().optional(),
|
|
75
|
+
certificate: AccredibleCertificatesUpdateCredential_CertificateSchema.nullable().optional(),
|
|
76
|
+
course_link: z.string().describe("Link to course information").nullable().optional(),
|
|
77
|
+
description: z.string().describe("Description of the credential/course"),
|
|
78
|
+
evidence_items: z.array(AccredibleCertificatesUpdateCredential_EvidenceItemSchema).describe("Evidence items attached to the credential").nullable().optional(),
|
|
79
|
+
custom_attributes: z.record(z.string(), z.unknown()).describe("Custom attributes displayed on the credential").nullable().optional()
|
|
80
|
+
}).describe("Complete credential object returned by the API.");
|
|
81
|
+
const accredibleCertificatesUpdateCredential = action("ACCREDIBLE_CERTIFICATES_UPDATE_CREDENTIAL", {
|
|
82
|
+
slug: "accredible_certificates-update-credential",
|
|
83
|
+
name: "Update Credential",
|
|
84
|
+
description: "Tool to update an existing credential. Use when you need to modify credential details such as description, dates, recipient information, or custom attributes.",
|
|
85
|
+
input: AccredibleCertificatesUpdateCredentialInput,
|
|
86
|
+
output: z.object({ credential: AccredibleCertificatesUpdateCredential_CredentialSchema.nullable() }).describe("Response from updating a credential.")
|
|
87
|
+
});
|
|
88
|
+
//#endregion
|
|
89
|
+
export { accredibleCertificatesUpdateCredential };
|
|
90
|
+
|
|
91
|
+
//# sourceMappingURL=update-credential.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-credential.mjs","names":[],"sources":["../../src/actions/update-credential.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const AccredibleCertificatesUpdateCredentialInput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"The credential/course name displayed to recipients. Required if the Group doesn't have a Course Name set\").optional(),\n complete: z.boolean().describe(\"Whether the achievement is complete or still in progress. True by default\").optional(),\n group_id: z.number().int().describe(\"Group ID to which the credential should belong\").optional(),\n issued_on: z.string().describe(\"Date of issue. Format: YYYY-MM-DD (DD/MM/YYYY also works but is deprecated)\").optional(),\n meta_data: z.record(z.string(), z.unknown()).describe(\"Key-value metadata to attach to the credential object. Useful for storing additional structured information\").optional(),\n recipient: z.object({\n id: z.string().describe(\"The recipient's user ID as defined by your organization. Allows mapping recipients to credentials regardless of email changes\").optional(),\n name: z.string().describe(\"The name of the recipient the credential is issued to\").optional(),\n email: z.string().describe(\"The recipient's email address\").optional(),\n meta_data: z.record(z.string(), z.unknown()).describe(\"Key-value metadata to attach to the recipient object. Useful for storing additional structured information\").optional(),\n phone_number: z.string().describe(\"The recipient's phone number in E.164 format (e.g., +14155552671). Optional, available as part of Growth plan\").optional(),\n}).describe(\"Recipient information for credential update.\").optional(),\n expired_on: z.string().describe(\"Date when the credential should expire. Format: YYYY-MM-DD (DD/MM/YYYY also works but is deprecated). Set to null by default\").optional(),\n description: z.string().describe(\"The credential/course description displayed to recipients. Required if the Group doesn't have a Course Description set\").optional(),\n credential_id: z.string().describe(\"The unique ID of the credential to update\"),\n custom_attributes: z.record(z.string(), z.unknown()).describe(\"Custom variables to display on the credential. Should be added to the design using the visual editor. JSON hash where keys are custom attribute names and values are displayed on the credential\").optional(),\n allow_supplemental_evidence: z.boolean().describe(\"Whether to allow recipients to add their own supplemental evidence to the credential. True by default\").optional(),\n allow_supplemental_references: z.boolean().describe(\"Whether to allow recipients to add their own supplemental references to the credential. True by default\").optional(),\n}).describe(\"Request schema for updating an existing credential.\");\nconst AccredibleCertificatesUpdateCredential_CertificateImageSchema: z.ZodTypeAny = z.object({\n preview: z.string().describe(\"Preview image URL\").nullable().optional(),\n}).describe(\"Certificate or badge image information.\");\nconst AccredibleCertificatesUpdateCredential_CertificateSchema: z.ZodTypeAny = z.object({\n image: AccredibleCertificatesUpdateCredential_CertificateImageSchema.nullable().optional(),\n}).describe(\"Certificate design information.\");\nconst AccredibleCertificatesUpdateCredential_IssuerSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique ID of the issuer\"),\n url: z.string().describe(\"URL of the issuer\").nullable().optional(),\n name: z.string().describe(\"Name of the issuer\"),\n description: z.string().describe(\"Description of the issuer\").nullable().optional(),\n}).describe(\"Issuer information in the credential response.\");\nconst AccredibleCertificatesUpdateCredential_RecipientSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Custom recipient ID\").nullable().optional(),\n name: z.string().describe(\"Name of the recipient\"),\n email: z.string().describe(\"Email address of the recipient\"),\n meta_data: z.record(z.string(), z.unknown()).describe(\"Recipient metadata\").nullable().optional(),\n phone_number: z.string().describe(\"Phone number of recipient\").nullable().optional(),\n}).describe(\"Recipient information in the credential response.\");\nconst AccredibleCertificatesUpdateCredential_ReferenceSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique ID of the reference\"),\n approve: z.boolean().describe(\"Whether the reference is approved\"),\n description: z.string().describe(\"Description of the reference\"),\n relationship: z.string().describe(\"Relationship to recipient\").nullable().optional(),\n supplemental: z.boolean().describe(\"Whether this is supplemental\"),\n}).describe(\"Reference attached to a credential.\");\nconst AccredibleCertificatesUpdateCredential_EvidenceItemSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique ID of the evidence item\"),\n type: z.string().describe(\"Type/category of the evidence item\"),\n link_url: z.string().describe(\"Link URL of the evidence item\").nullable().optional(),\n position: z.number().int().describe(\"Position index in the list\"),\n description: z.string().describe(\"Title text of the evidence item\"),\n supplemental: z.boolean().describe(\"Whether this is supplemental evidence\"),\n string_object: z.unknown().describe(\"String or object data for grade or transcript types\").nullable().optional(),\n preview_image_url: z.string().describe(\"Preview image URL for the evidence item\").nullable().optional(),\n}).describe(\"Evidence item attached to a credential.\");\nconst AccredibleCertificatesUpdateCredential_CredentialSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier of the credential\"),\n url: z.string().describe(\"Public URL of the credential\"),\n name: z.string().describe(\"Name of the credential/course\"),\n badge: AccredibleCertificatesUpdateCredential_CertificateSchema.nullable().optional(),\n grade: z.unknown().describe(\"Grade information if applicable\").nullable().optional(),\n issuer: AccredibleCertificatesUpdateCredential_IssuerSchema.nullable(),\n approve: z.boolean().describe(\"Whether the credential is approved\"),\n private: z.boolean().describe(\"Whether the credential is private\"),\n complete: z.boolean().describe(\"Whether the achievement is complete or in progress\"),\n group_id: z.number().int().describe(\"ID of the group\"),\n issued_on: z.string().describe(\"Date the credential was issued\").nullable().optional(),\n meta_data: z.record(z.string(), z.unknown()).describe(\"Metadata attached to the credential\").nullable().optional(),\n recipient: AccredibleCertificatesUpdateCredential_RecipientSchema.nullable(),\n seo_image: z.string().describe(\"SEO image URL\").nullable().optional(),\n encoded_id: z.string().describe(\"Encoded credential ID\"),\n expired_on: z.string().describe(\"Expiration date if set\").nullable().optional(),\n group_name: z.string().describe(\"Name of the group\"),\n references: z.array(AccredibleCertificatesUpdateCredential_ReferenceSchema).describe(\"References attached to the credential\").nullable().optional(),\n certificate: AccredibleCertificatesUpdateCredential_CertificateSchema.nullable().optional(),\n course_link: z.string().describe(\"Link to course information\").nullable().optional(),\n description: z.string().describe(\"Description of the credential/course\"),\n evidence_items: z.array(AccredibleCertificatesUpdateCredential_EvidenceItemSchema).describe(\"Evidence items attached to the credential\").nullable().optional(),\n custom_attributes: z.record(z.string(), z.unknown()).describe(\"Custom attributes displayed on the credential\").nullable().optional(),\n}).describe(\"Complete credential object returned by the API.\");\nexport const AccredibleCertificatesUpdateCredentialOutput: z.ZodTypeAny = z.object({\n credential: AccredibleCertificatesUpdateCredential_CredentialSchema.nullable(),\n}).describe(\"Response from updating a credential.\");\n\nexport const accredibleCertificatesUpdateCredential = action(\"ACCREDIBLE_CERTIFICATES_UPDATE_CREDENTIAL\", {\n slug: \"accredible_certificates-update-credential\",\n name: \"Update Credential\",\n description: \"Tool to update an existing credential. Use when you need to modify credential details such as description, dates, recipient information, or custom attributes.\",\n input: AccredibleCertificatesUpdateCredentialInput,\n output: AccredibleCertificatesUpdateCredentialOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8CAA4D,EAAE,OAAO;CAChF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0GAA0G,CAAC,CAAC,SAAS;CAC/I,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;CACrH,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CAC/F,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CACvH,WAAW,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6GAA6G,CAAC,CAAC,SAAS;CAC9K,WAAW,EAAE,OAAO;EACpB,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,+HAA+H,CAAC,CAAC,SAAS;EAClK,MAAM,EAAE,OAAO,CAAC,CA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