@mishkat/remnawave-sdk 1.1.1 → 1.2.0

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.
@@ -0,0 +1,14 @@
1
+ import { AddUsersToExternalSquadCommand, CreateExternalSquadCommand, DeleteExternalSquadCommand, DeleteUsersFromExternalSquadCommand, GetExternalSquadByUuidCommand, GetExternalSquadsCommand, UpdateExternalSquadCommand } from '@remnawave/backend-contract';
2
+ import type { HttpClient } from '../clients';
3
+ export declare class ExternalSquadsController {
4
+ private readonly httpClient;
5
+ constructor(httpClient: HttpClient);
6
+ getAll(): Promise<GetExternalSquadsCommand.Response['response']>;
7
+ getByUuid(uuid: string): Promise<GetExternalSquadByUuidCommand.Response['response']>;
8
+ create(data: CreateExternalSquadCommand.Request): Promise<CreateExternalSquadCommand.Response['response']>;
9
+ update(data: UpdateExternalSquadCommand.Request): Promise<UpdateExternalSquadCommand.Response['response']>;
10
+ delete(uuid: string): Promise<DeleteExternalSquadCommand.Response['response']>;
11
+ addUsers(uuid: string): Promise<AddUsersToExternalSquadCommand.Response['response']>;
12
+ removeUsers(uuid: string): Promise<DeleteUsersFromExternalSquadCommand.Response['response']>;
13
+ }
14
+ //# sourceMappingURL=external-squads.controller.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"external-squads.controller.d.ts","sourceRoot":"","sources":["../../src/controllers/external-squads.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,8BAA8B,EAC9B,0BAA0B,EAC1B,0BAA0B,EAC1B,mCAAmC,EACnC,6BAA6B,EAC7B,wBAAwB,EACxB,0BAA0B,EAC3B,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE7C,qBAAa,wBAAwB;IACvB,OAAO,CAAC,QAAQ,CAAC,UAAU;gBAAV,UAAU,EAAE,UAAU;IAEtC,MAAM,IAAI,OAAO,CAC5B,wBAAwB,CAAC,QAAQ,CAAC,UAAU,CAAC,CAC9C;IASY,SAAS,CACpB,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,6BAA6B,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;IASjD,MAAM,CACjB,IAAI,EAAE,0BAA0B,CAAC,OAAO,GACvC,OAAO,CAAC,0BAA0B,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;IAU9C,MAAM,CACjB,IAAI,EAAE,0BAA0B,CAAC,OAAO,GACvC,OAAO,CAAC,0BAA0B,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;IAU9C,MAAM,CACjB,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,0BAA0B,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;IAS9C,QAAQ,CACnB,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,8BAA8B,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;IASlD,WAAW,CACtB,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,mCAAmC,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;CASrE"}
@@ -0,0 +1,51 @@
1
+ import { AddUsersToExternalSquadCommand, CreateExternalSquadCommand, DeleteExternalSquadCommand, DeleteUsersFromExternalSquadCommand, GetExternalSquadByUuidCommand, GetExternalSquadsCommand, UpdateExternalSquadCommand, } from '@remnawave/backend-contract';
2
+ export class ExternalSquadsController {
3
+ constructor(httpClient) {
4
+ this.httpClient = httpClient;
5
+ }
6
+ async getAll() {
7
+ return this.httpClient.callApi({
8
+ method: GetExternalSquadsCommand.endpointDetails.REQUEST_METHOD,
9
+ url: GetExternalSquadsCommand.url,
10
+ });
11
+ }
12
+ async getByUuid(uuid) {
13
+ return this.httpClient.callApi({
14
+ method: GetExternalSquadByUuidCommand.endpointDetails.REQUEST_METHOD,
15
+ url: GetExternalSquadByUuidCommand.url(uuid),
16
+ });
17
+ }
18
+ async create(data) {
19
+ return this.httpClient.callApi({
20
+ method: CreateExternalSquadCommand.endpointDetails.REQUEST_METHOD,
21
+ url: CreateExternalSquadCommand.url,
22
+ data,
23
+ });
24
+ }
25
+ async update(data) {
26
+ return this.httpClient.callApi({
27
+ method: UpdateExternalSquadCommand.endpointDetails.REQUEST_METHOD,
28
+ url: UpdateExternalSquadCommand.url,
29
+ data,
30
+ });
31
+ }
32
+ async delete(uuid) {
33
+ return this.httpClient.callApi({
34
+ method: DeleteExternalSquadCommand.endpointDetails.REQUEST_METHOD,
35
+ url: DeleteExternalSquadCommand.url(uuid),
36
+ });
37
+ }
38
+ async addUsers(uuid) {
39
+ return this.httpClient.callApi({
40
+ method: AddUsersToExternalSquadCommand.endpointDetails.REQUEST_METHOD,
41
+ url: AddUsersToExternalSquadCommand.url(uuid),
42
+ });
43
+ }
44
+ async removeUsers(uuid) {
45
+ return this.httpClient.callApi({
46
+ method: DeleteUsersFromExternalSquadCommand.endpointDetails.REQUEST_METHOD,
47
+ url: DeleteUsersFromExternalSquadCommand.url(uuid),
48
+ });
49
+ }
50
+ }
51
+ //# sourceMappingURL=external-squads.controller.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"external-squads.controller.js","sourceRoot":"","sources":["../../src/controllers/external-squads.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,8BAA8B,EAC9B,0BAA0B,EAC1B,0BAA0B,EAC1B,mCAAmC,EACnC,6BAA6B,EAC7B,wBAAwB,EACxB,0BAA0B,GAC3B,MAAM,6BAA6B,CAAC;AAGrC,MAAM,OAAO,wBAAwB;IACnC,YAA6B,UAAsB;QAAtB,eAAU,GAAV,UAAU,CAAY;IAAG,CAAC;IAEhD,KAAK,CAAC,MAAM;QAGjB,OAAO,IAAI,CAAC,UAAU,CAAC,OAAO,CAE5B;YACA,MAAM,EAAE,wBAAwB,CAAC,eAAe,CAAC,cAAc;YAC/D,GAAG,EAAE,wBAAwB,CAAC,GAAG;SAClC,CAAC,CAAC;IACL,CAAC;IAEM,KAAK,CAAC,SAAS,CACpB,IAAY;QAEZ,OAAO,IAAI,CAAC,UA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CAAC,CAAC;IACL,CAAC;CACF"}
@@ -1,11 +1,13 @@
1
1
  export * from './auth.controller';
2
2
  export * from './config-profiles.controller';
3
+ export * from './external-squads.controller';
3
4
  export * from './hosts.controller';
4
5
  export * from './hwid.controller';
5
6
  export * from './infra-billing.controller';
6
7
  export * from './internal-squads.controller';
7
8
  export * from './keygen.controller';
8
9
  export * from './nodes.controller';
10
+ export * from './snippets.controller';
9
11
  export * from './subscription.controller';
10
12
  export * from './subscription-request-history.controller';
11
13
  export * from './subscription-settings.controller';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/controllers/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2CAA2C,CAAC;AAC1D,cAAc,oCAAoC,CAAC;AACnD,cAAc,oCAAoC,CAAC;AACnD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/controllers/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2CAA2C,CAAC;AAC1D,cAAc,oCAAoC,CAAC;AACnD,cAAc,oCAAoC,CAAC;AACnD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC"}
@@ -1,11 +1,13 @@
1
1
  export * from './auth.controller';
2
2
  export * from './config-profiles.controller';
3
+ export * from './external-squads.controller';
3
4
  export * from './hosts.controller';
4
5
  export * from './hwid.controller';
5
6
  export * from './infra-billing.controller';
6
7
  export * from './internal-squads.controller';
7
8
  export * from './keygen.controller';
8
9
  export * from './nodes.controller';
10
+ export * from './snippets.controller';
9
11
  export * from './subscription.controller';
10
12
  export * from './subscription-request-history.controller';
11
13
  export * from './subscription-settings.controller';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/controllers/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2CAA2C,CAAC;AAC1D,cAAc,oCAAoC,CAAC;AACnD,cAAc,oCAAoC,CAAC;AACnD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/controllers/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2CAA2C,CAAC;AAC1D,cAAc,oCAAoC,CAAC;AACnD,cAAc,oCAAoC,CAAC;AACnD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { CreateSnippetCommand, DeleteSnippetCommand, GetSnippetsCommand, UpdateSnippetCommand } from '@remnawave/backend-contract';
2
+ import type { HttpClient } from '../clients';
3
+ export declare class SnippetsController {
4
+ private readonly httpClient;
5
+ constructor(httpClient: HttpClient);
6
+ getAll(): Promise<GetSnippetsCommand.Response['response']>;
7
+ create(data: CreateSnippetCommand.Request): Promise<CreateSnippetCommand.Response['response']>;
8
+ update(data: UpdateSnippetCommand.Request): Promise<UpdateSnippetCommand.Response['response']>;
9
+ delete(data: DeleteSnippetCommand.Request): Promise<DeleteSnippetCommand.Response['response']>;
10
+ }
11
+ //# sourceMappingURL=snippets.controller.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"snippets.controller.d.ts","sourceRoot":"","sources":["../../src/controllers/snippets.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,oBAAoB,EACpB,kBAAkB,EAClB,oBAAoB,EACrB,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE7C,qBAAa,kBAAkB;IACjB,OAAO,CAAC,QAAQ,CAAC,UAAU;gBAAV,UAAU,EAAE,UAAU;IAEtC,MAAM,IAAI,OAAO,CAAC,kBAAkB,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;IAO1D,MAAM,CACjB,IAAI,EAAE,oBAAoB,CAAC,OAAO,GACjC,OAAO,CAAC,oBAAoB,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;IAQxC,MAAM,CACjB,IAAI,EAAE,oBAAoB,CAAC,OAAO,GACjC,OAAO,CAAC,oBAAoB,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;IAQxC,MAAM,CACjB,IAAI,EAAE,oBAAoB,CAAC,OAAO,GACjC,OAAO,CAAC,oBAAoB,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;CAOtD"}
@@ -0,0 +1,34 @@
1
+ import { CreateSnippetCommand, DeleteSnippetCommand, GetSnippetsCommand, UpdateSnippetCommand, } from '@remnawave/backend-contract';
2
+ export class SnippetsController {
3
+ constructor(httpClient) {
4
+ this.httpClient = httpClient;
5
+ }
6
+ async getAll() {
7
+ return this.httpClient.callApi({
8
+ method: GetSnippetsCommand.endpointDetails.REQUEST_METHOD,
9
+ url: GetSnippetsCommand.url,
10
+ });
11
+ }
12
+ async create(data) {
13
+ return this.httpClient.callApi({
14
+ method: CreateSnippetCommand.endpointDetails.REQUEST_METHOD,
15
+ url: CreateSnippetCommand.url,
16
+ data,
17
+ });
18
+ }
19
+ async update(data) {
20
+ return this.httpClient.callApi({
21
+ method: UpdateSnippetCommand.endpointDetails.REQUEST_METHOD,
22
+ url: UpdateSnippetCommand.url,
23
+ data,
24
+ });
25
+ }
26
+ async delete(data) {
27
+ return this.httpClient.callApi({
28
+ method: DeleteSnippetCommand.endpointDetails.REQUEST_METHOD,
29
+ url: DeleteSnippetCommand.url,
30
+ data,
31
+ });
32
+ }
33
+ }
34
+ //# sourceMappingURL=snippets.controller.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"snippets.controller.js","sourceRoot":"","sources":["../../src/controllers/snippets.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,oBAAoB,EACpB,kBAAkB,EAClB,oBAAoB,GACrB,MAAM,6BAA6B,CAAC;AAGrC,MAAM,OAAO,kBAAkB;IAC7B,YAA6B,UAAsB;QAAtB,eAAU,GAAV,UAAU,CAAY;IAAG,CAAC;IAEhD,KAAK,CAAC,MAAM;QACjB,OAAO,IAAI,CAAC,UAAU,CAAC,OAAO,CAA0C;YACtE,MAAM,EAAE,kBAAkB,CAAC,eAAe,CAAC,cAAc;YACzD,GAAG,EAAE,kBAAkB,CAAC,GAAG;SAC5B,CAAC,CAAC;IACL,CAAC;IAEM,KAAK,CAAC,MAAM,CACjB,IAAkC;QAElC,OAAO,IAAI,CAAC,UAAU,CAAC,OAAO,CAA4C;YACxE,MAAM,EAAE,oBAAoB,CAAC,eAAe,CAAC,cAAc;YAC3D,GAAG,EAAE,oBAAoB,CAAC,GAAG;YAC7B,IAAI;SACL,CAAC,CAAC;IACL,CAAC;IAEM,KAAK,CAAC,MAAM,CACjB,IAAkC;QAElC,OAAO,IAAI,CAAC,UAAU,CAAC,OAAO,CAA4C;YACxE,MAAM,EAAE,oBAAoB,CAAC,eAAe,CAAC,cAAc;YAC3D,GAAG,EAAE,oBAAoB,CAAC,GAAG;YAC7B,IAAI;SACL,CAAC,CAAC;IACL,CAAC;IAEM,KAAK,CAAC,MAAM,CACjB,IAAkC;QAElC,OAAO,IAAI,CAAC,UAAU,CAAC,OAAO,CAA4C;YACxE,MAAM,EAAE,oBAAoB,CAAC,eAAe,CAAC,cAAc;YAC3D,GAAG,EAAE,oBAAoB,CAAC,GAAG;YAC7B,IAAI;SACL,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -3,7 +3,7 @@ import type { HttpClient } from '../clients';
3
3
  export declare class SubscriptionTemplateController {
4
4
  private readonly httpClient;
5
5
  constructor(httpClient: HttpClient);
6
- getTemplate(data: GetSubscriptionTemplateCommand.Request): Promise<GetSubscriptionTemplateCommand.Response['response']>;
6
+ getTemplate(uuid: string): Promise<GetSubscriptionTemplateCommand.Response['response']>;
7
7
  updateTemplate(data: UpdateSubscriptionTemplateCommand.Request): Promise<UpdateSubscriptionTemplateCommand.Response['response']>;
8
8
  }
9
9
  //# sourceMappingURL=subscription-template.controller.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"subscription-template.controller.d.ts","sourceRoot":"","sources":["../../src/controllers/subscription-template.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,8BAA8B,EAC9B,iCAAiC,EAClC,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE7C,qBAAa,8BAA8B;IAC7B,OAAO,CAAC,QAAQ,CAAC,UAAU;gBAAV,UAAU,EAAE,UAAU;IAEtC,WAAW,CACtB,IAAI,EAAE,8BAA8B,CAAC,OAAO,GAC3C,OAAO,CAAC,8BAA8B,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;IASlD,cAAc,CACzB,IAAI,EAAE,iCAAiC,CAAC,OAAO,GAC9C,OAAO,CAAC,iCAAiC,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;CASnE"}
1
+ {"version":3,"file":"subscription-template.controller.d.ts","sourceRoot":"","sources":["../../src/controllers/subscription-template.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,8BAA8B,EAC9B,iCAAiC,EAClC,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE7C,qBAAa,8BAA8B;IAC7B,OAAO,CAAC,QAAQ,CAAC,UAAU;gBAAV,UAAU,EAAE,UAAU;IAEtC,WAAW,CACtB,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,8BAA8B,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;IASlD,cAAc,CACzB,IAAI,EAAE,iCAAiC,CAAC,OAAO,GAC9C,OAAO,CAAC,iCAAiC,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;CASnE"}
@@ -3,10 +3,10 @@ export class SubscriptionTemplateController {
3
3
  constructor(httpClient) {
4
4
  this.httpClient = httpClient;
5
5
  }
6
- async getTemplate(data) {
6
+ async getTemplate(uuid) {
7
7
  return this.httpClient.callApi({
8
8
  method: GetSubscriptionTemplateCommand.endpointDetails.REQUEST_METHOD,
9
- url: GetSubscriptionTemplateCommand.url(data.templateType),
9
+ url: GetSubscriptionTemplateCommand.url(uuid),
10
10
  });
11
11
  }
12
12
  async updateTemplate(data) {
@@ -1 +1 @@
1
- {"version":3,"file":"subscription-template.controller.js","sourceRoot":"","sources":["../../src/controllers/subscription-template.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,8BAA8B,EAC9B,iCAAiC,GAClC,MAAM,6BAA6B,CAAC;AAGrC,MAAM,OAAO,8BAA8B;IACzC,YAA6B,UAAsB;QAAtB,eAAU,GAAV,UAAU,CAAY;IAAG,CAAC;IAEhD,KAAK,CAAC,WAAW,CACtB,IAA4C;QAE5C,OAAO,IAAI,CAAC,UAAU,CAAC,OAAO,CAE5B;YACA,MAAM,EAAE,8BAA8B,CAAC,eAAe,CAAC,cAAc;YACrE,GAAG,EAAE,8BAA8B,CAAC,GAAG,CAAC,IAAI,CAAC,YAAY,CAAC;SAC3D,CAAC,CAAC;IACL,CAAC;IAEM,KAAK,CAAC,cAAc,CACzB,IAA+C;QAE/C,OAAO,IAAI,CAAC,UAAU,CAAC,OAAO,CAE5B;YACA,MAAM,EAAE,iCAAiC,CAAC,eAAe,CAAC,cAAc;YACxE,GAAG,EAAE,iCAAiC,CAAC,GAAG;YAC1C,IAAI;SACL,CAAC,CAAC;IACL,CAAC;CACF"}
1
+ {"version":3,"file":"subscription-template.controller.js","sourceRoot":"","sources":["../../src/controllers/subscription-template.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,8BAA8B,EAC9B,iCAAiC,GAClC,MAAM,6BAA6B,CAAC;AAGrC,MAAM,OAAO,8BAA8B;IACzC,YAA6B,UAAsB;QAAtB,eAAU,GAAV,UAAU,CAAY;IAAG,CAAC;IAEhD,KAAK,CAAC,WAAW,CACtB,IAAY;QAEZ,OAAO,IAAI,CAAC,UAAU,CAAC,OAAO,CAE5B;YACA,MAAM,EAAE,8BAA8B,CAAC,eAAe,CAAC,cAAc;YACrE,GAAG,EAAE,8BAA8B,CAAC,GAAG,CAAC,IAAI,CAAC;SAC9C,CAAC,CAAC;IACL,CAAC;IAEM,KAAK,CAAC,cAAc,CACzB,IAA+C;QAE/C,OAAO,IAAI,CAAC,UAAU,CAAC,OAAO,CAE5B;YACA,MAAM,EAAE,iCAAiC,CAAC,eAAe,CAAC,cAAc;YACxE,GAAG,EAAE,iCAAiC,CAAC,GAAG;YAC1C,IAAI;SACL,CAAC,CAAC;IACL,CAAC;CACF"}
package/dist/index.d.ts CHANGED
@@ -1,4 +1,7 @@
1
+ export * from '@remnawave/backend-contract';
1
2
  export * from './clients';
3
+ export type { Config } from './config';
2
4
  export * from './controllers';
5
+ export * from './interfaces';
3
6
  export * from './remnawave.sdk';
4
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,WAAW,CAAC;AAC1B,YAAY,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AACvC,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC"}
package/dist/index.js CHANGED
@@ -1,4 +1,6 @@
1
+ export * from '@remnawave/backend-contract';
1
2
  export * from './clients';
2
3
  export * from './controllers';
4
+ export * from './interfaces';
3
5
  export * from './remnawave.sdk';
4
6
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,WAAW,CAAC;AAE1B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { type Config } from './config';
2
- import { AuthController, ConfigProfilesController, HostsController, HwidController, InfraBillingController, InternalSquadsController, KeygenController, NodesController, SubscriptionController, SubscriptionRequestHistoryController, SubscriptionSettingsController, SubscriptionsController, SubscriptionTemplateController, SystemController, UserController } from './controllers';
2
+ import { AuthController, ConfigProfilesController, ExternalSquadsController, HostsController, HwidController, InfraBillingController, InternalSquadsController, KeygenController, NodesController, SnippetsController, SubscriptionController, SubscriptionRequestHistoryController, SubscriptionSettingsController, SubscriptionsController, SubscriptionTemplateController, SystemController, UserController } from './controllers';
3
3
  export declare class RemnawaveSDK {
4
4
  private readonly client;
5
5
  readonly auth: AuthController;
@@ -8,8 +8,10 @@ export declare class RemnawaveSDK {
8
8
  readonly hwid: HwidController;
9
9
  readonly infraBilling: InfraBillingController;
10
10
  readonly internalSquads: InternalSquadsController;
11
+ readonly externalSquads: ExternalSquadsController;
11
12
  readonly keygen: KeygenController;
12
13
  readonly nodes: NodesController;
14
+ readonly snippets: SnippetsController;
13
15
  readonly subscription: SubscriptionController;
14
16
  readonly subscriptionRequestHistory: SubscriptionRequestHistoryController;
15
17
  readonly subscriptions: SubscriptionsController;
@@ -1 +1 @@
1
- {"version":3,"file":"remnawave.sdk.d.ts","sourceRoot":"","sources":["../src/remnawave.sdk.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,MAAM,EAAc,MAAM,UAAU,CAAC;AACnD,OAAO,EACL,cAAc,EACd,wBAAwB,EACxB,eAAe,EACf,cAAc,EACd,sBAAsB,EACtB,wBAAwB,EACxB,gBAAgB,EAChB,eAAe,EACf,sBAAsB,EACtB,oCAAoC,EACpC,8BAA8B,EAC9B,uBAAuB,EACvB,8BAA8B,EAC9B,gBAAgB,EAChB,cAAc,EACf,MAAM,eAAe,CAAC;AAEvB,qBA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B,KAAK,EAAE,eAAe,CAAC;IACvC,SAAgB,IAAI,EAAE,cAAc,CAAC;IACrC,SAAgB,YAAY,EAAE,sBAAsB,CAAC;IACrD,SAAgB,cAAc,EAAE,wBAAwB,CAAC;IACzD,SAAgB,cAAc,EAAE,wBAAwB,CAAC;IACzD,SAAgB,MAAM,EAAE,gBAAgB,CAAC;IACzC,SAAgB,KAAK,EAAE,eAAe,CAAC;IACvC,SAAgB,QAAQ,EAAE,kBAAkB,CAAC;IAC7C,SAAgB,YAAY,EAAE,sBAAsB,CAAC;IACrD,SAAgB,0BAA0B,EAAE,oCAAoC,CAAC;IACjF,SAAgB,aAAa,EAAE,uBAAuB,CAAC;IACvD,SAAgB,oBAAoB,EAAE,8BAA8B,CAAC;IACrE,SAAgB,oBAAoB,EAAE,8BAA8B,CAAC;IACrE,SAAgB,MAAM,EAAE,gBAAgB,CAAC;IACzC,SAAgB,KAAK,EAAE,cAAc,CAAC;gBAE1B,MAAM,EAAE,MAAM;CAwB3B"}
@@ -1,6 +1,6 @@
1
1
  import { HttpClient } from './clients';
2
2
  import { loadConfig } from './config';
3
- import { AuthController, ConfigProfilesController, HostsController, HwidController, InfraBillingController, InternalSquadsController, KeygenController, NodesController, SubscriptionController, SubscriptionRequestHistoryController, SubscriptionSettingsController, SubscriptionsController, SubscriptionTemplateController, SystemController, UserController, } from './controllers';
3
+ import { AuthController, ConfigProfilesController, ExternalSquadsController, HostsController, HwidController, InfraBillingController, InternalSquadsController, KeygenController, NodesController, SnippetsController, SubscriptionController, SubscriptionRequestHistoryController, SubscriptionSettingsController, SubscriptionsController, SubscriptionTemplateController, SystemController, UserController, } from './controllers';
4
4
  export class RemnawaveSDK {
5
5
  constructor(config) {
6
6
  const validatedConfig = loadConfig(config);
@@ -11,8 +11,10 @@ export class RemnawaveSDK {
11
11
  this.hwid = new HwidController(this.client);
12
12
  this.infraBilling = new InfraBillingController(this.client);
13
13
  this.internalSquads = new InternalSquadsController(this.client);
14
+ this.externalSquads = new ExternalSquadsController(this.client);
14
15
  this.keygen = new KeygenController(this.client);
15
16
  this.nodes = new NodesController(this.client);
17
+ this.snippets = new SnippetsController(this.client);
16
18
  this.subscription = new SubscriptionController(this.client);
17
19
  this.subscriptionRequestHistory = new SubscriptionRequestHistoryController(this.client);
18
20
  this.subscriptions = new SubscriptionsController(this.client);
@@ -1 +1 @@
1
- {"version":3,"file":"remnawave.sdk.js","sourceRoot":"","sources":["../src/remnawave.sdk.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,EAAe,UAAU,EAAE,MAAM,UAAU,CAAC;AACnD,OAAO,EACL,cAAc,EACd,wBAAwB,EACxB,eAAe,EACf,cAAc,EACd,sBAAsB,EACtB,wBAAwB,EACxB,gBAAgB,EAChB,eAAe,EACf,sBAAsB,EACtB,oCAAoC,EACpC,8BAA8B,EAC9B,uBAAuB,EACvB,8BAA8B,EAC9B,gBAAgB,EAChB,cAAc,GACf,MAAM,eAAe,CAAC;AAEvB,MAAM,OAAO,YAAY;IAkBvB,YAAY,MAAc;QACxB,MAAM,eAAe,GAAG,UAAU,CAAC,MAAM,CAAC,CAAC;QAE3C,IAAI,CAAC,MAAM,GAAG,IAAI,UAAU,CAAC,eAAe,CAAC,CAAC;QAC9C,IAAI,CAAC,IAAI,GAAG,IAAI,cAAc,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAC5C,IAAI,CAAC,cAAc,GAAG,IAAI,wBAAwB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAChE,IAAI,CAAC,KAAK,GAAG,IAAI,eAAe,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAC9C,IAAI,CAAC,IAAI,GAAG,IAAI,cAAc,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAC5C,IAAI,CAAC,YAAY,GAAG,IAAI,sBAAsB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAC5D,IAAI,CAAC,cAAc,GAAG,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D,IAAI,CAAC,oBAAoB,GAAG,IAAI,8BAA8B,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAC5E,IAAI,CAAC,oBAAoB,GAAG,IAAI,8BAA8B,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAC5E,IAAI,CAAC,MAAM,GAAG,IAAI,gBAAgB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAChD,IAAI,CAAC,KAAK,GAAG,IAAI,cAAc,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAC/C,CAAC;CACF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mishkat/remnawave-sdk",
3
- "version": "1.1.1",
3
+ "version": "1.2.0",
4
4
  "description": "SDK for Remnawave API",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -28,14 +28,14 @@
28
28
  "api"
29
29
  ],
30
30
  "devDependencies": {
31
- "@biomejs/biome": "2.2.5",
31
+ "@biomejs/biome": "2.3.0",
32
32
  "@types/bun": "latest"
33
33
  },
34
34
  "peerDependencies": {
35
35
  "typescript": "^5.9.3"
36
36
  },
37
37
  "dependencies": {
38
- "@remnawave/backend-contract": "2.1.70",
38
+ "@remnawave/backend-contract": "2.2.24",
39
39
  "axios": "^1.12.2",
40
40
  "zod": "^4.1.12"
41
41
  }