@drxsuperapp/sdk 1.1.503 → 1.1.505

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.
@@ -19,6 +19,7 @@ import type {
19
19
  ApiBindDiscordGet200Response,
20
20
  ApiBindDiscordPreconnectGet200Response,
21
21
  ApiBindStatusGet200Response,
22
+ ApiYoutubeUnpinGet200Response,
22
23
  } from '../models/index';
23
24
  import {
24
25
  ApiBindCreateJwtGet200ResponseFromJSON,
@@ -29,6 +30,8 @@ import {
29
30
  ApiBindDiscordPreconnectGet200ResponseToJSON,
30
31
  ApiBindStatusGet200ResponseFromJSON,
31
32
  ApiBindStatusGet200ResponseToJSON,
33
+ ApiYoutubeUnpinGet200ResponseFromJSON,
34
+ ApiYoutubeUnpinGet200ResponseToJSON,
32
35
  } from '../models/index';
33
36
 
34
37
  export interface ApiBindDiscordGetRequest {
@@ -47,6 +50,10 @@ export interface ApiBindTelegramPreconnectGetRequest {
47
50
  state: string;
48
51
  }
49
52
 
53
+ export interface ApiBindUnbindPlatformGetRequest {
54
+ platform: ApiBindUnbindPlatformGetPlatformEnum;
55
+ }
56
+
50
57
  export interface ApiBindXGetRequest {
51
58
  clientId: string;
52
59
  redirectUri: string;
@@ -357,6 +364,53 @@ export class SocialBindApi extends runtime.BaseAPI {
357
364
  return await response.value();
358
365
  }
359
366
 
367
+ /**
368
+ * Unbind Bound Account
369
+ * Unbind
370
+ */
371
+ async apiBindUnbindPlatformGetRaw(requestParameters: ApiBindUnbindPlatformGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiYoutubeUnpinGet200Response>> {
372
+ if (requestParameters['platform'] == null) {
373
+ throw new runtime.RequiredError(
374
+ 'platform',
375
+ 'Required parameter "platform" was null or undefined when calling apiBindUnbindPlatformGet().'
376
+ );
377
+ }
378
+
379
+ const queryParameters: any = {};
380
+
381
+ const headerParameters: runtime.HTTPHeaders = {};
382
+
383
+ if (this.configuration && this.configuration.apiKey) {
384
+ headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
385
+ }
386
+
387
+ if (this.configuration && this.configuration.accessToken) {
388
+ const token = this.configuration.accessToken;
389
+ const tokenString = await token("BearerAuth", []);
390
+
391
+ if (tokenString) {
392
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
393
+ }
394
+ }
395
+ const response = await this.request({
396
+ path: `/api/bind/unbind/{platform}`.replace(`{${"platform"}}`, encodeURIComponent(String(requestParameters['platform']))),
397
+ method: 'GET',
398
+ headers: headerParameters,
399
+ query: queryParameters,
400
+ }, initOverrides);
401
+
402
+ return new runtime.JSONApiResponse(response, (jsonValue) => ApiYoutubeUnpinGet200ResponseFromJSON(jsonValue));
403
+ }
404
+
405
+ /**
406
+ * Unbind Bound Account
407
+ * Unbind
408
+ */
409
+ async apiBindUnbindPlatformGet(requestParameters: ApiBindUnbindPlatformGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiYoutubeUnpinGet200Response> {
410
+ const response = await this.apiBindUnbindPlatformGetRaw(requestParameters, initOverrides);
411
+ return await response.value();
412
+ }
413
+
360
414
  /**
361
415
  * A link where x will callbacks to after finishes authorizing
362
416
  * X Connect
@@ -473,3 +527,14 @@ export class SocialBindApi extends runtime.BaseAPI {
473
527
  }
474
528
 
475
529
  }
530
+
531
+ /**
532
+ * @export
533
+ */
534
+ export const ApiBindUnbindPlatformGetPlatformEnum = {
535
+ Discord: 'DISCORD',
536
+ Telegram: 'TELEGRAM',
537
+ Instagram: 'INSTAGRAM',
538
+ X: 'X'
539
+ } as const;
540
+ export type ApiBindUnbindPlatformGetPlatformEnum = typeof ApiBindUnbindPlatformGetPlatformEnum[keyof typeof ApiBindUnbindPlatformGetPlatformEnum];
package/deploy.log CHANGED
@@ -837,6 +837,7 @@
837
837
  [main] WARN o.o.codegen.utils.ExamplesUtils - No application/json content media type found in response. Response examples can currently only be generated for application/json media type.
838
838
  [main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/bind/telegram/{jwt}. Renamed to auto-generated operationId: apiBindTelegramJwtGet
839
839
  [main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/bind/status. Renamed to auto-generated operationId: apiBindStatusGet
840
+ [main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/bind/unbind/{platform}. Renamed to auto-generated operationId: apiBindUnbindPlatformGet
840
841
  [main] INFO o.o.codegen.utils.URLPathUtils - 'host' (OAS 2.0) or 'servers' (OAS 3.0) not defined in the spec. Default to [http://localhost] for server URL [http://localhost/]
841
842
  [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./apis/AppConfigurationApi.ts
842
843
  [main] INFO o.o.codegen.utils.URLPathUtils - 'host' (OAS 2.0) or 'servers' (OAS 3.0) not defined in the spec. Default to [http://localhost] for server URL [http://localhost/]
@@ -905,21 +906,20 @@
905
906
  # https://opencollective.com/openapi_generator/donate #
906
907
  ################################################################################
907
908
  ✅ SDK generated
908
- On branch master
909
- Your branch is up to date with 'origin/master'.
910
-
911
- nothing to commit, working tree clean
912
- Everything up-to-date
909
+ [master d18d9a1] VPS: Generated API SDK
910
+ 1 file changed, 65 insertions(+)
911
+ To https://gitlab.com/drx-super/drx-sdk.git
912
+ d49d03f..d18d9a1 master -> master
913
913
  ✅ Changes committed and pushed
914
- v1.1.503
914
+ v1.1.505
915
915
  To https://gitlab.com/drx-super/drx-sdk.git
916
- ca3d15f..aa8b5b0 master -> master
916
+ d18d9a1..b60d5f9 master -> master
917
917
  ✅ Version bumped
918
918
 
919
- > @drxsuperapp/sdk@1.1.503 prepublishOnly
919
+ > @drxsuperapp/sdk@1.1.505 prepublishOnly
920
920
  > npm run build
921
921
 
922
922
 
923
- > @drxsuperapp/sdk@1.1.503 build
923
+ > @drxsuperapp/sdk@1.1.505 build
924
924
  > tsc
925
925
 
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { ApiBindCreateJwtGet200Response, ApiBindDiscordGet200Response, ApiBindDiscordPreconnectGet200Response, ApiBindStatusGet200Response } from '../models/index';
13
+ import type { ApiBindCreateJwtGet200Response, ApiBindDiscordGet200Response, ApiBindDiscordPreconnectGet200Response, ApiBindStatusGet200Response, ApiYoutubeUnpinGet200Response } from '../models/index';
14
14
  export interface ApiBindDiscordGetRequest {
15
15
  clientId: string;
16
16
  redirectUri: string;
@@ -24,6 +24,9 @@ export interface ApiBindTelegramJwtGetRequest {
24
24
  export interface ApiBindTelegramPreconnectGetRequest {
25
25
  state: string;
26
26
  }
27
+ export interface ApiBindUnbindPlatformGetRequest {
28
+ platform: ApiBindUnbindPlatformGetPlatformEnum;
29
+ }
27
30
  export interface ApiBindXGetRequest {
28
31
  clientId: string;
29
32
  redirectUri: string;
@@ -95,6 +98,16 @@ export declare class SocialBindApi extends runtime.BaseAPI {
95
98
  * Telegram Preconnect
96
99
  */
97
100
  apiBindTelegramPreconnectGet(requestParameters: ApiBindTelegramPreconnectGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>;
101
+ /**
102
+ * Unbind Bound Account
103
+ * Unbind
104
+ */
105
+ apiBindUnbindPlatformGetRaw(requestParameters: ApiBindUnbindPlatformGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiYoutubeUnpinGet200Response>>;
106
+ /**
107
+ * Unbind Bound Account
108
+ * Unbind
109
+ */
110
+ apiBindUnbindPlatformGet(requestParameters: ApiBindUnbindPlatformGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiYoutubeUnpinGet200Response>;
98
111
  /**
99
112
  * A link where x will callbacks to after finishes authorizing
100
113
  * X Connect
@@ -116,3 +129,13 @@ export declare class SocialBindApi extends runtime.BaseAPI {
116
129
  */
117
130
  apiBindXPreconnectGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiBindDiscordPreconnectGet200Response>;
118
131
  }
132
+ /**
133
+ * @export
134
+ */
135
+ export declare const ApiBindUnbindPlatformGetPlatformEnum: {
136
+ readonly Discord: "DISCORD";
137
+ readonly Telegram: "TELEGRAM";
138
+ readonly Instagram: "INSTAGRAM";
139
+ readonly X: "X";
140
+ };
141
+ export type ApiBindUnbindPlatformGetPlatformEnum = typeof ApiBindUnbindPlatformGetPlatformEnum[keyof typeof ApiBindUnbindPlatformGetPlatformEnum];
@@ -12,7 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  import * as runtime from '../runtime';
15
- import { ApiBindCreateJwtGet200ResponseFromJSON, ApiBindDiscordGet200ResponseFromJSON, ApiBindDiscordPreconnectGet200ResponseFromJSON, ApiBindStatusGet200ResponseFromJSON, } from '../models/index';
15
+ import { ApiBindCreateJwtGet200ResponseFromJSON, ApiBindDiscordGet200ResponseFromJSON, ApiBindDiscordPreconnectGet200ResponseFromJSON, ApiBindStatusGet200ResponseFromJSON, ApiYoutubeUnpinGet200ResponseFromJSON, } from '../models/index';
16
16
  /**
17
17
  *
18
18
  */
@@ -246,6 +246,42 @@ export class SocialBindApi extends runtime.BaseAPI {
246
246
  const response = await this.apiBindTelegramPreconnectGetRaw(requestParameters, initOverrides);
247
247
  return await response.value();
248
248
  }
249
+ /**
250
+ * Unbind Bound Account
251
+ * Unbind
252
+ */
253
+ async apiBindUnbindPlatformGetRaw(requestParameters, initOverrides) {
254
+ if (requestParameters['platform'] == null) {
255
+ throw new runtime.RequiredError('platform', 'Required parameter "platform" was null or undefined when calling apiBindUnbindPlatformGet().');
256
+ }
257
+ const queryParameters = {};
258
+ const headerParameters = {};
259
+ if (this.configuration && this.configuration.apiKey) {
260
+ headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
261
+ }
262
+ if (this.configuration && this.configuration.accessToken) {
263
+ const token = this.configuration.accessToken;
264
+ const tokenString = await token("BearerAuth", []);
265
+ if (tokenString) {
266
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
267
+ }
268
+ }
269
+ const response = await this.request({
270
+ path: `/api/bind/unbind/{platform}`.replace(`{${"platform"}}`, encodeURIComponent(String(requestParameters['platform']))),
271
+ method: 'GET',
272
+ headers: headerParameters,
273
+ query: queryParameters,
274
+ }, initOverrides);
275
+ return new runtime.JSONApiResponse(response, (jsonValue) => ApiYoutubeUnpinGet200ResponseFromJSON(jsonValue));
276
+ }
277
+ /**
278
+ * Unbind Bound Account
279
+ * Unbind
280
+ */
281
+ async apiBindUnbindPlatformGet(requestParameters, initOverrides) {
282
+ const response = await this.apiBindUnbindPlatformGetRaw(requestParameters, initOverrides);
283
+ return await response.value();
284
+ }
249
285
  /**
250
286
  * A link where x will callbacks to after finishes authorizing
251
287
  * X Connect
@@ -328,3 +364,12 @@ export class SocialBindApi extends runtime.BaseAPI {
328
364
  return await response.value();
329
365
  }
330
366
  }
367
+ /**
368
+ * @export
369
+ */
370
+ export const ApiBindUnbindPlatformGetPlatformEnum = {
371
+ Discord: 'DISCORD',
372
+ Telegram: 'TELEGRAM',
373
+ Instagram: 'INSTAGRAM',
374
+ X: 'X'
375
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@drxsuperapp/sdk",
3
- "version": "1.1.503",
3
+ "version": "1.1.505",
4
4
  "main": "index.ts",
5
5
  "types": "index.ts",
6
6
  "scripts": {