@privy-io/api-types 0.3.3 → 0.4.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 (89) hide show
  1. package/CHANGELOG.md +53 -0
  2. package/LICENSE +1 -1
  3. package/README.md +31 -0
  4. package/client.d.mts +10 -7
  5. package/client.d.mts.map +1 -1
  6. package/client.d.ts +10 -7
  7. package/client.d.ts.map +1 -1
  8. package/client.js +3 -0
  9. package/client.js.map +1 -1
  10. package/client.mjs +3 -0
  11. package/client.mjs.map +1 -1
  12. package/package.json +1 -1
  13. package/resources/aggregations.d.mts +296 -0
  14. package/resources/aggregations.d.mts.map +1 -0
  15. package/resources/aggregations.d.ts +296 -0
  16. package/resources/aggregations.d.ts.map +1 -0
  17. package/resources/aggregations.js +9 -0
  18. package/resources/aggregations.js.map +1 -0
  19. package/resources/aggregations.mjs +5 -0
  20. package/resources/aggregations.mjs.map +1 -0
  21. package/resources/apps.d.mts +25 -0
  22. package/resources/apps.d.mts.map +1 -1
  23. package/resources/apps.d.ts +25 -0
  24. package/resources/apps.d.ts.map +1 -1
  25. package/resources/client-auth.d.mts +16 -23
  26. package/resources/client-auth.d.mts.map +1 -1
  27. package/resources/client-auth.d.ts +16 -23
  28. package/resources/client-auth.d.ts.map +1 -1
  29. package/resources/index.d.mts +4 -3
  30. package/resources/index.d.mts.map +1 -1
  31. package/resources/index.d.ts +4 -3
  32. package/resources/index.d.ts.map +1 -1
  33. package/resources/index.js +3 -1
  34. package/resources/index.js.map +1 -1
  35. package/resources/index.mjs +1 -0
  36. package/resources/index.mjs.map +1 -1
  37. package/resources/key-quorums.d.mts +4 -1
  38. package/resources/key-quorums.d.mts.map +1 -1
  39. package/resources/key-quorums.d.ts +4 -1
  40. package/resources/key-quorums.d.ts.map +1 -1
  41. package/resources/policies.d.mts +87 -131
  42. package/resources/policies.d.mts.map +1 -1
  43. package/resources/policies.d.ts +87 -131
  44. package/resources/policies.d.ts.map +1 -1
  45. package/resources/policies.js.map +1 -1
  46. package/resources/policies.mjs.map +1 -1
  47. package/resources/users.d.mts +637 -383
  48. package/resources/users.d.mts.map +1 -1
  49. package/resources/users.d.ts +637 -383
  50. package/resources/users.d.ts.map +1 -1
  51. package/resources/wallets/balance.d.mts +3 -3
  52. package/resources/wallets/balance.d.mts.map +1 -1
  53. package/resources/wallets/balance.d.ts +3 -3
  54. package/resources/wallets/balance.d.ts.map +1 -1
  55. package/resources/wallets/index.d.mts +1 -1
  56. package/resources/wallets/index.d.mts.map +1 -1
  57. package/resources/wallets/index.d.ts +1 -1
  58. package/resources/wallets/index.d.ts.map +1 -1
  59. package/resources/wallets/index.js.map +1 -1
  60. package/resources/wallets/index.mjs.map +1 -1
  61. package/resources/wallets/transactions.d.mts +3 -3
  62. package/resources/wallets/transactions.d.mts.map +1 -1
  63. package/resources/wallets/transactions.d.ts +3 -3
  64. package/resources/wallets/transactions.d.ts.map +1 -1
  65. package/resources/wallets/wallets.d.mts +215 -53
  66. package/resources/wallets/wallets.d.mts.map +1 -1
  67. package/resources/wallets/wallets.d.ts +215 -53
  68. package/resources/wallets/wallets.d.ts.map +1 -1
  69. package/resources/wallets/wallets.js +1 -1
  70. package/resources/wallets/wallets.js.map +1 -1
  71. package/resources/wallets/wallets.mjs +1 -1
  72. package/resources/wallets/wallets.mjs.map +1 -1
  73. package/src/client.ts +148 -3
  74. package/src/resources/aggregations.ts +497 -0
  75. package/src/resources/apps.ts +44 -0
  76. package/src/resources/client-auth.ts +22 -35
  77. package/src/resources/index.ts +73 -2
  78. package/src/resources/key-quorums.ts +4 -1
  79. package/src/resources/policies.ts +124 -207
  80. package/src/resources/users.ts +928 -621
  81. package/src/resources/wallets/balance.ts +11 -3
  82. package/src/resources/wallets/index.ts +6 -0
  83. package/src/resources/wallets/transactions.ts +11 -3
  84. package/src/resources/wallets/wallets.ts +283 -52
  85. package/src/version.ts +1 -1
  86. package/version.d.mts +1 -1
  87. package/version.d.ts +1 -1
  88. package/version.js +1 -1
  89. package/version.mjs +1 -1
@@ -0,0 +1,497 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../core/resource';
4
+ import * as WalletsAPI from './wallets/wallets';
5
+
6
+ export class Aggregations extends APIResource {}
7
+
8
+ /**
9
+ * The RPC method this aggregation applies to.
10
+ */
11
+ export type AggregationMethod =
12
+ | 'eth_signTransaction'
13
+ | 'eth_signUserOperation'
14
+ | 'signTransaction'
15
+ | 'signTransactionBytes';
16
+
17
+ /**
18
+ * The metric configuration for an aggregation, defining what field/field_source to
19
+ * measure and the aggregation function to apply.
20
+ */
21
+ export interface AggregationMetric {
22
+ field: string;
23
+
24
+ field_source: string;
25
+
26
+ /**
27
+ * The aggregation function to apply.
28
+ */
29
+ function: 'sum';
30
+
31
+ abi?: Array<AggregationMetric.Abi>;
32
+ }
33
+
34
+ export namespace AggregationMetric {
35
+ export interface Abi {
36
+ type: 'function' | 'constructor' | 'event' | 'fallback' | 'receive';
37
+
38
+ anonymous?: boolean;
39
+
40
+ inputs?: Array<Abi.Input>;
41
+
42
+ name?: string;
43
+
44
+ outputs?: Array<Abi.Output>;
45
+
46
+ stateMutability?: 'pure' | 'view' | 'nonpayable' | 'payable';
47
+ }
48
+
49
+ export namespace Abi {
50
+ export interface Input {
51
+ type: string;
52
+
53
+ components?: Array<unknown>;
54
+
55
+ indexed?: boolean;
56
+
57
+ internalType?: string;
58
+
59
+ name?: string;
60
+ }
61
+
62
+ export interface Output {
63
+ type: string;
64
+
65
+ components?: Array<unknown>;
66
+
67
+ indexed?: boolean;
68
+
69
+ internalType?: string;
70
+
71
+ name?: string;
72
+ }
73
+ }
74
+ }
75
+
76
+ /**
77
+ * The time window configuration for an aggregation.
78
+ */
79
+ export interface AggregationWindow {
80
+ /**
81
+ * Duration of the rolling window in seconds (1-72 hours).
82
+ */
83
+ seconds: number;
84
+
85
+ type: 'rolling';
86
+ }
87
+
88
+ /**
89
+ * A grouping configuration for an aggregation. Maximum of 2 group_by fields
90
+ * allowed.
91
+ */
92
+ export interface AggregationGroupBy {
93
+ field: string;
94
+
95
+ field_source: string;
96
+
97
+ abi?: Array<AggregationGroupBy.Abi>;
98
+ }
99
+
100
+ export namespace AggregationGroupBy {
101
+ export interface Abi {
102
+ type: 'function' | 'constructor' | 'event' | 'fallback' | 'receive';
103
+
104
+ anonymous?: boolean;
105
+
106
+ inputs?: Array<Abi.Input>;
107
+
108
+ name?: string;
109
+
110
+ outputs?: Array<Abi.Output>;
111
+
112
+ stateMutability?: 'pure' | 'view' | 'nonpayable' | 'payable';
113
+ }
114
+
115
+ export namespace Abi {
116
+ export interface Input {
117
+ type: string;
118
+
119
+ components?: Array<unknown>;
120
+
121
+ indexed?: boolean;
122
+
123
+ internalType?: string;
124
+
125
+ name?: string;
126
+ }
127
+
128
+ export interface Output {
129
+ type: string;
130
+
131
+ components?: Array<unknown>;
132
+
133
+ indexed?: boolean;
134
+
135
+ internalType?: string;
136
+
137
+ name?: string;
138
+ }
139
+ }
140
+ }
141
+
142
+ /**
143
+ * An aggregation that measures and tracks metrics over a period of time.
144
+ */
145
+ export interface Aggregation {
146
+ /**
147
+ * Unique ID of the aggregation.
148
+ */
149
+ id: string;
150
+
151
+ /**
152
+ * Unix timestamp of when the aggregation was created in milliseconds.
153
+ */
154
+ created_at: number;
155
+
156
+ /**
157
+ * The RPC method this aggregation applies to.
158
+ */
159
+ method: AggregationMethod;
160
+
161
+ /**
162
+ * The metric configuration for an aggregation, defining what field/field_source to
163
+ * measure and the aggregation function to apply.
164
+ */
165
+ metric: AggregationMetric;
166
+
167
+ /**
168
+ * The name of the aggregation.
169
+ */
170
+ name: string;
171
+
172
+ /**
173
+ * The key quorum ID of the owner of the aggregation.
174
+ */
175
+ owner_id: string | null;
176
+
177
+ /**
178
+ * The time window configuration for an aggregation.
179
+ */
180
+ window: AggregationWindow;
181
+
182
+ /**
183
+ * Optional conditions to filter events before aggregation.
184
+ */
185
+ conditions?: Array<
186
+ | Aggregation.UnionMember0
187
+ | Aggregation.UnionMember1
188
+ | Aggregation.UnionMember2
189
+ | Aggregation.UnionMember3
190
+ | Aggregation.UnionMember4
191
+ | Aggregation.UnionMember5
192
+ | Aggregation.UnionMember6
193
+ | Aggregation.UnionMember7
194
+ | Aggregation.UnionMember8
195
+ | Aggregation.UnionMember9
196
+ | Aggregation.UnionMember10
197
+ | Aggregation.UnionMember11
198
+ | Aggregation.UnionMember12
199
+ | Aggregation.UnionMember13
200
+ >;
201
+
202
+ /**
203
+ * Optional grouping configuration for bucketing metrics.
204
+ */
205
+ group_by?: Array<AggregationGroupBy>;
206
+ }
207
+
208
+ export namespace Aggregation {
209
+ export interface UnionMember0 {
210
+ field: 'to' | 'value' | 'chain_id';
211
+
212
+ field_source: 'ethereum_transaction';
213
+
214
+ operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
215
+
216
+ value: string | Array<string>;
217
+ }
218
+
219
+ export interface UnionMember1 {
220
+ abi: Array<UnionMember1.Abi>;
221
+
222
+ field: string;
223
+
224
+ field_source: 'ethereum_calldata';
225
+
226
+ operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
227
+
228
+ value: string | Array<string>;
229
+ }
230
+
231
+ export namespace UnionMember1 {
232
+ export interface Abi {
233
+ type: 'function' | 'constructor' | 'event' | 'fallback' | 'receive';
234
+
235
+ anonymous?: boolean;
236
+
237
+ inputs?: Array<Abi.Input>;
238
+
239
+ name?: string;
240
+
241
+ outputs?: Array<Abi.Output>;
242
+
243
+ stateMutability?: 'pure' | 'view' | 'nonpayable' | 'payable';
244
+ }
245
+
246
+ export namespace Abi {
247
+ export interface Input {
248
+ type: string;
249
+
250
+ components?: Array<unknown>;
251
+
252
+ indexed?: boolean;
253
+
254
+ internalType?: string;
255
+
256
+ name?: string;
257
+ }
258
+
259
+ export interface Output {
260
+ type: string;
261
+
262
+ components?: Array<unknown>;
263
+
264
+ indexed?: boolean;
265
+
266
+ internalType?: string;
267
+
268
+ name?: string;
269
+ }
270
+ }
271
+ }
272
+
273
+ export interface UnionMember2 {
274
+ field: 'chainId' | 'verifyingContract' | 'chain_id' | 'verifying_contract';
275
+
276
+ field_source: 'ethereum_typed_data_domain';
277
+
278
+ operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
279
+
280
+ value: string | Array<string>;
281
+ }
282
+
283
+ export interface UnionMember3 {
284
+ field: string;
285
+
286
+ field_source: 'ethereum_typed_data_message';
287
+
288
+ operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
289
+
290
+ typed_data: UnionMember3.TypedData;
291
+
292
+ value: string | Array<string>;
293
+ }
294
+
295
+ export namespace UnionMember3 {
296
+ export interface TypedData {
297
+ primary_type: string;
298
+
299
+ types: { [key: string]: Array<TypedData.Type> };
300
+ }
301
+
302
+ export namespace TypedData {
303
+ export interface Type {
304
+ name: string;
305
+
306
+ type: string;
307
+ }
308
+ }
309
+ }
310
+
311
+ export interface UnionMember4 {
312
+ field: 'contract';
313
+
314
+ field_source: 'ethereum_7702_authorization';
315
+
316
+ operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
317
+
318
+ value: string | Array<string>;
319
+ }
320
+
321
+ export interface UnionMember5 {
322
+ field: 'programId';
323
+
324
+ field_source: 'solana_program_instruction';
325
+
326
+ operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
327
+
328
+ value: string | Array<string>;
329
+ }
330
+
331
+ export interface UnionMember6 {
332
+ field: 'instructionName' | 'Transfer.from' | 'Transfer.to' | 'Transfer.lamports';
333
+
334
+ field_source: 'solana_system_program_instruction';
335
+
336
+ operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
337
+
338
+ value: string | Array<string>;
339
+ }
340
+
341
+ export interface UnionMember7 {
342
+ field:
343
+ | 'instructionName'
344
+ | 'Transfer.source'
345
+ | 'Transfer.destination'
346
+ | 'Transfer.authority'
347
+ | 'Transfer.amount'
348
+ | 'TransferChecked.source'
349
+ | 'TransferChecked.destination'
350
+ | 'TransferChecked.authority'
351
+ | 'TransferChecked.amount'
352
+ | 'TransferChecked.mint'
353
+ | 'Burn.account'
354
+ | 'Burn.mint'
355
+ | 'Burn.authority'
356
+ | 'Burn.amount'
357
+ | 'MintTo.mint'
358
+ | 'MintTo.account'
359
+ | 'MintTo.authority'
360
+ | 'MintTo.amount'
361
+ | 'CloseAccount.account'
362
+ | 'CloseAccount.destination'
363
+ | 'CloseAccount.authority'
364
+ | 'InitializeAccount3.account'
365
+ | 'InitializeAccount3.mint'
366
+ | 'InitializeAccount3.owner';
367
+
368
+ field_source: 'solana_token_program_instruction';
369
+
370
+ operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
371
+
372
+ value: string | Array<string>;
373
+ }
374
+
375
+ export interface UnionMember8 {
376
+ field:
377
+ | 'TransferContract.to_address'
378
+ | 'TransferContract.amount'
379
+ | 'TriggerSmartContract.contract_address'
380
+ | 'TriggerSmartContract.call_value'
381
+ | 'TriggerSmartContract.token_id'
382
+ | 'TriggerSmartContract.call_token_value';
383
+
384
+ field_source: 'tron_transaction';
385
+
386
+ operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
387
+
388
+ value: string | Array<string>;
389
+ }
390
+
391
+ export interface UnionMember9 {
392
+ field: 'current_unix_timestamp';
393
+
394
+ field_source: 'system';
395
+
396
+ operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
397
+
398
+ value: string | Array<string>;
399
+ }
400
+
401
+ export interface UnionMember10 {
402
+ field: string;
403
+
404
+ field_source: 'reference';
405
+
406
+ operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
407
+
408
+ value: string | Array<string>;
409
+ }
410
+
411
+ export interface UnionMember11 {
412
+ abi: Array<UnionMember11.Abi>;
413
+
414
+ field: string;
415
+
416
+ field_source: 'tron_trigger_smart_contract_data';
417
+
418
+ operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
419
+
420
+ value: string | Array<string>;
421
+ }
422
+
423
+ export namespace UnionMember11 {
424
+ export interface Abi {
425
+ type: 'function' | 'constructor' | 'event' | 'fallback' | 'receive';
426
+
427
+ anonymous?: boolean;
428
+
429
+ inputs?: Array<Abi.Input>;
430
+
431
+ name?: string;
432
+
433
+ outputs?: Array<Abi.Output>;
434
+
435
+ stateMutability?: 'pure' | 'view' | 'nonpayable' | 'payable';
436
+ }
437
+
438
+ export namespace Abi {
439
+ export interface Input {
440
+ type: string;
441
+
442
+ components?: Array<unknown>;
443
+
444
+ indexed?: boolean;
445
+
446
+ internalType?: string;
447
+
448
+ name?: string;
449
+ }
450
+
451
+ export interface Output {
452
+ type: string;
453
+
454
+ components?: Array<unknown>;
455
+
456
+ indexed?: boolean;
457
+
458
+ internalType?: string;
459
+
460
+ name?: string;
461
+ }
462
+ }
463
+ }
464
+
465
+ export interface UnionMember12 {
466
+ field: 'commandName';
467
+
468
+ field_source: 'sui_transaction_command';
469
+
470
+ operator: 'eq' | 'in';
471
+
472
+ /**
473
+ * SUI transaction commands allowlist for raw_sign endpoint policy evaluation
474
+ */
475
+ value: WalletsAPI.SuiCommandName | Array<WalletsAPI.SuiCommandName>;
476
+ }
477
+
478
+ export interface UnionMember13 {
479
+ field: 'recipient' | 'amount';
480
+
481
+ field_source: 'sui_transfer_objects_command';
482
+
483
+ operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
484
+
485
+ value: string | Array<string>;
486
+ }
487
+ }
488
+
489
+ export declare namespace Aggregations {
490
+ export {
491
+ type AggregationMethod as AggregationMethod,
492
+ type AggregationMetric as AggregationMetric,
493
+ type AggregationWindow as AggregationWindow,
494
+ type AggregationGroupBy as AggregationGroupBy,
495
+ type Aggregation as Aggregation,
496
+ };
497
+ }
@@ -85,6 +85,8 @@ export interface AppResponse {
85
85
 
86
86
  show_wallet_login_first: boolean;
87
87
 
88
+ smart_wallet_config: AppResponse.Enabled | AppResponse.UnionMember1;
89
+
88
90
  sms_auth: boolean;
89
91
 
90
92
  solana_wallet_auth: boolean;
@@ -171,6 +173,48 @@ export namespace AppResponse {
171
173
  }
172
174
  }
173
175
 
176
+ export interface Enabled {
177
+ enabled: false;
178
+ }
179
+
180
+ export interface UnionMember1 {
181
+ configured_networks: Array<UnionMember1.ConfiguredNetwork>;
182
+
183
+ enabled: true;
184
+
185
+ smart_wallet_type:
186
+ | 'safe'
187
+ | 'kernel'
188
+ | 'light_account'
189
+ | 'biconomy'
190
+ | 'coinbase_smart_wallet'
191
+ | 'thirdweb';
192
+
193
+ smart_wallet_version?: string;
194
+ }
195
+
196
+ export namespace UnionMember1 {
197
+ export interface ConfiguredNetwork {
198
+ bundler_url: string;
199
+
200
+ chain_id: string;
201
+
202
+ chain_name?: string;
203
+
204
+ paymaster_context?: ConfiguredNetwork.PaymasterContext;
205
+
206
+ paymaster_url?: string;
207
+
208
+ rpc_url?: string;
209
+ }
210
+
211
+ export namespace ConfiguredNetwork {
212
+ export interface PaymasterContext {
213
+ policy_id: string;
214
+ }
215
+ }
216
+ }
217
+
174
218
  export interface FundingConfig {
175
219
  cross_chain_bridging_enabled: boolean;
176
220
 
@@ -213,7 +213,7 @@ export interface GuestAuthenticateRequestBody {
213
213
  export interface MfaPasskeyEnrollmentRequestBody {
214
214
  credential_ids: Array<string>;
215
215
 
216
- remove_for_login: boolean;
216
+ remove_for_login?: boolean;
217
217
  }
218
218
 
219
219
  /**
@@ -441,23 +441,10 @@ export interface OAuthLinkRequestBody {
441
441
  * The response for linking an OAuth account.
442
442
  */
443
443
  export interface OAuthLinkResponseBody extends UsersAPI.User {
444
- oauth_tokens?: OAuthLinkResponseBody.OAuthTokens;
445
- }
446
-
447
- export namespace OAuthLinkResponseBody {
448
- export interface OAuthTokens {
449
- access_token: string;
450
-
451
- provider: string;
452
-
453
- access_token_expires_in_seconds?: number;
454
-
455
- refresh_token?: string;
456
-
457
- refresh_token_expires_in_seconds?: number;
458
-
459
- scopes?: Array<string>;
460
- }
444
+ /**
445
+ * OAuth tokens associated with the user.
446
+ */
447
+ oauth_tokens?: UsersAPI.OAuthTokens;
461
448
  }
462
449
 
463
450
  /**
@@ -884,7 +871,7 @@ export namespace PasskeyRegisterRequestBody {
884
871
  export interface PasskeyUnlinkRequestBody {
885
872
  credential_id: string;
886
873
 
887
- remove_as_mfa: boolean;
874
+ remove_as_mfa?: boolean;
888
875
  }
889
876
 
890
877
  /**
@@ -985,17 +972,17 @@ export interface PasswordlessUpdateRequestBody {
985
972
  * The request body for authenticating a SIWE ceremony.
986
973
  */
987
974
  export interface SiweAuthenticateRequestBody {
988
- chainId: string | null;
989
-
990
- connectorType: string | null;
991
-
992
975
  message: string;
993
976
 
994
977
  signature: string;
995
978
 
996
- walletClientType: string | null;
979
+ chainId?: string | null;
980
+
981
+ connectorType?: string | null;
997
982
 
998
983
  mode?: 'no-signup' | 'login-or-sign-up';
984
+
985
+ walletClientType?: string | null;
999
986
  }
1000
987
 
1001
988
  /**
@@ -1020,15 +1007,15 @@ export interface SiweInitResponseBody {
1020
1007
  * The request body for linking a SIWE ceremony.
1021
1008
  */
1022
1009
  export interface SiweLinkRequestBody {
1023
- chainId: string | null;
1024
-
1025
- connectorType: string | null;
1026
-
1027
1010
  message: string;
1028
1011
 
1029
1012
  signature: string;
1030
1013
 
1031
- walletClientType: string | null;
1014
+ chainId?: string | null;
1015
+
1016
+ connectorType?: string | null;
1017
+
1018
+ walletClientType?: string | null;
1032
1019
  }
1033
1020
 
1034
1021
  /**
@@ -1055,17 +1042,17 @@ export interface SiweUnlinkRequestBody {
1055
1042
  * The request body for authenticating a SIWS ceremony.
1056
1043
  */
1057
1044
  export interface SiwsAuthenticateRequestBody {
1058
- connectorType: string | null;
1059
-
1060
1045
  message: string;
1061
1046
 
1062
1047
  signature: string;
1063
1048
 
1064
- walletClientType: string | null;
1049
+ connectorType?: string | null;
1065
1050
 
1066
1051
  message_type?: 'transaction' | 'plain';
1067
1052
 
1068
1053
  mode?: 'no-signup' | 'login-or-sign-up';
1054
+
1055
+ walletClientType?: string | null;
1069
1056
  }
1070
1057
 
1071
1058
  /**
@@ -1090,15 +1077,15 @@ export interface SiwsInitResponseBody {
1090
1077
  * The request body for linking a SIWS ceremony.
1091
1078
  */
1092
1079
  export interface SiwsLinkRequestBody {
1093
- connectorType: string | null;
1094
-
1095
1080
  message: string;
1096
1081
 
1097
1082
  signature: string;
1098
1083
 
1099
- walletClientType: string | null;
1084
+ connectorType?: string | null;
1100
1085
 
1101
1086
  message_type?: 'transaction' | 'plain';
1087
+
1088
+ walletClientType?: string | null;
1102
1089
  }
1103
1090
 
1104
1091
  /**