@dfns/sdk 0.8.7 → 0.8.9

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.
@@ -72,10 +72,11 @@ export type CreateAllocationResponse = {
72
72
  kind: "Deposit" | "Withdraw";
73
73
  /** Status of the allocation action. Once initiated, the status will be InProgress, after processing it will be Completed or Failed. */
74
74
  status: "PendingPolicyApproval" | "InProgress" | "Completed" | "Failed" | "Rejected";
75
+ /** The user who initiated the request. */
75
76
  requester: {
76
- /** User (could be a service account) who requested the resource. */
77
+ /** User id. */
77
78
  userId: string;
78
- /** Service Account token or Personal Access token used when requesting the resource. */
79
+ /** Token id. */
79
80
  tokenId?: string | undefined;
80
81
  };
81
82
  /** The full request used for initiating this allocation action. */
@@ -200,10 +201,11 @@ export type CreateAllocationActionResponse = {
200
201
  kind: "Deposit" | "Withdraw";
201
202
  /** Status of the allocation action. Once initiated, the status will be InProgress, after processing it will be Completed or Failed. */
202
203
  status: "PendingPolicyApproval" | "InProgress" | "Completed" | "Failed" | "Rejected";
204
+ /** The user who initiated the request. */
203
205
  requester: {
204
- /** User (could be a service account) who requested the resource. */
206
+ /** User id. */
205
207
  userId: string;
206
- /** Service Account token or Personal Access token used when requesting the resource. */
208
+ /** Token id. */
207
209
  tokenId?: string | undefined;
208
210
  };
209
211
  /** The full request used for initiating this allocation action. */
@@ -310,10 +312,11 @@ export type GetAllocationResponse = {
310
312
  kind: "Deposit" | "Withdraw";
311
313
  /** Status of the allocation action. Once initiated, the status will be InProgress, after processing it will be Completed or Failed. */
312
314
  status: "PendingPolicyApproval" | "InProgress" | "Completed" | "Failed" | "Rejected";
315
+ /** The user who initiated the request. */
313
316
  requester: {
314
- /** User (could be a service account) who requested the resource. */
317
+ /** User id. */
315
318
  userId: string;
316
- /** Service Account token or Personal Access token used when requesting the resource. */
319
+ /** Token id. */
317
320
  tokenId?: string | undefined;
318
321
  };
319
322
  /** The full request used for initiating this allocation action. */
@@ -383,10 +386,11 @@ export type ListAllocationActionsResponse = {
383
386
  kind: "Deposit" | "Withdraw";
384
387
  /** Status of the allocation action. Once initiated, the status will be InProgress, after processing it will be Completed or Failed. */
385
388
  status: "PendingPolicyApproval" | "InProgress" | "Completed" | "Failed" | "Rejected";
389
+ /** The user who initiated the request. */
386
390
  requester: {
387
- /** User (could be a service account) who requested the resource. */
391
+ /** User id. */
388
392
  userId: string;
389
- /** Service Account token or Personal Access token used when requesting the resource. */
393
+ /** Token id. */
390
394
  tokenId?: string | undefined;
391
395
  };
392
396
  /** The full request used for initiating this allocation action. */
@@ -1096,7 +1096,7 @@ export type CreateUserBody = {
1096
1096
  /** Value that can be used to correlate the entity with an external system. */
1097
1097
  externalId?: string | undefined;
1098
1098
  /** If set to true, the user will have to authenticate via SSO */
1099
- isSSORequired?: boolean;
1099
+ isSSORequired?: boolean | undefined;
1100
1100
  };
1101
1101
  export type CreateUserResponse = {
1102
1102
  username: string;
@@ -2153,8 +2153,9 @@ export type RegisterEndUserResponse = {
2153
2153
  signingKey: {
2154
2154
  /** Key id. */
2155
2155
  id: string;
2156
- /** Key scheme. */
2156
+ /** The cryptographic scheme for the key. */
2157
2157
  scheme: "DH" | "ECDSA" | "EdDSA" | "Schnorr";
2158
+ /** The elliptic curve for the key. */
2158
2159
  curve: "ed25519" | "secp256k1" | "stark";
2159
2160
  /** Hex-encoded value of the public key. */
2160
2161
  publicKey: string;
@@ -233,8 +233,11 @@ export type CreateDepositResponse = {
233
233
  exchangeReference?: string | undefined;
234
234
  kind: "Withdrawal" | "Deposit";
235
235
  walletId: string;
236
+ /** The user who initiated the request. */
236
237
  requester: {
238
+ /** User id. */
237
239
  userId: string;
240
+ /** Token id. */
238
241
  tokenId?: string | undefined;
239
242
  };
240
243
  requestBody: {
@@ -723,8 +726,11 @@ export type CreateWithdrawalResponse = {
723
726
  exchangeReference?: string | undefined;
724
727
  kind: "Withdrawal" | "Deposit";
725
728
  walletId: string;
729
+ /** The user who initiated the request. */
726
730
  requester: {
731
+ /** User id. */
727
732
  userId: string;
733
+ /** Token id. */
728
734
  tokenId?: string | undefined;
729
735
  };
730
736
  requestBody: {
@@ -1037,6 +1043,10 @@ export type ListAssetWithdrawalNetworksResponse = (({
1037
1043
  } | {
1038
1044
  kind: "Hts";
1039
1045
  tokenId: string;
1046
+ } | {
1047
+ kind: "Iou";
1048
+ currency: string;
1049
+ issuer: string;
1040
1050
  } | {
1041
1051
  kind: "Cip56";
1042
1052
  instrumentId: string;
@@ -1044,6 +1054,9 @@ export type ListAssetWithdrawalNetworksResponse = (({
1044
1054
  } | {
1045
1055
  kind: "Coin" | "LockedCoin";
1046
1056
  coin: string;
1057
+ } | {
1058
+ kind: "Xls33";
1059
+ issuanceId: string;
1047
1060
  } | {
1048
1061
  kind: "Asset";
1049
1062
  assetId: string;
@@ -105,10 +105,13 @@ export type GetFeeSponsorResponse = {
105
105
  };
106
106
  export type GetFeeSponsorRequest = GetFeeSponsorParams;
107
107
  export type ListFeeSponsorsQuery = {
108
- limit?: string | undefined;
108
+ /** Maximum number of items to return. */
109
+ limit?: number | undefined;
110
+ /** Opaque token used to retrieve the next page. Returned as `nextPageToken` from the previous request. */
109
111
  paginationToken?: string | undefined;
110
112
  };
111
113
  export type ListFeeSponsorsResponse = {
114
+ /** Current page items. */
112
115
  items: {
113
116
  /** Fee Sponsor id. */
114
117
  id: string;
@@ -124,6 +127,7 @@ export type ListFeeSponsorsResponse = {
124
127
  /** Defines whether EndUsers and their delegated wallets can use this Fee Sponsor. */
125
128
  allowEndUser?: boolean | undefined;
126
129
  }[];
130
+ /** token to use as `paginationToken` to request the next page. */
127
131
  nextPageToken?: string | undefined;
128
132
  };
129
133
  export type ListFeeSponsorsRequest = {
@@ -1,34 +1,54 @@
1
1
  export type CreateKeyBody = {
2
+ /** The cryptographic scheme for the key. */
2
3
  scheme: "DH" | "ECDSA" | "EdDSA" | "Schnorr";
4
+ /** The elliptic curve for the key. */
3
5
  curve: "ed25519" | "secp256k1" | "stark";
6
+ /** Nickname for the key. */
4
7
  name?: string | undefined;
8
+ /** Whether this key can be used as a master key for HD derivation. */
5
9
  masterKey?: boolean | undefined;
10
+ /** Options for hierarchical deterministic key derivation. */
6
11
  deriveFrom?: {
7
- /** Key id. */
12
+ /** The master key to derive from. */
8
13
  keyId: string;
9
14
  /** Use this to specify the derivation path of the signing key. One will be auto generated if left blank. */
10
15
  path?: string | undefined;
11
16
  } | undefined;
17
+ /** The key store to save the key to. */
12
18
  storeId?: string | undefined;
19
+ /** ID of the end user to delegate this key to. */
13
20
  delegateTo?: string | undefined;
21
+ /** Whether to delay delegation until explicitly triggered. */
14
22
  delayDelegation?: boolean | undefined;
15
23
  };
16
24
  export type CreateKeyResponse = {
25
+ /** Unique identifier for the key. */
17
26
  id: string;
27
+ /** The cryptographic scheme for the key. */
18
28
  scheme: "DH" | "ECDSA" | "EdDSA" | "Schnorr";
29
+ /** The elliptic curve for the key. */
19
30
  curve: "ed25519" | "secp256k1" | "stark";
31
+ /** Hex-encoded public key. */
20
32
  publicKey: string;
33
+ /** Whether this key can be used as a master key for HD derivation. */
21
34
  masterKey?: boolean | undefined;
35
+ /** Derivation info if this key was derived from a master key. */
22
36
  derivedFrom?: {
23
- /** Key id. */
37
+ /** The master key this key was derived from. */
24
38
  keyId: string;
39
+ /** The derivation path used. */
25
40
  path: string;
26
41
  } | undefined;
42
+ /** Nickname for the key. */
27
43
  name?: string | undefined;
44
+ /** Current status of the key. */
28
45
  status: "Active" | "Archived";
46
+ /** Whether the key is custodial (owned by organization) or non-custodial (delegated to end user). */
29
47
  custodial: boolean;
30
48
  dateCreated: string;
49
+ /** Whether this key was imported. */
31
50
  imported?: boolean | undefined;
51
+ /** Whether this key has been exported. */
32
52
  exported?: boolean | undefined;
33
53
  dateExported?: string | undefined;
34
54
  dateDeleted?: string | undefined;
@@ -53,21 +73,33 @@ export type DeleteKeyParams = {
53
73
  keyId: string;
54
74
  };
55
75
  export type DeleteKeyResponse = {
76
+ /** Unique identifier for the key. */
56
77
  id: string;
78
+ /** The cryptographic scheme for the key. */
57
79
  scheme: "DH" | "ECDSA" | "EdDSA" | "Schnorr";
80
+ /** The elliptic curve for the key. */
58
81
  curve: "ed25519" | "secp256k1" | "stark";
82
+ /** Hex-encoded public key. */
59
83
  publicKey: string;
84
+ /** Whether this key can be used as a master key for HD derivation. */
60
85
  masterKey?: boolean | undefined;
86
+ /** Derivation info if this key was derived from a master key. */
61
87
  derivedFrom?: {
62
- /** Key id. */
88
+ /** The master key this key was derived from. */
63
89
  keyId: string;
90
+ /** The derivation path used. */
64
91
  path: string;
65
92
  } | undefined;
93
+ /** Nickname for the key. */
66
94
  name?: string | undefined;
95
+ /** Current status of the key. */
67
96
  status: "Active" | "Archived";
97
+ /** Whether the key is custodial (owned by organization) or non-custodial (delegated to end user). */
68
98
  custodial: boolean;
69
99
  dateCreated: string;
100
+ /** Whether this key was imported. */
70
101
  imported?: boolean | undefined;
102
+ /** Whether this key has been exported. */
71
103
  exported?: boolean | undefined;
72
104
  dateExported?: string | undefined;
73
105
  dateDeleted?: string | undefined;
@@ -240,7 +272,7 @@ export type GenerateSignatureBody = {
240
272
  } | {
241
273
  kind: "SignerPayload";
242
274
  /** The unsigned Signer Payload formatted as JSON, or as a serialized hex-encoded buffer.
243
-
275
+
244
276
  Please refer to the original Polkadot definition for more details: [SignerPayloadJson](https://github.com/polkadot-js/api/blob/v16.2.2/packages/types/src/types/extrinsic.ts#L32). Note that additional fields will be rejected.
245
277
 
246
278
  | Field | Description | Type - Optional |
@@ -299,13 +331,19 @@ export type GenerateSignatureBody = {
299
331
  externalId?: string | undefined;
300
332
  };
301
333
  export type GenerateSignatureParams = {
334
+ /** The key to sign with. */
302
335
  keyId: string;
303
336
  };
304
337
  export type GenerateSignatureResponse = {
338
+ /** Signature id. */
305
339
  id: string;
340
+ /** Key id. */
306
341
  keyId: string;
342
+ /** The user who initiated the request. */
307
343
  requester: {
344
+ /** User id. */
308
345
  userId: string;
346
+ /** Token id. */
309
347
  tokenId?: string | undefined;
310
348
  };
311
349
  requestBody: {
@@ -435,7 +473,7 @@ export type GenerateSignatureResponse = {
435
473
  } | {
436
474
  kind: "SignerPayload";
437
475
  /** The unsigned Signer Payload formatted as JSON, or as a serialized hex-encoded buffer.
438
-
476
+
439
477
  Please refer to the original Polkadot definition for more details: [SignerPayloadJson](https://github.com/polkadot-js/api/blob/v16.2.2/packages/types/src/types/extrinsic.ts#L32). Note that additional fields will be rejected.
440
478
 
441
479
  | Field | Description | Type - Optional |
@@ -522,48 +560,76 @@ export type GenerateSignatureRequest = GenerateSignatureParams & {
522
560
  body: GenerateSignatureBody;
523
561
  };
524
562
  export type GetKeyParams = {
563
+ /** The key to retrieve. */
525
564
  keyId: string;
526
565
  };
527
566
  export type GetKeyResponse = {
567
+ /** Unique identifier for the key. */
528
568
  id: string;
569
+ /** The cryptographic scheme for the key. */
529
570
  scheme: "DH" | "ECDSA" | "EdDSA" | "Schnorr";
571
+ /** The elliptic curve for the key. */
530
572
  curve: "ed25519" | "secp256k1" | "stark";
573
+ /** Hex-encoded public key. */
531
574
  publicKey: string;
575
+ /** Whether this key can be used as a master key for HD derivation. */
532
576
  masterKey?: boolean | undefined;
577
+ /** Derivation info if this key was derived from a master key. */
533
578
  derivedFrom?: {
534
- /** Key id. */
579
+ /** The master key this key was derived from. */
535
580
  keyId: string;
581
+ /** The derivation path used. */
536
582
  path: string;
537
583
  } | undefined;
584
+ /** Nickname for the key. */
538
585
  name?: string | undefined;
586
+ /** Current status of the key. */
539
587
  status: "Active" | "Archived";
588
+ /** Whether the key is custodial (owned by organization) or non-custodial (delegated to end user). */
540
589
  custodial: boolean;
541
590
  dateCreated: string;
591
+ /** Whether this key was imported. */
542
592
  imported?: boolean | undefined;
593
+ /** Whether this key has been exported. */
543
594
  exported?: boolean | undefined;
544
595
  dateExported?: string | undefined;
545
596
  dateDeleted?: string | undefined;
597
+ /** Wallets associated with this key. */
546
598
  wallets: {
599
+ /** The wallet id. */
547
600
  id: string;
601
+ /** The network of the wallet. */
548
602
  network: ("Algorand" | "AlgorandTestnet" | "Aptos" | "AptosTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "ArcTestnet" | "AvalancheC" | "AvalancheCFuji" | "Adi" | "AdiTestnet" | "AdiTestnetAb" | "BabylonGenesis" | "BabylonTestnet5" | "Base" | "BaseGoerli" | "BaseSepolia" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "Bitcoin" | "BitcoinSignet" | "BitcoinTestnet3" | "BitcoinCash" | "BitcoinCashTestnet" | "Bob" | "BobSepolia" | "Bsc" | "BscTestnet" | "Canton" | "CantonDevnet" | "CantonTestnet" | "Cardano" | "CardanoPreprod" | "Concordium" | "ConcordiumTestnet" | "Celo" | "CeloAlfajores" | "Codex" | "CodexSepolia" | "CosmosHub4" | "CosmosIcsTestnet" | "Dogecoin" | "DogecoinTestnet" | "Ethereum" | "EthereumClassic" | "EthereumClassicMordor" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "EthereumHoodi" | "FantomOpera" | "FantomTestnet" | "FlareC" | "FlareCCoston2" | "FlowEvm" | "FlowEvmTestnet" | "Hedera" | "HederaTestnet" | "Ink" | "InkSepolia" | "InternetComputer" | "Ion" | "IonTestnet" | "Iota" | "IotaTestnet" | "IotaZodianet" | "Kaspa" | "KaspaTestnet11" | "Kusama" | "KusamaAssetHub" | "Litecoin" | "LitecoinTestnet" | "Near" | "NearTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Origyn" | "Plasma" | "PlasmaTestnet" | "Plume" | "PlumeSepolia" | "Paseo" | "PaseoAssetHub" | "Polkadot" | "PolkadotAssetHub" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Polymesh" | "PolymeshTestnet" | "Race" | "RaceSepolia" | "SeiAtlantic2" | "SeiPacific1" | "Solana" | "SolanaDevnet" | "Sonic" | "SonicTestnet" | "Starknet" | "StarknetSepolia" | "Stellar" | "StellarTestnet" | "Sui" | "SuiTestnet" | "Tezos" | "TezosGhostnet" | "TempoAndantino" | "Tsc" | "TscTestnet1" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "Westend" | "WestendAssetHub" | "XrpLedger" | "XrpLedgerTestnet") | ("KeyECDSA" | "KeyEdDSA" | "KeyECDSAStark");
549
603
  }[];
604
+ /** Key store details. */
550
605
  store: {
606
+ /** The key store id. */
551
607
  id: string;
608
+ /** The type of key store. */
552
609
  kind: "Hsm" | "Mpc";
610
+ /** The key id within the store. */
553
611
  keyId: string;
612
+ /** The HD derivation path if applicable. */
554
613
  derivationPath?: string | undefined;
555
614
  };
556
615
  };
557
616
  export type GetKeyRequest = GetKeyParams;
558
617
  export type GetSignatureParams = {
618
+ /** The key that was used for signing. */
559
619
  keyId: string;
620
+ /** The signature request to retrieve. */
560
621
  signatureId: string;
561
622
  };
562
623
  export type GetSignatureResponse = {
624
+ /** Signature id. */
563
625
  id: string;
626
+ /** Key id. */
564
627
  keyId: string;
628
+ /** The user who initiated the request. */
565
629
  requester: {
630
+ /** User id. */
566
631
  userId: string;
632
+ /** Token id. */
567
633
  tokenId?: string | undefined;
568
634
  };
569
635
  requestBody: {
@@ -693,7 +759,7 @@ export type GetSignatureResponse = {
693
759
  } | {
694
760
  kind: "SignerPayload";
695
761
  /** The unsigned Signer Payload formatted as JSON, or as a serialized hex-encoded buffer.
696
-
762
+
697
763
  Please refer to the original Polkadot definition for more details: [SignerPayloadJson](https://github.com/polkadot-js/api/blob/v16.2.2/packages/types/src/types/extrinsic.ts#L32). Note that additional fields will be rejected.
698
764
 
699
765
  | Field | Description | Type - Optional |
@@ -790,21 +856,33 @@ export type ImportKeyBody = {
790
856
  masterKey?: boolean | undefined;
791
857
  };
792
858
  export type ImportKeyResponse = {
859
+ /** Unique identifier for the key. */
793
860
  id: string;
861
+ /** The cryptographic scheme for the key. */
794
862
  scheme: "DH" | "ECDSA" | "EdDSA" | "Schnorr";
863
+ /** The elliptic curve for the key. */
795
864
  curve: "ed25519" | "secp256k1" | "stark";
865
+ /** Hex-encoded public key. */
796
866
  publicKey: string;
867
+ /** Whether this key can be used as a master key for HD derivation. */
797
868
  masterKey?: boolean | undefined;
869
+ /** Derivation info if this key was derived from a master key. */
798
870
  derivedFrom?: {
799
- /** Key id. */
871
+ /** The master key this key was derived from. */
800
872
  keyId: string;
873
+ /** The derivation path used. */
801
874
  path: string;
802
875
  } | undefined;
876
+ /** Nickname for the key. */
803
877
  name?: string | undefined;
878
+ /** Current status of the key. */
804
879
  status: "Active" | "Archived";
880
+ /** Whether the key is custodial (owned by organization) or non-custodial (delegated to end user). */
805
881
  custodial: boolean;
806
882
  dateCreated: string;
883
+ /** Whether this key was imported. */
807
884
  imported?: boolean | undefined;
885
+ /** Whether this key has been exported. */
808
886
  exported?: boolean | undefined;
809
887
  dateExported?: string | undefined;
810
888
  dateDeleted?: string | undefined;
@@ -813,50 +891,75 @@ export type ImportKeyRequest = {
813
891
  body: ImportKeyBody;
814
892
  };
815
893
  export type ListKeysQuery = {
816
- limit?: string | undefined;
894
+ /** Maximum number of items to return. */
895
+ limit?: number | undefined;
896
+ /** Opaque token used to retrieve the next page. Returned as `nextPageToken` from the previous request. */
817
897
  paginationToken?: string | undefined;
898
+ /** Filter by owner id or username. */
818
899
  owner?: string | undefined;
819
900
  };
820
901
  export type ListKeysResponse = {
902
+ /** Current page items. */
821
903
  items: {
904
+ /** Unique identifier for the key. */
822
905
  id: string;
906
+ /** The cryptographic scheme for the key. */
823
907
  scheme: "DH" | "ECDSA" | "EdDSA" | "Schnorr";
908
+ /** The elliptic curve for the key. */
824
909
  curve: "ed25519" | "secp256k1" | "stark";
910
+ /** Hex-encoded public key. */
825
911
  publicKey: string;
912
+ /** Whether this key can be used as a master key for HD derivation. */
826
913
  masterKey?: boolean | undefined;
914
+ /** Derivation info if this key was derived from a master key. */
827
915
  derivedFrom?: {
828
- /** Key id. */
916
+ /** The master key this key was derived from. */
829
917
  keyId: string;
918
+ /** The derivation path used. */
830
919
  path: string;
831
920
  } | undefined;
921
+ /** Nickname for the key. */
832
922
  name?: string | undefined;
923
+ /** Current status of the key. */
833
924
  status: "Active" | "Archived";
925
+ /** Whether the key is custodial (owned by organization) or non-custodial (delegated to end user). */
834
926
  custodial: boolean;
835
927
  dateCreated: string;
928
+ /** Whether this key was imported. */
836
929
  imported?: boolean | undefined;
930
+ /** Whether this key has been exported. */
837
931
  exported?: boolean | undefined;
838
932
  dateExported?: string | undefined;
839
933
  dateDeleted?: string | undefined;
840
934
  }[];
935
+ /** token to use as `paginationToken` to request the next page. */
841
936
  nextPageToken?: string | undefined;
842
937
  };
843
938
  export type ListKeysRequest = {
844
939
  query?: ListKeysQuery;
845
940
  };
846
941
  export type ListSignaturesParams = {
942
+ /** The key to list signatures for. */
847
943
  keyId: string;
848
944
  };
849
945
  export type ListSignaturesQuery = {
850
- limit?: string | undefined;
946
+ /** Maximum number of items to return. */
947
+ limit?: number | undefined;
948
+ /** Opaque token used to retrieve the next page. Returned as `nextPageToken` from the previous request. */
851
949
  paginationToken?: string | undefined;
852
950
  };
853
951
  export type ListSignaturesResponse = {
854
- keyId: string;
952
+ /** Current page items. */
855
953
  items: {
954
+ /** Signature id. */
856
955
  id: string;
956
+ /** Key id. */
857
957
  keyId: string;
958
+ /** The user who initiated the request. */
858
959
  requester: {
960
+ /** User id. */
859
961
  userId: string;
962
+ /** Token id. */
860
963
  tokenId?: string | undefined;
861
964
  };
862
965
  requestBody: {
@@ -986,7 +1089,7 @@ export type ListSignaturesResponse = {
986
1089
  } | {
987
1090
  kind: "SignerPayload";
988
1091
  /** The unsigned Signer Payload formatted as JSON, or as a serialized hex-encoded buffer.
989
-
1092
+
990
1093
  Please refer to the original Polkadot definition for more details: [SignerPayloadJson](https://github.com/polkadot-js/api/blob/v16.2.2/packages/types/src/types/extrinsic.ts#L32). Note that additional fields will be rejected.
991
1094
 
992
1095
  | Field | Description | Type - Optional |
@@ -1069,7 +1172,10 @@ export type ListSignaturesResponse = {
1069
1172
  dateConfirmed?: string | undefined;
1070
1173
  externalId?: string | undefined;
1071
1174
  }[];
1175
+ /** token to use as `paginationToken` to request the next page. */
1072
1176
  nextPageToken?: string | undefined;
1177
+ /** The key these signatures belong to. */
1178
+ keyId: string;
1073
1179
  };
1074
1180
  export type ListSignaturesRequest = ListSignaturesParams & {
1075
1181
  query?: ListSignaturesQuery;
@@ -1081,21 +1187,33 @@ export type UpdateKeyParams = {
1081
1187
  keyId: string;
1082
1188
  };
1083
1189
  export type UpdateKeyResponse = {
1190
+ /** Unique identifier for the key. */
1084
1191
  id: string;
1192
+ /** The cryptographic scheme for the key. */
1085
1193
  scheme: "DH" | "ECDSA" | "EdDSA" | "Schnorr";
1194
+ /** The elliptic curve for the key. */
1086
1195
  curve: "ed25519" | "secp256k1" | "stark";
1196
+ /** Hex-encoded public key. */
1087
1197
  publicKey: string;
1198
+ /** Whether this key can be used as a master key for HD derivation. */
1088
1199
  masterKey?: boolean | undefined;
1200
+ /** Derivation info if this key was derived from a master key. */
1089
1201
  derivedFrom?: {
1090
- /** Key id. */
1202
+ /** The master key this key was derived from. */
1091
1203
  keyId: string;
1204
+ /** The derivation path used. */
1092
1205
  path: string;
1093
1206
  } | undefined;
1207
+ /** Nickname for the key. */
1094
1208
  name?: string | undefined;
1209
+ /** Current status of the key. */
1095
1210
  status: "Active" | "Archived";
1211
+ /** Whether the key is custodial (owned by organization) or non-custodial (delegated to end user). */
1096
1212
  custodial: boolean;
1097
1213
  dateCreated: string;
1214
+ /** Whether this key was imported. */
1098
1215
  imported?: boolean | undefined;
1216
+ /** Whether this key has been exported. */
1099
1217
  exported?: boolean | undefined;
1100
1218
  dateExported?: string | undefined;
1101
1219
  dateDeleted?: string | undefined;
@@ -124,7 +124,7 @@ export type GetFeesQuery = {
124
124
  };
125
125
  export type GetFeesResponse = {
126
126
  kind: "Bitcoin";
127
- network: ("Bitcoin" | "BitcoinSignet" | "BitcoinTestnet3") | ("Dogecoin" | "DogecoinTestnet") | ("Litecoin" | "LitecoinTestnet");
127
+ network: "Bitcoin" | "BitcoinSignet" | "BitcoinTestnet3" | "Litecoin" | "LitecoinTestnet" | "DogecoinTestnet" | "Dogecoin";
128
128
  blockNumber: number;
129
129
  slow: {
130
130
  feeRate: string;
@@ -56,7 +56,7 @@ export type DeleteAssignmentParams = {
56
56
  assignmentId: string;
57
57
  };
58
58
  export type DeleteAssignmentQuery = {
59
- force?: boolean;
59
+ force?: boolean | undefined;
60
60
  };
61
61
  export type DeleteAssignmentResponse = void | undefined;
62
62
  export type DeleteAssignmentRequest = DeleteAssignmentParams & {
@@ -77,6 +77,7 @@ export type GetPermissionResponse = {
77
77
  } & {
78
78
  pendingChangeRequest?: {
79
79
  id: string;
80
+ /** The user who initiated the change request. */
80
81
  requester: {
81
82
  userId: string;
82
83
  tokenId?: string | undefined;
@@ -114,6 +115,7 @@ export type ListAssignmentsResponse = {
114
115
  } & {
115
116
  pendingChangeRequest?: {
116
117
  id: string;
118
+ /** The user who initiated the change request. */
117
119
  requester: {
118
120
  userId: string;
119
121
  tokenId?: string | undefined;
@@ -154,6 +156,7 @@ export type ListPermissionsResponse = {
154
156
  } & {
155
157
  pendingChangeRequest?: {
156
158
  id: string;
159
+ /** The user who initiated the change request. */
157
160
  requester: {
158
161
  userId: string;
159
162
  tokenId?: string | undefined;