Documentation
    Preparing search index...

    Function manifestToIntentCatalogEntry

    • Map a resolved napplet manifest's archetype data into an IntentCatalogEntry.

      Each archetype { slug, nap } becomes a keyed support record where actions defaults to ['open'] (the NAP-INTENT default action — manifests do not enumerate actions in this phase) and protocols is [nap] when a NAP-N is present, else []. Duplicate slugs keep the last occurrence.

      Parameters

      Returns IntentCatalogEntry

      The IntentCatalogEntry for createCatalogIntentResolver.

      manifestToIntentCatalogEntry({
      dTag: 'profile-viewer',
      title: 'Profile',
      archetypes: [{ slug: 'profile', nap: 'NAP-1' }],
      });
      // → { dTag: 'profile-viewer', title: 'Profile',
      // archetypes: { profile: { actions: ['open'], protocols: ['NAP-1'] } } }