zklighter-perps 1.0.340 → 1.0.342

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.
@@ -171,6 +171,7 @@ models/PriceOraclePrice.ts
171
171
  models/PublicPoolInfo.ts
172
172
  models/PublicPoolMetadata.ts
173
173
  models/PublicPoolShare.ts
174
+ models/PublicProfile.ts
174
175
  models/PushNotifDeliveryResult.ts
175
176
  models/RFQEntry.ts
176
177
  models/RFQMetadata.ts
@@ -245,6 +246,7 @@ models/ReqGetPnlLeaderboard.ts
245
246
  models/ReqGetPositionFunding.ts
246
247
  models/ReqGetPriceOracleInfo.ts
247
248
  models/ReqGetPublicPoolsMetadata.ts
249
+ models/ReqGetPublicProfiles.ts
248
250
  models/ReqGetPushNotifSettings.ts
249
251
  models/ReqGetRFQ.ts
250
252
  models/ReqGetRangeWithCursor.ts
@@ -275,6 +277,8 @@ models/ReqTvSymbolInfo.ts
275
277
  models/RespAtomicOrder.ts
276
278
  models/RespAtomicOrderList.ts
277
279
  models/RespChangeAccountTier.ts
280
+ models/RespConnectX.ts
281
+ models/RespConnectXCallback.ts
278
282
  models/RespCreateEvent.ts
279
283
  models/RespCreateRFQ.ts
280
284
  models/RespCreateStrategyHeartbeat.ts
@@ -297,6 +301,7 @@ models/RespGetLeaseOptions.ts
297
301
  models/RespGetLeases.ts
298
302
  models/RespGetMakerOnlyApiKeys.ts
299
303
  models/RespGetMarketMetrics.ts
304
+ models/RespGetPublicProfiles.ts
300
305
  models/RespGetPushNotifSettings.ts
301
306
  models/RespGetRFQ.ts
302
307
  models/RespGetUpDownCandles.ts
@@ -31,11 +31,14 @@ import type {
31
31
  PnlLeaderboard,
32
32
  PositionFundings,
33
33
  RespChangeAccountTier,
34
+ RespConnectX,
35
+ RespConnectXCallback,
34
36
  RespCreateRFQ,
35
37
  RespGetApiTokens,
36
38
  RespGetLeaseOptions,
37
39
  RespGetLeases,
38
40
  RespGetMakerOnlyApiKeys,
41
+ RespGetPublicProfiles,
39
42
  RespGetRFQ,
40
43
  RespListRFQs,
41
44
  RespPostApiToken,
@@ -81,6 +84,10 @@ import {
81
84
  PositionFundingsToJSON,
82
85
  RespChangeAccountTierFromJSON,
83
86
  RespChangeAccountTierToJSON,
87
+ RespConnectXFromJSON,
88
+ RespConnectXToJSON,
89
+ RespConnectXCallbackFromJSON,
90
+ RespConnectXCallbackToJSON,
84
91
  RespCreateRFQFromJSON,
85
92
  RespCreateRFQToJSON,
86
93
  RespGetApiTokensFromJSON,
@@ -91,6 +98,8 @@ import {
91
98
  RespGetLeasesToJSON,
92
99
  RespGetMakerOnlyApiKeysFromJSON,
93
100
  RespGetMakerOnlyApiKeysToJSON,
101
+ RespGetPublicProfilesFromJSON,
102
+ RespGetPublicProfilesToJSON,
94
103
  RespGetRFQFromJSON,
95
104
  RespGetRFQToJSON,
96
105
  RespListRFQsFromJSON,
@@ -167,6 +176,27 @@ export interface ChangeAccountTierRequest {
167
176
  auth?: string;
168
177
  }
169
178
 
179
+ export interface ConnectXRequest {
180
+ account_index: number;
181
+ redirect_uri: string;
182
+ authorization?: string;
183
+ auth?: string;
184
+ }
185
+
186
+ export interface ConnectXCallbackRequest {
187
+ account_index: number;
188
+ code: string;
189
+ state: string;
190
+ authorization?: string;
191
+ auth?: string;
192
+ }
193
+
194
+ export interface DisconnectXRequest {
195
+ account_index: number;
196
+ authorization?: string;
197
+ auth?: string;
198
+ }
199
+
170
200
  export interface FaucetRequest {
171
201
  l1_address: string;
172
202
  do_l1_transfer: boolean;
@@ -283,6 +313,10 @@ export interface PublicPoolsMetadataRequest {
283
313
  account_index?: number;
284
314
  }
285
315
 
316
+ export interface PublicProfilesRequest {
317
+ l1_addresses: string;
318
+ }
319
+
286
320
  export interface RfqCreateRequest {
287
321
  market_index: number;
288
322
  direction: number;
@@ -811,6 +845,225 @@ export class AccountApi extends runtime.BaseAPI {
811
845
  return await response.value();
812
846
  }
813
847
 
848
+ /**
849
+ * Start connecting an X account to the wallet: returns the X OAuth authorize URL (PKCE). redirect_uri must be allowlisted.
850
+ * connectX
851
+ */
852
+ async connectXRaw(requestParameters: ConnectXRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RespConnectX>> {
853
+ if (requestParameters['account_index'] == null) {
854
+ throw new runtime.RequiredError(
855
+ 'account_index',
856
+ 'Required parameter "account_index" was null or undefined when calling connectX().'
857
+ );
858
+ }
859
+
860
+ if (requestParameters['redirect_uri'] == null) {
861
+ throw new runtime.RequiredError(
862
+ 'redirect_uri',
863
+ 'Required parameter "redirect_uri" was null or undefined when calling connectX().'
864
+ );
865
+ }
866
+
867
+ const queryParameters: any = {};
868
+
869
+ const headerParameters: runtime.HTTPHeaders = {};
870
+
871
+ if (requestParameters['authorization'] != null) {
872
+ headerParameters['authorization'] = String(requestParameters['authorization']);
873
+ }
874
+
875
+ const consumes: runtime.Consume[] = [
876
+ { contentType: 'multipart/form-data' },
877
+ ];
878
+ // @ts-ignore: canConsumeForm may be unused
879
+ const canConsumeForm = runtime.canConsumeForm(consumes);
880
+
881
+ let formParams: { append(param: string, value: any): any };
882
+ let useForm = false;
883
+ if (useForm) {
884
+ formParams = new FormData();
885
+ } else {
886
+ formParams = new URLSearchParams();
887
+ }
888
+
889
+ if (requestParameters['account_index'] != null) {
890
+ formParams.append('account_index', requestParameters['account_index'] as any);
891
+ }
892
+
893
+ if (requestParameters['redirect_uri'] != null) {
894
+ formParams.append('redirect_uri', requestParameters['redirect_uri'] as any);
895
+ }
896
+
897
+ if (requestParameters['auth'] != null) {
898
+ formParams.append('auth', requestParameters['auth'] as any);
899
+ }
900
+
901
+ const response = await this.request({
902
+ path: `/api/v1/connectX`,
903
+ method: 'POST',
904
+ headers: headerParameters,
905
+ query: queryParameters,
906
+ body: formParams,
907
+ }, initOverrides);
908
+
909
+ return new runtime.JSONApiResponse(response, (jsonValue) => RespConnectXFromJSON(jsonValue));
910
+ }
911
+
912
+ /**
913
+ * Start connecting an X account to the wallet: returns the X OAuth authorize URL (PKCE). redirect_uri must be allowlisted.
914
+ * connectX
915
+ */
916
+ async connectX(requestParameters: ConnectXRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RespConnectX> {
917
+ const response = await this.connectXRaw(requestParameters, initOverrides);
918
+ return await response.value();
919
+ }
920
+
921
+ /**
922
+ * Finish connecting an X account with the code and state X returned to redirect_uri
923
+ * connectXCallback
924
+ */
925
+ async connectXCallbackRaw(requestParameters: ConnectXCallbackRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RespConnectXCallback>> {
926
+ if (requestParameters['account_index'] == null) {
927
+ throw new runtime.RequiredError(
928
+ 'account_index',
929
+ 'Required parameter "account_index" was null or undefined when calling connectXCallback().'
930
+ );
931
+ }
932
+
933
+ if (requestParameters['code'] == null) {
934
+ throw new runtime.RequiredError(
935
+ 'code',
936
+ 'Required parameter "code" was null or undefined when calling connectXCallback().'
937
+ );
938
+ }
939
+
940
+ if (requestParameters['state'] == null) {
941
+ throw new runtime.RequiredError(
942
+ 'state',
943
+ 'Required parameter "state" was null or undefined when calling connectXCallback().'
944
+ );
945
+ }
946
+
947
+ const queryParameters: any = {};
948
+
949
+ const headerParameters: runtime.HTTPHeaders = {};
950
+
951
+ if (requestParameters['authorization'] != null) {
952
+ headerParameters['authorization'] = String(requestParameters['authorization']);
953
+ }
954
+
955
+ const consumes: runtime.Consume[] = [
956
+ { contentType: 'multipart/form-data' },
957
+ ];
958
+ // @ts-ignore: canConsumeForm may be unused
959
+ const canConsumeForm = runtime.canConsumeForm(consumes);
960
+
961
+ let formParams: { append(param: string, value: any): any };
962
+ let useForm = false;
963
+ if (useForm) {
964
+ formParams = new FormData();
965
+ } else {
966
+ formParams = new URLSearchParams();
967
+ }
968
+
969
+ if (requestParameters['account_index'] != null) {
970
+ formParams.append('account_index', requestParameters['account_index'] as any);
971
+ }
972
+
973
+ if (requestParameters['code'] != null) {
974
+ formParams.append('code', requestParameters['code'] as any);
975
+ }
976
+
977
+ if (requestParameters['state'] != null) {
978
+ formParams.append('state', requestParameters['state'] as any);
979
+ }
980
+
981
+ if (requestParameters['auth'] != null) {
982
+ formParams.append('auth', requestParameters['auth'] as any);
983
+ }
984
+
985
+ const response = await this.request({
986
+ path: `/api/v1/connectXCallback`,
987
+ method: 'POST',
988
+ headers: headerParameters,
989
+ query: queryParameters,
990
+ body: formParams,
991
+ }, initOverrides);
992
+
993
+ return new runtime.JSONApiResponse(response, (jsonValue) => RespConnectXCallbackFromJSON(jsonValue));
994
+ }
995
+
996
+ /**
997
+ * Finish connecting an X account with the code and state X returned to redirect_uri
998
+ * connectXCallback
999
+ */
1000
+ async connectXCallback(requestParameters: ConnectXCallbackRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RespConnectXCallback> {
1001
+ const response = await this.connectXCallbackRaw(requestParameters, initOverrides);
1002
+ return await response.value();
1003
+ }
1004
+
1005
+ /**
1006
+ * Disconnect the wallet\'s X account
1007
+ * disconnectX
1008
+ */
1009
+ async disconnectXRaw(requestParameters: DisconnectXRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ResultCode>> {
1010
+ if (requestParameters['account_index'] == null) {
1011
+ throw new runtime.RequiredError(
1012
+ 'account_index',
1013
+ 'Required parameter "account_index" was null or undefined when calling disconnectX().'
1014
+ );
1015
+ }
1016
+
1017
+ const queryParameters: any = {};
1018
+
1019
+ const headerParameters: runtime.HTTPHeaders = {};
1020
+
1021
+ if (requestParameters['authorization'] != null) {
1022
+ headerParameters['authorization'] = String(requestParameters['authorization']);
1023
+ }
1024
+
1025
+ const consumes: runtime.Consume[] = [
1026
+ { contentType: 'multipart/form-data' },
1027
+ ];
1028
+ // @ts-ignore: canConsumeForm may be unused
1029
+ const canConsumeForm = runtime.canConsumeForm(consumes);
1030
+
1031
+ let formParams: { append(param: string, value: any): any };
1032
+ let useForm = false;
1033
+ if (useForm) {
1034
+ formParams = new FormData();
1035
+ } else {
1036
+ formParams = new URLSearchParams();
1037
+ }
1038
+
1039
+ if (requestParameters['account_index'] != null) {
1040
+ formParams.append('account_index', requestParameters['account_index'] as any);
1041
+ }
1042
+
1043
+ if (requestParameters['auth'] != null) {
1044
+ formParams.append('auth', requestParameters['auth'] as any);
1045
+ }
1046
+
1047
+ const response = await this.request({
1048
+ path: `/api/v1/disconnectX`,
1049
+ method: 'POST',
1050
+ headers: headerParameters,
1051
+ query: queryParameters,
1052
+ body: formParams,
1053
+ }, initOverrides);
1054
+
1055
+ return new runtime.JSONApiResponse(response, (jsonValue) => ResultCodeFromJSON(jsonValue));
1056
+ }
1057
+
1058
+ /**
1059
+ * Disconnect the wallet\'s X account
1060
+ * disconnectX
1061
+ */
1062
+ async disconnectX(requestParameters: DisconnectXRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ResultCode> {
1063
+ const response = await this.disconnectXRaw(requestParameters, initOverrides);
1064
+ return await response.value();
1065
+ }
1066
+
814
1067
  /**
815
1068
  * Request funds from faucet
816
1069
  * faucet
@@ -1789,6 +2042,45 @@ export class AccountApi extends runtime.BaseAPI {
1789
2042
  return await response.value();
1790
2043
  }
1791
2044
 
2045
+ /**
2046
+ * Get public profiles (display name source, username, verified X handle) for up to 100 L1 addresses. No auth.
2047
+ * publicProfiles
2048
+ */
2049
+ async publicProfilesRaw(requestParameters: PublicProfilesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RespGetPublicProfiles>> {
2050
+ if (requestParameters['l1_addresses'] == null) {
2051
+ throw new runtime.RequiredError(
2052
+ 'l1_addresses',
2053
+ 'Required parameter "l1_addresses" was null or undefined when calling publicProfiles().'
2054
+ );
2055
+ }
2056
+
2057
+ const queryParameters: any = {};
2058
+
2059
+ if (requestParameters['l1_addresses'] != null) {
2060
+ queryParameters['l1_addresses'] = requestParameters['l1_addresses'];
2061
+ }
2062
+
2063
+ const headerParameters: runtime.HTTPHeaders = {};
2064
+
2065
+ const response = await this.request({
2066
+ path: `/api/v1/publicProfiles`,
2067
+ method: 'GET',
2068
+ headers: headerParameters,
2069
+ query: queryParameters,
2070
+ }, initOverrides);
2071
+
2072
+ return new runtime.JSONApiResponse(response, (jsonValue) => RespGetPublicProfilesFromJSON(jsonValue));
2073
+ }
2074
+
2075
+ /**
2076
+ * Get public profiles (display name source, username, verified X handle) for up to 100 L1 addresses. No auth.
2077
+ * publicProfiles
2078
+ */
2079
+ async publicProfiles(requestParameters: PublicProfilesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RespGetPublicProfiles> {
2080
+ const response = await this.publicProfilesRaw(requestParameters, initOverrides);
2081
+ return await response.value();
2082
+ }
2083
+
1792
2084
  /**
1793
2085
  * Create RFQ
1794
2086
  * rfq_create
@@ -13,6 +13,12 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
+ import type { PublicProfile } from './PublicProfile';
17
+ import {
18
+ PublicProfileFromJSON,
19
+ PublicProfileFromJSONTyped,
20
+ PublicProfileToJSON,
21
+ } from './PublicProfile';
16
22
  import type { SubAccountMetadata } from './SubAccountMetadata';
17
23
  import {
18
24
  SubAccountMetadataFromJSON,
@@ -92,6 +98,12 @@ export interface AccountMetadata {
92
98
  * @memberof AccountMetadata
93
99
  */
94
100
  instance: string;
101
+ /**
102
+ *
103
+ * @type {PublicProfile}
104
+ * @memberof AccountMetadata
105
+ */
106
+ profile: PublicProfile;
95
107
  }
96
108
 
97
109
  /**
@@ -109,6 +121,7 @@ export function instanceOfAccountMetadata(value: object): value is AccountMetada
109
121
  if (!('created_at' in value) || value['created_at'] === undefined) return false;
110
122
  if (!('metadata' in value) || value['metadata'] === undefined) return false;
111
123
  if (!('instance' in value) || value['instance'] === undefined) return false;
124
+ if (!('profile' in value) || value['profile'] === undefined) return false;
112
125
  return true;
113
126
  }
114
127
 
@@ -133,6 +146,7 @@ export function AccountMetadataFromJSONTyped(json: any, ignoreDiscriminator: boo
133
146
  'created_at': json['created_at'],
134
147
  'metadata': SubAccountMetadataFromJSON(json['metadata']),
135
148
  'instance': json['instance'],
149
+ 'profile': PublicProfileFromJSON(json['profile']),
136
150
  };
137
151
  }
138
152
 
@@ -153,6 +167,7 @@ export function AccountMetadataToJSON(value?: AccountMetadata | null): any {
153
167
  'created_at': value['created_at'],
154
168
  'metadata': SubAccountMetadataToJSON(value['metadata']),
155
169
  'instance': value['instance'],
170
+ 'profile': PublicProfileToJSON(value['profile']),
156
171
  };
157
172
  }
158
173
 
@@ -43,6 +43,12 @@ import {
43
43
  PublicPoolInfoFromJSONTyped,
44
44
  PublicPoolInfoToJSON,
45
45
  } from './PublicPoolInfo';
46
+ import type { PublicProfile } from './PublicProfile';
47
+ import {
48
+ PublicProfileFromJSON,
49
+ PublicProfileFromJSONTyped,
50
+ PublicProfileToJSON,
51
+ } from './PublicProfile';
46
52
  import type { PublicPoolShare } from './PublicPoolShare';
47
53
  import {
48
54
  PublicPoolShareFromJSON,
@@ -218,6 +224,12 @@ export interface DetailedAccount {
218
224
  * @memberof DetailedAccount
219
225
  */
220
226
  instance: string;
227
+ /**
228
+ *
229
+ * @type {PublicProfile}
230
+ * @memberof DetailedAccount
231
+ */
232
+ profile: PublicProfile;
221
233
  /**
222
234
  *
223
235
  * @type {Array<AccountPosition>}
@@ -337,6 +349,7 @@ export function instanceOfDetailedAccount(value: object): value is DetailedAccou
337
349
  if (!('created_at' in value) || value['created_at'] === undefined) return false;
338
350
  if (!('metadata' in value) || value['metadata'] === undefined) return false;
339
351
  if (!('instance' in value) || value['instance'] === undefined) return false;
352
+ if (!('profile' in value) || value['profile'] === undefined) return false;
340
353
  if (!('positions' in value) || value['positions'] === undefined) return false;
341
354
  if (!('assets' in value) || value['assets'] === undefined) return false;
342
355
  if (!('total_asset_value' in value) || value['total_asset_value'] === undefined) return false;
@@ -383,6 +396,7 @@ export function DetailedAccountFromJSONTyped(json: any, ignoreDiscriminator: boo
383
396
  'created_at': json['created_at'],
384
397
  'metadata': SubAccountMetadataFromJSON(json['metadata']),
385
398
  'instance': json['instance'],
399
+ 'profile': PublicProfileFromJSON(json['profile']),
386
400
  'positions': ((json['positions'] as Array<any>).map(AccountPositionFromJSON)),
387
401
  'bo_positions': json['bo_positions'] == null ? undefined : ((json['bo_positions'] as Array<any>).map(AccountBinaryOptionsPositionFromJSON)),
388
402
  'assets': ((json['assets'] as Array<any>).map(AccountAssetFromJSON)),
@@ -428,6 +442,7 @@ export function DetailedAccountToJSON(value?: DetailedAccount | null): any {
428
442
  'created_at': value['created_at'],
429
443
  'metadata': SubAccountMetadataToJSON(value['metadata']),
430
444
  'instance': value['instance'],
445
+ 'profile': PublicProfileToJSON(value['profile']),
431
446
  'positions': ((value['positions'] as Array<any>).map(AccountPositionToJSON)),
432
447
  'bo_positions': value['bo_positions'] == null ? undefined : ((value['bo_positions'] as Array<any>).map(AccountBinaryOptionsPositionToJSON)),
433
448
  'assets': ((value['assets'] as Array<any>).map(AccountAssetToJSON)),
@@ -13,6 +13,13 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
+ import type { PublicProfile } from './PublicProfile';
17
+ import {
18
+ PublicProfileFromJSON,
19
+ PublicProfileFromJSONTyped,
20
+ PublicProfileToJSON,
21
+ } from './PublicProfile';
22
+
16
23
  /**
17
24
  *
18
25
  * @export
@@ -55,6 +62,12 @@ export interface GuildDuelMemberScore {
55
62
  * @memberof GuildDuelMemberScore
56
63
  */
57
64
  volume: number;
65
+ /**
66
+ *
67
+ * @type {PublicProfile}
68
+ * @memberof GuildDuelMemberScore
69
+ */
70
+ profile: PublicProfile;
58
71
  }
59
72
 
60
73
  /**
@@ -67,6 +80,7 @@ export function instanceOfGuildDuelMemberScore(value: object): value is GuildDue
67
80
  if (!('capital' in value) || value['capital'] === undefined) return false;
68
81
  if (!('roi' in value) || value['roi'] === undefined) return false;
69
82
  if (!('volume' in value) || value['volume'] === undefined) return false;
83
+ if (!('profile' in value) || value['profile'] === undefined) return false;
70
84
  return true;
71
85
  }
72
86
 
@@ -86,6 +100,7 @@ export function GuildDuelMemberScoreFromJSONTyped(json: any, ignoreDiscriminator
86
100
  'capital': json['capital'],
87
101
  'roi': json['roi'],
88
102
  'volume': json['volume'],
103
+ 'profile': PublicProfileFromJSON(json['profile']),
89
104
  };
90
105
  }
91
106
 
@@ -101,6 +116,7 @@ export function GuildDuelMemberScoreToJSON(value?: GuildDuelMemberScore | null):
101
116
  'capital': value['capital'],
102
117
  'roi': value['roi'],
103
118
  'volume': value['volume'],
119
+ 'profile': PublicProfileToJSON(value['profile']),
104
120
  };
105
121
  }
106
122
 
@@ -13,6 +13,13 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
+ import type { PublicProfile } from './PublicProfile';
17
+ import {
18
+ PublicProfileFromJSON,
19
+ PublicProfileFromJSONTyped,
20
+ PublicProfileToJSON,
21
+ } from './PublicProfile';
22
+
16
23
  /**
17
24
  *
18
25
  * @export
@@ -37,6 +44,12 @@ export interface GuildDuelRosterMember {
37
44
  * @memberof GuildDuelRosterMember
38
45
  */
39
46
  selected_by_l1: string;
47
+ /**
48
+ *
49
+ * @type {PublicProfile}
50
+ * @memberof GuildDuelRosterMember
51
+ */
52
+ profile: PublicProfile;
40
53
  }
41
54
 
42
55
  /**
@@ -46,6 +59,7 @@ export function instanceOfGuildDuelRosterMember(value: object): value is GuildDu
46
59
  if (!('l1_address' in value) || value['l1_address'] === undefined) return false;
47
60
  if (!('guild_id' in value) || value['guild_id'] === undefined) return false;
48
61
  if (!('selected_by_l1' in value) || value['selected_by_l1'] === undefined) return false;
62
+ if (!('profile' in value) || value['profile'] === undefined) return false;
49
63
  return true;
50
64
  }
51
65
 
@@ -62,6 +76,7 @@ export function GuildDuelRosterMemberFromJSONTyped(json: any, ignoreDiscriminato
62
76
  'l1_address': json['l1_address'],
63
77
  'guild_id': json['guild_id'],
64
78
  'selected_by_l1': json['selected_by_l1'],
79
+ 'profile': PublicProfileFromJSON(json['profile']),
65
80
  };
66
81
  }
67
82
 
@@ -74,6 +89,7 @@ export function GuildDuelRosterMemberToJSON(value?: GuildDuelRosterMember | null
74
89
  'l1_address': value['l1_address'],
75
90
  'guild_id': value['guild_id'],
76
91
  'selected_by_l1': value['selected_by_l1'],
92
+ 'profile': PublicProfileToJSON(value['profile']),
77
93
  };
78
94
  }
79
95
 
@@ -13,6 +13,13 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
+ import type { PublicProfile } from './PublicProfile';
17
+ import {
18
+ PublicProfileFromJSON,
19
+ PublicProfileFromJSONTyped,
20
+ PublicProfileToJSON,
21
+ } from './PublicProfile';
22
+
16
23
  /**
17
24
  *
18
25
  * @export
@@ -61,6 +68,12 @@ export interface GuildDuelSide {
61
68
  * @memberof GuildDuelSide
62
69
  */
63
70
  stake_tx_hash: string;
71
+ /**
72
+ *
73
+ * @type {PublicProfile}
74
+ * @memberof GuildDuelSide
75
+ */
76
+ leader_profile: PublicProfile;
64
77
  }
65
78
 
66
79
  /**
@@ -74,6 +87,7 @@ export function instanceOfGuildDuelSide(value: object): value is GuildDuelSide {
74
87
  if (!('roster_locked_at' in value) || value['roster_locked_at'] === undefined) return false;
75
88
  if (!('stake_status' in value) || value['stake_status'] === undefined) return false;
76
89
  if (!('stake_tx_hash' in value) || value['stake_tx_hash'] === undefined) return false;
90
+ if (!('leader_profile' in value) || value['leader_profile'] === undefined) return false;
77
91
  return true;
78
92
  }
79
93
 
@@ -94,6 +108,7 @@ export function GuildDuelSideFromJSONTyped(json: any, ignoreDiscriminator: boole
94
108
  'roster_locked_at': json['roster_locked_at'],
95
109
  'stake_status': json['stake_status'],
96
110
  'stake_tx_hash': json['stake_tx_hash'],
111
+ 'leader_profile': PublicProfileFromJSON(json['leader_profile']),
97
112
  };
98
113
  }
99
114
 
@@ -110,6 +125,7 @@ export function GuildDuelSideToJSON(value?: GuildDuelSide | null): any {
110
125
  'roster_locked_at': value['roster_locked_at'],
111
126
  'stake_status': value['stake_status'],
112
127
  'stake_tx_hash': value['stake_tx_hash'],
128
+ 'leader_profile': PublicProfileToJSON(value['leader_profile']),
113
129
  };
114
130
  }
115
131
 
@@ -13,6 +13,13 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
+ import type { PublicProfile } from './PublicProfile';
17
+ import {
18
+ PublicProfileFromJSON,
19
+ PublicProfileFromJSONTyped,
20
+ PublicProfileToJSON,
21
+ } from './PublicProfile';
22
+
16
23
  /**
17
24
  *
18
25
  * @export
@@ -79,6 +86,12 @@ export interface GuildInviteCode {
79
86
  * @memberof GuildInviteCode
80
87
  */
81
88
  redeemed_by_l1?: string;
89
+ /**
90
+ *
91
+ * @type {PublicProfile}
92
+ * @memberof GuildInviteCode
93
+ */
94
+ bound_profile: PublicProfile;
82
95
  }
83
96
 
84
97
  /**
@@ -92,6 +105,7 @@ export function instanceOfGuildInviteCode(value: object): value is GuildInviteCo
92
105
  if (!('status' in value) || value['status'] === undefined) return false;
93
106
  if (!('created_at' in value) || value['created_at'] === undefined) return false;
94
107
  if (!('expires_at' in value) || value['expires_at'] === undefined) return false;
108
+ if (!('bound_profile' in value) || value['bound_profile'] === undefined) return false;
95
109
  return true;
96
110
  }
97
111
 
@@ -115,6 +129,7 @@ export function GuildInviteCodeFromJSONTyped(json: any, ignoreDiscriminator: boo
115
129
  'expires_at': json['expires_at'],
116
130
  'resolved_at': json['resolved_at'] == null ? undefined : json['resolved_at'],
117
131
  'redeemed_by_l1': json['redeemed_by_l1'] == null ? undefined : json['redeemed_by_l1'],
132
+ 'bound_profile': PublicProfileFromJSON(json['bound_profile']),
118
133
  };
119
134
  }
120
135
 
@@ -134,6 +149,7 @@ export function GuildInviteCodeToJSON(value?: GuildInviteCode | null): any {
134
149
  'expires_at': value['expires_at'],
135
150
  'resolved_at': value['resolved_at'],
136
151
  'redeemed_by_l1': value['redeemed_by_l1'],
152
+ 'bound_profile': PublicProfileToJSON(value['bound_profile']),
137
153
  };
138
154
  }
139
155