@calimero-network/mero-js 19.25.0 → 19.26.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.
@@ -534,6 +534,10 @@ export declare class AdminApiClient {
534
534
  joinSubgroupInheritance(groupId: string): Promise<JoinSubgroupInheritanceResponseData>;
535
535
  getTeeInfo(): Promise<TeeInfoResponseData>;
536
536
  teeAttest(request: TeeAttestRequest): Promise<TeeAttestResponseData>;
537
+ /**
538
+ * @deprecated Nodes no longer serve `/admin-api/tee/verify-quote` (removed in
539
+ * core#3262), so this fails. Verify quotes with `createQuoteVerifier`.
540
+ */
537
541
  teeVerifyQuote(request: TeeVerifyQuoteRequest): Promise<TeeVerifyQuoteResponseData>;
538
542
  getPeersCount(): Promise<{
539
543
  count: number;
@@ -1002,6 +1002,10 @@ export class AdminApiClient {
1002
1002
  async teeAttest(request) {
1003
1003
  return unwrap(await this.httpClient.post('/admin-api/tee/attest', request));
1004
1004
  }
1005
+ /**
1006
+ * @deprecated Nodes no longer serve `/admin-api/tee/verify-quote` (removed in
1007
+ * core#3262), so this fails. Verify quotes with `createQuoteVerifier`.
1008
+ */
1005
1009
  async teeVerifyQuote(request) {
1006
1010
  return unwrap(await this.httpClient.post('/admin-api/tee/verify-quote', request));
1007
1011
  }
@@ -1,3 +1,4 @@
1
+ import type { DcapCollateral } from '../sealed/verify.js';
1
2
  export { ApiResponse } from '../http-client/index.js';
2
3
  export interface HealthStatus {
3
4
  status: string;
@@ -1577,6 +1578,12 @@ export interface TeeAttestRequest {
1577
1578
  * as `transportPublicKey`. See `fetchAttestedTransportKey`.
1578
1579
  */
1579
1580
  bindTransportKey?: boolean;
1581
+ /**
1582
+ * Also return the Intel-signed collateral the quote is verified against, as
1583
+ * `collateral`, so the quote can be verified with nothing but the node. See
1584
+ * `createQuoteVerifier`. A node that predates it refuses the field.
1585
+ */
1586
+ includeCollateral?: boolean;
1580
1587
  }
1581
1588
  export interface QuoteHeader {
1582
1589
  version: number;
@@ -1617,12 +1624,23 @@ export interface TeeAttestResponseData {
1617
1624
  quote: Quote;
1618
1625
  /** Hex X25519 transport key, present only when the request set `bindTransportKey`. */
1619
1626
  transportPublicKey?: string;
1627
+ /**
1628
+ * The Intel-signed collateral the quote verifies against, present only when
1629
+ * the request set `includeCollateral` and the quote is not a mock.
1630
+ */
1631
+ collateral?: DcapCollateral;
1620
1632
  }
1633
+ /**
1634
+ * @deprecated Nodes no longer serve `/admin-api/tee/verify-quote` (removed in
1635
+ * core#3262), so a request for it fails. Verify quotes with
1636
+ * `createQuoteVerifier`.
1637
+ */
1621
1638
  export interface TeeVerifyQuoteRequest {
1622
1639
  quoteB64: string;
1623
1640
  nonce: string;
1624
1641
  expectedApplicationHash?: string;
1625
1642
  }
1643
+ /** @deprecated See {@link TeeVerifyQuoteRequest}. */
1626
1644
  export interface TeeVerifyQuoteResponseData {
1627
1645
  quoteVerified: boolean;
1628
1646
  nonceVerified: boolean;
@@ -1,5 +1,3 @@
1
- // Admin API Types — aligned with core server routes
2
- // All types use camelCase to match core's #[serde(rename_all = "camelCase")]
3
1
  /**
4
2
  * Hex-encode a string's UTF-8 bytes, for {@link AccountSignWithRootRequest.payload}.
5
3
  *