@canton-network/wallet-gateway-remote 1.11.3 → 1.13.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.
Files changed (254) hide show
  1. package/README.md +105 -29
  2. package/dist/auth/jwt-auth-service.d.ts +5 -4
  3. package/dist/auth/jwt-auth-service.d.ts.map +1 -1
  4. package/dist/auth/jwt-auth-service.js +219 -78
  5. package/dist/config/Config.d.ts +194 -19
  6. package/dist/config/Config.d.ts.map +1 -1
  7. package/dist/config/Config.js +120 -6
  8. package/dist/config/ConfigUtils.d.ts +1 -1
  9. package/dist/config/ConfigUtils.d.ts.map +1 -1
  10. package/dist/config/ConfigUtils.js +46 -9
  11. package/dist/dapp-api/controller.d.ts +5 -7
  12. package/dist/dapp-api/controller.d.ts.map +1 -1
  13. package/dist/dapp-api/controller.js +43 -38
  14. package/dist/dapp-api/rpc-gen/index.d.ts.map +1 -1
  15. package/dist/dapp-api/rpc-gen/schemas.d.ts +3 -0
  16. package/dist/dapp-api/rpc-gen/schemas.d.ts.map +1 -0
  17. package/dist/dapp-api/rpc-gen/schemas.js +201 -0
  18. package/dist/dapp-api/rpc-gen/typings.d.ts +11 -4
  19. package/dist/dapp-api/rpc-gen/typings.d.ts.map +1 -1
  20. package/dist/dapp-api/server.d.ts +8 -9
  21. package/dist/dapp-api/server.d.ts.map +1 -1
  22. package/dist/dapp-api/server.js +7 -43
  23. package/dist/dapp-api/sse-sink.d.ts +18 -0
  24. package/dist/dapp-api/sse-sink.d.ts.map +1 -0
  25. package/dist/dapp-api/sse-sink.js +27 -0
  26. package/dist/env.d.ts +1 -25
  27. package/dist/env.d.ts.map +1 -1
  28. package/dist/env.js +0 -23
  29. package/dist/example-config.d.ts +40 -4
  30. package/dist/example-config.d.ts.map +1 -1
  31. package/dist/example-config.js +44 -8
  32. package/dist/index.d.ts +3 -3
  33. package/dist/index.d.ts.map +1 -1
  34. package/dist/index.js +75 -28
  35. package/dist/init.d.ts +2 -2
  36. package/dist/init.d.ts.map +1 -1
  37. package/dist/init.js +30 -107
  38. package/dist/ledger/party-allocation-service.d.ts +3 -6
  39. package/dist/ledger/party-allocation-service.d.ts.map +1 -1
  40. package/dist/ledger/party-allocation-service.js +1 -3
  41. package/dist/ledger/self-issued-auth-service.d.ts +50 -0
  42. package/dist/ledger/self-issued-auth-service.d.ts.map +1 -0
  43. package/dist/ledger/self-issued-auth-service.js +264 -0
  44. package/dist/ledger/wallet-allocation/signing-providers/bitgo-wallet-allocator.d.ts +7 -7
  45. package/dist/ledger/wallet-allocation/signing-providers/bitgo-wallet-allocator.d.ts.map +1 -1
  46. package/dist/ledger/wallet-allocation/signing-providers/bitgo-wallet-allocator.js +1 -1
  47. package/dist/ledger/wallet-allocation/signing-providers/blockdaemon-wallet-allocator.d.ts +7 -7
  48. package/dist/ledger/wallet-allocation/signing-providers/blockdaemon-wallet-allocator.d.ts.map +1 -1
  49. package/dist/ledger/wallet-allocation/signing-providers/blockdaemon-wallet-allocator.js +1 -1
  50. package/dist/ledger/wallet-allocation/signing-providers/dfns-wallet-allocator.d.ts +7 -7
  51. package/dist/ledger/wallet-allocation/signing-providers/dfns-wallet-allocator.d.ts.map +1 -1
  52. package/dist/ledger/wallet-allocation/signing-providers/dfns-wallet-allocator.js +1 -1
  53. package/dist/ledger/wallet-allocation/signing-providers/fireblocks-wallet-allocator.d.ts +7 -7
  54. package/dist/ledger/wallet-allocation/signing-providers/fireblocks-wallet-allocator.d.ts.map +1 -1
  55. package/dist/ledger/wallet-allocation/signing-providers/fireblocks-wallet-allocator.js +1 -1
  56. package/dist/ledger/wallet-allocation/signing-providers/kernel-wallet-allocator.d.ts +7 -7
  57. package/dist/ledger/wallet-allocation/signing-providers/kernel-wallet-allocator.d.ts.map +1 -1
  58. package/dist/ledger/wallet-allocation/signing-providers/kernel-wallet-allocator.js +1 -1
  59. package/dist/ledger/wallet-allocation/signing-providers/participant-wallet-allocator.d.ts +6 -6
  60. package/dist/ledger/wallet-allocation/signing-providers/participant-wallet-allocator.d.ts.map +1 -1
  61. package/dist/ledger/wallet-allocation/signing-providers/securosys-wallet-allocator.d.ts +7 -7
  62. package/dist/ledger/wallet-allocation/signing-providers/securosys-wallet-allocator.d.ts.map +1 -1
  63. package/dist/ledger/wallet-allocation/signing-providers/securosys-wallet-allocator.js +1 -1
  64. package/dist/ledger/wallet-allocation/wallet-allocation-service.d.ts +8 -8
  65. package/dist/ledger/wallet-allocation/wallet-allocation-service.d.ts.map +1 -1
  66. package/dist/ledger/wallet-allocation/wallet-allocation-service.js +2 -2
  67. package/dist/ledger/wallet-sync-service.d.ts +15 -9
  68. package/dist/ledger/wallet-sync-service.d.ts.map +1 -1
  69. package/dist/ledger/wallet-sync-service.js +184 -35
  70. package/dist/middleware/apiKeyAuth.d.ts +3 -3
  71. package/dist/middleware/apiKeyAuth.d.ts.map +1 -1
  72. package/dist/middleware/apiKeyAuth.js +6 -10
  73. package/dist/middleware/errorHandler.d.ts +7 -1
  74. package/dist/middleware/errorHandler.d.ts.map +1 -1
  75. package/dist/middleware/errorHandler.js +85 -1
  76. package/dist/middleware/jsonRpcHandler.d.ts +6 -4
  77. package/dist/middleware/jsonRpcHandler.d.ts.map +1 -1
  78. package/dist/middleware/jsonRpcHandler.js +49 -10
  79. package/dist/middleware/jwtAuth.d.ts +2 -2
  80. package/dist/middleware/jwtAuth.d.ts.map +1 -1
  81. package/dist/middleware/jwtAuth.js +17 -2
  82. package/dist/middleware/securityHeaders.d.ts.map +1 -1
  83. package/dist/middleware/sessionHandler.d.ts +6 -4
  84. package/dist/middleware/sessionHandler.d.ts.map +1 -1
  85. package/dist/middleware/sessionHandler.js +25 -1
  86. package/dist/signing/service-account-session.d.ts +3 -3
  87. package/dist/signing/service-account-session.d.ts.map +1 -1
  88. package/dist/signing/service-account-session.js +3 -3
  89. package/dist/signing/signing-worker.d.ts +18 -16
  90. package/dist/signing/signing-worker.d.ts.map +1 -1
  91. package/dist/signing/signing-worker.js +19 -16
  92. package/dist/signing-providers-registration.d.ts +6 -0
  93. package/dist/signing-providers-registration.d.ts.map +1 -0
  94. package/dist/signing-providers-registration.js +216 -0
  95. package/dist/user-api/controller.d.ts +14 -7
  96. package/dist/user-api/controller.d.ts.map +1 -1
  97. package/dist/user-api/controller.js +441 -154
  98. package/dist/user-api/rpc-gen/index.d.ts +27 -0
  99. package/dist/user-api/rpc-gen/index.d.ts.map +1 -1
  100. package/dist/user-api/rpc-gen/index.js +9 -0
  101. package/dist/user-api/rpc-gen/schemas.d.ts +3 -0
  102. package/dist/user-api/rpc-gen/schemas.d.ts.map +1 -0
  103. package/dist/user-api/rpc-gen/schemas.js +1067 -0
  104. package/dist/user-api/rpc-gen/typings.d.ts +237 -41
  105. package/dist/user-api/rpc-gen/typings.d.ts.map +1 -1
  106. package/dist/user-api/server.d.ts +7 -8
  107. package/dist/user-api/server.d.ts.map +1 -1
  108. package/dist/user-api/server.js +2 -0
  109. package/dist/user-api/token-network-matching.d.ts +2 -2
  110. package/dist/user-api/token-network-matching.d.ts.map +1 -1
  111. package/dist/user-api/token-network-matching.js +9 -7
  112. package/dist/utils.d.ts +0 -29
  113. package/dist/utils.d.ts.map +1 -1
  114. package/dist/utils.js +0 -57
  115. package/dist/version.d.ts.map +1 -1
  116. package/dist/version.js +2 -5
  117. package/dist/web/frontend/404/index.html +2 -2
  118. package/dist/web/frontend/activities/index.html +3 -3
  119. package/dist/web/frontend/api-keys/add/index.html +2 -2
  120. package/dist/web/frontend/api-keys/index.html +2 -2
  121. package/dist/web/frontend/approve/index.html +4 -3
  122. package/dist/web/frontend/assets/{404-Ds_FbOi_.js → 404-D6hNG1H8.js} +1 -1
  123. package/dist/web/frontend/assets/{activities-DSP_NZCE.js → activities-CSaNJ4Bw.js} +2 -2
  124. package/dist/web/frontend/assets/{addApiKey-Zv2CS3ub.js → addApiKey-IKOYP6lC.js} +2 -2
  125. package/dist/web/frontend/assets/addIdentityProvider-CnRS1C3U.js +28 -0
  126. package/dist/web/frontend/assets/{addNetwork-B620CvC-.js → addNetwork-Wq0K3t5Z.js} +4 -4
  127. package/dist/web/frontend/assets/addParty-B0GaqKvG.js +14 -0
  128. package/dist/web/frontend/assets/{apiKeys-ohQpjexi.js → apiKeys-BgJyxg5r.js} +2 -2
  129. package/dist/web/frontend/assets/approve-kKlT_54l.js +27 -0
  130. package/dist/web/frontend/assets/callback-83Lr1QFW.js +7 -0
  131. package/dist/web/frontend/assets/common-BkYw_tO_.js +31 -0
  132. package/dist/web/frontend/assets/editParty-DU9eMclk.js +15 -0
  133. package/dist/web/frontend/assets/{identityProviders-C26I4FyE.js → identityProviders-sWmbKlSu.js} +2 -2
  134. package/dist/web/frontend/assets/index-AvzB2hln.js +93 -0
  135. package/dist/web/frontend/assets/index-BF3EIXoM.js +2 -0
  136. package/dist/web/frontend/assets/index-CGK8ht7_.js +1 -0
  137. package/dist/web/frontend/assets/index-DRQ0oWml.js +4814 -0
  138. package/dist/web/frontend/assets/index-NgSpx7q_.js +3 -0
  139. package/dist/web/frontend/assets/login-BqK1nbQm.js +11 -0
  140. package/dist/web/frontend/assets/{networks-CtFnklqS.js → networks-C62lWsP4.js} +4 -4
  141. package/dist/web/frontend/assets/{reviewIdentityProvider-GBlomu4-.js → reviewIdentityProvider-pILqo6EV.js} +3 -3
  142. package/dist/web/frontend/assets/{reviewNetwork-CWEgNcCg.js → reviewNetwork-DZOWqkuG.js} +4 -4
  143. package/dist/web/frontend/assets/selfIssuedLogin-DarXIpvS.js +81 -0
  144. package/dist/web/frontend/assets/signMessage-k9b_lLxh.js +23 -0
  145. package/dist/web/frontend/callback/index.html +3 -2
  146. package/dist/web/frontend/identity-providers/add/index.html +2 -2
  147. package/dist/web/frontend/identity-providers/index.html +2 -2
  148. package/dist/web/frontend/identity-providers/review/index.html +2 -2
  149. package/dist/web/frontend/index.html +1 -1
  150. package/dist/web/frontend/login/index.html +3 -2
  151. package/dist/web/frontend/networks/add/index.html +2 -2
  152. package/dist/web/frontend/networks/index.html +2 -2
  153. package/dist/web/frontend/networks/review/index.html +2 -2
  154. package/dist/web/frontend/parties/add/index.html +5 -4
  155. package/dist/web/frontend/parties/edit/index.html +5 -4
  156. package/dist/web/frontend/parties/index.html +3 -2
  157. package/dist/web/frontend/self-issued-login/index.html +24 -0
  158. package/dist/web/frontend/sign-message/index.html +2 -2
  159. package/dist/web/route-inputs.js +1 -1
  160. package/dist/web/server.d.ts +1 -1
  161. package/dist/web/server.d.ts.map +1 -1
  162. package/dist/web/server.js +1 -1
  163. package/package.json +54 -50
  164. package/dist/auth/jwt-auth-service.test.d.ts +0 -2
  165. package/dist/auth/jwt-auth-service.test.d.ts.map +0 -1
  166. package/dist/auth/jwt-auth-service.test.js +0 -466
  167. package/dist/config/Config.test.d.ts +0 -2
  168. package/dist/config/Config.test.d.ts.map +0 -1
  169. package/dist/config/Config.test.js +0 -19
  170. package/dist/dapp-api/controller.test.d.ts +0 -2
  171. package/dist/dapp-api/controller.test.d.ts.map +0 -1
  172. package/dist/dapp-api/controller.test.js +0 -535
  173. package/dist/dapp-api/server.test.d.ts +0 -2
  174. package/dist/dapp-api/server.test.d.ts.map +0 -1
  175. package/dist/dapp-api/server.test.js +0 -40
  176. package/dist/ledger/party-allocation-service.test.d.ts +0 -2
  177. package/dist/ledger/party-allocation-service.test.d.ts.map +0 -1
  178. package/dist/ledger/party-allocation-service.test.js +0 -105
  179. package/dist/ledger/transaction-service.d.ts +0 -27
  180. package/dist/ledger/transaction-service.d.ts.map +0 -1
  181. package/dist/ledger/transaction-service.js +0 -297
  182. package/dist/ledger/transaction-service.test.d.ts +0 -2
  183. package/dist/ledger/transaction-service.test.d.ts.map +0 -1
  184. package/dist/ledger/transaction-service.test.js +0 -551
  185. package/dist/ledger/wallet-allocation/wallet-allocation-service.test.d.ts +0 -2
  186. package/dist/ledger/wallet-allocation/wallet-allocation-service.test.d.ts.map +0 -1
  187. package/dist/ledger/wallet-allocation/wallet-allocation-service.test.js +0 -1005
  188. package/dist/ledger/wallet-sync-service.test.d.ts +0 -2
  189. package/dist/ledger/wallet-sync-service.test.d.ts.map +0 -1
  190. package/dist/ledger/wallet-sync-service.test.js +0 -857
  191. package/dist/middleware/apiKeyAuth.test.d.ts +0 -2
  192. package/dist/middleware/apiKeyAuth.test.d.ts.map +0 -1
  193. package/dist/middleware/apiKeyAuth.test.js +0 -126
  194. package/dist/middleware/errorHandler.test.d.ts +0 -2
  195. package/dist/middleware/errorHandler.test.d.ts.map +0 -1
  196. package/dist/middleware/errorHandler.test.js +0 -100
  197. package/dist/middleware/jsonRpcHandler.test.d.ts +0 -2
  198. package/dist/middleware/jsonRpcHandler.test.d.ts.map +0 -1
  199. package/dist/middleware/jsonRpcHandler.test.js +0 -277
  200. package/dist/middleware/jwtAuth.test.d.ts +0 -2
  201. package/dist/middleware/jwtAuth.test.d.ts.map +0 -1
  202. package/dist/middleware/jwtAuth.test.js +0 -100
  203. package/dist/middleware/rateLimit.test.d.ts +0 -2
  204. package/dist/middleware/rateLimit.test.d.ts.map +0 -1
  205. package/dist/middleware/rateLimit.test.js +0 -56
  206. package/dist/middleware/securityHeaders.test.d.ts +0 -2
  207. package/dist/middleware/securityHeaders.test.d.ts.map +0 -1
  208. package/dist/middleware/securityHeaders.test.js +0 -18
  209. package/dist/middleware/sessionHandler.test.d.ts +0 -2
  210. package/dist/middleware/sessionHandler.test.d.ts.map +0 -1
  211. package/dist/middleware/sessionHandler.test.js +0 -155
  212. package/dist/notification/NotificationService.d.ts +0 -18
  213. package/dist/notification/NotificationService.d.ts.map +0 -1
  214. package/dist/notification/NotificationService.js +0 -26
  215. package/dist/notification/NotificationService.test.d.ts +0 -2
  216. package/dist/notification/NotificationService.test.d.ts.map +0 -1
  217. package/dist/notification/NotificationService.test.js +0 -110
  218. package/dist/signing/service-account-session.test.d.ts +0 -2
  219. package/dist/signing/service-account-session.test.d.ts.map +0 -1
  220. package/dist/signing/service-account-session.test.js +0 -89
  221. package/dist/signing/signing-drivers.d.ts +0 -7
  222. package/dist/signing/signing-drivers.d.ts.map +0 -1
  223. package/dist/signing/signing-drivers.js +0 -3
  224. package/dist/signing/signing-worker.test.d.ts +0 -2
  225. package/dist/signing/signing-worker.test.d.ts.map +0 -1
  226. package/dist/signing/signing-worker.test.js +0 -155
  227. package/dist/user-api/controller.test.d.ts +0 -2
  228. package/dist/user-api/controller.test.d.ts.map +0 -1
  229. package/dist/user-api/controller.test.js +0 -1100
  230. package/dist/user-api/server.test.d.ts +0 -2
  231. package/dist/user-api/server.test.d.ts.map +0 -1
  232. package/dist/user-api/server.test.js +0 -116
  233. package/dist/user-api/token-network-matching.test.d.ts +0 -2
  234. package/dist/user-api/token-network-matching.test.d.ts.map +0 -1
  235. package/dist/user-api/token-network-matching.test.js +0 -66
  236. package/dist/utils.test.d.ts +0 -2
  237. package/dist/utils.test.d.ts.map +0 -1
  238. package/dist/utils.test.js +0 -24
  239. package/dist/web/frontend/assets/addIdentityProvider-BqiC9u9A.js +0 -28
  240. package/dist/web/frontend/assets/addParty-CSMZt930.js +0 -13
  241. package/dist/web/frontend/assets/approve-D5YmfGHz.js +0 -21
  242. package/dist/web/frontend/assets/callback-Dk9tIdBj.js +0 -7
  243. package/dist/web/frontend/assets/common-BCDg7K0r.js +0 -31
  244. package/dist/web/frontend/assets/editParty-DX9X91dp.js +0 -14
  245. package/dist/web/frontend/assets/index-BCECRB_Y.js +0 -4943
  246. package/dist/web/frontend/assets/index-Cvcr2Fng.js +0 -2
  247. package/dist/web/frontend/assets/index-DrEQVBtC.js +0 -93
  248. package/dist/web/frontend/assets/login-dmjNaK2x.js +0 -11
  249. package/dist/web/frontend/assets/settings-DSh9rqaO.js +0 -37
  250. package/dist/web/frontend/assets/signMessage-CT2_Y1LA.js +0 -79
  251. package/dist/web/frontend/settings/index.html +0 -15
  252. package/dist/web/route-inputs.test.d.ts +0 -2
  253. package/dist/web/route-inputs.test.d.ts.map +0 -1
  254. package/dist/web/route-inputs.test.js +0 -30
@@ -0,0 +1,1067 @@
1
+ // Copyright (c) 2025-2026 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
2
+ // SPDX-License-Identifier: Apache-2.0
3
+ // Code generated by rpc-generator DO NOT EDIT!!
4
+ import { z } from 'zod';
5
+ // Methods without a declared param only accept an omitted or empty `params`.
6
+ const noParams = z.union([z.undefined(), z.tuple([]), z.strictObject({})]);
7
+ export const paramSchemas = {
8
+ addNetwork: z.fromJSONSchema({
9
+ title: 'AddNetworkParams',
10
+ type: 'object',
11
+ additionalProperties: { type: 'null' },
12
+ properties: {
13
+ network: {
14
+ title: 'Network',
15
+ type: 'object',
16
+ additionalProperties: { type: 'null' },
17
+ description: 'Structure representing the Networks',
18
+ properties: {
19
+ id: {
20
+ title: 'networkId',
21
+ type: 'string',
22
+ description: 'Network ID',
23
+ },
24
+ name: {
25
+ title: 'name',
26
+ type: 'string',
27
+ description: 'Name of network',
28
+ },
29
+ description: {
30
+ title: 'description',
31
+ type: 'string',
32
+ description: 'Description of network',
33
+ },
34
+ synchronizerId: {
35
+ title: 'synchronizerId',
36
+ type: 'string',
37
+ description: 'Synchronizer ID',
38
+ },
39
+ identityProviderId: {
40
+ title: 'identityProviderId',
41
+ type: 'string',
42
+ description: 'Identity Provider ID',
43
+ },
44
+ auth: {
45
+ title: 'Auth',
46
+ description: 'Authentication configuration for a network',
47
+ oneOf: [
48
+ {
49
+ title: 'AuthorizationCodeAuth',
50
+ type: 'object',
51
+ additionalProperties: { type: 'null' },
52
+ description: 'Authorization code authentication configuration',
53
+ properties: {
54
+ method: {
55
+ title: 'authorizationCodeAuthMethod',
56
+ type: 'string',
57
+ enum: ['authorization_code'],
58
+ },
59
+ scope: { title: 'scope', type: 'string' },
60
+ clientId: {
61
+ title: 'clientId',
62
+ type: 'string',
63
+ },
64
+ audience: {
65
+ title: 'audience',
66
+ type: 'string',
67
+ description: 'Participant ID prefixed with "https://daml.com/jwt/aud/participant/".',
68
+ },
69
+ },
70
+ required: [
71
+ 'method',
72
+ 'audience',
73
+ 'scope',
74
+ 'clientId',
75
+ ],
76
+ },
77
+ {
78
+ title: 'ClientCredentialsAuth',
79
+ type: 'object',
80
+ additionalProperties: { type: 'null' },
81
+ description: 'Client credentials authentication configuration',
82
+ properties: {
83
+ method: {
84
+ title: 'clientCredentialsAuthMethod',
85
+ type: 'string',
86
+ enum: ['client_credentials'],
87
+ },
88
+ identityProviderId: {
89
+ title: 'clientCredentialsIdentityProviderId',
90
+ type: 'string',
91
+ description: "Overrides the network's identity provider for client credentials token acquisition",
92
+ },
93
+ scope: { title: 'scope', type: 'string' },
94
+ clientId: {
95
+ title: 'clientId',
96
+ type: 'string',
97
+ },
98
+ clientSecret: {
99
+ title: 'clientSecret',
100
+ type: 'string',
101
+ },
102
+ audience: {
103
+ title: 'audience',
104
+ type: 'string',
105
+ description: 'Participant ID prefixed with "https://daml.com/jwt/aud/participant/".',
106
+ },
107
+ },
108
+ required: [
109
+ 'method',
110
+ 'audience',
111
+ 'scope',
112
+ 'clientId',
113
+ 'clientSecret',
114
+ ],
115
+ },
116
+ {
117
+ title: 'SelfSignedAuth',
118
+ type: 'object',
119
+ additionalProperties: { type: 'null' },
120
+ description: 'Self-signed authentication configuration',
121
+ properties: {
122
+ method: {
123
+ title: 'selfSignedAuthMethod',
124
+ type: 'string',
125
+ enum: ['self_signed'],
126
+ },
127
+ scope: { title: 'scope', type: 'string' },
128
+ clientId: {
129
+ title: 'clientId',
130
+ type: 'string',
131
+ },
132
+ clientSecret: {
133
+ title: 'clientSecret',
134
+ type: 'string',
135
+ },
136
+ issuer: { title: 'issuer', type: 'string' },
137
+ audience: {
138
+ title: 'audience',
139
+ type: 'string',
140
+ description: 'Participant ID prefixed with "https://daml.com/jwt/aud/participant/".',
141
+ },
142
+ },
143
+ required: [
144
+ 'method',
145
+ 'audience',
146
+ 'scope',
147
+ 'clientId',
148
+ 'clientSecret',
149
+ 'issuer',
150
+ ],
151
+ },
152
+ {
153
+ title: 'SelfIssuedAuth',
154
+ type: 'object',
155
+ additionalProperties: { type: 'null' },
156
+ description: 'Self-issued authentication configuration',
157
+ properties: {
158
+ method: {
159
+ title: 'selfIssuedAuthMethod',
160
+ type: 'string',
161
+ enum: ['self_issued'],
162
+ },
163
+ scope: { title: 'scope', type: 'string' },
164
+ audience: {
165
+ title: 'audience',
166
+ type: 'string',
167
+ description: 'Bare participant ID, with no https://daml.com/jwt/aud/participant/ prefix (unlike the other auth methods).',
168
+ },
169
+ },
170
+ required: ['method', 'audience', 'scope'],
171
+ },
172
+ ],
173
+ },
174
+ adminAuth: {
175
+ title: 'Auth',
176
+ description: 'Authentication configuration for a network',
177
+ oneOf: [
178
+ {
179
+ title: 'AuthorizationCodeAuth',
180
+ type: 'object',
181
+ additionalProperties: { type: 'null' },
182
+ description: 'Authorization code authentication configuration',
183
+ properties: {
184
+ method: {
185
+ title: 'authorizationCodeAuthMethod',
186
+ type: 'string',
187
+ enum: ['authorization_code'],
188
+ },
189
+ scope: { title: 'scope', type: 'string' },
190
+ clientId: {
191
+ title: 'clientId',
192
+ type: 'string',
193
+ },
194
+ audience: {
195
+ title: 'audience',
196
+ type: 'string',
197
+ description: 'Participant ID prefixed with "https://daml.com/jwt/aud/participant/".',
198
+ },
199
+ },
200
+ required: [
201
+ 'method',
202
+ 'audience',
203
+ 'scope',
204
+ 'clientId',
205
+ ],
206
+ },
207
+ {
208
+ title: 'ClientCredentialsAuth',
209
+ type: 'object',
210
+ additionalProperties: { type: 'null' },
211
+ description: 'Client credentials authentication configuration',
212
+ properties: {
213
+ method: {
214
+ title: 'clientCredentialsAuthMethod',
215
+ type: 'string',
216
+ enum: ['client_credentials'],
217
+ },
218
+ identityProviderId: {
219
+ title: 'clientCredentialsIdentityProviderId',
220
+ type: 'string',
221
+ description: "Overrides the network's identity provider for client credentials token acquisition",
222
+ },
223
+ scope: { title: 'scope', type: 'string' },
224
+ clientId: {
225
+ title: 'clientId',
226
+ type: 'string',
227
+ },
228
+ clientSecret: {
229
+ title: 'clientSecret',
230
+ type: 'string',
231
+ },
232
+ audience: {
233
+ title: 'audience',
234
+ type: 'string',
235
+ description: 'Participant ID prefixed with "https://daml.com/jwt/aud/participant/".',
236
+ },
237
+ },
238
+ required: [
239
+ 'method',
240
+ 'audience',
241
+ 'scope',
242
+ 'clientId',
243
+ 'clientSecret',
244
+ ],
245
+ },
246
+ {
247
+ title: 'SelfSignedAuth',
248
+ type: 'object',
249
+ additionalProperties: { type: 'null' },
250
+ description: 'Self-signed authentication configuration',
251
+ properties: {
252
+ method: {
253
+ title: 'selfSignedAuthMethod',
254
+ type: 'string',
255
+ enum: ['self_signed'],
256
+ },
257
+ scope: { title: 'scope', type: 'string' },
258
+ clientId: {
259
+ title: 'clientId',
260
+ type: 'string',
261
+ },
262
+ clientSecret: {
263
+ title: 'clientSecret',
264
+ type: 'string',
265
+ },
266
+ issuer: { title: 'issuer', type: 'string' },
267
+ audience: {
268
+ title: 'audience',
269
+ type: 'string',
270
+ description: 'Participant ID prefixed with "https://daml.com/jwt/aud/participant/".',
271
+ },
272
+ },
273
+ required: [
274
+ 'method',
275
+ 'audience',
276
+ 'scope',
277
+ 'clientId',
278
+ 'clientSecret',
279
+ 'issuer',
280
+ ],
281
+ },
282
+ {
283
+ title: 'SelfIssuedAuth',
284
+ type: 'object',
285
+ additionalProperties: { type: 'null' },
286
+ description: 'Self-issued authentication configuration',
287
+ properties: {
288
+ method: {
289
+ title: 'selfIssuedAuthMethod',
290
+ type: 'string',
291
+ enum: ['self_issued'],
292
+ },
293
+ scope: { title: 'scope', type: 'string' },
294
+ audience: {
295
+ title: 'audience',
296
+ type: 'string',
297
+ description: 'Bare participant ID, with no https://daml.com/jwt/aud/participant/ prefix (unlike the other auth methods).',
298
+ },
299
+ },
300
+ required: ['method', 'audience', 'scope'],
301
+ },
302
+ ],
303
+ },
304
+ serviceAccountAuth: {
305
+ title: 'Auth',
306
+ description: 'Authentication configuration for a network',
307
+ oneOf: [
308
+ {
309
+ title: 'AuthorizationCodeAuth',
310
+ type: 'object',
311
+ additionalProperties: { type: 'null' },
312
+ description: 'Authorization code authentication configuration',
313
+ properties: {
314
+ method: {
315
+ title: 'authorizationCodeAuthMethod',
316
+ type: 'string',
317
+ enum: ['authorization_code'],
318
+ },
319
+ scope: { title: 'scope', type: 'string' },
320
+ clientId: {
321
+ title: 'clientId',
322
+ type: 'string',
323
+ },
324
+ audience: {
325
+ title: 'audience',
326
+ type: 'string',
327
+ description: 'Participant ID prefixed with "https://daml.com/jwt/aud/participant/".',
328
+ },
329
+ },
330
+ required: [
331
+ 'method',
332
+ 'audience',
333
+ 'scope',
334
+ 'clientId',
335
+ ],
336
+ },
337
+ {
338
+ title: 'ClientCredentialsAuth',
339
+ type: 'object',
340
+ additionalProperties: { type: 'null' },
341
+ description: 'Client credentials authentication configuration',
342
+ properties: {
343
+ method: {
344
+ title: 'clientCredentialsAuthMethod',
345
+ type: 'string',
346
+ enum: ['client_credentials'],
347
+ },
348
+ identityProviderId: {
349
+ title: 'clientCredentialsIdentityProviderId',
350
+ type: 'string',
351
+ description: "Overrides the network's identity provider for client credentials token acquisition",
352
+ },
353
+ scope: { title: 'scope', type: 'string' },
354
+ clientId: {
355
+ title: 'clientId',
356
+ type: 'string',
357
+ },
358
+ clientSecret: {
359
+ title: 'clientSecret',
360
+ type: 'string',
361
+ },
362
+ audience: {
363
+ title: 'audience',
364
+ type: 'string',
365
+ description: 'Participant ID prefixed with "https://daml.com/jwt/aud/participant/".',
366
+ },
367
+ },
368
+ required: [
369
+ 'method',
370
+ 'audience',
371
+ 'scope',
372
+ 'clientId',
373
+ 'clientSecret',
374
+ ],
375
+ },
376
+ {
377
+ title: 'SelfSignedAuth',
378
+ type: 'object',
379
+ additionalProperties: { type: 'null' },
380
+ description: 'Self-signed authentication configuration',
381
+ properties: {
382
+ method: {
383
+ title: 'selfSignedAuthMethod',
384
+ type: 'string',
385
+ enum: ['self_signed'],
386
+ },
387
+ scope: { title: 'scope', type: 'string' },
388
+ clientId: {
389
+ title: 'clientId',
390
+ type: 'string',
391
+ },
392
+ clientSecret: {
393
+ title: 'clientSecret',
394
+ type: 'string',
395
+ },
396
+ issuer: { title: 'issuer', type: 'string' },
397
+ audience: {
398
+ title: 'audience',
399
+ type: 'string',
400
+ description: 'Participant ID prefixed with "https://daml.com/jwt/aud/participant/".',
401
+ },
402
+ },
403
+ required: [
404
+ 'method',
405
+ 'audience',
406
+ 'scope',
407
+ 'clientId',
408
+ 'clientSecret',
409
+ 'issuer',
410
+ ],
411
+ },
412
+ {
413
+ title: 'SelfIssuedAuth',
414
+ type: 'object',
415
+ additionalProperties: { type: 'null' },
416
+ description: 'Self-issued authentication configuration',
417
+ properties: {
418
+ method: {
419
+ title: 'selfIssuedAuthMethod',
420
+ type: 'string',
421
+ enum: ['self_issued'],
422
+ },
423
+ scope: { title: 'scope', type: 'string' },
424
+ audience: {
425
+ title: 'audience',
426
+ type: 'string',
427
+ description: 'Bare participant ID, with no https://daml.com/jwt/aud/participant/ prefix (unlike the other auth methods).',
428
+ },
429
+ },
430
+ required: ['method', 'audience', 'scope'],
431
+ },
432
+ ],
433
+ },
434
+ ledgerApi: {
435
+ title: 'ledgerApi',
436
+ type: 'string',
437
+ description: 'Ledger api url',
438
+ },
439
+ },
440
+ required: [
441
+ 'id',
442
+ 'name',
443
+ 'description',
444
+ 'identityProviderId',
445
+ 'auth',
446
+ 'ledgerApi',
447
+ ],
448
+ },
449
+ },
450
+ required: ['network'],
451
+ }),
452
+ removeNetwork: z.fromJSONSchema({
453
+ title: 'RemoveNetworkParams',
454
+ type: 'object',
455
+ additionalProperties: { type: 'null' },
456
+ properties: {
457
+ networkName: {
458
+ title: 'networkName',
459
+ type: 'string',
460
+ description: 'Ledger api url',
461
+ },
462
+ },
463
+ required: ['networkName'],
464
+ }),
465
+ listNetworks: noParams,
466
+ getNetwork: z.fromJSONSchema({
467
+ title: 'GetNetworkParams',
468
+ type: 'object',
469
+ additionalProperties: { type: 'null' },
470
+ properties: {
471
+ networkId: {
472
+ title: 'networkId',
473
+ type: 'string',
474
+ description: 'Network ID',
475
+ },
476
+ },
477
+ required: ['networkId'],
478
+ }),
479
+ selfSignedAccessToken: z.fromJSONSchema({
480
+ title: 'SelfSignedAccessTokenParams',
481
+ type: 'object',
482
+ additionalProperties: { type: 'null' },
483
+ properties: {
484
+ networkId: {
485
+ title: 'networkId',
486
+ type: 'string',
487
+ description: 'Network ID',
488
+ },
489
+ clientId: {
490
+ title: 'clientId',
491
+ type: 'string',
492
+ description: 'Client ID used as the JWT subject',
493
+ },
494
+ clientSecret: {
495
+ title: 'clientSecret',
496
+ type: 'string',
497
+ description: "Client secret that must match the selected network's auth.clientSecret",
498
+ },
499
+ },
500
+ required: ['networkId', 'clientId', 'clientSecret'],
501
+ }),
502
+ addIdp: z.fromJSONSchema({
503
+ title: 'AddIdpParams',
504
+ type: 'object',
505
+ additionalProperties: { type: 'null' },
506
+ properties: {
507
+ idp: {
508
+ title: 'Idp',
509
+ description: 'Structure representing an identity provider',
510
+ oneOf: [
511
+ {
512
+ title: 'OauthIdp',
513
+ type: 'object',
514
+ additionalProperties: { type: 'null' },
515
+ properties: {
516
+ id: {
517
+ title: 'id',
518
+ type: 'string',
519
+ description: 'ID of the identity provider',
520
+ },
521
+ type: {
522
+ title: 'oauthIdpType',
523
+ type: 'string',
524
+ enum: ['oauth'],
525
+ description: 'OAuth identity provider',
526
+ },
527
+ issuer: {
528
+ title: 'issuer',
529
+ type: 'string',
530
+ description: 'Issuer of identity provider',
531
+ },
532
+ configUrl: {
533
+ title: 'configUrl',
534
+ type: 'string',
535
+ description: 'The configuration URL for the identity provider.',
536
+ },
537
+ },
538
+ required: ['id', 'type', 'issuer', 'configUrl'],
539
+ },
540
+ {
541
+ title: 'SelfSignedIdp',
542
+ type: 'object',
543
+ additionalProperties: { type: 'null' },
544
+ properties: {
545
+ id: {
546
+ title: 'id',
547
+ type: 'string',
548
+ description: 'ID of the identity provider',
549
+ },
550
+ type: {
551
+ title: 'selfSignedIdpType',
552
+ type: 'string',
553
+ enum: ['self_signed'],
554
+ description: 'Self-signed identity provider',
555
+ },
556
+ issuer: {
557
+ title: 'issuer',
558
+ type: 'string',
559
+ description: 'Issuer of identity provider',
560
+ },
561
+ },
562
+ required: ['id', 'type', 'issuer'],
563
+ },
564
+ {
565
+ title: 'SelfIssuedIdp',
566
+ type: 'object',
567
+ additionalProperties: { type: 'null' },
568
+ properties: {
569
+ id: {
570
+ title: 'id',
571
+ type: 'string',
572
+ description: 'ID of the identity provider',
573
+ },
574
+ type: {
575
+ title: 'selfIssuedIdpType',
576
+ type: 'string',
577
+ enum: ['self_issued'],
578
+ description: 'Self-issued identity provider',
579
+ },
580
+ },
581
+ required: ['id', 'type'],
582
+ },
583
+ ],
584
+ },
585
+ },
586
+ required: ['idp'],
587
+ }),
588
+ removeIdp: z.fromJSONSchema({
589
+ title: 'RemoveIdpParams',
590
+ type: 'object',
591
+ additionalProperties: { type: 'null' },
592
+ properties: {
593
+ identityProviderId: {
594
+ title: 'identityProviderId',
595
+ type: 'string',
596
+ description: 'Identity Provider ID',
597
+ },
598
+ },
599
+ required: ['identityProviderId'],
600
+ }),
601
+ listIdps: noParams,
602
+ createWallet: z.fromJSONSchema({
603
+ title: 'CreateWalletParams',
604
+ type: 'object',
605
+ additionalProperties: { type: 'null' },
606
+ properties: {
607
+ primary: {
608
+ title: 'primary',
609
+ type: 'boolean',
610
+ description: 'Set as primary wallet for dApp usage.',
611
+ },
612
+ partyHint: {
613
+ title: 'partyHint',
614
+ type: 'string',
615
+ description: 'The party hint and name of the wallet.',
616
+ },
617
+ signingProviderId: {
618
+ title: 'signingProviderId',
619
+ type: 'string',
620
+ description: 'The signing provider ID the wallet corresponds to.',
621
+ },
622
+ keyName: {
623
+ title: 'keyName',
624
+ type: 'string',
625
+ description: "Name of signing provider's key to use for getting keys.",
626
+ },
627
+ },
628
+ required: ['partyHint', 'signingProviderId'],
629
+ }),
630
+ startSelfIssuedLoginSession: z.fromJSONSchema({
631
+ title: 'StartSelfIssuedLoginSessionParams',
632
+ type: 'object',
633
+ additionalProperties: { type: 'null' },
634
+ properties: {
635
+ username: {
636
+ title: 'username',
637
+ type: 'string',
638
+ description: 'User id used while onboarding.',
639
+ },
640
+ networkId: {
641
+ title: 'networkId',
642
+ type: 'string',
643
+ description: 'Self-issued network to onboard on.',
644
+ },
645
+ origin: {
646
+ title: 'origin',
647
+ type: 'string',
648
+ description: 'Origin starting the onboarding flow.',
649
+ },
650
+ },
651
+ required: ['username', 'networkId', 'origin'],
652
+ }),
653
+ getSelfIssuedLoginMode: z.fromJSONSchema({
654
+ title: 'GetSelfIssuedLoginModeParams',
655
+ type: 'object',
656
+ additionalProperties: { type: 'null' },
657
+ properties: {
658
+ sessionId: {
659
+ title: 'sessionId',
660
+ type: 'string',
661
+ description: 'Self issued login session id returned by startSelfIssuedLoginSession.',
662
+ },
663
+ },
664
+ required: ['sessionId'],
665
+ }),
666
+ createSelfIssuedWallet: z.fromJSONSchema({
667
+ title: 'CreateSelfIssuedWalletParams',
668
+ type: 'object',
669
+ additionalProperties: { type: 'null' },
670
+ properties: {
671
+ sessionId: {
672
+ title: 'sessionId',
673
+ type: 'string',
674
+ description: 'Self issued login session id returned by startSelfIssuedLoginSession.',
675
+ },
676
+ partyHint: {
677
+ title: 'partyHint',
678
+ type: 'string',
679
+ description: 'The party hint and name of the wallet.',
680
+ },
681
+ signingProviderId: {
682
+ title: 'signingProviderId',
683
+ type: 'string',
684
+ description: 'Signing provider used to hold keys of the authentication party.',
685
+ },
686
+ },
687
+ required: ['sessionId', 'partyHint', 'signingProviderId'],
688
+ }),
689
+ allocateSelfIssuedWallet: z.fromJSONSchema({
690
+ title: 'AllocateSelfIssuedWalletParams',
691
+ type: 'object',
692
+ additionalProperties: { type: 'null' },
693
+ properties: {
694
+ sessionId: {
695
+ title: 'sessionId',
696
+ type: 'string',
697
+ description: 'Self issued login session id returned by startSelfIssuedLoginSession.',
698
+ },
699
+ partyId: {
700
+ title: 'partyId',
701
+ type: 'string',
702
+ description: 'Party id of the wallet awaiting allocation.',
703
+ },
704
+ },
705
+ required: ['sessionId', 'partyId'],
706
+ }),
707
+ completeSelfIssuedLogin: z.fromJSONSchema({
708
+ title: 'CompleteSelfIssuedLoginParams',
709
+ type: 'object',
710
+ additionalProperties: { type: 'null' },
711
+ properties: {
712
+ sessionId: {
713
+ title: 'sessionId',
714
+ type: 'string',
715
+ description: 'Self issued login session id returned by startSelfIssuedLoginSession.',
716
+ },
717
+ partyId: {
718
+ title: 'partyId',
719
+ type: 'string',
720
+ description: 'Allocated party selected for authentication.',
721
+ },
722
+ },
723
+ required: ['sessionId', 'partyId'],
724
+ }),
725
+ removeSelfIssuedLoginSession: z
726
+ .fromJSONSchema({
727
+ title: 'RemoveSelfIssuedLoginSessionParams',
728
+ type: 'object',
729
+ additionalProperties: { type: 'null' },
730
+ properties: {
731
+ sessionId: {
732
+ title: 'sessionId',
733
+ type: 'string',
734
+ description: 'Self issued login session id returned by startSelfIssuedLoginSession.',
735
+ },
736
+ },
737
+ required: ['sessionId'],
738
+ })
739
+ .optional(),
740
+ allocatePartyForWallet: z.fromJSONSchema({
741
+ title: 'AllocatePartyForWalletParams',
742
+ type: 'object',
743
+ additionalProperties: { type: 'null' },
744
+ properties: {
745
+ partyId: {
746
+ title: 'partyId',
747
+ type: 'string',
748
+ description: 'The party ID of the initialized wallet to allocate.',
749
+ },
750
+ },
751
+ required: ['partyId'],
752
+ }),
753
+ setPrimaryWallet: z.fromJSONSchema({
754
+ title: 'SetPrimaryWalletParams',
755
+ type: 'object',
756
+ additionalProperties: { type: 'null' },
757
+ properties: {
758
+ partyId: {
759
+ title: 'partyId',
760
+ type: 'string',
761
+ description: 'The party id of the wallet to set as primary.',
762
+ },
763
+ },
764
+ required: ['partyId'],
765
+ }),
766
+ removeWallet: z.fromJSONSchema({
767
+ title: 'RemoveWalletParams',
768
+ type: 'object',
769
+ additionalProperties: { type: 'null' },
770
+ properties: {
771
+ partyId: {
772
+ title: 'partyId',
773
+ type: 'string',
774
+ description: 'The party id of the wallet to be removed.',
775
+ },
776
+ },
777
+ required: ['partyId'],
778
+ }),
779
+ listWallets: z.fromJSONSchema({
780
+ title: 'ListWalletsParams',
781
+ type: 'object',
782
+ additionalProperties: { type: 'null' },
783
+ properties: {
784
+ filter: {
785
+ title: 'WalletFilter',
786
+ type: 'object',
787
+ description: 'Filter for the wallets to be returned.',
788
+ additionalProperties: { type: 'null' },
789
+ properties: {
790
+ networkIds: {
791
+ title: 'networkIds',
792
+ type: 'array',
793
+ description: 'Filter wallets by network IDs.',
794
+ items: { title: 'networkId', type: 'string' },
795
+ },
796
+ signingProviderIds: {
797
+ title: 'signingProviderIds',
798
+ type: 'array',
799
+ description: 'Filter wallets by signing provider IDs.',
800
+ items: { title: 'signingProviderId', type: 'string' },
801
+ },
802
+ },
803
+ },
804
+ },
805
+ required: [],
806
+ }),
807
+ syncWallets: noParams,
808
+ isWalletSyncNeeded: noParams,
809
+ sign: z.fromJSONSchema({
810
+ title: 'SignParams',
811
+ type: 'object',
812
+ additionalProperties: { type: 'null' },
813
+ properties: {
814
+ transactionId: {
815
+ title: 'transactionId',
816
+ type: 'string',
817
+ format: 'uuid',
818
+ description: 'The internal transaction identifier.',
819
+ },
820
+ partyId: { title: 'partyId', type: 'string' },
821
+ },
822
+ required: ['transactionId', 'partyId'],
823
+ }),
824
+ signMessage: z.fromJSONSchema({
825
+ title: 'SignMessageParams',
826
+ type: 'object',
827
+ additionalProperties: { type: 'null' },
828
+ properties: {
829
+ messageId: {
830
+ title: 'MessageId',
831
+ type: 'string',
832
+ format: 'uuid',
833
+ description: 'The internal identifier of the pending message-signing request.',
834
+ },
835
+ partyId: {
836
+ title: 'partyId',
837
+ type: 'string',
838
+ description: 'Party that should sign the message. If omitted, the primary wallet is used.',
839
+ },
840
+ },
841
+ required: ['messageId'],
842
+ }),
843
+ getSignMessageStatus: z
844
+ .fromJSONSchema({
845
+ title: 'GetSignMessageStatusParams',
846
+ type: 'object',
847
+ additionalProperties: { type: 'null' },
848
+ properties: {
849
+ messageId: {
850
+ title: 'MessageId',
851
+ type: 'string',
852
+ format: 'uuid',
853
+ description: 'The internal identifier of the pending message-signing request.',
854
+ },
855
+ },
856
+ required: ['messageId'],
857
+ })
858
+ .optional(),
859
+ getMessageToSign: z.fromJSONSchema({
860
+ title: 'GetMessageToSignParams',
861
+ type: 'object',
862
+ additionalProperties: { type: 'null' },
863
+ properties: {
864
+ messageId: {
865
+ title: 'MessageId',
866
+ type: 'string',
867
+ format: 'uuid',
868
+ description: 'The internal identifier of the pending message-signing request.',
869
+ },
870
+ },
871
+ required: ['messageId'],
872
+ }),
873
+ listMessagesToSign: noParams,
874
+ deleteMessageToSign: z.fromJSONSchema({
875
+ title: 'DeleteMessageToSignParams',
876
+ type: 'object',
877
+ additionalProperties: { type: 'null' },
878
+ properties: {
879
+ messageId: {
880
+ title: 'MessageId',
881
+ type: 'string',
882
+ format: 'uuid',
883
+ description: 'The internal identifier of the pending message-signing request.',
884
+ },
885
+ },
886
+ required: ['messageId'],
887
+ }),
888
+ execute: z.fromJSONSchema({
889
+ title: 'ExecuteParams',
890
+ type: 'object',
891
+ additionalProperties: { type: 'null' },
892
+ properties: {
893
+ partyId: { title: 'partyId', type: 'string' },
894
+ transactionId: {
895
+ title: 'transactionId',
896
+ type: 'string',
897
+ format: 'uuid',
898
+ description: 'The internal transaction identifier.',
899
+ },
900
+ },
901
+ required: ['transactionId', 'partyId'],
902
+ }),
903
+ addSession: z.fromJSONSchema({
904
+ title: 'AddSessionParams',
905
+ type: 'object',
906
+ additionalProperties: { type: 'null' },
907
+ properties: {
908
+ origin: {
909
+ title: 'origin',
910
+ type: 'string',
911
+ description: 'origin of the dApp establishing a session',
912
+ },
913
+ networkId: {
914
+ title: 'networkId',
915
+ type: 'string',
916
+ description: 'Network Id',
917
+ },
918
+ },
919
+ required: ['networkId', 'origin'],
920
+ }),
921
+ removeSession: noParams,
922
+ listSessions: noParams,
923
+ getTransaction: z.fromJSONSchema({
924
+ title: 'GetTransactionParams',
925
+ type: 'object',
926
+ additionalProperties: { type: 'null' },
927
+ properties: {
928
+ transactionId: {
929
+ title: 'transactionId',
930
+ type: 'string',
931
+ format: 'uuid',
932
+ description: 'The internal transaction identifier.',
933
+ },
934
+ },
935
+ required: ['transactionId'],
936
+ }),
937
+ getTransactionStatus: z.fromJSONSchema({
938
+ title: 'GetTransactionStatusParams',
939
+ type: 'object',
940
+ additionalProperties: { type: 'null' },
941
+ properties: {
942
+ transactionId: {
943
+ title: 'transactionId',
944
+ type: 'string',
945
+ format: 'uuid',
946
+ description: 'The internal transaction identifier.',
947
+ },
948
+ partyId: {
949
+ title: 'partyId',
950
+ type: 'string',
951
+ description: 'The party ID corresponding to the wallet.',
952
+ },
953
+ },
954
+ required: ['transactionId'],
955
+ }),
956
+ listTransactions: z
957
+ .fromJSONSchema({
958
+ title: 'ListTransactionsParams',
959
+ type: 'object',
960
+ additionalProperties: { type: 'null' },
961
+ properties: {
962
+ limit: {
963
+ title: 'limit',
964
+ type: 'integer',
965
+ description: 'Limit of transactions to return.',
966
+ },
967
+ cursor: {
968
+ title: 'cursor',
969
+ type: ['string'],
970
+ description: 'Cursor for next page of results.',
971
+ },
972
+ },
973
+ })
974
+ .optional(),
975
+ deleteTransaction: z.fromJSONSchema({
976
+ title: 'DeleteTransactionParams',
977
+ type: 'object',
978
+ additionalProperties: { type: 'null' },
979
+ properties: {
980
+ transactionId: {
981
+ title: 'transactionId',
982
+ type: 'string',
983
+ format: 'uuid',
984
+ description: 'The internal transaction identifier.',
985
+ },
986
+ },
987
+ required: ['transactionId'],
988
+ }),
989
+ getUser: noParams,
990
+ generateApiKey: z.fromJSONSchema({
991
+ title: 'GenerateApiKeyParams',
992
+ type: 'object',
993
+ additionalProperties: { type: 'null' },
994
+ properties: {
995
+ name: {
996
+ title: 'name',
997
+ type: 'string',
998
+ description: 'A name to identify the API key.',
999
+ },
1000
+ },
1001
+ required: ['name'],
1002
+ }),
1003
+ listApiKeys: noParams,
1004
+ removeApiKey: z.fromJSONSchema({
1005
+ title: 'RemoveApiKeyParams',
1006
+ type: 'object',
1007
+ additionalProperties: { type: 'null' },
1008
+ properties: {
1009
+ id: {
1010
+ title: 'id',
1011
+ type: 'string',
1012
+ description: 'The unique identifier of the API key.',
1013
+ },
1014
+ },
1015
+ required: ['id'],
1016
+ }),
1017
+ listSigningProviders: noParams,
1018
+ listSigningProviderKeys: z.fromJSONSchema({
1019
+ title: 'ListSigningProviderKeysParams',
1020
+ type: 'object',
1021
+ additionalProperties: { type: 'null' },
1022
+ properties: {
1023
+ signingProviderId: {
1024
+ title: 'signingProviderId',
1025
+ type: 'string',
1026
+ description: 'The signing provider ID the wallet corresponds to.',
1027
+ },
1028
+ },
1029
+ required: ['signingProviderId'],
1030
+ }),
1031
+ getWallet: z.fromJSONSchema({
1032
+ title: 'GetWalletParams',
1033
+ type: 'object',
1034
+ additionalProperties: { type: 'null' },
1035
+ properties: {
1036
+ partyId: {
1037
+ title: 'partyId',
1038
+ type: 'string',
1039
+ description: 'The party ID corresponding to the wallet.',
1040
+ },
1041
+ },
1042
+ required: ['partyId'],
1043
+ }),
1044
+ changeSigningProvider: z.fromJSONSchema({
1045
+ title: 'changeSigningProviderParams',
1046
+ type: 'object',
1047
+ additionalProperties: { type: 'null' },
1048
+ properties: {
1049
+ signingProviderId: {
1050
+ title: 'signingProviderId',
1051
+ type: 'string',
1052
+ description: 'The signing provider ID the party should correspond to.',
1053
+ },
1054
+ partyId: {
1055
+ title: 'partyId',
1056
+ type: 'string',
1057
+ description: 'The party ID corresponding to the wallet.',
1058
+ },
1059
+ publicKey: {
1060
+ title: 'publicKey',
1061
+ type: 'string',
1062
+ description: "The key to be used for the party's signing provider",
1063
+ },
1064
+ },
1065
+ required: ['signingProviderId', 'partyId', 'publicKey'],
1066
+ }),
1067
+ };