@remnawave/backend-contract 2.0.0-alpha.5 → 2.0.0-alpha.6

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.
@@ -14,127 +14,153 @@ export declare namespace GetUserAccessibleNodesCommand {
14
14
  const ResponseSchema: z.ZodObject<{
15
15
  response: z.ZodObject<{
16
16
  userUuid: z.ZodString;
17
- nodes: z.ZodArray<z.ZodObject<{
17
+ activeNodes: z.ZodArray<z.ZodObject<{
18
18
  uuid: z.ZodString;
19
- name: z.ZodString;
19
+ nodeName: z.ZodString;
20
20
  countryCode: z.ZodString;
21
21
  reasons: z.ZodArray<z.ZodObject<{
22
22
  configProfileUuid: z.ZodString;
23
23
  configProfileName: z.ZodString;
24
24
  activeInbounds: z.ZodArray<z.ZodObject<{
25
25
  inboundTag: z.ZodString;
26
- fromInternalSquads: z.ZodArray<z.ZodString, "many">;
26
+ fromSquads: z.ZodArray<z.ZodObject<{
27
+ squadName: z.ZodString;
28
+ }, "strip", z.ZodTypeAny, {
29
+ squadName: string;
30
+ }, {
31
+ squadName: string;
32
+ }>, "many">;
27
33
  }, "strip", z.ZodTypeAny, {
28
34
  inboundTag: string;
29
- fromInternalSquads: string[];
35
+ fromSquads: {
36
+ squadName: string;
37
+ }[];
30
38
  }, {
31
39
  inboundTag: string;
32
- fromInternalSquads: string[];
40
+ fromSquads: {
41
+ squadName: string;
42
+ }[];
33
43
  }>, "many">;
34
44
  }, "strip", z.ZodTypeAny, {
35
45
  configProfileUuid: string;
36
46
  activeInbounds: {
37
47
  inboundTag: string;
38
- fromInternalSquads: string[];
48
+ fromSquads: {
49
+ squadName: string;
50
+ }[];
39
51
  }[];
40
52
  configProfileName: string;
41
53
  }, {
42
54
  configProfileUuid: string;
43
55
  activeInbounds: {
44
56
  inboundTag: string;
45
- fromInternalSquads: string[];
57
+ fromSquads: {
58
+ squadName: string;
59
+ }[];
46
60
  }[];
47
61
  configProfileName: string;
48
62
  }>, "many">;
49
63
  }, "strip", z.ZodTypeAny, {
50
64
  uuid: string;
51
- name: string;
52
65
  countryCode: string;
66
+ nodeName: string;
53
67
  reasons: {
54
68
  configProfileUuid: string;
55
69
  activeInbounds: {
56
70
  inboundTag: string;
57
- fromInternalSquads: string[];
71
+ fromSquads: {
72
+ squadName: string;
73
+ }[];
58
74
  }[];
59
75
  configProfileName: string;
60
76
  }[];
61
77
  }, {
62
78
  uuid: string;
63
- name: string;
64
79
  countryCode: string;
80
+ nodeName: string;
65
81
  reasons: {
66
82
  configProfileUuid: string;
67
83
  activeInbounds: {
68
84
  inboundTag: string;
69
- fromInternalSquads: string[];
85
+ fromSquads: {
86
+ squadName: string;
87
+ }[];
70
88
  }[];
71
89
  configProfileName: string;
72
90
  }[];
73
91
  }>, "many">;
74
92
  }, "strip", z.ZodTypeAny, {
75
- nodes: {
93
+ userUuid: string;
94
+ activeNodes: {
76
95
  uuid: string;
77
- name: string;
78
96
  countryCode: string;
97
+ nodeName: string;
79
98
  reasons: {
80
99
  configProfileUuid: string;
81
100
  activeInbounds: {
82
101
  inboundTag: string;
83
- fromInternalSquads: string[];
102
+ fromSquads: {
103
+ squadName: string;
104
+ }[];
84
105
  }[];
85
106
  configProfileName: string;
86
107
  }[];
87
108
  }[];
88
- userUuid: string;
89
109
  }, {
90
- nodes: {
110
+ userUuid: string;
111
+ activeNodes: {
91
112
  uuid: string;
92
- name: string;
93
113
  countryCode: string;
114
+ nodeName: string;
94
115
  reasons: {
95
116
  configProfileUuid: string;
96
117
  activeInbounds: {
97
118
  inboundTag: string;
98
- fromInternalSquads: string[];
119
+ fromSquads: {
120
+ squadName: string;
121
+ }[];
99
122
  }[];
100
123
  configProfileName: string;
101
124
  }[];
102
125
  }[];
103
- userUuid: string;
104
126
  }>;
105
127
  }, "strip", z.ZodTypeAny, {
106
128
  response: {
107
- nodes: {
129
+ userUuid: string;
130
+ activeNodes: {
108
131
  uuid: string;
109
- name: string;
110
132
  countryCode: string;
133
+ nodeName: string;
111
134
  reasons: {
112
135
  configProfileUuid: string;
113
136
  activeInbounds: {
114
137
  inboundTag: string;
115
- fromInternalSquads: string[];
138
+ fromSquads: {
139
+ squadName: string;
140
+ }[];
116
141
  }[];
117
142
  configProfileName: string;
118
143
  }[];
119
144
  }[];
120
- userUuid: string;
121
145
  };
122
146
  }, {
123
147
  response: {
124
- nodes: {
148
+ userUuid: string;
149
+ activeNodes: {
125
150
  uuid: string;
126
- name: string;
127
151
  countryCode: string;
152
+ nodeName: string;
128
153
  reasons: {
129
154
  configProfileUuid: string;
130
155
  activeInbounds: {
131
156
  inboundTag: string;
132
- fromInternalSquads: string[];
157
+ fromSquads: {
158
+ squadName: string;
159
+ }[];
133
160
  }[];
134
161
  configProfileName: string;
135
162
  }[];
136
163
  }[];
137
- userUuid: string;
138
164
  };
139
165
  }>;
140
166
  type Response = z.infer<typeof ResponseSchema>;
@@ -1 +1 @@
1
- {"version":3,"file":"get-user-accessible-nodes.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/get-user-accessible-nodes.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,6BAA6B,CAAC;IACpC,MAAM,GAAG,0BAAkC,CAAC;IAC5C,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAuBzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
1
+ {"version":3,"file":"get-user-accessible-nodes.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/get-user-accessible-nodes.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,6BAA6B,CAAC;IACpC,MAAM,GAAG,0BAAkC,CAAC;IAC5C,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA2BzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -15,16 +15,18 @@ var GetUserAccessibleNodesCommand;
15
15
  GetUserAccessibleNodesCommand.ResponseSchema = zod_1.z.object({
16
16
  response: zod_1.z.object({
17
17
  userUuid: zod_1.z.string().uuid(),
18
- nodes: zod_1.z.array(zod_1.z.object({
18
+ activeNodes: zod_1.z.array(zod_1.z.object({
19
19
  uuid: zod_1.z.string().uuid(),
20
- name: zod_1.z.string(),
20
+ nodeName: zod_1.z.string(),
21
21
  countryCode: zod_1.z.string(),
22
22
  reasons: zod_1.z.array(zod_1.z.object({
23
23
  configProfileUuid: zod_1.z.string().uuid(),
24
24
  configProfileName: zod_1.z.string(),
25
25
  activeInbounds: zod_1.z.array(zod_1.z.object({
26
26
  inboundTag: zod_1.z.string(),
27
- fromInternalSquads: zod_1.z.array(zod_1.z.string()),
27
+ fromSquads: zod_1.z.array(zod_1.z.object({
28
+ squadName: zod_1.z.string(),
29
+ })),
28
30
  })),
29
31
  })),
30
32
  })),
@@ -15,16 +15,18 @@ var GetUserAccessibleNodesCommand;
15
15
  GetUserAccessibleNodesCommand.ResponseSchema = zod_1.z.object({
16
16
  response: zod_1.z.object({
17
17
  userUuid: zod_1.z.string().uuid(),
18
- nodes: zod_1.z.array(zod_1.z.object({
18
+ activeNodes: zod_1.z.array(zod_1.z.object({
19
19
  uuid: zod_1.z.string().uuid(),
20
- name: zod_1.z.string(),
20
+ nodeName: zod_1.z.string(),
21
21
  countryCode: zod_1.z.string(),
22
22
  reasons: zod_1.z.array(zod_1.z.object({
23
23
  configProfileUuid: zod_1.z.string().uuid(),
24
24
  configProfileName: zod_1.z.string(),
25
25
  activeInbounds: zod_1.z.array(zod_1.z.object({
26
26
  inboundTag: zod_1.z.string(),
27
- fromInternalSquads: zod_1.z.array(zod_1.z.string()),
27
+ fromSquads: zod_1.z.array(zod_1.z.object({
28
+ squadName: zod_1.z.string(),
29
+ })),
28
30
  })),
29
31
  })),
30
32
  })),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remnawave/backend-contract",
3
- "version": "2.0.0-alpha.5",
3
+ "version": "2.0.0-alpha.6",
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.",