@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 @@
|
|
|
1
|
+
{"version":3,"file":"create-credential.mjs","names":[],"sources":["../../src/actions/create-credential.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const AccredibleCertificatesCreateCredentialInput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Credential/course name displayed to recipients. Required if Group doesn't have Course Name set\").optional(),\n approve: z.boolean().default(true).describe(\"Whether to publish credential at creation time. True by default but sandbox_mode settings take precedence\").optional(),\n private: z.boolean().describe(\"Whether to make credential private. If true, only visible to signed-in recipient\").optional(),\n complete: z.boolean().default(true).describe(\"Whether the achievement is complete or in progress. True by default\").optional(),\n group_id: z.number().int().describe(\"Group ID to which the credential should belong. Create a group first if needed\"),\n issued_on: z.string().describe(\"Date of issue in YYYY-MM-DD format. Default is creation date\").optional(),\n meta_data: z.record(z.string(), z.unknown()).describe(\"Key-value strings for additional structured information about the credential\").optional(),\n expired_on: z.string().describe(\"Expiration date in YYYY-MM-DD format. Null by default\").optional(),\n references: z.array(z.object({\n referee: z.object({\n name: z.string().describe(\"Name of the person providing the reference\"),\n email: z.string().describe(\"Email address of the reference provider\"),\n avatar: z.string().describe(\"URL of the referee's avatar image\").optional(),\n}).describe(\"Details of the person providing the reference\"),\n description: z.string().describe(\"The reference comments or text provided by the referee\"),\n relationship: z.enum([\"taught\", \"managed\", \"mentored\", \"worked\", \"studied\", \"friends\", \"stranger\", \"professor\"]).describe(\"Relationship of the referee to the credential recipient. Must be one of: taught, managed, mentored, worked, studied, friends, stranger, professor\"),\n}).describe(\"Reference providing feedback from peers, teachers, or managers.\")).describe(\"References providing feedback from peers, teachers, or managers\").optional(),\n description: z.string().describe(\"Credential/course description displayed to recipients. Required if Group doesn't have Course Description set\").optional(),\n recipient_id: z.string().describe(\"External ID for the recipient to map credentials regardless of email changes\").optional(),\n credential_id: z.string().describe(\"Unique ID of the credential. If provided, used as reference; otherwise auto-assigned\").optional(),\n evidence_items: z.array(z.object({\n url: z.string().describe(\"URL of the item when category is url or video\").optional(),\n file: z.string().describe(\"File URL when category is file\").optional(),\n category: z.enum([\"file\", \"url\", \"video\", \"grade\", \"transcript\"]).describe(\"Type of evidence item, dictates its display format\"),\n description: z.string().describe(\"Title text for the evidence item displayed on the credential\"),\n string_object: z.string().describe(\"String data for grade or transcript categories\").optional(),\n custom_insight: z.string().describe(\"Override auto-generated insight text below the evidence item\").optional(),\n}).describe(\"Evidence item providing information about how the recipient met the achievement.\")).describe(\"Evidence items providing more information about how the recipient met the achievement\").optional(),\n recipient_name: z.string().describe(\"Name of the recipient the credential is issued to\"),\n recipient_email: z.string().describe(\"Email address of the recipient\"),\n custom_attributes: z.record(z.string(), z.unknown()).describe(\"Custom variables to display on the credential. Keys are attribute names, values are display values\").optional(),\n recipient_meta_data: z.record(z.string(), z.unknown()).describe(\"Key-value strings for additional structured information about the recipient\").optional(),\n recipient_phone_number: z.string().describe(\"Recipient's phone number in E.164 format (e.g., +14155552671)\").optional(),\n allow_supplemental_evidence: z.boolean().default(true).describe(\"Whether to allow recipients to add their own supplemental evidence. True by default\").optional(),\n allow_supplemental_references: z.boolean().default(true).describe(\"Whether to allow recipients to add their own supplemental references. True by default\").optional(),\n}).describe(\"Request schema for creating a new credential.\");\nconst AccredibleCertificatesCreateCredential_ImageInfoSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL of the image\").nullable().optional(),\n}).describe(\"Image information for badge or certificate.\");\nconst AccredibleCertificatesCreateCredential_BadgeInfoSchema: z.ZodTypeAny = z.object({\n image: AccredibleCertificatesCreateCredential_ImageInfoSchema.nullable().optional(),\n}).describe(\"Badge information.\");\nconst AccredibleCertificatesCreateCredential_IssuerInfoSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Issuer ID\"),\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(\"Information about the credential issuer.\");\nconst AccredibleCertificatesCreateCredential_RecipientInfoSchema: z.ZodTypeAny = z.object({\n id: z.union([z.number().int(), z.string()]).nullable().optional(),\n name: z.string().describe(\"Name of the recipient\"),\n email: z.string().describe(\"Email of the recipient\"),\n meta_data: z.record(z.string(), z.unknown()).describe(\"Additional metadata for the recipient\").nullable().optional(),\n phone_number: z.string().describe(\"Phone number of the recipient\").nullable().optional(),\n}).describe(\"Recipient information in the response.\");\nconst AccredibleCertificatesCreateCredential_RefereeInfoSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the reference provider\"),\n email: z.string().describe(\"Email of the reference provider\"),\n avatar: z.string().describe(\"Avatar URL of the referee\").nullable().optional(),\n}).describe(\"Referee information in the response.\");\nconst AccredibleCertificatesCreateCredential_ReferenceInfoSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Reference ID\").nullable().optional(),\n approve: z.boolean().describe(\"Whether the reference is approved\").nullable().optional(),\n referee: AccredibleCertificatesCreateCredential_RefereeInfoSchema.nullable().optional(),\n description: z.string().describe(\"Reference description\").nullable().optional(),\n relationship: z.string().describe(\"Relationship to the recipient\").nullable().optional(),\n supplemental: z.boolean().describe(\"Whether this is a supplemental reference\").nullable().optional(),\n}).describe(\"Reference information in the response.\");\nconst AccredibleCertificatesCreateCredential_CertificateInfoSchema: z.ZodTypeAny = z.object({\n image: AccredibleCertificatesCreateCredential_ImageInfoSchema.nullable().optional(),\n}).describe(\"Certificate information.\");\nconst AccredibleCertificatesCreateCredential_EvidenceItemInfoSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Identifier of the evidence item\"),\n type: z.string().describe(\"Type of the evidence item\"),\n link_url: z.string().describe(\"URL linking to the evidence item resource\").nullable().optional(),\n position: z.number().int().describe(\"Display order of the evidence item on the credential\"),\n description: z.string().describe(\"Description of the evidence item\"),\n supplemental: z.boolean().describe(\"Indicates if this item is supplemental\"),\n string_object: z.union([z.string(), z.record(z.string(), z.unknown())]).nullable().optional(),\n preview_image_url: z.string().describe(\"URL of the preview image for the item\").nullable().optional(),\n}).describe(\"Evidence item information in the response.\");\nconst AccredibleCertificatesCreateCredential_CredentialInfoSchema: z.ZodTypeAny = z.object({\n id: z.union([z.number().int(), z.string()]),\n url: z.string().describe(\"URL to view the credential\"),\n name: z.string().describe(\"Name of the credential\"),\n badge: AccredibleCertificatesCreateCredential_BadgeInfoSchema.nullable().optional(),\n grade: z.string().describe(\"Grade associated with the credential, if any\").nullable().optional(),\n issuer: AccredibleCertificatesCreateCredential_IssuerInfoSchema.nullable(),\n approve: z.boolean().describe(\"Whether the credential is approved on creation\"),\n private: z.boolean().describe(\"Whether the credential is private\").nullable().optional(),\n complete: z.boolean().describe(\"Whether the credential is marked complete\"),\n group_id: z.number().int().describe(\"ID of the group the credential belongs to\"),\n issued_on: z.string().describe(\"Date when the credential was issued (YYYY-MM-DD)\").nullable().optional(),\n meta_data: z.record(z.string(), z.unknown()).describe(\"Additional metadata on the credential\").nullable().optional(),\n recipient: AccredibleCertificatesCreateCredential_RecipientInfoSchema.nullable(),\n seo_image: z.string().describe(\"SEO image URL\").nullable().optional(),\n encoded_id: z.string().describe(\"Encoded identifier\").nullable().optional(),\n expired_on: z.string().describe(\"Expiration date of the credential\").nullable().optional(),\n group_name: z.string().describe(\"Name of the group the credential belongs to\"),\n references: z.array(AccredibleCertificatesCreateCredential_ReferenceInfoSchema).describe(\"References attached to the credential\").nullable().optional(),\n certificate: AccredibleCertificatesCreateCredential_CertificateInfoSchema.nullable().optional(),\n course_link: z.string().describe(\"Link to the course, if any\").nullable().optional(),\n description: z.string().describe(\"Description of the credential\").nullable().optional(),\n evidence_items: z.array(AccredibleCertificatesCreateCredential_EvidenceItemInfoSchema).describe(\"Evidence items attached to the credential\").nullable().optional(),\n custom_attributes: z.record(z.string(), z.unknown()).describe(\"Custom attributes on the credential\").nullable().optional(),\n}).describe(\"Created credential information.\");\nexport const AccredibleCertificatesCreateCredentialOutput: z.ZodTypeAny = z.object({\n credential: AccredibleCertificatesCreateCredential_CredentialInfoSchema.nullable(),\n}).describe(\"Response schema for creating a credential.\");\n\nexport const accredibleCertificatesCreateCredential = action(\"ACCREDIBLE_CERTIFICATES_CREATE_CREDENTIAL\", {\n slug: \"accredible_certificates-create-credential\",\n name: \"Create Credential\",\n description: \"Tool to create a new credential with optional evidence items and references. Use when issuing credentials to recipients; ensure group exists before creation.\",\n input: AccredibleCertificatesCreateCredentialInput,\n output: AccredibleCertificatesCreateCredentialOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8CAA4D,EAAE,OAAO;CAChF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gGAAgG,CAAC,CAAC,SAAS;CACrI,SAAS,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,2GAA2G,CAAC,CAAC,SAAS;CAClK,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;CAC3H,UAAU,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CAC7H,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gFAAgF;CACpH,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CACxG,WAAW,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;CAC/I,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAClG,YAAY,EAAE,MAAM,EAAE,OAAO;EAC7B,SAAS,EAAE,OAAO;GAClB,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;GACtE,OAAO,EAAE,OAAO,CAAC,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C,SAAS;CACjK,mBAAmB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3H,CAAC,CAAC,CAAC,SAAS,iCAAiC;AAK7C,MAAa,yCAAyC,OAAO,6CAA6C;CACxG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATwE,EAAE,OAAO,EACjF,YAAY,4DAA4D,SAAS,EACnF,CAAC,CAAC,CAAC,SAAS,4CAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/create-evidence-item.ts
|
|
4
|
+
const AccredibleCertificatesCreateEvidenceItemInput = zod.z.object({
|
|
5
|
+
url: zod.z.string().describe("URL of the item when category is url or video").optional(),
|
|
6
|
+
file: zod.z.string().describe("File URL when category is file").optional(),
|
|
7
|
+
preview: zod.z.string().describe("Override preview image URL for URL category").optional(),
|
|
8
|
+
category: zod.z.enum([
|
|
9
|
+
"file",
|
|
10
|
+
"url",
|
|
11
|
+
"video",
|
|
12
|
+
"grade",
|
|
13
|
+
"transcript"
|
|
14
|
+
]).describe("Type of evidence item, dictates its display"),
|
|
15
|
+
position: zod.z.number().int().describe("Position index of the evidence item on the credential (0 = first)").optional(),
|
|
16
|
+
description: zod.z.string().describe("Title text for the evidence item displayed on the credential"),
|
|
17
|
+
credential_id: zod.z.string().describe("Global ID of the credential to attach the evidence item to"),
|
|
18
|
+
string_object: zod.z.string().describe("String data for grade or transcript categories, e.g., '83'").optional(),
|
|
19
|
+
custom_insight: zod.z.string().describe("Override auto-generated insight text below the evidence item").optional()
|
|
20
|
+
}).describe("Request schema for creating a new Evidence Item on a Credential.");
|
|
21
|
+
const AccredibleCertificatesCreateEvidenceItem_EvidenceItemResponseSchema = zod.z.object({
|
|
22
|
+
id: zod.z.number().int().describe("Unique ID of the evidence item"),
|
|
23
|
+
type: zod.z.string().describe("Category/type of the evidence item"),
|
|
24
|
+
link_url: zod.z.string().describe("Link URL of the evidence item, if applicable").nullable().optional(),
|
|
25
|
+
position: zod.z.number().int().describe("Position index on the credential list"),
|
|
26
|
+
description: zod.z.string().describe("Title text of the evidence item"),
|
|
27
|
+
supplemental: zod.z.boolean().describe("Whether this item is supplemental to the credential"),
|
|
28
|
+
string_object: zod.z.union([zod.z.string(), zod.z.record(zod.z.string(), zod.z.unknown())]).nullable().optional(),
|
|
29
|
+
preview_image_url: zod.z.string().describe("Preview image URL for the evidence item").nullable().optional()
|
|
30
|
+
});
|
|
31
|
+
const AccredibleCertificatesCreateEvidenceItemOutput = zod.z.object({ evidence_item: AccredibleCertificatesCreateEvidenceItem_EvidenceItemResponseSchema.nullable() });
|
|
32
|
+
const accredibleCertificatesCreateEvidenceItem = require_action.action("ACCREDIBLE_CERTIFICATES_CREATE_EVIDENCE_ITEM", {
|
|
33
|
+
slug: "accredible_certificates-create-evidence-item",
|
|
34
|
+
name: "Create Evidence Item",
|
|
35
|
+
description: "Tool to create a new evidence item for a credential. Use after confirming credential ID.",
|
|
36
|
+
input: AccredibleCertificatesCreateEvidenceItemInput,
|
|
37
|
+
output: AccredibleCertificatesCreateEvidenceItemOutput
|
|
38
|
+
});
|
|
39
|
+
//#endregion
|
|
40
|
+
exports.accredibleCertificatesCreateEvidenceItem = accredibleCertificatesCreateEvidenceItem;
|
|
41
|
+
|
|
42
|
+
//# sourceMappingURL=create-evidence-item.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-evidence-item.cjs","names":["z","action"],"sources":["../../src/actions/create-evidence-item.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const AccredibleCertificatesCreateEvidenceItemInput: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL of the item when category is url or video\").optional(),\n file: z.string().describe(\"File URL when category is file\").optional(),\n preview: z.string().describe(\"Override preview image URL for URL category\").optional(),\n category: z.enum([\"file\", \"url\", \"video\", \"grade\", \"transcript\"]).describe(\"Type of evidence item, dictates its display\"),\n position: z.number().int().describe(\"Position index of the evidence item on the credential (0 = first)\").optional(),\n description: z.string().describe(\"Title text for the evidence item displayed on the credential\"),\n credential_id: z.string().describe(\"Global ID of the credential to attach the evidence item to\"),\n string_object: z.string().describe(\"String data for grade or transcript categories, e.g., '83'\").optional(),\n custom_insight: z.string().describe(\"Override auto-generated insight text below the evidence item\").optional(),\n}).describe(\"Request schema for creating a new Evidence Item on a Credential.\");\nconst AccredibleCertificatesCreateEvidenceItem_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 AccredibleCertificatesCreateEvidenceItemOutput: z.ZodTypeAny = z.object({\n evidence_item: AccredibleCertificatesCreateEvidenceItem_EvidenceItemResponseSchema.nullable(),\n});\n\nexport const accredibleCertificatesCreateEvidenceItem = action(\"ACCREDIBLE_CERTIFICATES_CREATE_EVIDENCE_ITEM\", {\n slug: \"accredible_certificates-create-evidence-item\",\n name: \"Create Evidence Item\",\n description: \"Tool to create a new evidence item for a credential. Use after confirming credential ID.\",\n input: AccredibleCertificatesCreateEvidenceItemInput,\n output: AccredibleCertificatesCreateEvidenceItemOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gDAA8DA,IAAAA,EAAE,OAAO;CAClF,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;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,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/create-evidence-item.d.ts
|
|
4
|
+
declare const AccredibleCertificatesCreateEvidenceItemInput: z.ZodTypeAny;
|
|
5
|
+
declare const AccredibleCertificatesCreateEvidenceItemOutput: z.ZodTypeAny;
|
|
6
|
+
declare const accredibleCertificatesCreateEvidenceItem: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { accredibleCertificatesCreateEvidenceItem };
|
|
9
|
+
//# sourceMappingURL=create-evidence-item.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-evidence-item.d.cts","names":[],"sources":["../../src/actions/create-evidence-item.ts"],"mappings":";;;cAIa,6CAAA,EAA+C,CAAA,CAAE,UAUiB;AAAA,cAWlE,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/create-evidence-item.d.ts
|
|
4
|
+
declare const AccredibleCertificatesCreateEvidenceItemInput: z.ZodTypeAny;
|
|
5
|
+
declare const AccredibleCertificatesCreateEvidenceItemOutput: z.ZodTypeAny;
|
|
6
|
+
declare const accredibleCertificatesCreateEvidenceItem: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { accredibleCertificatesCreateEvidenceItem };
|
|
9
|
+
//# sourceMappingURL=create-evidence-item.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-evidence-item.d.mts","names":[],"sources":["../../src/actions/create-evidence-item.ts"],"mappings":";;;cAIa,6CAAA,EAA+C,CAAA,CAAE,UAUiB;AAAA,cAWlE,8CAAA,EAAgD,CAAA,CAAE,UAE7D;AAAA,cAEW,wCAAA,gCAAwC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/create-evidence-item.ts
|
|
4
|
+
const AccredibleCertificatesCreateEvidenceItemInput = z.object({
|
|
5
|
+
url: z.string().describe("URL of the item when category is url or video").optional(),
|
|
6
|
+
file: z.string().describe("File URL when category is file").optional(),
|
|
7
|
+
preview: z.string().describe("Override preview image URL for URL category").optional(),
|
|
8
|
+
category: z.enum([
|
|
9
|
+
"file",
|
|
10
|
+
"url",
|
|
11
|
+
"video",
|
|
12
|
+
"grade",
|
|
13
|
+
"transcript"
|
|
14
|
+
]).describe("Type of evidence item, dictates its display"),
|
|
15
|
+
position: z.number().int().describe("Position index of the evidence item on the credential (0 = first)").optional(),
|
|
16
|
+
description: z.string().describe("Title text for the evidence item displayed on the credential"),
|
|
17
|
+
credential_id: z.string().describe("Global ID of the credential to attach the evidence item to"),
|
|
18
|
+
string_object: z.string().describe("String data for grade or transcript categories, e.g., '83'").optional(),
|
|
19
|
+
custom_insight: z.string().describe("Override auto-generated insight text below the evidence item").optional()
|
|
20
|
+
}).describe("Request schema for creating a new Evidence Item on a Credential.");
|
|
21
|
+
const AccredibleCertificatesCreateEvidenceItem_EvidenceItemResponseSchema = z.object({
|
|
22
|
+
id: z.number().int().describe("Unique ID of the evidence item"),
|
|
23
|
+
type: z.string().describe("Category/type of the evidence item"),
|
|
24
|
+
link_url: z.string().describe("Link URL of the evidence item, if applicable").nullable().optional(),
|
|
25
|
+
position: z.number().int().describe("Position index on the credential list"),
|
|
26
|
+
description: z.string().describe("Title text of the evidence item"),
|
|
27
|
+
supplemental: z.boolean().describe("Whether this item is supplemental to the credential"),
|
|
28
|
+
string_object: z.union([z.string(), z.record(z.string(), z.unknown())]).nullable().optional(),
|
|
29
|
+
preview_image_url: z.string().describe("Preview image URL for the evidence item").nullable().optional()
|
|
30
|
+
});
|
|
31
|
+
const accredibleCertificatesCreateEvidenceItem = action("ACCREDIBLE_CERTIFICATES_CREATE_EVIDENCE_ITEM", {
|
|
32
|
+
slug: "accredible_certificates-create-evidence-item",
|
|
33
|
+
name: "Create Evidence Item",
|
|
34
|
+
description: "Tool to create a new evidence item for a credential. Use after confirming credential ID.",
|
|
35
|
+
input: AccredibleCertificatesCreateEvidenceItemInput,
|
|
36
|
+
output: z.object({ evidence_item: AccredibleCertificatesCreateEvidenceItem_EvidenceItemResponseSchema.nullable() })
|
|
37
|
+
});
|
|
38
|
+
//#endregion
|
|
39
|
+
export { accredibleCertificatesCreateEvidenceItem };
|
|
40
|
+
|
|
41
|
+
//# sourceMappingURL=create-evidence-item.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-evidence-item.mjs","names":[],"sources":["../../src/actions/create-evidence-item.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const AccredibleCertificatesCreateEvidenceItemInput: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL of the item when category is url or video\").optional(),\n file: z.string().describe(\"File URL when category is file\").optional(),\n preview: z.string().describe(\"Override preview image URL for URL category\").optional(),\n category: z.enum([\"file\", \"url\", \"video\", \"grade\", \"transcript\"]).describe(\"Type of evidence item, dictates its display\"),\n position: z.number().int().describe(\"Position index of the evidence item on the credential (0 = first)\").optional(),\n description: z.string().describe(\"Title text for the evidence item displayed on the credential\"),\n credential_id: z.string().describe(\"Global ID of the credential to attach the evidence item to\"),\n string_object: z.string().describe(\"String data for grade or transcript categories, e.g., '83'\").optional(),\n custom_insight: z.string().describe(\"Override auto-generated insight text below the evidence item\").optional(),\n}).describe(\"Request schema for creating a new Evidence Item on a Credential.\");\nconst AccredibleCertificatesCreateEvidenceItem_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 AccredibleCertificatesCreateEvidenceItemOutput: z.ZodTypeAny = z.object({\n evidence_item: AccredibleCertificatesCreateEvidenceItem_EvidenceItemResponseSchema.nullable(),\n});\n\nexport const accredibleCertificatesCreateEvidenceItem = action(\"ACCREDIBLE_CERTIFICATES_CREATE_EVIDENCE_ITEM\", {\n slug: \"accredible_certificates-create-evidence-item\",\n name: \"Create Evidence Item\",\n description: \"Tool to create a new evidence item for a credential. Use after confirming credential ID.\",\n input: AccredibleCertificatesCreateEvidenceItemInput,\n output: AccredibleCertificatesCreateEvidenceItemOutput,\n});\n"],"mapp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CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxG,CAAC;AAKD,MAAa,2CAA2C,OAAO,gDAAgD;CAC7G,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,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/create-group.ts
|
|
4
|
+
const AccredibleCertificatesCreateGroupInput = zod.z.object({
|
|
5
|
+
name: zod.z.string().describe("Name of the group (internal reference, not shown to the recipient)"),
|
|
6
|
+
language: zod.z.enum([
|
|
7
|
+
"en",
|
|
8
|
+
"es",
|
|
9
|
+
"vi",
|
|
10
|
+
"pt",
|
|
11
|
+
"ja",
|
|
12
|
+
"fr",
|
|
13
|
+
"da",
|
|
14
|
+
"nl",
|
|
15
|
+
"fi",
|
|
16
|
+
"no",
|
|
17
|
+
"nb",
|
|
18
|
+
"ro",
|
|
19
|
+
"sv",
|
|
20
|
+
"th",
|
|
21
|
+
"tw",
|
|
22
|
+
"zh",
|
|
23
|
+
"tr",
|
|
24
|
+
"ar",
|
|
25
|
+
"he",
|
|
26
|
+
"ms",
|
|
27
|
+
"de"
|
|
28
|
+
]).default("en").describe("Language code for the group").optional(),
|
|
29
|
+
meta_data: zod.z.object({}).describe("Arbitrary string key-value metadata for this group").optional(),
|
|
30
|
+
attach_pdf: zod.z.boolean().default(false).describe("Attach credential PDF to notification email").optional(),
|
|
31
|
+
blockchain: zod.z.boolean().default(false).describe("Record credentials on blockchain").optional(),
|
|
32
|
+
signup_url: zod.z.string().describe("Signup URL for course enrollment").optional(),
|
|
33
|
+
auto_expiry: zod.z.number().int().describe("Years until auto-expiry of credential; ignored if <=0").optional(),
|
|
34
|
+
collections: zod.z.array(zod.z.object({})).describe("List of collection objects with 'id' field").optional(),
|
|
35
|
+
course_link: zod.z.string().describe("URL for course information page").optional(),
|
|
36
|
+
course_name: zod.z.string().describe("Course or achievement name visible to the recipient"),
|
|
37
|
+
department_id: zod.z.number().int().describe("Department ID for the group; defaults to org default").optional(),
|
|
38
|
+
badge_design_id: zod.z.number().int().describe("Badge design ID to render credentials").optional(),
|
|
39
|
+
signup_url_show: zod.z.boolean().describe("Display signup URL: true/false or null to inherit").optional(),
|
|
40
|
+
course_link_show: zod.z.boolean().describe("Display course link: true/false or null to inherit").optional(),
|
|
41
|
+
learning_outcomes: zod.z.array(zod.z.string()).describe("Learning outcomes list for this group").optional(),
|
|
42
|
+
primary_design_id: zod.z.number().int().describe("Primary design ID to render credentials").optional(),
|
|
43
|
+
skill_category_id: zod.z.number().int().describe("Skill category ID to associate").optional(),
|
|
44
|
+
course_description: zod.z.string().describe("Description of the course or achievement visible to the recipient"),
|
|
45
|
+
certificate_design_id: zod.z.number().int().describe("Certificate design ID to render credentials").optional(),
|
|
46
|
+
organization_link_show: zod.z.boolean().describe("Display organization link: true/false or null to inherit").optional(),
|
|
47
|
+
allow_duplicate_credentials: zod.z.boolean().describe("Allow duplicate credentials per email: true/false").optional(),
|
|
48
|
+
generate_private_credential: zod.z.boolean().describe("Override default private credential setting: true/false or null to inherit").optional()
|
|
49
|
+
}).describe("Request schema for creating a new Group in Accredible.");
|
|
50
|
+
const AccredibleCertificatesCreateGroup_CollectionSchema = zod.z.object({
|
|
51
|
+
id: zod.z.number().int().describe("Collection ID"),
|
|
52
|
+
name: zod.z.string().describe("Collection name"),
|
|
53
|
+
description: zod.z.string().describe("Collection description").nullable().optional()
|
|
54
|
+
});
|
|
55
|
+
const AccredibleCertificatesCreateGroup_SkillCategorySchema = zod.z.object({
|
|
56
|
+
id: zod.z.number().int().describe("Skill category ID"),
|
|
57
|
+
name: zod.z.string().describe("Skill category name")
|
|
58
|
+
});
|
|
59
|
+
const AccredibleCertificatesCreateGroup_GroupSchema = zod.z.object({
|
|
60
|
+
id: zod.z.number().int(),
|
|
61
|
+
name: zod.z.string(),
|
|
62
|
+
language: zod.z.string(),
|
|
63
|
+
design_id: zod.z.number().int().nullable(),
|
|
64
|
+
meta_data: zod.z.object({}).nullable(),
|
|
65
|
+
attach_pdf: zod.z.boolean(),
|
|
66
|
+
blockchain: zod.z.boolean(),
|
|
67
|
+
created_at: zod.z.string(),
|
|
68
|
+
signup_url: zod.z.string().nullable(),
|
|
69
|
+
updated_at: zod.z.string(),
|
|
70
|
+
auto_expiry: zod.z.number().int().nullable(),
|
|
71
|
+
collections: zod.z.array(AccredibleCertificatesCreateGroup_CollectionSchema).nullable(),
|
|
72
|
+
course_link: zod.z.string().nullable(),
|
|
73
|
+
course_name: zod.z.string(),
|
|
74
|
+
design_name: zod.z.string().nullable(),
|
|
75
|
+
department_id: zod.z.number().int(),
|
|
76
|
+
skill_category: AccredibleCertificatesCreateGroup_SkillCategorySchema.nullable(),
|
|
77
|
+
badge_design_id: zod.z.number().int().nullable(),
|
|
78
|
+
signup_url_show: zod.z.boolean(),
|
|
79
|
+
course_link_show: zod.z.boolean(),
|
|
80
|
+
learning_outcomes: zod.z.array(zod.z.string()).nullable(),
|
|
81
|
+
primary_design_id: zod.z.number().int().nullable(),
|
|
82
|
+
course_description: zod.z.string(),
|
|
83
|
+
certificate_design_id: zod.z.number().int().nullable(),
|
|
84
|
+
organization_link_show: zod.z.boolean(),
|
|
85
|
+
allow_duplicate_credentials: zod.z.boolean().nullable(),
|
|
86
|
+
generate_private_credential: zod.z.boolean().nullable()
|
|
87
|
+
});
|
|
88
|
+
const AccredibleCertificatesCreateGroupOutput = zod.z.object({ group: AccredibleCertificatesCreateGroup_GroupSchema.nullable() });
|
|
89
|
+
const accredibleCertificatesCreateGroup = require_action.action("ACCREDIBLE_CERTIFICATES_CREATE_GROUP", {
|
|
90
|
+
slug: "accredible_certificates-create-group",
|
|
91
|
+
name: "Create Group",
|
|
92
|
+
description: "Tool to create a new group. Use after gathering all group details.",
|
|
93
|
+
input: AccredibleCertificatesCreateGroupInput,
|
|
94
|
+
output: AccredibleCertificatesCreateGroupOutput
|
|
95
|
+
});
|
|
96
|
+
//#endregion
|
|
97
|
+
exports.accredibleCertificatesCreateGroup = accredibleCertificatesCreateGroup;
|
|
98
|
+
|
|
99
|
+
//# sourceMappingURL=create-group.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-group.cjs","names":["z","action"],"sources":["../../src/actions/create-group.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const AccredibleCertificatesCreateGroupInput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the group (internal reference, not shown to the recipient)\"),\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\"]).default(\"en\").describe(\"Language code for the group\").optional(),\n meta_data: z.object({}).describe(\"Arbitrary string key-value metadata for this group\").optional(),\n attach_pdf: z.boolean().default(false).describe(\"Attach credential PDF to notification email\").optional(),\n blockchain: z.boolean().default(false).describe(\"Record credentials on blockchain\").optional(),\n signup_url: z.string().describe(\"Signup URL for course enrollment\").optional(),\n auto_expiry: z.number().int().describe(\"Years until auto-expiry of credential; ignored if <=0\").optional(),\n collections: z.array(z.object({})).describe(\"List of collection objects with 'id' field\").optional(),\n course_link: z.string().describe(\"URL for course information page\").optional(),\n course_name: z.string().describe(\"Course or achievement name visible to the recipient\"),\n department_id: z.number().int().describe(\"Department ID for the group; defaults to org default\").optional(),\n badge_design_id: z.number().int().describe(\"Badge design ID to render credentials\").optional(),\n signup_url_show: z.boolean().describe(\"Display signup URL: true/false or null to inherit\").optional(),\n course_link_show: z.boolean().describe(\"Display course link: true/false or null to inherit\").optional(),\n learning_outcomes: z.array(z.string()).describe(\"Learning outcomes list for this group\").optional(),\n primary_design_id: z.number().int().describe(\"Primary design ID to render credentials\").optional(),\n skill_category_id: z.number().int().describe(\"Skill category ID to associate\").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 to render credentials\").optional(),\n organization_link_show: z.boolean().describe(\"Display organization link: true/false or null to inherit\").optional(),\n allow_duplicate_credentials: z.boolean().describe(\"Allow duplicate credentials per email: true/false\").optional(),\n generate_private_credential: z.boolean().describe(\"Override default private credential setting: true/false or null to inherit\").optional(),\n}).describe(\"Request schema for creating a new Group in Accredible.\");\nconst AccredibleCertificatesCreateGroup_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 AccredibleCertificatesCreateGroup_SkillCategorySchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Skill category ID\"),\n name: z.string().describe(\"Skill category name\"),\n});\nconst AccredibleCertificatesCreateGroup_GroupSchema: z.ZodTypeAny = z.object({\n id: z.number().int(),\n name: z.string(),\n language: z.string(),\n design_id: z.number().int().nullable(),\n meta_data: z.object({}).nullable(),\n attach_pdf: z.boolean(),\n blockchain: z.boolean(),\n created_at: z.string(),\n signup_url: z.string().nullable(),\n updated_at: z.string(),\n auto_expiry: z.number().int().nullable(),\n collections: z.array(AccredibleCertificatesCreateGroup_CollectionSchema).nullable(),\n course_link: z.string().nullable(),\n course_name: z.string(),\n design_name: z.string().nullable(),\n department_id: z.number().int(),\n skill_category: AccredibleCertificatesCreateGroup_SkillCategorySchema.nullable(),\n badge_design_id: z.number().int().nullable(),\n signup_url_show: z.boolean(),\n course_link_show: z.boolean(),\n learning_outcomes: z.array(z.string()).nullable(),\n primary_design_id: z.number().int().nullable(),\n course_description: z.string(),\n certificate_design_id: z.number().int().nullable(),\n organization_link_show: z.boolean(),\n allow_duplicate_credentials: z.boolean().nullable(),\n generate_private_credential: z.boolean().nullable(),\n});\nexport const AccredibleCertificatesCreateGroupOutput: z.ZodTypeAny = z.object({\n group: AccredibleCertificatesCreateGroup_GroupSchema.nullable(),\n});\n\nexport const accredibleCertificatesCreateGroup = action(\"ACCREDIBLE_CERTIFICATES_CREATE_GROUP\", {\n slug: \"accredible_certificates-create-group\",\n name: \"Create Group\",\n description: \"Tool to create a new group. Use after gathering all group details.\",\n input: AccredibleCertificatesCreateGroupInput,\n output: AccredibleCertificatesCreateGroupOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yCAAuDA,IAAAA,EAAE,OAAO;CAC3E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE;CAC9F,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,QAAQ,IAAI,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAChN,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAChG,YAAYA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACxG,YAAYA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC7F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC7E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CACzG,aAAaA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC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,OAAO,CAAC,CAAC,SAAS;CACjC,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI;CAC9B,gBAAgB,sDAAsD,SAAS;CAC/E,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS;CAC3C,iBAAiBA,IAAAA,EAAE,QAAQ;CAC3B,kBAAkBA,IAAAA,EAAE,QAAQ;CAC5B,mBAAmBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS;CAChD,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS;CAC7C,oBAAoBA,IAAAA,EAAE,OAAO;CAC7B,uBAAuBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS;CACjD,wBAAwBA,IAAAA,EAAE,QAAQ;CAClC,6BAA6BA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS;CAClD,6BAA6BA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS;AACpD,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/create-group.d.ts
|
|
4
|
+
declare const AccredibleCertificatesCreateGroupInput: z.ZodTypeAny;
|
|
5
|
+
declare const AccredibleCertificatesCreateGroupOutput: z.ZodTypeAny;
|
|
6
|
+
declare const accredibleCertificatesCreateGroup: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { accredibleCertificatesCreateGroup };
|
|
9
|
+
//# sourceMappingURL=create-group.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-group.d.cts","names":[],"sources":["../../src/actions/create-group.ts"],"mappings":";;;cAIa,sCAAA,EAAwC,CAAA,CAAE,UAuBc;AAAA,cAuCxD,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/create-group.d.ts
|
|
4
|
+
declare const AccredibleCertificatesCreateGroupInput: z.ZodTypeAny;
|
|
5
|
+
declare const AccredibleCertificatesCreateGroupOutput: z.ZodTypeAny;
|
|
6
|
+
declare const accredibleCertificatesCreateGroup: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { accredibleCertificatesCreateGroup };
|
|
9
|
+
//# sourceMappingURL=create-group.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-group.d.mts","names":[],"sources":["../../src/actions/create-group.ts"],"mappings":";;;cAIa,sCAAA,EAAwC,CAAA,CAAE,UAuBc;AAAA,cAuCxD,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/create-group.ts
|
|
4
|
+
const AccredibleCertificatesCreateGroupInput = z.object({
|
|
5
|
+
name: z.string().describe("Name of the group (internal reference, not shown to the recipient)"),
|
|
6
|
+
language: z.enum([
|
|
7
|
+
"en",
|
|
8
|
+
"es",
|
|
9
|
+
"vi",
|
|
10
|
+
"pt",
|
|
11
|
+
"ja",
|
|
12
|
+
"fr",
|
|
13
|
+
"da",
|
|
14
|
+
"nl",
|
|
15
|
+
"fi",
|
|
16
|
+
"no",
|
|
17
|
+
"nb",
|
|
18
|
+
"ro",
|
|
19
|
+
"sv",
|
|
20
|
+
"th",
|
|
21
|
+
"tw",
|
|
22
|
+
"zh",
|
|
23
|
+
"tr",
|
|
24
|
+
"ar",
|
|
25
|
+
"he",
|
|
26
|
+
"ms",
|
|
27
|
+
"de"
|
|
28
|
+
]).default("en").describe("Language code for the group").optional(),
|
|
29
|
+
meta_data: z.object({}).describe("Arbitrary string key-value metadata for this group").optional(),
|
|
30
|
+
attach_pdf: z.boolean().default(false).describe("Attach credential PDF to notification email").optional(),
|
|
31
|
+
blockchain: z.boolean().default(false).describe("Record credentials on blockchain").optional(),
|
|
32
|
+
signup_url: z.string().describe("Signup URL for course enrollment").optional(),
|
|
33
|
+
auto_expiry: z.number().int().describe("Years until auto-expiry of credential; ignored if <=0").optional(),
|
|
34
|
+
collections: z.array(z.object({})).describe("List of collection objects with 'id' field").optional(),
|
|
35
|
+
course_link: z.string().describe("URL for course information page").optional(),
|
|
36
|
+
course_name: z.string().describe("Course or achievement name visible to the recipient"),
|
|
37
|
+
department_id: z.number().int().describe("Department ID for the group; defaults to org default").optional(),
|
|
38
|
+
badge_design_id: z.number().int().describe("Badge design ID to render credentials").optional(),
|
|
39
|
+
signup_url_show: z.boolean().describe("Display signup URL: true/false or null to inherit").optional(),
|
|
40
|
+
course_link_show: z.boolean().describe("Display course link: true/false or null to inherit").optional(),
|
|
41
|
+
learning_outcomes: z.array(z.string()).describe("Learning outcomes list for this group").optional(),
|
|
42
|
+
primary_design_id: z.number().int().describe("Primary design ID to render credentials").optional(),
|
|
43
|
+
skill_category_id: z.number().int().describe("Skill category ID to associate").optional(),
|
|
44
|
+
course_description: z.string().describe("Description of the course or achievement visible to the recipient"),
|
|
45
|
+
certificate_design_id: z.number().int().describe("Certificate design ID to render credentials").optional(),
|
|
46
|
+
organization_link_show: z.boolean().describe("Display organization link: true/false or null to inherit").optional(),
|
|
47
|
+
allow_duplicate_credentials: z.boolean().describe("Allow duplicate credentials per email: true/false").optional(),
|
|
48
|
+
generate_private_credential: z.boolean().describe("Override default private credential setting: true/false or null to inherit").optional()
|
|
49
|
+
}).describe("Request schema for creating a new Group in Accredible.");
|
|
50
|
+
const AccredibleCertificatesCreateGroup_CollectionSchema = z.object({
|
|
51
|
+
id: z.number().int().describe("Collection ID"),
|
|
52
|
+
name: z.string().describe("Collection name"),
|
|
53
|
+
description: z.string().describe("Collection description").nullable().optional()
|
|
54
|
+
});
|
|
55
|
+
const AccredibleCertificatesCreateGroup_SkillCategorySchema = z.object({
|
|
56
|
+
id: z.number().int().describe("Skill category ID"),
|
|
57
|
+
name: z.string().describe("Skill category name")
|
|
58
|
+
});
|
|
59
|
+
const AccredibleCertificatesCreateGroup_GroupSchema = z.object({
|
|
60
|
+
id: z.number().int(),
|
|
61
|
+
name: z.string(),
|
|
62
|
+
language: z.string(),
|
|
63
|
+
design_id: z.number().int().nullable(),
|
|
64
|
+
meta_data: z.object({}).nullable(),
|
|
65
|
+
attach_pdf: z.boolean(),
|
|
66
|
+
blockchain: z.boolean(),
|
|
67
|
+
created_at: z.string(),
|
|
68
|
+
signup_url: z.string().nullable(),
|
|
69
|
+
updated_at: z.string(),
|
|
70
|
+
auto_expiry: z.number().int().nullable(),
|
|
71
|
+
collections: z.array(AccredibleCertificatesCreateGroup_CollectionSchema).nullable(),
|
|
72
|
+
course_link: z.string().nullable(),
|
|
73
|
+
course_name: z.string(),
|
|
74
|
+
design_name: z.string().nullable(),
|
|
75
|
+
department_id: z.number().int(),
|
|
76
|
+
skill_category: AccredibleCertificatesCreateGroup_SkillCategorySchema.nullable(),
|
|
77
|
+
badge_design_id: z.number().int().nullable(),
|
|
78
|
+
signup_url_show: z.boolean(),
|
|
79
|
+
course_link_show: z.boolean(),
|
|
80
|
+
learning_outcomes: z.array(z.string()).nullable(),
|
|
81
|
+
primary_design_id: z.number().int().nullable(),
|
|
82
|
+
course_description: z.string(),
|
|
83
|
+
certificate_design_id: z.number().int().nullable(),
|
|
84
|
+
organization_link_show: z.boolean(),
|
|
85
|
+
allow_duplicate_credentials: z.boolean().nullable(),
|
|
86
|
+
generate_private_credential: z.boolean().nullable()
|
|
87
|
+
});
|
|
88
|
+
const accredibleCertificatesCreateGroup = action("ACCREDIBLE_CERTIFICATES_CREATE_GROUP", {
|
|
89
|
+
slug: "accredible_certificates-create-group",
|
|
90
|
+
name: "Create Group",
|
|
91
|
+
description: "Tool to create a new group. Use after gathering all group details.",
|
|
92
|
+
input: AccredibleCertificatesCreateGroupInput,
|
|
93
|
+
output: z.object({ group: AccredibleCertificatesCreateGroup_GroupSchema.nullable() })
|
|
94
|
+
});
|
|
95
|
+
//#endregion
|
|
96
|
+
export { accredibleCertificatesCreateGroup };
|
|
97
|
+
|
|
98
|
+
//# sourceMappingURL=create-group.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-group.mjs","names":[],"sources":["../../src/actions/create-group.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const AccredibleCertificatesCreateGroupInput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the group (internal reference, not shown to the recipient)\"),\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\"]).default(\"en\").describe(\"Language code for the group\").optional(),\n meta_data: z.object({}).describe(\"Arbitrary string key-value metadata for this group\").optional(),\n attach_pdf: z.boolean().default(false).describe(\"Attach credential PDF to notification email\").optional(),\n blockchain: z.boolean().default(false).describe(\"Record credentials on blockchain\").optional(),\n signup_url: z.string().describe(\"Signup URL for course enrollment\").optional(),\n auto_expiry: z.number().int().describe(\"Years until auto-expiry of credential; ignored if <=0\").optional(),\n collections: z.array(z.object({})).describe(\"List of collection objects with 'id' field\").optional(),\n course_link: z.string().describe(\"URL for course information page\").optional(),\n course_name: z.string().describe(\"Course or achievement name visible to the recipient\"),\n department_id: z.number().int().describe(\"Department ID for the group; defaults to org default\").optional(),\n badge_design_id: z.number().int().describe(\"Badge design ID to render credentials\").optional(),\n signup_url_show: z.boolean().describe(\"Display signup URL: true/false or null to inherit\").optional(),\n course_link_show: z.boolean().describe(\"Display course link: true/false or null to inherit\").optional(),\n learning_outcomes: z.array(z.string()).describe(\"Learning outcomes list for this group\").optional(),\n primary_design_id: z.number().int().describe(\"Primary design ID to render credentials\").optional(),\n skill_category_id: z.number().int().describe(\"Skill category ID to associate\").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 to render credentials\").optional(),\n organization_link_show: z.boolean().describe(\"Display organization link: true/false or null to inherit\").optional(),\n allow_duplicate_credentials: z.boolean().describe(\"Allow duplicate credentials per email: true/false\").optional(),\n generate_private_credential: z.boolean().describe(\"Override default private credential setting: true/false or null to inherit\").optional(),\n}).describe(\"Request schema for creating a new Group in Accredible.\");\nconst AccredibleCertificatesCreateGroup_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 AccredibleCertificatesCreateGroup_SkillCategorySchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Skill category ID\"),\n name: z.string().describe(\"Skill category name\"),\n});\nconst AccredibleCertificatesCreateGroup_GroupSchema: z.ZodTypeAny = z.object({\n id: z.number().int(),\n name: z.string(),\n language: z.string(),\n design_id: z.number().int().nullable(),\n meta_data: z.object({}).nullable(),\n attach_pdf: z.boolean(),\n blockchain: z.boolean(),\n created_at: z.string(),\n signup_url: z.string().nullable(),\n updated_at: z.string(),\n auto_expiry: z.number().int().nullable(),\n collections: z.array(AccredibleCertificatesCreateGroup_CollectionSchema).nullable(),\n course_link: z.string().nullable(),\n course_name: z.string(),\n design_name: z.string().nullable(),\n department_id: z.number().int(),\n skill_category: AccredibleCertificatesCreateGroup_SkillCategorySchema.nullable(),\n badge_design_id: z.number().int().nullable(),\n signup_url_show: z.boolean(),\n course_link_show: z.boolean(),\n learning_outcomes: z.array(z.string()).nullable(),\n primary_design_id: z.number().int().nullable(),\n course_description: z.string(),\n certificate_design_id: z.number().int().nullable(),\n organization_link_show: z.boolean(),\n allow_duplicate_credentials: z.boolean().nullable(),\n generate_private_credential: z.boolean().nullable(),\n});\nexport const AccredibleCertificatesCreateGroupOutput: z.ZodTypeAny = z.object({\n group: AccredibleCertificatesCreateGroup_GroupSchema.nullable(),\n});\n\nexport const accredibleCertificatesCreateGroup = action(\"ACCREDIBLE_CERTIFICATES_CREATE_GROUP\", {\n slug: \"accredible_certificates-create-group\",\n name: \"Create Group\",\n description: \"Tool to create a new group. Use after gathering all group details.\",\n input: AccredibleCertificatesCreateGroupInput,\n output: AccredibleCertificatesCreateGroupOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yCAAuD,EAAE,OAAO;CAC3E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE;CAC9F,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,QAAQ,IAAI,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAChN,WAAW,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAChG,YAAY,EAAE,QAAQ,C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,SAAS;CACjC,aAAa,EAAE,OAAO;CACtB,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS;CACjC,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI;CAC9B,gBAAgB,sDAAsD,SAAS;CAC/E,iBAAiB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS;CAC3C,iBAAiB,EAAE,QAAQ;CAC3B,kBAAkB,EAAE,QAAQ;CAC5B,mBAAmB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS;CAChD,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS;CAC7C,oBAAoB,EAAE,OAAO;CAC7B,uBAAuB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS;CACjD,wBAAwB,EAAE,QAAQ;CAClC,6BAA6B,EAAE,QAAQ,CAAC,CAAC,SAAS;CAClD,6BAA6B,EAAE,QAAQ,CAAC,CAAC,SAAS;AACpD,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,50 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/create-reference.ts
|
|
4
|
+
const AccredibleCertificatesCreateReferenceInput = zod.z.object({
|
|
5
|
+
reference: zod.z.object({
|
|
6
|
+
referee: zod.z.object({
|
|
7
|
+
url: zod.z.string().describe("URL associated with the referee, such as their LinkedIn profile or personal website.").optional(),
|
|
8
|
+
name: zod.z.string().describe("Name of the referee providing the reference."),
|
|
9
|
+
email: zod.z.string().describe("Email address of the referee."),
|
|
10
|
+
avatar: zod.z.string().describe("URL of the referee's avatar image.").optional()
|
|
11
|
+
}).describe("Details of the person providing the reference, including name and email (required)."),
|
|
12
|
+
position: zod.z.number().int().describe("The numeric position of the reference on the credential. 0 is displayed first in the list.").optional(),
|
|
13
|
+
description: zod.z.string().describe("The reference comments or text provided by the referee."),
|
|
14
|
+
relationship: zod.z.enum([
|
|
15
|
+
"taught",
|
|
16
|
+
"managed",
|
|
17
|
+
"mentored",
|
|
18
|
+
"worked",
|
|
19
|
+
"studied",
|
|
20
|
+
"friends",
|
|
21
|
+
"stranger",
|
|
22
|
+
"professor"
|
|
23
|
+
]).describe("Relationship of the referee to the credential recipient. Must be one of: taught, managed, mentored, worked, studied, friends, stranger, professor.")
|
|
24
|
+
}).describe("Reference object containing all the reference details."),
|
|
25
|
+
credential_id: zod.z.string().describe("ID of the credential to attach the reference to.")
|
|
26
|
+
}).describe("Request schema for creating a new reference on a credential.");
|
|
27
|
+
const AccredibleCertificatesCreateReference_RefereeResponseSchema = zod.z.object({
|
|
28
|
+
name: zod.z.string().describe("Name of the referee."),
|
|
29
|
+
email: zod.z.string().describe("Email address of the referee."),
|
|
30
|
+
avatar: zod.z.string().describe("URL of the referee's avatar image.").nullable().optional()
|
|
31
|
+
}).describe("Referee details in the API response.");
|
|
32
|
+
const AccredibleCertificatesCreateReference_ReferenceResponseSchema = zod.z.object({
|
|
33
|
+
id: zod.z.number().int().describe("Unique identifier of the created reference."),
|
|
34
|
+
referee: AccredibleCertificatesCreateReference_RefereeResponseSchema.nullable(),
|
|
35
|
+
description: zod.z.string().describe("The reference comments or text."),
|
|
36
|
+
relationship: zod.z.string().describe("Relationship of the referee to the recipient."),
|
|
37
|
+
supplemental: zod.z.boolean().describe("Indicates if the reference is supplemental.")
|
|
38
|
+
}).describe("Reference details returned by the API.");
|
|
39
|
+
const AccredibleCertificatesCreateReferenceOutput = zod.z.object({ reference: AccredibleCertificatesCreateReference_ReferenceResponseSchema.nullable() }).describe("Response schema for creating a reference.");
|
|
40
|
+
const accredibleCertificatesCreateReference = require_action.action("ACCREDIBLE_CERTIFICATES_CREATE_REFERENCE", {
|
|
41
|
+
slug: "accredible_certificates-create-reference",
|
|
42
|
+
name: "Create Reference",
|
|
43
|
+
description: "Tool to create a new reference for a credential. Use when you need to add a reference from someone who can vouch for the credential recipient's skills or achievements.",
|
|
44
|
+
input: AccredibleCertificatesCreateReferenceInput,
|
|
45
|
+
output: AccredibleCertificatesCreateReferenceOutput
|
|
46
|
+
});
|
|
47
|
+
//#endregion
|
|
48
|
+
exports.accredibleCertificatesCreateReference = accredibleCertificatesCreateReference;
|
|
49
|
+
|
|
50
|
+
//# sourceMappingURL=create-reference.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-reference.cjs","names":["z","action"],"sources":["../../src/actions/create-reference.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const AccredibleCertificatesCreateReferenceInput: z.ZodTypeAny = z.object({\n reference: z.object({\n referee: z.object({\n url: z.string().describe(\"URL associated with the referee, such as their LinkedIn profile or personal website.\").optional(),\n name: z.string().describe(\"Name of the referee providing the reference.\"),\n email: z.string().describe(\"Email address of the referee.\"),\n avatar: z.string().describe(\"URL of the referee's avatar image.\").optional(),\n}).describe(\"Details of the person providing the reference, including name and email (required).\"),\n position: z.number().int().describe(\"The numeric position of the reference on the credential. 0 is displayed first in the list.\").optional(),\n description: z.string().describe(\"The reference comments or text provided by the referee.\"),\n relationship: z.enum([\"taught\", \"managed\", \"mentored\", \"worked\", \"studied\", \"friends\", \"stranger\", \"professor\"]).describe(\"Relationship of the referee to the credential recipient. Must be one of: taught, managed, mentored, worked, studied, friends, stranger, professor.\"),\n}).describe(\"Reference object containing all the reference details.\"),\n credential_id: z.string().describe(\"ID of the credential to attach the reference to.\"),\n}).describe(\"Request schema for creating a new reference on a credential.\");\nconst AccredibleCertificatesCreateReference_RefereeResponseSchema: 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}).describe(\"Referee details in the API response.\");\nconst AccredibleCertificatesCreateReference_ReferenceResponseSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier of the created reference.\"),\n referee: AccredibleCertificatesCreateReference_RefereeResponseSchema.nullable(),\n description: z.string().describe(\"The reference comments or text.\"),\n relationship: z.string().describe(\"Relationship of the referee to the recipient.\"),\n supplemental: z.boolean().describe(\"Indicates if the reference is supplemental.\"),\n}).describe(\"Reference details returned by the API.\");\nexport const AccredibleCertificatesCreateReferenceOutput: z.ZodTypeAny = z.object({\n reference: AccredibleCertificatesCreateReference_ReferenceResponseSchema.nullable(),\n}).describe(\"Response schema for creating a reference.\");\n\nexport const accredibleCertificatesCreateReference = action(\"ACCREDIBLE_CERTIFICATES_CREATE_REFERENCE\", {\n slug: \"accredible_certificates-create-reference\",\n name: \"Create Reference\",\n description: \"Tool to create a new reference for a credential. Use when you need to add a reference from someone who can vouch for the credential recipient's skills or achievements.\",\n input: AccredibleCertificatesCreateReferenceInput,\n output: AccredibleCertificatesCreateReferenceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6CAA2DA,IAAAA,EAAE,OAAO;CAC/E,WAAWA,IAAAA,EAAE,OAAO;EACpB,SAASA,IAAAA,EAAE,OAAO;GAClB,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS;GAC1H,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;GACxE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;GAC1D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;EAC7E,CAAC,CAAC,CAAC,SAAS,qFAAqF;EAC/F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4FAA4F,CAAC,CAAC,SAAS;EAC3I,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,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reference.d.ts
|
|
4
|
+
declare const AccredibleCertificatesCreateReferenceInput: z.ZodTypeAny;
|
|
5
|
+
declare const AccredibleCertificatesCreateReferenceOutput: z.ZodTypeAny;
|
|
6
|
+
declare const accredibleCertificatesCreateReference: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { accredibleCertificatesCreateReference };
|
|
9
|
+
//# sourceMappingURL=create-reference.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-reference.d.cts","names":[],"sources":["../../src/actions/create-reference.ts"],"mappings":";;;cAIa,0CAAA,EAA4C,CAAA,CAAE,UAagB;AAAA,cAa9D,2CAAA,EAA6C,CAAA,CAAE,UAEJ;AAAA,cAE3C,qCAAA,gCAAqC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/create-reference.d.ts
|
|
4
|
+
declare const AccredibleCertificatesCreateReferenceInput: z.ZodTypeAny;
|
|
5
|
+
declare const AccredibleCertificatesCreateReferenceOutput: z.ZodTypeAny;
|
|
6
|
+
declare const accredibleCertificatesCreateReference: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { accredibleCertificatesCreateReference };
|
|
9
|
+
//# sourceMappingURL=create-reference.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-reference.d.mts","names":[],"sources":["../../src/actions/create-reference.ts"],"mappings":";;;cAIa,0CAAA,EAA4C,CAAA,CAAE,UAagB;AAAA,cAa9D,2CAAA,EAA6C,CAAA,CAAE,UAEJ;AAAA,cAE3C,qCAAA,gCAAqC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/create-reference.ts
|
|
4
|
+
const AccredibleCertificatesCreateReferenceInput = z.object({
|
|
5
|
+
reference: z.object({
|
|
6
|
+
referee: z.object({
|
|
7
|
+
url: z.string().describe("URL associated with the referee, such as their LinkedIn profile or personal website.").optional(),
|
|
8
|
+
name: z.string().describe("Name of the referee providing the reference."),
|
|
9
|
+
email: z.string().describe("Email address of the referee."),
|
|
10
|
+
avatar: z.string().describe("URL of the referee's avatar image.").optional()
|
|
11
|
+
}).describe("Details of the person providing the reference, including name and email (required)."),
|
|
12
|
+
position: z.number().int().describe("The numeric position of the reference on the credential. 0 is displayed first in the list.").optional(),
|
|
13
|
+
description: z.string().describe("The reference comments or text provided by the referee."),
|
|
14
|
+
relationship: z.enum([
|
|
15
|
+
"taught",
|
|
16
|
+
"managed",
|
|
17
|
+
"mentored",
|
|
18
|
+
"worked",
|
|
19
|
+
"studied",
|
|
20
|
+
"friends",
|
|
21
|
+
"stranger",
|
|
22
|
+
"professor"
|
|
23
|
+
]).describe("Relationship of the referee to the credential recipient. Must be one of: taught, managed, mentored, worked, studied, friends, stranger, professor.")
|
|
24
|
+
}).describe("Reference object containing all the reference details."),
|
|
25
|
+
credential_id: z.string().describe("ID of the credential to attach the reference to.")
|
|
26
|
+
}).describe("Request schema for creating a new reference on a credential.");
|
|
27
|
+
const AccredibleCertificatesCreateReference_RefereeResponseSchema = z.object({
|
|
28
|
+
name: z.string().describe("Name of the referee."),
|
|
29
|
+
email: z.string().describe("Email address of the referee."),
|
|
30
|
+
avatar: z.string().describe("URL of the referee's avatar image.").nullable().optional()
|
|
31
|
+
}).describe("Referee details in the API response.");
|
|
32
|
+
const AccredibleCertificatesCreateReference_ReferenceResponseSchema = z.object({
|
|
33
|
+
id: z.number().int().describe("Unique identifier of the created reference."),
|
|
34
|
+
referee: AccredibleCertificatesCreateReference_RefereeResponseSchema.nullable(),
|
|
35
|
+
description: z.string().describe("The reference comments or text."),
|
|
36
|
+
relationship: z.string().describe("Relationship of the referee to the recipient."),
|
|
37
|
+
supplemental: z.boolean().describe("Indicates if the reference is supplemental.")
|
|
38
|
+
}).describe("Reference details returned by the API.");
|
|
39
|
+
const accredibleCertificatesCreateReference = action("ACCREDIBLE_CERTIFICATES_CREATE_REFERENCE", {
|
|
40
|
+
slug: "accredible_certificates-create-reference",
|
|
41
|
+
name: "Create Reference",
|
|
42
|
+
description: "Tool to create a new reference for a credential. Use when you need to add a reference from someone who can vouch for the credential recipient's skills or achievements.",
|
|
43
|
+
input: AccredibleCertificatesCreateReferenceInput,
|
|
44
|
+
output: z.object({ reference: AccredibleCertificatesCreateReference_ReferenceResponseSchema.nullable() }).describe("Response schema for creating a reference.")
|
|
45
|
+
});
|
|
46
|
+
//#endregion
|
|
47
|
+
export { accredibleCertificatesCreateReference };
|
|
48
|
+
|
|
49
|
+
//# sourceMappingURL=create-reference.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-reference.mjs","names":[],"sources":["../../src/actions/create-reference.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const AccredibleCertificatesCreateReferenceInput: z.ZodTypeAny = z.object({\n reference: z.object({\n referee: z.object({\n url: z.string().describe(\"URL associated with the referee, such as their LinkedIn profile or personal website.\").optional(),\n name: z.string().describe(\"Name of the referee providing the reference.\"),\n email: z.string().describe(\"Email address of the referee.\"),\n avatar: z.string().describe(\"URL of the referee's avatar image.\").optional(),\n}).describe(\"Details of the person providing the reference, including name and email (required).\"),\n position: z.number().int().describe(\"The numeric position of the reference on the credential. 0 is displayed first in the list.\").optional(),\n description: z.string().describe(\"The reference comments or text provided by the referee.\"),\n relationship: z.enum([\"taught\", \"managed\", \"mentored\", \"worked\", \"studied\", \"friends\", \"stranger\", \"professor\"]).describe(\"Relationship of the referee to the credential recipient. Must be one of: taught, managed, mentored, worked, studied, friends, stranger, professor.\"),\n}).describe(\"Reference object containing all the reference details.\"),\n credential_id: z.string().describe(\"ID of the credential to attach the reference to.\"),\n}).describe(\"Request schema for creating a new reference on a credential.\");\nconst AccredibleCertificatesCreateReference_RefereeResponseSchema: 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}).describe(\"Referee details in the API response.\");\nconst AccredibleCertificatesCreateReference_ReferenceResponseSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier of the created reference.\"),\n referee: AccredibleCertificatesCreateReference_RefereeResponseSchema.nullable(),\n description: z.string().describe(\"The reference comments or text.\"),\n relationship: z.string().describe(\"Relationship of the referee to the recipient.\"),\n supplemental: z.boolean().describe(\"Indicates if the reference is supplemental.\"),\n}).describe(\"Reference details returned by the API.\");\nexport const AccredibleCertificatesCreateReferenceOutput: z.ZodTypeAny = z.object({\n reference: AccredibleCertificatesCreateReference_ReferenceResponseSchema.nullable(),\n}).describe(\"Response schema for creating a reference.\");\n\nexport const accredibleCertificatesCreateReference = action(\"ACCREDIBLE_CERTIFICATES_CREATE_REFERENCE\", {\n slug: \"accredible_certificates-create-reference\",\n name: \"Create Reference\",\n description: \"Tool to create a new reference for a credential. Use when you need to add a reference from someone who can vouch for the credential recipient's skills or achievements.\",\n input: AccredibleCertificatesCreateReferenceInput,\n output: AccredibleCertificatesCreateReferenceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6CAA2D,EAAE,OAAO;CAC/E,WAAW,EAAE,OAAO;EACpB,SAAS,EAAE,OAAO;GAClB,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS;GAC1H,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