@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,43 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/update-evidence-item.ts
|
|
4
|
+
const AccredibleCertificatesUpdateEvidenceItemInput = zod.z.object({
|
|
5
|
+
url: zod.z.string().describe("If the category is url or video, this should be the URL of Evidence Item").optional(),
|
|
6
|
+
file: zod.z.string().describe("If the category is file, this should be the file's URL").optional(),
|
|
7
|
+
preview: zod.z.string().describe("By default if you add a URL category EvidenceItem, we take a screenshot to set the preview of this URL on Credentials. You can overwrite this default behaviour by setting this preview field to be the URL of the desired image").optional(),
|
|
8
|
+
category: zod.z.enum([
|
|
9
|
+
"file",
|
|
10
|
+
"url",
|
|
11
|
+
"video",
|
|
12
|
+
"grade",
|
|
13
|
+
"transcript"
|
|
14
|
+
]).describe("Type of evidence item, must be one of [file, url, video, grade, transcript]. The type dictates how the item is displayed on the Credential").optional(),
|
|
15
|
+
position: zod.z.number().int().describe("The numeric position of the evidence item on the credential. 0 is displayed first in the list").optional(),
|
|
16
|
+
description: zod.z.string().describe("Title text for the evidence item displayed on the credential").optional(),
|
|
17
|
+
credential_id: zod.z.string().describe("ID of the Credential in the form of a string or integer for the particular Credential requested"),
|
|
18
|
+
string_object: zod.z.string().describe("If the category is grade or transcript then use it. For grade it will be just string like '83'").optional(),
|
|
19
|
+
custom_insight: zod.z.string().describe("The insights which will appear below Evidence Item, if not given it will be generated automatically based on data").optional(),
|
|
20
|
+
evidence_item_id: zod.z.number().int().describe("ID of the Evidence Item in the form of an integer")
|
|
21
|
+
}).describe("Request schema for updating an Evidence Item on a Credential.");
|
|
22
|
+
const AccredibleCertificatesUpdateEvidenceItem_EvidenceItemResponseSchema = zod.z.object({
|
|
23
|
+
id: zod.z.number().int().describe("Unique ID of the evidence item"),
|
|
24
|
+
type: zod.z.string().describe("Category/type of the evidence item"),
|
|
25
|
+
link_url: zod.z.string().describe("Link URL of the evidence item, if applicable").nullable().optional(),
|
|
26
|
+
position: zod.z.number().int().describe("Position index on the credential list"),
|
|
27
|
+
description: zod.z.string().describe("Title text of the evidence item"),
|
|
28
|
+
supplemental: zod.z.boolean().describe("Whether this item is supplemental to the credential"),
|
|
29
|
+
string_object: zod.z.union([zod.z.string(), zod.z.record(zod.z.string(), zod.z.unknown())]).nullable().optional(),
|
|
30
|
+
preview_image_url: zod.z.string().describe("Preview image URL for the evidence item").nullable().optional()
|
|
31
|
+
});
|
|
32
|
+
const AccredibleCertificatesUpdateEvidenceItemOutput = zod.z.object({ evidence_item: AccredibleCertificatesUpdateEvidenceItem_EvidenceItemResponseSchema.nullable() });
|
|
33
|
+
const accredibleCertificatesUpdateEvidenceItem = require_action.action("ACCREDIBLE_CERTIFICATES_UPDATE_EVIDENCE_ITEM", {
|
|
34
|
+
slug: "accredible_certificates-update-evidence-item",
|
|
35
|
+
name: "Update Evidence Item",
|
|
36
|
+
description: "Tool to update an existing evidence item for a credential. Use when you need to modify the details of an evidence item after it has been created.",
|
|
37
|
+
input: AccredibleCertificatesUpdateEvidenceItemInput,
|
|
38
|
+
output: AccredibleCertificatesUpdateEvidenceItemOutput
|
|
39
|
+
});
|
|
40
|
+
//#endregion
|
|
41
|
+
exports.accredibleCertificatesUpdateEvidenceItem = accredibleCertificatesUpdateEvidenceItem;
|
|
42
|
+
|
|
43
|
+
//# sourceMappingURL=update-evidence-item.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-evidence-item.cjs","names":["z","action"],"sources":["../../src/actions/update-evidence-item.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const AccredibleCertificatesUpdateEvidenceItemInput: z.ZodTypeAny = z.object({\n url: z.string().describe(\"If the category is url or video, this should be the URL of Evidence Item\").optional(),\n file: z.string().describe(\"If the category is file, this should be the file's URL\").optional(),\n preview: z.string().describe(\"By default if you add a URL category EvidenceItem, we take a screenshot to set the preview of this URL on Credentials. You can overwrite this default behaviour by setting this preview field to be the URL of the desired image\").optional(),\n category: z.enum([\"file\", \"url\", \"video\", \"grade\", \"transcript\"]).describe(\"Type of evidence item, must be one of [file, url, video, grade, transcript]. The type dictates how the item is displayed on the Credential\").optional(),\n position: z.number().int().describe(\"The numeric position of the evidence item on the credential. 0 is displayed first in the list\").optional(),\n description: z.string().describe(\"Title text for the evidence item displayed on the credential\").optional(),\n credential_id: z.string().describe(\"ID of the Credential in the form of a string or integer for the particular Credential requested\"),\n string_object: z.string().describe(\"If the category is grade or transcript then use it. For grade it will be just string like '83'\").optional(),\n custom_insight: z.string().describe(\"The insights which will appear below Evidence Item, if not given it will be generated automatically based on data\").optional(),\n evidence_item_id: z.number().int().describe(\"ID of the Evidence Item in the form of an integer\"),\n}).describe(\"Request schema for updating an Evidence Item on a Credential.\");\nconst AccredibleCertificatesUpdateEvidenceItem_EvidenceItemResponseSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique ID of the evidence item\"),\n type: z.string().describe(\"Category/type of the evidence item\"),\n link_url: z.string().describe(\"Link URL of the evidence item, if applicable\").nullable().optional(),\n position: z.number().int().describe(\"Position index on the credential list\"),\n description: z.string().describe(\"Title text of the evidence item\"),\n supplemental: z.boolean().describe(\"Whether this item is supplemental to the credential\"),\n string_object: z.union([z.string(), z.record(z.string(), z.unknown())]).nullable().optional(),\n preview_image_url: z.string().describe(\"Preview image URL for the evidence item\").nullable().optional(),\n});\nexport const AccredibleCertificatesUpdateEvidenceItemOutput: z.ZodTypeAny = z.object({\n evidence_item: AccredibleCertificatesUpdateEvidenceItem_EvidenceItemResponseSchema.nullable(),\n});\n\nexport const accredibleCertificatesUpdateEvidenceItem = action(\"ACCREDIBLE_CERTIFICATES_UPDATE_EVIDENCE_ITEM\", {\n slug: \"accredible_certificates-update-evidence-item\",\n name: \"Update Evidence Item\",\n description: \"Tool to update an existing evidence item for a credential. Use when you need to modify the details of an evidence item after it has been created.\",\n input: AccredibleCertificatesUpdateEvidenceItemInput,\n output: AccredibleCertificatesUpdateEvidenceItemOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gDAA8DA,IAAAA,EAAE,OAAO;CAClF,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CAC9G,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CAC7F,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kOAAkO,CAAC,CAAC,SAAS;CAC1Q,UAAUA,IAAAA,EAAE,KAAK;EAAC;EAAQ;EAAO;EAAS;EAAS;CAAY,CAAC,CAAC,CAAC,SAAS,4IAA4I,CAAC,CAAC,SAAS;CAClO,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+FAA+F,CAAC,CAAC,SAAS;CAC9I,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CAC1G,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iGAAiG;CACpI,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gGAAgG,CAAC,CAAC,SAAS;CAC9I,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mHAAmH,CAAC,CAAC,SAAS;CAClK,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD;AACjG,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAM,sEAAoFA,IAAAA,EAAE,OAAO;CACjG,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC;CAC9D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;CAC9D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC;CAC3E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;CAClE,cAAcA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,qDAAqD;CACxF,eAAeA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxG,CAAC;AACD,MAAa,iDAA+DA,IAAAA,EAAE,OAAO,EACnF,eAAe,oEAAoE,SAAS,EAC9F,CAAC;AAED,MAAa,2CAA2CC,eAAAA,OAAO,gDAAgD;CAC7G,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-evidence-item.d.ts
|
|
4
|
+
declare const AccredibleCertificatesUpdateEvidenceItemInput: z.ZodTypeAny;
|
|
5
|
+
declare const AccredibleCertificatesUpdateEvidenceItemOutput: z.ZodTypeAny;
|
|
6
|
+
declare const accredibleCertificatesUpdateEvidenceItem: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { accredibleCertificatesUpdateEvidenceItem };
|
|
9
|
+
//# sourceMappingURL=update-evidence-item.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-evidence-item.d.cts","names":[],"sources":["../../src/actions/update-evidence-item.ts"],"mappings":";;;cAIa,6CAAA,EAA+C,CAAA,CAAE,UAWc;AAAA,cAW/D,8CAAA,EAAgD,CAAA,CAAE,UAE7D;AAAA,cAEW,wCAAA,gCAAwC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/update-evidence-item.d.ts
|
|
4
|
+
declare const AccredibleCertificatesUpdateEvidenceItemInput: z.ZodTypeAny;
|
|
5
|
+
declare const AccredibleCertificatesUpdateEvidenceItemOutput: z.ZodTypeAny;
|
|
6
|
+
declare const accredibleCertificatesUpdateEvidenceItem: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { accredibleCertificatesUpdateEvidenceItem };
|
|
9
|
+
//# sourceMappingURL=update-evidence-item.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-evidence-item.d.mts","names":[],"sources":["../../src/actions/update-evidence-item.ts"],"mappings":";;;cAIa,6CAAA,EAA+C,CAAA,CAAE,UAWc;AAAA,cAW/D,8CAAA,EAAgD,CAAA,CAAE,UAE7D;AAAA,cAEW,wCAAA,gCAAwC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/update-evidence-item.ts
|
|
4
|
+
const AccredibleCertificatesUpdateEvidenceItemInput = z.object({
|
|
5
|
+
url: z.string().describe("If the category is url or video, this should be the URL of Evidence Item").optional(),
|
|
6
|
+
file: z.string().describe("If the category is file, this should be the file's URL").optional(),
|
|
7
|
+
preview: z.string().describe("By default if you add a URL category EvidenceItem, we take a screenshot to set the preview of this URL on Credentials. You can overwrite this default behaviour by setting this preview field to be the URL of the desired image").optional(),
|
|
8
|
+
category: z.enum([
|
|
9
|
+
"file",
|
|
10
|
+
"url",
|
|
11
|
+
"video",
|
|
12
|
+
"grade",
|
|
13
|
+
"transcript"
|
|
14
|
+
]).describe("Type of evidence item, must be one of [file, url, video, grade, transcript]. The type dictates how the item is displayed on the Credential").optional(),
|
|
15
|
+
position: z.number().int().describe("The numeric position of the evidence item on the credential. 0 is displayed first in the list").optional(),
|
|
16
|
+
description: z.string().describe("Title text for the evidence item displayed on the credential").optional(),
|
|
17
|
+
credential_id: z.string().describe("ID of the Credential in the form of a string or integer for the particular Credential requested"),
|
|
18
|
+
string_object: z.string().describe("If the category is grade or transcript then use it. For grade it will be just string like '83'").optional(),
|
|
19
|
+
custom_insight: z.string().describe("The insights which will appear below Evidence Item, if not given it will be generated automatically based on data").optional(),
|
|
20
|
+
evidence_item_id: z.number().int().describe("ID of the Evidence Item in the form of an integer")
|
|
21
|
+
}).describe("Request schema for updating an Evidence Item on a Credential.");
|
|
22
|
+
const AccredibleCertificatesUpdateEvidenceItem_EvidenceItemResponseSchema = z.object({
|
|
23
|
+
id: z.number().int().describe("Unique ID of the evidence item"),
|
|
24
|
+
type: z.string().describe("Category/type of the evidence item"),
|
|
25
|
+
link_url: z.string().describe("Link URL of the evidence item, if applicable").nullable().optional(),
|
|
26
|
+
position: z.number().int().describe("Position index on the credential list"),
|
|
27
|
+
description: z.string().describe("Title text of the evidence item"),
|
|
28
|
+
supplemental: z.boolean().describe("Whether this item is supplemental to the credential"),
|
|
29
|
+
string_object: z.union([z.string(), z.record(z.string(), z.unknown())]).nullable().optional(),
|
|
30
|
+
preview_image_url: z.string().describe("Preview image URL for the evidence item").nullable().optional()
|
|
31
|
+
});
|
|
32
|
+
const accredibleCertificatesUpdateEvidenceItem = action("ACCREDIBLE_CERTIFICATES_UPDATE_EVIDENCE_ITEM", {
|
|
33
|
+
slug: "accredible_certificates-update-evidence-item",
|
|
34
|
+
name: "Update Evidence Item",
|
|
35
|
+
description: "Tool to update an existing evidence item for a credential. Use when you need to modify the details of an evidence item after it has been created.",
|
|
36
|
+
input: AccredibleCertificatesUpdateEvidenceItemInput,
|
|
37
|
+
output: z.object({ evidence_item: AccredibleCertificatesUpdateEvidenceItem_EvidenceItemResponseSchema.nullable() })
|
|
38
|
+
});
|
|
39
|
+
//#endregion
|
|
40
|
+
export { accredibleCertificatesUpdateEvidenceItem };
|
|
41
|
+
|
|
42
|
+
//# sourceMappingURL=update-evidence-item.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-evidence-item.mjs","names":[],"sources":["../../src/actions/update-evidence-item.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const AccredibleCertificatesUpdateEvidenceItemInput: z.ZodTypeAny = z.object({\n url: z.string().describe(\"If the category is url or video, this should be the URL of Evidence Item\").optional(),\n file: z.string().describe(\"If the category is file, this should be the file's URL\").optional(),\n preview: z.string().describe(\"By default if you add a URL category EvidenceItem, we take a screenshot to set the preview of this URL on Credentials. You can overwrite this default behaviour by setting this preview field to be the URL of the desired image\").optional(),\n category: z.enum([\"file\", \"url\", \"video\", \"grade\", \"transcript\"]).describe(\"Type of evidence item, must be one of [file, url, video, grade, transcript]. The type dictates how the item is displayed on the Credential\").optional(),\n position: z.number().int().describe(\"The numeric position of the evidence item on the credential. 0 is displayed first in the list\").optional(),\n description: z.string().describe(\"Title text for the evidence item displayed on the credential\").optional(),\n credential_id: z.string().describe(\"ID of the Credential in the form of a string or integer for the particular Credential requested\"),\n string_object: z.string().describe(\"If the category is grade or transcript then use it. For grade it will be just string like '83'\").optional(),\n custom_insight: z.string().describe(\"The insights which will appear below Evidence Item, if not given it will be generated automatically based on data\").optional(),\n evidence_item_id: z.number().int().describe(\"ID of the Evidence Item in the form of an integer\"),\n}).describe(\"Request schema for updating an Evidence Item on a Credential.\");\nconst AccredibleCertificatesUpdateEvidenceItem_EvidenceItemResponseSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique ID of the evidence item\"),\n type: z.string().describe(\"Category/type of the evidence item\"),\n link_url: z.string().describe(\"Link URL of the evidence item, if applicable\").nullable().optional(),\n position: z.number().int().describe(\"Position index on the credential list\"),\n description: z.string().describe(\"Title text of the evidence item\"),\n supplemental: z.boolean().describe(\"Whether this item is supplemental to the credential\"),\n string_object: z.union([z.string(), z.record(z.string(), z.unknown())]).nullable().optional(),\n preview_image_url: z.string().describe(\"Preview image URL for the evidence item\").nullable().optional(),\n});\nexport const AccredibleCertificatesUpdateEvidenceItemOutput: z.ZodTypeAny = z.object({\n evidence_item: AccredibleCertificatesUpdateEvidenceItem_EvidenceItemResponseSchema.nullable(),\n});\n\nexport const accredibleCertificatesUpdateEvidenceItem = action(\"ACCREDIBLE_CERTIFICATES_UPDATE_EVIDENCE_ITEM\", {\n slug: \"accredible_certificates-update-evidence-item\",\n name: \"Update Evidence Item\",\n description: \"Tool to update an existing evidence item for a credential. Use when you need to modify the details of an evidence item after it has been created.\",\n input: AccredibleCertificatesUpdateEvidenceItemInput,\n output: AccredibleCertificatesUpdateEvidenceItemOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gDAA8D,EAAE,OAAO;CAClF,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CAC9G,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CAC7F,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,kOAAkO,CAAC,CAAC,SAAS;CAC1Q,UAAU,EAAE,KAAK;EAAC;EAAQ;EAAO;EAAS;EAAS;CAAY,CAAC,CAAC,CAAC,SAAS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,QAT0E,EAAE,OAAO,EACnF,eAAe,oEAAoE,SAAS,EAC9F,CAOU;AACV,CAAC"}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/update-group.ts
|
|
4
|
+
const AccredibleCertificatesUpdateGroupInput = zod.z.object({
|
|
5
|
+
name: zod.z.string().describe("Name of the group (for internal reference, not shown to the recipient)").optional(),
|
|
6
|
+
group_id: zod.z.number().int().describe("ID of the group to update"),
|
|
7
|
+
language: zod.z.enum([
|
|
8
|
+
"en",
|
|
9
|
+
"es",
|
|
10
|
+
"vi",
|
|
11
|
+
"pt",
|
|
12
|
+
"ja",
|
|
13
|
+
"fr",
|
|
14
|
+
"da",
|
|
15
|
+
"nl",
|
|
16
|
+
"fi",
|
|
17
|
+
"no",
|
|
18
|
+
"nb",
|
|
19
|
+
"ro",
|
|
20
|
+
"sv",
|
|
21
|
+
"th",
|
|
22
|
+
"tw",
|
|
23
|
+
"zh",
|
|
24
|
+
"tr",
|
|
25
|
+
"ar",
|
|
26
|
+
"he",
|
|
27
|
+
"ms",
|
|
28
|
+
"de"
|
|
29
|
+
]).describe("Language for the group").optional(),
|
|
30
|
+
meta_data: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Arbitrary metadata to associate with this group").optional(),
|
|
31
|
+
attach_pdf: zod.z.boolean().describe("Whether to attach the Credential PDF to the email when recipient is informed").optional(),
|
|
32
|
+
blockchain: zod.z.boolean().describe("Enable or disable recording of these Credentials on a Blockchain").optional(),
|
|
33
|
+
signup_url: zod.z.string().describe("URL for recipients to sign up for the course").optional(),
|
|
34
|
+
auto_expiry: zod.z.number().int().describe("Number of years from issue date after which the credential will automatically expire; ignored if <=0").optional(),
|
|
35
|
+
collections: zod.z.array(zod.z.object({})).describe("List of collections to assign; each object needs an 'id' field").optional(),
|
|
36
|
+
course_link: zod.z.string().describe("URL to the web page with information related to this group").optional(),
|
|
37
|
+
course_name: zod.z.string().describe("Name of the course or achievement visible to the recipient").optional(),
|
|
38
|
+
department_id: zod.z.number().int().describe("Department that the group belongs to; if not defined, it defaults to the organization's default department").optional(),
|
|
39
|
+
badge_design_id: zod.z.number().int().describe("Badge Design ID which the group will use to display credentials").optional(),
|
|
40
|
+
signup_url_show: zod.z.boolean().describe("Show or hide the signup URL; true to show, false to hide, null to inherit default").optional(),
|
|
41
|
+
course_link_show: zod.z.boolean().describe("Show or hide the course link; true to show, false to hide, null to inherit default").optional(),
|
|
42
|
+
learning_outcomes: zod.z.array(zod.z.string()).describe("List of learning outcomes for this group").optional(),
|
|
43
|
+
primary_design_id: zod.z.number().int().describe("Primary Design ID which the group will use to display credentials").optional(),
|
|
44
|
+
skill_category_id: zod.z.number().int().describe("ID of the skill category to associate with this group").optional(),
|
|
45
|
+
course_description: zod.z.string().describe("Description of the course or achievement visible to the recipient").optional(),
|
|
46
|
+
certificate_design_id: zod.z.number().int().describe("Certificate Design ID which the group will use to display credentials").optional(),
|
|
47
|
+
organization_link_show: zod.z.boolean().describe("Show or hide link to the organization's homepage; true to show, false to hide, null to inherit default").optional(),
|
|
48
|
+
allow_duplicate_credentials: zod.z.boolean().describe("Whether an email address can receive more than one credential in this group; defaults to false").optional(),
|
|
49
|
+
generate_private_credential: zod.z.boolean().describe("Override department default for private credentials; true or false to override, null to inherit department setting").optional()
|
|
50
|
+
}).describe("Fields for updating an existing group. Only include the fields you wish to change.");
|
|
51
|
+
const AccredibleCertificatesUpdateGroup_CollectionSchema = zod.z.object({
|
|
52
|
+
id: zod.z.number().int().describe("Collection ID"),
|
|
53
|
+
name: zod.z.string().describe("Collection name"),
|
|
54
|
+
description: zod.z.string().describe("Collection description").nullable().optional()
|
|
55
|
+
});
|
|
56
|
+
const AccredibleCertificatesUpdateGroup_SkillCategorySchema = zod.z.object({
|
|
57
|
+
id: zod.z.number().int().describe("Skill category ID"),
|
|
58
|
+
name: zod.z.string().describe("Skill category name")
|
|
59
|
+
});
|
|
60
|
+
const AccredibleCertificatesUpdateGroup_GroupSchema = zod.z.object({
|
|
61
|
+
id: zod.z.number().int().describe("Unique identifier of the group"),
|
|
62
|
+
name: zod.z.string().describe("Name of the group"),
|
|
63
|
+
language: zod.z.string().describe("Language code for the group"),
|
|
64
|
+
design_id: zod.z.number().int().describe("Design ID in use (deprecated)").nullable().optional(),
|
|
65
|
+
meta_data: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Arbitrary metadata of the group").nullable().optional(),
|
|
66
|
+
attach_pdf: zod.z.boolean().describe("Whether the PDF is attached to the recipient email"),
|
|
67
|
+
blockchain: zod.z.boolean().describe("Whether blockchain recording is enabled"),
|
|
68
|
+
created_at: zod.z.string().describe("Timestamp when the group was created"),
|
|
69
|
+
signup_url: zod.z.string().describe("Signup URL for recipients").nullable().optional(),
|
|
70
|
+
updated_at: zod.z.string().describe("Timestamp when the group was last updated"),
|
|
71
|
+
auto_expiry: zod.z.number().int().describe("Auto-expiry years set for credentials").nullable().optional(),
|
|
72
|
+
collections: zod.z.array(AccredibleCertificatesUpdateGroup_CollectionSchema).describe("Collections assigned to this group").nullable().optional(),
|
|
73
|
+
course_link: zod.z.string().describe("URL to the course information page").nullable().optional(),
|
|
74
|
+
course_name: zod.z.string().describe("Name of the course or achievement visible to the recipient"),
|
|
75
|
+
design_name: zod.z.string().describe("Name of the design in use").nullable().optional(),
|
|
76
|
+
department_id: zod.z.number().int().describe("Department ID owning the group"),
|
|
77
|
+
skill_category: AccredibleCertificatesUpdateGroup_SkillCategorySchema.nullable().optional(),
|
|
78
|
+
badge_design_id: zod.z.number().int().describe("Badge design ID in use").nullable().optional(),
|
|
79
|
+
signup_url_show: zod.z.boolean().describe("Whether signup URL is shown"),
|
|
80
|
+
course_link_show: zod.z.boolean().describe("Whether course link is shown"),
|
|
81
|
+
learning_outcomes: zod.z.array(zod.z.string()).describe("Learning outcomes of the group").nullable().optional(),
|
|
82
|
+
primary_design_id: zod.z.number().int().describe("Primary design ID in use").nullable().optional(),
|
|
83
|
+
course_description: zod.z.string().describe("Description of the course or achievement visible to the recipient"),
|
|
84
|
+
certificate_design_id: zod.z.number().int().describe("Certificate design ID in use").nullable().optional(),
|
|
85
|
+
organization_link_show: zod.z.boolean().describe("Whether organization link is shown"),
|
|
86
|
+
generate_private_credential: zod.z.boolean().describe("Default private credential setting").nullable().optional()
|
|
87
|
+
});
|
|
88
|
+
const AccredibleCertificatesUpdateGroupOutput = zod.z.object({ group: AccredibleCertificatesUpdateGroup_GroupSchema.nullable() });
|
|
89
|
+
const accredibleCertificatesUpdateGroup = require_action.action("ACCREDIBLE_CERTIFICATES_UPDATE_GROUP", {
|
|
90
|
+
slug: "accredible_certificates-update-group",
|
|
91
|
+
name: "Update Group",
|
|
92
|
+
description: "Tool to update an existing group. Use when you need to modify group details after fetching its current data.",
|
|
93
|
+
input: AccredibleCertificatesUpdateGroupInput,
|
|
94
|
+
output: AccredibleCertificatesUpdateGroupOutput
|
|
95
|
+
});
|
|
96
|
+
//#endregion
|
|
97
|
+
exports.accredibleCertificatesUpdateGroup = accredibleCertificatesUpdateGroup;
|
|
98
|
+
|
|
99
|
+
//# sourceMappingURL=update-group.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-group.cjs","names":["z","action"],"sources":["../../src/actions/update-group.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const AccredibleCertificatesUpdateGroupInput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the group (for internal reference, not shown to the recipient)\").optional(),\n group_id: z.number().int().describe(\"ID of the group to update\"),\n language: z.enum([\"en\", \"es\", \"vi\", \"pt\", \"ja\", \"fr\", \"da\", \"nl\", \"fi\", \"no\", \"nb\", \"ro\", \"sv\", \"th\", \"tw\", \"zh\", \"tr\", \"ar\", \"he\", \"ms\", \"de\"]).describe(\"Language for the group\").optional(),\n meta_data: z.record(z.string(), z.unknown()).describe(\"Arbitrary metadata to associate with this group\").optional(),\n attach_pdf: z.boolean().describe(\"Whether to attach the Credential PDF to the email when recipient is informed\").optional(),\n blockchain: z.boolean().describe(\"Enable or disable recording of these Credentials on a Blockchain\").optional(),\n signup_url: z.string().describe(\"URL for recipients to sign up for the course\").optional(),\n auto_expiry: z.number().int().describe(\"Number of years from issue date after which the credential will automatically expire; ignored if <=0\").optional(),\n collections: z.array(z.object({})).describe(\"List of collections to assign; each object needs an 'id' field\").optional(),\n course_link: z.string().describe(\"URL to the web page with information related to this group\").optional(),\n course_name: z.string().describe(\"Name of the course or achievement visible to the recipient\").optional(),\n department_id: z.number().int().describe(\"Department that the group belongs to; if not defined, it defaults to the organization's default department\").optional(),\n badge_design_id: z.number().int().describe(\"Badge Design ID which the group will use to display credentials\").optional(),\n signup_url_show: z.boolean().describe(\"Show or hide the signup URL; true to show, false to hide, null to inherit default\").optional(),\n course_link_show: z.boolean().describe(\"Show or hide the course link; true to show, false to hide, null to inherit default\").optional(),\n learning_outcomes: z.array(z.string()).describe(\"List of learning outcomes for this group\").optional(),\n primary_design_id: z.number().int().describe(\"Primary Design ID which the group will use to display credentials\").optional(),\n skill_category_id: z.number().int().describe(\"ID of the skill category to associate with this group\").optional(),\n course_description: z.string().describe(\"Description of the course or achievement visible to the recipient\").optional(),\n certificate_design_id: z.number().int().describe(\"Certificate Design ID which the group will use to display credentials\").optional(),\n organization_link_show: z.boolean().describe(\"Show or hide link to the organization's homepage; true to show, false to hide, null to inherit default\").optional(),\n allow_duplicate_credentials: z.boolean().describe(\"Whether an email address can receive more than one credential in this group; defaults to false\").optional(),\n generate_private_credential: z.boolean().describe(\"Override department default for private credentials; true or false to override, null to inherit department setting\").optional(),\n}).describe(\"Fields for updating an existing group. Only include the fields you wish to change.\");\nconst AccredibleCertificatesUpdateGroup_CollectionSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Collection ID\"),\n name: z.string().describe(\"Collection name\"),\n description: z.string().describe(\"Collection description\").nullable().optional(),\n});\nconst AccredibleCertificatesUpdateGroup_SkillCategorySchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Skill category ID\"),\n name: z.string().describe(\"Skill category name\"),\n});\nconst AccredibleCertificatesUpdateGroup_GroupSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier of 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 in use (deprecated)\").nullable().optional(),\n meta_data: z.record(z.string(), z.unknown()).describe(\"Arbitrary metadata of the group\").nullable().optional(),\n attach_pdf: z.boolean().describe(\"Whether the PDF is attached to the recipient email\"),\n blockchain: z.boolean().describe(\"Whether blockchain recording is enabled\"),\n created_at: z.string().describe(\"Timestamp when the group was created\"),\n signup_url: z.string().describe(\"Signup URL for recipients\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when the group was last updated\"),\n auto_expiry: z.number().int().describe(\"Auto-expiry years set for credentials\").nullable().optional(),\n collections: z.array(AccredibleCertificatesUpdateGroup_CollectionSchema).describe(\"Collections assigned to this group\").nullable().optional(),\n course_link: z.string().describe(\"URL to the course information page\").nullable().optional(),\n course_name: z.string().describe(\"Name of the course or achievement visible to the recipient\"),\n design_name: z.string().describe(\"Name of the design in use\").nullable().optional(),\n department_id: z.number().int().describe(\"Department ID owning the group\"),\n skill_category: AccredibleCertificatesUpdateGroup_SkillCategorySchema.nullable().optional(),\n badge_design_id: z.number().int().describe(\"Badge design ID in use\").nullable().optional(),\n signup_url_show: z.boolean().describe(\"Whether signup URL is shown\"),\n course_link_show: z.boolean().describe(\"Whether course link is shown\"),\n learning_outcomes: z.array(z.string()).describe(\"Learning outcomes of the group\").nullable().optional(),\n primary_design_id: z.number().int().describe(\"Primary design ID in use\").nullable().optional(),\n course_description: z.string().describe(\"Description of the course or achievement visible to the recipient\"),\n certificate_design_id: z.number().int().describe(\"Certificate design ID in use\").nullable().optional(),\n organization_link_show: z.boolean().describe(\"Whether organization link is shown\"),\n generate_private_credential: z.boolean().describe(\"Default private credential setting\").nullable().optional(),\n});\nexport const AccredibleCertificatesUpdateGroupOutput: z.ZodTypeAny = z.object({\n group: AccredibleCertificatesUpdateGroup_GroupSchema.nullable(),\n});\n\nexport const accredibleCertificatesUpdateGroup = action(\"ACCREDIBLE_CERTIFICATES_UPDATE_GROUP\", {\n slug: \"accredible_certificates-update-group\",\n name: \"Update Group\",\n description: \"Tool to update an existing group. Use when you need to modify group details after fetching its current data.\",\n input: AccredibleCertificatesUpdateGroupInput,\n output: AccredibleCertificatesUpdateGroupOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yCAAuDA,IAAAA,EAAE,OAAO;CAC3E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;CAC7G,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B;CAC/D,UAAUA,IAAAA,EAAE,KAAK;EAAC;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;CAAI,CAAC,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CAC7L,WAAWA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAClH,YAAYA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;CAC1H,YAAYA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CAC9G,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACzF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS;CACxJ,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IAAI,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE;CAC3G,uBAAuBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,wBAAwBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,oCAAoC;CACjF,6BAA6BA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9G,CAAC;AACD,MAAa,0CAAwDA,IAAAA,EAAE,OAAO,EAC5E,OAAO,8CAA8C,SAAS,EAChE,CAAC;AAED,MAAa,oCAAoCC,eAAAA,OAAO,wCAAwC;CAC9F,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-group.d.ts
|
|
4
|
+
declare const AccredibleCertificatesUpdateGroupInput: z.ZodTypeAny;
|
|
5
|
+
declare const AccredibleCertificatesUpdateGroupOutput: z.ZodTypeAny;
|
|
6
|
+
declare const accredibleCertificatesUpdateGroup: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { accredibleCertificatesUpdateGroup };
|
|
9
|
+
//# sourceMappingURL=update-group.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-group.d.cts","names":[],"sources":["../../src/actions/update-group.ts"],"mappings":";;;cAIa,sCAAA,EAAwC,CAAA,CAAE,UAwB0C;AAAA,cAsCpF,uCAAA,EAAyC,CAAA,CAAE,UAEtD;AAAA,cAEW,iCAAA,gCAAiC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/update-group.d.ts
|
|
4
|
+
declare const AccredibleCertificatesUpdateGroupInput: z.ZodTypeAny;
|
|
5
|
+
declare const AccredibleCertificatesUpdateGroupOutput: z.ZodTypeAny;
|
|
6
|
+
declare const accredibleCertificatesUpdateGroup: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { accredibleCertificatesUpdateGroup };
|
|
9
|
+
//# sourceMappingURL=update-group.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-group.d.mts","names":[],"sources":["../../src/actions/update-group.ts"],"mappings":";;;cAIa,sCAAA,EAAwC,CAAA,CAAE,UAwB0C;AAAA,cAsCpF,uCAAA,EAAyC,CAAA,CAAE,UAEtD;AAAA,cAEW,iCAAA,gCAAiC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/update-group.ts
|
|
4
|
+
const AccredibleCertificatesUpdateGroupInput = z.object({
|
|
5
|
+
name: z.string().describe("Name of the group (for internal reference, not shown to the recipient)").optional(),
|
|
6
|
+
group_id: z.number().int().describe("ID of the group to update"),
|
|
7
|
+
language: z.enum([
|
|
8
|
+
"en",
|
|
9
|
+
"es",
|
|
10
|
+
"vi",
|
|
11
|
+
"pt",
|
|
12
|
+
"ja",
|
|
13
|
+
"fr",
|
|
14
|
+
"da",
|
|
15
|
+
"nl",
|
|
16
|
+
"fi",
|
|
17
|
+
"no",
|
|
18
|
+
"nb",
|
|
19
|
+
"ro",
|
|
20
|
+
"sv",
|
|
21
|
+
"th",
|
|
22
|
+
"tw",
|
|
23
|
+
"zh",
|
|
24
|
+
"tr",
|
|
25
|
+
"ar",
|
|
26
|
+
"he",
|
|
27
|
+
"ms",
|
|
28
|
+
"de"
|
|
29
|
+
]).describe("Language for the group").optional(),
|
|
30
|
+
meta_data: z.record(z.string(), z.unknown()).describe("Arbitrary metadata to associate with this group").optional(),
|
|
31
|
+
attach_pdf: z.boolean().describe("Whether to attach the Credential PDF to the email when recipient is informed").optional(),
|
|
32
|
+
blockchain: z.boolean().describe("Enable or disable recording of these Credentials on a Blockchain").optional(),
|
|
33
|
+
signup_url: z.string().describe("URL for recipients to sign up for the course").optional(),
|
|
34
|
+
auto_expiry: z.number().int().describe("Number of years from issue date after which the credential will automatically expire; ignored if <=0").optional(),
|
|
35
|
+
collections: z.array(z.object({})).describe("List of collections to assign; each object needs an 'id' field").optional(),
|
|
36
|
+
course_link: z.string().describe("URL to the web page with information related to this group").optional(),
|
|
37
|
+
course_name: z.string().describe("Name of the course or achievement visible to the recipient").optional(),
|
|
38
|
+
department_id: z.number().int().describe("Department that the group belongs to; if not defined, it defaults to the organization's default department").optional(),
|
|
39
|
+
badge_design_id: z.number().int().describe("Badge Design ID which the group will use to display credentials").optional(),
|
|
40
|
+
signup_url_show: z.boolean().describe("Show or hide the signup URL; true to show, false to hide, null to inherit default").optional(),
|
|
41
|
+
course_link_show: z.boolean().describe("Show or hide the course link; true to show, false to hide, null to inherit default").optional(),
|
|
42
|
+
learning_outcomes: z.array(z.string()).describe("List of learning outcomes for this group").optional(),
|
|
43
|
+
primary_design_id: z.number().int().describe("Primary Design ID which the group will use to display credentials").optional(),
|
|
44
|
+
skill_category_id: z.number().int().describe("ID of the skill category to associate with this group").optional(),
|
|
45
|
+
course_description: z.string().describe("Description of the course or achievement visible to the recipient").optional(),
|
|
46
|
+
certificate_design_id: z.number().int().describe("Certificate Design ID which the group will use to display credentials").optional(),
|
|
47
|
+
organization_link_show: z.boolean().describe("Show or hide link to the organization's homepage; true to show, false to hide, null to inherit default").optional(),
|
|
48
|
+
allow_duplicate_credentials: z.boolean().describe("Whether an email address can receive more than one credential in this group; defaults to false").optional(),
|
|
49
|
+
generate_private_credential: z.boolean().describe("Override department default for private credentials; true or false to override, null to inherit department setting").optional()
|
|
50
|
+
}).describe("Fields for updating an existing group. Only include the fields you wish to change.");
|
|
51
|
+
const AccredibleCertificatesUpdateGroup_CollectionSchema = z.object({
|
|
52
|
+
id: z.number().int().describe("Collection ID"),
|
|
53
|
+
name: z.string().describe("Collection name"),
|
|
54
|
+
description: z.string().describe("Collection description").nullable().optional()
|
|
55
|
+
});
|
|
56
|
+
const AccredibleCertificatesUpdateGroup_SkillCategorySchema = z.object({
|
|
57
|
+
id: z.number().int().describe("Skill category ID"),
|
|
58
|
+
name: z.string().describe("Skill category name")
|
|
59
|
+
});
|
|
60
|
+
const AccredibleCertificatesUpdateGroup_GroupSchema = z.object({
|
|
61
|
+
id: z.number().int().describe("Unique identifier of the group"),
|
|
62
|
+
name: z.string().describe("Name of the group"),
|
|
63
|
+
language: z.string().describe("Language code for the group"),
|
|
64
|
+
design_id: z.number().int().describe("Design ID in use (deprecated)").nullable().optional(),
|
|
65
|
+
meta_data: z.record(z.string(), z.unknown()).describe("Arbitrary metadata of the group").nullable().optional(),
|
|
66
|
+
attach_pdf: z.boolean().describe("Whether the PDF is attached to the recipient email"),
|
|
67
|
+
blockchain: z.boolean().describe("Whether blockchain recording is enabled"),
|
|
68
|
+
created_at: z.string().describe("Timestamp when the group was created"),
|
|
69
|
+
signup_url: z.string().describe("Signup URL for recipients").nullable().optional(),
|
|
70
|
+
updated_at: z.string().describe("Timestamp when the group was last updated"),
|
|
71
|
+
auto_expiry: z.number().int().describe("Auto-expiry years set for credentials").nullable().optional(),
|
|
72
|
+
collections: z.array(AccredibleCertificatesUpdateGroup_CollectionSchema).describe("Collections assigned to this group").nullable().optional(),
|
|
73
|
+
course_link: z.string().describe("URL to the course information page").nullable().optional(),
|
|
74
|
+
course_name: z.string().describe("Name of the course or achievement visible to the recipient"),
|
|
75
|
+
design_name: z.string().describe("Name of the design in use").nullable().optional(),
|
|
76
|
+
department_id: z.number().int().describe("Department ID owning the group"),
|
|
77
|
+
skill_category: AccredibleCertificatesUpdateGroup_SkillCategorySchema.nullable().optional(),
|
|
78
|
+
badge_design_id: z.number().int().describe("Badge design ID in use").nullable().optional(),
|
|
79
|
+
signup_url_show: z.boolean().describe("Whether signup URL is shown"),
|
|
80
|
+
course_link_show: z.boolean().describe("Whether course link is shown"),
|
|
81
|
+
learning_outcomes: z.array(z.string()).describe("Learning outcomes of the group").nullable().optional(),
|
|
82
|
+
primary_design_id: z.number().int().describe("Primary design ID in use").nullable().optional(),
|
|
83
|
+
course_description: z.string().describe("Description of the course or achievement visible to the recipient"),
|
|
84
|
+
certificate_design_id: z.number().int().describe("Certificate design ID in use").nullable().optional(),
|
|
85
|
+
organization_link_show: z.boolean().describe("Whether organization link is shown"),
|
|
86
|
+
generate_private_credential: z.boolean().describe("Default private credential setting").nullable().optional()
|
|
87
|
+
});
|
|
88
|
+
const accredibleCertificatesUpdateGroup = action("ACCREDIBLE_CERTIFICATES_UPDATE_GROUP", {
|
|
89
|
+
slug: "accredible_certificates-update-group",
|
|
90
|
+
name: "Update Group",
|
|
91
|
+
description: "Tool to update an existing group. Use when you need to modify group details after fetching its current data.",
|
|
92
|
+
input: AccredibleCertificatesUpdateGroupInput,
|
|
93
|
+
output: z.object({ group: AccredibleCertificatesUpdateGroup_GroupSchema.nullable() })
|
|
94
|
+
});
|
|
95
|
+
//#endregion
|
|
96
|
+
export { accredibleCertificatesUpdateGroup };
|
|
97
|
+
|
|
98
|
+
//# sourceMappingURL=update-group.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-group.mjs","names":[],"sources":["../../src/actions/update-group.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const AccredibleCertificatesUpdateGroupInput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the group (for internal reference, not shown to the recipient)\").optional(),\n group_id: z.number().int().describe(\"ID of the group to update\"),\n language: z.enum([\"en\", \"es\", \"vi\", \"pt\", \"ja\", \"fr\", \"da\", \"nl\", \"fi\", \"no\", \"nb\", \"ro\", \"sv\", \"th\", \"tw\", \"zh\", \"tr\", \"ar\", \"he\", \"ms\", \"de\"]).describe(\"Language for the group\").optional(),\n meta_data: z.record(z.string(), z.unknown()).describe(\"Arbitrary metadata to associate with this group\").optional(),\n attach_pdf: z.boolean().describe(\"Whether to attach the Credential PDF to the email when recipient is informed\").optional(),\n blockchain: z.boolean().describe(\"Enable or disable recording of these Credentials on a Blockchain\").optional(),\n signup_url: z.string().describe(\"URL for recipients to sign up for the course\").optional(),\n auto_expiry: z.number().int().describe(\"Number of years from issue date after which the credential will automatically expire; ignored if <=0\").optional(),\n collections: z.array(z.object({})).describe(\"List of collections to assign; each object needs an 'id' field\").optional(),\n course_link: z.string().describe(\"URL to the web page with information related to this group\").optional(),\n course_name: z.string().describe(\"Name of the course or achievement visible to the recipient\").optional(),\n department_id: z.number().int().describe(\"Department that the group belongs to; if not defined, it defaults to the organization's default department\").optional(),\n badge_design_id: z.number().int().describe(\"Badge Design ID which the group will use to display credentials\").optional(),\n signup_url_show: z.boolean().describe(\"Show or hide the signup URL; true to show, false to hide, null to inherit default\").optional(),\n course_link_show: z.boolean().describe(\"Show or hide the course link; true to show, false to hide, null to inherit default\").optional(),\n learning_outcomes: z.array(z.string()).describe(\"List of learning outcomes for this group\").optional(),\n primary_design_id: z.number().int().describe(\"Primary Design ID which the group will use to display credentials\").optional(),\n skill_category_id: z.number().int().describe(\"ID of the skill category to associate with this group\").optional(),\n course_description: z.string().describe(\"Description of the course or achievement visible to the recipient\").optional(),\n certificate_design_id: z.number().int().describe(\"Certificate Design ID which the group will use to display credentials\").optional(),\n organization_link_show: z.boolean().describe(\"Show or hide link to the organization's homepage; true to show, false to hide, null to inherit default\").optional(),\n allow_duplicate_credentials: z.boolean().describe(\"Whether an email address can receive more than one credential in this group; defaults to false\").optional(),\n generate_private_credential: z.boolean().describe(\"Override department default for private credentials; true or false to override, null to inherit department setting\").optional(),\n}).describe(\"Fields for updating an existing group. Only include the fields you wish to change.\");\nconst AccredibleCertificatesUpdateGroup_CollectionSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Collection ID\"),\n name: z.string().describe(\"Collection name\"),\n description: z.string().describe(\"Collection description\").nullable().optional(),\n});\nconst AccredibleCertificatesUpdateGroup_SkillCategorySchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Skill category ID\"),\n name: z.string().describe(\"Skill category name\"),\n});\nconst AccredibleCertificatesUpdateGroup_GroupSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier of 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 in use (deprecated)\").nullable().optional(),\n meta_data: z.record(z.string(), z.unknown()).describe(\"Arbitrary metadata of the group\").nullable().optional(),\n attach_pdf: z.boolean().describe(\"Whether the PDF is attached to the recipient email\"),\n blockchain: z.boolean().describe(\"Whether blockchain recording is enabled\"),\n created_at: z.string().describe(\"Timestamp when the group was created\"),\n signup_url: z.string().describe(\"Signup URL for recipients\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when the group was last updated\"),\n auto_expiry: z.number().int().describe(\"Auto-expiry years set for credentials\").nullable().optional(),\n collections: z.array(AccredibleCertificatesUpdateGroup_CollectionSchema).describe(\"Collections assigned to this group\").nullable().optional(),\n course_link: z.string().describe(\"URL to the course information page\").nullable().optional(),\n course_name: z.string().describe(\"Name of the course or achievement visible to the recipient\"),\n design_name: z.string().describe(\"Name of the design in use\").nullable().optional(),\n department_id: z.number().int().describe(\"Department ID owning the group\"),\n skill_category: AccredibleCertificatesUpdateGroup_SkillCategorySchema.nullable().optional(),\n badge_design_id: z.number().int().describe(\"Badge design ID in use\").nullable().optional(),\n signup_url_show: z.boolean().describe(\"Whether signup URL is shown\"),\n course_link_show: z.boolean().describe(\"Whether course link is shown\"),\n learning_outcomes: z.array(z.string()).describe(\"Learning outcomes of the group\").nullable().optional(),\n primary_design_id: z.number().int().describe(\"Primary design ID in use\").nullable().optional(),\n course_description: z.string().describe(\"Description of the course or achievement visible to the recipient\"),\n certificate_design_id: z.number().int().describe(\"Certificate design ID in use\").nullable().optional(),\n organization_link_show: z.boolean().describe(\"Whether organization link is shown\"),\n generate_private_credential: z.boolean().describe(\"Default private credential setting\").nullable().optional(),\n});\nexport const AccredibleCertificatesUpdateGroupOutput: z.ZodTypeAny = z.object({\n group: AccredibleCertificatesUpdateGroup_GroupSchema.nullable(),\n});\n\nexport const accredibleCertificatesUpdateGroup = action(\"ACCREDIBLE_CERTIFICATES_UPDATE_GROUP\", {\n slug: \"accredible_certificates-update-group\",\n name: \"Update Group\",\n description: \"Tool to update an existing group. Use when you need to modify group details after fetching its current data.\",\n input: AccredibleCertificatesUpdateGroupInput,\n output: AccredibleCertificatesUpdateGroupOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yCAAuD,EAAE,OAAO;CAC3E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;CAC7G,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B;CAC/D,UAAU,EAAE,KAAK;EAAC;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;CAAI,CAAC,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CAC7L,WAAW,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,i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,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE;CAC3G,uBAAuB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,wBAAwB,EAAE,QAAQ,CAAC,CAAC,SAAS,oCAAoC;CACjF,6BAA6B,EAAE,QAAQ,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9G,CAAC;AAKD,MAAa,oCAAoC,OAAO,wCAAwC;CAC9F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATmE,EAAE,OAAO,EAC5E,OAAO,8CAA8C,SAAS,EAChE,CAOU;AACV,CAAC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/update-reference.ts
|
|
4
|
+
const AccredibleCertificatesUpdateReferenceInput = zod.z.object({
|
|
5
|
+
reference: zod.z.object({
|
|
6
|
+
position: zod.z.number().int().describe("Numeric position of the reference on the credential (0 = first).").optional(),
|
|
7
|
+
description: zod.z.string().describe("Reference comments or text.").optional(),
|
|
8
|
+
relationship: zod.z.enum([
|
|
9
|
+
"taught",
|
|
10
|
+
"managed",
|
|
11
|
+
"mentored",
|
|
12
|
+
"worked",
|
|
13
|
+
"studied",
|
|
14
|
+
"friends",
|
|
15
|
+
"stranger",
|
|
16
|
+
"professor"
|
|
17
|
+
]).describe("Relationship of the referee to the recipient. One of: taught, managed, mentored, worked, studied, friends, stranger, professor.").optional()
|
|
18
|
+
}).describe("Object containing only the reference fields to modify."),
|
|
19
|
+
reference_id: zod.z.number().int().describe("ID of the reference to update."),
|
|
20
|
+
credential_id: zod.z.string().describe("ID of the credential containing the reference.")
|
|
21
|
+
}).describe("Input parameters for UPDATE_REFERENCE action.");
|
|
22
|
+
const AccredibleCertificatesUpdateReference_RefereeSchema = zod.z.object({
|
|
23
|
+
name: zod.z.string().describe("Name of the referee."),
|
|
24
|
+
email: zod.z.string().describe("Email address of the referee."),
|
|
25
|
+
avatar: zod.z.string().describe("URL of the referee's avatar image.").nullable().optional()
|
|
26
|
+
});
|
|
27
|
+
const AccredibleCertificatesUpdateReference_ReferenceResponseSchema = zod.z.object({
|
|
28
|
+
id: zod.z.number().int().describe("Identifier of the reference."),
|
|
29
|
+
referee: AccredibleCertificatesUpdateReference_RefereeSchema.nullable(),
|
|
30
|
+
description: zod.z.string().describe("Reference comments or text."),
|
|
31
|
+
relationship: zod.z.enum([
|
|
32
|
+
"taught",
|
|
33
|
+
"managed",
|
|
34
|
+
"mentored",
|
|
35
|
+
"worked",
|
|
36
|
+
"studied",
|
|
37
|
+
"friends",
|
|
38
|
+
"stranger",
|
|
39
|
+
"professor"
|
|
40
|
+
]).describe("Relationship of the referee to the recipient."),
|
|
41
|
+
supplemental: zod.z.boolean().describe("Indicates if the reference is supplemental.")
|
|
42
|
+
});
|
|
43
|
+
const AccredibleCertificatesUpdateReferenceOutput = zod.z.object({ reference: AccredibleCertificatesUpdateReference_ReferenceResponseSchema.nullable() }).describe("Response model for UPDATE_REFERENCE action.");
|
|
44
|
+
const accredibleCertificatesUpdateReference = require_action.action("ACCREDIBLE_CERTIFICATES_UPDATE_REFERENCE", {
|
|
45
|
+
slug: "accredible_certificates-update-reference",
|
|
46
|
+
name: "Update Reference",
|
|
47
|
+
description: "Tool to update a reference by ID. Use when you need to modify a reference's details for a credential. Use after retrieving the reference ID to change comments or relationship.",
|
|
48
|
+
input: AccredibleCertificatesUpdateReferenceInput,
|
|
49
|
+
output: AccredibleCertificatesUpdateReferenceOutput
|
|
50
|
+
});
|
|
51
|
+
//#endregion
|
|
52
|
+
exports.accredibleCertificatesUpdateReference = accredibleCertificatesUpdateReference;
|
|
53
|
+
|
|
54
|
+
//# sourceMappingURL=update-reference.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-reference.cjs","names":["z","action"],"sources":["../../src/actions/update-reference.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const AccredibleCertificatesUpdateReferenceInput: z.ZodTypeAny = z.object({\n reference: z.object({\n position: z.number().int().describe(\"Numeric position of the reference on the credential (0 = first).\").optional(),\n description: z.string().describe(\"Reference comments or text.\").optional(),\n relationship: z.enum([\"taught\", \"managed\", \"mentored\", \"worked\", \"studied\", \"friends\", \"stranger\", \"professor\"]).describe(\"Relationship of the referee to the recipient. One of: taught, managed, mentored, worked, studied, friends, stranger, professor.\").optional(),\n}).describe(\"Object containing only the reference fields to modify.\"),\n reference_id: z.number().int().describe(\"ID of the reference to update.\"),\n credential_id: z.string().describe(\"ID of the credential containing the reference.\"),\n}).describe(\"Input parameters for UPDATE_REFERENCE action.\");\nconst AccredibleCertificatesUpdateReference_RefereeSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the referee.\"),\n email: z.string().describe(\"Email address of the referee.\"),\n avatar: z.string().describe(\"URL of the referee's avatar image.\").nullable().optional(),\n});\nconst AccredibleCertificatesUpdateReference_ReferenceResponseSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Identifier of the reference.\"),\n referee: AccredibleCertificatesUpdateReference_RefereeSchema.nullable(),\n description: z.string().describe(\"Reference comments or text.\"),\n relationship: z.enum([\"taught\", \"managed\", \"mentored\", \"worked\", \"studied\", \"friends\", \"stranger\", \"professor\"]).describe(\"Relationship of the referee to the recipient.\"),\n supplemental: z.boolean().describe(\"Indicates if the reference is supplemental.\"),\n});\nexport const AccredibleCertificatesUpdateReferenceOutput: z.ZodTypeAny = z.object({\n reference: AccredibleCertificatesUpdateReference_ReferenceResponseSchema.nullable(),\n}).describe(\"Response model for UPDATE_REFERENCE action.\");\n\nexport const accredibleCertificatesUpdateReference = action(\"ACCREDIBLE_CERTIFICATES_UPDATE_REFERENCE\", {\n slug: \"accredible_certificates-update-reference\",\n name: \"Update Reference\",\n description: \"Tool to update a reference by ID. Use when you need to modify a reference's details for a credential. Use after retrieving the reference ID to change comments or relationship.\",\n input: AccredibleCertificatesUpdateReferenceInput,\n output: AccredibleCertificatesUpdateReferenceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6CAA2DA,IAAAA,EAAE,OAAO;CAC/E,WAAWA,IAAAA,EAAE,OAAO;EACpB,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;EACjH,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;EACzE,cAAcA,IAAAA,EAAE,KAAK;GAAC;GAAU;GAAW;GAAY;GAAU;GAAW;GAAW;GAAY;EAAW,CAAC,CAAC,CAAC,SAAS,iIAAiI,CAAC,CAAC,SAAS;CACxQ,CAAC,CAAC,CAAC,SAAS,wDAAwD;CAClE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC;CACxE,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;AACrF,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAC3D,MAAM,sDAAoEA,IAAAA,EAAE,OAAO;CACjF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;CAChD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;CAC1D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxF,CAAC;AACD,MAAM,gEAA8EA,IAAAA,EAAE,OAAO;CAC3F,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B;CAC5D,SAAS,oDAAoD,SAAS;CACtE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;CAC9D,cAAcA,IAAAA,EAAE,KAAK;EAAC;EAAU;EAAW;EAAY;EAAU;EAAW;EAAW;EAAY;CAAW,CAAC,CAAC,CAAC,SAAS,+CAA+C;CACzK,cAAcA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,6CAA6C;AAClF,CAAC;AACD,MAAa,8CAA4DA,IAAAA,EAAE,OAAO,EAChF,WAAW,8DAA8D,SAAS,EACpF,CAAC,CAAC,CAAC,SAAS,6CAA6C;AAEzD,MAAa,wCAAwCC,eAAAA,OAAO,4CAA4C;CACtG,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-reference.d.ts
|
|
4
|
+
declare const AccredibleCertificatesUpdateReferenceInput: z.ZodTypeAny;
|
|
5
|
+
declare const AccredibleCertificatesUpdateReferenceOutput: z.ZodTypeAny;
|
|
6
|
+
declare const accredibleCertificatesUpdateReference: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { accredibleCertificatesUpdateReference };
|
|
9
|
+
//# sourceMappingURL=update-reference.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-reference.d.cts","names":[],"sources":["../../src/actions/update-reference.ts"],"mappings":";;;cAIa,0CAAA,EAA4C,CAAA,CAAE,UAQC;AAAA,cAa/C,2CAAA,EAA6C,CAAA,CAAE,UAEF;AAAA,cAE7C,qCAAA,gCAAqC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/update-reference.d.ts
|
|
4
|
+
declare const AccredibleCertificatesUpdateReferenceInput: z.ZodTypeAny;
|
|
5
|
+
declare const AccredibleCertificatesUpdateReferenceOutput: z.ZodTypeAny;
|
|
6
|
+
declare const accredibleCertificatesUpdateReference: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { accredibleCertificatesUpdateReference };
|
|
9
|
+
//# sourceMappingURL=update-reference.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-reference.d.mts","names":[],"sources":["../../src/actions/update-reference.ts"],"mappings":";;;cAIa,0CAAA,EAA4C,CAAA,CAAE,UAQC;AAAA,cAa/C,2CAAA,EAA6C,CAAA,CAAE,UAEF;AAAA,cAE7C,qCAAA,gCAAqC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/update-reference.ts
|
|
4
|
+
const AccredibleCertificatesUpdateReferenceInput = z.object({
|
|
5
|
+
reference: z.object({
|
|
6
|
+
position: z.number().int().describe("Numeric position of the reference on the credential (0 = first).").optional(),
|
|
7
|
+
description: z.string().describe("Reference comments or text.").optional(),
|
|
8
|
+
relationship: z.enum([
|
|
9
|
+
"taught",
|
|
10
|
+
"managed",
|
|
11
|
+
"mentored",
|
|
12
|
+
"worked",
|
|
13
|
+
"studied",
|
|
14
|
+
"friends",
|
|
15
|
+
"stranger",
|
|
16
|
+
"professor"
|
|
17
|
+
]).describe("Relationship of the referee to the recipient. One of: taught, managed, mentored, worked, studied, friends, stranger, professor.").optional()
|
|
18
|
+
}).describe("Object containing only the reference fields to modify."),
|
|
19
|
+
reference_id: z.number().int().describe("ID of the reference to update."),
|
|
20
|
+
credential_id: z.string().describe("ID of the credential containing the reference.")
|
|
21
|
+
}).describe("Input parameters for UPDATE_REFERENCE action.");
|
|
22
|
+
const AccredibleCertificatesUpdateReference_RefereeSchema = z.object({
|
|
23
|
+
name: z.string().describe("Name of the referee."),
|
|
24
|
+
email: z.string().describe("Email address of the referee."),
|
|
25
|
+
avatar: z.string().describe("URL of the referee's avatar image.").nullable().optional()
|
|
26
|
+
});
|
|
27
|
+
const AccredibleCertificatesUpdateReference_ReferenceResponseSchema = z.object({
|
|
28
|
+
id: z.number().int().describe("Identifier of the reference."),
|
|
29
|
+
referee: AccredibleCertificatesUpdateReference_RefereeSchema.nullable(),
|
|
30
|
+
description: z.string().describe("Reference comments or text."),
|
|
31
|
+
relationship: z.enum([
|
|
32
|
+
"taught",
|
|
33
|
+
"managed",
|
|
34
|
+
"mentored",
|
|
35
|
+
"worked",
|
|
36
|
+
"studied",
|
|
37
|
+
"friends",
|
|
38
|
+
"stranger",
|
|
39
|
+
"professor"
|
|
40
|
+
]).describe("Relationship of the referee to the recipient."),
|
|
41
|
+
supplemental: z.boolean().describe("Indicates if the reference is supplemental.")
|
|
42
|
+
});
|
|
43
|
+
const accredibleCertificatesUpdateReference = action("ACCREDIBLE_CERTIFICATES_UPDATE_REFERENCE", {
|
|
44
|
+
slug: "accredible_certificates-update-reference",
|
|
45
|
+
name: "Update Reference",
|
|
46
|
+
description: "Tool to update a reference by ID. Use when you need to modify a reference's details for a credential. Use after retrieving the reference ID to change comments or relationship.",
|
|
47
|
+
input: AccredibleCertificatesUpdateReferenceInput,
|
|
48
|
+
output: z.object({ reference: AccredibleCertificatesUpdateReference_ReferenceResponseSchema.nullable() }).describe("Response model for UPDATE_REFERENCE action.")
|
|
49
|
+
});
|
|
50
|
+
//#endregion
|
|
51
|
+
export { accredibleCertificatesUpdateReference };
|
|
52
|
+
|
|
53
|
+
//# sourceMappingURL=update-reference.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-reference.mjs","names":[],"sources":["../../src/actions/update-reference.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const AccredibleCertificatesUpdateReferenceInput: z.ZodTypeAny = z.object({\n reference: z.object({\n position: z.number().int().describe(\"Numeric position of the reference on the credential (0 = first).\").optional(),\n description: z.string().describe(\"Reference comments or text.\").optional(),\n relationship: z.enum([\"taught\", \"managed\", \"mentored\", \"worked\", \"studied\", \"friends\", \"stranger\", \"professor\"]).describe(\"Relationship of the referee to the recipient. One of: taught, managed, mentored, worked, studied, friends, stranger, professor.\").optional(),\n}).describe(\"Object containing only the reference fields to modify.\"),\n reference_id: z.number().int().describe(\"ID of the reference to update.\"),\n credential_id: z.string().describe(\"ID of the credential containing the reference.\"),\n}).describe(\"Input parameters for UPDATE_REFERENCE action.\");\nconst AccredibleCertificatesUpdateReference_RefereeSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the referee.\"),\n email: z.string().describe(\"Email address of the referee.\"),\n avatar: z.string().describe(\"URL of the referee's avatar image.\").nullable().optional(),\n});\nconst AccredibleCertificatesUpdateReference_ReferenceResponseSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Identifier of the reference.\"),\n referee: AccredibleCertificatesUpdateReference_RefereeSchema.nullable(),\n description: z.string().describe(\"Reference comments or text.\"),\n relationship: z.enum([\"taught\", \"managed\", \"mentored\", \"worked\", \"studied\", \"friends\", \"stranger\", \"professor\"]).describe(\"Relationship of the referee to the recipient.\"),\n supplemental: z.boolean().describe(\"Indicates if the reference is supplemental.\"),\n});\nexport const AccredibleCertificatesUpdateReferenceOutput: z.ZodTypeAny = z.object({\n reference: AccredibleCertificatesUpdateReference_ReferenceResponseSchema.nullable(),\n}).describe(\"Response model for UPDATE_REFERENCE action.\");\n\nexport const accredibleCertificatesUpdateReference = action(\"ACCREDIBLE_CERTIFICATES_UPDATE_REFERENCE\", {\n slug: \"accredible_certificates-update-reference\",\n name: \"Update Reference\",\n description: \"Tool to update a reference by ID. Use when you need to modify a reference's details for a credential. Use after retrieving the reference ID to change comments or relationship.\",\n input: AccredibleCertificatesUpdateReferenceInput,\n output: AccredibleCertificatesUpdateReferenceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6CAA2D,EAAE,OAAO;CAC/E,WAAW,EAAE,OAAO;EACpB,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;EACjH,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;EACzE,cAAc,EAAE,KAAK;GAAC;GAAU;GAAW;GAAY;GAAU;GAAW;GAAW;GAAY;EAAW,CAAC,CAAC,CAAC,SAAS,iIAAiI,CAAC,CAAC,SAAS;CACxQ,CAAC,CAAC,CAAC,SAAS,wDAAwD;CAClE,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC;CACxE,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;AACrF,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAC3D,MAAM,sDAAoE,EAAE,OAAO;CACjF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;CAChD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;CAC1D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxF,CAAC;AACD,MAAM,gEAA8E,EAAE,OAAO;CAC3F,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B;CAC5D,SAAS,oDAAoD,SAAS;CACtE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;CAC9D,cAAc,EAAE,KAAK;EAAC;EAAU;EAAW;EAAY;EAAU;EAAW;EAAW;EAAY;CAAW,CAAC,CAAC,CAAC,SAAS,+CAA+C;CACzK,cAAc,EAAE,QAAQ,CAAC,CAAC,SAAS,6CAA6C;AACl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