@aep-foundation/platform 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/LICENSE +21 -0
- package/README.md +131 -0
- package/dist/index.cjs +849 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +432 -0
- package/dist/index.d.ts +432 -0
- package/dist/index.js +810 -0
- package/dist/index.js.map +1 -0
- package/package.json +52 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,432 @@
|
|
|
1
|
+
import { AepSigningAlgorithm, AepProblemDetails, AepAuthenticatedCommand, AepClientAssertionClaims, AepImportableJoseKey } from '@aep-foundation/core';
|
|
2
|
+
|
|
3
|
+
declare const packageName = "@aep-foundation/platform";
|
|
4
|
+
declare const platformHostedIdentityDraft = "draft-kavian-aep-platform-hosted-identity-00";
|
|
5
|
+
declare const defaultAssertionLifetimeSeconds = 300;
|
|
6
|
+
type ManagedAgentStatus = "active" | "revoked" | "suspended" | "terminated";
|
|
7
|
+
interface PlatformDiscoveryDocument {
|
|
8
|
+
aep_version: string;
|
|
9
|
+
endpoints: {
|
|
10
|
+
hosted_verification?: string;
|
|
11
|
+
lifecycle: string;
|
|
12
|
+
list: string;
|
|
13
|
+
provision: string;
|
|
14
|
+
sign: string;
|
|
15
|
+
[key: string]: unknown;
|
|
16
|
+
};
|
|
17
|
+
http: {
|
|
18
|
+
endpoint_base: string;
|
|
19
|
+
[key: string]: unknown;
|
|
20
|
+
};
|
|
21
|
+
identity: {
|
|
22
|
+
did_methods: string[];
|
|
23
|
+
did_url_template: string;
|
|
24
|
+
[key: string]: unknown;
|
|
25
|
+
};
|
|
26
|
+
platform: {
|
|
27
|
+
did?: string;
|
|
28
|
+
hosted_verification: boolean;
|
|
29
|
+
name: string;
|
|
30
|
+
[key: string]: unknown;
|
|
31
|
+
};
|
|
32
|
+
signing: {
|
|
33
|
+
algorithms: AepSigningAlgorithm[];
|
|
34
|
+
default_lifetime_seconds: string;
|
|
35
|
+
[key: string]: unknown;
|
|
36
|
+
};
|
|
37
|
+
[key: string]: unknown;
|
|
38
|
+
}
|
|
39
|
+
interface PlatformDiscoveryDocumentOptions {
|
|
40
|
+
aepVersion?: string;
|
|
41
|
+
defaultLifetimeSeconds?: number;
|
|
42
|
+
didMethods?: string[];
|
|
43
|
+
didUrlTemplate: string;
|
|
44
|
+
endpointBase: string;
|
|
45
|
+
endpoints: {
|
|
46
|
+
hostedVerification?: string;
|
|
47
|
+
lifecycle: string;
|
|
48
|
+
list: string;
|
|
49
|
+
provision: string;
|
|
50
|
+
sign: string;
|
|
51
|
+
};
|
|
52
|
+
hostedVerification?: boolean;
|
|
53
|
+
maxLifetimeSeconds?: number;
|
|
54
|
+
platformDid?: string;
|
|
55
|
+
platformName: string;
|
|
56
|
+
signingAlgorithms: AepSigningAlgorithm[];
|
|
57
|
+
}
|
|
58
|
+
interface ManagedAgentIdentity {
|
|
59
|
+
accountId?: string;
|
|
60
|
+
agentDid: string;
|
|
61
|
+
createdAt: string;
|
|
62
|
+
metadata: Record<string, unknown>;
|
|
63
|
+
status: ManagedAgentStatus;
|
|
64
|
+
subjectDid?: string;
|
|
65
|
+
tenantId?: string;
|
|
66
|
+
updatedAt: string;
|
|
67
|
+
}
|
|
68
|
+
interface ServiceScopedAgentDidOptions {
|
|
69
|
+
agentDidId: string;
|
|
70
|
+
host: string;
|
|
71
|
+
pathPrefix?: string;
|
|
72
|
+
}
|
|
73
|
+
interface PlatformAgentIdentity {
|
|
74
|
+
agent_did: string;
|
|
75
|
+
agent_identity_id: string;
|
|
76
|
+
created_at: string;
|
|
77
|
+
did_document_url: string;
|
|
78
|
+
key_id: string;
|
|
79
|
+
service_did: string;
|
|
80
|
+
signing_algorithms: AepSigningAlgorithm[];
|
|
81
|
+
status: ManagedAgentStatus;
|
|
82
|
+
updated_at: string;
|
|
83
|
+
}
|
|
84
|
+
interface PlatformPage<T> {
|
|
85
|
+
count: string;
|
|
86
|
+
data: T[];
|
|
87
|
+
total: string;
|
|
88
|
+
}
|
|
89
|
+
type PlatformAgentIdentityListResponse = PlatformPage<PlatformAgentIdentity>;
|
|
90
|
+
interface PlatformAgentIdentityOptions {
|
|
91
|
+
agentDid: string;
|
|
92
|
+
agentIdentityId: string;
|
|
93
|
+
clock?: () => Date;
|
|
94
|
+
didDocumentUrl?: string;
|
|
95
|
+
keyId?: string;
|
|
96
|
+
serviceDid: string;
|
|
97
|
+
signingAlgorithms: AepSigningAlgorithm[];
|
|
98
|
+
status?: ManagedAgentStatus;
|
|
99
|
+
}
|
|
100
|
+
interface ManagedAgentIdentityOptions {
|
|
101
|
+
accountId?: string;
|
|
102
|
+
agentDid: string;
|
|
103
|
+
clock?: () => Date;
|
|
104
|
+
metadata?: Record<string, unknown>;
|
|
105
|
+
status?: ManagedAgentStatus;
|
|
106
|
+
subjectDid?: string;
|
|
107
|
+
tenantId?: string;
|
|
108
|
+
}
|
|
109
|
+
interface ManagedAgentIdentityUpdate {
|
|
110
|
+
accountId?: string;
|
|
111
|
+
metadata?: Record<string, unknown>;
|
|
112
|
+
status?: ManagedAgentStatus;
|
|
113
|
+
subjectDid?: string;
|
|
114
|
+
tenantId?: string;
|
|
115
|
+
}
|
|
116
|
+
interface PlatformLifecycleRequest {
|
|
117
|
+
status: ManagedAgentStatus;
|
|
118
|
+
}
|
|
119
|
+
interface PlatformLifecycleRequestOptions {
|
|
120
|
+
status: ManagedAgentStatus;
|
|
121
|
+
}
|
|
122
|
+
interface ManagedAgentRegistry {
|
|
123
|
+
get(agentDid: string): ManagedAgentIdentity | undefined;
|
|
124
|
+
list(filter?: ManagedAgentListFilter): ManagedAgentIdentity[];
|
|
125
|
+
remove(agentDid: string): boolean;
|
|
126
|
+
setStatus(agentDid: string, status: ManagedAgentStatus): ManagedAgentIdentity;
|
|
127
|
+
upsert(identity: ManagedAgentIdentity): ManagedAgentIdentity;
|
|
128
|
+
}
|
|
129
|
+
interface ManagedAgentListFilter {
|
|
130
|
+
accountId?: string;
|
|
131
|
+
status?: ManagedAgentStatus;
|
|
132
|
+
tenantId?: string;
|
|
133
|
+
}
|
|
134
|
+
interface PlatformEnrollRequest {
|
|
135
|
+
agent_did: string;
|
|
136
|
+
claims?: Record<string, unknown>;
|
|
137
|
+
idempotency_key: string;
|
|
138
|
+
}
|
|
139
|
+
interface PlatformEnrollRequestOptions {
|
|
140
|
+
claims?: Record<string, unknown>;
|
|
141
|
+
identity: ManagedAgentIdentity;
|
|
142
|
+
idempotencyKey: string;
|
|
143
|
+
}
|
|
144
|
+
interface PlatformProvisionRequest {
|
|
145
|
+
idempotency_key: string;
|
|
146
|
+
service_did: string;
|
|
147
|
+
}
|
|
148
|
+
interface PlatformProvisionRequestOptions {
|
|
149
|
+
idempotencyKey: string;
|
|
150
|
+
serviceDid: string;
|
|
151
|
+
}
|
|
152
|
+
interface PlatformClientAssertionClaims {
|
|
153
|
+
aud: string;
|
|
154
|
+
exp: number;
|
|
155
|
+
iat: number;
|
|
156
|
+
iss: string;
|
|
157
|
+
jti: string;
|
|
158
|
+
op: AepAuthenticatedCommand;
|
|
159
|
+
sub: string;
|
|
160
|
+
}
|
|
161
|
+
interface PlatformClientAssertionClaimsOptions {
|
|
162
|
+
command: AepAuthenticatedCommand;
|
|
163
|
+
identity: ManagedAgentIdentity;
|
|
164
|
+
issuedAt?: Date | number;
|
|
165
|
+
jti: string;
|
|
166
|
+
maxLifetimeSeconds?: number;
|
|
167
|
+
serviceDid: string;
|
|
168
|
+
lifetimeSeconds?: number;
|
|
169
|
+
}
|
|
170
|
+
type DidVerificationRelationship = "assertionMethod" | "authentication" | "capabilityDelegation" | "capabilityInvocation" | "keyAgreement";
|
|
171
|
+
interface DidVerificationMethod {
|
|
172
|
+
controller: string;
|
|
173
|
+
id: string;
|
|
174
|
+
publicKeyJwk?: Record<string, unknown>;
|
|
175
|
+
publicKeyMultibase?: string;
|
|
176
|
+
publicKeyPem?: string;
|
|
177
|
+
type: string;
|
|
178
|
+
[key: string]: unknown;
|
|
179
|
+
}
|
|
180
|
+
interface DidService {
|
|
181
|
+
id: string;
|
|
182
|
+
serviceEndpoint: string | string[] | Record<string, unknown>;
|
|
183
|
+
type: string;
|
|
184
|
+
[key: string]: unknown;
|
|
185
|
+
}
|
|
186
|
+
interface DidDocument {
|
|
187
|
+
"@context": string | string[];
|
|
188
|
+
assertionMethod?: Array<string | DidVerificationMethod>;
|
|
189
|
+
authentication?: Array<string | DidVerificationMethod>;
|
|
190
|
+
capabilityDelegation?: Array<string | DidVerificationMethod>;
|
|
191
|
+
capabilityInvocation?: Array<string | DidVerificationMethod>;
|
|
192
|
+
controller?: string | string[];
|
|
193
|
+
id: string;
|
|
194
|
+
keyAgreement?: Array<string | DidVerificationMethod>;
|
|
195
|
+
service?: DidService[];
|
|
196
|
+
verificationMethod?: DidVerificationMethod[];
|
|
197
|
+
[key: string]: unknown;
|
|
198
|
+
}
|
|
199
|
+
interface ManagedAgentDidVerificationMethodOptions {
|
|
200
|
+
controller?: string;
|
|
201
|
+
id?: string;
|
|
202
|
+
publicKeyJwk?: Record<string, unknown>;
|
|
203
|
+
publicKeyMultibase?: string;
|
|
204
|
+
publicKeyPem?: string;
|
|
205
|
+
relationships?: DidVerificationRelationship[];
|
|
206
|
+
type: string;
|
|
207
|
+
[key: string]: unknown;
|
|
208
|
+
}
|
|
209
|
+
interface ManagedAgentDidDocumentOptions {
|
|
210
|
+
additionalContexts?: string[];
|
|
211
|
+
controller?: string | string[];
|
|
212
|
+
identity: ManagedAgentIdentity;
|
|
213
|
+
service?: DidService[];
|
|
214
|
+
verificationMethods: ManagedAgentDidVerificationMethodOptions[];
|
|
215
|
+
}
|
|
216
|
+
interface DidDocumentPublication {
|
|
217
|
+
document: DidDocument;
|
|
218
|
+
publishedAt: string;
|
|
219
|
+
url?: string;
|
|
220
|
+
}
|
|
221
|
+
interface DidDocumentPublisher {
|
|
222
|
+
publish(document: DidDocument): Promise<DidDocumentPublication> | DidDocumentPublication;
|
|
223
|
+
}
|
|
224
|
+
interface PublishManagedAgentDidDocumentOptions extends ManagedAgentDidDocumentOptions {
|
|
225
|
+
publisher: DidDocumentPublisher;
|
|
226
|
+
}
|
|
227
|
+
interface PlatformDelegatedSigningContext {
|
|
228
|
+
identity: ManagedAgentIdentity;
|
|
229
|
+
signingAlgorithms: AepSigningAlgorithm[];
|
|
230
|
+
}
|
|
231
|
+
type PlatformDelegatedSigner = (claims: AepClientAssertionClaims, context: PlatformDelegatedSigningContext) => Promise<string> | string;
|
|
232
|
+
interface JwtPlatformDelegatedSignerOptions {
|
|
233
|
+
alg?: AepSigningAlgorithm;
|
|
234
|
+
key: AepImportableJoseKey;
|
|
235
|
+
kid?: string;
|
|
236
|
+
typ?: string;
|
|
237
|
+
}
|
|
238
|
+
interface SignPlatformClientAssertionOptions extends PlatformClientAssertionClaimsOptions {
|
|
239
|
+
signer: PlatformDelegatedSigner;
|
|
240
|
+
signingAlgorithms?: AepSigningAlgorithm[];
|
|
241
|
+
}
|
|
242
|
+
interface PlatformSignRequest {
|
|
243
|
+
jti: string;
|
|
244
|
+
lifetime_seconds?: string;
|
|
245
|
+
op: AepAuthenticatedCommand;
|
|
246
|
+
service_did: string;
|
|
247
|
+
}
|
|
248
|
+
interface PlatformSignRequestOptions {
|
|
249
|
+
command: AepAuthenticatedCommand;
|
|
250
|
+
jti: string;
|
|
251
|
+
maxLifetimeSeconds?: number;
|
|
252
|
+
serviceDid: string;
|
|
253
|
+
lifetimeSeconds?: number;
|
|
254
|
+
}
|
|
255
|
+
interface PlatformSignResponse {
|
|
256
|
+
agent_did: string;
|
|
257
|
+
client_assertion: string;
|
|
258
|
+
expires_at: string;
|
|
259
|
+
issued_at: string;
|
|
260
|
+
jti: string;
|
|
261
|
+
service_did: string;
|
|
262
|
+
}
|
|
263
|
+
interface PlatformSignResponseOptions {
|
|
264
|
+
clientAssertion: string;
|
|
265
|
+
identity: ManagedAgentIdentity;
|
|
266
|
+
issuedAt?: Date | number;
|
|
267
|
+
jti: string;
|
|
268
|
+
maxLifetimeSeconds?: number;
|
|
269
|
+
serviceDid: string;
|
|
270
|
+
lifetimeSeconds?: number;
|
|
271
|
+
}
|
|
272
|
+
interface PlatformVerificationRequest {
|
|
273
|
+
client_assertion: string;
|
|
274
|
+
op: AepAuthenticatedCommand;
|
|
275
|
+
service_did: string;
|
|
276
|
+
}
|
|
277
|
+
interface PlatformVerificationRequestOptions {
|
|
278
|
+
clientAssertion: string;
|
|
279
|
+
command: AepAuthenticatedCommand;
|
|
280
|
+
serviceDid: string;
|
|
281
|
+
}
|
|
282
|
+
interface PlatformVerificationResponse {
|
|
283
|
+
agent_did?: string;
|
|
284
|
+
agent_identity_id?: string;
|
|
285
|
+
op?: AepAuthenticatedCommand;
|
|
286
|
+
reason: string;
|
|
287
|
+
service_did: string;
|
|
288
|
+
status?: ManagedAgentStatus;
|
|
289
|
+
verified: boolean;
|
|
290
|
+
}
|
|
291
|
+
interface PlatformVerificationResponseOptions {
|
|
292
|
+
agentDid?: string;
|
|
293
|
+
agentIdentityId?: string;
|
|
294
|
+
command?: AepAuthenticatedCommand;
|
|
295
|
+
reason: string;
|
|
296
|
+
serviceDid: string;
|
|
297
|
+
status?: ManagedAgentStatus;
|
|
298
|
+
verified: boolean;
|
|
299
|
+
}
|
|
300
|
+
type Awaitable<T> = T | Promise<T>;
|
|
301
|
+
interface PlatformHttpResponse<TBody = unknown> {
|
|
302
|
+
body: TBody;
|
|
303
|
+
contentType: string;
|
|
304
|
+
status: number;
|
|
305
|
+
}
|
|
306
|
+
interface PlatformRequestContext {
|
|
307
|
+
authorization?: string;
|
|
308
|
+
now?: Date;
|
|
309
|
+
requestId?: string;
|
|
310
|
+
subject?: string;
|
|
311
|
+
}
|
|
312
|
+
interface PlatformIdentityRecord {
|
|
313
|
+
agentDid: string;
|
|
314
|
+
agentDidId: string;
|
|
315
|
+
agentIdentityId: string;
|
|
316
|
+
createdAt: string;
|
|
317
|
+
didDocumentUrl: string;
|
|
318
|
+
keyId: string;
|
|
319
|
+
serviceDid: string;
|
|
320
|
+
signingAlgorithms: AepSigningAlgorithm[];
|
|
321
|
+
status: ManagedAgentStatus;
|
|
322
|
+
updatedAt: string;
|
|
323
|
+
}
|
|
324
|
+
interface PlatformIdentityListQuery {
|
|
325
|
+
limit?: number;
|
|
326
|
+
offset?: number;
|
|
327
|
+
serviceDid?: string;
|
|
328
|
+
status?: ManagedAgentStatus;
|
|
329
|
+
}
|
|
330
|
+
interface PlatformIdentityListResult {
|
|
331
|
+
identities: PlatformIdentityRecord[];
|
|
332
|
+
total: number;
|
|
333
|
+
}
|
|
334
|
+
interface PlatformIdentityStore {
|
|
335
|
+
create(identity: PlatformIdentityRecord, context: PlatformRequestContext): Awaitable<void>;
|
|
336
|
+
findByAgentDid(agentDid: string, context: PlatformRequestContext): Awaitable<PlatformIdentityRecord | undefined>;
|
|
337
|
+
get(agentIdentityId: string, context: PlatformRequestContext): Awaitable<PlatformIdentityRecord | undefined>;
|
|
338
|
+
list(query: PlatformIdentityListQuery, context: PlatformRequestContext): Awaitable<PlatformIdentityListResult>;
|
|
339
|
+
update(agentIdentityId: string, update: {
|
|
340
|
+
status: ManagedAgentStatus;
|
|
341
|
+
updatedAt: string;
|
|
342
|
+
}, context: PlatformRequestContext): Awaitable<PlatformIdentityRecord | undefined>;
|
|
343
|
+
}
|
|
344
|
+
interface PlatformProvisionIdempotencyRecord {
|
|
345
|
+
idempotencyKey: string;
|
|
346
|
+
requestHash: string;
|
|
347
|
+
response: PlatformAgentIdentity;
|
|
348
|
+
}
|
|
349
|
+
interface PlatformProvisionIdempotencyStore {
|
|
350
|
+
get(idempotencyKey: string, context: PlatformRequestContext): Awaitable<PlatformProvisionIdempotencyRecord | undefined>;
|
|
351
|
+
set(record: PlatformProvisionIdempotencyRecord, context: PlatformRequestContext): Awaitable<void>;
|
|
352
|
+
}
|
|
353
|
+
interface PlatformReplayStore {
|
|
354
|
+
consume(key: string, expiresAt: Date, context: PlatformRequestContext): Awaitable<boolean>;
|
|
355
|
+
}
|
|
356
|
+
interface PlatformKeyStore {
|
|
357
|
+
create(identity: PlatformIdentityRecord, context: PlatformRequestContext): Awaitable<void>;
|
|
358
|
+
didVerificationMethod(identity: PlatformIdentityRecord, context: PlatformRequestContext): Awaitable<ManagedAgentDidVerificationMethodOptions>;
|
|
359
|
+
sign(identity: PlatformIdentityRecord, claims: AepClientAssertionClaims, context: PlatformRequestContext): Awaitable<string>;
|
|
360
|
+
verificationKey(identity: PlatformIdentityRecord, context: PlatformRequestContext): Awaitable<AepImportableJoseKey>;
|
|
361
|
+
}
|
|
362
|
+
interface PlatformServiceDidResolver {
|
|
363
|
+
resolve(serviceDid: string, context: PlatformRequestContext): Awaitable<boolean>;
|
|
364
|
+
}
|
|
365
|
+
interface PlatformAuthorizer {
|
|
366
|
+
authorizeIdentityAccess?(identity: PlatformIdentityRecord, context: PlatformRequestContext): Awaitable<boolean>;
|
|
367
|
+
authorizeList?(context: PlatformRequestContext): Awaitable<boolean>;
|
|
368
|
+
authorizeProvision?(request: PlatformProvisionRequest, context: PlatformRequestContext): Awaitable<boolean>;
|
|
369
|
+
}
|
|
370
|
+
interface PlatformLifecyclePolicy {
|
|
371
|
+
canSign(identity: PlatformIdentityRecord, context: PlatformRequestContext): Awaitable<boolean>;
|
|
372
|
+
canTransition(identity: PlatformIdentityRecord, nextStatus: ManagedAgentStatus, context: PlatformRequestContext): Awaitable<boolean>;
|
|
373
|
+
canVerify(identity: PlatformIdentityRecord, context: PlatformRequestContext): Awaitable<boolean>;
|
|
374
|
+
}
|
|
375
|
+
interface CreateAepPlatformOptions {
|
|
376
|
+
authorizer?: PlatformAuthorizer;
|
|
377
|
+
clock?: () => Date;
|
|
378
|
+
defaultLifetimeSeconds?: number;
|
|
379
|
+
didHost: string;
|
|
380
|
+
didPathPrefix?: string;
|
|
381
|
+
didUrlTemplate: string;
|
|
382
|
+
discovery: Omit<PlatformDiscoveryDocumentOptions, "defaultLifetimeSeconds" | "didUrlTemplate" | "signingAlgorithms">;
|
|
383
|
+
idGenerator?: () => string;
|
|
384
|
+
idempotencyStore: PlatformProvisionIdempotencyStore;
|
|
385
|
+
identityStore: PlatformIdentityStore;
|
|
386
|
+
keyStore: PlatformKeyStore;
|
|
387
|
+
lifecyclePolicy?: PlatformLifecyclePolicy;
|
|
388
|
+
maxLifetimeSeconds?: number;
|
|
389
|
+
replayStore: PlatformReplayStore;
|
|
390
|
+
serviceDidResolver: PlatformServiceDidResolver;
|
|
391
|
+
signingAlgorithms: AepSigningAlgorithm[];
|
|
392
|
+
}
|
|
393
|
+
interface AepPlatform {
|
|
394
|
+
discovery(): PlatformHttpResponse<PlatformDiscoveryDocument>;
|
|
395
|
+
getDidDocument(agentIdentityId: string, context?: PlatformRequestContext): Promise<PlatformHttpResponse<DidDocument | AepProblemDetails>>;
|
|
396
|
+
getIdentity(agentIdentityId: string, context?: PlatformRequestContext): Promise<PlatformHttpResponse<PlatformAgentIdentity | AepProblemDetails>>;
|
|
397
|
+
list(query?: PlatformIdentityListQuery, context?: PlatformRequestContext): Promise<PlatformHttpResponse<PlatformAgentIdentityListResponse | AepProblemDetails>>;
|
|
398
|
+
provision(body: unknown, context?: PlatformRequestContext): Promise<PlatformHttpResponse<PlatformAgentIdentity | AepProblemDetails>>;
|
|
399
|
+
sign(agentIdentityId: string, body: unknown, context?: PlatformRequestContext): Promise<PlatformHttpResponse<PlatformSignResponse | AepProblemDetails>>;
|
|
400
|
+
updateIdentity(agentIdentityId: string, body: unknown, context?: PlatformRequestContext): Promise<PlatformHttpResponse<PlatformAgentIdentity | AepProblemDetails>>;
|
|
401
|
+
verify(body: unknown, context?: PlatformRequestContext): Promise<PlatformHttpResponse<PlatformVerificationResponse>>;
|
|
402
|
+
}
|
|
403
|
+
declare class InMemoryManagedAgentRegistry implements ManagedAgentRegistry {
|
|
404
|
+
#private;
|
|
405
|
+
constructor(identities?: ManagedAgentIdentity[]);
|
|
406
|
+
get(agentDid: string): ManagedAgentIdentity | undefined;
|
|
407
|
+
list(filter?: ManagedAgentListFilter): ManagedAgentIdentity[];
|
|
408
|
+
remove(agentDid: string): boolean;
|
|
409
|
+
setStatus(agentDid: string, status: ManagedAgentStatus): ManagedAgentIdentity;
|
|
410
|
+
upsert(identity: ManagedAgentIdentity): ManagedAgentIdentity;
|
|
411
|
+
}
|
|
412
|
+
declare function createManagedAgentIdentity(options: ManagedAgentIdentityOptions): ManagedAgentIdentity;
|
|
413
|
+
declare function updateManagedAgentIdentity(identity: ManagedAgentIdentity, update: ManagedAgentIdentityUpdate, clock?: () => Date): ManagedAgentIdentity;
|
|
414
|
+
declare function createPlatformDiscoveryDocument(options: PlatformDiscoveryDocumentOptions): PlatformDiscoveryDocument;
|
|
415
|
+
declare function createServiceScopedAgentDid(options: ServiceScopedAgentDidOptions): string;
|
|
416
|
+
declare function createPlatformAgentIdentity(options: PlatformAgentIdentityOptions): PlatformAgentIdentity;
|
|
417
|
+
declare function createPlatformAgentIdentityListResponse(identities: PlatformAgentIdentity[], total?: number): PlatformAgentIdentityListResponse;
|
|
418
|
+
declare function createPlatformLifecycleRequest(options: PlatformLifecycleRequestOptions): PlatformLifecycleRequest;
|
|
419
|
+
declare function createPlatformProvisionRequest(options: PlatformProvisionRequestOptions): PlatformProvisionRequest;
|
|
420
|
+
declare function createPlatformEnrollRequest(options: PlatformEnrollRequestOptions): PlatformEnrollRequest;
|
|
421
|
+
declare function createPlatformClientAssertionClaims(options: PlatformClientAssertionClaimsOptions): AepClientAssertionClaims;
|
|
422
|
+
declare function createManagedAgentDidDocument(options: ManagedAgentDidDocumentOptions): DidDocument;
|
|
423
|
+
declare function publishManagedAgentDidDocument(options: PublishManagedAgentDidDocumentOptions): Promise<DidDocumentPublication>;
|
|
424
|
+
declare function createJwtPlatformDelegatedSigner(options: JwtPlatformDelegatedSignerOptions): PlatformDelegatedSigner;
|
|
425
|
+
declare function signPlatformClientAssertion(options: SignPlatformClientAssertionOptions): Promise<string>;
|
|
426
|
+
declare function createPlatformSignRequest(options: PlatformSignRequestOptions): PlatformSignRequest;
|
|
427
|
+
declare function createPlatformSignResponse(options: PlatformSignResponseOptions): PlatformSignResponse;
|
|
428
|
+
declare function createPlatformVerificationRequest(options: PlatformVerificationRequestOptions): PlatformVerificationRequest;
|
|
429
|
+
declare function createPlatformVerificationResponse(options: PlatformVerificationResponseOptions): PlatformVerificationResponse;
|
|
430
|
+
declare function createAepPlatform(options: CreateAepPlatformOptions): AepPlatform;
|
|
431
|
+
|
|
432
|
+
export { type AepPlatform, type Awaitable, type CreateAepPlatformOptions, type DidDocument, type DidDocumentPublication, type DidDocumentPublisher, type DidService, type DidVerificationMethod, type DidVerificationRelationship, InMemoryManagedAgentRegistry, type JwtPlatformDelegatedSignerOptions, type ManagedAgentDidDocumentOptions, type ManagedAgentDidVerificationMethodOptions, type ManagedAgentIdentity, type ManagedAgentIdentityOptions, type ManagedAgentIdentityUpdate, type ManagedAgentListFilter, type ManagedAgentRegistry, type ManagedAgentStatus, type PlatformAgentIdentity, type PlatformAgentIdentityListResponse, type PlatformAgentIdentityOptions, type PlatformAuthorizer, type PlatformClientAssertionClaims, type PlatformClientAssertionClaimsOptions, type PlatformDelegatedSigner, type PlatformDelegatedSigningContext, type PlatformDiscoveryDocument, type PlatformDiscoveryDocumentOptions, type PlatformEnrollRequest, type PlatformEnrollRequestOptions, type PlatformHttpResponse, type PlatformIdentityListQuery, type PlatformIdentityListResult, type PlatformIdentityRecord, type PlatformIdentityStore, type PlatformKeyStore, type PlatformLifecyclePolicy, type PlatformLifecycleRequest, type PlatformLifecycleRequestOptions, type PlatformPage, type PlatformProvisionIdempotencyRecord, type PlatformProvisionIdempotencyStore, type PlatformProvisionRequest, type PlatformProvisionRequestOptions, type PlatformReplayStore, type PlatformRequestContext, type PlatformServiceDidResolver, type PlatformSignRequest, type PlatformSignRequestOptions, type PlatformSignResponse, type PlatformSignResponseOptions, type PlatformVerificationRequest, type PlatformVerificationRequestOptions, type PlatformVerificationResponse, type PlatformVerificationResponseOptions, type PublishManagedAgentDidDocumentOptions, type ServiceScopedAgentDidOptions, type SignPlatformClientAssertionOptions, createAepPlatform, createJwtPlatformDelegatedSigner, createManagedAgentDidDocument, createManagedAgentIdentity, createPlatformAgentIdentity, createPlatformAgentIdentityListResponse, createPlatformClientAssertionClaims, createPlatformDiscoveryDocument, createPlatformEnrollRequest, createPlatformLifecycleRequest, createPlatformProvisionRequest, createPlatformSignRequest, createPlatformSignResponse, createPlatformVerificationRequest, createPlatformVerificationResponse, createServiceScopedAgentDid, defaultAssertionLifetimeSeconds, packageName, platformHostedIdentityDraft, publishManagedAgentDidDocument, signPlatformClientAssertion, updateManagedAgentIdentity };
|