@datalayer/agent-runtimes 1.5.128 → 1.6.5

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.
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Identity Catalog.
3
+ *
4
+ * Who is acting when an agent acts: a person, an agent, an application, an
5
+ * organization, a visitor or a service, issued by Datalayer IAM, the Personal Agent
6
+ * Protocol, Amazon Bedrock AgentCore Identity or an organization's OIDC provider;
7
+ * how each proves it, the token it holds, where its third-party credentials are kept.
8
+ *
9
+ * This file is AUTO-GENERATED from YAML specifications.
10
+ * DO NOT EDIT MANUALLY - run 'make specs' to regenerate.
11
+ */
12
+ import type { IdentitySpec } from '../types/agentspecs';
13
+ export declare const AWS_AGENTCORE_GATEWAY_IDENTITY_0_0_1: IdentitySpec;
14
+ export declare const AWS_AGENTCORE_RUNTIME_IDENTITY_0_0_1: IdentitySpec;
15
+ export declare const AWS_AGENTCORE_VAULT_IDENTITY_0_0_1: IdentitySpec;
16
+ export declare const DATALAYER_ACTING_AGENT_IDENTITY_0_0_1: IdentitySpec;
17
+ export declare const DATALAYER_PERSON_IDENTITY_0_0_1: IdentitySpec;
18
+ export declare const DATALAYER_SERVICE_AGENT_IDENTITY_0_0_1: IdentitySpec;
19
+ export declare const DATALAYER_VISITOR_IDENTITY_0_0_1: IdentitySpec;
20
+ export declare const ORGANIZATION_OIDC_IDENTITY_0_0_1: IdentitySpec;
21
+ export declare const PAP_COMPANY_IDENTITY_0_0_1: IdentitySpec;
22
+ export declare const PAP_PERSON_IDENTITY_0_0_1: IdentitySpec;
23
+ export declare const PAP_PERSONAL_AGENT_IDENTITY_0_0_1: IdentitySpec;
24
+ export declare const WEB_BOT_AUTH_AGENT_IDENTITY_0_0_1: IdentitySpec;
25
+ export declare const IDENTITY_CATALOGUE: Record<string, IdentitySpec>;
26
+ /** A Identity, by `id` or `id:version`, or undefined. */
27
+ export declare function getIdentity(ref: string): IdentitySpec | undefined;
28
+ export declare function listIdentities(): IdentitySpec[];
@@ -0,0 +1,601 @@
1
+ /*
2
+ * Copyright (c) 2025-2026 Datalayer, Inc.
3
+ * Distributed under the terms of the Modified BSD License.
4
+ */
5
+ export const AWS_AGENTCORE_GATEWAY_IDENTITY_0_0_1 = {
6
+ id: 'aws-agentcore-gateway',
7
+ version: '0.0.1',
8
+ name: 'AgentCore Gateway tools',
9
+ description: "An AgentCore Gateway turning the customer's APIs and Lambda functions into MCP tools. Datalayer agents reach it as an MCP server; its inbound authorizer trusts Datalayer IAM, and its outbound calls take machine-to-machine credentials.",
10
+ subject: 'service',
11
+ provider: 'aws-agentcore',
12
+ protocols: ['mcp'],
13
+ inbound: {
14
+ kind: 'jwt',
15
+ issuer: 'https://prod1.datalayer.run/api/iam/v1/oauth',
16
+ discoveryUrl: 'https://prod1.datalayer.run/api/iam/v1/oauth/.well-known/openid-configuration',
17
+ algorithms: ['RS256'],
18
+ audiences: [
19
+ 'arn:aws:bedrock-agentcore:<region>:<account>:gateway/<gateway-id>',
20
+ ],
21
+ clients: ['datalayer-platform'],
22
+ scopes: [],
23
+ claims: {},
24
+ lifetimeSeconds: 0,
25
+ },
26
+ workload: {
27
+ token: 'agentcore-runtime',
28
+ lifetimeSeconds: 0,
29
+ },
30
+ credentials: {
31
+ vault: 'agentcore',
32
+ providers: [
33
+ {
34
+ name: 'internal-api',
35
+ kind: 'oauth2',
36
+ flow: 'm2m',
37
+ scopes: [],
38
+ },
39
+ {
40
+ name: 'partner-api-key',
41
+ kind: 'api-key',
42
+ flow: '',
43
+ scopes: [],
44
+ },
45
+ ],
46
+ },
47
+ custody: {
48
+ keys: 'vault-transit',
49
+ algorithm: 'RS256',
50
+ },
51
+ consent: {
52
+ by: 'organization',
53
+ hostedBy: 'provider',
54
+ binding: false,
55
+ },
56
+ enabled: true,
57
+ tags: ['aws', 'agentcore', 'gateway', 'mcp'],
58
+ icon: 'plug',
59
+ emoji: '🔌',
60
+ };
61
+ export const AWS_AGENTCORE_RUNTIME_IDENTITY_0_0_1 = {
62
+ id: 'aws-agentcore-runtime',
63
+ version: '0.0.1',
64
+ name: 'AgentCore Runtime agent',
65
+ description: "A Datalayer agent in AgentCore Runtime, in the customer's AWS account. Its JWT authorizer trusts Datalayer IAM's discovery document; Runtime hands the agent a workload access token for the person, and third-party tokens come from AgentCore's token vault, consent bound by Datalayer.",
66
+ subject: 'agent',
67
+ provider: 'aws-agentcore',
68
+ protocols: ['ag-ui', 'a2a', 'mcp'],
69
+ inbound: {
70
+ kind: 'jwt',
71
+ issuer: 'https://prod1.datalayer.run/api/iam/v1/oauth',
72
+ discoveryUrl: 'https://prod1.datalayer.run/api/iam/v1/oauth/.well-known/openid-configuration',
73
+ algorithms: ['RS256'],
74
+ audiences: [
75
+ 'arn:aws:bedrock-agentcore:<region>:<account>:runtime/<runtime-id>',
76
+ ],
77
+ clients: ['datalayer-platform'],
78
+ scopes: [],
79
+ claims: {
80
+ org_uid: '<organization>',
81
+ },
82
+ lifetimeSeconds: 900,
83
+ },
84
+ workload: {
85
+ token: 'agentcore-runtime',
86
+ lifetimeSeconds: 0,
87
+ },
88
+ credentials: {
89
+ vault: 'agentcore',
90
+ providers: [
91
+ {
92
+ name: 'github',
93
+ kind: 'oauth2',
94
+ flow: 'user-federation',
95
+ scopes: ['read:user'],
96
+ },
97
+ {
98
+ name: 'google-workspace',
99
+ kind: 'oauth2',
100
+ flow: 'user-federation',
101
+ scopes: ['https://www.googleapis.com/auth/drive.metadata.readonly'],
102
+ },
103
+ {
104
+ name: 'salesforce',
105
+ kind: 'oauth2',
106
+ flow: 'user-federation',
107
+ scopes: ['api', 'refresh_token'],
108
+ },
109
+ ],
110
+ },
111
+ custody: {
112
+ keys: 'vault-transit',
113
+ algorithm: 'RS256',
114
+ },
115
+ consent: {
116
+ by: 'person',
117
+ hostedBy: 'datalayer',
118
+ binding: true,
119
+ },
120
+ enabled: true,
121
+ tags: ['aws', 'agentcore', 'runtime'],
122
+ icon: 'cloud',
123
+ emoji: '☁️',
124
+ };
125
+ export const AWS_AGENTCORE_VAULT_IDENTITY_0_0_1 = {
126
+ id: 'aws-agentcore-vault',
127
+ version: '0.0.1',
128
+ name: 'AgentCore vault from Datalayer',
129
+ description: "An agent running on Datalayer, or as an Agent Node on ECS, whose organization keeps third-party tokens in its own AgentCore token vault: the platform obtains the workload access token with the person's verified JWT, never by user id.",
130
+ subject: 'agent',
131
+ provider: 'aws-agentcore',
132
+ protocols: [],
133
+ inbound: {
134
+ kind: 'jwt',
135
+ issuer: 'https://prod1.datalayer.run/api/iam/v1/oauth',
136
+ discoveryUrl: 'https://prod1.datalayer.run/api/iam/v1/oauth/.well-known/openid-configuration',
137
+ algorithms: ['RS256'],
138
+ audiences: [],
139
+ clients: ['datalayer-platform'],
140
+ scopes: [],
141
+ claims: {},
142
+ lifetimeSeconds: 0,
143
+ },
144
+ workload: {
145
+ token: 'agentcore-jwt',
146
+ lifetimeSeconds: 900,
147
+ },
148
+ credentials: {
149
+ vault: 'agentcore',
150
+ providers: [
151
+ {
152
+ name: 'github',
153
+ kind: 'oauth2',
154
+ flow: 'user-federation',
155
+ scopes: ['read:user'],
156
+ },
157
+ ],
158
+ },
159
+ custody: {
160
+ keys: 'vault-transit',
161
+ algorithm: 'RS256',
162
+ },
163
+ consent: {
164
+ by: 'person',
165
+ hostedBy: 'datalayer',
166
+ binding: true,
167
+ },
168
+ enabled: true,
169
+ tags: ['aws', 'agentcore', 'vault'],
170
+ icon: 'lock',
171
+ emoji: '🔐',
172
+ };
173
+ export const DATALAYER_ACTING_AGENT_IDENTITY_0_0_1 = {
174
+ id: 'datalayer-acting-agent',
175
+ version: '0.0.1',
176
+ name: 'Agent acting for a person',
177
+ description: 'A deployed agent acting for the person it answers to: a 15-minute acting token whose subject is the person, carrying the application and the agent. Every tool call is checked by the Shield against the person, the agent and the call.',
178
+ subject: 'agent',
179
+ provider: 'datalayer',
180
+ protocols: [],
181
+ inbound: {
182
+ kind: 'jwt',
183
+ issuer: 'https://prod1.datalayer.run/api/iam/v1/oauth',
184
+ discoveryUrl: '',
185
+ algorithms: ['HS256'],
186
+ audiences: [],
187
+ clients: [],
188
+ scopes: [],
189
+ claims: {},
190
+ lifetimeSeconds: 900,
191
+ },
192
+ workload: {
193
+ token: 'acting',
194
+ lifetimeSeconds: 900,
195
+ },
196
+ credentials: {
197
+ vault: 'datalayer',
198
+ providers: [],
199
+ },
200
+ custody: {
201
+ keys: 'shared-secret',
202
+ algorithm: 'HS256',
203
+ },
204
+ consent: {
205
+ by: 'person',
206
+ hostedBy: 'datalayer',
207
+ binding: false,
208
+ },
209
+ enabled: true,
210
+ tags: ['datalayer', 'agent'],
211
+ icon: 'dependabot',
212
+ emoji: '🤖',
213
+ };
214
+ export const DATALAYER_PERSON_IDENTITY_0_0_1 = {
215
+ id: 'datalayer-person',
216
+ version: '0.0.1',
217
+ name: 'Datalayer person',
218
+ description: 'A person signed in to Datalayer IAM, by password, GitHub, Google, LinkedIn or Okta. The platform token stays inside Datalayer; anything a third party must verify is exchanged for a short-lived, audience-bound token signed asymmetrically.',
219
+ subject: 'person',
220
+ provider: 'datalayer',
221
+ protocols: [],
222
+ inbound: {
223
+ kind: 'session',
224
+ issuer: 'https://prod1.datalayer.run/api/iam/v1/oauth',
225
+ discoveryUrl: '',
226
+ algorithms: ['HS256'],
227
+ audiences: [],
228
+ clients: [],
229
+ scopes: [],
230
+ claims: {},
231
+ lifetimeSeconds: 86400,
232
+ },
233
+ workload: {
234
+ token: 'none',
235
+ lifetimeSeconds: 0,
236
+ },
237
+ credentials: {
238
+ vault: 'datalayer',
239
+ providers: [
240
+ {
241
+ name: 'google-workspace',
242
+ kind: 'oauth2',
243
+ flow: 'user-federation',
244
+ scopes: ['https://www.googleapis.com/auth/gmail.readonly'],
245
+ },
246
+ {
247
+ name: 'github',
248
+ kind: 'oauth2',
249
+ flow: 'user-federation',
250
+ scopes: ['read:user', 'repo'],
251
+ },
252
+ ],
253
+ },
254
+ custody: {
255
+ keys: 'shared-secret',
256
+ algorithm: 'HS256',
257
+ },
258
+ consent: {
259
+ by: 'person',
260
+ hostedBy: 'datalayer',
261
+ binding: false,
262
+ },
263
+ enabled: true,
264
+ tags: ['datalayer', 'person'],
265
+ icon: 'person',
266
+ emoji: '🧑',
267
+ };
268
+ export const DATALAYER_SERVICE_AGENT_IDENTITY_0_0_1 = {
269
+ id: 'datalayer-service-agent',
270
+ version: '0.0.1',
271
+ name: 'Service agent',
272
+ description: "An agent that works unattended for an organization (a schedule, a trigger, a team's worker): a service principal that obtains its token with OAuth 2.0 client credentials, scoped by the organization's policy.",
273
+ subject: 'service',
274
+ provider: 'datalayer',
275
+ protocols: [],
276
+ inbound: {
277
+ kind: 'jwt',
278
+ issuer: 'https://prod1.datalayer.run/api/iam/v1/oauth',
279
+ discoveryUrl: '',
280
+ algorithms: ['HS256'],
281
+ audiences: [],
282
+ clients: [],
283
+ scopes: [],
284
+ claims: {},
285
+ lifetimeSeconds: 0,
286
+ },
287
+ workload: {
288
+ token: 'client-credentials',
289
+ lifetimeSeconds: 3600,
290
+ },
291
+ credentials: {
292
+ vault: 'datalayer',
293
+ providers: [],
294
+ },
295
+ custody: {
296
+ keys: 'shared-secret',
297
+ algorithm: 'HS256',
298
+ },
299
+ consent: {
300
+ by: 'organization',
301
+ hostedBy: 'datalayer',
302
+ binding: false,
303
+ },
304
+ enabled: true,
305
+ tags: ['datalayer', 'service'],
306
+ icon: 'server',
307
+ emoji: '⚙️',
308
+ };
309
+ export const DATALAYER_VISITOR_IDENTITY_0_0_1 = {
310
+ id: 'datalayer-visitor',
311
+ version: '0.0.1',
312
+ name: 'Visitor',
313
+ description: 'Someone talking to an embedded or public application without an account: an ephemeral identity, no vault, never asked to consent to a third party; a tool that needs one is refused in a sentence.',
314
+ subject: 'visitor',
315
+ provider: 'datalayer',
316
+ protocols: [],
317
+ inbound: {
318
+ kind: 'jwt',
319
+ issuer: 'https://prod1.datalayer.run/api/iam/v1/oauth',
320
+ discoveryUrl: '',
321
+ algorithms: ['HS256'],
322
+ audiences: [],
323
+ clients: [],
324
+ scopes: [],
325
+ claims: {},
326
+ lifetimeSeconds: 3600,
327
+ },
328
+ workload: {
329
+ token: 'none',
330
+ lifetimeSeconds: 0,
331
+ },
332
+ credentials: {
333
+ vault: 'none',
334
+ providers: [],
335
+ },
336
+ custody: {
337
+ keys: 'shared-secret',
338
+ algorithm: 'HS256',
339
+ },
340
+ consent: {
341
+ by: 'none',
342
+ hostedBy: 'none',
343
+ binding: false,
344
+ },
345
+ enabled: true,
346
+ tags: ['datalayer', 'visitor'],
347
+ icon: 'eye',
348
+ emoji: '👀',
349
+ };
350
+ export const ORGANIZATION_OIDC_IDENTITY_0_0_1 = {
351
+ id: 'organization-oidc',
352
+ version: '0.0.1',
353
+ name: 'Organization sign-in (OIDC)',
354
+ description: "An organization's own OpenID Connect provider (Entra ID, Okta, Google), registered on Datalayer for enterprise sign-in and SCIM: its issuer is checked against its discovery document and its keys.",
355
+ subject: 'organization',
356
+ provider: 'oidc',
357
+ protocols: [],
358
+ inbound: {
359
+ kind: 'jwt',
360
+ issuer: 'https://login.example.com',
361
+ discoveryUrl: 'https://login.example.com/.well-known/openid-configuration',
362
+ algorithms: ['RS256'],
363
+ audiences: [],
364
+ clients: [],
365
+ scopes: [],
366
+ claims: {},
367
+ lifetimeSeconds: 0,
368
+ },
369
+ workload: {
370
+ token: 'none',
371
+ lifetimeSeconds: 0,
372
+ },
373
+ credentials: {
374
+ vault: 'none',
375
+ providers: [],
376
+ },
377
+ custody: {
378
+ keys: 'provider',
379
+ algorithm: 'RS256',
380
+ },
381
+ consent: {
382
+ by: 'organization',
383
+ hostedBy: 'provider',
384
+ binding: false,
385
+ },
386
+ enabled: true,
387
+ tags: ['enterprise', 'sso'],
388
+ icon: 'organization',
389
+ emoji: '🏢',
390
+ };
391
+ export const PAP_COMPANY_IDENTITY_0_0_1 = {
392
+ id: 'pap-company',
393
+ version: '0.0.1',
394
+ name: 'PAP company',
395
+ description: 'A business answering the personal agents its customers bring: it verifies their client assertions and DPoP proofs against the published keys, signs the person in by itself or mediated, and holds one Account Token per person and application.',
396
+ subject: 'organization',
397
+ provider: 'pap',
398
+ protocols: ['pap', 'pact'],
399
+ inbound: {
400
+ kind: 'dpop',
401
+ issuer: '',
402
+ discoveryUrl: '',
403
+ algorithms: ['ES256'],
404
+ audiences: [],
405
+ clients: [],
406
+ scopes: [],
407
+ claims: {},
408
+ lifetimeSeconds: 0,
409
+ },
410
+ workload: {
411
+ token: 'none',
412
+ lifetimeSeconds: 0,
413
+ },
414
+ credentials: {
415
+ vault: 'datalayer',
416
+ providers: [],
417
+ },
418
+ custody: {
419
+ keys: 'vault-transit',
420
+ algorithm: 'ES256',
421
+ },
422
+ consent: {
423
+ by: 'person',
424
+ hostedBy: 'provider',
425
+ binding: true,
426
+ },
427
+ pap: {
428
+ roles: ['company'],
429
+ clientIdPerApplication: true,
430
+ pairwise: true,
431
+ dpop: true,
432
+ },
433
+ enabled: true,
434
+ tags: ['pap', 'company'],
435
+ icon: 'briefcase',
436
+ emoji: '🏪',
437
+ };
438
+ export const PAP_PERSON_IDENTITY_0_0_1 = {
439
+ id: 'pap-person',
440
+ version: '0.0.1',
441
+ name: 'PAP person, for themselves',
442
+ description: 'A person who connects their own account at a company, with no application acting for them: the tenant is the person, pairwise and DPoP-bound as an application is.',
443
+ subject: 'person',
444
+ provider: 'pap',
445
+ protocols: ['pap'],
446
+ inbound: {
447
+ kind: 'dpop',
448
+ issuer: '',
449
+ discoveryUrl: '',
450
+ algorithms: ['ES256'],
451
+ audiences: [],
452
+ clients: [],
453
+ scopes: [],
454
+ claims: {},
455
+ lifetimeSeconds: 0,
456
+ },
457
+ workload: {
458
+ token: 'none',
459
+ lifetimeSeconds: 0,
460
+ },
461
+ credentials: {
462
+ vault: 'datalayer',
463
+ providers: [],
464
+ },
465
+ custody: {
466
+ keys: 'vault-transit',
467
+ algorithm: 'ES256',
468
+ },
469
+ consent: {
470
+ by: 'person',
471
+ hostedBy: 'datalayer',
472
+ binding: true,
473
+ },
474
+ pap: {
475
+ roles: ['personal-agent'],
476
+ clientIdPerApplication: false,
477
+ pairwise: true,
478
+ dpop: true,
479
+ },
480
+ enabled: true,
481
+ tags: ['pap', 'person'],
482
+ icon: 'person',
483
+ emoji: '🧑‍💼',
484
+ };
485
+ export const PAP_PERSONAL_AGENT_IDENTITY_0_0_1 = {
486
+ id: 'pap-personal-agent',
487
+ version: '0.0.1',
488
+ name: 'PAP personal agent',
489
+ description: 'An application acting for a person at a company, under the Personal Agent Protocol: one client id per application published with its keys, a pairwise user id per company that companies cannot link, DPoP-bound tokens, keys signed in Vault transit and never handed to a runtime.',
490
+ subject: 'application',
491
+ provider: 'pap',
492
+ protocols: ['pap', 'web-bot-auth'],
493
+ inbound: {
494
+ kind: 'dpop',
495
+ issuer: '',
496
+ discoveryUrl: '',
497
+ algorithms: ['ES256'],
498
+ audiences: [],
499
+ clients: [],
500
+ scopes: [],
501
+ claims: {},
502
+ lifetimeSeconds: 0,
503
+ },
504
+ workload: {
505
+ token: 'acting',
506
+ lifetimeSeconds: 0,
507
+ },
508
+ credentials: {
509
+ vault: 'datalayer',
510
+ providers: [],
511
+ },
512
+ custody: {
513
+ keys: 'vault-transit',
514
+ algorithm: 'ES256',
515
+ },
516
+ consent: {
517
+ by: 'person',
518
+ hostedBy: 'datalayer',
519
+ binding: true,
520
+ },
521
+ pap: {
522
+ roles: ['personal-agent'],
523
+ clientIdPerApplication: true,
524
+ pairwise: true,
525
+ dpop: true,
526
+ },
527
+ enabled: true,
528
+ tags: ['pap', 'personal-agent'],
529
+ icon: 'person',
530
+ emoji: '🙋',
531
+ };
532
+ export const WEB_BOT_AUTH_AGENT_IDENTITY_0_0_1 = {
533
+ id: 'web-bot-auth-agent',
534
+ version: '0.0.1',
535
+ name: 'Signed web agent',
536
+ description: "An agent whose outbound requests are signed (HTTP Message Signatures, RFC 9421) with a key a website checks against the agent's published key directory, so a site knows which agent is calling.",
537
+ subject: 'agent',
538
+ provider: 'datalayer',
539
+ protocols: ['web-bot-auth'],
540
+ inbound: {
541
+ kind: 'http-signature',
542
+ issuer: '',
543
+ discoveryUrl: '',
544
+ algorithms: ['Ed25519'],
545
+ audiences: [],
546
+ clients: [],
547
+ scopes: [],
548
+ claims: {},
549
+ lifetimeSeconds: 0,
550
+ },
551
+ workload: {
552
+ token: 'none',
553
+ lifetimeSeconds: 0,
554
+ },
555
+ credentials: {
556
+ vault: 'none',
557
+ providers: [],
558
+ },
559
+ custody: {
560
+ keys: 'vault-transit',
561
+ algorithm: 'Ed25519',
562
+ },
563
+ consent: {
564
+ by: 'none',
565
+ hostedBy: 'none',
566
+ binding: false,
567
+ },
568
+ enabled: true,
569
+ tags: ['web-bot-auth', 'agent'],
570
+ icon: 'globe',
571
+ emoji: '✍️',
572
+ };
573
+ export const IDENTITY_CATALOGUE = {
574
+ 'aws-agentcore-gateway': AWS_AGENTCORE_GATEWAY_IDENTITY_0_0_1,
575
+ 'aws-agentcore-runtime': AWS_AGENTCORE_RUNTIME_IDENTITY_0_0_1,
576
+ 'aws-agentcore-vault': AWS_AGENTCORE_VAULT_IDENTITY_0_0_1,
577
+ 'datalayer-acting-agent': DATALAYER_ACTING_AGENT_IDENTITY_0_0_1,
578
+ 'datalayer-person': DATALAYER_PERSON_IDENTITY_0_0_1,
579
+ 'datalayer-service-agent': DATALAYER_SERVICE_AGENT_IDENTITY_0_0_1,
580
+ 'datalayer-visitor': DATALAYER_VISITOR_IDENTITY_0_0_1,
581
+ 'organization-oidc': ORGANIZATION_OIDC_IDENTITY_0_0_1,
582
+ 'pap-company': PAP_COMPANY_IDENTITY_0_0_1,
583
+ 'pap-person': PAP_PERSON_IDENTITY_0_0_1,
584
+ 'pap-personal-agent': PAP_PERSONAL_AGENT_IDENTITY_0_0_1,
585
+ 'web-bot-auth-agent': WEB_BOT_AUTH_AGENT_IDENTITY_0_0_1,
586
+ };
587
+ /** A Identity, by `id` or `id:version`, or undefined. */
588
+ export function getIdentity(ref) {
589
+ // Own entries only: `constructor` and `toString` are not Identitys.
590
+ const own = (id) => Object.prototype.hasOwnProperty.call(IDENTITY_CATALOGUE, id)
591
+ ? IDENTITY_CATALOGUE[id]
592
+ : undefined;
593
+ const at = ref.lastIndexOf(':');
594
+ return (own(ref) ??
595
+ (at > 0 && ref.slice(at + 1).includes('.')
596
+ ? own(ref.slice(0, at))
597
+ : undefined));
598
+ }
599
+ export function listIdentities() {
600
+ return Object.values(IDENTITY_CATALOGUE);
601
+ }