@canton-network/wallet-gateway-remote 0.5.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -0
- package/dist/auth/jwt-auth-service.d.ts.map +1 -1
- package/dist/auth/jwt-auth-service.js +2 -3
- package/dist/auth/jwt-unsafe-auth-service.d.ts.map +1 -1
- package/dist/auth/jwt-unsafe-auth-service.js +2 -3
- package/dist/config/Config.d.ts +371 -351
- package/dist/config/Config.d.ts.map +1 -1
- package/dist/config/Config.js +2 -0
- package/dist/config/Config.test.js +7 -10
- package/dist/config/ConfigUtils.d.ts.map +1 -1
- package/dist/config/ConfigUtils.js +59 -1
- package/dist/dapp-api/controller.js +1 -1
- package/dist/dapp-api/rpc-gen/typings.d.ts +18 -4
- package/dist/dapp-api/rpc-gen/typings.d.ts.map +1 -1
- package/dist/init.d.ts.map +1 -1
- package/dist/init.js +50 -2
- package/dist/ledger/party-allocation-service.d.ts +20 -0
- package/dist/ledger/party-allocation-service.d.ts.map +1 -1
- package/dist/ledger/party-allocation-service.js +22 -2
- package/dist/ledger/party-allocation-service.test.js +10 -6
- package/dist/ledger/wallet-sync-service.js +1 -1
- package/dist/user-api/controller.d.ts +2 -1
- package/dist/user-api/controller.d.ts.map +1 -1
- package/dist/user-api/controller.js +107 -104
- package/dist/user-api/rpc-gen/index.d.ts +6 -3
- package/dist/user-api/rpc-gen/index.d.ts.map +1 -1
- package/dist/user-api/rpc-gen/index.js +2 -1
- package/dist/user-api/rpc-gen/typings.d.ts +96 -41
- package/dist/user-api/rpc-gen/typings.d.ts.map +1 -1
- package/dist/user-api/server.test.js +5 -6
- package/dist/web/frontend/404/index.html +2 -2
- package/dist/web/frontend/approve/index.html +4 -4
- package/dist/web/frontend/assets/{404-BJiXCpwg.js → 404-CXLFjs4t.js} +1 -1
- package/dist/web/frontend/assets/{approve-hB6irrWF.js → approve-gdszLXiW.js} +1 -1
- package/dist/web/frontend/assets/{callback-DHz7ggNR.js → callback-DAqmeyV_.js} +1 -1
- package/dist/web/frontend/assets/{handle-errors-DT2Go5Ch.js → handle-errors-D7N_0lCR.js} +1 -1
- package/dist/web/frontend/assets/{index-YpAHEASq.js → index-DZurNsA2.js} +123 -116
- package/dist/web/frontend/assets/login-BT0j3jH9.js +159 -0
- package/dist/web/frontend/assets/{networks-CaAXx7MG.js → networks-C7TB_OYA.js} +9 -9
- package/dist/web/frontend/assets/{state-BTqOtYLt.js → state-ZaohYYFB.js} +2 -2
- package/dist/web/frontend/assets/wallets-B3XNkikq.js +244 -0
- package/dist/web/frontend/callback/index.html +2 -2
- package/dist/web/frontend/index.html +1 -1
- package/dist/web/frontend/login/index.html +3 -3
- package/dist/web/frontend/networks/index.html +4 -4
- package/dist/web/frontend/wallets/index.html +4 -4
- package/package.json +17 -15
- package/dist/web/frontend/assets/login-Dw5jymys.js +0 -159
- package/dist/web/frontend/assets/wallets-fk9mMhcI.js +0 -214
package/dist/config/Config.d.ts
CHANGED
|
@@ -70,11 +70,40 @@ export declare const configSchema: z.ZodObject<{
|
|
|
70
70
|
user: string;
|
|
71
71
|
password: string;
|
|
72
72
|
}>]>;
|
|
73
|
+
idps: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
74
|
+
id: z.ZodString;
|
|
75
|
+
type: z.ZodLiteral<"self_signed">;
|
|
76
|
+
issuer: z.ZodString;
|
|
77
|
+
}, "strip", z.ZodTypeAny, {
|
|
78
|
+
type: "self_signed";
|
|
79
|
+
issuer: string;
|
|
80
|
+
id: string;
|
|
81
|
+
}, {
|
|
82
|
+
type: "self_signed";
|
|
83
|
+
issuer: string;
|
|
84
|
+
id: string;
|
|
85
|
+
}>, z.ZodObject<{
|
|
86
|
+
id: z.ZodString;
|
|
87
|
+
type: z.ZodLiteral<"oauth">;
|
|
88
|
+
issuer: z.ZodString;
|
|
89
|
+
configUrl: z.ZodString;
|
|
90
|
+
}, "strip", z.ZodTypeAny, {
|
|
91
|
+
type: "oauth";
|
|
92
|
+
issuer: string;
|
|
93
|
+
id: string;
|
|
94
|
+
configUrl: string;
|
|
95
|
+
}, {
|
|
96
|
+
type: "oauth";
|
|
97
|
+
issuer: string;
|
|
98
|
+
id: string;
|
|
99
|
+
configUrl: string;
|
|
100
|
+
}>]>, "many">;
|
|
73
101
|
networks: z.ZodArray<z.ZodObject<{
|
|
102
|
+
id: z.ZodString;
|
|
74
103
|
name: z.ZodString;
|
|
75
|
-
chainId: z.ZodString;
|
|
76
|
-
synchronizerId: z.ZodString;
|
|
77
104
|
description: z.ZodString;
|
|
105
|
+
synchronizerId: z.ZodString;
|
|
106
|
+
identityProviderId: z.ZodString;
|
|
78
107
|
ledgerApi: z.ZodObject<{
|
|
79
108
|
baseUrl: z.ZodString;
|
|
80
109
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -82,304 +111,210 @@ export declare const configSchema: z.ZodObject<{
|
|
|
82
111
|
}, {
|
|
83
112
|
baseUrl: string;
|
|
84
113
|
}>;
|
|
85
|
-
auth: z.ZodDiscriminatedUnion<"
|
|
86
|
-
|
|
87
|
-
type: z.ZodLiteral<"password">;
|
|
88
|
-
issuer: z.ZodString;
|
|
89
|
-
configUrl: z.ZodString;
|
|
114
|
+
auth: z.ZodDiscriminatedUnion<"method", [z.ZodObject<{
|
|
115
|
+
method: z.ZodLiteral<"authorization_code">;
|
|
90
116
|
audience: z.ZodString;
|
|
91
|
-
tokenUrl: z.ZodString;
|
|
92
|
-
grantType: z.ZodString;
|
|
93
117
|
scope: z.ZodString;
|
|
94
118
|
clientId: z.ZodString;
|
|
95
|
-
admin: z.ZodOptional<z.ZodObject<{
|
|
96
|
-
clientId: z.ZodString;
|
|
97
|
-
clientSecret: z.ZodString;
|
|
98
|
-
}, "strip", z.ZodTypeAny, {
|
|
99
|
-
clientId: string;
|
|
100
|
-
clientSecret: string;
|
|
101
|
-
}, {
|
|
102
|
-
clientId: string;
|
|
103
|
-
clientSecret: string;
|
|
104
|
-
}>>;
|
|
105
119
|
}, "strip", z.ZodTypeAny, {
|
|
106
|
-
|
|
107
|
-
type: "password";
|
|
108
|
-
identityProviderId: string;
|
|
109
|
-
issuer: string;
|
|
110
|
-
configUrl: string;
|
|
120
|
+
method: "authorization_code";
|
|
111
121
|
audience: string;
|
|
112
|
-
tokenUrl: string;
|
|
113
|
-
grantType: string;
|
|
114
122
|
scope: string;
|
|
115
|
-
admin?: {
|
|
116
|
-
clientId: string;
|
|
117
|
-
clientSecret: string;
|
|
118
|
-
} | undefined;
|
|
119
|
-
}, {
|
|
120
123
|
clientId: string;
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
issuer: string;
|
|
124
|
-
configUrl: string;
|
|
124
|
+
}, {
|
|
125
|
+
method: "authorization_code";
|
|
125
126
|
audience: string;
|
|
126
|
-
tokenUrl: string;
|
|
127
|
-
grantType: string;
|
|
128
127
|
scope: string;
|
|
129
|
-
|
|
130
|
-
clientId: string;
|
|
131
|
-
clientSecret: string;
|
|
132
|
-
} | undefined;
|
|
128
|
+
clientId: string;
|
|
133
129
|
}>, z.ZodObject<{
|
|
134
|
-
|
|
135
|
-
type: z.ZodLiteral<"implicit">;
|
|
136
|
-
issuer: z.ZodString;
|
|
137
|
-
configUrl: z.ZodString;
|
|
130
|
+
method: z.ZodLiteral<"client_credentials">;
|
|
138
131
|
audience: z.ZodString;
|
|
139
132
|
scope: z.ZodString;
|
|
140
133
|
clientId: z.ZodString;
|
|
141
|
-
|
|
142
|
-
clientId: z.ZodString;
|
|
143
|
-
clientSecret: z.ZodString;
|
|
144
|
-
}, "strip", z.ZodTypeAny, {
|
|
145
|
-
clientId: string;
|
|
146
|
-
clientSecret: string;
|
|
147
|
-
}, {
|
|
148
|
-
clientId: string;
|
|
149
|
-
clientSecret: string;
|
|
150
|
-
}>>;
|
|
134
|
+
clientSecret: z.ZodString;
|
|
151
135
|
}, "strip", z.ZodTypeAny, {
|
|
152
|
-
|
|
153
|
-
type: "implicit";
|
|
154
|
-
identityProviderId: string;
|
|
155
|
-
issuer: string;
|
|
156
|
-
configUrl: string;
|
|
136
|
+
method: "client_credentials";
|
|
157
137
|
audience: string;
|
|
158
138
|
scope: string;
|
|
159
|
-
admin?: {
|
|
160
|
-
clientId: string;
|
|
161
|
-
clientSecret: string;
|
|
162
|
-
} | undefined;
|
|
163
|
-
}, {
|
|
164
139
|
clientId: string;
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
configUrl: string;
|
|
140
|
+
clientSecret: string;
|
|
141
|
+
}, {
|
|
142
|
+
method: "client_credentials";
|
|
169
143
|
audience: string;
|
|
170
144
|
scope: string;
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
clientSecret: string;
|
|
174
|
-
} | undefined;
|
|
145
|
+
clientId: string;
|
|
146
|
+
clientSecret: string;
|
|
175
147
|
}>, z.ZodObject<{
|
|
176
|
-
|
|
177
|
-
type: z.ZodLiteral<"client_credentials">;
|
|
148
|
+
method: z.ZodLiteral<"self_signed">;
|
|
178
149
|
issuer: z.ZodString;
|
|
179
|
-
configUrl: z.ZodString;
|
|
180
150
|
audience: z.ZodString;
|
|
181
151
|
scope: z.ZodString;
|
|
182
152
|
clientId: z.ZodString;
|
|
183
153
|
clientSecret: z.ZodString;
|
|
184
|
-
admin: z.ZodOptional<z.ZodObject<{
|
|
185
|
-
clientId: z.ZodString;
|
|
186
|
-
clientSecret: z.ZodString;
|
|
187
|
-
}, "strip", z.ZodTypeAny, {
|
|
188
|
-
clientId: string;
|
|
189
|
-
clientSecret: string;
|
|
190
|
-
}, {
|
|
191
|
-
clientId: string;
|
|
192
|
-
clientSecret: string;
|
|
193
|
-
}>>;
|
|
194
154
|
}, "strip", z.ZodTypeAny, {
|
|
155
|
+
method: "self_signed";
|
|
156
|
+
audience: string;
|
|
157
|
+
scope: string;
|
|
195
158
|
clientId: string;
|
|
196
159
|
clientSecret: string;
|
|
197
|
-
type: "client_credentials";
|
|
198
|
-
identityProviderId: string;
|
|
199
160
|
issuer: string;
|
|
200
|
-
|
|
161
|
+
}, {
|
|
162
|
+
method: "self_signed";
|
|
201
163
|
audience: string;
|
|
202
164
|
scope: string;
|
|
203
|
-
admin?: {
|
|
204
|
-
clientId: string;
|
|
205
|
-
clientSecret: string;
|
|
206
|
-
} | undefined;
|
|
207
|
-
}, {
|
|
208
165
|
clientId: string;
|
|
209
166
|
clientSecret: string;
|
|
210
|
-
type: "client_credentials";
|
|
211
|
-
identityProviderId: string;
|
|
212
167
|
issuer: string;
|
|
213
|
-
|
|
168
|
+
}>]>;
|
|
169
|
+
adminAuth: z.ZodOptional<z.ZodDiscriminatedUnion<"method", [z.ZodObject<{
|
|
170
|
+
method: z.ZodLiteral<"authorization_code">;
|
|
171
|
+
audience: z.ZodString;
|
|
172
|
+
scope: z.ZodString;
|
|
173
|
+
clientId: z.ZodString;
|
|
174
|
+
}, "strip", z.ZodTypeAny, {
|
|
175
|
+
method: "authorization_code";
|
|
214
176
|
audience: string;
|
|
215
177
|
scope: string;
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
178
|
+
clientId: string;
|
|
179
|
+
}, {
|
|
180
|
+
method: "authorization_code";
|
|
181
|
+
audience: string;
|
|
182
|
+
scope: string;
|
|
183
|
+
clientId: string;
|
|
220
184
|
}>, z.ZodObject<{
|
|
221
|
-
|
|
222
|
-
type: z.ZodLiteral<"self_signed">;
|
|
223
|
-
issuer: z.ZodString;
|
|
185
|
+
method: z.ZodLiteral<"client_credentials">;
|
|
224
186
|
audience: z.ZodString;
|
|
225
187
|
scope: z.ZodString;
|
|
226
188
|
clientId: z.ZodString;
|
|
227
189
|
clientSecret: z.ZodString;
|
|
228
|
-
admin: z.ZodOptional<z.ZodObject<{
|
|
229
|
-
clientId: z.ZodString;
|
|
230
|
-
clientSecret: z.ZodString;
|
|
231
|
-
}, "strip", z.ZodTypeAny, {
|
|
232
|
-
clientId: string;
|
|
233
|
-
clientSecret: string;
|
|
234
|
-
}, {
|
|
235
|
-
clientId: string;
|
|
236
|
-
clientSecret: string;
|
|
237
|
-
}>>;
|
|
238
190
|
}, "strip", z.ZodTypeAny, {
|
|
191
|
+
method: "client_credentials";
|
|
192
|
+
audience: string;
|
|
193
|
+
scope: string;
|
|
239
194
|
clientId: string;
|
|
240
195
|
clientSecret: string;
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
196
|
+
}, {
|
|
197
|
+
method: "client_credentials";
|
|
198
|
+
audience: string;
|
|
199
|
+
scope: string;
|
|
200
|
+
clientId: string;
|
|
201
|
+
clientSecret: string;
|
|
202
|
+
}>, z.ZodObject<{
|
|
203
|
+
method: z.ZodLiteral<"self_signed">;
|
|
204
|
+
issuer: z.ZodString;
|
|
205
|
+
audience: z.ZodString;
|
|
206
|
+
scope: z.ZodString;
|
|
207
|
+
clientId: z.ZodString;
|
|
208
|
+
clientSecret: z.ZodString;
|
|
209
|
+
}, "strip", z.ZodTypeAny, {
|
|
210
|
+
method: "self_signed";
|
|
244
211
|
audience: string;
|
|
245
212
|
scope: string;
|
|
246
|
-
admin?: {
|
|
247
|
-
clientId: string;
|
|
248
|
-
clientSecret: string;
|
|
249
|
-
} | undefined;
|
|
250
|
-
}, {
|
|
251
213
|
clientId: string;
|
|
252
214
|
clientSecret: string;
|
|
253
|
-
type: "self_signed";
|
|
254
|
-
identityProviderId: string;
|
|
255
215
|
issuer: string;
|
|
216
|
+
}, {
|
|
217
|
+
method: "self_signed";
|
|
256
218
|
audience: string;
|
|
257
219
|
scope: string;
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
}>]>;
|
|
220
|
+
clientId: string;
|
|
221
|
+
clientSecret: string;
|
|
222
|
+
issuer: string;
|
|
223
|
+
}>]>>;
|
|
263
224
|
}, "strip", z.ZodTypeAny, {
|
|
225
|
+
id: string;
|
|
264
226
|
name: string;
|
|
265
|
-
chainId: string;
|
|
266
|
-
synchronizerId: string;
|
|
267
227
|
description: string;
|
|
228
|
+
synchronizerId: string;
|
|
229
|
+
identityProviderId: string;
|
|
268
230
|
ledgerApi: {
|
|
269
231
|
baseUrl: string;
|
|
270
232
|
};
|
|
271
233
|
auth: {
|
|
272
|
-
|
|
273
|
-
type: "password";
|
|
274
|
-
identityProviderId: string;
|
|
275
|
-
issuer: string;
|
|
276
|
-
configUrl: string;
|
|
234
|
+
method: "authorization_code";
|
|
277
235
|
audience: string;
|
|
278
|
-
tokenUrl: string;
|
|
279
|
-
grantType: string;
|
|
280
236
|
scope: string;
|
|
281
|
-
admin?: {
|
|
282
|
-
clientId: string;
|
|
283
|
-
clientSecret: string;
|
|
284
|
-
} | undefined;
|
|
285
|
-
} | {
|
|
286
237
|
clientId: string;
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
issuer: string;
|
|
290
|
-
configUrl: string;
|
|
238
|
+
} | {
|
|
239
|
+
method: "client_credentials";
|
|
291
240
|
audience: string;
|
|
292
241
|
scope: string;
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
clientSecret: string;
|
|
296
|
-
} | undefined;
|
|
242
|
+
clientId: string;
|
|
243
|
+
clientSecret: string;
|
|
297
244
|
} | {
|
|
245
|
+
method: "self_signed";
|
|
246
|
+
audience: string;
|
|
247
|
+
scope: string;
|
|
298
248
|
clientId: string;
|
|
299
249
|
clientSecret: string;
|
|
300
|
-
type: "client_credentials";
|
|
301
|
-
identityProviderId: string;
|
|
302
250
|
issuer: string;
|
|
303
|
-
|
|
251
|
+
};
|
|
252
|
+
adminAuth?: {
|
|
253
|
+
method: "authorization_code";
|
|
304
254
|
audience: string;
|
|
305
255
|
scope: string;
|
|
306
|
-
|
|
307
|
-
clientId: string;
|
|
308
|
-
clientSecret: string;
|
|
309
|
-
} | undefined;
|
|
256
|
+
clientId: string;
|
|
310
257
|
} | {
|
|
258
|
+
method: "client_credentials";
|
|
259
|
+
audience: string;
|
|
260
|
+
scope: string;
|
|
311
261
|
clientId: string;
|
|
312
262
|
clientSecret: string;
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
issuer: string;
|
|
263
|
+
} | {
|
|
264
|
+
method: "self_signed";
|
|
316
265
|
audience: string;
|
|
317
266
|
scope: string;
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
};
|
|
267
|
+
clientId: string;
|
|
268
|
+
clientSecret: string;
|
|
269
|
+
issuer: string;
|
|
270
|
+
} | undefined;
|
|
323
271
|
}, {
|
|
272
|
+
id: string;
|
|
324
273
|
name: string;
|
|
325
|
-
chainId: string;
|
|
326
|
-
synchronizerId: string;
|
|
327
274
|
description: string;
|
|
275
|
+
synchronizerId: string;
|
|
276
|
+
identityProviderId: string;
|
|
328
277
|
ledgerApi: {
|
|
329
278
|
baseUrl: string;
|
|
330
279
|
};
|
|
331
280
|
auth: {
|
|
332
|
-
|
|
333
|
-
type: "password";
|
|
334
|
-
identityProviderId: string;
|
|
335
|
-
issuer: string;
|
|
336
|
-
configUrl: string;
|
|
281
|
+
method: "authorization_code";
|
|
337
282
|
audience: string;
|
|
338
|
-
tokenUrl: string;
|
|
339
|
-
grantType: string;
|
|
340
283
|
scope: string;
|
|
341
|
-
admin?: {
|
|
342
|
-
clientId: string;
|
|
343
|
-
clientSecret: string;
|
|
344
|
-
} | undefined;
|
|
345
|
-
} | {
|
|
346
284
|
clientId: string;
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
issuer: string;
|
|
350
|
-
configUrl: string;
|
|
285
|
+
} | {
|
|
286
|
+
method: "client_credentials";
|
|
351
287
|
audience: string;
|
|
352
288
|
scope: string;
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
clientSecret: string;
|
|
356
|
-
} | undefined;
|
|
289
|
+
clientId: string;
|
|
290
|
+
clientSecret: string;
|
|
357
291
|
} | {
|
|
292
|
+
method: "self_signed";
|
|
293
|
+
audience: string;
|
|
294
|
+
scope: string;
|
|
358
295
|
clientId: string;
|
|
359
296
|
clientSecret: string;
|
|
360
|
-
type: "client_credentials";
|
|
361
|
-
identityProviderId: string;
|
|
362
297
|
issuer: string;
|
|
363
|
-
|
|
298
|
+
};
|
|
299
|
+
adminAuth?: {
|
|
300
|
+
method: "authorization_code";
|
|
364
301
|
audience: string;
|
|
365
302
|
scope: string;
|
|
366
|
-
|
|
367
|
-
clientId: string;
|
|
368
|
-
clientSecret: string;
|
|
369
|
-
} | undefined;
|
|
303
|
+
clientId: string;
|
|
370
304
|
} | {
|
|
305
|
+
method: "client_credentials";
|
|
306
|
+
audience: string;
|
|
307
|
+
scope: string;
|
|
371
308
|
clientId: string;
|
|
372
309
|
clientSecret: string;
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
issuer: string;
|
|
310
|
+
} | {
|
|
311
|
+
method: "self_signed";
|
|
376
312
|
audience: string;
|
|
377
313
|
scope: string;
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
};
|
|
314
|
+
clientId: string;
|
|
315
|
+
clientSecret: string;
|
|
316
|
+
issuer: string;
|
|
317
|
+
} | undefined;
|
|
383
318
|
}>, "many">;
|
|
384
319
|
}, "strip", z.ZodTypeAny, {
|
|
385
320
|
connection: {
|
|
@@ -395,66 +330,63 @@ export declare const configSchema: z.ZodObject<{
|
|
|
395
330
|
user: string;
|
|
396
331
|
password: string;
|
|
397
332
|
};
|
|
333
|
+
idps: ({
|
|
334
|
+
type: "self_signed";
|
|
335
|
+
issuer: string;
|
|
336
|
+
id: string;
|
|
337
|
+
} | {
|
|
338
|
+
type: "oauth";
|
|
339
|
+
issuer: string;
|
|
340
|
+
id: string;
|
|
341
|
+
configUrl: string;
|
|
342
|
+
})[];
|
|
398
343
|
networks: {
|
|
344
|
+
id: string;
|
|
399
345
|
name: string;
|
|
400
|
-
chainId: string;
|
|
401
|
-
synchronizerId: string;
|
|
402
346
|
description: string;
|
|
347
|
+
synchronizerId: string;
|
|
348
|
+
identityProviderId: string;
|
|
403
349
|
ledgerApi: {
|
|
404
350
|
baseUrl: string;
|
|
405
351
|
};
|
|
406
352
|
auth: {
|
|
407
|
-
|
|
408
|
-
type: "password";
|
|
409
|
-
identityProviderId: string;
|
|
410
|
-
issuer: string;
|
|
411
|
-
configUrl: string;
|
|
353
|
+
method: "authorization_code";
|
|
412
354
|
audience: string;
|
|
413
|
-
tokenUrl: string;
|
|
414
|
-
grantType: string;
|
|
415
355
|
scope: string;
|
|
416
|
-
admin?: {
|
|
417
|
-
clientId: string;
|
|
418
|
-
clientSecret: string;
|
|
419
|
-
} | undefined;
|
|
420
|
-
} | {
|
|
421
356
|
clientId: string;
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
issuer: string;
|
|
425
|
-
configUrl: string;
|
|
357
|
+
} | {
|
|
358
|
+
method: "client_credentials";
|
|
426
359
|
audience: string;
|
|
427
360
|
scope: string;
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
clientSecret: string;
|
|
431
|
-
} | undefined;
|
|
361
|
+
clientId: string;
|
|
362
|
+
clientSecret: string;
|
|
432
363
|
} | {
|
|
364
|
+
method: "self_signed";
|
|
365
|
+
audience: string;
|
|
366
|
+
scope: string;
|
|
433
367
|
clientId: string;
|
|
434
368
|
clientSecret: string;
|
|
435
|
-
type: "client_credentials";
|
|
436
|
-
identityProviderId: string;
|
|
437
369
|
issuer: string;
|
|
438
|
-
|
|
370
|
+
};
|
|
371
|
+
adminAuth?: {
|
|
372
|
+
method: "authorization_code";
|
|
439
373
|
audience: string;
|
|
440
374
|
scope: string;
|
|
441
|
-
|
|
442
|
-
clientId: string;
|
|
443
|
-
clientSecret: string;
|
|
444
|
-
} | undefined;
|
|
375
|
+
clientId: string;
|
|
445
376
|
} | {
|
|
377
|
+
method: "client_credentials";
|
|
378
|
+
audience: string;
|
|
379
|
+
scope: string;
|
|
446
380
|
clientId: string;
|
|
447
381
|
clientSecret: string;
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
issuer: string;
|
|
382
|
+
} | {
|
|
383
|
+
method: "self_signed";
|
|
451
384
|
audience: string;
|
|
452
385
|
scope: string;
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
};
|
|
386
|
+
clientId: string;
|
|
387
|
+
clientSecret: string;
|
|
388
|
+
issuer: string;
|
|
389
|
+
} | undefined;
|
|
458
390
|
}[];
|
|
459
391
|
}, {
|
|
460
392
|
connection: {
|
|
@@ -470,68 +402,132 @@ export declare const configSchema: z.ZodObject<{
|
|
|
470
402
|
user: string;
|
|
471
403
|
password: string;
|
|
472
404
|
};
|
|
405
|
+
idps: ({
|
|
406
|
+
type: "self_signed";
|
|
407
|
+
issuer: string;
|
|
408
|
+
id: string;
|
|
409
|
+
} | {
|
|
410
|
+
type: "oauth";
|
|
411
|
+
issuer: string;
|
|
412
|
+
id: string;
|
|
413
|
+
configUrl: string;
|
|
414
|
+
})[];
|
|
473
415
|
networks: {
|
|
416
|
+
id: string;
|
|
474
417
|
name: string;
|
|
475
|
-
chainId: string;
|
|
476
|
-
synchronizerId: string;
|
|
477
418
|
description: string;
|
|
419
|
+
synchronizerId: string;
|
|
420
|
+
identityProviderId: string;
|
|
478
421
|
ledgerApi: {
|
|
479
422
|
baseUrl: string;
|
|
480
423
|
};
|
|
481
424
|
auth: {
|
|
482
|
-
|
|
483
|
-
type: "password";
|
|
484
|
-
identityProviderId: string;
|
|
485
|
-
issuer: string;
|
|
486
|
-
configUrl: string;
|
|
425
|
+
method: "authorization_code";
|
|
487
426
|
audience: string;
|
|
488
|
-
tokenUrl: string;
|
|
489
|
-
grantType: string;
|
|
490
427
|
scope: string;
|
|
491
|
-
admin?: {
|
|
492
|
-
clientId: string;
|
|
493
|
-
clientSecret: string;
|
|
494
|
-
} | undefined;
|
|
495
|
-
} | {
|
|
496
428
|
clientId: string;
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
issuer: string;
|
|
500
|
-
configUrl: string;
|
|
429
|
+
} | {
|
|
430
|
+
method: "client_credentials";
|
|
501
431
|
audience: string;
|
|
502
432
|
scope: string;
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
clientSecret: string;
|
|
506
|
-
} | undefined;
|
|
433
|
+
clientId: string;
|
|
434
|
+
clientSecret: string;
|
|
507
435
|
} | {
|
|
436
|
+
method: "self_signed";
|
|
437
|
+
audience: string;
|
|
438
|
+
scope: string;
|
|
508
439
|
clientId: string;
|
|
509
440
|
clientSecret: string;
|
|
510
|
-
type: "client_credentials";
|
|
511
|
-
identityProviderId: string;
|
|
512
441
|
issuer: string;
|
|
513
|
-
|
|
442
|
+
};
|
|
443
|
+
adminAuth?: {
|
|
444
|
+
method: "authorization_code";
|
|
514
445
|
audience: string;
|
|
515
446
|
scope: string;
|
|
516
|
-
|
|
517
|
-
clientId: string;
|
|
518
|
-
clientSecret: string;
|
|
519
|
-
} | undefined;
|
|
447
|
+
clientId: string;
|
|
520
448
|
} | {
|
|
449
|
+
method: "client_credentials";
|
|
450
|
+
audience: string;
|
|
451
|
+
scope: string;
|
|
521
452
|
clientId: string;
|
|
522
453
|
clientSecret: string;
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
issuer: string;
|
|
454
|
+
} | {
|
|
455
|
+
method: "self_signed";
|
|
526
456
|
audience: string;
|
|
527
457
|
scope: string;
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
};
|
|
458
|
+
clientId: string;
|
|
459
|
+
clientSecret: string;
|
|
460
|
+
issuer: string;
|
|
461
|
+
} | undefined;
|
|
533
462
|
}[];
|
|
534
463
|
}>;
|
|
464
|
+
signingStore: z.ZodObject<{
|
|
465
|
+
connection: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
466
|
+
type: z.ZodLiteral<"memory">;
|
|
467
|
+
}, "strip", z.ZodTypeAny, {
|
|
468
|
+
type: "memory";
|
|
469
|
+
}, {
|
|
470
|
+
type: "memory";
|
|
471
|
+
}>, z.ZodObject<{
|
|
472
|
+
type: z.ZodLiteral<"sqlite">;
|
|
473
|
+
database: z.ZodString;
|
|
474
|
+
}, "strip", z.ZodTypeAny, {
|
|
475
|
+
type: "sqlite";
|
|
476
|
+
database: string;
|
|
477
|
+
}, {
|
|
478
|
+
type: "sqlite";
|
|
479
|
+
database: string;
|
|
480
|
+
}>, z.ZodObject<{
|
|
481
|
+
type: z.ZodLiteral<"postgres">;
|
|
482
|
+
host: z.ZodString;
|
|
483
|
+
port: z.ZodNumber;
|
|
484
|
+
user: z.ZodString;
|
|
485
|
+
password: z.ZodString;
|
|
486
|
+
database: z.ZodString;
|
|
487
|
+
}, "strip", z.ZodTypeAny, {
|
|
488
|
+
type: "postgres";
|
|
489
|
+
database: string;
|
|
490
|
+
host: string;
|
|
491
|
+
port: number;
|
|
492
|
+
user: string;
|
|
493
|
+
password: string;
|
|
494
|
+
}, {
|
|
495
|
+
type: "postgres";
|
|
496
|
+
database: string;
|
|
497
|
+
host: string;
|
|
498
|
+
port: number;
|
|
499
|
+
user: string;
|
|
500
|
+
password: string;
|
|
501
|
+
}>]>;
|
|
502
|
+
}, "strip", z.ZodTypeAny, {
|
|
503
|
+
connection: {
|
|
504
|
+
type: "memory";
|
|
505
|
+
} | {
|
|
506
|
+
type: "sqlite";
|
|
507
|
+
database: string;
|
|
508
|
+
} | {
|
|
509
|
+
type: "postgres";
|
|
510
|
+
database: string;
|
|
511
|
+
host: string;
|
|
512
|
+
port: number;
|
|
513
|
+
user: string;
|
|
514
|
+
password: string;
|
|
515
|
+
};
|
|
516
|
+
}, {
|
|
517
|
+
connection: {
|
|
518
|
+
type: "memory";
|
|
519
|
+
} | {
|
|
520
|
+
type: "sqlite";
|
|
521
|
+
database: string;
|
|
522
|
+
} | {
|
|
523
|
+
type: "postgres";
|
|
524
|
+
database: string;
|
|
525
|
+
host: string;
|
|
526
|
+
port: number;
|
|
527
|
+
user: string;
|
|
528
|
+
password: string;
|
|
529
|
+
};
|
|
530
|
+
}>;
|
|
535
531
|
}, "strip", z.ZodTypeAny, {
|
|
536
532
|
kernel: {
|
|
537
533
|
id: string;
|
|
@@ -553,68 +549,80 @@ export declare const configSchema: z.ZodObject<{
|
|
|
553
549
|
user: string;
|
|
554
550
|
password: string;
|
|
555
551
|
};
|
|
552
|
+
idps: ({
|
|
553
|
+
type: "self_signed";
|
|
554
|
+
issuer: string;
|
|
555
|
+
id: string;
|
|
556
|
+
} | {
|
|
557
|
+
type: "oauth";
|
|
558
|
+
issuer: string;
|
|
559
|
+
id: string;
|
|
560
|
+
configUrl: string;
|
|
561
|
+
})[];
|
|
556
562
|
networks: {
|
|
563
|
+
id: string;
|
|
557
564
|
name: string;
|
|
558
|
-
chainId: string;
|
|
559
|
-
synchronizerId: string;
|
|
560
565
|
description: string;
|
|
566
|
+
synchronizerId: string;
|
|
567
|
+
identityProviderId: string;
|
|
561
568
|
ledgerApi: {
|
|
562
569
|
baseUrl: string;
|
|
563
570
|
};
|
|
564
571
|
auth: {
|
|
565
|
-
|
|
566
|
-
type: "password";
|
|
567
|
-
identityProviderId: string;
|
|
568
|
-
issuer: string;
|
|
569
|
-
configUrl: string;
|
|
572
|
+
method: "authorization_code";
|
|
570
573
|
audience: string;
|
|
571
|
-
tokenUrl: string;
|
|
572
|
-
grantType: string;
|
|
573
574
|
scope: string;
|
|
574
|
-
admin?: {
|
|
575
|
-
clientId: string;
|
|
576
|
-
clientSecret: string;
|
|
577
|
-
} | undefined;
|
|
578
|
-
} | {
|
|
579
575
|
clientId: string;
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
issuer: string;
|
|
583
|
-
configUrl: string;
|
|
576
|
+
} | {
|
|
577
|
+
method: "client_credentials";
|
|
584
578
|
audience: string;
|
|
585
579
|
scope: string;
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
clientSecret: string;
|
|
589
|
-
} | undefined;
|
|
580
|
+
clientId: string;
|
|
581
|
+
clientSecret: string;
|
|
590
582
|
} | {
|
|
583
|
+
method: "self_signed";
|
|
584
|
+
audience: string;
|
|
585
|
+
scope: string;
|
|
591
586
|
clientId: string;
|
|
592
587
|
clientSecret: string;
|
|
593
|
-
type: "client_credentials";
|
|
594
|
-
identityProviderId: string;
|
|
595
588
|
issuer: string;
|
|
596
|
-
|
|
589
|
+
};
|
|
590
|
+
adminAuth?: {
|
|
591
|
+
method: "authorization_code";
|
|
597
592
|
audience: string;
|
|
598
593
|
scope: string;
|
|
599
|
-
|
|
600
|
-
clientId: string;
|
|
601
|
-
clientSecret: string;
|
|
602
|
-
} | undefined;
|
|
594
|
+
clientId: string;
|
|
603
595
|
} | {
|
|
596
|
+
method: "client_credentials";
|
|
597
|
+
audience: string;
|
|
598
|
+
scope: string;
|
|
604
599
|
clientId: string;
|
|
605
600
|
clientSecret: string;
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
issuer: string;
|
|
601
|
+
} | {
|
|
602
|
+
method: "self_signed";
|
|
609
603
|
audience: string;
|
|
610
604
|
scope: string;
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
};
|
|
605
|
+
clientId: string;
|
|
606
|
+
clientSecret: string;
|
|
607
|
+
issuer: string;
|
|
608
|
+
} | undefined;
|
|
616
609
|
}[];
|
|
617
610
|
};
|
|
611
|
+
signingStore: {
|
|
612
|
+
connection: {
|
|
613
|
+
type: "memory";
|
|
614
|
+
} | {
|
|
615
|
+
type: "sqlite";
|
|
616
|
+
database: string;
|
|
617
|
+
} | {
|
|
618
|
+
type: "postgres";
|
|
619
|
+
database: string;
|
|
620
|
+
host: string;
|
|
621
|
+
port: number;
|
|
622
|
+
user: string;
|
|
623
|
+
password: string;
|
|
624
|
+
};
|
|
625
|
+
};
|
|
618
626
|
}, {
|
|
619
627
|
kernel: {
|
|
620
628
|
id: string;
|
|
@@ -636,68 +644,80 @@ export declare const configSchema: z.ZodObject<{
|
|
|
636
644
|
user: string;
|
|
637
645
|
password: string;
|
|
638
646
|
};
|
|
647
|
+
idps: ({
|
|
648
|
+
type: "self_signed";
|
|
649
|
+
issuer: string;
|
|
650
|
+
id: string;
|
|
651
|
+
} | {
|
|
652
|
+
type: "oauth";
|
|
653
|
+
issuer: string;
|
|
654
|
+
id: string;
|
|
655
|
+
configUrl: string;
|
|
656
|
+
})[];
|
|
639
657
|
networks: {
|
|
658
|
+
id: string;
|
|
640
659
|
name: string;
|
|
641
|
-
chainId: string;
|
|
642
|
-
synchronizerId: string;
|
|
643
660
|
description: string;
|
|
661
|
+
synchronizerId: string;
|
|
662
|
+
identityProviderId: string;
|
|
644
663
|
ledgerApi: {
|
|
645
664
|
baseUrl: string;
|
|
646
665
|
};
|
|
647
666
|
auth: {
|
|
648
|
-
|
|
649
|
-
type: "password";
|
|
650
|
-
identityProviderId: string;
|
|
651
|
-
issuer: string;
|
|
652
|
-
configUrl: string;
|
|
667
|
+
method: "authorization_code";
|
|
653
668
|
audience: string;
|
|
654
|
-
tokenUrl: string;
|
|
655
|
-
grantType: string;
|
|
656
669
|
scope: string;
|
|
657
|
-
admin?: {
|
|
658
|
-
clientId: string;
|
|
659
|
-
clientSecret: string;
|
|
660
|
-
} | undefined;
|
|
661
|
-
} | {
|
|
662
670
|
clientId: string;
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
issuer: string;
|
|
666
|
-
configUrl: string;
|
|
671
|
+
} | {
|
|
672
|
+
method: "client_credentials";
|
|
667
673
|
audience: string;
|
|
668
674
|
scope: string;
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
clientSecret: string;
|
|
672
|
-
} | undefined;
|
|
675
|
+
clientId: string;
|
|
676
|
+
clientSecret: string;
|
|
673
677
|
} | {
|
|
678
|
+
method: "self_signed";
|
|
679
|
+
audience: string;
|
|
680
|
+
scope: string;
|
|
674
681
|
clientId: string;
|
|
675
682
|
clientSecret: string;
|
|
676
|
-
type: "client_credentials";
|
|
677
|
-
identityProviderId: string;
|
|
678
683
|
issuer: string;
|
|
679
|
-
|
|
684
|
+
};
|
|
685
|
+
adminAuth?: {
|
|
686
|
+
method: "authorization_code";
|
|
680
687
|
audience: string;
|
|
681
688
|
scope: string;
|
|
682
|
-
|
|
683
|
-
clientId: string;
|
|
684
|
-
clientSecret: string;
|
|
685
|
-
} | undefined;
|
|
689
|
+
clientId: string;
|
|
686
690
|
} | {
|
|
691
|
+
method: "client_credentials";
|
|
692
|
+
audience: string;
|
|
693
|
+
scope: string;
|
|
687
694
|
clientId: string;
|
|
688
695
|
clientSecret: string;
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
issuer: string;
|
|
696
|
+
} | {
|
|
697
|
+
method: "self_signed";
|
|
692
698
|
audience: string;
|
|
693
699
|
scope: string;
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
};
|
|
700
|
+
clientId: string;
|
|
701
|
+
clientSecret: string;
|
|
702
|
+
issuer: string;
|
|
703
|
+
} | undefined;
|
|
699
704
|
}[];
|
|
700
705
|
};
|
|
706
|
+
signingStore: {
|
|
707
|
+
connection: {
|
|
708
|
+
type: "memory";
|
|
709
|
+
} | {
|
|
710
|
+
type: "sqlite";
|
|
711
|
+
database: string;
|
|
712
|
+
} | {
|
|
713
|
+
type: "postgres";
|
|
714
|
+
database: string;
|
|
715
|
+
host: string;
|
|
716
|
+
port: number;
|
|
717
|
+
user: string;
|
|
718
|
+
password: string;
|
|
719
|
+
};
|
|
720
|
+
};
|
|
701
721
|
}>;
|
|
702
722
|
export type KernelInfo = z.infer<typeof kernelInfoSchema>;
|
|
703
723
|
export type Config = z.infer<typeof configSchema>;
|