Documentation
    Preparing search index...

    Function manifestToIntentCatalogEntry

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

      Repeated slugs group into one support record; exact contracts and their parameter arrays remain stable and deduplicated.

      Parameters

      Returns IntentCatalogEntry

      The IntentCatalogEntry for createCatalogIntentResolver.

      manifestToIntentCatalogEntry({
      catalogId: 'nip5d:35129:publisher:profile-viewer',
      title: 'Profile',
      archetypes: [{ slug: 'profile', convention: 'napplet:profile/open', params: ['pubkey'] }],
      });
      // → { id: 'nip5d:35129:publisher:profile-viewer', title: 'Profile',
      // archetypes: { profile: { contracts: [
      // { convention: 'napplet:profile/open', params: ['pubkey'] },
      // ] } } }