@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.
Files changed (322) hide show
  1. package/README.md +17 -0
  2. package/dist/action.cjs +21 -0
  3. package/dist/action.cjs.map +1 -0
  4. package/dist/action.mjs +21 -0
  5. package/dist/action.mjs.map +1 -0
  6. package/dist/actions/bulk-create-credentials-v2.cjs +84 -0
  7. package/dist/actions/bulk-create-credentials-v2.cjs.map +1 -0
  8. package/dist/actions/bulk-create-credentials-v2.d.cts +9 -0
  9. package/dist/actions/bulk-create-credentials-v2.d.cts.map +1 -0
  10. package/dist/actions/bulk-create-credentials-v2.d.mts +9 -0
  11. package/dist/actions/bulk-create-credentials-v2.d.mts.map +1 -0
  12. package/dist/actions/bulk-create-credentials-v2.mjs +83 -0
  13. package/dist/actions/bulk-create-credentials-v2.mjs.map +1 -0
  14. package/dist/actions/clone-group.cjs +97 -0
  15. package/dist/actions/clone-group.cjs.map +1 -0
  16. package/dist/actions/clone-group.d.cts +9 -0
  17. package/dist/actions/clone-group.d.cts.map +1 -0
  18. package/dist/actions/clone-group.d.mts +9 -0
  19. package/dist/actions/clone-group.d.mts.map +1 -0
  20. package/dist/actions/clone-group.mjs +96 -0
  21. package/dist/actions/clone-group.mjs.map +1 -0
  22. package/dist/actions/create-attribute-key.cjs +31 -0
  23. package/dist/actions/create-attribute-key.cjs.map +1 -0
  24. package/dist/actions/create-attribute-key.d.cts +9 -0
  25. package/dist/actions/create-attribute-key.d.cts.map +1 -0
  26. package/dist/actions/create-attribute-key.d.mts +9 -0
  27. package/dist/actions/create-attribute-key.d.mts.map +1 -0
  28. package/dist/actions/create-attribute-key.mjs +30 -0
  29. package/dist/actions/create-attribute-key.mjs.map +1 -0
  30. package/dist/actions/create-collection.cjs +34 -0
  31. package/dist/actions/create-collection.cjs.map +1 -0
  32. package/dist/actions/create-collection.d.cts +9 -0
  33. package/dist/actions/create-collection.d.cts.map +1 -0
  34. package/dist/actions/create-collection.d.mts +9 -0
  35. package/dist/actions/create-collection.d.mts.map +1 -0
  36. package/dist/actions/create-collection.mjs +33 -0
  37. package/dist/actions/create-collection.mjs.map +1 -0
  38. package/dist/actions/create-credential.cjs +131 -0
  39. package/dist/actions/create-credential.cjs.map +1 -0
  40. package/dist/actions/create-credential.d.cts +9 -0
  41. package/dist/actions/create-credential.d.cts.map +1 -0
  42. package/dist/actions/create-credential.d.mts +9 -0
  43. package/dist/actions/create-credential.d.mts.map +1 -0
  44. package/dist/actions/create-credential.mjs +130 -0
  45. package/dist/actions/create-credential.mjs.map +1 -0
  46. package/dist/actions/create-evidence-item.cjs +42 -0
  47. package/dist/actions/create-evidence-item.cjs.map +1 -0
  48. package/dist/actions/create-evidence-item.d.cts +9 -0
  49. package/dist/actions/create-evidence-item.d.cts.map +1 -0
  50. package/dist/actions/create-evidence-item.d.mts +9 -0
  51. package/dist/actions/create-evidence-item.d.mts.map +1 -0
  52. package/dist/actions/create-evidence-item.mjs +41 -0
  53. package/dist/actions/create-evidence-item.mjs.map +1 -0
  54. package/dist/actions/create-group.cjs +99 -0
  55. package/dist/actions/create-group.cjs.map +1 -0
  56. package/dist/actions/create-group.d.cts +9 -0
  57. package/dist/actions/create-group.d.cts.map +1 -0
  58. package/dist/actions/create-group.d.mts +9 -0
  59. package/dist/actions/create-group.d.mts.map +1 -0
  60. package/dist/actions/create-group.mjs +98 -0
  61. package/dist/actions/create-group.mjs.map +1 -0
  62. package/dist/actions/create-reference.cjs +50 -0
  63. package/dist/actions/create-reference.cjs.map +1 -0
  64. package/dist/actions/create-reference.d.cts +9 -0
  65. package/dist/actions/create-reference.d.cts.map +1 -0
  66. package/dist/actions/create-reference.d.mts +9 -0
  67. package/dist/actions/create-reference.d.mts.map +1 -0
  68. package/dist/actions/create-reference.mjs +49 -0
  69. package/dist/actions/create-reference.mjs.map +1 -0
  70. package/dist/actions/delete-collection.cjs +19 -0
  71. package/dist/actions/delete-collection.cjs.map +1 -0
  72. package/dist/actions/delete-collection.d.cts +9 -0
  73. package/dist/actions/delete-collection.d.cts.map +1 -0
  74. package/dist/actions/delete-collection.d.mts +9 -0
  75. package/dist/actions/delete-collection.d.mts.map +1 -0
  76. package/dist/actions/delete-collection.mjs +16 -0
  77. package/dist/actions/delete-collection.mjs.map +1 -0
  78. package/dist/actions/delete-credential.cjs +19 -0
  79. package/dist/actions/delete-credential.cjs.map +1 -0
  80. package/dist/actions/delete-credential.d.cts +9 -0
  81. package/dist/actions/delete-credential.d.cts.map +1 -0
  82. package/dist/actions/delete-credential.d.mts +9 -0
  83. package/dist/actions/delete-credential.d.mts.map +1 -0
  84. package/dist/actions/delete-credential.mjs +16 -0
  85. package/dist/actions/delete-credential.mjs.map +1 -0
  86. package/dist/actions/delete-evidence-item.cjs +23 -0
  87. package/dist/actions/delete-evidence-item.cjs.map +1 -0
  88. package/dist/actions/delete-evidence-item.d.cts +9 -0
  89. package/dist/actions/delete-evidence-item.d.cts.map +1 -0
  90. package/dist/actions/delete-evidence-item.d.mts +9 -0
  91. package/dist/actions/delete-evidence-item.d.mts.map +1 -0
  92. package/dist/actions/delete-evidence-item.mjs +22 -0
  93. package/dist/actions/delete-evidence-item.mjs.map +1 -0
  94. package/dist/actions/delete-group.cjs +16 -0
  95. package/dist/actions/delete-group.cjs.map +1 -0
  96. package/dist/actions/delete-group.d.cts +9 -0
  97. package/dist/actions/delete-group.d.cts.map +1 -0
  98. package/dist/actions/delete-group.d.mts +9 -0
  99. package/dist/actions/delete-group.d.mts.map +1 -0
  100. package/dist/actions/delete-group.mjs +13 -0
  101. package/dist/actions/delete-group.mjs.map +1 -0
  102. package/dist/actions/delete-reference.cjs +31 -0
  103. package/dist/actions/delete-reference.cjs.map +1 -0
  104. package/dist/actions/delete-reference.d.cts +9 -0
  105. package/dist/actions/delete-reference.d.cts.map +1 -0
  106. package/dist/actions/delete-reference.d.mts +9 -0
  107. package/dist/actions/delete-reference.d.mts.map +1 -0
  108. package/dist/actions/delete-reference.mjs +30 -0
  109. package/dist/actions/delete-reference.mjs.map +1 -0
  110. package/dist/actions/generate-pd-fs-for-credentials.cjs +16 -0
  111. package/dist/actions/generate-pd-fs-for-credentials.cjs.map +1 -0
  112. package/dist/actions/generate-pd-fs-for-credentials.d.cts +9 -0
  113. package/dist/actions/generate-pd-fs-for-credentials.d.cts.map +1 -0
  114. package/dist/actions/generate-pd-fs-for-credentials.d.mts +9 -0
  115. package/dist/actions/generate-pd-fs-for-credentials.d.mts.map +1 -0
  116. package/dist/actions/generate-pd-fs-for-credentials.mjs +13 -0
  117. package/dist/actions/generate-pd-fs-for-credentials.mjs.map +1 -0
  118. package/dist/actions/get-analytics.cjs +44 -0
  119. package/dist/actions/get-analytics.cjs.map +1 -0
  120. package/dist/actions/get-analytics.d.cts +9 -0
  121. package/dist/actions/get-analytics.d.cts.map +1 -0
  122. package/dist/actions/get-analytics.d.mts +9 -0
  123. package/dist/actions/get-analytics.d.mts.map +1 -0
  124. package/dist/actions/get-analytics.mjs +43 -0
  125. package/dist/actions/get-analytics.mjs.map +1 -0
  126. package/dist/actions/get-credential-analytics.cjs +21 -0
  127. package/dist/actions/get-credential-analytics.cjs.map +1 -0
  128. package/dist/actions/get-credential-analytics.d.cts +9 -0
  129. package/dist/actions/get-credential-analytics.d.cts.map +1 -0
  130. package/dist/actions/get-credential-analytics.d.mts +9 -0
  131. package/dist/actions/get-credential-analytics.d.mts.map +1 -0
  132. package/dist/actions/get-credential-analytics.mjs +20 -0
  133. package/dist/actions/get-credential-analytics.mjs.map +1 -0
  134. package/dist/actions/get-credential.cjs +62 -0
  135. package/dist/actions/get-credential.cjs.map +1 -0
  136. package/dist/actions/get-credential.d.cts +9 -0
  137. package/dist/actions/get-credential.d.cts.map +1 -0
  138. package/dist/actions/get-credential.d.mts +9 -0
  139. package/dist/actions/get-credential.d.mts.map +1 -0
  140. package/dist/actions/get-credential.mjs +61 -0
  141. package/dist/actions/get-credential.mjs.map +1 -0
  142. package/dist/actions/get-department.cjs +32 -0
  143. package/dist/actions/get-department.cjs.map +1 -0
  144. package/dist/actions/get-department.d.cts +9 -0
  145. package/dist/actions/get-department.d.cts.map +1 -0
  146. package/dist/actions/get-department.d.mts +9 -0
  147. package/dist/actions/get-department.d.mts.map +1 -0
  148. package/dist/actions/get-department.mjs +31 -0
  149. package/dist/actions/get-department.mjs.map +1 -0
  150. package/dist/actions/get-evidence-item.cjs +29 -0
  151. package/dist/actions/get-evidence-item.cjs.map +1 -0
  152. package/dist/actions/get-evidence-item.d.cts +9 -0
  153. package/dist/actions/get-evidence-item.d.cts.map +1 -0
  154. package/dist/actions/get-evidence-item.d.mts +9 -0
  155. package/dist/actions/get-evidence-item.d.mts.map +1 -0
  156. package/dist/actions/get-evidence-item.mjs +28 -0
  157. package/dist/actions/get-evidence-item.mjs.map +1 -0
  158. package/dist/actions/get-group.cjs +53 -0
  159. package/dist/actions/get-group.cjs.map +1 -0
  160. package/dist/actions/get-group.d.cts +9 -0
  161. package/dist/actions/get-group.d.cts.map +1 -0
  162. package/dist/actions/get-group.d.mts +9 -0
  163. package/dist/actions/get-group.d.mts.map +1 -0
  164. package/dist/actions/get-group.mjs +52 -0
  165. package/dist/actions/get-group.mjs.map +1 -0
  166. package/dist/actions/get-issuer.cjs +28 -0
  167. package/dist/actions/get-issuer.cjs.map +1 -0
  168. package/dist/actions/get-issuer.d.cts +9 -0
  169. package/dist/actions/get-issuer.d.cts.map +1 -0
  170. package/dist/actions/get-issuer.d.mts +9 -0
  171. package/dist/actions/get-issuer.d.mts.map +1 -0
  172. package/dist/actions/get-issuer.mjs +27 -0
  173. package/dist/actions/get-issuer.mjs.map +1 -0
  174. package/dist/actions/get-reference.cjs +31 -0
  175. package/dist/actions/get-reference.cjs.map +1 -0
  176. package/dist/actions/get-reference.d.cts +9 -0
  177. package/dist/actions/get-reference.d.cts.map +1 -0
  178. package/dist/actions/get-reference.d.mts +9 -0
  179. package/dist/actions/get-reference.d.mts.map +1 -0
  180. package/dist/actions/get-reference.mjs +30 -0
  181. package/dist/actions/get-reference.mjs.map +1 -0
  182. package/dist/actions/index.cjs +73 -0
  183. package/dist/actions/index.d.cts +37 -0
  184. package/dist/actions/index.d.mts +37 -0
  185. package/dist/actions/index.mjs +37 -0
  186. package/dist/actions/initialize-badge-designer.cjs +22 -0
  187. package/dist/actions/initialize-badge-designer.cjs.map +1 -0
  188. package/dist/actions/initialize-badge-designer.d.cts +9 -0
  189. package/dist/actions/initialize-badge-designer.d.cts.map +1 -0
  190. package/dist/actions/initialize-badge-designer.d.mts +9 -0
  191. package/dist/actions/initialize-badge-designer.d.mts.map +1 -0
  192. package/dist/actions/initialize-badge-designer.mjs +19 -0
  193. package/dist/actions/initialize-badge-designer.mjs.map +1 -0
  194. package/dist/actions/initialize-certificate-designer.cjs +23 -0
  195. package/dist/actions/initialize-certificate-designer.cjs.map +1 -0
  196. package/dist/actions/initialize-certificate-designer.d.cts +9 -0
  197. package/dist/actions/initialize-certificate-designer.d.cts.map +1 -0
  198. package/dist/actions/initialize-certificate-designer.d.mts +9 -0
  199. package/dist/actions/initialize-certificate-designer.d.mts.map +1 -0
  200. package/dist/actions/initialize-certificate-designer.mjs +20 -0
  201. package/dist/actions/initialize-certificate-designer.mjs.map +1 -0
  202. package/dist/actions/list-templates.cjs +37 -0
  203. package/dist/actions/list-templates.cjs.map +1 -0
  204. package/dist/actions/list-templates.d.cts +9 -0
  205. package/dist/actions/list-templates.d.cts.map +1 -0
  206. package/dist/actions/list-templates.d.mts +9 -0
  207. package/dist/actions/list-templates.d.mts.map +1 -0
  208. package/dist/actions/list-templates.mjs +36 -0
  209. package/dist/actions/list-templates.mjs.map +1 -0
  210. package/dist/actions/search-attribute-keys.cjs +43 -0
  211. package/dist/actions/search-attribute-keys.cjs.map +1 -0
  212. package/dist/actions/search-attribute-keys.d.cts +9 -0
  213. package/dist/actions/search-attribute-keys.d.cts.map +1 -0
  214. package/dist/actions/search-attribute-keys.d.mts +9 -0
  215. package/dist/actions/search-attribute-keys.d.mts.map +1 -0
  216. package/dist/actions/search-attribute-keys.mjs +42 -0
  217. package/dist/actions/search-attribute-keys.mjs.map +1 -0
  218. package/dist/actions/search-collections.cjs +52 -0
  219. package/dist/actions/search-collections.cjs.map +1 -0
  220. package/dist/actions/search-collections.d.cts +9 -0
  221. package/dist/actions/search-collections.d.cts.map +1 -0
  222. package/dist/actions/search-collections.d.mts +9 -0
  223. package/dist/actions/search-collections.d.mts.map +1 -0
  224. package/dist/actions/search-collections.mjs +51 -0
  225. package/dist/actions/search-collections.mjs.map +1 -0
  226. package/dist/actions/search-credentials-v2.cjs +67 -0
  227. package/dist/actions/search-credentials-v2.cjs.map +1 -0
  228. package/dist/actions/search-credentials-v2.d.cts +9 -0
  229. package/dist/actions/search-credentials-v2.d.cts.map +1 -0
  230. package/dist/actions/search-credentials-v2.d.mts +9 -0
  231. package/dist/actions/search-credentials-v2.d.mts.map +1 -0
  232. package/dist/actions/search-credentials-v2.mjs +66 -0
  233. package/dist/actions/search-credentials-v2.mjs.map +1 -0
  234. package/dist/actions/search-departments.cjs +47 -0
  235. package/dist/actions/search-departments.cjs.map +1 -0
  236. package/dist/actions/search-departments.d.cts +9 -0
  237. package/dist/actions/search-departments.d.cts.map +1 -0
  238. package/dist/actions/search-departments.d.mts +9 -0
  239. package/dist/actions/search-departments.d.mts.map +1 -0
  240. package/dist/actions/search-departments.mjs +46 -0
  241. package/dist/actions/search-departments.mjs.map +1 -0
  242. package/dist/actions/search-designs.cjs +41 -0
  243. package/dist/actions/search-designs.cjs.map +1 -0
  244. package/dist/actions/search-designs.d.cts +9 -0
  245. package/dist/actions/search-designs.d.cts.map +1 -0
  246. package/dist/actions/search-designs.d.mts +9 -0
  247. package/dist/actions/search-designs.d.mts.map +1 -0
  248. package/dist/actions/search-designs.mjs +40 -0
  249. package/dist/actions/search-designs.mjs.map +1 -0
  250. package/dist/actions/search-groups.cjs +72 -0
  251. package/dist/actions/search-groups.cjs.map +1 -0
  252. package/dist/actions/search-groups.d.cts +9 -0
  253. package/dist/actions/search-groups.d.cts.map +1 -0
  254. package/dist/actions/search-groups.d.mts +9 -0
  255. package/dist/actions/search-groups.d.mts.map +1 -0
  256. package/dist/actions/search-groups.mjs +71 -0
  257. package/dist/actions/search-groups.mjs.map +1 -0
  258. package/dist/actions/update-credential.cjs +92 -0
  259. package/dist/actions/update-credential.cjs.map +1 -0
  260. package/dist/actions/update-credential.d.cts +9 -0
  261. package/dist/actions/update-credential.d.cts.map +1 -0
  262. package/dist/actions/update-credential.d.mts +9 -0
  263. package/dist/actions/update-credential.d.mts.map +1 -0
  264. package/dist/actions/update-credential.mjs +91 -0
  265. package/dist/actions/update-credential.mjs.map +1 -0
  266. package/dist/actions/update-evidence-item.cjs +43 -0
  267. package/dist/actions/update-evidence-item.cjs.map +1 -0
  268. package/dist/actions/update-evidence-item.d.cts +9 -0
  269. package/dist/actions/update-evidence-item.d.cts.map +1 -0
  270. package/dist/actions/update-evidence-item.d.mts +9 -0
  271. package/dist/actions/update-evidence-item.d.mts.map +1 -0
  272. package/dist/actions/update-evidence-item.mjs +42 -0
  273. package/dist/actions/update-evidence-item.mjs.map +1 -0
  274. package/dist/actions/update-group.cjs +99 -0
  275. package/dist/actions/update-group.cjs.map +1 -0
  276. package/dist/actions/update-group.d.cts +9 -0
  277. package/dist/actions/update-group.d.cts.map +1 -0
  278. package/dist/actions/update-group.d.mts +9 -0
  279. package/dist/actions/update-group.d.mts.map +1 -0
  280. package/dist/actions/update-group.mjs +98 -0
  281. package/dist/actions/update-group.mjs.map +1 -0
  282. package/dist/actions/update-reference.cjs +54 -0
  283. package/dist/actions/update-reference.cjs.map +1 -0
  284. package/dist/actions/update-reference.d.cts +9 -0
  285. package/dist/actions/update-reference.d.cts.map +1 -0
  286. package/dist/actions/update-reference.d.mts +9 -0
  287. package/dist/actions/update-reference.d.mts.map +1 -0
  288. package/dist/actions/update-reference.mjs +53 -0
  289. package/dist/actions/update-reference.mjs.map +1 -0
  290. package/dist/actions/view-all-skill-categories.cjs +20 -0
  291. package/dist/actions/view-all-skill-categories.cjs.map +1 -0
  292. package/dist/actions/view-all-skill-categories.d.cts +9 -0
  293. package/dist/actions/view-all-skill-categories.d.cts.map +1 -0
  294. package/dist/actions/view-all-skill-categories.d.mts +9 -0
  295. package/dist/actions/view-all-skill-categories.d.mts.map +1 -0
  296. package/dist/actions/view-all-skill-categories.mjs +19 -0
  297. package/dist/actions/view-all-skill-categories.mjs.map +1 -0
  298. package/dist/app.cjs +9 -0
  299. package/dist/app.cjs.map +1 -0
  300. package/dist/app.d.cts +5 -0
  301. package/dist/app.d.cts.map +1 -0
  302. package/dist/app.d.mts +5 -0
  303. package/dist/app.d.mts.map +1 -0
  304. package/dist/app.mjs +10 -0
  305. package/dist/app.mjs.map +1 -0
  306. package/dist/catalog.cjs +15 -0
  307. package/dist/catalog.cjs.map +1 -0
  308. package/dist/catalog.d.cts +14 -0
  309. package/dist/catalog.d.cts.map +1 -0
  310. package/dist/catalog.d.mts +14 -0
  311. package/dist/catalog.d.mts.map +1 -0
  312. package/dist/catalog.mjs +15 -0
  313. package/dist/catalog.mjs.map +1 -0
  314. package/dist/execute.cjs +18 -0
  315. package/dist/execute.cjs.map +1 -0
  316. package/dist/execute.mjs +18 -0
  317. package/dist/execute.mjs.map +1 -0
  318. package/dist/index.cjs +78 -0
  319. package/dist/index.d.cts +39 -0
  320. package/dist/index.d.mts +39 -0
  321. package/dist/index.mjs +40 -0
  322. package/package.json +49 -0
@@ -0,0 +1,31 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/create-attribute-key.ts
4
+ const AccredibleCertificatesCreateAttributeKeyInput = zod.z.object({
5
+ kind: zod.z.enum([
6
+ "text",
7
+ "date",
8
+ "email",
9
+ "image"
10
+ ]).describe("Type of the custom attribute key. Determines how the attribute is displayed and validated."),
11
+ name: zod.z.string().describe("Name of the custom attribute key. This is the internal identifier for the attribute."),
12
+ department_id: zod.z.number().int().describe("Department ID that the custom attribute key belongs to. Required to associate the attribute with a specific department.")
13
+ }).describe("Request schema for creating a new custom attribute key in Accredible.");
14
+ const AccredibleCertificatesCreateAttributeKey_AttributeKeySchema = zod.z.object({
15
+ id: zod.z.number().int().describe("Unique ID of the created attribute key"),
16
+ kind: zod.z.string().describe("Type of the attribute key"),
17
+ name: zod.z.string().describe("Name of the attribute key"),
18
+ department_id: zod.z.number().int().describe("Department ID the attribute key belongs to")
19
+ }).describe("Attribute key object returned after creation.");
20
+ const AccredibleCertificatesCreateAttributeKeyOutput = zod.z.object({ attribute_key: AccredibleCertificatesCreateAttributeKey_AttributeKeySchema.nullable() }).describe("Response schema for create attribute key.");
21
+ const accredibleCertificatesCreateAttributeKey = require_action.action("ACCREDIBLE_CERTIFICATES_CREATE_ATTRIBUTE_KEY", {
22
+ slug: "accredible_certificates-create-attribute-key",
23
+ name: "Create Attribute Key",
24
+ description: "Tool to create a new custom attribute key. Use when you need to define a new custom attribute for credentials. Requires department ID to associate the attribute with a specific department.",
25
+ input: AccredibleCertificatesCreateAttributeKeyInput,
26
+ output: AccredibleCertificatesCreateAttributeKeyOutput
27
+ });
28
+ //#endregion
29
+ exports.accredibleCertificatesCreateAttributeKey = accredibleCertificatesCreateAttributeKey;
30
+
31
+ //# sourceMappingURL=create-attribute-key.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-attribute-key.cjs","names":["z","action"],"sources":["../../src/actions/create-attribute-key.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const AccredibleCertificatesCreateAttributeKeyInput: z.ZodTypeAny = z.object({\n kind: z.enum([\"text\", \"date\", \"email\", \"image\"]).describe(\"Type of the custom attribute key. Determines how the attribute is displayed and validated.\"),\n name: z.string().describe(\"Name of the custom attribute key. This is the internal identifier for the attribute.\"),\n department_id: z.number().int().describe(\"Department ID that the custom attribute key belongs to. Required to associate the attribute with a specific department.\"),\n}).describe(\"Request schema for creating a new custom attribute key in Accredible.\");\nconst AccredibleCertificatesCreateAttributeKey_AttributeKeySchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique ID of the created attribute key\"),\n kind: z.string().describe(\"Type of the attribute key\"),\n name: z.string().describe(\"Name of the attribute key\"),\n department_id: z.number().int().describe(\"Department ID the attribute key belongs to\"),\n}).describe(\"Attribute key object returned after creation.\");\nexport const AccredibleCertificatesCreateAttributeKeyOutput: z.ZodTypeAny = z.object({\n attribute_key: AccredibleCertificatesCreateAttributeKey_AttributeKeySchema.nullable(),\n}).describe(\"Response schema for create attribute key.\");\n\nexport const accredibleCertificatesCreateAttributeKey = action(\"ACCREDIBLE_CERTIFICATES_CREATE_ATTRIBUTE_KEY\", {\n slug: \"accredible_certificates-create-attribute-key\",\n name: \"Create Attribute Key\",\n description: \"Tool to create a new custom attribute key. Use when you need to define a new custom attribute for credentials. Requires department ID to associate the attribute with a specific department.\",\n input: AccredibleCertificatesCreateAttributeKeyInput,\n output: AccredibleCertificatesCreateAttributeKeyOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gDAA8DA,IAAAA,EAAE,OAAO;CAClF,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAQ;EAAQ;EAAS;CAAO,CAAC,CAAC,CAAC,SAAS,4FAA4F;CACtJ,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF;CAChH,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yHAAyH;AACpK,CAAC,CAAC,CAAC,SAAS,uEAAuE;AACnF,MAAM,8DAA4EA,IAAAA,EAAE,OAAO;CACzF,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC;CACtE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CACrD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CACrD,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C;AACvF,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAC3D,MAAa,iDAA+DA,IAAAA,EAAE,OAAO,EACnF,eAAe,4DAA4D,SAAS,EACtF,CAAC,CAAC,CAAC,SAAS,2CAA2C;AAEvD,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-attribute-key.d.ts
4
+ declare const AccredibleCertificatesCreateAttributeKeyInput: z.ZodTypeAny;
5
+ declare const AccredibleCertificatesCreateAttributeKeyOutput: z.ZodTypeAny;
6
+ declare const accredibleCertificatesCreateAttributeKey: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { accredibleCertificatesCreateAttributeKey };
9
+ //# sourceMappingURL=create-attribute-key.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-attribute-key.d.cts","names":[],"sources":["../../src/actions/create-attribute-key.ts"],"mappings":";;;cAIa,6CAAA,EAA+C,CAAA,CAAE,UAIsB;AAAA,cAOvE,8CAAA,EAAgD,CAAA,CAAE,UAEP;AAAA,cAE3C,wCAAA,gCAAwC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/create-attribute-key.d.ts
4
+ declare const AccredibleCertificatesCreateAttributeKeyInput: z.ZodTypeAny;
5
+ declare const AccredibleCertificatesCreateAttributeKeyOutput: z.ZodTypeAny;
6
+ declare const accredibleCertificatesCreateAttributeKey: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { accredibleCertificatesCreateAttributeKey };
9
+ //# sourceMappingURL=create-attribute-key.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-attribute-key.d.mts","names":[],"sources":["../../src/actions/create-attribute-key.ts"],"mappings":";;;cAIa,6CAAA,EAA+C,CAAA,CAAE,UAIsB;AAAA,cAOvE,8CAAA,EAAgD,CAAA,CAAE,UAEP;AAAA,cAE3C,wCAAA,gCAAwC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,30 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/create-attribute-key.ts
4
+ const AccredibleCertificatesCreateAttributeKeyInput = z.object({
5
+ kind: z.enum([
6
+ "text",
7
+ "date",
8
+ "email",
9
+ "image"
10
+ ]).describe("Type of the custom attribute key. Determines how the attribute is displayed and validated."),
11
+ name: z.string().describe("Name of the custom attribute key. This is the internal identifier for the attribute."),
12
+ department_id: z.number().int().describe("Department ID that the custom attribute key belongs to. Required to associate the attribute with a specific department.")
13
+ }).describe("Request schema for creating a new custom attribute key in Accredible.");
14
+ const AccredibleCertificatesCreateAttributeKey_AttributeKeySchema = z.object({
15
+ id: z.number().int().describe("Unique ID of the created attribute key"),
16
+ kind: z.string().describe("Type of the attribute key"),
17
+ name: z.string().describe("Name of the attribute key"),
18
+ department_id: z.number().int().describe("Department ID the attribute key belongs to")
19
+ }).describe("Attribute key object returned after creation.");
20
+ const accredibleCertificatesCreateAttributeKey = action("ACCREDIBLE_CERTIFICATES_CREATE_ATTRIBUTE_KEY", {
21
+ slug: "accredible_certificates-create-attribute-key",
22
+ name: "Create Attribute Key",
23
+ description: "Tool to create a new custom attribute key. Use when you need to define a new custom attribute for credentials. Requires department ID to associate the attribute with a specific department.",
24
+ input: AccredibleCertificatesCreateAttributeKeyInput,
25
+ output: z.object({ attribute_key: AccredibleCertificatesCreateAttributeKey_AttributeKeySchema.nullable() }).describe("Response schema for create attribute key.")
26
+ });
27
+ //#endregion
28
+ export { accredibleCertificatesCreateAttributeKey };
29
+
30
+ //# sourceMappingURL=create-attribute-key.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-attribute-key.mjs","names":[],"sources":["../../src/actions/create-attribute-key.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const AccredibleCertificatesCreateAttributeKeyInput: z.ZodTypeAny = z.object({\n kind: z.enum([\"text\", \"date\", \"email\", \"image\"]).describe(\"Type of the custom attribute key. Determines how the attribute is displayed and validated.\"),\n name: z.string().describe(\"Name of the custom attribute key. This is the internal identifier for the attribute.\"),\n department_id: z.number().int().describe(\"Department ID that the custom attribute key belongs to. Required to associate the attribute with a specific department.\"),\n}).describe(\"Request schema for creating a new custom attribute key in Accredible.\");\nconst AccredibleCertificatesCreateAttributeKey_AttributeKeySchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique ID of the created attribute key\"),\n kind: z.string().describe(\"Type of the attribute key\"),\n name: z.string().describe(\"Name of the attribute key\"),\n department_id: z.number().int().describe(\"Department ID the attribute key belongs to\"),\n}).describe(\"Attribute key object returned after creation.\");\nexport const AccredibleCertificatesCreateAttributeKeyOutput: z.ZodTypeAny = z.object({\n attribute_key: AccredibleCertificatesCreateAttributeKey_AttributeKeySchema.nullable(),\n}).describe(\"Response schema for create attribute key.\");\n\nexport const accredibleCertificatesCreateAttributeKey = action(\"ACCREDIBLE_CERTIFICATES_CREATE_ATTRIBUTE_KEY\", {\n slug: \"accredible_certificates-create-attribute-key\",\n name: \"Create Attribute Key\",\n description: \"Tool to create a new custom attribute key. Use when you need to define a new custom attribute for credentials. Requires department ID to associate the attribute with a specific department.\",\n input: AccredibleCertificatesCreateAttributeKeyInput,\n output: AccredibleCertificatesCreateAttributeKeyOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gDAA8D,EAAE,OAAO;CAClF,MAAM,EAAE,KAAK;EAAC;EAAQ;EAAQ;EAAS;CAAO,CAAC,CAAC,CAAC,SAAS,4FAA4F;CACtJ,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF;CAChH,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yHAAyH;AACpK,CAAC,CAAC,CAAC,SAAS,uEAAuE;AACnF,MAAM,8DAA4E,EAAE,OAAO;CACzF,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC;CACtE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CACrD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CACrD,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C;AACvF,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAK3D,MAAa,2CAA2C,OAAO,gDAAgD;CAC7G,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT0E,EAAE,OAAO,EACnF,eAAe,4DAA4D,SAAS,EACtF,CAAC,CAAC,CAAC,SAAS,2CAOF;AACV,CAAC"}
@@ -0,0 +1,34 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/create-collection.ts
4
+ const AccredibleCertificatesCreateCollectionInput = zod.z.object({
5
+ name: zod.z.string().describe("Name of the collection"),
6
+ public: zod.z.boolean().describe("Whether the collection is public").optional(),
7
+ description: zod.z.string().describe("Description of the collection").optional()
8
+ }).describe("Request schema for creating a new collection in Accredible.");
9
+ const AccredibleCertificatesCreateCollection_GroupSummarySchema = zod.z.object({
10
+ id: zod.z.number().int().describe("Group ID"),
11
+ name: zod.z.string().describe("Group name"),
12
+ description: zod.z.string().describe("Group description").nullable().optional()
13
+ }).describe("Summary of a group included in a collection.");
14
+ const AccredibleCertificatesCreateCollection_CollectionSchema = zod.z.object({
15
+ id: zod.z.string().describe("Collection UUID"),
16
+ name: zod.z.string().describe("Collection name"),
17
+ groups: zod.z.array(AccredibleCertificatesCreateCollection_GroupSummarySchema).describe("List of groups assigned to collection"),
18
+ public: zod.z.boolean().describe("Public visibility flag"),
19
+ description: zod.z.string().describe("Collection description").nullable().optional(),
20
+ groups_count: zod.z.number().int().describe("Number of groups in collection"),
21
+ organization_id: zod.z.number().int().describe("Organization ID")
22
+ }).describe("Collection object returned after creating a new collection.");
23
+ const AccredibleCertificatesCreateCollectionOutput = zod.z.object({ collection: AccredibleCertificatesCreateCollection_CollectionSchema.nullable() }).describe("Response schema for create collection.");
24
+ const accredibleCertificatesCreateCollection = require_action.action("ACCREDIBLE_CERTIFICATES_CREATE_COLLECTION", {
25
+ slug: "accredible_certificates-create-collection",
26
+ name: "Create Collection",
27
+ description: "Tool to create a new collection. Use when you need a curated set of groups.",
28
+ input: AccredibleCertificatesCreateCollectionInput,
29
+ output: AccredibleCertificatesCreateCollectionOutput
30
+ });
31
+ //#endregion
32
+ exports.accredibleCertificatesCreateCollection = accredibleCertificatesCreateCollection;
33
+
34
+ //# sourceMappingURL=create-collection.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-collection.cjs","names":["z","action"],"sources":["../../src/actions/create-collection.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const AccredibleCertificatesCreateCollectionInput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the collection\"),\n public: z.boolean().describe(\"Whether the collection is public\").optional(),\n description: z.string().describe(\"Description of the collection\").optional(),\n}).describe(\"Request schema for creating a new collection in Accredible.\");\nconst AccredibleCertificatesCreateCollection_GroupSummarySchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Group ID\"),\n name: z.string().describe(\"Group name\"),\n description: z.string().describe(\"Group description\").nullable().optional(),\n}).describe(\"Summary of a group included in a collection.\");\nconst AccredibleCertificatesCreateCollection_CollectionSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Collection UUID\"),\n name: z.string().describe(\"Collection name\"),\n groups: z.array(AccredibleCertificatesCreateCollection_GroupSummarySchema).describe(\"List of groups assigned to collection\"),\n public: z.boolean().describe(\"Public visibility flag\"),\n description: z.string().describe(\"Collection description\").nullable().optional(),\n groups_count: z.number().int().describe(\"Number of groups in collection\"),\n organization_id: z.number().int().describe(\"Organization ID\"),\n}).describe(\"Collection object returned after creating a new collection.\");\nexport const AccredibleCertificatesCreateCollectionOutput: z.ZodTypeAny = z.object({\n collection: AccredibleCertificatesCreateCollection_CollectionSchema.nullable(),\n}).describe(\"Response schema for create collection.\");\n\nexport const accredibleCertificatesCreateCollection = action(\"ACCREDIBLE_CERTIFICATES_CREATE_COLLECTION\", {\n slug: \"accredible_certificates-create-collection\",\n name: \"Create Collection\",\n description: \"Tool to create a new collection. Use when you need a curated set of groups.\",\n input: AccredibleCertificatesCreateCollectionInput,\n output: AccredibleCertificatesCreateCollectionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8CAA4DA,IAAAA,EAAE,OAAO;CAChF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;CAClD,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC1E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;AAC7E,CAAC,CAAC,CAAC,SAAS,6DAA6D;AACzE,MAAM,4DAA0EA,IAAAA,EAAE,OAAO;CACvF,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,UAAU;CACxC,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,YAAY;CACtC,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5E,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAM,0DAAwEA,IAAAA,EAAE,OAAO;CACrF,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB;CACzC,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB;CAC3C,QAAQA,IAAAA,EAAE,MAAM,yDAAyD,CAAC,CAAC,SAAS,uCAAuC;CAC3H,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,wBAAwB;CACrD,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC;CACxE,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iBAAiB;AAC9D,CAAC,CAAC,CAAC,SAAS,6DAA6D;AACzE,MAAa,+CAA6DA,IAAAA,EAAE,OAAO,EACjF,YAAY,wDAAwD,SAAS,EAC/E,CAAC,CAAC,CAAC,SAAS,wCAAwC;AAEpD,MAAa,yCAAyCC,eAAAA,OAAO,6CAA6C;CACxG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/create-collection.d.ts
4
+ declare const AccredibleCertificatesCreateCollectionInput: z.ZodTypeAny;
5
+ declare const AccredibleCertificatesCreateCollectionOutput: z.ZodTypeAny;
6
+ declare const accredibleCertificatesCreateCollection: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { accredibleCertificatesCreateCollection };
9
+ //# sourceMappingURL=create-collection.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-collection.d.cts","names":[],"sources":["../../src/actions/create-collection.ts"],"mappings":";;;cAIa,2CAAA,EAA6C,CAAA,CAAE,UAIc;AAAA,cAe7D,4CAAA,EAA8C,CAAA,CAAE,UAER;AAAA,cAExC,sCAAA,gCAAsC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/create-collection.d.ts
4
+ declare const AccredibleCertificatesCreateCollectionInput: z.ZodTypeAny;
5
+ declare const AccredibleCertificatesCreateCollectionOutput: z.ZodTypeAny;
6
+ declare const accredibleCertificatesCreateCollection: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { accredibleCertificatesCreateCollection };
9
+ //# sourceMappingURL=create-collection.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-collection.d.mts","names":[],"sources":["../../src/actions/create-collection.ts"],"mappings":";;;cAIa,2CAAA,EAA6C,CAAA,CAAE,UAIc;AAAA,cAe7D,4CAAA,EAA8C,CAAA,CAAE,UAER;AAAA,cAExC,sCAAA,gCAAsC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,33 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/create-collection.ts
4
+ const AccredibleCertificatesCreateCollectionInput = z.object({
5
+ name: z.string().describe("Name of the collection"),
6
+ public: z.boolean().describe("Whether the collection is public").optional(),
7
+ description: z.string().describe("Description of the collection").optional()
8
+ }).describe("Request schema for creating a new collection in Accredible.");
9
+ const AccredibleCertificatesCreateCollection_GroupSummarySchema = z.object({
10
+ id: z.number().int().describe("Group ID"),
11
+ name: z.string().describe("Group name"),
12
+ description: z.string().describe("Group description").nullable().optional()
13
+ }).describe("Summary of a group included in a collection.");
14
+ const AccredibleCertificatesCreateCollection_CollectionSchema = z.object({
15
+ id: z.string().describe("Collection UUID"),
16
+ name: z.string().describe("Collection name"),
17
+ groups: z.array(AccredibleCertificatesCreateCollection_GroupSummarySchema).describe("List of groups assigned to collection"),
18
+ public: z.boolean().describe("Public visibility flag"),
19
+ description: z.string().describe("Collection description").nullable().optional(),
20
+ groups_count: z.number().int().describe("Number of groups in collection"),
21
+ organization_id: z.number().int().describe("Organization ID")
22
+ }).describe("Collection object returned after creating a new collection.");
23
+ const accredibleCertificatesCreateCollection = action("ACCREDIBLE_CERTIFICATES_CREATE_COLLECTION", {
24
+ slug: "accredible_certificates-create-collection",
25
+ name: "Create Collection",
26
+ description: "Tool to create a new collection. Use when you need a curated set of groups.",
27
+ input: AccredibleCertificatesCreateCollectionInput,
28
+ output: z.object({ collection: AccredibleCertificatesCreateCollection_CollectionSchema.nullable() }).describe("Response schema for create collection.")
29
+ });
30
+ //#endregion
31
+ export { accredibleCertificatesCreateCollection };
32
+
33
+ //# sourceMappingURL=create-collection.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-collection.mjs","names":[],"sources":["../../src/actions/create-collection.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const AccredibleCertificatesCreateCollectionInput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the collection\"),\n public: z.boolean().describe(\"Whether the collection is public\").optional(),\n description: z.string().describe(\"Description of the collection\").optional(),\n}).describe(\"Request schema for creating a new collection in Accredible.\");\nconst AccredibleCertificatesCreateCollection_GroupSummarySchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Group ID\"),\n name: z.string().describe(\"Group name\"),\n description: z.string().describe(\"Group description\").nullable().optional(),\n}).describe(\"Summary of a group included in a collection.\");\nconst AccredibleCertificatesCreateCollection_CollectionSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Collection UUID\"),\n name: z.string().describe(\"Collection name\"),\n groups: z.array(AccredibleCertificatesCreateCollection_GroupSummarySchema).describe(\"List of groups assigned to collection\"),\n public: z.boolean().describe(\"Public visibility flag\"),\n description: z.string().describe(\"Collection description\").nullable().optional(),\n groups_count: z.number().int().describe(\"Number of groups in collection\"),\n organization_id: z.number().int().describe(\"Organization ID\"),\n}).describe(\"Collection object returned after creating a new collection.\");\nexport const AccredibleCertificatesCreateCollectionOutput: z.ZodTypeAny = z.object({\n collection: AccredibleCertificatesCreateCollection_CollectionSchema.nullable(),\n}).describe(\"Response schema for create collection.\");\n\nexport const accredibleCertificatesCreateCollection = action(\"ACCREDIBLE_CERTIFICATES_CREATE_COLLECTION\", {\n slug: \"accredible_certificates-create-collection\",\n name: \"Create Collection\",\n description: \"Tool to create a new collection. Use when you need a curated set of groups.\",\n input: AccredibleCertificatesCreateCollectionInput,\n output: AccredibleCertificatesCreateCollectionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8CAA4D,EAAE,OAAO;CAChF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;CAClD,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC1E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;AAC7E,CAAC,CAAC,CAAC,SAAS,6DAA6D;AACzE,MAAM,4DAA0E,EAAE,OAAO;CACvF,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,UAAU;CACxC,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,YAAY;CACtC,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5E,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAM,0DAAwE,EAAE,OAAO;CACrF,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB;CACzC,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB;CAC3C,QAAQ,EAAE,MAAM,yDAAyD,CAAC,CAAC,SAAS,uCAAuC;CAC3H,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,wBAAwB;CACrD,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC;CACxE,iBAAiB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iBAAiB;AAC9D,CAAC,CAAC,CAAC,SAAS,6DAA6D;AAKzE,MAAa,yCAAyC,OAAO,6CAA6C;CACxG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATwE,EAAE,OAAO,EACjF,YAAY,wDAAwD,SAAS,EAC/E,CAAC,CAAC,CAAC,SAAS,wCAOF;AACV,CAAC"}
@@ -0,0 +1,131 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/create-credential.ts
4
+ const AccredibleCertificatesCreateCredentialInput = zod.z.object({
5
+ name: zod.z.string().describe("Credential/course name displayed to recipients. Required if Group doesn't have Course Name set").optional(),
6
+ approve: zod.z.boolean().default(true).describe("Whether to publish credential at creation time. True by default but sandbox_mode settings take precedence").optional(),
7
+ private: zod.z.boolean().describe("Whether to make credential private. If true, only visible to signed-in recipient").optional(),
8
+ complete: zod.z.boolean().default(true).describe("Whether the achievement is complete or in progress. True by default").optional(),
9
+ group_id: zod.z.number().int().describe("Group ID to which the credential should belong. Create a group first if needed"),
10
+ issued_on: zod.z.string().describe("Date of issue in YYYY-MM-DD format. Default is creation date").optional(),
11
+ meta_data: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Key-value strings for additional structured information about the credential").optional(),
12
+ expired_on: zod.z.string().describe("Expiration date in YYYY-MM-DD format. Null by default").optional(),
13
+ references: zod.z.array(zod.z.object({
14
+ referee: zod.z.object({
15
+ name: zod.z.string().describe("Name of the person providing the reference"),
16
+ email: zod.z.string().describe("Email address of the reference provider"),
17
+ avatar: zod.z.string().describe("URL of the referee's avatar image").optional()
18
+ }).describe("Details of the person providing the reference"),
19
+ description: zod.z.string().describe("The reference comments or text provided by the referee"),
20
+ relationship: zod.z.enum([
21
+ "taught",
22
+ "managed",
23
+ "mentored",
24
+ "worked",
25
+ "studied",
26
+ "friends",
27
+ "stranger",
28
+ "professor"
29
+ ]).describe("Relationship of the referee to the credential recipient. Must be one of: taught, managed, mentored, worked, studied, friends, stranger, professor")
30
+ }).describe("Reference providing feedback from peers, teachers, or managers.")).describe("References providing feedback from peers, teachers, or managers").optional(),
31
+ description: zod.z.string().describe("Credential/course description displayed to recipients. Required if Group doesn't have Course Description set").optional(),
32
+ recipient_id: zod.z.string().describe("External ID for the recipient to map credentials regardless of email changes").optional(),
33
+ credential_id: zod.z.string().describe("Unique ID of the credential. If provided, used as reference; otherwise auto-assigned").optional(),
34
+ evidence_items: zod.z.array(zod.z.object({
35
+ url: zod.z.string().describe("URL of the item when category is url or video").optional(),
36
+ file: zod.z.string().describe("File URL when category is file").optional(),
37
+ category: zod.z.enum([
38
+ "file",
39
+ "url",
40
+ "video",
41
+ "grade",
42
+ "transcript"
43
+ ]).describe("Type of evidence item, dictates its display format"),
44
+ description: zod.z.string().describe("Title text for the evidence item displayed on the credential"),
45
+ string_object: zod.z.string().describe("String data for grade or transcript categories").optional(),
46
+ custom_insight: zod.z.string().describe("Override auto-generated insight text below the evidence item").optional()
47
+ }).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(),
48
+ recipient_name: zod.z.string().describe("Name of the recipient the credential is issued to"),
49
+ recipient_email: zod.z.string().describe("Email address of the recipient"),
50
+ custom_attributes: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Custom variables to display on the credential. Keys are attribute names, values are display values").optional(),
51
+ recipient_meta_data: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Key-value strings for additional structured information about the recipient").optional(),
52
+ recipient_phone_number: zod.z.string().describe("Recipient's phone number in E.164 format (e.g., +14155552671)").optional(),
53
+ allow_supplemental_evidence: zod.z.boolean().default(true).describe("Whether to allow recipients to add their own supplemental evidence. True by default").optional(),
54
+ allow_supplemental_references: zod.z.boolean().default(true).describe("Whether to allow recipients to add their own supplemental references. True by default").optional()
55
+ }).describe("Request schema for creating a new credential.");
56
+ const AccredibleCertificatesCreateCredential_ImageInfoSchema = zod.z.object({ url: zod.z.string().describe("URL of the image").nullable().optional() }).describe("Image information for badge or certificate.");
57
+ const AccredibleCertificatesCreateCredential_BadgeInfoSchema = zod.z.object({ image: AccredibleCertificatesCreateCredential_ImageInfoSchema.nullable().optional() }).describe("Badge information.");
58
+ const AccredibleCertificatesCreateCredential_IssuerInfoSchema = zod.z.object({
59
+ id: zod.z.number().int().describe("Issuer ID"),
60
+ url: zod.z.string().describe("URL of the issuer").nullable().optional(),
61
+ name: zod.z.string().describe("Name of the issuer"),
62
+ description: zod.z.string().describe("Description of the issuer").nullable().optional()
63
+ }).describe("Information about the credential issuer.");
64
+ const AccredibleCertificatesCreateCredential_RecipientInfoSchema = zod.z.object({
65
+ id: zod.z.union([zod.z.number().int(), zod.z.string()]).nullable().optional(),
66
+ name: zod.z.string().describe("Name of the recipient"),
67
+ email: zod.z.string().describe("Email of the recipient"),
68
+ meta_data: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Additional metadata for the recipient").nullable().optional(),
69
+ phone_number: zod.z.string().describe("Phone number of the recipient").nullable().optional()
70
+ }).describe("Recipient information in the response.");
71
+ const AccredibleCertificatesCreateCredential_RefereeInfoSchema = zod.z.object({
72
+ name: zod.z.string().describe("Name of the reference provider"),
73
+ email: zod.z.string().describe("Email of the reference provider"),
74
+ avatar: zod.z.string().describe("Avatar URL of the referee").nullable().optional()
75
+ }).describe("Referee information in the response.");
76
+ const AccredibleCertificatesCreateCredential_ReferenceInfoSchema = zod.z.object({
77
+ id: zod.z.number().int().describe("Reference ID").nullable().optional(),
78
+ approve: zod.z.boolean().describe("Whether the reference is approved").nullable().optional(),
79
+ referee: AccredibleCertificatesCreateCredential_RefereeInfoSchema.nullable().optional(),
80
+ description: zod.z.string().describe("Reference description").nullable().optional(),
81
+ relationship: zod.z.string().describe("Relationship to the recipient").nullable().optional(),
82
+ supplemental: zod.z.boolean().describe("Whether this is a supplemental reference").nullable().optional()
83
+ }).describe("Reference information in the response.");
84
+ const AccredibleCertificatesCreateCredential_CertificateInfoSchema = zod.z.object({ image: AccredibleCertificatesCreateCredential_ImageInfoSchema.nullable().optional() }).describe("Certificate information.");
85
+ const AccredibleCertificatesCreateCredential_EvidenceItemInfoSchema = zod.z.object({
86
+ id: zod.z.number().int().describe("Identifier of the evidence item"),
87
+ type: zod.z.string().describe("Type of the evidence item"),
88
+ link_url: zod.z.string().describe("URL linking to the evidence item resource").nullable().optional(),
89
+ position: zod.z.number().int().describe("Display order of the evidence item on the credential"),
90
+ description: zod.z.string().describe("Description of the evidence item"),
91
+ supplemental: zod.z.boolean().describe("Indicates if this item is supplemental"),
92
+ string_object: zod.z.union([zod.z.string(), zod.z.record(zod.z.string(), zod.z.unknown())]).nullable().optional(),
93
+ preview_image_url: zod.z.string().describe("URL of the preview image for the item").nullable().optional()
94
+ }).describe("Evidence item information in the response.");
95
+ const AccredibleCertificatesCreateCredential_CredentialInfoSchema = zod.z.object({
96
+ id: zod.z.union([zod.z.number().int(), zod.z.string()]),
97
+ url: zod.z.string().describe("URL to view the credential"),
98
+ name: zod.z.string().describe("Name of the credential"),
99
+ badge: AccredibleCertificatesCreateCredential_BadgeInfoSchema.nullable().optional(),
100
+ grade: zod.z.string().describe("Grade associated with the credential, if any").nullable().optional(),
101
+ issuer: AccredibleCertificatesCreateCredential_IssuerInfoSchema.nullable(),
102
+ approve: zod.z.boolean().describe("Whether the credential is approved on creation"),
103
+ private: zod.z.boolean().describe("Whether the credential is private").nullable().optional(),
104
+ complete: zod.z.boolean().describe("Whether the credential is marked complete"),
105
+ group_id: zod.z.number().int().describe("ID of the group the credential belongs to"),
106
+ issued_on: zod.z.string().describe("Date when the credential was issued (YYYY-MM-DD)").nullable().optional(),
107
+ meta_data: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Additional metadata on the credential").nullable().optional(),
108
+ recipient: AccredibleCertificatesCreateCredential_RecipientInfoSchema.nullable(),
109
+ seo_image: zod.z.string().describe("SEO image URL").nullable().optional(),
110
+ encoded_id: zod.z.string().describe("Encoded identifier").nullable().optional(),
111
+ expired_on: zod.z.string().describe("Expiration date of the credential").nullable().optional(),
112
+ group_name: zod.z.string().describe("Name of the group the credential belongs to"),
113
+ references: zod.z.array(AccredibleCertificatesCreateCredential_ReferenceInfoSchema).describe("References attached to the credential").nullable().optional(),
114
+ certificate: AccredibleCertificatesCreateCredential_CertificateInfoSchema.nullable().optional(),
115
+ course_link: zod.z.string().describe("Link to the course, if any").nullable().optional(),
116
+ description: zod.z.string().describe("Description of the credential").nullable().optional(),
117
+ evidence_items: zod.z.array(AccredibleCertificatesCreateCredential_EvidenceItemInfoSchema).describe("Evidence items attached to the credential").nullable().optional(),
118
+ custom_attributes: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Custom attributes on the credential").nullable().optional()
119
+ }).describe("Created credential information.");
120
+ const AccredibleCertificatesCreateCredentialOutput = zod.z.object({ credential: AccredibleCertificatesCreateCredential_CredentialInfoSchema.nullable() }).describe("Response schema for creating a credential.");
121
+ const accredibleCertificatesCreateCredential = require_action.action("ACCREDIBLE_CERTIFICATES_CREATE_CREDENTIAL", {
122
+ slug: "accredible_certificates-create-credential",
123
+ name: "Create Credential",
124
+ description: "Tool to create a new credential with optional evidence items and references. Use when issuing credentials to recipients; ensure group exists before creation.",
125
+ input: AccredibleCertificatesCreateCredentialInput,
126
+ output: AccredibleCertificatesCreateCredentialOutput
127
+ });
128
+ //#endregion
129
+ exports.accredibleCertificatesCreateCredential = accredibleCertificatesCreateCredential;
130
+
131
+ //# sourceMappingURL=create-credential.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-credential.cjs","names":["z","action"],"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,8CAA4DA,IAAAA,EAAE,OAAO;CAChF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gGAAgG,CAAC,CAAC,SAAS;CACrI,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,2GAA2G,CAAC,CAAC,SAAS;CAClK,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;CAC3H,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CAC7H,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gFAAgF;CACpH,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CACxG,WAAWA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;CAC/I,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAClG,YAAYA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC7B,SAASA,IAAAA,EAAE,OAAO;GAClB,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;GACtE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;GACpE,QAAQA,IAAAA,EAAE,OAAO,C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 declare const AccredibleCertificatesCreateCredentialOutput: z.ZodTypeAny;
6
+ declare const accredibleCertificatesCreateCredential: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { accredibleCertificatesCreateCredential };
9
+ //# sourceMappingURL=create-credential.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-credential.d.cts","names":[],"sources":["../../src/actions/create-credential.ts"],"mappings":";;;cAIa,2CAAA,EAA6C,CAAA,CAAE,UAoCA;AAAA,cAuE/C,4CAAA,EAA8C,CAAA,CAAE,UAEJ;AAAA,cAE5C,sCAAA,gCAAsC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/create-credential.d.ts
4
+ declare const AccredibleCertificatesCreateCredentialInput: z.ZodTypeAny;
5
+ declare const AccredibleCertificatesCreateCredentialOutput: z.ZodTypeAny;
6
+ declare const accredibleCertificatesCreateCredential: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { accredibleCertificatesCreateCredential };
9
+ //# sourceMappingURL=create-credential.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-credential.d.mts","names":[],"sources":["../../src/actions/create-credential.ts"],"mappings":";;;cAIa,2CAAA,EAA6C,CAAA,CAAE,UAoCA;AAAA,cAuE/C,4CAAA,EAA8C,CAAA,CAAE,UAEJ;AAAA,cAE5C,sCAAA,gCAAsC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,130 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/create-credential.ts
4
+ const AccredibleCertificatesCreateCredentialInput = z.object({
5
+ name: z.string().describe("Credential/course name displayed to recipients. Required if Group doesn't have Course Name set").optional(),
6
+ approve: z.boolean().default(true).describe("Whether to publish credential at creation time. True by default but sandbox_mode settings take precedence").optional(),
7
+ private: z.boolean().describe("Whether to make credential private. If true, only visible to signed-in recipient").optional(),
8
+ complete: z.boolean().default(true).describe("Whether the achievement is complete or in progress. True by default").optional(),
9
+ group_id: z.number().int().describe("Group ID to which the credential should belong. Create a group first if needed"),
10
+ issued_on: z.string().describe("Date of issue in YYYY-MM-DD format. Default is creation date").optional(),
11
+ meta_data: z.record(z.string(), z.unknown()).describe("Key-value strings for additional structured information about the credential").optional(),
12
+ expired_on: z.string().describe("Expiration date in YYYY-MM-DD format. Null by default").optional(),
13
+ references: z.array(z.object({
14
+ referee: z.object({
15
+ name: z.string().describe("Name of the person providing the reference"),
16
+ email: z.string().describe("Email address of the reference provider"),
17
+ avatar: z.string().describe("URL of the referee's avatar image").optional()
18
+ }).describe("Details of the person providing the reference"),
19
+ description: z.string().describe("The reference comments or text provided by the referee"),
20
+ relationship: z.enum([
21
+ "taught",
22
+ "managed",
23
+ "mentored",
24
+ "worked",
25
+ "studied",
26
+ "friends",
27
+ "stranger",
28
+ "professor"
29
+ ]).describe("Relationship of the referee to the credential recipient. Must be one of: taught, managed, mentored, worked, studied, friends, stranger, professor")
30
+ }).describe("Reference providing feedback from peers, teachers, or managers.")).describe("References providing feedback from peers, teachers, or managers").optional(),
31
+ description: z.string().describe("Credential/course description displayed to recipients. Required if Group doesn't have Course Description set").optional(),
32
+ recipient_id: z.string().describe("External ID for the recipient to map credentials regardless of email changes").optional(),
33
+ credential_id: z.string().describe("Unique ID of the credential. If provided, used as reference; otherwise auto-assigned").optional(),
34
+ evidence_items: z.array(z.object({
35
+ url: z.string().describe("URL of the item when category is url or video").optional(),
36
+ file: z.string().describe("File URL when category is file").optional(),
37
+ category: z.enum([
38
+ "file",
39
+ "url",
40
+ "video",
41
+ "grade",
42
+ "transcript"
43
+ ]).describe("Type of evidence item, dictates its display format"),
44
+ description: z.string().describe("Title text for the evidence item displayed on the credential"),
45
+ string_object: z.string().describe("String data for grade or transcript categories").optional(),
46
+ custom_insight: z.string().describe("Override auto-generated insight text below the evidence item").optional()
47
+ }).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(),
48
+ recipient_name: z.string().describe("Name of the recipient the credential is issued to"),
49
+ recipient_email: z.string().describe("Email address of the recipient"),
50
+ 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(),
51
+ recipient_meta_data: z.record(z.string(), z.unknown()).describe("Key-value strings for additional structured information about the recipient").optional(),
52
+ recipient_phone_number: z.string().describe("Recipient's phone number in E.164 format (e.g., +14155552671)").optional(),
53
+ allow_supplemental_evidence: z.boolean().default(true).describe("Whether to allow recipients to add their own supplemental evidence. True by default").optional(),
54
+ allow_supplemental_references: z.boolean().default(true).describe("Whether to allow recipients to add their own supplemental references. True by default").optional()
55
+ }).describe("Request schema for creating a new credential.");
56
+ const AccredibleCertificatesCreateCredential_ImageInfoSchema = z.object({ url: z.string().describe("URL of the image").nullable().optional() }).describe("Image information for badge or certificate.");
57
+ const AccredibleCertificatesCreateCredential_BadgeInfoSchema = z.object({ image: AccredibleCertificatesCreateCredential_ImageInfoSchema.nullable().optional() }).describe("Badge information.");
58
+ const AccredibleCertificatesCreateCredential_IssuerInfoSchema = z.object({
59
+ id: z.number().int().describe("Issuer ID"),
60
+ url: z.string().describe("URL of the issuer").nullable().optional(),
61
+ name: z.string().describe("Name of the issuer"),
62
+ description: z.string().describe("Description of the issuer").nullable().optional()
63
+ }).describe("Information about the credential issuer.");
64
+ const AccredibleCertificatesCreateCredential_RecipientInfoSchema = z.object({
65
+ id: z.union([z.number().int(), z.string()]).nullable().optional(),
66
+ name: z.string().describe("Name of the recipient"),
67
+ email: z.string().describe("Email of the recipient"),
68
+ meta_data: z.record(z.string(), z.unknown()).describe("Additional metadata for the recipient").nullable().optional(),
69
+ phone_number: z.string().describe("Phone number of the recipient").nullable().optional()
70
+ }).describe("Recipient information in the response.");
71
+ const AccredibleCertificatesCreateCredential_RefereeInfoSchema = z.object({
72
+ name: z.string().describe("Name of the reference provider"),
73
+ email: z.string().describe("Email of the reference provider"),
74
+ avatar: z.string().describe("Avatar URL of the referee").nullable().optional()
75
+ }).describe("Referee information in the response.");
76
+ const AccredibleCertificatesCreateCredential_ReferenceInfoSchema = z.object({
77
+ id: z.number().int().describe("Reference ID").nullable().optional(),
78
+ approve: z.boolean().describe("Whether the reference is approved").nullable().optional(),
79
+ referee: AccredibleCertificatesCreateCredential_RefereeInfoSchema.nullable().optional(),
80
+ description: z.string().describe("Reference description").nullable().optional(),
81
+ relationship: z.string().describe("Relationship to the recipient").nullable().optional(),
82
+ supplemental: z.boolean().describe("Whether this is a supplemental reference").nullable().optional()
83
+ }).describe("Reference information in the response.");
84
+ const AccredibleCertificatesCreateCredential_CertificateInfoSchema = z.object({ image: AccredibleCertificatesCreateCredential_ImageInfoSchema.nullable().optional() }).describe("Certificate information.");
85
+ const AccredibleCertificatesCreateCredential_EvidenceItemInfoSchema = z.object({
86
+ id: z.number().int().describe("Identifier of the evidence item"),
87
+ type: z.string().describe("Type of the evidence item"),
88
+ link_url: z.string().describe("URL linking to the evidence item resource").nullable().optional(),
89
+ position: z.number().int().describe("Display order of the evidence item on the credential"),
90
+ description: z.string().describe("Description of the evidence item"),
91
+ supplemental: z.boolean().describe("Indicates if this item is supplemental"),
92
+ string_object: z.union([z.string(), z.record(z.string(), z.unknown())]).nullable().optional(),
93
+ preview_image_url: z.string().describe("URL of the preview image for the item").nullable().optional()
94
+ }).describe("Evidence item information in the response.");
95
+ const AccredibleCertificatesCreateCredential_CredentialInfoSchema = z.object({
96
+ id: z.union([z.number().int(), z.string()]),
97
+ url: z.string().describe("URL to view the credential"),
98
+ name: z.string().describe("Name of the credential"),
99
+ badge: AccredibleCertificatesCreateCredential_BadgeInfoSchema.nullable().optional(),
100
+ grade: z.string().describe("Grade associated with the credential, if any").nullable().optional(),
101
+ issuer: AccredibleCertificatesCreateCredential_IssuerInfoSchema.nullable(),
102
+ approve: z.boolean().describe("Whether the credential is approved on creation"),
103
+ private: z.boolean().describe("Whether the credential is private").nullable().optional(),
104
+ complete: z.boolean().describe("Whether the credential is marked complete"),
105
+ group_id: z.number().int().describe("ID of the group the credential belongs to"),
106
+ issued_on: z.string().describe("Date when the credential was issued (YYYY-MM-DD)").nullable().optional(),
107
+ meta_data: z.record(z.string(), z.unknown()).describe("Additional metadata on the credential").nullable().optional(),
108
+ recipient: AccredibleCertificatesCreateCredential_RecipientInfoSchema.nullable(),
109
+ seo_image: z.string().describe("SEO image URL").nullable().optional(),
110
+ encoded_id: z.string().describe("Encoded identifier").nullable().optional(),
111
+ expired_on: z.string().describe("Expiration date of the credential").nullable().optional(),
112
+ group_name: z.string().describe("Name of the group the credential belongs to"),
113
+ references: z.array(AccredibleCertificatesCreateCredential_ReferenceInfoSchema).describe("References attached to the credential").nullable().optional(),
114
+ certificate: AccredibleCertificatesCreateCredential_CertificateInfoSchema.nullable().optional(),
115
+ course_link: z.string().describe("Link to the course, if any").nullable().optional(),
116
+ description: z.string().describe("Description of the credential").nullable().optional(),
117
+ evidence_items: z.array(AccredibleCertificatesCreateCredential_EvidenceItemInfoSchema).describe("Evidence items attached to the credential").nullable().optional(),
118
+ custom_attributes: z.record(z.string(), z.unknown()).describe("Custom attributes on the credential").nullable().optional()
119
+ }).describe("Created credential information.");
120
+ const accredibleCertificatesCreateCredential = action("ACCREDIBLE_CERTIFICATES_CREATE_CREDENTIAL", {
121
+ slug: "accredible_certificates-create-credential",
122
+ name: "Create Credential",
123
+ description: "Tool to create a new credential with optional evidence items and references. Use when issuing credentials to recipients; ensure group exists before creation.",
124
+ input: AccredibleCertificatesCreateCredentialInput,
125
+ output: z.object({ credential: AccredibleCertificatesCreateCredential_CredentialInfoSchema.nullable() }).describe("Response schema for creating a credential.")
126
+ });
127
+ //#endregion
128
+ export { accredibleCertificatesCreateCredential };
129
+
130
+ //# sourceMappingURL=create-credential.mjs.map