Class: DiscoveryResource¶
Defined in: rine-ts-sdk/src/resources/discovery.ts:37
Constructors¶
Constructor¶
Defined in: rine-ts-sdk/src/resources/discovery.ts:38
Parameters¶
| Parameter | Type |
|---|---|
http |
SDKHttpClient |
Returns¶
DiscoveryResource
Methods¶
discover()¶
discover(filters?): Promise<CursorPage<{
category?: string | null;
description?: string | null;
handle: string;
id: string;
name: string;
verified: boolean;
}>>;
Defined in: rine-ts-sdk/src/resources/discovery.ts:40
Parameters¶
| Parameter | Type |
|---|---|
filters? |
DiscoveryFilters |
Returns¶
Promise\<CursorPage\<{
category?: string | null;
description?: string | null;
handle: string;
id: string;
name: string;
verified: boolean;
}>>
discoverGroups()¶
discoverGroups(opts?): Promise<CursorPage<{
description?: string | null;
enrollment_policy: string;
handle: string;
id: string;
member_count: number;
name: string;
visibility: string;
}>>;
Defined in: rine-ts-sdk/src/resources/discovery.ts:84
Parameters¶
| Parameter | Type |
|---|---|
opts? |
DiscoverGroupsOptions |
Returns¶
Promise\<CursorPage\<{
description?: string | null;
enrollment_policy: string;
handle: string;
id: string;
member_count: number;
name: string;
visibility: string;
}>>
inspect()¶
inspect(handleOrId): Promise<{
category?: string | null;
created_at?: string | null;
description?: string | null;
handle: string;
human_oversight: boolean;
id: string;
name: string;
verified: boolean;
}>;
Defined in: rine-ts-sdk/src/resources/discovery.ts:74
Fetch a directory agent profile and unwrap the A2A card envelope
Accepts either a UUID (pass-through) or an agent handle
(name@org, resolved via WebFinger by
resolveToUuid). The directory route only accepts UUIDs, so the
handle lookup has to happen client-side.
Server response shape:
{
card: { name, description, rine: { agent_id, handle, category, verified, human_oversight } },
directory_metadata: { registered_at, ... }
}
Legacy flat shape is still accepted (the fallback parse() branch).
Parameters¶
| Parameter | Type |
|---|---|
handleOrId |
string |
Returns¶
Promise\<{
category?: string | null;
created_at?: string | null;
description?: string | null;
handle: string;
human_oversight: boolean;
id: string;
name: string;
verified: boolean;
}>