@terminal3/t3n-sdk 4.0.2 → 4.0.4
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/dist/cli/index.js +1 -1
- package/dist/index.d.ts +24 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2456,11 +2456,24 @@ declare function compactDidFromBytes(bytes: Uint8Array): string;
|
|
|
2456
2456
|
interface CreatePolicyInput {
|
|
2457
2457
|
orgDid: string;
|
|
2458
2458
|
initialAdminDid: string;
|
|
2459
|
+
/**
|
|
2460
|
+
* Maximum number of admins for the org (`u32`). Optional — **defaults to
|
|
2461
|
+
* `16`** when omitted at create time. The contract enforces a **hard ceiling
|
|
2462
|
+
* of `64`** (`MaxAdminsExceedsHardCap`) and rejects a value below the current
|
|
2463
|
+
* admin-list length (`AdminLimitExceeded`).
|
|
2464
|
+
*/
|
|
2459
2465
|
maxAdmins?: number;
|
|
2460
2466
|
}
|
|
2461
2467
|
interface UpdateMetaInput {
|
|
2462
2468
|
orgDid: string;
|
|
2463
2469
|
admins: string[];
|
|
2470
|
+
/**
|
|
2471
|
+
* Maximum number of admins for the org (`u32`). Optional — when omitted, the
|
|
2472
|
+
* org's **current cap is preserved** (it is not reset to the default). Same
|
|
2473
|
+
* contract bounds as at create time: hard ceiling of `64`
|
|
2474
|
+
* (`MaxAdminsExceedsHardCap`), and the value must be ≥ the new admin-list
|
|
2475
|
+
* length (`AdminLimitExceeded`).
|
|
2476
|
+
*/
|
|
2464
2477
|
maxAdmins?: number;
|
|
2465
2478
|
/**
|
|
2466
2479
|
* Per-org ceiling on delegation-credential validity (seconds).
|
|
@@ -2507,7 +2520,17 @@ type WriteDataInput = (WriteDataInputBase & {
|
|
|
2507
2520
|
clientSeqNo?: number;
|
|
2508
2521
|
}) | (WriteDataInputBase & {
|
|
2509
2522
|
entryId?: never;
|
|
2510
|
-
/**
|
|
2523
|
+
/**
|
|
2524
|
+
* Client-supplied counter used to derive the entry ID. A non-negative
|
|
2525
|
+
* integer (`u64` on the wire). Required in this arm (when `entryId` is
|
|
2526
|
+
* omitted) — the contract rejects the write with `MissingClientSeqNo` if
|
|
2527
|
+
* neither is supplied. It feeds the SHA-256 derivation of the entry ID
|
|
2528
|
+
* from `(orgDid, scope, writerDid, clientSeqNo)`, so a value that
|
|
2529
|
+
* resolves to an already-existing entry fails with
|
|
2530
|
+
* `DerivedEntryIdCollision`; bump to the next value to retry.
|
|
2531
|
+
* Monotonicity is a usage convention — neither the SDK nor the contract
|
|
2532
|
+
* enforces it.
|
|
2533
|
+
*/
|
|
2511
2534
|
clientSeqNo: number;
|
|
2512
2535
|
});
|
|
2513
2536
|
interface DeleteDataInput {
|