@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":"search-collections.cjs","names":["z","action"],"sources":["../../src/actions/search-collections.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const AccredibleCertificatesSearchCollectionsInput: z.ZodTypeAny = z.object({\n meta: z.object({\n per_page: z.number().int().default(50).describe(\"Number of items per page (max 100)\").optional(),\n page_number: z.number().int().default(1).describe(\"Page to retrieve, starting at 1\").optional(),\n}).describe(\"Build pagination into your search.\").optional(),\n sort: z.object({\n field: z.string().describe(\"Field to sort by (e.g., 'name', 'created_at')\"),\n direction: z.enum([\"asc\", \"desc\"]).default(\"asc\").describe(\"Sort direction: 'asc' for ascending or 'desc' for descending\").optional(),\n}).describe(\"Controls the order in which results are returned.\").optional(),\n query: z.object({\n ids: z.array(z.string()).describe(\"List of collection UUIDs to include in the results\").optional(),\n name: z.string().describe(\"Match collections whose name contains this string\").optional(),\n public: z.boolean().describe(\"If true, only return publicly visible collections\").optional(),\n exclusion_list: z.array(z.string()).describe(\"List of collection UUIDs to explicitly exclude from results\").optional(),\n}).describe(\"Filtering criteria for collections\"),\n}).describe(\"The full search payload including filters, sorting and paging.\");\nconst AccredibleCertificatesSearchCollections_ResponseMetaSchema: z.ZodTypeAny = z.object({\n next_page: z.number().int().describe(\"Next page index, if any\").nullable().optional(),\n page_size: z.number().int().describe(\"Number of collections returned per page\"),\n prev_page: z.number().int().describe(\"Previous page index, if any\").nullable().optional(),\n total_count: z.number().int().describe(\"Total number of matching collections\"),\n total_pages: z.number().int().describe(\"Total number of pages available\"),\n current_page: z.number().int().describe(\"Current page index\"),\n}).describe(\"Pagination metadata returned by Accredible.\");\nconst AccredibleCertificatesSearchCollections_CollectionGroupSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique ID of the group in this collection\"),\n}).describe(\"Represents a single group reference inside a collection.\");\nconst AccredibleCertificatesSearchCollections_CollectionItemSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"UUID of the collection\"),\n name: z.string().describe(\"Name of the collection\"),\n groups: z.array(AccredibleCertificatesSearchCollections_CollectionGroupSchema).describe(\"List of group references in this collection\"),\n public: z.boolean().describe(\"Visibility flag; true if public\"),\n description: z.string().describe(\"Optional human-readable description of the collection\").nullable().optional(),\n groups_count: z.number().int().describe(\"Number of groups in the collection\"),\n organization_id: z.number().int().describe(\"ID of the owning organization\"),\n}).describe(\"A single collection from Accredible.\");\nexport const AccredibleCertificatesSearchCollectionsOutput: z.ZodTypeAny = z.object({\n meta: AccredibleCertificatesSearchCollections_ResponseMetaSchema.nullable(),\n collections: z.array(AccredibleCertificatesSearchCollections_CollectionItemSchema).describe(\"List of matching collections\"),\n}).describe(\"The response from Accredible including collections and paging info.\");\n\nexport const accredibleCertificatesSearchCollections = action(\"ACCREDIBLE_CERTIFICATES_SEARCH_COLLECTIONS\", {\n slug: \"accredible_certificates-search-collections\",\n name: \"Search Collections\",\n description: \"Tool to search for collections. Use when you need to filter collections by IDs, name, or public flag and paginate through results. e.g., \\\"Search for public collections named 'abc' on page 2.\\\"\",\n input: AccredibleCertificatesSearchCollectionsInput,\n output: AccredibleCertificatesSearchCollectionsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+CAA6DA,IAAAA,EAAE,OAAO;CACjF,MAAMA,IAAAA,EAAE,OAAO;EACf,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;EAC/F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAChG,CAAC,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAA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
|
|
3
|
+
//#region src/actions/search-collections.d.ts
|
|
4
|
+
declare const AccredibleCertificatesSearchCollectionsInput: z.ZodTypeAny;
|
|
5
|
+
declare const AccredibleCertificatesSearchCollectionsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const accredibleCertificatesSearchCollections: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { accredibleCertificatesSearchCollections };
|
|
9
|
+
//# sourceMappingURL=search-collections.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search-collections.d.cts","names":[],"sources":["../../src/actions/search-collections.ts"],"mappings":";;;cAIa,4CAAA,EAA8C,CAAA,CAAE,UAegB;AAAA,cAqBhE,6CAAA,EAA+C,CAAA,CAAE,UAGoB;AAAA,cAErE,uCAAA,gCAAuC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/search-collections.d.ts
|
|
4
|
+
declare const AccredibleCertificatesSearchCollectionsInput: z.ZodTypeAny;
|
|
5
|
+
declare const AccredibleCertificatesSearchCollectionsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const accredibleCertificatesSearchCollections: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { accredibleCertificatesSearchCollections };
|
|
9
|
+
//# sourceMappingURL=search-collections.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search-collections.d.mts","names":[],"sources":["../../src/actions/search-collections.ts"],"mappings":";;;cAIa,4CAAA,EAA8C,CAAA,CAAE,UAegB;AAAA,cAqBhE,6CAAA,EAA+C,CAAA,CAAE,UAGoB;AAAA,cAErE,uCAAA,gCAAuC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/search-collections.ts
|
|
4
|
+
const AccredibleCertificatesSearchCollectionsInput = z.object({
|
|
5
|
+
meta: z.object({
|
|
6
|
+
per_page: z.number().int().default(50).describe("Number of items per page (max 100)").optional(),
|
|
7
|
+
page_number: z.number().int().default(1).describe("Page to retrieve, starting at 1").optional()
|
|
8
|
+
}).describe("Build pagination into your search.").optional(),
|
|
9
|
+
sort: z.object({
|
|
10
|
+
field: z.string().describe("Field to sort by (e.g., 'name', 'created_at')"),
|
|
11
|
+
direction: z.enum(["asc", "desc"]).default("asc").describe("Sort direction: 'asc' for ascending or 'desc' for descending").optional()
|
|
12
|
+
}).describe("Controls the order in which results are returned.").optional(),
|
|
13
|
+
query: z.object({
|
|
14
|
+
ids: z.array(z.string()).describe("List of collection UUIDs to include in the results").optional(),
|
|
15
|
+
name: z.string().describe("Match collections whose name contains this string").optional(),
|
|
16
|
+
public: z.boolean().describe("If true, only return publicly visible collections").optional(),
|
|
17
|
+
exclusion_list: z.array(z.string()).describe("List of collection UUIDs to explicitly exclude from results").optional()
|
|
18
|
+
}).describe("Filtering criteria for collections")
|
|
19
|
+
}).describe("The full search payload including filters, sorting and paging.");
|
|
20
|
+
const AccredibleCertificatesSearchCollections_ResponseMetaSchema = z.object({
|
|
21
|
+
next_page: z.number().int().describe("Next page index, if any").nullable().optional(),
|
|
22
|
+
page_size: z.number().int().describe("Number of collections returned per page"),
|
|
23
|
+
prev_page: z.number().int().describe("Previous page index, if any").nullable().optional(),
|
|
24
|
+
total_count: z.number().int().describe("Total number of matching collections"),
|
|
25
|
+
total_pages: z.number().int().describe("Total number of pages available"),
|
|
26
|
+
current_page: z.number().int().describe("Current page index")
|
|
27
|
+
}).describe("Pagination metadata returned by Accredible.");
|
|
28
|
+
const AccredibleCertificatesSearchCollections_CollectionGroupSchema = z.object({ id: z.number().int().describe("Unique ID of the group in this collection") }).describe("Represents a single group reference inside a collection.");
|
|
29
|
+
const AccredibleCertificatesSearchCollections_CollectionItemSchema = z.object({
|
|
30
|
+
id: z.string().describe("UUID of the collection"),
|
|
31
|
+
name: z.string().describe("Name of the collection"),
|
|
32
|
+
groups: z.array(AccredibleCertificatesSearchCollections_CollectionGroupSchema).describe("List of group references in this collection"),
|
|
33
|
+
public: z.boolean().describe("Visibility flag; true if public"),
|
|
34
|
+
description: z.string().describe("Optional human-readable description of the collection").nullable().optional(),
|
|
35
|
+
groups_count: z.number().int().describe("Number of groups in the collection"),
|
|
36
|
+
organization_id: z.number().int().describe("ID of the owning organization")
|
|
37
|
+
}).describe("A single collection from Accredible.");
|
|
38
|
+
const accredibleCertificatesSearchCollections = action("ACCREDIBLE_CERTIFICATES_SEARCH_COLLECTIONS", {
|
|
39
|
+
slug: "accredible_certificates-search-collections",
|
|
40
|
+
name: "Search Collections",
|
|
41
|
+
description: "Tool to search for collections. Use when you need to filter collections by IDs, name, or public flag and paginate through results. e.g., \"Search for public collections named 'abc' on page 2.\"",
|
|
42
|
+
input: AccredibleCertificatesSearchCollectionsInput,
|
|
43
|
+
output: z.object({
|
|
44
|
+
meta: AccredibleCertificatesSearchCollections_ResponseMetaSchema.nullable(),
|
|
45
|
+
collections: z.array(AccredibleCertificatesSearchCollections_CollectionItemSchema).describe("List of matching collections")
|
|
46
|
+
}).describe("The response from Accredible including collections and paging info.")
|
|
47
|
+
});
|
|
48
|
+
//#endregion
|
|
49
|
+
export { accredibleCertificatesSearchCollections };
|
|
50
|
+
|
|
51
|
+
//# sourceMappingURL=search-collections.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search-collections.mjs","names":[],"sources":["../../src/actions/search-collections.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const AccredibleCertificatesSearchCollectionsInput: z.ZodTypeAny = z.object({\n meta: z.object({\n per_page: z.number().int().default(50).describe(\"Number of items per page (max 100)\").optional(),\n page_number: z.number().int().default(1).describe(\"Page to retrieve, starting at 1\").optional(),\n}).describe(\"Build pagination into your search.\").optional(),\n sort: z.object({\n field: z.string().describe(\"Field to sort by (e.g., 'name', 'created_at')\"),\n direction: z.enum([\"asc\", \"desc\"]).default(\"asc\").describe(\"Sort direction: 'asc' for ascending or 'desc' for descending\").optional(),\n}).describe(\"Controls the order in which results are returned.\").optional(),\n query: z.object({\n ids: z.array(z.string()).describe(\"List of collection UUIDs to include in the results\").optional(),\n name: z.string().describe(\"Match collections whose name contains this string\").optional(),\n public: z.boolean().describe(\"If true, only return publicly visible collections\").optional(),\n exclusion_list: z.array(z.string()).describe(\"List of collection UUIDs to explicitly exclude from results\").optional(),\n}).describe(\"Filtering criteria for collections\"),\n}).describe(\"The full search payload including filters, sorting and paging.\");\nconst AccredibleCertificatesSearchCollections_ResponseMetaSchema: z.ZodTypeAny = z.object({\n next_page: z.number().int().describe(\"Next page index, if any\").nullable().optional(),\n page_size: z.number().int().describe(\"Number of collections returned per page\"),\n prev_page: z.number().int().describe(\"Previous page index, if any\").nullable().optional(),\n total_count: z.number().int().describe(\"Total number of matching collections\"),\n total_pages: z.number().int().describe(\"Total number of pages available\"),\n current_page: z.number().int().describe(\"Current page index\"),\n}).describe(\"Pagination metadata returned by Accredible.\");\nconst AccredibleCertificatesSearchCollections_CollectionGroupSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique ID of the group in this collection\"),\n}).describe(\"Represents a single group reference inside a collection.\");\nconst AccredibleCertificatesSearchCollections_CollectionItemSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"UUID of the collection\"),\n name: z.string().describe(\"Name of the collection\"),\n groups: z.array(AccredibleCertificatesSearchCollections_CollectionGroupSchema).describe(\"List of group references in this collection\"),\n public: z.boolean().describe(\"Visibility flag; true if public\"),\n description: z.string().describe(\"Optional human-readable description of the collection\").nullable().optional(),\n groups_count: z.number().int().describe(\"Number of groups in the collection\"),\n organization_id: z.number().int().describe(\"ID of the owning organization\"),\n}).describe(\"A single collection from Accredible.\");\nexport const AccredibleCertificatesSearchCollectionsOutput: z.ZodTypeAny = z.object({\n meta: AccredibleCertificatesSearchCollections_ResponseMetaSchema.nullable(),\n collections: z.array(AccredibleCertificatesSearchCollections_CollectionItemSchema).describe(\"List of matching collections\"),\n}).describe(\"The response from Accredible including collections and paging info.\");\n\nexport const accredibleCertificatesSearchCollections = action(\"ACCREDIBLE_CERTIFICATES_SEARCH_COLLECTIONS\", {\n slug: \"accredible_certificates-search-collections\",\n name: \"Search Collections\",\n description: \"Tool to search for collections. Use when you need to filter collections by IDs, name, or public flag and paginate through results. e.g., \\\"Search for public collections named 'abc' on page 2.\\\"\",\n input: AccredibleCertificatesSearchCollectionsInput,\n output: AccredibleCertificatesSearchCollectionsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+CAA6D,EAAE,OAAO;CACjF,MAAM,EAAE,OAAO;EACf,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;EAC/F,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAChG,CAAC,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACzD,MAAM,EAAE,OAAO;EACf,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;EAC1E,WAAW,EAAE,KAAK,CAAC,OAAO,MAAM,CAAC,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CACtI,CAAC,CAAC,CAAC,SAA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CAChD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;CAClD,QAAQ,EAAE,MAAM,6DAA6D,CAAC,CAAC,SAAS,6CAA6C;CACrI,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,iCAAiC;CAC9D,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9G,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC;CAC5E,iBAAiB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B;AAC5E,CAAC,CAAC,CAAC,SAAS,sCAAsC;AAMlD,MAAa,0CAA0C,OAAO,8CAA8C;CAC1G,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVyE,EAAE,OAAO;EAClF,MAAM,2DAA2D,SAAS;EAC1E,aAAa,EAAE,MAAM,4DAA4D,CAAC,CAAC,SAAS,8BAA8B;CAC5H,CAAC,CAAC,CAAC,SAAS,qEAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/search-credentials-v2.ts
|
|
4
|
+
const AccredibleCertificatesSearchCredentialsV2Input = zod.z.object({
|
|
5
|
+
page: zod.z.object({
|
|
6
|
+
from: zod.z.number().int().describe("Number of records to skip (offset-based pagination). Limited to the first 10,000 results. Cannot be used together with 'cursor'.").optional(),
|
|
7
|
+
size: zod.z.number().int().describe("The number of records to be returned. Default is 50.").optional(),
|
|
8
|
+
cursor: zod.z.string().describe("An opaque pagination token returned by a previous response. Use this to retrieve the next page of results. Cannot be used together with 'from'.").optional()
|
|
9
|
+
}).describe("Pagination options for credential search.").optional(),
|
|
10
|
+
sort: zod.z.object({}).describe("Sort options as key/value pairs. Key is the field name, value is 'asc' or 'desc'. Example: {'issued_on': 'desc'}").optional(),
|
|
11
|
+
query: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Query filters for searching credentials. Use operation syntax like 'field[operation]': value for advanced queries (e.g., 'group.id[in]': [1,2]).").optional()
|
|
12
|
+
}).describe("Request schema for searching credentials using v2 API.");
|
|
13
|
+
const AccredibleCertificatesSearchCredentialsV2_MetaInfoSchema = zod.z.object({
|
|
14
|
+
from: zod.z.number().int().describe("Current offset in offset-based pagination").nullable().optional(),
|
|
15
|
+
size: zod.z.number().int().describe("Number of records returned").nullable().optional(),
|
|
16
|
+
count: zod.z.number().int().describe("Total count of matching credentials").nullable().optional(),
|
|
17
|
+
cursor: zod.z.string().describe("Cursor token for fetching the next page").nullable().optional()
|
|
18
|
+
}).describe("Pagination metadata returned in the response.");
|
|
19
|
+
const AccredibleCertificatesSearchCredentialsV2_GradeInfoSchema = zod.z.object({
|
|
20
|
+
name: zod.z.string().describe("Name of the grade").nullable().optional(),
|
|
21
|
+
percent: zod.z.number().describe("Percentage value of the grade").nullable().optional()
|
|
22
|
+
}).describe("Grade information for a credential.");
|
|
23
|
+
const AccredibleCertificatesSearchCredentialsV2_GroupInfoSchema = zod.z.object({
|
|
24
|
+
id: zod.z.number().int().describe("Group ID").nullable().optional(),
|
|
25
|
+
name: zod.z.string().describe("Name of the group").nullable().optional()
|
|
26
|
+
}).describe("Group information for a credential.");
|
|
27
|
+
const AccredibleCertificatesSearchCredentialsV2_CredentialItemSchema = zod.z.object({
|
|
28
|
+
id: zod.z.number().int().describe("Unique identifier for the credential").nullable().optional(),
|
|
29
|
+
name: zod.z.string().describe("Name of the credential").nullable().optional(),
|
|
30
|
+
uuid: zod.z.string().describe("UUID of the credential").nullable().optional(),
|
|
31
|
+
grade: AccredibleCertificatesSearchCredentialsV2_GradeInfoSchema.nullable().optional(),
|
|
32
|
+
group: AccredibleCertificatesSearchCredentialsV2_GroupInfoSchema.nullable().optional(),
|
|
33
|
+
approve: zod.z.boolean().describe("Whether the credential is published").nullable().optional(),
|
|
34
|
+
private: zod.z.boolean().describe("Whether the credential is private").nullable().optional(),
|
|
35
|
+
issued_on: zod.z.string().describe("Date when the credential was issued").nullable().optional(),
|
|
36
|
+
issuer_id: zod.z.number().int().describe("ID of the issuer").nullable().optional(),
|
|
37
|
+
meta_data: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Additional metadata on the credential").nullable().optional(),
|
|
38
|
+
seo_image: zod.z.string().describe("URL of the SEO image for the credential").nullable().optional(),
|
|
39
|
+
created_at: zod.z.string().describe("Creation timestamp of the credential").nullable().optional(),
|
|
40
|
+
encoded_id: zod.z.string().describe("Encoded identifier").nullable().optional(),
|
|
41
|
+
expired_on: zod.z.string().describe("Expiration date of the credential").nullable().optional(),
|
|
42
|
+
license_id: zod.z.string().describe("License ID").nullable().optional(),
|
|
43
|
+
updated_at: zod.z.string().describe("Last update timestamp of the credential").nullable().optional(),
|
|
44
|
+
published_on: zod.z.string().describe("Publication date of the credential").nullable().optional(),
|
|
45
|
+
recipient_id: zod.z.string().describe("Recipient identifier").nullable().optional(),
|
|
46
|
+
recipient_name: zod.z.string().describe("Name of the recipient").nullable().optional(),
|
|
47
|
+
recipient_email: zod.z.string().describe("Email address of the recipient").nullable().optional(),
|
|
48
|
+
recipient_opened: zod.z.boolean().describe("Whether the recipient has opened the credential").nullable().optional(),
|
|
49
|
+
custom_attributes: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Custom attributes on the credential").nullable().optional(),
|
|
50
|
+
recipient_engaged: zod.z.boolean().describe("Whether the recipient has engaged with the credential").nullable().optional(),
|
|
51
|
+
recipient_meta_data: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Metadata about the recipient").nullable().optional()
|
|
52
|
+
}).describe("A single credential returned by the search.");
|
|
53
|
+
const AccredibleCertificatesSearchCredentialsV2Output = zod.z.object({
|
|
54
|
+
meta: AccredibleCertificatesSearchCredentialsV2_MetaInfoSchema.nullable().optional(),
|
|
55
|
+
credentials: zod.z.array(AccredibleCertificatesSearchCredentialsV2_CredentialItemSchema).describe("List of matching credentials").nullable().optional()
|
|
56
|
+
}).describe("Response schema for searching credentials using v2 API.");
|
|
57
|
+
const accredibleCertificatesSearchCredentialsV2 = require_action.action("ACCREDIBLE_CERTIFICATES_SEARCH_CREDENTIALS_V2", {
|
|
58
|
+
slug: "accredible_certificates-search-credentials-v2",
|
|
59
|
+
name: "Search Credentials V2",
|
|
60
|
+
description: "Tool to search for credentials using the v2 API. This is a faster alternative to the v1 Search API and supports operations on query fields for complex queries. Use when you need to filter credentials by group, recipient, dates, or other attributes with advanced operators (eq, in, lt, gt, lte, gte).",
|
|
61
|
+
input: AccredibleCertificatesSearchCredentialsV2Input,
|
|
62
|
+
output: AccredibleCertificatesSearchCredentialsV2Output
|
|
63
|
+
});
|
|
64
|
+
//#endregion
|
|
65
|
+
exports.accredibleCertificatesSearchCredentialsV2 = accredibleCertificatesSearchCredentialsV2;
|
|
66
|
+
|
|
67
|
+
//# sourceMappingURL=search-credentials-v2.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search-credentials-v2.cjs","names":["z","action"],"sources":["../../src/actions/search-credentials-v2.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const AccredibleCertificatesSearchCredentialsV2Input: z.ZodTypeAny = z.object({\n page: z.object({\n from: z.number().int().describe(\"Number of records to skip (offset-based pagination). Limited to the first 10,000 results. Cannot be used together with 'cursor'.\").optional(),\n size: z.number().int().describe(\"The number of records to be returned. Default is 50.\").optional(),\n cursor: z.string().describe(\"An opaque pagination token returned by a previous response. Use this to retrieve the next page of results. Cannot be used together with 'from'.\").optional(),\n}).describe(\"Pagination options for credential search.\").optional(),\n sort: z.object({}).describe(\"Sort options as key/value pairs. Key is the field name, value is 'asc' or 'desc'. Example: {'issued_on': 'desc'}\").optional(),\n query: z.record(z.string(), z.unknown()).describe(\"Query filters for searching credentials. Use operation syntax like 'field[operation]': value for advanced queries (e.g., 'group.id[in]': [1,2]).\").optional(),\n}).describe(\"Request schema for searching credentials using v2 API.\");\nconst AccredibleCertificatesSearchCredentialsV2_MetaInfoSchema: z.ZodTypeAny = z.object({\n from: z.number().int().describe(\"Current offset in offset-based pagination\").nullable().optional(),\n size: z.number().int().describe(\"Number of records returned\").nullable().optional(),\n count: z.number().int().describe(\"Total count of matching credentials\").nullable().optional(),\n cursor: z.string().describe(\"Cursor token for fetching the next page\").nullable().optional(),\n}).describe(\"Pagination metadata returned in the response.\");\nconst AccredibleCertificatesSearchCredentialsV2_GradeInfoSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the grade\").nullable().optional(),\n percent: z.number().describe(\"Percentage value of the grade\").nullable().optional(),\n}).describe(\"Grade information for a credential.\");\nconst AccredibleCertificatesSearchCredentialsV2_GroupInfoSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Group ID\").nullable().optional(),\n name: z.string().describe(\"Name of the group\").nullable().optional(),\n}).describe(\"Group information for a credential.\");\nconst AccredibleCertificatesSearchCredentialsV2_CredentialItemSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier for the credential\").nullable().optional(),\n name: z.string().describe(\"Name of the credential\").nullable().optional(),\n uuid: z.string().describe(\"UUID of the credential\").nullable().optional(),\n grade: AccredibleCertificatesSearchCredentialsV2_GradeInfoSchema.nullable().optional(),\n group: AccredibleCertificatesSearchCredentialsV2_GroupInfoSchema.nullable().optional(),\n approve: z.boolean().describe(\"Whether the credential is published\").nullable().optional(),\n private: z.boolean().describe(\"Whether the credential is private\").nullable().optional(),\n issued_on: z.string().describe(\"Date when the credential was issued\").nullable().optional(),\n issuer_id: z.number().int().describe(\"ID of the issuer\").nullable().optional(),\n meta_data: z.record(z.string(), z.unknown()).describe(\"Additional metadata on the credential\").nullable().optional(),\n seo_image: z.string().describe(\"URL of the SEO image for the credential\").nullable().optional(),\n created_at: z.string().describe(\"Creation timestamp of the credential\").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 license_id: z.string().describe(\"License ID\").nullable().optional(),\n updated_at: z.string().describe(\"Last update timestamp of the credential\").nullable().optional(),\n published_on: z.string().describe(\"Publication date of the credential\").nullable().optional(),\n recipient_id: z.string().describe(\"Recipient identifier\").nullable().optional(),\n recipient_name: z.string().describe(\"Name of the recipient\").nullable().optional(),\n recipient_email: z.string().describe(\"Email address of the recipient\").nullable().optional(),\n recipient_opened: z.boolean().describe(\"Whether the recipient has opened the credential\").nullable().optional(),\n custom_attributes: z.record(z.string(), z.unknown()).describe(\"Custom attributes on the credential\").nullable().optional(),\n recipient_engaged: z.boolean().describe(\"Whether the recipient has engaged with the credential\").nullable().optional(),\n recipient_meta_data: z.record(z.string(), z.unknown()).describe(\"Metadata about the recipient\").nullable().optional(),\n}).describe(\"A single credential returned by the search.\");\nexport const AccredibleCertificatesSearchCredentialsV2Output: z.ZodTypeAny = z.object({\n meta: AccredibleCertificatesSearchCredentialsV2_MetaInfoSchema.nullable().optional(),\n credentials: z.array(AccredibleCertificatesSearchCredentialsV2_CredentialItemSchema).describe(\"List of matching credentials\").nullable().optional(),\n}).describe(\"Response schema for searching credentials using v2 API.\");\n\nexport const accredibleCertificatesSearchCredentialsV2 = action(\"ACCREDIBLE_CERTIFICATES_SEARCH_CREDENTIALS_V2\", {\n slug: \"accredible_certificates-search-credentials-v2\",\n name: \"Search Credentials V2\",\n description: \"Tool to search for credentials using the v2 API. This is a faster alternative to the v1 Search API and supports operations on query fields for complex queries. Use when you need to filter credentials by group, recipient, dates, or other attributes with advanced operators (eq, in, lt, gt, lte, gte).\",\n input: AccredibleCertificatesSearchCredentialsV2Input,\n output: AccredibleCertificatesSearchCredentialsV2Output,\n});\n"],"mappings":";;;AAIA,MAAa,iDAA+DA,IAAAA,EAAE,OAAO;CACnF,MAAMA,IAAAA,EAAE,OAAO;EACf,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,k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GA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzH,mBAAmBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrH,qBAAqBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtH,CAAC,CAAC,CAAC,SAAS,6CAA6C;AACzD,MAAa,kDAAgEA,IAAAA,EAAE,OAAO;CACpF,MAAM,yDAAyD,SAAS,CAAC,CAAC,SAAS;CACnF,aAAaA,IAAAA,EAAE,MAAM,8DAA8D,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpJ,CAAC,CAAC,CAAC,SAAS,yDAAyD;AAErE,MAAa,4CAA4CC,eAAAA,OAAO,iDAAiD;CAC/G,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/search-credentials-v2.d.ts
|
|
4
|
+
declare const AccredibleCertificatesSearchCredentialsV2Input: z.ZodTypeAny;
|
|
5
|
+
declare const AccredibleCertificatesSearchCredentialsV2Output: z.ZodTypeAny;
|
|
6
|
+
declare const accredibleCertificatesSearchCredentialsV2: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { accredibleCertificatesSearchCredentialsV2 };
|
|
9
|
+
//# sourceMappingURL=search-credentials-v2.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search-credentials-v2.d.cts","names":[],"sources":["../../src/actions/search-credentials-v2.ts"],"mappings":";;;cAIa,8CAAA,EAAgD,CAAA,CAAE,UAQM;AAAA,cAyCxD,+CAAA,EAAiD,CAAA,CAAE,UAGM;AAAA,cAEzD,yCAAA,gCAAyC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/search-credentials-v2.d.ts
|
|
4
|
+
declare const AccredibleCertificatesSearchCredentialsV2Input: z.ZodTypeAny;
|
|
5
|
+
declare const AccredibleCertificatesSearchCredentialsV2Output: z.ZodTypeAny;
|
|
6
|
+
declare const accredibleCertificatesSearchCredentialsV2: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { accredibleCertificatesSearchCredentialsV2 };
|
|
9
|
+
//# sourceMappingURL=search-credentials-v2.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search-credentials-v2.d.mts","names":[],"sources":["../../src/actions/search-credentials-v2.ts"],"mappings":";;;cAIa,8CAAA,EAAgD,CAAA,CAAE,UAQM;AAAA,cAyCxD,+CAAA,EAAiD,CAAA,CAAE,UAGM;AAAA,cAEzD,yCAAA,gCAAyC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/search-credentials-v2.ts
|
|
4
|
+
const AccredibleCertificatesSearchCredentialsV2Input = z.object({
|
|
5
|
+
page: z.object({
|
|
6
|
+
from: z.number().int().describe("Number of records to skip (offset-based pagination). Limited to the first 10,000 results. Cannot be used together with 'cursor'.").optional(),
|
|
7
|
+
size: z.number().int().describe("The number of records to be returned. Default is 50.").optional(),
|
|
8
|
+
cursor: z.string().describe("An opaque pagination token returned by a previous response. Use this to retrieve the next page of results. Cannot be used together with 'from'.").optional()
|
|
9
|
+
}).describe("Pagination options for credential search.").optional(),
|
|
10
|
+
sort: z.object({}).describe("Sort options as key/value pairs. Key is the field name, value is 'asc' or 'desc'. Example: {'issued_on': 'desc'}").optional(),
|
|
11
|
+
query: z.record(z.string(), z.unknown()).describe("Query filters for searching credentials. Use operation syntax like 'field[operation]': value for advanced queries (e.g., 'group.id[in]': [1,2]).").optional()
|
|
12
|
+
}).describe("Request schema for searching credentials using v2 API.");
|
|
13
|
+
const AccredibleCertificatesSearchCredentialsV2_MetaInfoSchema = z.object({
|
|
14
|
+
from: z.number().int().describe("Current offset in offset-based pagination").nullable().optional(),
|
|
15
|
+
size: z.number().int().describe("Number of records returned").nullable().optional(),
|
|
16
|
+
count: z.number().int().describe("Total count of matching credentials").nullable().optional(),
|
|
17
|
+
cursor: z.string().describe("Cursor token for fetching the next page").nullable().optional()
|
|
18
|
+
}).describe("Pagination metadata returned in the response.");
|
|
19
|
+
const AccredibleCertificatesSearchCredentialsV2_GradeInfoSchema = z.object({
|
|
20
|
+
name: z.string().describe("Name of the grade").nullable().optional(),
|
|
21
|
+
percent: z.number().describe("Percentage value of the grade").nullable().optional()
|
|
22
|
+
}).describe("Grade information for a credential.");
|
|
23
|
+
const AccredibleCertificatesSearchCredentialsV2_GroupInfoSchema = z.object({
|
|
24
|
+
id: z.number().int().describe("Group ID").nullable().optional(),
|
|
25
|
+
name: z.string().describe("Name of the group").nullable().optional()
|
|
26
|
+
}).describe("Group information for a credential.");
|
|
27
|
+
const AccredibleCertificatesSearchCredentialsV2_CredentialItemSchema = z.object({
|
|
28
|
+
id: z.number().int().describe("Unique identifier for the credential").nullable().optional(),
|
|
29
|
+
name: z.string().describe("Name of the credential").nullable().optional(),
|
|
30
|
+
uuid: z.string().describe("UUID of the credential").nullable().optional(),
|
|
31
|
+
grade: AccredibleCertificatesSearchCredentialsV2_GradeInfoSchema.nullable().optional(),
|
|
32
|
+
group: AccredibleCertificatesSearchCredentialsV2_GroupInfoSchema.nullable().optional(),
|
|
33
|
+
approve: z.boolean().describe("Whether the credential is published").nullable().optional(),
|
|
34
|
+
private: z.boolean().describe("Whether the credential is private").nullable().optional(),
|
|
35
|
+
issued_on: z.string().describe("Date when the credential was issued").nullable().optional(),
|
|
36
|
+
issuer_id: z.number().int().describe("ID of the issuer").nullable().optional(),
|
|
37
|
+
meta_data: z.record(z.string(), z.unknown()).describe("Additional metadata on the credential").nullable().optional(),
|
|
38
|
+
seo_image: z.string().describe("URL of the SEO image for the credential").nullable().optional(),
|
|
39
|
+
created_at: z.string().describe("Creation timestamp of the credential").nullable().optional(),
|
|
40
|
+
encoded_id: z.string().describe("Encoded identifier").nullable().optional(),
|
|
41
|
+
expired_on: z.string().describe("Expiration date of the credential").nullable().optional(),
|
|
42
|
+
license_id: z.string().describe("License ID").nullable().optional(),
|
|
43
|
+
updated_at: z.string().describe("Last update timestamp of the credential").nullable().optional(),
|
|
44
|
+
published_on: z.string().describe("Publication date of the credential").nullable().optional(),
|
|
45
|
+
recipient_id: z.string().describe("Recipient identifier").nullable().optional(),
|
|
46
|
+
recipient_name: z.string().describe("Name of the recipient").nullable().optional(),
|
|
47
|
+
recipient_email: z.string().describe("Email address of the recipient").nullable().optional(),
|
|
48
|
+
recipient_opened: z.boolean().describe("Whether the recipient has opened the credential").nullable().optional(),
|
|
49
|
+
custom_attributes: z.record(z.string(), z.unknown()).describe("Custom attributes on the credential").nullable().optional(),
|
|
50
|
+
recipient_engaged: z.boolean().describe("Whether the recipient has engaged with the credential").nullable().optional(),
|
|
51
|
+
recipient_meta_data: z.record(z.string(), z.unknown()).describe("Metadata about the recipient").nullable().optional()
|
|
52
|
+
}).describe("A single credential returned by the search.");
|
|
53
|
+
const accredibleCertificatesSearchCredentialsV2 = action("ACCREDIBLE_CERTIFICATES_SEARCH_CREDENTIALS_V2", {
|
|
54
|
+
slug: "accredible_certificates-search-credentials-v2",
|
|
55
|
+
name: "Search Credentials V2",
|
|
56
|
+
description: "Tool to search for credentials using the v2 API. This is a faster alternative to the v1 Search API and supports operations on query fields for complex queries. Use when you need to filter credentials by group, recipient, dates, or other attributes with advanced operators (eq, in, lt, gt, lte, gte).",
|
|
57
|
+
input: AccredibleCertificatesSearchCredentialsV2Input,
|
|
58
|
+
output: z.object({
|
|
59
|
+
meta: AccredibleCertificatesSearchCredentialsV2_MetaInfoSchema.nullable().optional(),
|
|
60
|
+
credentials: z.array(AccredibleCertificatesSearchCredentialsV2_CredentialItemSchema).describe("List of matching credentials").nullable().optional()
|
|
61
|
+
}).describe("Response schema for searching credentials using v2 API.")
|
|
62
|
+
});
|
|
63
|
+
//#endregion
|
|
64
|
+
export { accredibleCertificatesSearchCredentialsV2 };
|
|
65
|
+
|
|
66
|
+
//# sourceMappingURL=search-credentials-v2.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search-credentials-v2.mjs","names":[],"sources":["../../src/actions/search-credentials-v2.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const AccredibleCertificatesSearchCredentialsV2Input: z.ZodTypeAny = z.object({\n page: z.object({\n from: z.number().int().describe(\"Number of records to skip (offset-based pagination). Limited to the first 10,000 results. Cannot be used together with 'cursor'.\").optional(),\n size: z.number().int().describe(\"The number of records to be returned. Default is 50.\").optional(),\n cursor: z.string().describe(\"An opaque pagination token returned by a previous response. Use this to retrieve the next page of results. Cannot be used together with 'from'.\").optional(),\n}).describe(\"Pagination options for credential search.\").optional(),\n sort: z.object({}).describe(\"Sort options as key/value pairs. Key is the field name, value is 'asc' or 'desc'. Example: {'issued_on': 'desc'}\").optional(),\n query: z.record(z.string(), z.unknown()).describe(\"Query filters for searching credentials. Use operation syntax like 'field[operation]': value for advanced queries (e.g., 'group.id[in]': [1,2]).\").optional(),\n}).describe(\"Request schema for searching credentials using v2 API.\");\nconst AccredibleCertificatesSearchCredentialsV2_MetaInfoSchema: z.ZodTypeAny = z.object({\n from: z.number().int().describe(\"Current offset in offset-based pagination\").nullable().optional(),\n size: z.number().int().describe(\"Number of records returned\").nullable().optional(),\n count: z.number().int().describe(\"Total count of matching credentials\").nullable().optional(),\n cursor: z.string().describe(\"Cursor token for fetching the next page\").nullable().optional(),\n}).describe(\"Pagination metadata returned in the response.\");\nconst AccredibleCertificatesSearchCredentialsV2_GradeInfoSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the grade\").nullable().optional(),\n percent: z.number().describe(\"Percentage value of the grade\").nullable().optional(),\n}).describe(\"Grade information for a credential.\");\nconst AccredibleCertificatesSearchCredentialsV2_GroupInfoSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Group ID\").nullable().optional(),\n name: z.string().describe(\"Name of the group\").nullable().optional(),\n}).describe(\"Group information for a credential.\");\nconst AccredibleCertificatesSearchCredentialsV2_CredentialItemSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier for the credential\").nullable().optional(),\n name: z.string().describe(\"Name of the credential\").nullable().optional(),\n uuid: z.string().describe(\"UUID of the credential\").nullable().optional(),\n grade: AccredibleCertificatesSearchCredentialsV2_GradeInfoSchema.nullable().optional(),\n group: AccredibleCertificatesSearchCredentialsV2_GroupInfoSchema.nullable().optional(),\n approve: z.boolean().describe(\"Whether the credential is published\").nullable().optional(),\n private: z.boolean().describe(\"Whether the credential is private\").nullable().optional(),\n issued_on: z.string().describe(\"Date when the credential was issued\").nullable().optional(),\n issuer_id: z.number().int().describe(\"ID of the issuer\").nullable().optional(),\n meta_data: z.record(z.string(), z.unknown()).describe(\"Additional metadata on the credential\").nullable().optional(),\n seo_image: z.string().describe(\"URL of the SEO image for the credential\").nullable().optional(),\n created_at: z.string().describe(\"Creation timestamp of the credential\").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 license_id: z.string().describe(\"License ID\").nullable().optional(),\n updated_at: z.string().describe(\"Last update timestamp of the credential\").nullable().optional(),\n published_on: z.string().describe(\"Publication date of the credential\").nullable().optional(),\n recipient_id: z.string().describe(\"Recipient identifier\").nullable().optional(),\n recipient_name: z.string().describe(\"Name of the recipient\").nullable().optional(),\n recipient_email: z.string().describe(\"Email address of the recipient\").nullable().optional(),\n recipient_opened: z.boolean().describe(\"Whether the recipient has opened the credential\").nullable().optional(),\n custom_attributes: z.record(z.string(), z.unknown()).describe(\"Custom attributes on the credential\").nullable().optional(),\n recipient_engaged: z.boolean().describe(\"Whether the recipient has engaged with the credential\").nullable().optional(),\n recipient_meta_data: z.record(z.string(), z.unknown()).describe(\"Metadata about the recipient\").nullable().optional(),\n}).describe(\"A single credential returned by the search.\");\nexport const AccredibleCertificatesSearchCredentialsV2Output: z.ZodTypeAny = z.object({\n meta: AccredibleCertificatesSearchCredentialsV2_MetaInfoSchema.nullable().optional(),\n credentials: z.array(AccredibleCertificatesSearchCredentialsV2_CredentialItemSchema).describe(\"List of matching credentials\").nullable().optional(),\n}).describe(\"Response schema for searching credentials using v2 API.\");\n\nexport const accredibleCertificatesSearchCredentialsV2 = action(\"ACCREDIBLE_CERTIFICATES_SEARCH_CREDENTIALS_V2\", {\n slug: \"accredible_certificates-search-credentials-v2\",\n name: \"Search Credentials V2\",\n description: \"Tool to search for credentials using the v2 API. This is a faster alternative to the v1 Search API and supports operations on query fields for complex queries. Use when you need to filter credentials by group, recipient, dates, or other attributes with advanced operators (eq, in, lt, gt, lte, gte).\",\n input: AccredibleCertificatesSearchCredentialsV2Input,\n output: AccredibleCertificatesSearchCredentialsV2Output,\n});\n"],"mappings":";;;AAIA,MAAa,iDAA+D,EAAE,OAAO;CACnF,MAAM,EAAE,OAAO;EACf,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CA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C,SAAS,6CAA6C;AAMzD,MAAa,4CAA4C,OAAO,iDAAiD;CAC/G,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAV2E,EAAE,OAAO;EACpF,MAAM,yDAAyD,SAAS,CAAC,CAAC,SAAS;EACnF,aAAa,EAAE,MAAM,8DAA8D,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpJ,CAAC,CAAC,CAAC,SAAS,yDAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/search-departments.ts
|
|
4
|
+
const AccredibleCertificatesSearchDepartmentsInput = zod.z.object({
|
|
5
|
+
name: zod.z.string().describe("Filter departments by name (partial match supported)").optional(),
|
|
6
|
+
page: zod.z.number().int().describe("Page number to retrieve").optional(),
|
|
7
|
+
page_size: zod.z.number().int().describe("Number of departments per page (default: 50)").optional()
|
|
8
|
+
}).describe("Request schema for searching departments. Use optional filters to narrow results and pagination parameters to control page size.");
|
|
9
|
+
const AccredibleCertificatesSearchDepartments_SearchDepartmentsMetaSchema = zod.z.object({
|
|
10
|
+
next_page: zod.z.number().int().describe("Next page number, if available").nullable().optional(),
|
|
11
|
+
page_size: zod.z.number().int().describe("Number of results per page").nullable().optional(),
|
|
12
|
+
prev_page: zod.z.number().int().describe("Previous page number, if available").nullable().optional(),
|
|
13
|
+
total_count: zod.z.number().int().describe("Total number of departments matching the search").nullable().optional(),
|
|
14
|
+
total_pages: zod.z.number().int().describe("Total number of pages").nullable().optional(),
|
|
15
|
+
current_page: zod.z.number().int().describe("Current page number").nullable().optional()
|
|
16
|
+
}).describe("Pagination metadata for search results.");
|
|
17
|
+
const AccredibleCertificatesSearchDepartments_DepartmentMetaDataSchema = zod.z.object({
|
|
18
|
+
faculty: zod.z.string().describe("Faculty name or identifier").nullable().optional(),
|
|
19
|
+
internal_id: zod.z.string().describe("Internal system identifier").nullable().optional()
|
|
20
|
+
}).describe("Custom metadata associated with a department.");
|
|
21
|
+
const AccredibleCertificatesSearchDepartments_DepartmentSchema = zod.z.object({
|
|
22
|
+
id: zod.z.number().int().describe("Unique identifier for the department"),
|
|
23
|
+
url: zod.z.string().describe("Department website URL").nullable().optional(),
|
|
24
|
+
logo: zod.z.string().describe("URL to the department logo").nullable().optional(),
|
|
25
|
+
name: zod.z.string().describe("Name of the department"),
|
|
26
|
+
meta_data: AccredibleCertificatesSearchDepartments_DepartmentMetaDataSchema.nullable().optional(),
|
|
27
|
+
description: zod.z.string().describe("Description of the department").nullable().optional(),
|
|
28
|
+
page_banner: zod.z.string().describe("URL to the department page banner image").nullable().optional(),
|
|
29
|
+
whitelabel_logo: zod.z.string().describe("URL to the whitelabel logo").nullable().optional(),
|
|
30
|
+
linkedin_company_id: zod.z.string().describe("LinkedIn company identifier").nullable().optional(),
|
|
31
|
+
generate_private_credential: zod.z.boolean().describe("Whether to generate private credentials for this department").nullable().optional()
|
|
32
|
+
}).describe("Represents a single department in Accredible.");
|
|
33
|
+
const AccredibleCertificatesSearchDepartmentsOutput = zod.z.object({
|
|
34
|
+
meta: AccredibleCertificatesSearchDepartments_SearchDepartmentsMetaSchema.nullable().optional(),
|
|
35
|
+
departments: zod.z.array(AccredibleCertificatesSearchDepartments_DepartmentSchema).describe("List of departments matching the search criteria")
|
|
36
|
+
}).describe("Response schema containing the list of matching departments.");
|
|
37
|
+
const accredibleCertificatesSearchDepartments = require_action.action("ACCREDIBLE_CERTIFICATES_SEARCH_DEPARTMENTS", {
|
|
38
|
+
slug: "accredible_certificates-search-departments",
|
|
39
|
+
name: "Search Departments",
|
|
40
|
+
description: "Tool to search for departments by various criteria. Use when you need to find departments by name or retrieve a paginated list of departments.",
|
|
41
|
+
input: AccredibleCertificatesSearchDepartmentsInput,
|
|
42
|
+
output: AccredibleCertificatesSearchDepartmentsOutput
|
|
43
|
+
});
|
|
44
|
+
//#endregion
|
|
45
|
+
exports.accredibleCertificatesSearchDepartments = accredibleCertificatesSearchDepartments;
|
|
46
|
+
|
|
47
|
+
//# sourceMappingURL=search-departments.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search-departments.cjs","names":["z","action"],"sources":["../../src/actions/search-departments.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const AccredibleCertificatesSearchDepartmentsInput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Filter departments by name (partial match supported)\").optional(),\n page: z.number().int().describe(\"Page number to retrieve\").optional(),\n page_size: z.number().int().describe(\"Number of departments per page (default: 50)\").optional(),\n}).describe(\"Request schema for searching departments. Use optional filters to narrow results and pagination parameters to control page size.\");\nconst AccredibleCertificatesSearchDepartments_SearchDepartmentsMetaSchema: z.ZodTypeAny = z.object({\n next_page: z.number().int().describe(\"Next page number, if available\").nullable().optional(),\n page_size: z.number().int().describe(\"Number of results per page\").nullable().optional(),\n prev_page: z.number().int().describe(\"Previous page number, if available\").nullable().optional(),\n total_count: z.number().int().describe(\"Total number of departments matching the search\").nullable().optional(),\n total_pages: z.number().int().describe(\"Total number of pages\").nullable().optional(),\n current_page: z.number().int().describe(\"Current page number\").nullable().optional(),\n}).describe(\"Pagination metadata for search results.\");\nconst AccredibleCertificatesSearchDepartments_DepartmentMetaDataSchema: z.ZodTypeAny = z.object({\n faculty: z.string().describe(\"Faculty name or identifier\").nullable().optional(),\n internal_id: z.string().describe(\"Internal system identifier\").nullable().optional(),\n}).describe(\"Custom metadata associated with a department.\");\nconst AccredibleCertificatesSearchDepartments_DepartmentSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier for the department\"),\n url: z.string().describe(\"Department website URL\").nullable().optional(),\n logo: z.string().describe(\"URL to the department logo\").nullable().optional(),\n name: z.string().describe(\"Name of the department\"),\n meta_data: AccredibleCertificatesSearchDepartments_DepartmentMetaDataSchema.nullable().optional(),\n description: z.string().describe(\"Description of the department\").nullable().optional(),\n page_banner: z.string().describe(\"URL to the department page banner image\").nullable().optional(),\n whitelabel_logo: z.string().describe(\"URL to the whitelabel logo\").nullable().optional(),\n linkedin_company_id: z.string().describe(\"LinkedIn company identifier\").nullable().optional(),\n generate_private_credential: z.boolean().describe(\"Whether to generate private credentials for this department\").nullable().optional(),\n}).describe(\"Represents a single department in Accredible.\");\nexport const AccredibleCertificatesSearchDepartmentsOutput: z.ZodTypeAny = z.object({\n meta: AccredibleCertificatesSearchDepartments_SearchDepartmentsMetaSchema.nullable().optional(),\n departments: z.array(AccredibleCertificatesSearchDepartments_DepartmentSchema).describe(\"List of departments matching the search criteria\"),\n}).describe(\"Response schema containing the list of matching departments.\");\n\nexport const accredibleCertificatesSearchDepartments = action(\"ACCREDIBLE_CERTIFICATES_SEARCH_DEPARTMENTS\", {\n slug: \"accredible_certificates-search-departments\",\n name: \"Search Departments\",\n description: \"Tool to search for departments by various criteria. Use when you need to find departments by name or retrieve a paginated list of departments.\",\n input: AccredibleCertificatesSearchDepartmentsInput,\n output: AccredibleCertificatesSearchDepartmentsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+CAA6DA,IAAAA,EAAE,OAAO;CACjF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC3F,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CACpE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;AAChG,CAAC,CAAC,CAAC,SAAS,kIAAkI;AAC9I,MAAM,sEAAoFA,IAAAA,EAAE,OAAO;CACjG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,WAAWA,IAAAA,EAAE,OAAO,CAA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AAS,CAAC,CAAC,SAAS;CAChG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,6BAA6BA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvI,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAC3D,MAAa,gDAA8DA,IAAAA,EAAE,OAAO;CAClF,MAAM,oEAAoE,SAAS,CAAC,CAAC,SAAS;CAC9F,aAAaA,IAAAA,EAAE,MAAM,wDAAwD,CAAC,CAAC,SAAS,kDAAkD;AAC5I,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAE1E,MAAa,0CAA0CC,eAAAA,OAAO,8CAA8C;CAC1G,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/search-departments.d.ts
|
|
4
|
+
declare const AccredibleCertificatesSearchDepartmentsInput: z.ZodTypeAny;
|
|
5
|
+
declare const AccredibleCertificatesSearchDepartmentsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const accredibleCertificatesSearchDepartments: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { accredibleCertificatesSearchDepartments };
|
|
9
|
+
//# sourceMappingURL=search-departments.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search-departments.d.cts","names":[],"sources":["../../src/actions/search-departments.ts"],"mappings":";;;cAIa,4CAAA,EAA8C,CAAA,CAAE,UAIkF;AAAA,cAyBlI,6CAAA,EAA+C,CAAA,CAAE,UAGa;AAAA,cAE9D,uCAAA,gCAAuC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/search-departments.d.ts
|
|
4
|
+
declare const AccredibleCertificatesSearchDepartmentsInput: z.ZodTypeAny;
|
|
5
|
+
declare const AccredibleCertificatesSearchDepartmentsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const accredibleCertificatesSearchDepartments: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { accredibleCertificatesSearchDepartments };
|
|
9
|
+
//# sourceMappingURL=search-departments.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search-departments.d.mts","names":[],"sources":["../../src/actions/search-departments.ts"],"mappings":";;;cAIa,4CAAA,EAA8C,CAAA,CAAE,UAIkF;AAAA,cAyBlI,6CAAA,EAA+C,CAAA,CAAE,UAGa;AAAA,cAE9D,uCAAA,gCAAuC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/search-departments.ts
|
|
4
|
+
const AccredibleCertificatesSearchDepartmentsInput = z.object({
|
|
5
|
+
name: z.string().describe("Filter departments by name (partial match supported)").optional(),
|
|
6
|
+
page: z.number().int().describe("Page number to retrieve").optional(),
|
|
7
|
+
page_size: z.number().int().describe("Number of departments per page (default: 50)").optional()
|
|
8
|
+
}).describe("Request schema for searching departments. Use optional filters to narrow results and pagination parameters to control page size.");
|
|
9
|
+
const AccredibleCertificatesSearchDepartments_SearchDepartmentsMetaSchema = z.object({
|
|
10
|
+
next_page: z.number().int().describe("Next page number, if available").nullable().optional(),
|
|
11
|
+
page_size: z.number().int().describe("Number of results per page").nullable().optional(),
|
|
12
|
+
prev_page: z.number().int().describe("Previous page number, if available").nullable().optional(),
|
|
13
|
+
total_count: z.number().int().describe("Total number of departments matching the search").nullable().optional(),
|
|
14
|
+
total_pages: z.number().int().describe("Total number of pages").nullable().optional(),
|
|
15
|
+
current_page: z.number().int().describe("Current page number").nullable().optional()
|
|
16
|
+
}).describe("Pagination metadata for search results.");
|
|
17
|
+
const AccredibleCertificatesSearchDepartments_DepartmentMetaDataSchema = z.object({
|
|
18
|
+
faculty: z.string().describe("Faculty name or identifier").nullable().optional(),
|
|
19
|
+
internal_id: z.string().describe("Internal system identifier").nullable().optional()
|
|
20
|
+
}).describe("Custom metadata associated with a department.");
|
|
21
|
+
const AccredibleCertificatesSearchDepartments_DepartmentSchema = z.object({
|
|
22
|
+
id: z.number().int().describe("Unique identifier for the department"),
|
|
23
|
+
url: z.string().describe("Department website URL").nullable().optional(),
|
|
24
|
+
logo: z.string().describe("URL to the department logo").nullable().optional(),
|
|
25
|
+
name: z.string().describe("Name of the department"),
|
|
26
|
+
meta_data: AccredibleCertificatesSearchDepartments_DepartmentMetaDataSchema.nullable().optional(),
|
|
27
|
+
description: z.string().describe("Description of the department").nullable().optional(),
|
|
28
|
+
page_banner: z.string().describe("URL to the department page banner image").nullable().optional(),
|
|
29
|
+
whitelabel_logo: z.string().describe("URL to the whitelabel logo").nullable().optional(),
|
|
30
|
+
linkedin_company_id: z.string().describe("LinkedIn company identifier").nullable().optional(),
|
|
31
|
+
generate_private_credential: z.boolean().describe("Whether to generate private credentials for this department").nullable().optional()
|
|
32
|
+
}).describe("Represents a single department in Accredible.");
|
|
33
|
+
const accredibleCertificatesSearchDepartments = action("ACCREDIBLE_CERTIFICATES_SEARCH_DEPARTMENTS", {
|
|
34
|
+
slug: "accredible_certificates-search-departments",
|
|
35
|
+
name: "Search Departments",
|
|
36
|
+
description: "Tool to search for departments by various criteria. Use when you need to find departments by name or retrieve a paginated list of departments.",
|
|
37
|
+
input: AccredibleCertificatesSearchDepartmentsInput,
|
|
38
|
+
output: z.object({
|
|
39
|
+
meta: AccredibleCertificatesSearchDepartments_SearchDepartmentsMetaSchema.nullable().optional(),
|
|
40
|
+
departments: z.array(AccredibleCertificatesSearchDepartments_DepartmentSchema).describe("List of departments matching the search criteria")
|
|
41
|
+
}).describe("Response schema containing the list of matching departments.")
|
|
42
|
+
});
|
|
43
|
+
//#endregion
|
|
44
|
+
export { accredibleCertificatesSearchDepartments };
|
|
45
|
+
|
|
46
|
+
//# sourceMappingURL=search-departments.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search-departments.mjs","names":[],"sources":["../../src/actions/search-departments.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const AccredibleCertificatesSearchDepartmentsInput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Filter departments by name (partial match supported)\").optional(),\n page: z.number().int().describe(\"Page number to retrieve\").optional(),\n page_size: z.number().int().describe(\"Number of departments per page (default: 50)\").optional(),\n}).describe(\"Request schema for searching departments. Use optional filters to narrow results and pagination parameters to control page size.\");\nconst AccredibleCertificatesSearchDepartments_SearchDepartmentsMetaSchema: z.ZodTypeAny = z.object({\n next_page: z.number().int().describe(\"Next page number, if available\").nullable().optional(),\n page_size: z.number().int().describe(\"Number of results per page\").nullable().optional(),\n prev_page: z.number().int().describe(\"Previous page number, if available\").nullable().optional(),\n total_count: z.number().int().describe(\"Total number of departments matching the search\").nullable().optional(),\n total_pages: z.number().int().describe(\"Total number of pages\").nullable().optional(),\n current_page: z.number().int().describe(\"Current page number\").nullable().optional(),\n}).describe(\"Pagination metadata for search results.\");\nconst AccredibleCertificatesSearchDepartments_DepartmentMetaDataSchema: z.ZodTypeAny = z.object({\n faculty: z.string().describe(\"Faculty name or identifier\").nullable().optional(),\n internal_id: z.string().describe(\"Internal system identifier\").nullable().optional(),\n}).describe(\"Custom metadata associated with a department.\");\nconst AccredibleCertificatesSearchDepartments_DepartmentSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier for the department\"),\n url: z.string().describe(\"Department website URL\").nullable().optional(),\n logo: z.string().describe(\"URL to the department logo\").nullable().optional(),\n name: z.string().describe(\"Name of the department\"),\n meta_data: AccredibleCertificatesSearchDepartments_DepartmentMetaDataSchema.nullable().optional(),\n description: z.string().describe(\"Description of the department\").nullable().optional(),\n page_banner: z.string().describe(\"URL to the department page banner image\").nullable().optional(),\n whitelabel_logo: z.string().describe(\"URL to the whitelabel logo\").nullable().optional(),\n linkedin_company_id: z.string().describe(\"LinkedIn company identifier\").nullable().optional(),\n generate_private_credential: z.boolean().describe(\"Whether to generate private credentials for this department\").nullable().optional(),\n}).describe(\"Represents a single department in Accredible.\");\nexport const AccredibleCertificatesSearchDepartmentsOutput: z.ZodTypeAny = z.object({\n meta: AccredibleCertificatesSearchDepartments_SearchDepartmentsMetaSchema.nullable().optional(),\n departments: z.array(AccredibleCertificatesSearchDepartments_DepartmentSchema).describe(\"List of departments matching the search criteria\"),\n}).describe(\"Response schema containing the list of matching departments.\");\n\nexport const accredibleCertificatesSearchDepartments = action(\"ACCREDIBLE_CERTIFICATES_SEARCH_DEPARTMENTS\", {\n slug: \"accredible_certificates-search-departments\",\n name: \"Search Departments\",\n description: \"Tool to search for departments by various criteria. Use when you need to find departments by name or retrieve a paginated list of departments.\",\n input: AccredibleCertificatesSearchDepartmentsInput,\n output: AccredibleCertific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action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/search-designs.ts
|
|
4
|
+
const AccredibleCertificatesSearchDesignsInput = zod.z.object({
|
|
5
|
+
kind: zod.z.string().describe("Filter designs by type (e.g., 'certificate', 'badge')").optional(),
|
|
6
|
+
page: zod.z.number().int().default(1).describe("Page number to retrieve, starting from 1").optional(),
|
|
7
|
+
meta_data: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Filter designs by metadata fields. Provide key-value pairs to match against design metadata").optional(),
|
|
8
|
+
page_size: zod.z.number().int().default(50).describe("Number of results per page (maximum 100)").optional()
|
|
9
|
+
}).describe("Request parameters for searching designs.");
|
|
10
|
+
const AccredibleCertificatesSearchDesigns_SearchDesignsMetaSchema = zod.z.object({
|
|
11
|
+
next_page: zod.z.number().int().describe("Next page number, if available").nullable().optional(),
|
|
12
|
+
page_size: zod.z.number().int().describe("Number of results per page").nullable().optional(),
|
|
13
|
+
prev_page: zod.z.number().int().describe("Previous page number, if available").nullable().optional(),
|
|
14
|
+
total_count: zod.z.number().int().describe("Total number of designs matching the search").nullable().optional(),
|
|
15
|
+
total_pages: zod.z.number().int().describe("Total number of pages").nullable().optional(),
|
|
16
|
+
current_page: zod.z.number().int().describe("Current page number").nullable().optional()
|
|
17
|
+
}).describe("Pagination metadata for search results.");
|
|
18
|
+
const AccredibleCertificatesSearchDesigns_DesignSchema = zod.z.object({
|
|
19
|
+
id: zod.z.number().int().describe("Unique identifier for the design"),
|
|
20
|
+
kind: zod.z.string().describe("Type of design (e.g., certificate, badge)").nullable().optional(),
|
|
21
|
+
name: zod.z.string().describe("Name of the design").nullable().optional(),
|
|
22
|
+
group_id: zod.z.number().int().describe("ID of the group this design belongs to").nullable().optional(),
|
|
23
|
+
meta_data: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Additional metadata associated with the design").nullable().optional(),
|
|
24
|
+
created_at: zod.z.string().describe("Timestamp when the design was created (ISO 8601)").nullable().optional(),
|
|
25
|
+
updated_at: zod.z.string().describe("Timestamp when the design was last updated (ISO 8601)").nullable().optional()
|
|
26
|
+
}).describe("Represents a single design/template object from Accredible.");
|
|
27
|
+
const AccredibleCertificatesSearchDesignsOutput = zod.z.object({
|
|
28
|
+
meta: AccredibleCertificatesSearchDesigns_SearchDesignsMetaSchema.nullable().optional(),
|
|
29
|
+
designs: zod.z.array(AccredibleCertificatesSearchDesigns_DesignSchema).describe("List of designs matching the search criteria")
|
|
30
|
+
}).describe("Response containing designs matching the search criteria.");
|
|
31
|
+
const accredibleCertificatesSearchDesigns = require_action.action("ACCREDIBLE_CERTIFICATES_SEARCH_DESIGNS", {
|
|
32
|
+
slug: "accredible_certificates-search-designs",
|
|
33
|
+
name: "Search Designs",
|
|
34
|
+
description: "Tool to search for designs (certificate/badge templates). Use when you need to filter designs by type, metadata, or paginate through design results.",
|
|
35
|
+
input: AccredibleCertificatesSearchDesignsInput,
|
|
36
|
+
output: AccredibleCertificatesSearchDesignsOutput
|
|
37
|
+
});
|
|
38
|
+
//#endregion
|
|
39
|
+
exports.accredibleCertificatesSearchDesigns = accredibleCertificatesSearchDesigns;
|
|
40
|
+
|
|
41
|
+
//# sourceMappingURL=search-designs.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search-designs.cjs","names":["z","action"],"sources":["../../src/actions/search-designs.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const AccredibleCertificatesSearchDesignsInput: z.ZodTypeAny = z.object({\n kind: z.string().describe(\"Filter designs by type (e.g., 'certificate', 'badge')\").optional(),\n page: z.number().int().default(1).describe(\"Page number to retrieve, starting from 1\").optional(),\n meta_data: z.record(z.string(), z.unknown()).describe(\"Filter designs by metadata fields. Provide key-value pairs to match against design metadata\").optional(),\n page_size: z.number().int().default(50).describe(\"Number of results per page (maximum 100)\").optional(),\n}).describe(\"Request parameters for searching designs.\");\nconst AccredibleCertificatesSearchDesigns_SearchDesignsMetaSchema: z.ZodTypeAny = z.object({\n next_page: z.number().int().describe(\"Next page number, if available\").nullable().optional(),\n page_size: z.number().int().describe(\"Number of results per page\").nullable().optional(),\n prev_page: z.number().int().describe(\"Previous page number, if available\").nullable().optional(),\n total_count: z.number().int().describe(\"Total number of designs matching the search\").nullable().optional(),\n total_pages: z.number().int().describe(\"Total number of pages\").nullable().optional(),\n current_page: z.number().int().describe(\"Current page number\").nullable().optional(),\n}).describe(\"Pagination metadata for search results.\");\nconst AccredibleCertificatesSearchDesigns_DesignSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier for the design\"),\n kind: z.string().describe(\"Type of design (e.g., certificate, badge)\").nullable().optional(),\n name: z.string().describe(\"Name of the design\").nullable().optional(),\n group_id: z.number().int().describe(\"ID of the group this design belongs to\").nullable().optional(),\n meta_data: z.record(z.string(), z.unknown()).describe(\"Additional metadata associated with the design\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the design was created (ISO 8601)\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when the design was last updated (ISO 8601)\").nullable().optional(),\n}).describe(\"Represents a single design/template object from Accredible.\");\nexport const AccredibleCertificatesSearchDesignsOutput: z.ZodTypeAny = z.object({\n meta: AccredibleCertificatesSearchDesigns_SearchDesignsMetaSchema.nullable().optional(),\n designs: z.array(AccredibleCertificatesSearchDesigns_DesignSchema).describe(\"List of designs matching the search criteria\"),\n}).describe(\"Response containing designs matching the search criteria.\");\n\nexport const accredibleCertificatesSearchDesigns = action(\"ACCREDIBLE_CERTIFICATES_SEARCH_DESIGNS\", {\n slug: \"accredible_certificates-search-designs\",\n name: \"Search Designs\",\n description: \"Tool to search for designs (certificate/badge templates). Use when you need to filter designs by type, metadata, or paginate through design results.\",\n input: AccredibleCertificatesSearchDesignsInput,\n output: AccredibleCertificatesSearchDesignsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2CAAyDA,IAAAA,EAAE,OAAO;CAC7E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAA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|
|
5
|
+
declare const AccredibleCertificatesSearchDesignsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const accredibleCertificatesSearchDesigns: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { accredibleCertificatesSearchDesigns };
|
|
9
|
+
//# sourceMappingURL=search-designs.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search-designs.d.cts","names":[],"sources":["../../src/actions/search-designs.ts"],"mappings":";;;cAIa,wCAAA,EAA0C,CAAA,CAAE,UAKD;AAAA,cAkB3C,yCAAA,EAA2C,CAAA,CAAE,UAGc;AAAA,cAE3D,mCAAA,gCAAmC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/search-designs.d.ts
|
|
4
|
+
declare const AccredibleCertificatesSearchDesignsInput: z.ZodTypeAny;
|
|
5
|
+
declare const AccredibleCertificatesSearchDesignsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const accredibleCertificatesSearchDesigns: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { accredibleCertificatesSearchDesigns };
|
|
9
|
+
//# sourceMappingURL=search-designs.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search-designs.d.mts","names":[],"sources":["../../src/actions/search-designs.ts"],"mappings":";;;cAIa,wCAAA,EAA0C,CAAA,CAAE,UAKD;AAAA,cAkB3C,yCAAA,EAA2C,CAAA,CAAE,UAGc;AAAA,cAE3D,mCAAA,gCAAmC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|