@metalabel/dfos-protocol 0.37.0 → 0.38.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/README.md CHANGED
@@ -18,8 +18,8 @@ package share one Zod install.
18
18
  ```ts
19
19
  // Chain verification
20
20
  import { verifyContentChain, verifyIdentityChain } from '@metalabel/dfos-protocol/chain';
21
- // Credentials (auth tokens + DFOS credentials)
22
- import { createAuthToken, createDFOSCredential } from '@metalabel/dfos-protocol/credentials';
21
+ // Credentials (DFOS credentials) and the API-AUTH proof envelope
22
+ import { createDFOSCredential, signApiIdentityRequest } from '@metalabel/dfos-protocol/credentials';
23
23
  // Crypto primitives
24
24
  import { createJws, dagCborCanonicalEncode, verifyJws } from '@metalabel/dfos-protocol/crypto';
25
25
  ```
@@ -1,5 +1,5 @@
1
- import { I as IdentityOperation, t as Signer, v as VerifiedIdentity, S as ServiceEntry, d as ContentOperation, R as RevocationChecker, e as CountersignPayload, a as ArtifactPayload } from '../dfos-credential-DU7WvoHE.js';
2
- export { A as ARTIFACT_CID_ANCHOR_RE, C as CONTENT_ID_ANCHOR_RE, g as CreditClaimPayload, h as Iso8601, M as MAX_ARTIFACT_PAYLOAD_SIZE, j as MAX_CREDIT_CLAIM_SIZE, k as MAX_OPERATION_SIZE, l as MAX_SERVICES_ENTRIES, m as MAX_SERVICES_PAYLOAD_SIZE, n as MAX_SIGN_REQUEST_PAYLOAD_SIZE, o as MAX_SIGN_REQUEST_SIZE, p as MultikeyPublicKey, q as RevocationPayload, r as ServicesArray, s as SignRequestPayload, B as parseProtocolTimestampUnix } from '../dfos-credential-DU7WvoHE.js';
1
+ import { I as IdentityOperation, s as Signer, u as VerifiedIdentity, S as ServiceEntry, c as ContentOperation, R as RevocationChecker, d as CountersignPayload, a as ArtifactPayload } from '../dfos-credential-X6uvPIth.js';
2
+ export { A as ARTIFACT_CID_ANCHOR_RE, C as CONTENT_ID_ANCHOR_RE, f as CreditClaimPayload, g as Iso8601, M as MAX_ARTIFACT_PAYLOAD_SIZE, i as MAX_CREDIT_CLAIM_SIZE, j as MAX_OPERATION_SIZE, k as MAX_SERVICES_ENTRIES, l as MAX_SERVICES_PAYLOAD_SIZE, m as MAX_SIGN_REQUEST_PAYLOAD_SIZE, n as MAX_SIGN_REQUEST_SIZE, o as MultikeyPublicKey, p as RevocationPayload, q as ServicesArray, r as SignRequestPayload, z as parseProtocolTimestampUnix } from '../dfos-credential-X6uvPIth.js';
3
3
  import 'zod';
4
4
 
5
5
  /** Ed25519 public key multicodec value */
@@ -49,13 +49,13 @@ import {
49
49
  verifyIdentityExtensionFromTrustedState,
50
50
  verifyRevocation,
51
51
  verifySignRequest
52
- } from "../chunk-W7IFQNUH.js";
52
+ } from "../chunk-SGPSXM56.js";
53
53
  import {
54
54
  ED25519_PRIV_MULTICODEC,
55
55
  ED25519_PUB_MULTICODEC,
56
56
  decodeMultikey,
57
57
  encodeEd25519Multikey
58
- } from "../chunk-XP644GQK.js";
58
+ } from "../chunk-NXQW6EBF.js";
59
59
  import "../chunk-4LG2GEB2.js";
60
60
  export {
61
61
  ARTIFACT_CID_ANCHOR_RE,