@canton-network/wallet-gateway-remote 1.11.3 → 1.12.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 (192) hide show
  1. package/dist/auth/jwt-auth-service.d.ts +5 -4
  2. package/dist/auth/jwt-auth-service.d.ts.map +1 -1
  3. package/dist/auth/jwt-auth-service.js +76 -8
  4. package/dist/auth/jwt-auth-service.test.js +193 -0
  5. package/dist/config/Config.d.ts +58 -7
  6. package/dist/config/Config.d.ts.map +1 -1
  7. package/dist/config/Config.test.js +9 -2
  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 +43 -8
  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 +31 -21
  14. package/dist/dapp-api/controller.test.js +12 -16
  15. package/dist/dapp-api/rpc-gen/index.d.ts.map +1 -1
  16. package/dist/dapp-api/rpc-gen/schemas.d.ts +3 -0
  17. package/dist/dapp-api/rpc-gen/schemas.d.ts.map +1 -0
  18. package/dist/dapp-api/rpc-gen/schemas.js +201 -0
  19. package/dist/dapp-api/rpc-gen/typings.d.ts +8 -1
  20. package/dist/dapp-api/rpc-gen/typings.d.ts.map +1 -1
  21. package/dist/dapp-api/server.d.ts +8 -9
  22. package/dist/dapp-api/server.d.ts.map +1 -1
  23. package/dist/dapp-api/server.js +7 -43
  24. package/dist/dapp-api/server.test.js +41 -2
  25. package/dist/dapp-api/sse-sink.d.ts +18 -0
  26. package/dist/dapp-api/sse-sink.d.ts.map +1 -0
  27. package/dist/dapp-api/sse-sink.js +27 -0
  28. package/dist/dapp-api/sse-sink.test.d.ts +2 -0
  29. package/dist/dapp-api/sse-sink.test.d.ts.map +1 -0
  30. package/dist/dapp-api/sse-sink.test.js +30 -0
  31. package/dist/env.d.ts +0 -1
  32. package/dist/env.d.ts.map +1 -1
  33. package/dist/init.d.ts +2 -2
  34. package/dist/init.d.ts.map +1 -1
  35. package/dist/init.js +13 -4
  36. package/dist/ledger/party-allocation-service.d.ts +3 -3
  37. package/dist/ledger/party-allocation-service.d.ts.map +1 -1
  38. package/dist/ledger/self-issued-auth-service.d.ts +50 -0
  39. package/dist/ledger/self-issued-auth-service.d.ts.map +1 -0
  40. package/dist/ledger/self-issued-auth-service.js +263 -0
  41. package/dist/ledger/self-issued-auth-service.test.d.ts +2 -0
  42. package/dist/ledger/self-issued-auth-service.test.d.ts.map +1 -0
  43. package/dist/ledger/self-issued-auth-service.test.js +454 -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/blockdaemon-wallet-allocator.d.ts +7 -7
  47. package/dist/ledger/wallet-allocation/signing-providers/blockdaemon-wallet-allocator.d.ts.map +1 -1
  48. package/dist/ledger/wallet-allocation/signing-providers/blockdaemon-wallet-allocator.js +1 -1
  49. package/dist/ledger/wallet-allocation/signing-providers/dfns-wallet-allocator.d.ts +7 -7
  50. package/dist/ledger/wallet-allocation/signing-providers/dfns-wallet-allocator.d.ts.map +1 -1
  51. package/dist/ledger/wallet-allocation/signing-providers/dfns-wallet-allocator.js +1 -1
  52. package/dist/ledger/wallet-allocation/signing-providers/fireblocks-wallet-allocator.d.ts +7 -7
  53. package/dist/ledger/wallet-allocation/signing-providers/fireblocks-wallet-allocator.d.ts.map +1 -1
  54. package/dist/ledger/wallet-allocation/signing-providers/fireblocks-wallet-allocator.js +1 -1
  55. package/dist/ledger/wallet-allocation/signing-providers/kernel-wallet-allocator.d.ts +7 -7
  56. package/dist/ledger/wallet-allocation/signing-providers/kernel-wallet-allocator.d.ts.map +1 -1
  57. package/dist/ledger/wallet-allocation/signing-providers/kernel-wallet-allocator.js +1 -1
  58. package/dist/ledger/wallet-allocation/signing-providers/participant-wallet-allocator.d.ts +6 -6
  59. package/dist/ledger/wallet-allocation/signing-providers/participant-wallet-allocator.d.ts.map +1 -1
  60. package/dist/ledger/wallet-allocation/signing-providers/securosys-wallet-allocator.d.ts +7 -7
  61. package/dist/ledger/wallet-allocation/signing-providers/securosys-wallet-allocator.d.ts.map +1 -1
  62. package/dist/ledger/wallet-allocation/signing-providers/securosys-wallet-allocator.js +1 -1
  63. package/dist/ledger/wallet-allocation/wallet-allocation-service.d.ts +6 -6
  64. package/dist/ledger/wallet-allocation/wallet-allocation-service.d.ts.map +1 -1
  65. package/dist/ledger/wallet-sync-service.d.ts +12 -9
  66. package/dist/ledger/wallet-sync-service.d.ts.map +1 -1
  67. package/dist/ledger/wallet-sync-service.js +49 -15
  68. package/dist/ledger/wallet-sync-service.test.js +171 -11
  69. package/dist/middleware/apiKeyAuth.d.ts +3 -3
  70. package/dist/middleware/apiKeyAuth.d.ts.map +1 -1
  71. package/dist/middleware/apiKeyAuth.js +2 -2
  72. package/dist/middleware/errorHandler.d.ts +7 -1
  73. package/dist/middleware/errorHandler.d.ts.map +1 -1
  74. package/dist/middleware/errorHandler.js +85 -1
  75. package/dist/middleware/errorHandler.test.js +39 -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 +46 -7
  79. package/dist/middleware/jsonRpcHandler.test.js +101 -1
  80. package/dist/middleware/jwtAuth.d.ts +2 -2
  81. package/dist/middleware/jwtAuth.d.ts.map +1 -1
  82. package/dist/middleware/sessionHandler.d.ts +6 -4
  83. package/dist/middleware/sessionHandler.d.ts.map +1 -1
  84. package/dist/middleware/sessionHandler.js +25 -1
  85. package/dist/middleware/sessionHandler.test.js +61 -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 +2 -2
  89. package/dist/signing/service-account-session.test.js +1 -2
  90. package/dist/signing/signing-worker.d.ts +18 -16
  91. package/dist/signing/signing-worker.d.ts.map +1 -1
  92. package/dist/signing/signing-worker.js +18 -12
  93. package/dist/signing/signing-worker.test.js +10 -7
  94. package/dist/user-api/controller.d.ts +11 -7
  95. package/dist/user-api/controller.d.ts.map +1 -1
  96. package/dist/user-api/controller.js +249 -86
  97. package/dist/user-api/controller.test.js +145 -17
  98. package/dist/user-api/rpc-gen/index.d.ts +18 -0
  99. package/dist/user-api/rpc-gen/index.d.ts.map +1 -1
  100. package/dist/user-api/rpc-gen/index.js +6 -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 +1035 -0
  104. package/dist/user-api/rpc-gen/typings.d.ts +202 -28
  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/server.test.js +3 -2
  110. package/dist/user-api/token-network-matching.d.ts +2 -2
  111. package/dist/user-api/token-network-matching.d.ts.map +1 -1
  112. package/dist/user-api/token-network-matching.js +9 -7
  113. package/dist/utils.d.ts +0 -29
  114. package/dist/utils.d.ts.map +1 -1
  115. package/dist/utils.js +0 -57
  116. package/dist/version.d.ts.map +1 -1
  117. package/dist/version.js +2 -5
  118. package/dist/web/frontend/404/index.html +2 -2
  119. package/dist/web/frontend/activities/index.html +3 -3
  120. package/dist/web/frontend/api-keys/add/index.html +2 -2
  121. package/dist/web/frontend/api-keys/index.html +2 -2
  122. package/dist/web/frontend/approve/index.html +3 -3
  123. package/dist/web/frontend/assets/404-B1XXXMXN.js +5 -0
  124. package/dist/web/frontend/assets/{activities-DSP_NZCE.js → activities-HZnPjlMp.js} +2 -2
  125. package/dist/web/frontend/assets/{addApiKey-Zv2CS3ub.js → addApiKey-BvkCtUF3.js} +3 -3
  126. package/dist/web/frontend/assets/addIdentityProvider-Dvjma837.js +28 -0
  127. package/dist/web/frontend/assets/{addNetwork-B620CvC-.js → addNetwork-Cahac0uo.js} +2 -2
  128. package/dist/web/frontend/assets/addParty-Cdoed_Yx.js +13 -0
  129. package/dist/web/frontend/assets/{apiKeys-ohQpjexi.js → apiKeys-BwV6ylWL.js} +3 -3
  130. package/dist/web/frontend/assets/approve-B0nIfe2y.js +26 -0
  131. package/dist/web/frontend/assets/callback-BieW5Ux2.js +7 -0
  132. package/dist/web/frontend/assets/{common-BCDg7K0r.js → common-Bv9twGrA.js} +2 -2
  133. package/dist/web/frontend/assets/editParty-OOjTHFay.js +14 -0
  134. package/dist/web/frontend/assets/{identityProviders-C26I4FyE.js → identityProviders-BxJAq1Ne.js} +2 -2
  135. package/dist/web/frontend/assets/index-Bo6MnlYI.js +2 -0
  136. package/dist/web/frontend/assets/index-CG_aFABR.js +1 -0
  137. package/dist/web/frontend/assets/index-D1Brmwbg.js +93 -0
  138. package/dist/web/frontend/assets/index-pMOoiNFq.js +4887 -0
  139. package/dist/web/frontend/assets/login-BHxgJEz_.js +11 -0
  140. package/dist/web/frontend/assets/{networks-CtFnklqS.js → networks-CBprjUF5.js} +3 -3
  141. package/dist/web/frontend/assets/onboarding-ChmWs-TC.js +84 -0
  142. package/dist/web/frontend/assets/reviewIdentityProvider-CCmKgN8N.js +43 -0
  143. package/dist/web/frontend/assets/reviewNetwork-CX8Bmuf3.js +43 -0
  144. package/dist/web/frontend/assets/signMessage-BN_6S5FV.js +79 -0
  145. package/dist/web/frontend/callback/index.html +2 -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 +2 -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/onboarding/index.html +23 -0
  155. package/dist/web/frontend/parties/add/index.html +5 -4
  156. package/dist/web/frontend/parties/edit/index.html +5 -4
  157. package/dist/web/frontend/parties/index.html +3 -2
  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/package.json +36 -30
  163. package/dist/ledger/transaction-service.d.ts +0 -27
  164. package/dist/ledger/transaction-service.d.ts.map +0 -1
  165. package/dist/ledger/transaction-service.js +0 -297
  166. package/dist/ledger/transaction-service.test.d.ts +0 -2
  167. package/dist/ledger/transaction-service.test.d.ts.map +0 -1
  168. package/dist/ledger/transaction-service.test.js +0 -551
  169. package/dist/notification/NotificationService.d.ts +0 -18
  170. package/dist/notification/NotificationService.d.ts.map +0 -1
  171. package/dist/notification/NotificationService.js +0 -26
  172. package/dist/notification/NotificationService.test.d.ts +0 -2
  173. package/dist/notification/NotificationService.test.d.ts.map +0 -1
  174. package/dist/notification/NotificationService.test.js +0 -110
  175. package/dist/signing/signing-drivers.d.ts +0 -7
  176. package/dist/signing/signing-drivers.d.ts.map +0 -1
  177. package/dist/signing/signing-drivers.js +0 -3
  178. package/dist/web/frontend/assets/404-Ds_FbOi_.js +0 -5
  179. package/dist/web/frontend/assets/addIdentityProvider-BqiC9u9A.js +0 -28
  180. package/dist/web/frontend/assets/addParty-CSMZt930.js +0 -13
  181. package/dist/web/frontend/assets/approve-D5YmfGHz.js +0 -21
  182. package/dist/web/frontend/assets/callback-Dk9tIdBj.js +0 -7
  183. package/dist/web/frontend/assets/editParty-DX9X91dp.js +0 -14
  184. package/dist/web/frontend/assets/index-BCECRB_Y.js +0 -4943
  185. package/dist/web/frontend/assets/index-Cvcr2Fng.js +0 -2
  186. package/dist/web/frontend/assets/index-DrEQVBtC.js +0 -93
  187. package/dist/web/frontend/assets/login-dmjNaK2x.js +0 -11
  188. package/dist/web/frontend/assets/reviewIdentityProvider-GBlomu4-.js +0 -43
  189. package/dist/web/frontend/assets/reviewNetwork-CWEgNcCg.js +0 -43
  190. package/dist/web/frontend/assets/settings-DSh9rqaO.js +0 -37
  191. package/dist/web/frontend/assets/signMessage-CT2_Y1LA.js +0 -79
  192. package/dist/web/frontend/settings/index.html +0 -15
@@ -0,0 +1,1035 @@
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
+ addSelfIssuedSession: z.fromJSONSchema({
631
+ title: 'AddSelfIssuedSessionParams',
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
+ getSelfIssuedOnboarding: z.fromJSONSchema({
654
+ title: 'GetSelfIssuedOnboardingParams',
655
+ type: 'object',
656
+ additionalProperties: { type: 'null' },
657
+ properties: {
658
+ sessionId: {
659
+ title: 'sessionId',
660
+ type: 'string',
661
+ description: 'Onboarding session id returned by addSelfIssuedSession.',
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: 'Onboarding session id returned by addSelfIssuedSession.',
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: 'Onboarding session id returned by addSelfIssuedSession.',
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
+ connectSelfIssuedSession: z.fromJSONSchema({
708
+ title: 'ConnectSelfIssuedSessionParams',
709
+ type: 'object',
710
+ additionalProperties: { type: 'null' },
711
+ properties: {
712
+ sessionId: {
713
+ title: 'sessionId',
714
+ type: 'string',
715
+ description: 'Onboarding session id returned by addSelfIssuedSession.',
716
+ },
717
+ partyId: {
718
+ title: 'partyId',
719
+ type: 'string',
720
+ description: 'Allocated party selected for authentication.',
721
+ },
722
+ },
723
+ required: ['sessionId', 'partyId'],
724
+ }),
725
+ allocatePartyForWallet: z.fromJSONSchema({
726
+ title: 'AllocatePartyForWalletParams',
727
+ type: 'object',
728
+ additionalProperties: { type: 'null' },
729
+ properties: {
730
+ partyId: {
731
+ title: 'partyId',
732
+ type: 'string',
733
+ description: 'The party ID of the initialized wallet to allocate.',
734
+ },
735
+ },
736
+ required: ['partyId'],
737
+ }),
738
+ setPrimaryWallet: z.fromJSONSchema({
739
+ title: 'SetPrimaryWalletParams',
740
+ type: 'object',
741
+ additionalProperties: { type: 'null' },
742
+ properties: {
743
+ partyId: {
744
+ title: 'partyId',
745
+ type: 'string',
746
+ description: 'The party id of the wallet to set as primary.',
747
+ },
748
+ },
749
+ required: ['partyId'],
750
+ }),
751
+ removeWallet: z.fromJSONSchema({
752
+ title: 'RemoveWalletParams',
753
+ type: 'object',
754
+ additionalProperties: { type: 'null' },
755
+ properties: {
756
+ partyId: {
757
+ title: 'partyId',
758
+ type: 'string',
759
+ description: 'The party id of the wallet to be removed.',
760
+ },
761
+ },
762
+ required: ['partyId'],
763
+ }),
764
+ listWallets: z.fromJSONSchema({
765
+ title: 'ListWalletsParams',
766
+ type: 'object',
767
+ additionalProperties: { type: 'null' },
768
+ properties: {
769
+ filter: {
770
+ title: 'WalletFilter',
771
+ type: 'object',
772
+ description: 'Filter for the wallets to be returned.',
773
+ additionalProperties: { type: 'null' },
774
+ properties: {
775
+ networkIds: {
776
+ title: 'networkIds',
777
+ type: 'array',
778
+ description: 'Filter wallets by network IDs.',
779
+ items: { title: 'networkId', type: 'string' },
780
+ },
781
+ signingProviderIds: {
782
+ title: 'signingProviderIds',
783
+ type: 'array',
784
+ description: 'Filter wallets by signing provider IDs.',
785
+ items: { title: 'signingProviderId', type: 'string' },
786
+ },
787
+ },
788
+ },
789
+ },
790
+ required: [],
791
+ }),
792
+ syncWallets: noParams,
793
+ isWalletSyncNeeded: noParams,
794
+ sign: z.fromJSONSchema({
795
+ title: 'SignParams',
796
+ type: 'object',
797
+ additionalProperties: { type: 'null' },
798
+ properties: {
799
+ transactionId: {
800
+ title: 'transactionId',
801
+ type: 'string',
802
+ format: 'uuid',
803
+ description: 'The internal transaction identifier.',
804
+ },
805
+ partyId: { title: 'partyId', type: 'string' },
806
+ },
807
+ required: ['transactionId', 'partyId'],
808
+ }),
809
+ signMessage: z.fromJSONSchema({
810
+ title: 'SignMessageParams',
811
+ type: 'object',
812
+ additionalProperties: { type: 'null' },
813
+ properties: {
814
+ messageId: {
815
+ title: 'MessageId',
816
+ type: 'string',
817
+ format: 'uuid',
818
+ description: 'The internal identifier of the pending message-signing request.',
819
+ },
820
+ partyId: {
821
+ title: 'partyId',
822
+ type: 'string',
823
+ description: 'Party that should sign the message. If omitted, the primary wallet is used.',
824
+ },
825
+ },
826
+ required: ['messageId'],
827
+ }),
828
+ getMessageToSign: z.fromJSONSchema({
829
+ title: 'GetMessageToSignParams',
830
+ type: 'object',
831
+ additionalProperties: { type: 'null' },
832
+ properties: {
833
+ messageId: {
834
+ title: 'MessageId',
835
+ type: 'string',
836
+ format: 'uuid',
837
+ description: 'The internal identifier of the pending message-signing request.',
838
+ },
839
+ },
840
+ required: ['messageId'],
841
+ }),
842
+ listMessagesToSign: noParams,
843
+ deleteMessageToSign: z.fromJSONSchema({
844
+ title: 'DeleteMessageToSignParams',
845
+ type: 'object',
846
+ additionalProperties: { type: 'null' },
847
+ properties: {
848
+ messageId: {
849
+ title: 'MessageId',
850
+ type: 'string',
851
+ format: 'uuid',
852
+ description: 'The internal identifier of the pending message-signing request.',
853
+ },
854
+ },
855
+ required: ['messageId'],
856
+ }),
857
+ execute: z.fromJSONSchema({
858
+ title: 'ExecuteParams',
859
+ type: 'object',
860
+ additionalProperties: { type: 'null' },
861
+ properties: {
862
+ partyId: { title: 'partyId', type: 'string' },
863
+ transactionId: {
864
+ title: 'transactionId',
865
+ type: 'string',
866
+ format: 'uuid',
867
+ description: 'The internal transaction identifier.',
868
+ },
869
+ },
870
+ required: ['transactionId', 'partyId'],
871
+ }),
872
+ addSession: z.fromJSONSchema({
873
+ title: 'AddSessionParams',
874
+ type: 'object',
875
+ additionalProperties: { type: 'null' },
876
+ properties: {
877
+ origin: {
878
+ title: 'origin',
879
+ type: 'string',
880
+ description: 'origin of the dApp establishing a session',
881
+ },
882
+ networkId: {
883
+ title: 'networkId',
884
+ type: 'string',
885
+ description: 'Network Id',
886
+ },
887
+ },
888
+ required: ['networkId', 'origin'],
889
+ }),
890
+ removeSession: noParams,
891
+ listSessions: noParams,
892
+ getTransaction: z.fromJSONSchema({
893
+ title: 'GetTransactionParams',
894
+ type: 'object',
895
+ additionalProperties: { type: 'null' },
896
+ properties: {
897
+ transactionId: {
898
+ title: 'transactionId',
899
+ type: 'string',
900
+ format: 'uuid',
901
+ description: 'The internal transaction identifier.',
902
+ },
903
+ },
904
+ required: ['transactionId'],
905
+ }),
906
+ getTransactionStatus: z.fromJSONSchema({
907
+ title: 'GetTransactionStatusParams',
908
+ type: 'object',
909
+ additionalProperties: { type: 'null' },
910
+ properties: {
911
+ transactionId: {
912
+ title: 'transactionId',
913
+ type: 'string',
914
+ format: 'uuid',
915
+ description: 'The internal transaction identifier.',
916
+ },
917
+ partyId: {
918
+ title: 'partyId',
919
+ type: 'string',
920
+ description: 'The party ID corresponding to the wallet.',
921
+ },
922
+ },
923
+ required: ['transactionId'],
924
+ }),
925
+ listTransactions: z
926
+ .fromJSONSchema({
927
+ title: 'ListTransactionsParams',
928
+ type: 'object',
929
+ additionalProperties: { type: 'null' },
930
+ properties: {
931
+ limit: {
932
+ title: 'limit',
933
+ type: 'integer',
934
+ description: 'Limit of transactions to return.',
935
+ },
936
+ cursor: {
937
+ title: 'cursor',
938
+ type: ['string'],
939
+ description: 'Cursor for next page of results.',
940
+ },
941
+ },
942
+ })
943
+ .optional(),
944
+ deleteTransaction: z.fromJSONSchema({
945
+ title: 'DeleteTransactionParams',
946
+ type: 'object',
947
+ additionalProperties: { type: 'null' },
948
+ properties: {
949
+ transactionId: {
950
+ title: 'transactionId',
951
+ type: 'string',
952
+ format: 'uuid',
953
+ description: 'The internal transaction identifier.',
954
+ },
955
+ },
956
+ required: ['transactionId'],
957
+ }),
958
+ getUser: noParams,
959
+ generateApiKey: z.fromJSONSchema({
960
+ title: 'GenerateApiKeyParams',
961
+ type: 'object',
962
+ additionalProperties: { type: 'null' },
963
+ properties: {
964
+ name: {
965
+ title: 'name',
966
+ type: 'string',
967
+ description: 'A name to identify the API key.',
968
+ },
969
+ },
970
+ required: ['name'],
971
+ }),
972
+ listApiKeys: noParams,
973
+ removeApiKey: z.fromJSONSchema({
974
+ title: 'RemoveApiKeyParams',
975
+ type: 'object',
976
+ additionalProperties: { type: 'null' },
977
+ properties: {
978
+ id: {
979
+ title: 'id',
980
+ type: 'string',
981
+ description: 'The unique identifier of the API key.',
982
+ },
983
+ },
984
+ required: ['id'],
985
+ }),
986
+ listSigningProviderKeys: z.fromJSONSchema({
987
+ title: 'ListSigningProviderKeysParams',
988
+ type: 'object',
989
+ additionalProperties: { type: 'null' },
990
+ properties: {
991
+ signingProviderId: {
992
+ title: 'signingProviderId',
993
+ type: 'string',
994
+ description: 'The signing provider ID the wallet corresponds to.',
995
+ },
996
+ },
997
+ required: ['signingProviderId'],
998
+ }),
999
+ getWallet: z.fromJSONSchema({
1000
+ title: 'GetWalletParams',
1001
+ type: 'object',
1002
+ additionalProperties: { type: 'null' },
1003
+ properties: {
1004
+ partyId: {
1005
+ title: 'partyId',
1006
+ type: 'string',
1007
+ description: 'The party ID corresponding to the wallet.',
1008
+ },
1009
+ },
1010
+ required: ['partyId'],
1011
+ }),
1012
+ changeSigningProvider: z.fromJSONSchema({
1013
+ title: 'changeSigningProviderParams',
1014
+ type: 'object',
1015
+ additionalProperties: { type: 'null' },
1016
+ properties: {
1017
+ signingProviderId: {
1018
+ title: 'signingProviderId',
1019
+ type: 'string',
1020
+ description: 'The signing provider ID the party should correspond to.',
1021
+ },
1022
+ partyId: {
1023
+ title: 'partyId',
1024
+ type: 'string',
1025
+ description: 'The party ID corresponding to the wallet.',
1026
+ },
1027
+ publicKey: {
1028
+ title: 'publicKey',
1029
+ type: 'string',
1030
+ description: "The key to be used for the party's signing provider",
1031
+ },
1032
+ },
1033
+ required: ['signingProviderId', 'partyId', 'publicKey'],
1034
+ }),
1035
+ };