UNPKG

@mastra/core

Version:
17 lines • 894 B
/** Reserved characters are escaped once at the raw-id boundary; Knowledge addresses stay canonical. */ export declare function encodeKnowledgeScopeValue(value: string): string; export declare function decodeKnowledgeScopeValue(value: string): string | null; /** * Encodes an id (a tenant, user or resource id) for one segment of a canonical Knowledge scope * address, e.g. `org:${encodeKnowledgeScopeId('auth0|a:b')}`. `:`, `/`, `#` and `%` are escaped, so * the id can't spill into another segment, a child scope or a page ref. * @experimental */ export declare function encodeKnowledgeScopeId(id: string): string; /** * The id back from one segment of a canonical Knowledge scope address; null when the segment isn't * canonically encoded. * @experimental */ export declare function decodeKnowledgeScopeId(segment: string): string | null; //# sourceMappingURL=scope-address.d.ts.map