zklighter-perps 1.0.341 → 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.
@@ -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
@@ -67,6 +74,12 @@ export interface GuildJoinRequest {
67
74
  * @memberof GuildJoinRequest
68
75
  */
69
76
  expires_at: number;
77
+ /**
78
+ *
79
+ * @type {PublicProfile}
80
+ * @memberof GuildJoinRequest
81
+ */
82
+ profile: PublicProfile;
70
83
  }
71
84
 
72
85
  /**
@@ -81,6 +94,7 @@ export function instanceOfGuildJoinRequest(value: object): value is GuildJoinReq
81
94
  if (!('source' in value) || value['source'] === undefined) return false;
82
95
  if (!('created_at' in value) || value['created_at'] === undefined) return false;
83
96
  if (!('expires_at' in value) || value['expires_at'] === undefined) return false;
97
+ if (!('profile' in value) || value['profile'] === undefined) return false;
84
98
  return true;
85
99
  }
86
100
 
@@ -102,6 +116,7 @@ export function GuildJoinRequestFromJSONTyped(json: any, ignoreDiscriminator: bo
102
116
  'source': json['source'],
103
117
  'created_at': json['created_at'],
104
118
  'expires_at': json['expires_at'],
119
+ 'profile': PublicProfileFromJSON(json['profile']),
105
120
  };
106
121
  }
107
122
 
@@ -119,6 +134,7 @@ export function GuildJoinRequestToJSON(value?: GuildJoinRequest | null): any {
119
134
  'source': value['source'],
120
135
  'created_at': value['created_at'],
121
136
  'expires_at': value['expires_at'],
137
+ 'profile': PublicProfileToJSON(value['profile']),
122
138
  };
123
139
  }
124
140
 
@@ -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
@@ -43,6 +50,12 @@ export interface GuildMember {
43
50
  * @memberof GuildMember
44
51
  */
45
52
  duel_opt_in: boolean;
53
+ /**
54
+ *
55
+ * @type {PublicProfile}
56
+ * @memberof GuildMember
57
+ */
58
+ profile: PublicProfile;
46
59
  }
47
60
 
48
61
  /**
@@ -53,6 +66,7 @@ export function instanceOfGuildMember(value: object): value is GuildMember {
53
66
  if (!('role' in value) || value['role'] === undefined) return false;
54
67
  if (!('joined_at' in value) || value['joined_at'] === undefined) return false;
55
68
  if (!('duel_opt_in' in value) || value['duel_opt_in'] === undefined) return false;
69
+ if (!('profile' in value) || value['profile'] === undefined) return false;
56
70
  return true;
57
71
  }
58
72
 
@@ -70,6 +84,7 @@ export function GuildMemberFromJSONTyped(json: any, ignoreDiscriminator: boolean
70
84
  'role': json['role'],
71
85
  'joined_at': json['joined_at'],
72
86
  'duel_opt_in': json['duel_opt_in'],
87
+ 'profile': PublicProfileFromJSON(json['profile']),
73
88
  };
74
89
  }
75
90
 
@@ -83,6 +98,7 @@ export function GuildMemberToJSON(value?: GuildMember | null): any {
83
98
  'role': value['role'],
84
99
  'joined_at': value['joined_at'],
85
100
  'duel_opt_in': value['duel_opt_in'],
101
+ 'profile': PublicProfileToJSON(value['profile']),
86
102
  };
87
103
  }
88
104
 
@@ -0,0 +1,110 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ *
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document:
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface PublicProfile
20
+ */
21
+ export interface PublicProfile {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof PublicProfile
26
+ */
27
+ l1_address: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof PublicProfile
32
+ */
33
+ username: string;
34
+ /**
35
+ * ens is resolved by the client from l1_address on chain 1
36
+ * @type {string}
37
+ * @memberof PublicProfile
38
+ */
39
+ display_name_source: PublicProfileDisplayNameSourceEnum;
40
+ /**
41
+ * verified through X OAuth; link by id, the handle can change hands after a rename
42
+ * @type {string}
43
+ * @memberof PublicProfile
44
+ */
45
+ x_user_id: string;
46
+ /**
47
+ * as of connecting
48
+ * @type {string}
49
+ * @memberof PublicProfile
50
+ */
51
+ x_handle: string;
52
+ }
53
+
54
+
55
+ /**
56
+ * @export
57
+ */
58
+ export const PublicProfileDisplayNameSourceEnum = {
59
+ Address: 'address',
60
+ Username: 'username',
61
+ Ens: 'ens',
62
+ X: 'x'
63
+ } as const;
64
+ export type PublicProfileDisplayNameSourceEnum = typeof PublicProfileDisplayNameSourceEnum[keyof typeof PublicProfileDisplayNameSourceEnum];
65
+
66
+
67
+ /**
68
+ * Check if a given object implements the PublicProfile interface.
69
+ */
70
+ export function instanceOfPublicProfile(value: object): value is PublicProfile {
71
+ if (!('l1_address' in value) || value['l1_address'] === undefined) return false;
72
+ if (!('username' in value) || value['username'] === undefined) return false;
73
+ if (!('display_name_source' in value) || value['display_name_source'] === undefined) return false;
74
+ if (!('x_user_id' in value) || value['x_user_id'] === undefined) return false;
75
+ if (!('x_handle' in value) || value['x_handle'] === undefined) return false;
76
+ return true;
77
+ }
78
+
79
+ export function PublicProfileFromJSON(json: any): PublicProfile {
80
+ return PublicProfileFromJSONTyped(json, false);
81
+ }
82
+
83
+ export function PublicProfileFromJSONTyped(json: any, ignoreDiscriminator: boolean): PublicProfile {
84
+ if (json == null) {
85
+ return json;
86
+ }
87
+ return {
88
+
89
+ 'l1_address': json['l1_address'],
90
+ 'username': json['username'],
91
+ 'display_name_source': json['display_name_source'],
92
+ 'x_user_id': json['x_user_id'],
93
+ 'x_handle': json['x_handle'],
94
+ };
95
+ }
96
+
97
+ export function PublicProfileToJSON(value?: PublicProfile | null): any {
98
+ if (value == null) {
99
+ return value;
100
+ }
101
+ return {
102
+
103
+ 'l1_address': value['l1_address'],
104
+ 'username': value['username'],
105
+ 'display_name_source': value['display_name_source'],
106
+ 'x_user_id': value['x_user_id'],
107
+ 'x_handle': value['x_handle'],
108
+ };
109
+ }
110
+
@@ -0,0 +1,61 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ *
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document:
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface ReqGetPublicProfiles
20
+ */
21
+ export interface ReqGetPublicProfiles {
22
+ /**
23
+ * comma-separated, max 100
24
+ * @type {string}
25
+ * @memberof ReqGetPublicProfiles
26
+ */
27
+ l1_addresses: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the ReqGetPublicProfiles interface.
32
+ */
33
+ export function instanceOfReqGetPublicProfiles(value: object): value is ReqGetPublicProfiles {
34
+ if (!('l1_addresses' in value) || value['l1_addresses'] === undefined) return false;
35
+ return true;
36
+ }
37
+
38
+ export function ReqGetPublicProfilesFromJSON(json: any): ReqGetPublicProfiles {
39
+ return ReqGetPublicProfilesFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function ReqGetPublicProfilesFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReqGetPublicProfiles {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+
48
+ 'l1_addresses': json['l1_addresses'],
49
+ };
50
+ }
51
+
52
+ export function ReqGetPublicProfilesToJSON(value?: ReqGetPublicProfiles | null): any {
53
+ if (value == null) {
54
+ return value;
55
+ }
56
+ return {
57
+
58
+ 'l1_addresses': value['l1_addresses'],
59
+ };
60
+ }
61
+
@@ -0,0 +1,78 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ *
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document:
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface RespConnectX
20
+ */
21
+ export interface RespConnectX {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof RespConnectX
26
+ */
27
+ code: number;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof RespConnectX
32
+ */
33
+ message?: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof RespConnectX
38
+ */
39
+ authorize_url: string;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the RespConnectX interface.
44
+ */
45
+ export function instanceOfRespConnectX(value: object): value is RespConnectX {
46
+ if (!('code' in value) || value['code'] === undefined) return false;
47
+ if (!('authorize_url' in value) || value['authorize_url'] === undefined) return false;
48
+ return true;
49
+ }
50
+
51
+ export function RespConnectXFromJSON(json: any): RespConnectX {
52
+ return RespConnectXFromJSONTyped(json, false);
53
+ }
54
+
55
+ export function RespConnectXFromJSONTyped(json: any, ignoreDiscriminator: boolean): RespConnectX {
56
+ if (json == null) {
57
+ return json;
58
+ }
59
+ return {
60
+
61
+ 'code': json['code'],
62
+ 'message': json['message'] == null ? undefined : json['message'],
63
+ 'authorize_url': json['authorize_url'],
64
+ };
65
+ }
66
+
67
+ export function RespConnectXToJSON(value?: RespConnectX | null): any {
68
+ if (value == null) {
69
+ return value;
70
+ }
71
+ return {
72
+
73
+ 'code': value['code'],
74
+ 'message': value['message'],
75
+ 'authorize_url': value['authorize_url'],
76
+ };
77
+ }
78
+
@@ -0,0 +1,87 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ *
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document:
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface RespConnectXCallback
20
+ */
21
+ export interface RespConnectXCallback {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof RespConnectXCallback
26
+ */
27
+ code: number;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof RespConnectXCallback
32
+ */
33
+ message?: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof RespConnectXCallback
38
+ */
39
+ x_user_id: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof RespConnectXCallback
44
+ */
45
+ x_handle: string;
46
+ }
47
+
48
+ /**
49
+ * Check if a given object implements the RespConnectXCallback interface.
50
+ */
51
+ export function instanceOfRespConnectXCallback(value: object): value is RespConnectXCallback {
52
+ if (!('code' in value) || value['code'] === undefined) return false;
53
+ if (!('x_user_id' in value) || value['x_user_id'] === undefined) return false;
54
+ if (!('x_handle' in value) || value['x_handle'] === undefined) return false;
55
+ return true;
56
+ }
57
+
58
+ export function RespConnectXCallbackFromJSON(json: any): RespConnectXCallback {
59
+ return RespConnectXCallbackFromJSONTyped(json, false);
60
+ }
61
+
62
+ export function RespConnectXCallbackFromJSONTyped(json: any, ignoreDiscriminator: boolean): RespConnectXCallback {
63
+ if (json == null) {
64
+ return json;
65
+ }
66
+ return {
67
+
68
+ 'code': json['code'],
69
+ 'message': json['message'] == null ? undefined : json['message'],
70
+ 'x_user_id': json['x_user_id'],
71
+ 'x_handle': json['x_handle'],
72
+ };
73
+ }
74
+
75
+ export function RespConnectXCallbackToJSON(value?: RespConnectXCallback | null): any {
76
+ if (value == null) {
77
+ return value;
78
+ }
79
+ return {
80
+
81
+ 'code': value['code'],
82
+ 'message': value['message'],
83
+ 'x_user_id': value['x_user_id'],
84
+ 'x_handle': value['x_handle'],
85
+ };
86
+ }
87
+
@@ -0,0 +1,85 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ *
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document:
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { PublicProfile } from './PublicProfile';
17
+ import {
18
+ PublicProfileFromJSON,
19
+ PublicProfileFromJSONTyped,
20
+ PublicProfileToJSON,
21
+ } from './PublicProfile';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface RespGetPublicProfiles
27
+ */
28
+ export interface RespGetPublicProfiles {
29
+ /**
30
+ *
31
+ * @type {number}
32
+ * @memberof RespGetPublicProfiles
33
+ */
34
+ code: number;
35
+ /**
36
+ *
37
+ * @type {string}
38
+ * @memberof RespGetPublicProfiles
39
+ */
40
+ message?: string;
41
+ /**
42
+ * only wallets with a profile set
43
+ * @type {Array<PublicProfile>}
44
+ * @memberof RespGetPublicProfiles
45
+ */
46
+ profiles: Array<PublicProfile>;
47
+ }
48
+
49
+ /**
50
+ * Check if a given object implements the RespGetPublicProfiles interface.
51
+ */
52
+ export function instanceOfRespGetPublicProfiles(value: object): value is RespGetPublicProfiles {
53
+ if (!('code' in value) || value['code'] === undefined) return false;
54
+ if (!('profiles' in value) || value['profiles'] === undefined) return false;
55
+ return true;
56
+ }
57
+
58
+ export function RespGetPublicProfilesFromJSON(json: any): RespGetPublicProfiles {
59
+ return RespGetPublicProfilesFromJSONTyped(json, false);
60
+ }
61
+
62
+ export function RespGetPublicProfilesFromJSONTyped(json: any, ignoreDiscriminator: boolean): RespGetPublicProfiles {
63
+ if (json == null) {
64
+ return json;
65
+ }
66
+ return {
67
+
68
+ 'code': json['code'],
69
+ 'message': json['message'] == null ? undefined : json['message'],
70
+ 'profiles': ((json['profiles'] as Array<any>).map(PublicProfileFromJSON)),
71
+ };
72
+ }
73
+
74
+ export function RespGetPublicProfilesToJSON(value?: RespGetPublicProfiles | null): any {
75
+ if (value == null) {
76
+ return value;
77
+ }
78
+ return {
79
+
80
+ 'code': value['code'],
81
+ 'message': value['message'],
82
+ 'profiles': ((value['profiles'] as Array<any>).map(PublicProfileToJSON)),
83
+ };
84
+ }
85
+
package/models/index.ts CHANGED
@@ -142,6 +142,7 @@ export * from './PriceOraclePrice';
142
142
  export * from './PublicPoolInfo';
143
143
  export * from './PublicPoolMetadata';
144
144
  export * from './PublicPoolShare';
145
+ export * from './PublicProfile';
145
146
  export * from './PushNotifDeliveryResult';
146
147
  export * from './RFQEntry';
147
148
  export * from './RFQMetadata';
@@ -216,6 +217,7 @@ export * from './ReqGetPnlLeaderboard';
216
217
  export * from './ReqGetPositionFunding';
217
218
  export * from './ReqGetPriceOracleInfo';
218
219
  export * from './ReqGetPublicPoolsMetadata';
220
+ export * from './ReqGetPublicProfiles';
219
221
  export * from './ReqGetPushNotifSettings';
220
222
  export * from './ReqGetRFQ';
221
223
  export * from './ReqGetRangeWithCursor';
@@ -246,6 +248,8 @@ export * from './ReqTvSymbolInfo';
246
248
  export * from './RespAtomicOrder';
247
249
  export * from './RespAtomicOrderList';
248
250
  export * from './RespChangeAccountTier';
251
+ export * from './RespConnectX';
252
+ export * from './RespConnectXCallback';
249
253
  export * from './RespCreateEvent';
250
254
  export * from './RespCreateRFQ';
251
255
  export * from './RespCreateStrategyHeartbeat';
@@ -268,6 +272,7 @@ export * from './RespGetLeaseOptions';
268
272
  export * from './RespGetLeases';
269
273
  export * from './RespGetMakerOnlyApiKeys';
270
274
  export * from './RespGetMarketMetrics';
275
+ export * from './RespGetPublicProfiles';
271
276
  export * from './RespGetPushNotifSettings';
272
277
  export * from './RespGetRFQ';
273
278
  export * from './RespGetUpDownCandles';