zklighter-perps 1.0.355 → 1.0.357
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/.openapi-generator/FILES +2 -0
- package/apis/GuildApi.ts +4 -27
- package/apis/PushnotifApi.ts +56 -0
- package/models/ReqGetGuildDuelList.ts +1 -0
- package/models/ReqGetPushNotifRegistered.ts +69 -0
- package/models/RespGetPushNotifRegistered.ts +87 -0
- package/models/index.ts +2 -0
- package/openapi.json +99 -16
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -254,6 +254,7 @@ models/ReqGetPositionFunding.ts
|
|
|
254
254
|
models/ReqGetPriceOracleInfo.ts
|
|
255
255
|
models/ReqGetPublicPoolsMetadata.ts
|
|
256
256
|
models/ReqGetPublicProfiles.ts
|
|
257
|
+
models/ReqGetPushNotifRegistered.ts
|
|
257
258
|
models/ReqGetPushNotifSettings.ts
|
|
258
259
|
models/ReqGetRFQ.ts
|
|
259
260
|
models/ReqGetRangeWithCursor.ts
|
|
@@ -311,6 +312,7 @@ models/RespGetLeases.ts
|
|
|
311
312
|
models/RespGetMakerOnlyApiKeys.ts
|
|
312
313
|
models/RespGetMarketMetrics.ts
|
|
313
314
|
models/RespGetPublicProfiles.ts
|
|
315
|
+
models/RespGetPushNotifRegistered.ts
|
|
314
316
|
models/RespGetPushNotifSettings.ts
|
|
315
317
|
models/RespGetRFQ.ts
|
|
316
318
|
models/RespGetUpDownCandles.ts
|
package/apis/GuildApi.ts
CHANGED
|
@@ -86,7 +86,6 @@ export interface GuildCreateRequest {
|
|
|
86
86
|
auth?: string;
|
|
87
87
|
description?: string;
|
|
88
88
|
accepts_join_requests?: boolean;
|
|
89
|
-
max_members?: number;
|
|
90
89
|
}
|
|
91
90
|
|
|
92
91
|
export interface GuildDuelRequest {
|
|
@@ -111,7 +110,6 @@ export interface GuildDuelCancelRequest {
|
|
|
111
110
|
|
|
112
111
|
export interface GuildDuelChallengeRequest {
|
|
113
112
|
account_index: number;
|
|
114
|
-
target_guild_id: number;
|
|
115
113
|
metric: GuildDuelChallengeMetricEnum;
|
|
116
114
|
stake_amount: number;
|
|
117
115
|
start_time: number;
|
|
@@ -119,6 +117,7 @@ export interface GuildDuelChallengeRequest {
|
|
|
119
117
|
min_members: number;
|
|
120
118
|
authorization?: string;
|
|
121
119
|
auth?: string;
|
|
120
|
+
target_guild_id?: number;
|
|
122
121
|
message?: string;
|
|
123
122
|
l1_addresses?: string;
|
|
124
123
|
}
|
|
@@ -302,7 +301,6 @@ export interface GuildUpdateRequest {
|
|
|
302
301
|
account_index: number;
|
|
303
302
|
name: string;
|
|
304
303
|
accepts_join_requests: boolean;
|
|
305
|
-
max_members: number;
|
|
306
304
|
authorization?: string;
|
|
307
305
|
auth?: string;
|
|
308
306
|
description?: string;
|
|
@@ -518,10 +516,6 @@ export class GuildApi extends runtime.BaseAPI {
|
|
|
518
516
|
formParams.append('accepts_join_requests', requestParameters['accepts_join_requests'] as any);
|
|
519
517
|
}
|
|
520
518
|
|
|
521
|
-
if (requestParameters['max_members'] != null) {
|
|
522
|
-
formParams.append('max_members', requestParameters['max_members'] as any);
|
|
523
|
-
}
|
|
524
|
-
|
|
525
519
|
const response = await this.request({
|
|
526
520
|
path: `/api/v1/guild/create`,
|
|
527
521
|
method: 'POST',
|
|
@@ -754,13 +748,6 @@ export class GuildApi extends runtime.BaseAPI {
|
|
|
754
748
|
);
|
|
755
749
|
}
|
|
756
750
|
|
|
757
|
-
if (requestParameters['target_guild_id'] == null) {
|
|
758
|
-
throw new runtime.RequiredError(
|
|
759
|
-
'target_guild_id',
|
|
760
|
-
'Required parameter "target_guild_id" was null or undefined when calling guildDuelChallenge().'
|
|
761
|
-
);
|
|
762
|
-
}
|
|
763
|
-
|
|
764
751
|
if (requestParameters['metric'] == null) {
|
|
765
752
|
throw new runtime.RequiredError(
|
|
766
753
|
'metric',
|
|
@@ -1110,7 +1097,7 @@ export class GuildApi extends runtime.BaseAPI {
|
|
|
1110
1097
|
}
|
|
1111
1098
|
|
|
1112
1099
|
/**
|
|
1113
|
-
* Public duels
|
|
1100
|
+
* Public duels of a guild or all, newest first; status=upcoming|live|finished|all = duels with both stakes in escrow (or a free duel accepted), status=open = unexpired open challenges (proposed, no opponent yet) with their pending offer; targeted proposals are never listed
|
|
1114
1101
|
* guild_duel_list
|
|
1115
1102
|
*/
|
|
1116
1103
|
async guildDuelListRaw(requestParameters: GuildDuelListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RespGetGuildDuelList>> {
|
|
@@ -1152,7 +1139,7 @@ export class GuildApi extends runtime.BaseAPI {
|
|
|
1152
1139
|
}
|
|
1153
1140
|
|
|
1154
1141
|
/**
|
|
1155
|
-
* Public duels
|
|
1142
|
+
* Public duels of a guild or all, newest first; status=upcoming|live|finished|all = duels with both stakes in escrow (or a free duel accepted), status=open = unexpired open challenges (proposed, no opponent yet) with their pending offer; targeted proposals are never listed
|
|
1156
1143
|
* guild_duel_list
|
|
1157
1144
|
*/
|
|
1158
1145
|
async guildDuelList(requestParameters: GuildDuelListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RespGetGuildDuelList> {
|
|
@@ -2582,13 +2569,6 @@ export class GuildApi extends runtime.BaseAPI {
|
|
|
2582
2569
|
);
|
|
2583
2570
|
}
|
|
2584
2571
|
|
|
2585
|
-
if (requestParameters['max_members'] == null) {
|
|
2586
|
-
throw new runtime.RequiredError(
|
|
2587
|
-
'max_members',
|
|
2588
|
-
'Required parameter "max_members" was null or undefined when calling guildUpdate().'
|
|
2589
|
-
);
|
|
2590
|
-
}
|
|
2591
|
-
|
|
2592
2572
|
const queryParameters: any = {};
|
|
2593
2573
|
|
|
2594
2574
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -2631,10 +2611,6 @@ export class GuildApi extends runtime.BaseAPI {
|
|
|
2631
2611
|
formParams.append('accepts_join_requests', requestParameters['accepts_join_requests'] as any);
|
|
2632
2612
|
}
|
|
2633
2613
|
|
|
2634
|
-
if (requestParameters['max_members'] != null) {
|
|
2635
|
-
formParams.append('max_members', requestParameters['max_members'] as any);
|
|
2636
|
-
}
|
|
2637
|
-
|
|
2638
2614
|
const response = await this.request({
|
|
2639
2615
|
path: `/api/v1/guild/update`,
|
|
2640
2616
|
method: 'POST',
|
|
@@ -2683,6 +2659,7 @@ export type GuildDuelCounterMetricEnum = typeof GuildDuelCounterMetricEnum[keyof
|
|
|
2683
2659
|
* @export
|
|
2684
2660
|
*/
|
|
2685
2661
|
export const GuildDuelListStatusEnum = {
|
|
2662
|
+
Open: 'open',
|
|
2686
2663
|
Upcoming: 'upcoming',
|
|
2687
2664
|
Live: 'live',
|
|
2688
2665
|
Finished: 'finished',
|
package/apis/PushnotifApi.ts
CHANGED
|
@@ -15,10 +15,13 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
|
+
RespGetPushNotifRegistered,
|
|
18
19
|
RespGetPushNotifSettings,
|
|
19
20
|
ResultCode,
|
|
20
21
|
} from '../models/index';
|
|
21
22
|
import {
|
|
23
|
+
RespGetPushNotifRegisteredFromJSON,
|
|
24
|
+
RespGetPushNotifRegisteredToJSON,
|
|
22
25
|
RespGetPushNotifSettingsFromJSON,
|
|
23
26
|
RespGetPushNotifSettingsToJSON,
|
|
24
27
|
ResultCodeFromJSON,
|
|
@@ -34,6 +37,12 @@ export interface PushnotifRegisterRequest {
|
|
|
34
37
|
language?: string;
|
|
35
38
|
}
|
|
36
39
|
|
|
40
|
+
export interface PushnotifRegisteredRequest {
|
|
41
|
+
account_index: number;
|
|
42
|
+
authorization?: string;
|
|
43
|
+
auth?: string;
|
|
44
|
+
}
|
|
45
|
+
|
|
37
46
|
export interface PushnotifSettingsGetRequest {
|
|
38
47
|
account_index: number;
|
|
39
48
|
authorization?: string;
|
|
@@ -147,6 +156,53 @@ export class PushnotifApi extends runtime.BaseAPI {
|
|
|
147
156
|
return await response.value();
|
|
148
157
|
}
|
|
149
158
|
|
|
159
|
+
/**
|
|
160
|
+
* Check whether the account has an active push notification token
|
|
161
|
+
* pushnotif_registered
|
|
162
|
+
*/
|
|
163
|
+
async pushnotifRegisteredRaw(requestParameters: PushnotifRegisteredRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RespGetPushNotifRegistered>> {
|
|
164
|
+
if (requestParameters['account_index'] == null) {
|
|
165
|
+
throw new runtime.RequiredError(
|
|
166
|
+
'account_index',
|
|
167
|
+
'Required parameter "account_index" was null or undefined when calling pushnotifRegistered().'
|
|
168
|
+
);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
const queryParameters: any = {};
|
|
172
|
+
|
|
173
|
+
if (requestParameters['authorization'] != null) {
|
|
174
|
+
queryParameters['authorization'] = requestParameters['authorization'];
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
if (requestParameters['auth'] != null) {
|
|
178
|
+
queryParameters['auth'] = requestParameters['auth'];
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
if (requestParameters['account_index'] != null) {
|
|
182
|
+
queryParameters['account_index'] = requestParameters['account_index'];
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
186
|
+
|
|
187
|
+
const response = await this.request({
|
|
188
|
+
path: `/api/v1/pushnotif/registered`,
|
|
189
|
+
method: 'GET',
|
|
190
|
+
headers: headerParameters,
|
|
191
|
+
query: queryParameters,
|
|
192
|
+
}, initOverrides);
|
|
193
|
+
|
|
194
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => RespGetPushNotifRegisteredFromJSON(jsonValue));
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* Check whether the account has an active push notification token
|
|
199
|
+
* pushnotif_registered
|
|
200
|
+
*/
|
|
201
|
+
async pushnotifRegistered(requestParameters: PushnotifRegisteredRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RespGetPushNotifRegistered> {
|
|
202
|
+
const response = await this.pushnotifRegisteredRaw(requestParameters, initOverrides);
|
|
203
|
+
return await response.value();
|
|
204
|
+
}
|
|
205
|
+
|
|
150
206
|
/**
|
|
151
207
|
* Get push notification settings
|
|
152
208
|
* pushnotif_settings
|
|
@@ -0,0 +1,69 @@
|
|
|
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 ReqGetPushNotifRegistered
|
|
20
|
+
*/
|
|
21
|
+
export interface ReqGetPushNotifRegistered {
|
|
22
|
+
/**
|
|
23
|
+
* made optional to support header auth clients
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ReqGetPushNotifRegistered
|
|
26
|
+
*/
|
|
27
|
+
auth?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof ReqGetPushNotifRegistered
|
|
32
|
+
*/
|
|
33
|
+
account_index: number;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the ReqGetPushNotifRegistered interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfReqGetPushNotifRegistered(value: object): value is ReqGetPushNotifRegistered {
|
|
40
|
+
if (!('account_index' in value) || value['account_index'] === undefined) return false;
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function ReqGetPushNotifRegisteredFromJSON(json: any): ReqGetPushNotifRegistered {
|
|
45
|
+
return ReqGetPushNotifRegisteredFromJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export function ReqGetPushNotifRegisteredFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReqGetPushNotifRegistered {
|
|
49
|
+
if (json == null) {
|
|
50
|
+
return json;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
|
|
54
|
+
'auth': json['auth'] == null ? undefined : json['auth'],
|
|
55
|
+
'account_index': json['account_index'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function ReqGetPushNotifRegisteredToJSON(value?: ReqGetPushNotifRegistered | null): any {
|
|
60
|
+
if (value == null) {
|
|
61
|
+
return value;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
|
|
65
|
+
'auth': value['auth'],
|
|
66
|
+
'account_index': value['account_index'],
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
|
|
@@ -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 RespGetPushNotifRegistered
|
|
20
|
+
*/
|
|
21
|
+
export interface RespGetPushNotifRegistered {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof RespGetPushNotifRegistered
|
|
26
|
+
*/
|
|
27
|
+
code: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof RespGetPushNotifRegistered
|
|
32
|
+
*/
|
|
33
|
+
message?: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {boolean}
|
|
37
|
+
* @memberof RespGetPushNotifRegistered
|
|
38
|
+
*/
|
|
39
|
+
registered: boolean;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof RespGetPushNotifRegistered
|
|
44
|
+
*/
|
|
45
|
+
platform: string;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the RespGetPushNotifRegistered interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfRespGetPushNotifRegistered(value: object): value is RespGetPushNotifRegistered {
|
|
52
|
+
if (!('code' in value) || value['code'] === undefined) return false;
|
|
53
|
+
if (!('registered' in value) || value['registered'] === undefined) return false;
|
|
54
|
+
if (!('platform' in value) || value['platform'] === undefined) return false;
|
|
55
|
+
return true;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function RespGetPushNotifRegisteredFromJSON(json: any): RespGetPushNotifRegistered {
|
|
59
|
+
return RespGetPushNotifRegisteredFromJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function RespGetPushNotifRegisteredFromJSONTyped(json: any, ignoreDiscriminator: boolean): RespGetPushNotifRegistered {
|
|
63
|
+
if (json == null) {
|
|
64
|
+
return json;
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
|
|
68
|
+
'code': json['code'],
|
|
69
|
+
'message': json['message'] == null ? undefined : json['message'],
|
|
70
|
+
'registered': json['registered'],
|
|
71
|
+
'platform': json['platform'],
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function RespGetPushNotifRegisteredToJSON(value?: RespGetPushNotifRegistered | null): any {
|
|
76
|
+
if (value == null) {
|
|
77
|
+
return value;
|
|
78
|
+
}
|
|
79
|
+
return {
|
|
80
|
+
|
|
81
|
+
'code': value['code'],
|
|
82
|
+
'message': value['message'],
|
|
83
|
+
'registered': value['registered'],
|
|
84
|
+
'platform': value['platform'],
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
|
package/models/index.ts
CHANGED
|
@@ -225,6 +225,7 @@ export * from './ReqGetPositionFunding';
|
|
|
225
225
|
export * from './ReqGetPriceOracleInfo';
|
|
226
226
|
export * from './ReqGetPublicPoolsMetadata';
|
|
227
227
|
export * from './ReqGetPublicProfiles';
|
|
228
|
+
export * from './ReqGetPushNotifRegistered';
|
|
228
229
|
export * from './ReqGetPushNotifSettings';
|
|
229
230
|
export * from './ReqGetRFQ';
|
|
230
231
|
export * from './ReqGetRangeWithCursor';
|
|
@@ -282,6 +283,7 @@ export * from './RespGetLeases';
|
|
|
282
283
|
export * from './RespGetMakerOnlyApiKeys';
|
|
283
284
|
export * from './RespGetMarketMetrics';
|
|
284
285
|
export * from './RespGetPublicProfiles';
|
|
286
|
+
export * from './RespGetPushNotifRegistered';
|
|
285
287
|
export * from './RespGetPushNotifSettings';
|
|
286
288
|
export * from './RespGetRFQ';
|
|
287
289
|
export * from './RespGetUpDownCandles';
|
package/openapi.json
CHANGED
|
@@ -3424,6 +3424,7 @@
|
|
|
3424
3424
|
"required": false,
|
|
3425
3425
|
"type": "string",
|
|
3426
3426
|
"enum": [
|
|
3427
|
+
"open",
|
|
3427
3428
|
"upcoming",
|
|
3428
3429
|
"live",
|
|
3429
3430
|
"finished",
|
|
@@ -3454,7 +3455,7 @@
|
|
|
3454
3455
|
"consumes": [
|
|
3455
3456
|
"multipart/form-data"
|
|
3456
3457
|
],
|
|
3457
|
-
"description": "Public duels
|
|
3458
|
+
"description": "Public duels of a guild or all, newest first; status=upcoming|live|finished|all = duels with both stakes in escrow (or a free duel accepted), status=open = unexpired open challenges (proposed, no opponent yet) with their pending offer; targeted proposals are never listed"
|
|
3458
3459
|
}
|
|
3459
3460
|
},
|
|
3460
3461
|
"/api/v1/guild/duel/metrics": {
|
|
@@ -5998,6 +5999,56 @@
|
|
|
5998
5999
|
"description": "Register device for push notifications"
|
|
5999
6000
|
}
|
|
6000
6001
|
},
|
|
6002
|
+
"/api/v1/pushnotif/registered": {
|
|
6003
|
+
"get": {
|
|
6004
|
+
"summary": "pushnotif_registered",
|
|
6005
|
+
"operationId": "pushnotif_registered",
|
|
6006
|
+
"responses": {
|
|
6007
|
+
"200": {
|
|
6008
|
+
"description": "A successful response.",
|
|
6009
|
+
"schema": {
|
|
6010
|
+
"$ref": "#/definitions/RespGetPushNotifRegistered"
|
|
6011
|
+
}
|
|
6012
|
+
},
|
|
6013
|
+
"400": {
|
|
6014
|
+
"description": "Bad request",
|
|
6015
|
+
"schema": {
|
|
6016
|
+
"$ref": "#/definitions/ResultCode"
|
|
6017
|
+
}
|
|
6018
|
+
}
|
|
6019
|
+
},
|
|
6020
|
+
"parameters": [
|
|
6021
|
+
{
|
|
6022
|
+
"name": "authorization",
|
|
6023
|
+
"description": " make required after integ is done",
|
|
6024
|
+
"in": "query",
|
|
6025
|
+
"required": false,
|
|
6026
|
+
"type": "string"
|
|
6027
|
+
},
|
|
6028
|
+
{
|
|
6029
|
+
"name": "auth",
|
|
6030
|
+
"description": " made optional to support header auth clients",
|
|
6031
|
+
"in": "query",
|
|
6032
|
+
"required": false,
|
|
6033
|
+
"type": "string"
|
|
6034
|
+
},
|
|
6035
|
+
{
|
|
6036
|
+
"name": "account_index",
|
|
6037
|
+
"in": "query",
|
|
6038
|
+
"required": true,
|
|
6039
|
+
"type": "integer",
|
|
6040
|
+
"format": "int64"
|
|
6041
|
+
}
|
|
6042
|
+
],
|
|
6043
|
+
"tags": [
|
|
6044
|
+
"pushnotif"
|
|
6045
|
+
],
|
|
6046
|
+
"consumes": [
|
|
6047
|
+
"multipart/form-data"
|
|
6048
|
+
],
|
|
6049
|
+
"description": "Check whether the account has an active push notification token"
|
|
6050
|
+
}
|
|
6051
|
+
},
|
|
6001
6052
|
"/api/v1/pushnotif/settings": {
|
|
6002
6053
|
"get": {
|
|
6003
6054
|
"summary": "pushnotif_settings",
|
|
@@ -17294,11 +17345,6 @@
|
|
|
17294
17345
|
"type": "boolean",
|
|
17295
17346
|
"format": "boolean",
|
|
17296
17347
|
"default": "true"
|
|
17297
|
-
},
|
|
17298
|
-
"max_members": {
|
|
17299
|
-
"type": "integer",
|
|
17300
|
-
"format": "int32",
|
|
17301
|
-
"maximum": 500
|
|
17302
17348
|
}
|
|
17303
17349
|
},
|
|
17304
17350
|
"title": "ReqCreateGuild",
|
|
@@ -18613,6 +18659,7 @@
|
|
|
18613
18659
|
"status": {
|
|
18614
18660
|
"type": "string",
|
|
18615
18661
|
"enum": [
|
|
18662
|
+
"open",
|
|
18616
18663
|
"upcoming",
|
|
18617
18664
|
"live",
|
|
18618
18665
|
"finished",
|
|
@@ -19302,6 +19349,23 @@
|
|
|
19302
19349
|
"l1_addresses"
|
|
19303
19350
|
]
|
|
19304
19351
|
},
|
|
19352
|
+
"ReqGetPushNotifRegistered": {
|
|
19353
|
+
"type": "object",
|
|
19354
|
+
"properties": {
|
|
19355
|
+
"auth": {
|
|
19356
|
+
"type": "string",
|
|
19357
|
+
"description": " made optional to support header auth clients"
|
|
19358
|
+
},
|
|
19359
|
+
"account_index": {
|
|
19360
|
+
"type": "integer",
|
|
19361
|
+
"format": "int64"
|
|
19362
|
+
}
|
|
19363
|
+
},
|
|
19364
|
+
"title": "ReqGetPushNotifRegistered",
|
|
19365
|
+
"required": [
|
|
19366
|
+
"account_index"
|
|
19367
|
+
]
|
|
19368
|
+
},
|
|
19305
19369
|
"ReqGetPushNotifSettings": {
|
|
19306
19370
|
"type": "object",
|
|
19307
19371
|
"properties": {
|
|
@@ -19913,7 +19977,8 @@
|
|
|
19913
19977
|
},
|
|
19914
19978
|
"target_guild_id": {
|
|
19915
19979
|
"type": "integer",
|
|
19916
|
-
"format": "int64"
|
|
19980
|
+
"format": "int64",
|
|
19981
|
+
"description": " 0 = open challenge any guild may accept"
|
|
19917
19982
|
},
|
|
19918
19983
|
"metric": {
|
|
19919
19984
|
"type": "string",
|
|
@@ -19952,7 +20017,6 @@
|
|
|
19952
20017
|
"title": "ReqGuildDuelChallenge",
|
|
19953
20018
|
"required": [
|
|
19954
20019
|
"account_index",
|
|
19955
|
-
"target_guild_id",
|
|
19956
20020
|
"metric",
|
|
19957
20021
|
"stake_amount",
|
|
19958
20022
|
"start_time",
|
|
@@ -20709,20 +20773,13 @@
|
|
|
20709
20773
|
"accepts_join_requests": {
|
|
20710
20774
|
"type": "boolean",
|
|
20711
20775
|
"format": "boolean"
|
|
20712
|
-
},
|
|
20713
|
-
"max_members": {
|
|
20714
|
-
"type": "integer",
|
|
20715
|
-
"format": "int32",
|
|
20716
|
-
"maximum": 500,
|
|
20717
|
-
"minimum": 1
|
|
20718
20776
|
}
|
|
20719
20777
|
},
|
|
20720
20778
|
"title": "ReqUpdateGuild",
|
|
20721
20779
|
"required": [
|
|
20722
20780
|
"account_index",
|
|
20723
20781
|
"name",
|
|
20724
|
-
"accepts_join_requests"
|
|
20725
|
-
"max_members"
|
|
20782
|
+
"accepts_join_requests"
|
|
20726
20783
|
]
|
|
20727
20784
|
},
|
|
20728
20785
|
"ReqUpdateGuildRole": {
|
|
@@ -21821,6 +21878,32 @@
|
|
|
21821
21878
|
"profiles"
|
|
21822
21879
|
]
|
|
21823
21880
|
},
|
|
21881
|
+
"RespGetPushNotifRegistered": {
|
|
21882
|
+
"type": "object",
|
|
21883
|
+
"properties": {
|
|
21884
|
+
"code": {
|
|
21885
|
+
"type": "integer",
|
|
21886
|
+
"format": "int32",
|
|
21887
|
+
"example": "200"
|
|
21888
|
+
},
|
|
21889
|
+
"message": {
|
|
21890
|
+
"type": "string"
|
|
21891
|
+
},
|
|
21892
|
+
"registered": {
|
|
21893
|
+
"type": "boolean",
|
|
21894
|
+
"format": "boolean"
|
|
21895
|
+
},
|
|
21896
|
+
"platform": {
|
|
21897
|
+
"type": "string"
|
|
21898
|
+
}
|
|
21899
|
+
},
|
|
21900
|
+
"title": "RespGetPushNotifRegistered",
|
|
21901
|
+
"required": [
|
|
21902
|
+
"code",
|
|
21903
|
+
"registered",
|
|
21904
|
+
"platform"
|
|
21905
|
+
]
|
|
21906
|
+
},
|
|
21824
21907
|
"RespGetPushNotifSettings": {
|
|
21825
21908
|
"type": "object",
|
|
21826
21909
|
"properties": {
|