@globalscoutme/api-client 1.0.14 → 1.0.17
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 +2 -0
- package/dist/index.d.ts +1 -1
- package/dist/sdk.gen.d.ts +46 -45
- package/dist/sdk.gen.js +47 -44
- package/dist/types.gen.d.ts +253 -216
- package/index.ts +177 -172
- package/package.json +1 -1
- package/sdk.gen.ts +315 -302
- package/types.gen.ts +302 -256
package/sdk.gen.ts
CHANGED
|
@@ -7,135 +7,138 @@ import type {
|
|
|
7
7
|
TDataShape,
|
|
8
8
|
} from './client/index.js';
|
|
9
9
|
import type {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
10
|
+
DeleteApiClubsMeByIdData,
|
|
11
|
+
DeleteApiClubsMeByIdErrors,
|
|
12
|
+
DeleteApiClubsMeByIdResponses,
|
|
13
|
+
DeleteApiInvitationsByIdData,
|
|
14
|
+
DeleteApiInvitationsByIdErrors,
|
|
15
|
+
DeleteApiInvitationsByIdResponses,
|
|
16
|
+
DeleteApiPlayersMeData,
|
|
17
|
+
DeleteApiPlayersMeErrors,
|
|
18
|
+
DeleteApiPlayersMeResponses,
|
|
19
|
+
DeleteApiVideosByIdData,
|
|
20
|
+
DeleteApiVideosByIdErrors,
|
|
21
|
+
DeleteApiVideosByIdResponses,
|
|
22
|
+
GetApiAchievementsData,
|
|
23
|
+
GetApiAchievementsMeData,
|
|
24
|
+
GetApiAchievementsMeErrors,
|
|
25
|
+
GetApiAchievementsMeResponses,
|
|
26
|
+
GetApiAchievementsResponses,
|
|
27
|
+
GetApiAuthMeData,
|
|
28
|
+
GetApiAuthMeErrors,
|
|
29
|
+
GetApiAuthMeResponses,
|
|
30
|
+
GetApiBodyMeasurementsMeData,
|
|
31
|
+
GetApiBodyMeasurementsMeErrors,
|
|
32
|
+
GetApiBodyMeasurementsMeResponses,
|
|
33
|
+
GetApiChallengesData,
|
|
34
|
+
GetApiChallengesErrors,
|
|
35
|
+
GetApiChallengesMeData,
|
|
36
|
+
GetApiChallengesMeErrors,
|
|
37
|
+
GetApiChallengesMeResponses,
|
|
38
|
+
GetApiChallengesResponses,
|
|
39
|
+
GetApiClubsMeData,
|
|
40
|
+
GetApiClubsMeErrors,
|
|
41
|
+
GetApiClubsMeResponses,
|
|
42
|
+
GetApiDocumentsMeData,
|
|
43
|
+
GetApiDocumentsMeErrors,
|
|
44
|
+
GetApiDocumentsMeResponses,
|
|
45
|
+
GetApiIndexByTableNameData,
|
|
46
|
+
GetApiIndexByTableNameErrors,
|
|
47
|
+
GetApiIndexByTableNameResponses,
|
|
48
|
+
GetApiIndexCountriesData,
|
|
49
|
+
GetApiIndexCountriesErrors,
|
|
50
|
+
GetApiIndexCountriesResponses,
|
|
51
|
+
GetApiInvitationsData,
|
|
52
|
+
GetApiInvitationsResponses,
|
|
53
|
+
GetApiOffersConversationsByIdMessagesData,
|
|
54
|
+
GetApiOffersConversationsByIdMessagesErrors,
|
|
55
|
+
GetApiOffersConversationsByIdMessagesResponses,
|
|
56
|
+
GetApiOffersConversationsData,
|
|
57
|
+
GetApiOffersConversationsErrors,
|
|
58
|
+
GetApiOffersConversationsResponses,
|
|
59
|
+
GetApiOrganizationsMeData,
|
|
60
|
+
GetApiOrganizationsMeErrors,
|
|
61
|
+
GetApiOrganizationsMeResponses,
|
|
62
|
+
GetApiPlayersByIdData,
|
|
63
|
+
GetApiPlayersByIdErrors,
|
|
64
|
+
GetApiPlayersByIdResponses,
|
|
65
|
+
GetApiPlayersMeDashboardData,
|
|
66
|
+
GetApiPlayersMeDashboardErrors,
|
|
67
|
+
GetApiPlayersMeDashboardResponses,
|
|
68
|
+
GetApiPlayersMeData,
|
|
69
|
+
GetApiPlayersMeErrors,
|
|
70
|
+
GetApiPlayersMeResponses,
|
|
71
|
+
GetApiProfileMeData,
|
|
72
|
+
GetApiProfileMeErrors,
|
|
73
|
+
GetApiProfileMeResponses,
|
|
74
|
+
GetApiTrainingByIdData,
|
|
75
|
+
GetApiTrainingByIdErrors,
|
|
76
|
+
GetApiTrainingByIdResponses,
|
|
77
|
+
GetApiTrainingData,
|
|
78
|
+
GetApiTrainingErrors,
|
|
79
|
+
GetApiTrainingGroupedData,
|
|
80
|
+
GetApiTrainingGroupedErrors,
|
|
81
|
+
GetApiTrainingGroupedResponses,
|
|
82
|
+
GetApiTrainingResponses,
|
|
83
|
+
GetApiVideosByIdPlayUrlData,
|
|
84
|
+
GetApiVideosByIdPlayUrlErrors,
|
|
85
|
+
GetApiVideosByIdPlayUrlResponses,
|
|
86
|
+
GetApiVideosMeData,
|
|
87
|
+
GetApiVideosMeErrors,
|
|
88
|
+
GetApiVideosMeResponses,
|
|
89
|
+
PatchApiClubsMeByIdData,
|
|
90
|
+
PatchApiClubsMeByIdErrors,
|
|
91
|
+
PatchApiClubsMeByIdResponses,
|
|
92
|
+
PatchApiOffersConversationsByIdReadData,
|
|
93
|
+
PatchApiOffersConversationsByIdReadErrors,
|
|
94
|
+
PatchApiOffersConversationsByIdReadResponses,
|
|
95
|
+
PatchApiPlayersMeData,
|
|
96
|
+
PatchApiPlayersMeErrors,
|
|
97
|
+
PatchApiPlayersMeResponses,
|
|
98
|
+
PostApiBodyMeasurementsData,
|
|
99
|
+
PostApiBodyMeasurementsErrors,
|
|
100
|
+
PostApiBodyMeasurementsResponses,
|
|
101
|
+
PostApiClubsMeData,
|
|
102
|
+
PostApiClubsMeErrors,
|
|
103
|
+
PostApiClubsMeResponses,
|
|
104
|
+
PostApiDocumentsData,
|
|
105
|
+
PostApiDocumentsErrors,
|
|
106
|
+
PostApiDocumentsResponses,
|
|
107
|
+
PostApiInvitationsAcceptData,
|
|
108
|
+
PostApiInvitationsAcceptResponses,
|
|
109
|
+
PostApiInvitationsByIdResendData,
|
|
110
|
+
PostApiInvitationsByIdResendErrors,
|
|
111
|
+
PostApiInvitationsByIdResendResponses,
|
|
112
|
+
PostApiInvitationsData,
|
|
113
|
+
PostApiInvitationsErrors,
|
|
114
|
+
PostApiInvitationsResponses,
|
|
115
|
+
PostApiOffersConversationsByIdMessagesData,
|
|
116
|
+
PostApiOffersConversationsByIdMessagesErrors,
|
|
117
|
+
PostApiOffersConversationsByIdMessagesResponses,
|
|
118
|
+
PostApiOffersConversationsData,
|
|
119
|
+
PostApiOffersConversationsErrors,
|
|
120
|
+
PostApiOffersConversationsResponses,
|
|
121
|
+
PostApiOrganizationsRegisterClubData,
|
|
122
|
+
PostApiOrganizationsRegisterClubErrors,
|
|
123
|
+
PostApiOrganizationsRegisterClubResponses,
|
|
124
|
+
PostApiPlayersMeHeartbeatData,
|
|
125
|
+
PostApiPlayersMeHeartbeatErrors,
|
|
126
|
+
PostApiPlayersMeHeartbeatResponses,
|
|
127
|
+
PostApiPlayersSearchData,
|
|
128
|
+
PostApiPlayersSearchErrors,
|
|
129
|
+
PostApiPlayersSearchResponses,
|
|
130
|
+
PostApiStorageUploadUrlData,
|
|
131
|
+
PostApiStorageUploadUrlErrors,
|
|
132
|
+
PostApiStorageUploadUrlResponses,
|
|
133
|
+
PostApiVideosData,
|
|
134
|
+
PostApiVideosErrors,
|
|
135
|
+
PostApiVideosResponses,
|
|
136
|
+
PutApiOrganizationsMeData,
|
|
137
|
+
PutApiOrganizationsMeErrors,
|
|
138
|
+
PutApiOrganizationsMeResponses,
|
|
139
|
+
PutApiProfileMeData,
|
|
140
|
+
PutApiProfileMeErrors,
|
|
141
|
+
PutApiProfileMeResponses,
|
|
139
142
|
} from './types.gen.js';
|
|
140
143
|
|
|
141
144
|
export type Options<
|
|
@@ -185,46 +188,46 @@ class HeyApiRegistry<T> {
|
|
|
185
188
|
|
|
186
189
|
export class Auth extends HeyApiClient {
|
|
187
190
|
public getAuthMe<ThrowOnError extends boolean = false>(
|
|
188
|
-
options?: Options<
|
|
191
|
+
options?: Options<GetApiAuthMeData, ThrowOnError>,
|
|
189
192
|
) {
|
|
190
193
|
return (options?.client ?? this.client).get<
|
|
191
|
-
|
|
192
|
-
|
|
194
|
+
GetApiAuthMeResponses,
|
|
195
|
+
GetApiAuthMeErrors,
|
|
193
196
|
ThrowOnError
|
|
194
|
-
>({ url: '/auth/me', ...options });
|
|
197
|
+
>({ url: '/api/auth/me', ...options });
|
|
195
198
|
}
|
|
196
199
|
}
|
|
197
200
|
|
|
198
201
|
export class Players extends HeyApiClient {
|
|
199
202
|
public deleteMe<ThrowOnError extends boolean = false>(
|
|
200
|
-
options?: Options<
|
|
203
|
+
options?: Options<DeleteApiPlayersMeData, ThrowOnError>,
|
|
201
204
|
) {
|
|
202
205
|
return (options?.client ?? this.client).delete<
|
|
203
|
-
|
|
204
|
-
|
|
206
|
+
DeleteApiPlayersMeResponses,
|
|
207
|
+
DeleteApiPlayersMeErrors,
|
|
205
208
|
ThrowOnError
|
|
206
|
-
>({ url: '/players/me', ...options });
|
|
209
|
+
>({ url: '/api/players/me', ...options });
|
|
207
210
|
}
|
|
208
211
|
|
|
209
212
|
public getMe<ThrowOnError extends boolean = false>(
|
|
210
|
-
options?: Options<
|
|
213
|
+
options?: Options<GetApiPlayersMeData, ThrowOnError>,
|
|
211
214
|
) {
|
|
212
215
|
return (options?.client ?? this.client).get<
|
|
213
|
-
|
|
214
|
-
|
|
216
|
+
GetApiPlayersMeResponses,
|
|
217
|
+
GetApiPlayersMeErrors,
|
|
215
218
|
ThrowOnError
|
|
216
|
-
>({ url: '/players/me', ...options });
|
|
219
|
+
>({ url: '/api/players/me', ...options });
|
|
217
220
|
}
|
|
218
221
|
|
|
219
222
|
public patchMe<ThrowOnError extends boolean = false>(
|
|
220
|
-
options: Options<
|
|
223
|
+
options: Options<PatchApiPlayersMeData, ThrowOnError>,
|
|
221
224
|
) {
|
|
222
225
|
return (options.client ?? this.client).patch<
|
|
223
|
-
|
|
224
|
-
|
|
226
|
+
PatchApiPlayersMeResponses,
|
|
227
|
+
PatchApiPlayersMeErrors,
|
|
225
228
|
ThrowOnError
|
|
226
229
|
>({
|
|
227
|
-
url: '/players/me',
|
|
230
|
+
url: '/api/players/me',
|
|
228
231
|
...options,
|
|
229
232
|
headers: {
|
|
230
233
|
'Content-Type': 'application/json',
|
|
@@ -234,27 +237,27 @@ export class Players extends HeyApiClient {
|
|
|
234
237
|
}
|
|
235
238
|
|
|
236
239
|
public getMyDashboard<ThrowOnError extends boolean = false>(
|
|
237
|
-
options?: Options<
|
|
240
|
+
options?: Options<GetApiPlayersMeDashboardData, ThrowOnError>,
|
|
238
241
|
) {
|
|
239
242
|
return (options?.client ?? this.client).get<
|
|
240
|
-
|
|
241
|
-
|
|
243
|
+
GetApiPlayersMeDashboardResponses,
|
|
244
|
+
GetApiPlayersMeDashboardErrors,
|
|
242
245
|
ThrowOnError
|
|
243
|
-
>({ url: '/players/me/dashboard', ...options });
|
|
246
|
+
>({ url: '/api/players/me/dashboard', ...options });
|
|
244
247
|
}
|
|
245
248
|
|
|
246
249
|
/**
|
|
247
250
|
* Ping presence; records login day and updates user timezone
|
|
248
251
|
*/
|
|
249
252
|
public heartbeat<ThrowOnError extends boolean = false>(
|
|
250
|
-
options: Options<
|
|
253
|
+
options: Options<PostApiPlayersMeHeartbeatData, ThrowOnError>,
|
|
251
254
|
) {
|
|
252
255
|
return (options.client ?? this.client).post<
|
|
253
|
-
|
|
254
|
-
|
|
256
|
+
PostApiPlayersMeHeartbeatResponses,
|
|
257
|
+
PostApiPlayersMeHeartbeatErrors,
|
|
255
258
|
ThrowOnError
|
|
256
259
|
>({
|
|
257
|
-
url: '/players/me/heartbeat',
|
|
260
|
+
url: '/api/players/me/heartbeat',
|
|
258
261
|
...options,
|
|
259
262
|
headers: {
|
|
260
263
|
'Content-Type': 'application/json',
|
|
@@ -264,14 +267,14 @@ export class Players extends HeyApiClient {
|
|
|
264
267
|
}
|
|
265
268
|
|
|
266
269
|
public searchPlayers<ThrowOnError extends boolean = false>(
|
|
267
|
-
options: Options<
|
|
270
|
+
options: Options<PostApiPlayersSearchData, ThrowOnError>,
|
|
268
271
|
) {
|
|
269
272
|
return (options.client ?? this.client).post<
|
|
270
|
-
|
|
271
|
-
|
|
273
|
+
PostApiPlayersSearchResponses,
|
|
274
|
+
PostApiPlayersSearchErrors,
|
|
272
275
|
ThrowOnError
|
|
273
276
|
>({
|
|
274
|
-
url: '/players/search',
|
|
277
|
+
url: '/api/players/search',
|
|
275
278
|
...options,
|
|
276
279
|
headers: {
|
|
277
280
|
'Content-Type': 'application/json',
|
|
@@ -281,36 +284,36 @@ export class Players extends HeyApiClient {
|
|
|
281
284
|
}
|
|
282
285
|
|
|
283
286
|
public getPlayerById<ThrowOnError extends boolean = false>(
|
|
284
|
-
options: Options<
|
|
287
|
+
options: Options<GetApiPlayersByIdData, ThrowOnError>,
|
|
285
288
|
) {
|
|
286
289
|
return (options.client ?? this.client).get<
|
|
287
|
-
|
|
288
|
-
|
|
290
|
+
GetApiPlayersByIdResponses,
|
|
291
|
+
GetApiPlayersByIdErrors,
|
|
289
292
|
ThrowOnError
|
|
290
|
-
>({ url: '/players/{id}', ...options });
|
|
293
|
+
>({ url: '/api/players/{id}', ...options });
|
|
291
294
|
}
|
|
292
295
|
}
|
|
293
296
|
|
|
294
297
|
export class Profile extends HeyApiClient {
|
|
295
298
|
public getProfileMe<ThrowOnError extends boolean = false>(
|
|
296
|
-
options?: Options<
|
|
299
|
+
options?: Options<GetApiProfileMeData, ThrowOnError>,
|
|
297
300
|
) {
|
|
298
301
|
return (options?.client ?? this.client).get<
|
|
299
|
-
|
|
300
|
-
|
|
302
|
+
GetApiProfileMeResponses,
|
|
303
|
+
GetApiProfileMeErrors,
|
|
301
304
|
ThrowOnError
|
|
302
|
-
>({ url: '/profile/me', ...options });
|
|
305
|
+
>({ url: '/api/profile/me', ...options });
|
|
303
306
|
}
|
|
304
307
|
|
|
305
308
|
public updateProfileMe<ThrowOnError extends boolean = false>(
|
|
306
|
-
options: Options<
|
|
309
|
+
options: Options<PutApiProfileMeData, ThrowOnError>,
|
|
307
310
|
) {
|
|
308
311
|
return (options.client ?? this.client).put<
|
|
309
|
-
|
|
310
|
-
|
|
312
|
+
PutApiProfileMeResponses,
|
|
313
|
+
PutApiProfileMeErrors,
|
|
311
314
|
ThrowOnError
|
|
312
315
|
>({
|
|
313
|
-
url: '/profile/me',
|
|
316
|
+
url: '/api/profile/me',
|
|
314
317
|
...options,
|
|
315
318
|
headers: {
|
|
316
319
|
'Content-Type': 'application/json',
|
|
@@ -322,46 +325,46 @@ export class Profile extends HeyApiClient {
|
|
|
322
325
|
|
|
323
326
|
export class Achievements extends HeyApiClient {
|
|
324
327
|
public getAchievementsCatalog<ThrowOnError extends boolean = false>(
|
|
325
|
-
options?: Options<
|
|
328
|
+
options?: Options<GetApiAchievementsData, ThrowOnError>,
|
|
326
329
|
) {
|
|
327
330
|
return (options?.client ?? this.client).get<
|
|
328
|
-
|
|
331
|
+
GetApiAchievementsResponses,
|
|
329
332
|
unknown,
|
|
330
333
|
ThrowOnError
|
|
331
|
-
>({ url: '/achievements', ...options });
|
|
334
|
+
>({ url: '/api/achievements', ...options });
|
|
332
335
|
}
|
|
333
336
|
|
|
334
337
|
public getMyAchievements<ThrowOnError extends boolean = false>(
|
|
335
|
-
options?: Options<
|
|
338
|
+
options?: Options<GetApiAchievementsMeData, ThrowOnError>,
|
|
336
339
|
) {
|
|
337
340
|
return (options?.client ?? this.client).get<
|
|
338
|
-
|
|
339
|
-
|
|
341
|
+
GetApiAchievementsMeResponses,
|
|
342
|
+
GetApiAchievementsMeErrors,
|
|
340
343
|
ThrowOnError
|
|
341
|
-
>({ url: '/achievements/me', ...options });
|
|
344
|
+
>({ url: '/api/achievements/me', ...options });
|
|
342
345
|
}
|
|
343
346
|
}
|
|
344
347
|
|
|
345
348
|
export class Body extends HeyApiClient {
|
|
346
349
|
public getMyMeasurements<ThrowOnError extends boolean = false>(
|
|
347
|
-
options?: Options<
|
|
350
|
+
options?: Options<GetApiBodyMeasurementsMeData, ThrowOnError>,
|
|
348
351
|
) {
|
|
349
352
|
return (options?.client ?? this.client).get<
|
|
350
|
-
|
|
351
|
-
|
|
353
|
+
GetApiBodyMeasurementsMeResponses,
|
|
354
|
+
GetApiBodyMeasurementsMeErrors,
|
|
352
355
|
ThrowOnError
|
|
353
|
-
>({ url: '/body/measurements/me', ...options });
|
|
356
|
+
>({ url: '/api/body/measurements/me', ...options });
|
|
354
357
|
}
|
|
355
358
|
|
|
356
359
|
public createMeasurement<ThrowOnError extends boolean = false>(
|
|
357
|
-
options: Options<
|
|
360
|
+
options: Options<PostApiBodyMeasurementsData, ThrowOnError>,
|
|
358
361
|
) {
|
|
359
362
|
return (options.client ?? this.client).post<
|
|
360
|
-
|
|
361
|
-
|
|
363
|
+
PostApiBodyMeasurementsResponses,
|
|
364
|
+
PostApiBodyMeasurementsErrors,
|
|
362
365
|
ThrowOnError
|
|
363
366
|
>({
|
|
364
|
-
url: '/body/measurements',
|
|
367
|
+
url: '/api/body/measurements',
|
|
365
368
|
...options,
|
|
366
369
|
headers: {
|
|
367
370
|
'Content-Type': 'application/json',
|
|
@@ -376,49 +379,49 @@ export class Challenges extends HeyApiClient {
|
|
|
376
379
|
* List all active challenges
|
|
377
380
|
*/
|
|
378
381
|
public getChallengesCatalog<ThrowOnError extends boolean = false>(
|
|
379
|
-
options?: Options<
|
|
382
|
+
options?: Options<GetApiChallengesData, ThrowOnError>,
|
|
380
383
|
) {
|
|
381
384
|
return (options?.client ?? this.client).get<
|
|
382
|
-
|
|
383
|
-
|
|
385
|
+
GetApiChallengesResponses,
|
|
386
|
+
GetApiChallengesErrors,
|
|
384
387
|
ThrowOnError
|
|
385
|
-
>({ url: '/challenges', ...options });
|
|
388
|
+
>({ url: '/api/challenges', ...options });
|
|
386
389
|
}
|
|
387
390
|
|
|
388
391
|
/**
|
|
389
392
|
* Get the current user's active + recently-expired challenges
|
|
390
393
|
*/
|
|
391
394
|
public getMyChallenges<ThrowOnError extends boolean = false>(
|
|
392
|
-
options?: Options<
|
|
395
|
+
options?: Options<GetApiChallengesMeData, ThrowOnError>,
|
|
393
396
|
) {
|
|
394
397
|
return (options?.client ?? this.client).get<
|
|
395
|
-
|
|
396
|
-
|
|
398
|
+
GetApiChallengesMeResponses,
|
|
399
|
+
GetApiChallengesMeErrors,
|
|
397
400
|
ThrowOnError
|
|
398
|
-
>({ url: '/challenges/me', ...options });
|
|
401
|
+
>({ url: '/api/challenges/me', ...options });
|
|
399
402
|
}
|
|
400
403
|
}
|
|
401
404
|
|
|
402
405
|
export class Clubs extends HeyApiClient {
|
|
403
406
|
public getMyClubs<ThrowOnError extends boolean = false>(
|
|
404
|
-
options?: Options<
|
|
407
|
+
options?: Options<GetApiClubsMeData, ThrowOnError>,
|
|
405
408
|
) {
|
|
406
409
|
return (options?.client ?? this.client).get<
|
|
407
|
-
|
|
408
|
-
|
|
410
|
+
GetApiClubsMeResponses,
|
|
411
|
+
GetApiClubsMeErrors,
|
|
409
412
|
ThrowOnError
|
|
410
|
-
>({ url: '/clubs/me', ...options });
|
|
413
|
+
>({ url: '/api/clubs/me', ...options });
|
|
411
414
|
}
|
|
412
415
|
|
|
413
416
|
public createMyClub<ThrowOnError extends boolean = false>(
|
|
414
|
-
options: Options<
|
|
417
|
+
options: Options<PostApiClubsMeData, ThrowOnError>,
|
|
415
418
|
) {
|
|
416
419
|
return (options.client ?? this.client).post<
|
|
417
|
-
|
|
418
|
-
|
|
420
|
+
PostApiClubsMeResponses,
|
|
421
|
+
PostApiClubsMeErrors,
|
|
419
422
|
ThrowOnError
|
|
420
423
|
>({
|
|
421
|
-
url: '/clubs/me',
|
|
424
|
+
url: '/api/clubs/me',
|
|
422
425
|
...options,
|
|
423
426
|
headers: {
|
|
424
427
|
'Content-Type': 'application/json',
|
|
@@ -428,24 +431,24 @@ export class Clubs extends HeyApiClient {
|
|
|
428
431
|
}
|
|
429
432
|
|
|
430
433
|
public deleteMyClub<ThrowOnError extends boolean = false>(
|
|
431
|
-
options: Options<
|
|
434
|
+
options: Options<DeleteApiClubsMeByIdData, ThrowOnError>,
|
|
432
435
|
) {
|
|
433
436
|
return (options.client ?? this.client).delete<
|
|
434
|
-
|
|
435
|
-
|
|
437
|
+
DeleteApiClubsMeByIdResponses,
|
|
438
|
+
DeleteApiClubsMeByIdErrors,
|
|
436
439
|
ThrowOnError
|
|
437
|
-
>({ url: '/clubs/me/{id}', ...options });
|
|
440
|
+
>({ url: '/api/clubs/me/{id}', ...options });
|
|
438
441
|
}
|
|
439
442
|
|
|
440
443
|
public updateMyClub<ThrowOnError extends boolean = false>(
|
|
441
|
-
options: Options<
|
|
444
|
+
options: Options<PatchApiClubsMeByIdData, ThrowOnError>,
|
|
442
445
|
) {
|
|
443
446
|
return (options.client ?? this.client).patch<
|
|
444
|
-
|
|
445
|
-
|
|
447
|
+
PatchApiClubsMeByIdResponses,
|
|
448
|
+
PatchApiClubsMeByIdErrors,
|
|
446
449
|
ThrowOnError
|
|
447
450
|
>({
|
|
448
|
-
url: '/clubs/me/{id}',
|
|
451
|
+
url: '/api/clubs/me/{id}',
|
|
449
452
|
...options,
|
|
450
453
|
headers: {
|
|
451
454
|
'Content-Type': 'application/json',
|
|
@@ -457,24 +460,24 @@ export class Clubs extends HeyApiClient {
|
|
|
457
460
|
|
|
458
461
|
export class Documents extends HeyApiClient {
|
|
459
462
|
public getMyDocuments<ThrowOnError extends boolean = false>(
|
|
460
|
-
options?: Options<
|
|
463
|
+
options?: Options<GetApiDocumentsMeData, ThrowOnError>,
|
|
461
464
|
) {
|
|
462
465
|
return (options?.client ?? this.client).get<
|
|
463
|
-
|
|
464
|
-
|
|
466
|
+
GetApiDocumentsMeResponses,
|
|
467
|
+
GetApiDocumentsMeErrors,
|
|
465
468
|
ThrowOnError
|
|
466
|
-
>({ url: '/documents/me', ...options });
|
|
469
|
+
>({ url: '/api/documents/me', ...options });
|
|
467
470
|
}
|
|
468
471
|
|
|
469
472
|
public createDocument<ThrowOnError extends boolean = false>(
|
|
470
|
-
options: Options<
|
|
473
|
+
options: Options<PostApiDocumentsData, ThrowOnError>,
|
|
471
474
|
) {
|
|
472
475
|
return (options.client ?? this.client).post<
|
|
473
|
-
|
|
474
|
-
|
|
476
|
+
PostApiDocumentsResponses,
|
|
477
|
+
PostApiDocumentsErrors,
|
|
475
478
|
ThrowOnError
|
|
476
479
|
>({
|
|
477
|
-
url: '/documents',
|
|
480
|
+
url: '/api/documents',
|
|
478
481
|
...options,
|
|
479
482
|
headers: {
|
|
480
483
|
'Content-Type': 'application/json',
|
|
@@ -485,37 +488,47 @@ export class Documents extends HeyApiClient {
|
|
|
485
488
|
}
|
|
486
489
|
|
|
487
490
|
export class Index extends HeyApiClient {
|
|
491
|
+
public getCountries<ThrowOnError extends boolean = false>(
|
|
492
|
+
options?: Options<GetApiIndexCountriesData, ThrowOnError>,
|
|
493
|
+
) {
|
|
494
|
+
return (options?.client ?? this.client).get<
|
|
495
|
+
GetApiIndexCountriesResponses,
|
|
496
|
+
GetApiIndexCountriesErrors,
|
|
497
|
+
ThrowOnError
|
|
498
|
+
>({ url: '/api/index/countries', ...options });
|
|
499
|
+
}
|
|
500
|
+
|
|
488
501
|
public getIndexItems<ThrowOnError extends boolean = false>(
|
|
489
|
-
options: Options<
|
|
502
|
+
options: Options<GetApiIndexByTableNameData, ThrowOnError>,
|
|
490
503
|
) {
|
|
491
504
|
return (options.client ?? this.client).get<
|
|
492
|
-
|
|
493
|
-
|
|
505
|
+
GetApiIndexByTableNameResponses,
|
|
506
|
+
GetApiIndexByTableNameErrors,
|
|
494
507
|
ThrowOnError
|
|
495
|
-
>({ url: '/index/{tableName}', ...options });
|
|
508
|
+
>({ url: '/api/index/{tableName}', ...options });
|
|
496
509
|
}
|
|
497
510
|
}
|
|
498
511
|
|
|
499
512
|
export class Offers extends HeyApiClient {
|
|
500
513
|
public listConversations<ThrowOnError extends boolean = false>(
|
|
501
|
-
options?: Options<
|
|
514
|
+
options?: Options<GetApiOffersConversationsData, ThrowOnError>,
|
|
502
515
|
) {
|
|
503
516
|
return (options?.client ?? this.client).get<
|
|
504
|
-
|
|
505
|
-
|
|
517
|
+
GetApiOffersConversationsResponses,
|
|
518
|
+
GetApiOffersConversationsErrors,
|
|
506
519
|
ThrowOnError
|
|
507
|
-
>({ url: '/offers/conversations', ...options });
|
|
520
|
+
>({ url: '/api/offers/conversations', ...options });
|
|
508
521
|
}
|
|
509
522
|
|
|
510
523
|
public createConversation<ThrowOnError extends boolean = false>(
|
|
511
|
-
options: Options<
|
|
524
|
+
options: Options<PostApiOffersConversationsData, ThrowOnError>,
|
|
512
525
|
) {
|
|
513
526
|
return (options.client ?? this.client).post<
|
|
514
|
-
|
|
515
|
-
|
|
527
|
+
PostApiOffersConversationsResponses,
|
|
528
|
+
PostApiOffersConversationsErrors,
|
|
516
529
|
ThrowOnError
|
|
517
530
|
>({
|
|
518
|
-
url: '/offers/conversations',
|
|
531
|
+
url: '/api/offers/conversations',
|
|
519
532
|
...options,
|
|
520
533
|
headers: {
|
|
521
534
|
'Content-Type': 'application/json',
|
|
@@ -525,24 +538,24 @@ export class Offers extends HeyApiClient {
|
|
|
525
538
|
}
|
|
526
539
|
|
|
527
540
|
public listMessages<ThrowOnError extends boolean = false>(
|
|
528
|
-
options: Options<
|
|
541
|
+
options: Options<GetApiOffersConversationsByIdMessagesData, ThrowOnError>,
|
|
529
542
|
) {
|
|
530
543
|
return (options.client ?? this.client).get<
|
|
531
|
-
|
|
532
|
-
|
|
544
|
+
GetApiOffersConversationsByIdMessagesResponses,
|
|
545
|
+
GetApiOffersConversationsByIdMessagesErrors,
|
|
533
546
|
ThrowOnError
|
|
534
|
-
>({ url: '/offers/conversations/{id}/messages', ...options });
|
|
547
|
+
>({ url: '/api/offers/conversations/{id}/messages', ...options });
|
|
535
548
|
}
|
|
536
549
|
|
|
537
550
|
public sendMessage<ThrowOnError extends boolean = false>(
|
|
538
|
-
options: Options<
|
|
551
|
+
options: Options<PostApiOffersConversationsByIdMessagesData, ThrowOnError>,
|
|
539
552
|
) {
|
|
540
553
|
return (options.client ?? this.client).post<
|
|
541
|
-
|
|
542
|
-
|
|
554
|
+
PostApiOffersConversationsByIdMessagesResponses,
|
|
555
|
+
PostApiOffersConversationsByIdMessagesErrors,
|
|
543
556
|
ThrowOnError
|
|
544
557
|
>({
|
|
545
|
-
url: '/offers/conversations/{id}/messages',
|
|
558
|
+
url: '/api/offers/conversations/{id}/messages',
|
|
546
559
|
...options,
|
|
547
560
|
headers: {
|
|
548
561
|
'Content-Type': 'application/json',
|
|
@@ -552,26 +565,26 @@ export class Offers extends HeyApiClient {
|
|
|
552
565
|
}
|
|
553
566
|
|
|
554
567
|
public markConversationRead<ThrowOnError extends boolean = false>(
|
|
555
|
-
options: Options<
|
|
568
|
+
options: Options<PatchApiOffersConversationsByIdReadData, ThrowOnError>,
|
|
556
569
|
) {
|
|
557
570
|
return (options.client ?? this.client).patch<
|
|
558
|
-
|
|
559
|
-
|
|
571
|
+
PatchApiOffersConversationsByIdReadResponses,
|
|
572
|
+
PatchApiOffersConversationsByIdReadErrors,
|
|
560
573
|
ThrowOnError
|
|
561
|
-
>({ url: '/offers/conversations/{id}/read', ...options });
|
|
574
|
+
>({ url: '/api/offers/conversations/{id}/read', ...options });
|
|
562
575
|
}
|
|
563
576
|
}
|
|
564
577
|
|
|
565
578
|
export class Organizations extends HeyApiClient {
|
|
566
579
|
public registerClub<ThrowOnError extends boolean = false>(
|
|
567
|
-
options: Options<
|
|
580
|
+
options: Options<PostApiOrganizationsRegisterClubData, ThrowOnError>,
|
|
568
581
|
) {
|
|
569
582
|
return (options.client ?? this.client).post<
|
|
570
|
-
|
|
571
|
-
|
|
583
|
+
PostApiOrganizationsRegisterClubResponses,
|
|
584
|
+
PostApiOrganizationsRegisterClubErrors,
|
|
572
585
|
ThrowOnError
|
|
573
586
|
>({
|
|
574
|
-
url: '/organizations/register-club',
|
|
587
|
+
url: '/api/organizations/register-club',
|
|
575
588
|
...options,
|
|
576
589
|
headers: {
|
|
577
590
|
'Content-Type': 'application/json',
|
|
@@ -581,24 +594,24 @@ export class Organizations extends HeyApiClient {
|
|
|
581
594
|
}
|
|
582
595
|
|
|
583
596
|
public getMyOrganization<ThrowOnError extends boolean = false>(
|
|
584
|
-
options?: Options<
|
|
597
|
+
options?: Options<GetApiOrganizationsMeData, ThrowOnError>,
|
|
585
598
|
) {
|
|
586
599
|
return (options?.client ?? this.client).get<
|
|
587
|
-
|
|
588
|
-
|
|
600
|
+
GetApiOrganizationsMeResponses,
|
|
601
|
+
GetApiOrganizationsMeErrors,
|
|
589
602
|
ThrowOnError
|
|
590
|
-
>({ url: '/organizations/me', ...options });
|
|
603
|
+
>({ url: '/api/organizations/me', ...options });
|
|
591
604
|
}
|
|
592
605
|
|
|
593
606
|
public updateMyOrganization<ThrowOnError extends boolean = false>(
|
|
594
|
-
options: Options<
|
|
607
|
+
options: Options<PutApiOrganizationsMeData, ThrowOnError>,
|
|
595
608
|
) {
|
|
596
609
|
return (options.client ?? this.client).put<
|
|
597
|
-
|
|
598
|
-
|
|
610
|
+
PutApiOrganizationsMeResponses,
|
|
611
|
+
PutApiOrganizationsMeErrors,
|
|
599
612
|
ThrowOnError
|
|
600
613
|
>({
|
|
601
|
-
url: '/organizations/me',
|
|
614
|
+
url: '/api/organizations/me',
|
|
602
615
|
...options,
|
|
603
616
|
headers: {
|
|
604
617
|
'Content-Type': 'application/json',
|
|
@@ -610,14 +623,14 @@ export class Organizations extends HeyApiClient {
|
|
|
610
623
|
|
|
611
624
|
export class Storage extends HeyApiClient {
|
|
612
625
|
public createUploadUrl<ThrowOnError extends boolean = false>(
|
|
613
|
-
options: Options<
|
|
626
|
+
options: Options<PostApiStorageUploadUrlData, ThrowOnError>,
|
|
614
627
|
) {
|
|
615
628
|
return (options.client ?? this.client).post<
|
|
616
|
-
|
|
617
|
-
|
|
629
|
+
PostApiStorageUploadUrlResponses,
|
|
630
|
+
PostApiStorageUploadUrlErrors,
|
|
618
631
|
ThrowOnError
|
|
619
632
|
>({
|
|
620
|
-
url: '/storage/upload-url',
|
|
633
|
+
url: '/api/storage/upload-url',
|
|
621
634
|
...options,
|
|
622
635
|
headers: {
|
|
623
636
|
'Content-Type': 'application/json',
|
|
@@ -629,24 +642,24 @@ export class Storage extends HeyApiClient {
|
|
|
629
642
|
|
|
630
643
|
export class Invitations extends HeyApiClient {
|
|
631
644
|
public listInvitations<ThrowOnError extends boolean = false>(
|
|
632
|
-
options?: Options<
|
|
645
|
+
options?: Options<GetApiInvitationsData, ThrowOnError>,
|
|
633
646
|
) {
|
|
634
647
|
return (options?.client ?? this.client).get<
|
|
635
|
-
|
|
648
|
+
GetApiInvitationsResponses,
|
|
636
649
|
unknown,
|
|
637
650
|
ThrowOnError
|
|
638
|
-
>({ url: '/invitations', ...options });
|
|
651
|
+
>({ url: '/api/invitations', ...options });
|
|
639
652
|
}
|
|
640
653
|
|
|
641
654
|
public sendInvitation<ThrowOnError extends boolean = false>(
|
|
642
|
-
options: Options<
|
|
655
|
+
options: Options<PostApiInvitationsData, ThrowOnError>,
|
|
643
656
|
) {
|
|
644
657
|
return (options.client ?? this.client).post<
|
|
645
|
-
|
|
646
|
-
|
|
658
|
+
PostApiInvitationsResponses,
|
|
659
|
+
PostApiInvitationsErrors,
|
|
647
660
|
ThrowOnError
|
|
648
661
|
>({
|
|
649
|
-
url: '/invitations',
|
|
662
|
+
url: '/api/invitations',
|
|
650
663
|
...options,
|
|
651
664
|
headers: {
|
|
652
665
|
'Content-Type': 'application/json',
|
|
@@ -656,36 +669,36 @@ export class Invitations extends HeyApiClient {
|
|
|
656
669
|
}
|
|
657
670
|
|
|
658
671
|
public resendInvitation<ThrowOnError extends boolean = false>(
|
|
659
|
-
options: Options<
|
|
672
|
+
options: Options<PostApiInvitationsByIdResendData, ThrowOnError>,
|
|
660
673
|
) {
|
|
661
674
|
return (options.client ?? this.client).post<
|
|
662
|
-
|
|
663
|
-
|
|
675
|
+
PostApiInvitationsByIdResendResponses,
|
|
676
|
+
PostApiInvitationsByIdResendErrors,
|
|
664
677
|
ThrowOnError
|
|
665
|
-
>({ url: '/invitations/{id}/resend', ...options });
|
|
678
|
+
>({ url: '/api/invitations/{id}/resend', ...options });
|
|
666
679
|
}
|
|
667
680
|
|
|
668
681
|
public deleteInvitation<ThrowOnError extends boolean = false>(
|
|
669
|
-
options: Options<
|
|
682
|
+
options: Options<DeleteApiInvitationsByIdData, ThrowOnError>,
|
|
670
683
|
) {
|
|
671
684
|
return (options.client ?? this.client).delete<
|
|
672
|
-
|
|
673
|
-
|
|
685
|
+
DeleteApiInvitationsByIdResponses,
|
|
686
|
+
DeleteApiInvitationsByIdErrors,
|
|
674
687
|
ThrowOnError
|
|
675
|
-
>({ url: '/invitations/{id}', ...options });
|
|
688
|
+
>({ url: '/api/invitations/{id}', ...options });
|
|
676
689
|
}
|
|
677
690
|
|
|
678
691
|
/**
|
|
679
692
|
* Called by web app after Supabase auth callback to link invitee to their organization
|
|
680
693
|
*/
|
|
681
694
|
public acceptInvitation<ThrowOnError extends boolean = false>(
|
|
682
|
-
options?: Options<
|
|
695
|
+
options?: Options<PostApiInvitationsAcceptData, ThrowOnError>,
|
|
683
696
|
) {
|
|
684
697
|
return (options?.client ?? this.client).post<
|
|
685
|
-
|
|
698
|
+
PostApiInvitationsAcceptResponses,
|
|
686
699
|
unknown,
|
|
687
700
|
ThrowOnError
|
|
688
|
-
>({ url: '/invitations/accept', ...options });
|
|
701
|
+
>({ url: '/api/invitations/accept', ...options });
|
|
689
702
|
}
|
|
690
703
|
}
|
|
691
704
|
|
|
@@ -694,62 +707,62 @@ export class Training extends HeyApiClient {
|
|
|
694
707
|
* Get training content grouped by category, top 3 per category
|
|
695
708
|
*/
|
|
696
709
|
public getTrainingGrouped<ThrowOnError extends boolean = false>(
|
|
697
|
-
options?: Options<
|
|
710
|
+
options?: Options<GetApiTrainingGroupedData, ThrowOnError>,
|
|
698
711
|
) {
|
|
699
712
|
return (options?.client ?? this.client).get<
|
|
700
|
-
|
|
701
|
-
|
|
713
|
+
GetApiTrainingGroupedResponses,
|
|
714
|
+
GetApiTrainingGroupedErrors,
|
|
702
715
|
ThrowOnError
|
|
703
|
-
>({ url: '/training/grouped', ...options });
|
|
716
|
+
>({ url: '/api/training/grouped', ...options });
|
|
704
717
|
}
|
|
705
718
|
|
|
706
719
|
/**
|
|
707
720
|
* List training content, optionally filtered by category
|
|
708
721
|
*/
|
|
709
722
|
public getTrainingList<ThrowOnError extends boolean = false>(
|
|
710
|
-
options?: Options<
|
|
723
|
+
options?: Options<GetApiTrainingData, ThrowOnError>,
|
|
711
724
|
) {
|
|
712
725
|
return (options?.client ?? this.client).get<
|
|
713
|
-
|
|
714
|
-
|
|
726
|
+
GetApiTrainingResponses,
|
|
727
|
+
GetApiTrainingErrors,
|
|
715
728
|
ThrowOnError
|
|
716
|
-
>({ url: '/training', ...options });
|
|
729
|
+
>({ url: '/api/training', ...options });
|
|
717
730
|
}
|
|
718
731
|
|
|
719
732
|
/**
|
|
720
733
|
* Get full detail of a training content item
|
|
721
734
|
*/
|
|
722
735
|
public getTrainingById<ThrowOnError extends boolean = false>(
|
|
723
|
-
options: Options<
|
|
736
|
+
options: Options<GetApiTrainingByIdData, ThrowOnError>,
|
|
724
737
|
) {
|
|
725
738
|
return (options.client ?? this.client).get<
|
|
726
|
-
|
|
727
|
-
|
|
739
|
+
GetApiTrainingByIdResponses,
|
|
740
|
+
GetApiTrainingByIdErrors,
|
|
728
741
|
ThrowOnError
|
|
729
|
-
>({ url: '/training/{id}', ...options });
|
|
742
|
+
>({ url: '/api/training/{id}', ...options });
|
|
730
743
|
}
|
|
731
744
|
}
|
|
732
745
|
|
|
733
746
|
export class Videos extends HeyApiClient {
|
|
734
747
|
public getMyVideos<ThrowOnError extends boolean = false>(
|
|
735
|
-
options: Options<
|
|
748
|
+
options: Options<GetApiVideosMeData, ThrowOnError>,
|
|
736
749
|
) {
|
|
737
750
|
return (options.client ?? this.client).get<
|
|
738
|
-
|
|
739
|
-
|
|
751
|
+
GetApiVideosMeResponses,
|
|
752
|
+
GetApiVideosMeErrors,
|
|
740
753
|
ThrowOnError
|
|
741
|
-
>({ url: '/videos/me', ...options });
|
|
754
|
+
>({ url: '/api/videos/me', ...options });
|
|
742
755
|
}
|
|
743
756
|
|
|
744
757
|
public createVideo<ThrowOnError extends boolean = false>(
|
|
745
|
-
options: Options<
|
|
758
|
+
options: Options<PostApiVideosData, ThrowOnError>,
|
|
746
759
|
) {
|
|
747
760
|
return (options.client ?? this.client).post<
|
|
748
|
-
|
|
749
|
-
|
|
761
|
+
PostApiVideosResponses,
|
|
762
|
+
PostApiVideosErrors,
|
|
750
763
|
ThrowOnError
|
|
751
764
|
>({
|
|
752
|
-
url: '/videos',
|
|
765
|
+
url: '/api/videos',
|
|
753
766
|
...options,
|
|
754
767
|
headers: {
|
|
755
768
|
'Content-Type': 'application/json',
|
|
@@ -759,23 +772,23 @@ export class Videos extends HeyApiClient {
|
|
|
759
772
|
}
|
|
760
773
|
|
|
761
774
|
public getVideoPlayUrl<ThrowOnError extends boolean = false>(
|
|
762
|
-
options: Options<
|
|
775
|
+
options: Options<GetApiVideosByIdPlayUrlData, ThrowOnError>,
|
|
763
776
|
) {
|
|
764
777
|
return (options.client ?? this.client).get<
|
|
765
|
-
|
|
766
|
-
|
|
778
|
+
GetApiVideosByIdPlayUrlResponses,
|
|
779
|
+
GetApiVideosByIdPlayUrlErrors,
|
|
767
780
|
ThrowOnError
|
|
768
|
-
>({ url: '/videos/{id}/play-url', ...options });
|
|
781
|
+
>({ url: '/api/videos/{id}/play-url', ...options });
|
|
769
782
|
}
|
|
770
783
|
|
|
771
784
|
public deleteVideo<ThrowOnError extends boolean = false>(
|
|
772
|
-
options: Options<
|
|
785
|
+
options: Options<DeleteApiVideosByIdData, ThrowOnError>,
|
|
773
786
|
) {
|
|
774
787
|
return (options.client ?? this.client).delete<
|
|
775
|
-
|
|
776
|
-
|
|
788
|
+
DeleteApiVideosByIdResponses,
|
|
789
|
+
DeleteApiVideosByIdErrors,
|
|
777
790
|
ThrowOnError
|
|
778
|
-
>({ url: '/videos/{id}', ...options });
|
|
791
|
+
>({ url: '/api/videos/{id}', ...options });
|
|
779
792
|
}
|
|
780
793
|
}
|
|
781
794
|
|