forked from Lilly-Protocol/lily-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathagent.ts
More file actions
31 lines (27 loc) · 738 Bytes
/
Copy pathagent.ts
File metadata and controls
31 lines (27 loc) · 738 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import type { AuditMetadata, PaginationQuery, ResourceStatus } from './common';
export interface Agent extends AuditMetadata {
id: string;
name: string;
description?: string;
status: ResourceStatus;
network: 'stellar-testnet' | 'stellar-mainnet';
identityId?: string;
walletId?: string;
capabilities: readonly string[];
}
export interface ListAgentsQuery extends PaginationQuery {
status?: ResourceStatus;
}
export interface CreateAgentRequest {
name: string;
description?: string;
network: Agent['network'];
capabilities?: string[];
metadata?: Record<string, string>;
}
export interface UpdateAgentRequest {
name?: string;
description?: string;
capabilities?: string[];
status?: ResourceStatus;
}