@bcts/xid 1.0.0-alpha.20 → 1.0.0-alpha.22
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/LICENSE +2 -1
- package/dist/index.cjs +36 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +12 -0
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +12 -0
- package/dist/index.d.mts.map +1 -1
- package/dist/index.iife.js +36 -0
- package/dist/index.iife.js.map +1 -1
- package/dist/index.mjs +36 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +15 -26
- package/src/delegate.ts +4 -0
- package/src/error.ts +4 -0
- package/src/index.ts +4 -0
- package/src/key.ts +4 -0
- package/src/name.ts +4 -0
- package/src/permissions.ts +4 -0
- package/src/privilege.ts +4 -0
- package/src/provenance.ts +4 -0
- package/src/service.ts +4 -0
- package/src/shared.ts +4 -0
- package/src/xid-document.ts +4 -0
package/LICENSE
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
Copyright © 2024 Blockchain Commons, LLC
|
|
2
|
-
Copyright © 2025-2026
|
|
2
|
+
Copyright © 2025-2026 Parity Technologies
|
|
3
|
+
|
|
3
4
|
|
|
4
5
|
Redistribution and use in source and binary forms, with or without modification,
|
|
5
6
|
are permitted provided that the following conditions are met:
|
package/dist/index.cjs
CHANGED
|
@@ -6,6 +6,10 @@ let _bcts_provenance_mark = require("@bcts/provenance-mark");
|
|
|
6
6
|
|
|
7
7
|
//#region src/error.ts
|
|
8
8
|
/**
|
|
9
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
10
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
11
|
+
*
|
|
12
|
+
*
|
|
9
13
|
* XID Error Types
|
|
10
14
|
*
|
|
11
15
|
* Error types returned when operating on XID Documents.
|
|
@@ -233,6 +237,10 @@ var XIDError = class XIDError extends Error {
|
|
|
233
237
|
//#endregion
|
|
234
238
|
//#region src/privilege.ts
|
|
235
239
|
/**
|
|
240
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
241
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
242
|
+
*
|
|
243
|
+
*
|
|
236
244
|
* XID Privileges
|
|
237
245
|
*
|
|
238
246
|
* Defines the various privileges that can be granted to keys and delegates
|
|
@@ -336,6 +344,10 @@ function privilegeFromEnvelope(envelope) {
|
|
|
336
344
|
//#endregion
|
|
337
345
|
//#region src/permissions.ts
|
|
338
346
|
/**
|
|
347
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
348
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
349
|
+
*
|
|
350
|
+
*
|
|
339
351
|
* XID Permissions
|
|
340
352
|
*
|
|
341
353
|
* Permissions management for XID documents, including allow and deny sets
|
|
@@ -472,6 +484,10 @@ var Permissions = class Permissions {
|
|
|
472
484
|
//#endregion
|
|
473
485
|
//#region src/name.ts
|
|
474
486
|
/**
|
|
487
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
488
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
489
|
+
*
|
|
490
|
+
*
|
|
475
491
|
* XID Name (Nickname) Interface
|
|
476
492
|
*
|
|
477
493
|
* Provides the HasNickname interface for objects that can have a nickname.
|
|
@@ -490,6 +506,10 @@ const HasNicknameMixin = { addNickname(obj, name) {
|
|
|
490
506
|
//#endregion
|
|
491
507
|
//#region src/shared.ts
|
|
492
508
|
/**
|
|
509
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
510
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
511
|
+
*
|
|
512
|
+
*
|
|
493
513
|
* Shared Reference Wrapper
|
|
494
514
|
*
|
|
495
515
|
* Provides a wrapper for shared references to objects.
|
|
@@ -551,6 +571,10 @@ var Shared = class Shared {
|
|
|
551
571
|
//#endregion
|
|
552
572
|
//#region src/key.ts
|
|
553
573
|
/**
|
|
574
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
575
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
576
|
+
*
|
|
577
|
+
*
|
|
554
578
|
* XID Key
|
|
555
579
|
*
|
|
556
580
|
* Represents a key in an XID document, containing public keys, optional private keys,
|
|
@@ -882,6 +906,10 @@ var Key = class Key {
|
|
|
882
906
|
//#endregion
|
|
883
907
|
//#region src/service.ts
|
|
884
908
|
/**
|
|
909
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
910
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
911
|
+
*
|
|
912
|
+
*
|
|
885
913
|
* XID Service
|
|
886
914
|
*
|
|
887
915
|
* Represents a service endpoint in an XID document, containing URI, key references,
|
|
@@ -1218,6 +1246,10 @@ var Delegate = class Delegate {
|
|
|
1218
1246
|
//#endregion
|
|
1219
1247
|
//#region src/provenance.ts
|
|
1220
1248
|
/**
|
|
1249
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
1250
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
1251
|
+
*
|
|
1252
|
+
*
|
|
1221
1253
|
* XID Provenance
|
|
1222
1254
|
*
|
|
1223
1255
|
* Represents provenance information in an XID document, containing a provenance mark
|
|
@@ -1513,6 +1545,10 @@ var Provenance = class Provenance {
|
|
|
1513
1545
|
//#endregion
|
|
1514
1546
|
//#region src/xid-document.ts
|
|
1515
1547
|
/**
|
|
1548
|
+
* Copyright © 2023-2026 Blockchain Commons, LLC
|
|
1549
|
+
* Copyright © 2025-2026 Parity Technologies
|
|
1550
|
+
*
|
|
1551
|
+
*
|
|
1516
1552
|
* XID Document
|
|
1517
1553
|
*
|
|
1518
1554
|
* Represents an XID document containing keys, delegates, services, and provenance.
|