@remnawave/backend-contract 2.5.14 → 2.5.16

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.
@@ -31,12 +31,12 @@ export declare namespace GetStatusCommand {
31
31
  readonly POCKETID: "pocketid";
32
32
  readonly YANDEX: "yandex";
33
33
  readonly KEYCLOAK: "keycloak";
34
- readonly GENERIC_OAUTH2: "genericOAuth2";
34
+ readonly GENERIC_OAUTH2: "oauth2";
35
35
  }>, z.ZodBoolean>;
36
36
  }, "strip", z.ZodTypeAny, {
37
- providers: Partial<Record<"github" | "pocketid" | "yandex" | "keycloak" | "genericOAuth2", boolean>>;
37
+ providers: Partial<Record<"github" | "pocketid" | "yandex" | "keycloak" | "oauth2", boolean>>;
38
38
  }, {
39
- providers: Partial<Record<"github" | "pocketid" | "yandex" | "keycloak" | "genericOAuth2", boolean>>;
39
+ providers: Partial<Record<"github" | "pocketid" | "yandex" | "keycloak" | "oauth2", boolean>>;
40
40
  }>;
41
41
  password: z.ZodObject<{
42
42
  enabled: z.ZodBoolean;
@@ -46,6 +46,9 @@ export declare namespace GetStatusCommand {
46
46
  enabled: boolean;
47
47
  }>;
48
48
  }, "strip", z.ZodTypeAny, {
49
+ oauth2: {
50
+ providers: Partial<Record<"github" | "pocketid" | "yandex" | "keycloak" | "oauth2", boolean>>;
51
+ };
49
52
  passkey: {
50
53
  enabled: boolean;
51
54
  };
@@ -53,13 +56,13 @@ export declare namespace GetStatusCommand {
53
56
  enabled: boolean;
54
57
  botId: number | null;
55
58
  };
56
- oauth2: {
57
- providers: Partial<Record<"github" | "pocketid" | "yandex" | "keycloak" | "genericOAuth2", boolean>>;
58
- };
59
59
  password: {
60
60
  enabled: boolean;
61
61
  };
62
62
  }, {
63
+ oauth2: {
64
+ providers: Partial<Record<"github" | "pocketid" | "yandex" | "keycloak" | "oauth2", boolean>>;
65
+ };
63
66
  passkey: {
64
67
  enabled: boolean;
65
68
  };
@@ -67,9 +70,6 @@ export declare namespace GetStatusCommand {
67
70
  enabled: boolean;
68
71
  botId: number | null;
69
72
  };
70
- oauth2: {
71
- providers: Partial<Record<"github" | "pocketid" | "yandex" | "keycloak" | "genericOAuth2", boolean>>;
72
- };
73
73
  password: {
74
74
  enabled: boolean;
75
75
  };
@@ -88,6 +88,9 @@ export declare namespace GetStatusCommand {
88
88
  isLoginAllowed: boolean;
89
89
  isRegisterAllowed: boolean;
90
90
  authentication: {
91
+ oauth2: {
92
+ providers: Partial<Record<"github" | "pocketid" | "yandex" | "keycloak" | "oauth2", boolean>>;
93
+ };
91
94
  passkey: {
92
95
  enabled: boolean;
93
96
  };
@@ -95,9 +98,6 @@ export declare namespace GetStatusCommand {
95
98
  enabled: boolean;
96
99
  botId: number | null;
97
100
  };
98
- oauth2: {
99
- providers: Partial<Record<"github" | "pocketid" | "yandex" | "keycloak" | "genericOAuth2", boolean>>;
100
- };
101
101
  password: {
102
102
  enabled: boolean;
103
103
  };
@@ -110,6 +110,9 @@ export declare namespace GetStatusCommand {
110
110
  isLoginAllowed: boolean;
111
111
  isRegisterAllowed: boolean;
112
112
  authentication: {
113
+ oauth2: {
114
+ providers: Partial<Record<"github" | "pocketid" | "yandex" | "keycloak" | "oauth2", boolean>>;
115
+ };
113
116
  passkey: {
114
117
  enabled: boolean;
115
118
  };
@@ -117,9 +120,6 @@ export declare namespace GetStatusCommand {
117
120
  enabled: boolean;
118
121
  botId: number | null;
119
122
  };
120
- oauth2: {
121
- providers: Partial<Record<"github" | "pocketid" | "yandex" | "keycloak" | "genericOAuth2", boolean>>;
122
- };
123
123
  password: {
124
124
  enabled: boolean;
125
125
  };
@@ -134,6 +134,9 @@ export declare namespace GetStatusCommand {
134
134
  isLoginAllowed: boolean;
135
135
  isRegisterAllowed: boolean;
136
136
  authentication: {
137
+ oauth2: {
138
+ providers: Partial<Record<"github" | "pocketid" | "yandex" | "keycloak" | "oauth2", boolean>>;
139
+ };
137
140
  passkey: {
138
141
  enabled: boolean;
139
142
  };
@@ -141,9 +144,6 @@ export declare namespace GetStatusCommand {
141
144
  enabled: boolean;
142
145
  botId: number | null;
143
146
  };
144
- oauth2: {
145
- providers: Partial<Record<"github" | "pocketid" | "yandex" | "keycloak" | "genericOAuth2", boolean>>;
146
- };
147
147
  password: {
148
148
  enabled: boolean;
149
149
  };
@@ -158,6 +158,9 @@ export declare namespace GetStatusCommand {
158
158
  isLoginAllowed: boolean;
159
159
  isRegisterAllowed: boolean;
160
160
  authentication: {
161
+ oauth2: {
162
+ providers: Partial<Record<"github" | "pocketid" | "yandex" | "keycloak" | "oauth2", boolean>>;
163
+ };
161
164
  passkey: {
162
165
  enabled: boolean;
163
166
  };
@@ -165,9 +168,6 @@ export declare namespace GetStatusCommand {
165
168
  enabled: boolean;
166
169
  botId: number | null;
167
170
  };
168
- oauth2: {
169
- providers: Partial<Record<"github" | "pocketid" | "yandex" | "keycloak" | "genericOAuth2", boolean>>;
170
- };
171
171
  password: {
172
172
  enabled: boolean;
173
173
  };
@@ -9,12 +9,12 @@ export declare namespace OAuth2AuthorizeCommand {
9
9
  readonly POCKETID: "pocketid";
10
10
  readonly YANDEX: "yandex";
11
11
  readonly KEYCLOAK: "keycloak";
12
- readonly GENERIC_OAUTH2: "genericOAuth2";
12
+ readonly GENERIC_OAUTH2: "oauth2";
13
13
  }>;
14
14
  }, "strip", z.ZodTypeAny, {
15
- provider: "github" | "pocketid" | "yandex" | "keycloak" | "genericOAuth2";
15
+ provider: "github" | "pocketid" | "yandex" | "keycloak" | "oauth2";
16
16
  }, {
17
- provider: "github" | "pocketid" | "yandex" | "keycloak" | "genericOAuth2";
17
+ provider: "github" | "pocketid" | "yandex" | "keycloak" | "oauth2";
18
18
  }>;
19
19
  const ResponseSchema: z.ZodObject<{
20
20
  response: z.ZodObject<{
@@ -9,17 +9,17 @@ export declare namespace OAuth2CallbackCommand {
9
9
  readonly POCKETID: "pocketid";
10
10
  readonly YANDEX: "yandex";
11
11
  readonly KEYCLOAK: "keycloak";
12
- readonly GENERIC_OAUTH2: "genericOAuth2";
12
+ readonly GENERIC_OAUTH2: "oauth2";
13
13
  }>;
14
14
  code: z.ZodString;
15
15
  state: z.ZodString;
16
16
  }, "strip", z.ZodTypeAny, {
17
17
  code: string;
18
- provider: "github" | "pocketid" | "yandex" | "keycloak" | "genericOAuth2";
18
+ provider: "github" | "pocketid" | "yandex" | "keycloak" | "oauth2";
19
19
  state: string;
20
20
  }, {
21
21
  code: string;
22
- provider: "github" | "pocketid" | "yandex" | "keycloak" | "genericOAuth2";
22
+ provider: "github" | "pocketid" | "yandex" | "keycloak" | "oauth2";
23
23
  state: string;
24
24
  }>;
25
25
  type Request = z.infer<typeof RequestSchema>;
@@ -95,7 +95,7 @@ export declare namespace GetRemnawaveSettingsCommand {
95
95
  frontendDomain: string | null;
96
96
  keycloakDomain: string | null;
97
97
  }>>;
98
- genericOAuth2: z.ZodDefault<z.ZodObject<{
98
+ oauth2: z.ZodDefault<z.ZodObject<{
99
99
  enabled: z.ZodBoolean;
100
100
  clientId: z.ZodNullable<z.ZodString>;
101
101
  clientSecret: z.ZodNullable<z.ZodString>;
@@ -152,7 +152,7 @@ export declare namespace GetRemnawaveSettingsCommand {
152
152
  frontendDomain: string | null;
153
153
  keycloakDomain: string | null;
154
154
  };
155
- genericOAuth2: {
155
+ oauth2: {
156
156
  enabled: boolean;
157
157
  authorizationUrl: string | null;
158
158
  clientId: string | null;
@@ -191,7 +191,7 @@ export declare namespace GetRemnawaveSettingsCommand {
191
191
  frontendDomain: string | null;
192
192
  keycloakDomain: string | null;
193
193
  } | undefined;
194
- genericOAuth2?: {
194
+ oauth2?: {
195
195
  enabled: boolean;
196
196
  authorizationUrl: string | null;
197
197
  clientId: string | null;
@@ -267,7 +267,7 @@ export declare namespace GetRemnawaveSettingsCommand {
267
267
  frontendDomain: string | null;
268
268
  keycloakDomain: string | null;
269
269
  };
270
- genericOAuth2: {
270
+ oauth2: {
271
271
  enabled: boolean;
272
272
  authorizationUrl: string | null;
273
273
  clientId: string | null;
@@ -325,7 +325,7 @@ export declare namespace GetRemnawaveSettingsCommand {
325
325
  frontendDomain: string | null;
326
326
  keycloakDomain: string | null;
327
327
  } | undefined;
328
- genericOAuth2?: {
328
+ oauth2?: {
329
329
  enabled: boolean;
330
330
  authorizationUrl: string | null;
331
331
  clientId: string | null;
@@ -385,7 +385,7 @@ export declare namespace GetRemnawaveSettingsCommand {
385
385
  frontendDomain: string | null;
386
386
  keycloakDomain: string | null;
387
387
  };
388
- genericOAuth2: {
388
+ oauth2: {
389
389
  enabled: boolean;
390
390
  authorizationUrl: string | null;
391
391
  clientId: string | null;
@@ -445,7 +445,7 @@ export declare namespace GetRemnawaveSettingsCommand {
445
445
  frontendDomain: string | null;
446
446
  keycloakDomain: string | null;
447
447
  } | undefined;
448
- genericOAuth2?: {
448
+ oauth2?: {
449
449
  enabled: boolean;
450
450
  authorizationUrl: string | null;
451
451
  clientId: string | null;
@@ -94,7 +94,7 @@ export declare namespace UpdateRemnawaveSettingsCommand {
94
94
  frontendDomain: string | null;
95
95
  keycloakDomain: string | null;
96
96
  }>>;
97
- genericOAuth2: z.ZodDefault<z.ZodObject<{
97
+ oauth2: z.ZodDefault<z.ZodObject<{
98
98
  enabled: z.ZodBoolean;
99
99
  clientId: z.ZodNullable<z.ZodString>;
100
100
  clientSecret: z.ZodNullable<z.ZodString>;
@@ -151,7 +151,7 @@ export declare namespace UpdateRemnawaveSettingsCommand {
151
151
  frontendDomain: string | null;
152
152
  keycloakDomain: string | null;
153
153
  };
154
- genericOAuth2: {
154
+ oauth2: {
155
155
  enabled: boolean;
156
156
  authorizationUrl: string | null;
157
157
  clientId: string | null;
@@ -190,7 +190,7 @@ export declare namespace UpdateRemnawaveSettingsCommand {
190
190
  frontendDomain: string | null;
191
191
  keycloakDomain: string | null;
192
192
  } | undefined;
193
- genericOAuth2?: {
193
+ oauth2?: {
194
194
  enabled: boolean;
195
195
  authorizationUrl: string | null;
196
196
  clientId: string | null;
@@ -266,7 +266,7 @@ export declare namespace UpdateRemnawaveSettingsCommand {
266
266
  frontendDomain: string | null;
267
267
  keycloakDomain: string | null;
268
268
  };
269
- genericOAuth2: {
269
+ oauth2: {
270
270
  enabled: boolean;
271
271
  authorizationUrl: string | null;
272
272
  clientId: string | null;
@@ -324,7 +324,7 @@ export declare namespace UpdateRemnawaveSettingsCommand {
324
324
  frontendDomain: string | null;
325
325
  keycloakDomain: string | null;
326
326
  } | undefined;
327
- genericOAuth2?: {
327
+ oauth2?: {
328
328
  enabled: boolean;
329
329
  authorizationUrl: string | null;
330
330
  clientId: string | null;
@@ -441,7 +441,7 @@ export declare namespace UpdateRemnawaveSettingsCommand {
441
441
  frontendDomain: string | null;
442
442
  keycloakDomain: string | null;
443
443
  }>>;
444
- genericOAuth2: z.ZodDefault<z.ZodObject<{
444
+ oauth2: z.ZodDefault<z.ZodObject<{
445
445
  enabled: z.ZodBoolean;
446
446
  clientId: z.ZodNullable<z.ZodString>;
447
447
  clientSecret: z.ZodNullable<z.ZodString>;
@@ -498,7 +498,7 @@ export declare namespace UpdateRemnawaveSettingsCommand {
498
498
  frontendDomain: string | null;
499
499
  keycloakDomain: string | null;
500
500
  };
501
- genericOAuth2: {
501
+ oauth2: {
502
502
  enabled: boolean;
503
503
  authorizationUrl: string | null;
504
504
  clientId: string | null;
@@ -537,7 +537,7 @@ export declare namespace UpdateRemnawaveSettingsCommand {
537
537
  frontendDomain: string | null;
538
538
  keycloakDomain: string | null;
539
539
  } | undefined;
540
- genericOAuth2?: {
540
+ oauth2?: {
541
541
  enabled: boolean;
542
542
  authorizationUrl: string | null;
543
543
  clientId: string | null;
@@ -613,7 +613,7 @@ export declare namespace UpdateRemnawaveSettingsCommand {
613
613
  frontendDomain: string | null;
614
614
  keycloakDomain: string | null;
615
615
  };
616
- genericOAuth2: {
616
+ oauth2: {
617
617
  enabled: boolean;
618
618
  authorizationUrl: string | null;
619
619
  clientId: string | null;
@@ -671,7 +671,7 @@ export declare namespace UpdateRemnawaveSettingsCommand {
671
671
  frontendDomain: string | null;
672
672
  keycloakDomain: string | null;
673
673
  } | undefined;
674
- genericOAuth2?: {
674
+ oauth2?: {
675
675
  enabled: boolean;
676
676
  authorizationUrl: string | null;
677
677
  clientId: string | null;
@@ -731,7 +731,7 @@ export declare namespace UpdateRemnawaveSettingsCommand {
731
731
  frontendDomain: string | null;
732
732
  keycloakDomain: string | null;
733
733
  };
734
- genericOAuth2: {
734
+ oauth2: {
735
735
  enabled: boolean;
736
736
  authorizationUrl: string | null;
737
737
  clientId: string | null;
@@ -791,7 +791,7 @@ export declare namespace UpdateRemnawaveSettingsCommand {
791
791
  frontendDomain: string | null;
792
792
  keycloakDomain: string | null;
793
793
  } | undefined;
794
- genericOAuth2?: {
794
+ oauth2?: {
795
795
  enabled: boolean;
796
796
  authorizationUrl: string | null;
797
797
  clientId: string | null;
@@ -3,9 +3,9 @@ export declare const OAUTH2_PROVIDERS: {
3
3
  readonly POCKETID: "pocketid";
4
4
  readonly YANDEX: "yandex";
5
5
  readonly KEYCLOAK: "keycloak";
6
- readonly GENERIC_OAUTH2: "genericOAuth2";
6
+ readonly GENERIC_OAUTH2: "oauth2";
7
7
  };
8
8
  export type TOAuth2Providers = [keyof typeof OAUTH2_PROVIDERS][number];
9
9
  export type TOAuth2ProvidersKeys = (typeof OAUTH2_PROVIDERS)[keyof typeof OAUTH2_PROVIDERS];
10
- export declare const OAUTH2_PROVIDERS_VALUES: ("github" | "pocketid" | "yandex" | "keycloak" | "genericOAuth2")[];
10
+ export declare const OAUTH2_PROVIDERS_VALUES: ("github" | "pocketid" | "yandex" | "keycloak" | "oauth2")[];
11
11
  //# sourceMappingURL=providers.contants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"providers.contants.d.ts","sourceRoot":"","sources":["../../../../constants/oauth2/providers.contants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB;;;;;;CAMnB,CAAC;AAEX,MAAM,MAAM,gBAAgB,GAAG,CAAC,MAAM,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC;AACvE,MAAM,MAAM,oBAAoB,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,OAAO,gBAAgB,CAAC,CAAC;AAC5F,eAAO,MAAM,uBAAuB,qEAAkC,CAAC"}
1
+ {"version":3,"file":"providers.contants.d.ts","sourceRoot":"","sources":["../../../../constants/oauth2/providers.contants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB;;;;;;CAMnB,CAAC;AAEX,MAAM,MAAM,gBAAgB,GAAG,CAAC,MAAM,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC;AACvE,MAAM,MAAM,oBAAoB,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,OAAO,gBAAgB,CAAC,CAAC;AAC5F,eAAO,MAAM,uBAAuB,8DAAkC,CAAC"}
@@ -6,6 +6,6 @@ exports.OAUTH2_PROVIDERS = {
6
6
  POCKETID: 'pocketid',
7
7
  YANDEX: 'yandex',
8
8
  KEYCLOAK: 'keycloak',
9
- GENERIC_OAUTH2: 'genericOAuth2',
9
+ GENERIC_OAUTH2: 'oauth2',
10
10
  };
11
11
  exports.OAUTH2_PROVIDERS_VALUES = Object.values(exports.OAUTH2_PROVIDERS);
@@ -76,7 +76,7 @@ export declare const Oauth2SettingsSchema: z.ZodObject<{
76
76
  frontendDomain: string | null;
77
77
  keycloakDomain: string | null;
78
78
  }>>;
79
- genericOAuth2: z.ZodDefault<z.ZodObject<{
79
+ oauth2: z.ZodDefault<z.ZodObject<{
80
80
  enabled: z.ZodBoolean;
81
81
  clientId: z.ZodNullable<z.ZodString>;
82
82
  clientSecret: z.ZodNullable<z.ZodString>;
@@ -133,7 +133,7 @@ export declare const Oauth2SettingsSchema: z.ZodObject<{
133
133
  frontendDomain: string | null;
134
134
  keycloakDomain: string | null;
135
135
  };
136
- genericOAuth2: {
136
+ oauth2: {
137
137
  enabled: boolean;
138
138
  authorizationUrl: string | null;
139
139
  clientId: string | null;
@@ -172,7 +172,7 @@ export declare const Oauth2SettingsSchema: z.ZodObject<{
172
172
  frontendDomain: string | null;
173
173
  keycloakDomain: string | null;
174
174
  } | undefined;
175
- genericOAuth2?: {
175
+ oauth2?: {
176
176
  enabled: boolean;
177
177
  authorizationUrl: string | null;
178
178
  clientId: string | null;
@@ -68,7 +68,7 @@ exports.Oauth2SettingsSchema = zod_1.default.object({
68
68
  clientSecret: null,
69
69
  allowedEmails: [],
70
70
  }),
71
- genericOAuth2: zod_1.default
71
+ oauth2: zod_1.default
72
72
  .object({
73
73
  enabled: zod_1.default.boolean(),
74
74
  clientId: zod_1.default.nullable(zod_1.default.string()),
@@ -90,7 +90,7 @@ export declare const RemnawaveSettingsSchema: z.ZodObject<{
90
90
  frontendDomain: string | null;
91
91
  keycloakDomain: string | null;
92
92
  }>>;
93
- genericOAuth2: z.ZodDefault<z.ZodObject<{
93
+ oauth2: z.ZodDefault<z.ZodObject<{
94
94
  enabled: z.ZodBoolean;
95
95
  clientId: z.ZodNullable<z.ZodString>;
96
96
  clientSecret: z.ZodNullable<z.ZodString>;
@@ -147,7 +147,7 @@ export declare const RemnawaveSettingsSchema: z.ZodObject<{
147
147
  frontendDomain: string | null;
148
148
  keycloakDomain: string | null;
149
149
  };
150
- genericOAuth2: {
150
+ oauth2: {
151
151
  enabled: boolean;
152
152
  authorizationUrl: string | null;
153
153
  clientId: string | null;
@@ -186,7 +186,7 @@ export declare const RemnawaveSettingsSchema: z.ZodObject<{
186
186
  frontendDomain: string | null;
187
187
  keycloakDomain: string | null;
188
188
  } | undefined;
189
- genericOAuth2?: {
189
+ oauth2?: {
190
190
  enabled: boolean;
191
191
  authorizationUrl: string | null;
192
192
  clientId: string | null;
@@ -262,7 +262,7 @@ export declare const RemnawaveSettingsSchema: z.ZodObject<{
262
262
  frontendDomain: string | null;
263
263
  keycloakDomain: string | null;
264
264
  };
265
- genericOAuth2: {
265
+ oauth2: {
266
266
  enabled: boolean;
267
267
  authorizationUrl: string | null;
268
268
  clientId: string | null;
@@ -320,7 +320,7 @@ export declare const RemnawaveSettingsSchema: z.ZodObject<{
320
320
  frontendDomain: string | null;
321
321
  keycloakDomain: string | null;
322
322
  } | undefined;
323
- genericOAuth2?: {
323
+ oauth2?: {
324
324
  enabled: boolean;
325
325
  authorizationUrl: string | null;
326
326
  clientId: string | null;
@@ -6,6 +6,6 @@ exports.OAUTH2_PROVIDERS = {
6
6
  POCKETID: 'pocketid',
7
7
  YANDEX: 'yandex',
8
8
  KEYCLOAK: 'keycloak',
9
- GENERIC_OAUTH2: 'genericOAuth2',
9
+ GENERIC_OAUTH2: 'oauth2',
10
10
  };
11
11
  exports.OAUTH2_PROVIDERS_VALUES = Object.values(exports.OAUTH2_PROVIDERS);
@@ -68,7 +68,7 @@ exports.Oauth2SettingsSchema = zod_1.default.object({
68
68
  clientSecret: null,
69
69
  allowedEmails: [],
70
70
  }),
71
- genericOAuth2: zod_1.default
71
+ oauth2: zod_1.default
72
72
  .object({
73
73
  enabled: zod_1.default.boolean(),
74
74
  clientId: zod_1.default.nullable(zod_1.default.string()),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remnawave/backend-contract",
3
- "version": "2.5.14",
3
+ "version": "2.5.16",
4
4
  "public": true,
5
5
  "license": "AGPL-3.0-only",
6
6
  "description": "A contract library for Remnawave Backend. It can be used in backend and frontend.",