@remnawave/backend-contract 2.2.2 → 2.2.5
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/build/backend/api/controllers/external-squads.d.ts +13 -0
- package/build/backend/api/controllers/external-squads.d.ts.map +1 -0
- package/build/backend/api/controllers/external-squads.js +16 -0
- package/build/backend/api/controllers/index.d.ts +1 -0
- package/build/backend/api/controllers/index.d.ts.map +1 -1
- package/build/backend/api/controllers/index.js +1 -0
- package/build/backend/api/controllers/subscription-template.d.ts +4 -1
- package/build/backend/api/controllers/subscription-template.d.ts.map +1 -1
- package/build/backend/api/controllers/subscription-template.js +5 -2
- package/build/backend/api/controllers-info.d.ts +4 -0
- package/build/backend/api/controllers-info.d.ts.map +1 -1
- package/build/backend/api/controllers-info.js +4 -0
- package/build/backend/api/routes.d.ts +15 -1
- package/build/backend/api/routes.d.ts.map +1 -1
- package/build/backend/api/routes.js +15 -1
- package/build/backend/commands/external-squads/bulk-actions/add-users-to-external-squad.command.d.ts +33 -0
- package/build/backend/commands/external-squads/bulk-actions/add-users-to-external-squad.command.d.ts.map +1 -0
- package/build/backend/commands/external-squads/bulk-actions/add-users-to-external-squad.command.js +20 -0
- package/build/backend/commands/external-squads/bulk-actions/delete-users-from-external-squad.command.d.ts +33 -0
- package/build/backend/commands/external-squads/bulk-actions/delete-users-from-external-squad.command.d.ts.map +1 -0
- package/build/backend/commands/external-squads/bulk-actions/delete-users-from-external-squad.command.js +20 -0
- package/build/backend/commands/external-squads/bulk-actions/index.d.ts +3 -0
- package/build/backend/commands/external-squads/bulk-actions/index.d.ts.map +1 -0
- package/build/backend/commands/external-squads/bulk-actions/index.js +18 -0
- package/build/backend/commands/external-squads/create-external-squad.command.d.ts +100 -0
- package/build/backend/commands/external-squads/create-external-squad.command.d.ts.map +1 -0
- package/build/backend/commands/external-squads/create-external-squad.command.js +23 -0
- package/build/backend/commands/external-squads/delete-external-squad.command.d.ts +33 -0
- package/build/backend/commands/external-squads/delete-external-squad.command.d.ts.map +1 -0
- package/build/backend/commands/external-squads/delete-external-squad.command.js +20 -0
- package/build/backend/commands/external-squads/get-external-squad-by-uuid.d.ts +100 -0
- package/build/backend/commands/external-squads/get-external-squad-by-uuid.d.ts.map +1 -0
- package/build/backend/commands/external-squads/get-external-squad-by-uuid.js +19 -0
- package/build/backend/commands/external-squads/get-external-squads.command.d.ts +131 -0
- package/build/backend/commands/external-squads/get-external-squads.command.d.ts.map +1 -0
- package/build/backend/commands/external-squads/get-external-squads.command.js +19 -0
- package/build/backend/commands/external-squads/index.d.ts +7 -0
- package/build/backend/commands/external-squads/index.d.ts.map +1 -0
- package/build/backend/commands/external-squads/index.js +22 -0
- package/build/backend/commands/external-squads/update-external-squad.command.d.ts +128 -0
- package/build/backend/commands/external-squads/update-external-squad.command.d.ts.map +1 -0
- package/build/backend/commands/external-squads/update-external-squad.command.js +31 -0
- package/build/backend/commands/index.d.ts +1 -0
- package/build/backend/commands/index.d.ts.map +1 -1
- package/build/backend/commands/index.js +1 -0
- package/build/backend/commands/subscription-settings/get-subscription-settings.command.d.ts +33 -22
- package/build/backend/commands/subscription-settings/get-subscription-settings.command.d.ts.map +1 -1
- package/build/backend/commands/subscription-settings/update-subscription-settings.command.d.ts +60 -40
- package/build/backend/commands/subscription-settings/update-subscription-settings.command.d.ts.map +1 -1
- package/build/backend/commands/subscription-template/create-template.command.d.ts +70 -0
- package/build/backend/commands/subscription-template/create-template.command.d.ts.map +1 -0
- package/build/backend/commands/subscription-template/create-template.command.js +30 -0
- package/build/backend/commands/subscription-template/delete-subscription-template.command.d.ts +33 -0
- package/build/backend/commands/subscription-template/delete-subscription-template.command.d.ts.map +1 -0
- package/build/backend/commands/subscription-template/delete-subscription-template.command.js +20 -0
- package/build/backend/commands/subscription-template/get-template.command.d.ts +9 -11
- package/build/backend/commands/subscription-template/get-template.command.d.ts.map +1 -1
- package/build/backend/commands/subscription-template/get-template.command.js +4 -3
- package/build/backend/commands/subscription-template/get-templates.command.d.ts +79 -0
- package/build/backend/commands/subscription-template/get-templates.command.d.ts.map +1 -0
- package/build/backend/commands/subscription-template/get-templates.command.js +25 -0
- package/build/backend/commands/subscription-template/index.d.ts +3 -0
- package/build/backend/commands/subscription-template/index.d.ts.map +1 -1
- package/build/backend/commands/subscription-template/index.js +3 -0
- package/build/backend/commands/subscription-template/update-template.command.d.ts +11 -10
- package/build/backend/commands/subscription-template/update-template.command.d.ts.map +1 -1
- package/build/backend/commands/subscription-template/update-template.command.js +8 -2
- package/build/backend/commands/subscriptions/get-by/get-raw-subscription-by-short-uuid.command.d.ts +7 -0
- package/build/backend/commands/subscriptions/get-by/get-raw-subscription-by-short-uuid.command.d.ts.map +1 -1
- package/build/backend/commands/system/testers/test-srr-matcher.command.d.ts +54 -36
- package/build/backend/commands/system/testers/test-srr-matcher.command.d.ts.map +1 -1
- package/build/backend/commands/users/actions/disable-user.command.d.ts +5 -0
- package/build/backend/commands/users/actions/disable-user.command.d.ts.map +1 -1
- package/build/backend/commands/users/actions/enable-user.command.d.ts +5 -0
- package/build/backend/commands/users/actions/enable-user.command.d.ts.map +1 -1
- package/build/backend/commands/users/actions/reset-user-traffic.command.d.ts +5 -0
- package/build/backend/commands/users/actions/reset-user-traffic.command.d.ts.map +1 -1
- package/build/backend/commands/users/actions/revoke-user-subscription.command.d.ts +5 -0
- package/build/backend/commands/users/actions/revoke-user-subscription.command.d.ts.map +1 -1
- package/build/backend/commands/users/bulk/bulk-update-users.command.d.ts +5 -0
- package/build/backend/commands/users/bulk/bulk-update-users.command.d.ts.map +1 -1
- package/build/backend/commands/users/bulk/bulk-update-users.command.js +3 -0
- package/build/backend/commands/users/create-user.command.d.ts +8 -0
- package/build/backend/commands/users/create-user.command.d.ts.map +1 -1
- package/build/backend/commands/users/create-user.command.js +3 -0
- package/build/backend/commands/users/get-all-users.command.d.ts +7 -0
- package/build/backend/commands/users/get-all-users.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-by/get-user-by-email.command.d.ts +5 -0
- package/build/backend/commands/users/get-by/get-user-by-email.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-by/get-user-by-short-uuid.command.d.ts +5 -0
- package/build/backend/commands/users/get-by/get-user-by-short-uuid.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-by/get-user-by-tag.command.d.ts +5 -0
- package/build/backend/commands/users/get-by/get-user-by-tag.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-by/get-user-by-telegram-id.command.d.ts +5 -0
- package/build/backend/commands/users/get-by/get-user-by-telegram-id.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-by/get-user-by-username.command.d.ts +5 -0
- package/build/backend/commands/users/get-by/get-user-by-username.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-user-by-uuid.command.d.ts +5 -0
- package/build/backend/commands/users/get-user-by-uuid.command.d.ts.map +1 -1
- package/build/backend/commands/users/update-user.command.d.ts +10 -0
- package/build/backend/commands/users/update-user.command.d.ts.map +1 -1
- package/build/backend/commands/users/update-user.command.js +3 -0
- package/build/backend/constants/cache-keys/cache-keys.constants.d.ts +2 -0
- package/build/backend/constants/cache-keys/cache-keys.constants.d.ts.map +1 -1
- package/build/backend/constants/cache-keys/cache-keys.constants.js +1 -0
- package/build/backend/constants/errors/errors.d.ts +115 -0
- package/build/backend/constants/errors/errors.d.ts.map +1 -1
- package/build/backend/constants/errors/errors.js +115 -0
- package/build/backend/models/extended-users.schema.d.ts +3 -0
- package/build/backend/models/extended-users.schema.d.ts.map +1 -1
- package/build/backend/models/external-squad.schema.d.ts +56 -0
- package/build/backend/models/external-squad.schema.d.ts.map +1 -0
- package/build/backend/models/external-squad.schema.js +24 -0
- package/build/backend/models/index.d.ts +1 -0
- package/build/backend/models/index.d.ts.map +1 -1
- package/build/backend/models/index.js +1 -0
- package/build/backend/models/response-rules/response-rule-modifications.schema.d.ts +9 -6
- package/build/backend/models/response-rules/response-rule-modifications.schema.d.ts.map +1 -1
- package/build/backend/models/response-rules/response-rule-modifications.schema.js +8 -0
- package/build/backend/models/response-rules/response-rule.schema.d.ts +30 -20
- package/build/backend/models/response-rules/response-rule.schema.d.ts.map +1 -1
- package/build/backend/models/response-rules/response-rules-config.schema.d.ts +21 -14
- package/build/backend/models/response-rules/response-rules-config.schema.d.ts.map +1 -1
- package/build/backend/models/subscription-settings.schema.d.ts +27 -18
- package/build/backend/models/subscription-settings.schema.d.ts.map +1 -1
- package/build/backend/models/users.schema.d.ts +3 -0
- package/build/backend/models/users.schema.d.ts.map +1 -1
- package/build/backend/models/users.schema.js +1 -0
- package/build/frontend/api/controllers/external-squads.js +16 -0
- package/build/frontend/api/controllers/index.js +1 -0
- package/build/frontend/api/controllers/subscription-template.js +5 -2
- package/build/frontend/api/controllers-info.js +4 -0
- package/build/frontend/api/routes.js +15 -1
- package/build/frontend/commands/external-squads/bulk-actions/add-users-to-external-squad.command.js +20 -0
- package/build/frontend/commands/external-squads/bulk-actions/delete-users-from-external-squad.command.js +20 -0
- package/build/frontend/commands/external-squads/bulk-actions/index.js +18 -0
- package/build/frontend/commands/external-squads/create-external-squad.command.js +23 -0
- package/build/frontend/commands/external-squads/delete-external-squad.command.js +20 -0
- package/build/frontend/commands/external-squads/get-external-squad-by-uuid.js +19 -0
- package/build/frontend/commands/external-squads/get-external-squads.command.js +19 -0
- package/build/frontend/commands/external-squads/index.js +22 -0
- package/build/frontend/commands/external-squads/update-external-squad.command.js +31 -0
- package/build/frontend/commands/index.js +1 -0
- package/build/frontend/commands/subscription-template/create-template.command.js +30 -0
- package/build/frontend/commands/subscription-template/delete-subscription-template.command.js +20 -0
- package/build/frontend/commands/subscription-template/get-template.command.js +4 -3
- package/build/frontend/commands/subscription-template/get-templates.command.js +25 -0
- package/build/frontend/commands/subscription-template/index.js +3 -0
- package/build/frontend/commands/subscription-template/update-template.command.js +8 -2
- package/build/frontend/commands/users/bulk/bulk-update-users.command.js +3 -0
- package/build/frontend/commands/users/create-user.command.js +3 -0
- package/build/frontend/commands/users/update-user.command.js +3 -0
- package/build/frontend/constants/cache-keys/cache-keys.constants.js +1 -0
- package/build/frontend/constants/errors/errors.js +115 -0
- package/build/frontend/models/external-squad.schema.js +24 -0
- package/build/frontend/models/index.js +1 -0
- package/build/frontend/models/response-rules/response-rule-modifications.schema.js +8 -0
- package/build/frontend/models/users.schema.js +1 -0
- package/package.json +1 -1
package/build/backend/commands/subscription-settings/update-subscription-settings.command.d.ts
CHANGED
|
@@ -72,7 +72,7 @@ export declare namespace UpdateSubscriptionSettingsCommand {
|
|
|
72
72
|
readonly SINGBOX: "SINGBOX";
|
|
73
73
|
}>;
|
|
74
74
|
responseModifications: z.ZodOptional<z.ZodObject<{
|
|
75
|
-
headers: z.ZodArray<z.ZodObject<{
|
|
75
|
+
headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
76
76
|
key: z.ZodString;
|
|
77
77
|
value: z.ZodString;
|
|
78
78
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -81,17 +81,20 @@ export declare namespace UpdateSubscriptionSettingsCommand {
|
|
|
81
81
|
}, {
|
|
82
82
|
value: string;
|
|
83
83
|
key: string;
|
|
84
|
-
}>, "many"
|
|
84
|
+
}>, "many">>;
|
|
85
|
+
subscriptionTemplate: z.ZodOptional<z.ZodString>;
|
|
85
86
|
}, "strip", z.ZodTypeAny, {
|
|
86
|
-
headers
|
|
87
|
+
headers?: {
|
|
87
88
|
value: string;
|
|
88
89
|
key: string;
|
|
89
|
-
}[];
|
|
90
|
+
}[] | undefined;
|
|
91
|
+
subscriptionTemplate?: string | undefined;
|
|
90
92
|
}, {
|
|
91
|
-
headers
|
|
93
|
+
headers?: {
|
|
92
94
|
value: string;
|
|
93
95
|
key: string;
|
|
94
|
-
}[];
|
|
96
|
+
}[] | undefined;
|
|
97
|
+
subscriptionTemplate?: string | undefined;
|
|
95
98
|
}>>;
|
|
96
99
|
}, "strip", z.ZodTypeAny, {
|
|
97
100
|
name: string;
|
|
@@ -106,10 +109,11 @@ export declare namespace UpdateSubscriptionSettingsCommand {
|
|
|
106
109
|
responseType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64" | "BROWSER" | "BLOCK" | "STATUS_CODE_404" | "STATUS_CODE_451" | "SOCKET_DROP";
|
|
107
110
|
description?: string | undefined;
|
|
108
111
|
responseModifications?: {
|
|
109
|
-
headers
|
|
112
|
+
headers?: {
|
|
110
113
|
value: string;
|
|
111
114
|
key: string;
|
|
112
|
-
}[];
|
|
115
|
+
}[] | undefined;
|
|
116
|
+
subscriptionTemplate?: string | undefined;
|
|
113
117
|
} | undefined;
|
|
114
118
|
}, {
|
|
115
119
|
name: string;
|
|
@@ -124,10 +128,11 @@ export declare namespace UpdateSubscriptionSettingsCommand {
|
|
|
124
128
|
responseType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64" | "BROWSER" | "BLOCK" | "STATUS_CODE_404" | "STATUS_CODE_451" | "SOCKET_DROP";
|
|
125
129
|
description?: string | undefined;
|
|
126
130
|
responseModifications?: {
|
|
127
|
-
headers
|
|
131
|
+
headers?: {
|
|
128
132
|
value: string;
|
|
129
133
|
key: string;
|
|
130
|
-
}[];
|
|
134
|
+
}[] | undefined;
|
|
135
|
+
subscriptionTemplate?: string | undefined;
|
|
131
136
|
} | undefined;
|
|
132
137
|
}>, "many">;
|
|
133
138
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -145,10 +150,11 @@ export declare namespace UpdateSubscriptionSettingsCommand {
|
|
|
145
150
|
responseType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64" | "BROWSER" | "BLOCK" | "STATUS_CODE_404" | "STATUS_CODE_451" | "SOCKET_DROP";
|
|
146
151
|
description?: string | undefined;
|
|
147
152
|
responseModifications?: {
|
|
148
|
-
headers
|
|
153
|
+
headers?: {
|
|
149
154
|
value: string;
|
|
150
155
|
key: string;
|
|
151
|
-
}[];
|
|
156
|
+
}[] | undefined;
|
|
157
|
+
subscriptionTemplate?: string | undefined;
|
|
152
158
|
} | undefined;
|
|
153
159
|
}[];
|
|
154
160
|
}, {
|
|
@@ -166,10 +172,11 @@ export declare namespace UpdateSubscriptionSettingsCommand {
|
|
|
166
172
|
responseType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64" | "BROWSER" | "BLOCK" | "STATUS_CODE_404" | "STATUS_CODE_451" | "SOCKET_DROP";
|
|
167
173
|
description?: string | undefined;
|
|
168
174
|
responseModifications?: {
|
|
169
|
-
headers
|
|
175
|
+
headers?: {
|
|
170
176
|
value: string;
|
|
171
177
|
key: string;
|
|
172
|
-
}[];
|
|
178
|
+
}[] | undefined;
|
|
179
|
+
subscriptionTemplate?: string | undefined;
|
|
173
180
|
} | undefined;
|
|
174
181
|
}[];
|
|
175
182
|
}>>;
|
|
@@ -204,10 +211,11 @@ export declare namespace UpdateSubscriptionSettingsCommand {
|
|
|
204
211
|
responseType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64" | "BROWSER" | "BLOCK" | "STATUS_CODE_404" | "STATUS_CODE_451" | "SOCKET_DROP";
|
|
205
212
|
description?: string | undefined;
|
|
206
213
|
responseModifications?: {
|
|
207
|
-
headers
|
|
214
|
+
headers?: {
|
|
208
215
|
value: string;
|
|
209
216
|
key: string;
|
|
210
|
-
}[];
|
|
217
|
+
}[] | undefined;
|
|
218
|
+
subscriptionTemplate?: string | undefined;
|
|
211
219
|
} | undefined;
|
|
212
220
|
}[];
|
|
213
221
|
} | undefined;
|
|
@@ -242,10 +250,11 @@ export declare namespace UpdateSubscriptionSettingsCommand {
|
|
|
242
250
|
responseType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64" | "BROWSER" | "BLOCK" | "STATUS_CODE_404" | "STATUS_CODE_451" | "SOCKET_DROP";
|
|
243
251
|
description?: string | undefined;
|
|
244
252
|
responseModifications?: {
|
|
245
|
-
headers
|
|
253
|
+
headers?: {
|
|
246
254
|
value: string;
|
|
247
255
|
key: string;
|
|
248
|
-
}[];
|
|
256
|
+
}[] | undefined;
|
|
257
|
+
subscriptionTemplate?: string | undefined;
|
|
249
258
|
} | undefined;
|
|
250
259
|
}[];
|
|
251
260
|
} | undefined;
|
|
@@ -321,7 +330,7 @@ export declare namespace UpdateSubscriptionSettingsCommand {
|
|
|
321
330
|
readonly SINGBOX: "SINGBOX";
|
|
322
331
|
}>;
|
|
323
332
|
responseModifications: z.ZodOptional<z.ZodObject<{
|
|
324
|
-
headers: z.ZodArray<z.ZodObject<{
|
|
333
|
+
headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
325
334
|
key: z.ZodString;
|
|
326
335
|
value: z.ZodString;
|
|
327
336
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -330,17 +339,20 @@ export declare namespace UpdateSubscriptionSettingsCommand {
|
|
|
330
339
|
}, {
|
|
331
340
|
value: string;
|
|
332
341
|
key: string;
|
|
333
|
-
}>, "many"
|
|
342
|
+
}>, "many">>;
|
|
343
|
+
subscriptionTemplate: z.ZodOptional<z.ZodString>;
|
|
334
344
|
}, "strip", z.ZodTypeAny, {
|
|
335
|
-
headers
|
|
345
|
+
headers?: {
|
|
336
346
|
value: string;
|
|
337
347
|
key: string;
|
|
338
|
-
}[];
|
|
348
|
+
}[] | undefined;
|
|
349
|
+
subscriptionTemplate?: string | undefined;
|
|
339
350
|
}, {
|
|
340
|
-
headers
|
|
351
|
+
headers?: {
|
|
341
352
|
value: string;
|
|
342
353
|
key: string;
|
|
343
|
-
}[];
|
|
354
|
+
}[] | undefined;
|
|
355
|
+
subscriptionTemplate?: string | undefined;
|
|
344
356
|
}>>;
|
|
345
357
|
}, "strip", z.ZodTypeAny, {
|
|
346
358
|
name: string;
|
|
@@ -355,10 +367,11 @@ export declare namespace UpdateSubscriptionSettingsCommand {
|
|
|
355
367
|
responseType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64" | "BROWSER" | "BLOCK" | "STATUS_CODE_404" | "STATUS_CODE_451" | "SOCKET_DROP";
|
|
356
368
|
description?: string | undefined;
|
|
357
369
|
responseModifications?: {
|
|
358
|
-
headers
|
|
370
|
+
headers?: {
|
|
359
371
|
value: string;
|
|
360
372
|
key: string;
|
|
361
|
-
}[];
|
|
373
|
+
}[] | undefined;
|
|
374
|
+
subscriptionTemplate?: string | undefined;
|
|
362
375
|
} | undefined;
|
|
363
376
|
}, {
|
|
364
377
|
name: string;
|
|
@@ -373,10 +386,11 @@ export declare namespace UpdateSubscriptionSettingsCommand {
|
|
|
373
386
|
responseType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64" | "BROWSER" | "BLOCK" | "STATUS_CODE_404" | "STATUS_CODE_451" | "SOCKET_DROP";
|
|
374
387
|
description?: string | undefined;
|
|
375
388
|
responseModifications?: {
|
|
376
|
-
headers
|
|
389
|
+
headers?: {
|
|
377
390
|
value: string;
|
|
378
391
|
key: string;
|
|
379
|
-
}[];
|
|
392
|
+
}[] | undefined;
|
|
393
|
+
subscriptionTemplate?: string | undefined;
|
|
380
394
|
} | undefined;
|
|
381
395
|
}>, "many">;
|
|
382
396
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -394,10 +408,11 @@ export declare namespace UpdateSubscriptionSettingsCommand {
|
|
|
394
408
|
responseType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64" | "BROWSER" | "BLOCK" | "STATUS_CODE_404" | "STATUS_CODE_451" | "SOCKET_DROP";
|
|
395
409
|
description?: string | undefined;
|
|
396
410
|
responseModifications?: {
|
|
397
|
-
headers
|
|
411
|
+
headers?: {
|
|
398
412
|
value: string;
|
|
399
413
|
key: string;
|
|
400
|
-
}[];
|
|
414
|
+
}[] | undefined;
|
|
415
|
+
subscriptionTemplate?: string | undefined;
|
|
401
416
|
} | undefined;
|
|
402
417
|
}[];
|
|
403
418
|
}, {
|
|
@@ -415,10 +430,11 @@ export declare namespace UpdateSubscriptionSettingsCommand {
|
|
|
415
430
|
responseType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64" | "BROWSER" | "BLOCK" | "STATUS_CODE_404" | "STATUS_CODE_451" | "SOCKET_DROP";
|
|
416
431
|
description?: string | undefined;
|
|
417
432
|
responseModifications?: {
|
|
418
|
-
headers
|
|
433
|
+
headers?: {
|
|
419
434
|
value: string;
|
|
420
435
|
key: string;
|
|
421
|
-
}[];
|
|
436
|
+
}[] | undefined;
|
|
437
|
+
subscriptionTemplate?: string | undefined;
|
|
422
438
|
} | undefined;
|
|
423
439
|
}[];
|
|
424
440
|
}>>;
|
|
@@ -457,10 +473,11 @@ export declare namespace UpdateSubscriptionSettingsCommand {
|
|
|
457
473
|
responseType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64" | "BROWSER" | "BLOCK" | "STATUS_CODE_404" | "STATUS_CODE_451" | "SOCKET_DROP";
|
|
458
474
|
description?: string | undefined;
|
|
459
475
|
responseModifications?: {
|
|
460
|
-
headers
|
|
476
|
+
headers?: {
|
|
461
477
|
value: string;
|
|
462
478
|
key: string;
|
|
463
|
-
}[];
|
|
479
|
+
}[] | undefined;
|
|
480
|
+
subscriptionTemplate?: string | undefined;
|
|
464
481
|
} | undefined;
|
|
465
482
|
}[];
|
|
466
483
|
} | null;
|
|
@@ -497,10 +514,11 @@ export declare namespace UpdateSubscriptionSettingsCommand {
|
|
|
497
514
|
responseType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64" | "BROWSER" | "BLOCK" | "STATUS_CODE_404" | "STATUS_CODE_451" | "SOCKET_DROP";
|
|
498
515
|
description?: string | undefined;
|
|
499
516
|
responseModifications?: {
|
|
500
|
-
headers
|
|
517
|
+
headers?: {
|
|
501
518
|
value: string;
|
|
502
519
|
key: string;
|
|
503
|
-
}[];
|
|
520
|
+
}[] | undefined;
|
|
521
|
+
subscriptionTemplate?: string | undefined;
|
|
504
522
|
} | undefined;
|
|
505
523
|
}[];
|
|
506
524
|
} | null;
|
|
@@ -539,10 +557,11 @@ export declare namespace UpdateSubscriptionSettingsCommand {
|
|
|
539
557
|
responseType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64" | "BROWSER" | "BLOCK" | "STATUS_CODE_404" | "STATUS_CODE_451" | "SOCKET_DROP";
|
|
540
558
|
description?: string | undefined;
|
|
541
559
|
responseModifications?: {
|
|
542
|
-
headers
|
|
560
|
+
headers?: {
|
|
543
561
|
value: string;
|
|
544
562
|
key: string;
|
|
545
|
-
}[];
|
|
563
|
+
}[] | undefined;
|
|
564
|
+
subscriptionTemplate?: string | undefined;
|
|
546
565
|
} | undefined;
|
|
547
566
|
}[];
|
|
548
567
|
} | null;
|
|
@@ -581,10 +600,11 @@ export declare namespace UpdateSubscriptionSettingsCommand {
|
|
|
581
600
|
responseType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64" | "BROWSER" | "BLOCK" | "STATUS_CODE_404" | "STATUS_CODE_451" | "SOCKET_DROP";
|
|
582
601
|
description?: string | undefined;
|
|
583
602
|
responseModifications?: {
|
|
584
|
-
headers
|
|
603
|
+
headers?: {
|
|
585
604
|
value: string;
|
|
586
605
|
key: string;
|
|
587
|
-
}[];
|
|
606
|
+
}[] | undefined;
|
|
607
|
+
subscriptionTemplate?: string | undefined;
|
|
588
608
|
} | undefined;
|
|
589
609
|
}[];
|
|
590
610
|
} | null;
|
package/build/backend/commands/subscription-settings/update-subscription-settings.command.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-subscription-settings.command.d.ts","sourceRoot":"","sources":["../../../../commands/subscription-settings/update-subscription-settings.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,iCAAiC,CAAC;IACxC,MAAM,GAAG,+BAAwC,CAAC;IAClD,MAAM,OAAO,+BAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":"update-subscription-settings.command.d.ts","sourceRoot":"","sources":["../../../../commands/subscription-settings/update-subscription-settings.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,iCAAiC,CAAC;IACxC,MAAM,GAAG,+BAAwC,CAAC;IAClD,MAAM,OAAO,+BAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAsCxB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace CreateSubscriptionTemplateCommand {
|
|
3
|
+
const url: "/api/subscription-templates/";
|
|
4
|
+
const TSQ_url: "/api/subscription-templates/";
|
|
5
|
+
const endpointDetails: import("../../constants").EndpointDetails;
|
|
6
|
+
const RequestSchema: z.ZodObject<{
|
|
7
|
+
name: z.ZodString;
|
|
8
|
+
templateType: z.ZodNativeEnum<{
|
|
9
|
+
readonly XRAY_JSON: "XRAY_JSON";
|
|
10
|
+
readonly XRAY_BASE64: "XRAY_BASE64";
|
|
11
|
+
readonly MIHOMO: "MIHOMO";
|
|
12
|
+
readonly STASH: "STASH";
|
|
13
|
+
readonly CLASH: "CLASH";
|
|
14
|
+
readonly SINGBOX: "SINGBOX";
|
|
15
|
+
}>;
|
|
16
|
+
}, "strip", z.ZodTypeAny, {
|
|
17
|
+
name: string;
|
|
18
|
+
templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
|
|
19
|
+
}, {
|
|
20
|
+
name: string;
|
|
21
|
+
templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
|
|
22
|
+
}>;
|
|
23
|
+
type Request = z.infer<typeof RequestSchema>;
|
|
24
|
+
const ResponseSchema: z.ZodObject<{
|
|
25
|
+
response: z.ZodObject<{
|
|
26
|
+
uuid: z.ZodString;
|
|
27
|
+
name: z.ZodString;
|
|
28
|
+
templateType: z.ZodNativeEnum<{
|
|
29
|
+
readonly XRAY_JSON: "XRAY_JSON";
|
|
30
|
+
readonly XRAY_BASE64: "XRAY_BASE64";
|
|
31
|
+
readonly MIHOMO: "MIHOMO";
|
|
32
|
+
readonly STASH: "STASH";
|
|
33
|
+
readonly CLASH: "CLASH";
|
|
34
|
+
readonly SINGBOX: "SINGBOX";
|
|
35
|
+
}>;
|
|
36
|
+
templateJson: z.ZodNullable<z.ZodUnknown>;
|
|
37
|
+
encodedTemplateYaml: z.ZodNullable<z.ZodString>;
|
|
38
|
+
}, "strip", z.ZodTypeAny, {
|
|
39
|
+
uuid: string;
|
|
40
|
+
name: string;
|
|
41
|
+
templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
|
|
42
|
+
encodedTemplateYaml: string | null;
|
|
43
|
+
templateJson?: unknown;
|
|
44
|
+
}, {
|
|
45
|
+
uuid: string;
|
|
46
|
+
name: string;
|
|
47
|
+
templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
|
|
48
|
+
encodedTemplateYaml: string | null;
|
|
49
|
+
templateJson?: unknown;
|
|
50
|
+
}>;
|
|
51
|
+
}, "strip", z.ZodTypeAny, {
|
|
52
|
+
response: {
|
|
53
|
+
uuid: string;
|
|
54
|
+
name: string;
|
|
55
|
+
templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
|
|
56
|
+
encodedTemplateYaml: string | null;
|
|
57
|
+
templateJson?: unknown;
|
|
58
|
+
};
|
|
59
|
+
}, {
|
|
60
|
+
response: {
|
|
61
|
+
uuid: string;
|
|
62
|
+
name: string;
|
|
63
|
+
templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
|
|
64
|
+
encodedTemplateYaml: string | null;
|
|
65
|
+
templateJson?: unknown;
|
|
66
|
+
};
|
|
67
|
+
}>;
|
|
68
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
69
|
+
}
|
|
70
|
+
//# sourceMappingURL=create-template.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-template.command.d.ts","sourceRoot":"","sources":["../../../../commands/subscription-template/create-template.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,iCAAiC,CAAC;IACxC,MAAM,GAAG,gCAAwC,CAAC;IAClD,MAAM,OAAO,gCAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;;;;;;;;;;;MAUxB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAQzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateSubscriptionTemplateCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const api_1 = require("../../api");
|
|
6
|
+
const constants_1 = require("../../constants");
|
|
7
|
+
const constants_2 = require("../../constants");
|
|
8
|
+
var CreateSubscriptionTemplateCommand;
|
|
9
|
+
(function (CreateSubscriptionTemplateCommand) {
|
|
10
|
+
CreateSubscriptionTemplateCommand.url = api_1.REST_API.SUBSCRIPTION_TEMPLATE.CREATE;
|
|
11
|
+
CreateSubscriptionTemplateCommand.TSQ_url = CreateSubscriptionTemplateCommand.url;
|
|
12
|
+
CreateSubscriptionTemplateCommand.endpointDetails = (0, constants_2.getEndpointDetails)(api_1.SUBSCRIPTION_TEMPLATE_ROUTES.CREATE, 'post', 'Create subscription template');
|
|
13
|
+
CreateSubscriptionTemplateCommand.RequestSchema = zod_1.z.object({
|
|
14
|
+
name: zod_1.z
|
|
15
|
+
.string()
|
|
16
|
+
.min(2, 'Name must be at least 2 characters')
|
|
17
|
+
.max(255, 'Name must be less than 255 characters')
|
|
18
|
+
.regex(/^[A-Za-z0-9_\s-]+$/, 'Name can only contain letters, numbers, underscores, dashes and spaces'),
|
|
19
|
+
templateType: zod_1.z.nativeEnum(constants_1.SUBSCRIPTION_TEMPLATE_TYPE),
|
|
20
|
+
});
|
|
21
|
+
CreateSubscriptionTemplateCommand.ResponseSchema = zod_1.z.object({
|
|
22
|
+
response: zod_1.z.object({
|
|
23
|
+
uuid: zod_1.z.string().uuid(),
|
|
24
|
+
name: zod_1.z.string(),
|
|
25
|
+
templateType: zod_1.z.nativeEnum(constants_1.SUBSCRIPTION_TEMPLATE_TYPE),
|
|
26
|
+
templateJson: zod_1.z.nullable(zod_1.z.unknown()),
|
|
27
|
+
encodedTemplateYaml: zod_1.z.nullable(zod_1.z.string()),
|
|
28
|
+
}),
|
|
29
|
+
});
|
|
30
|
+
})(CreateSubscriptionTemplateCommand || (exports.CreateSubscriptionTemplateCommand = CreateSubscriptionTemplateCommand = {}));
|
package/build/backend/commands/subscription-template/delete-subscription-template.command.d.ts
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace DeleteSubscriptionTemplateCommand {
|
|
3
|
+
const url: (uuid: string) => string;
|
|
4
|
+
const TSQ_url: string;
|
|
5
|
+
const endpointDetails: import("../../constants").EndpointDetails;
|
|
6
|
+
const RequestSchema: z.ZodObject<{
|
|
7
|
+
uuid: z.ZodString;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
uuid: string;
|
|
10
|
+
}, {
|
|
11
|
+
uuid: string;
|
|
12
|
+
}>;
|
|
13
|
+
type Request = z.infer<typeof RequestSchema>;
|
|
14
|
+
const ResponseSchema: z.ZodObject<{
|
|
15
|
+
response: z.ZodObject<{
|
|
16
|
+
isDeleted: z.ZodBoolean;
|
|
17
|
+
}, "strip", z.ZodTypeAny, {
|
|
18
|
+
isDeleted: boolean;
|
|
19
|
+
}, {
|
|
20
|
+
isDeleted: boolean;
|
|
21
|
+
}>;
|
|
22
|
+
}, "strip", z.ZodTypeAny, {
|
|
23
|
+
response: {
|
|
24
|
+
isDeleted: boolean;
|
|
25
|
+
};
|
|
26
|
+
}, {
|
|
27
|
+
response: {
|
|
28
|
+
isDeleted: boolean;
|
|
29
|
+
};
|
|
30
|
+
}>;
|
|
31
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=delete-subscription-template.command.d.ts.map
|
package/build/backend/commands/subscription-template/delete-subscription-template.command.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-subscription-template.command.d.ts","sourceRoot":"","sources":["../../../../commands/subscription-template/delete-subscription-template.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,iCAAiC,CAAC;IACxC,MAAM,GAAG,0BAAwC,CAAC;IAClD,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;;;;;;;;;;;;;;;;MAIzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeleteSubscriptionTemplateCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const api_1 = require("../../api");
|
|
6
|
+
const constants_1 = require("../../constants");
|
|
7
|
+
var DeleteSubscriptionTemplateCommand;
|
|
8
|
+
(function (DeleteSubscriptionTemplateCommand) {
|
|
9
|
+
DeleteSubscriptionTemplateCommand.url = api_1.REST_API.SUBSCRIPTION_TEMPLATE.DELETE;
|
|
10
|
+
DeleteSubscriptionTemplateCommand.TSQ_url = DeleteSubscriptionTemplateCommand.url(':uuid');
|
|
11
|
+
DeleteSubscriptionTemplateCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.SUBSCRIPTION_TEMPLATE_ROUTES.DELETE(':uuid'), 'delete', 'Delete subscription template');
|
|
12
|
+
DeleteSubscriptionTemplateCommand.RequestSchema = zod_1.z.object({
|
|
13
|
+
uuid: zod_1.z.string().uuid(),
|
|
14
|
+
});
|
|
15
|
+
DeleteSubscriptionTemplateCommand.ResponseSchema = zod_1.z.object({
|
|
16
|
+
response: zod_1.z.object({
|
|
17
|
+
isDeleted: zod_1.z.boolean(),
|
|
18
|
+
}),
|
|
19
|
+
});
|
|
20
|
+
})(DeleteSubscriptionTemplateCommand || (exports.DeleteSubscriptionTemplateCommand = DeleteSubscriptionTemplateCommand = {}));
|
|
@@ -1,26 +1,20 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare namespace GetSubscriptionTemplateCommand {
|
|
3
|
-
const url: (
|
|
3
|
+
const url: (uuid: string) => string;
|
|
4
4
|
const TSQ_url: string;
|
|
5
5
|
const endpointDetails: import("../../constants").EndpointDetails;
|
|
6
6
|
const RequestSchema: z.ZodObject<{
|
|
7
|
-
|
|
8
|
-
readonly XRAY_JSON: "XRAY_JSON";
|
|
9
|
-
readonly XRAY_BASE64: "XRAY_BASE64";
|
|
10
|
-
readonly MIHOMO: "MIHOMO";
|
|
11
|
-
readonly STASH: "STASH";
|
|
12
|
-
readonly CLASH: "CLASH";
|
|
13
|
-
readonly SINGBOX: "SINGBOX";
|
|
14
|
-
}>;
|
|
7
|
+
uuid: z.ZodString;
|
|
15
8
|
}, "strip", z.ZodTypeAny, {
|
|
16
|
-
|
|
9
|
+
uuid: string;
|
|
17
10
|
}, {
|
|
18
|
-
|
|
11
|
+
uuid: string;
|
|
19
12
|
}>;
|
|
20
13
|
type Request = z.infer<typeof RequestSchema>;
|
|
21
14
|
const ResponseSchema: z.ZodObject<{
|
|
22
15
|
response: z.ZodObject<{
|
|
23
16
|
uuid: z.ZodString;
|
|
17
|
+
name: z.ZodString;
|
|
24
18
|
templateType: z.ZodNativeEnum<{
|
|
25
19
|
readonly XRAY_JSON: "XRAY_JSON";
|
|
26
20
|
readonly XRAY_BASE64: "XRAY_BASE64";
|
|
@@ -33,11 +27,13 @@ export declare namespace GetSubscriptionTemplateCommand {
|
|
|
33
27
|
encodedTemplateYaml: z.ZodNullable<z.ZodString>;
|
|
34
28
|
}, "strip", z.ZodTypeAny, {
|
|
35
29
|
uuid: string;
|
|
30
|
+
name: string;
|
|
36
31
|
templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
|
|
37
32
|
encodedTemplateYaml: string | null;
|
|
38
33
|
templateJson?: unknown;
|
|
39
34
|
}, {
|
|
40
35
|
uuid: string;
|
|
36
|
+
name: string;
|
|
41
37
|
templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
|
|
42
38
|
encodedTemplateYaml: string | null;
|
|
43
39
|
templateJson?: unknown;
|
|
@@ -45,6 +41,7 @@ export declare namespace GetSubscriptionTemplateCommand {
|
|
|
45
41
|
}, "strip", z.ZodTypeAny, {
|
|
46
42
|
response: {
|
|
47
43
|
uuid: string;
|
|
44
|
+
name: string;
|
|
48
45
|
templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
|
|
49
46
|
encodedTemplateYaml: string | null;
|
|
50
47
|
templateJson?: unknown;
|
|
@@ -52,6 +49,7 @@ export declare namespace GetSubscriptionTemplateCommand {
|
|
|
52
49
|
}, {
|
|
53
50
|
response: {
|
|
54
51
|
uuid: string;
|
|
52
|
+
name: string;
|
|
55
53
|
templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
|
|
56
54
|
encodedTemplateYaml: string | null;
|
|
57
55
|
templateJson?: unknown;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-template.command.d.ts","sourceRoot":"","sources":["../../../../commands/subscription-template/get-template.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,8BAA8B,CAAC;IACrC,MAAM,GAAG,
|
|
1
|
+
{"version":3,"file":"get-template.command.d.ts","sourceRoot":"","sources":["../../../../commands/subscription-template/get-template.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,8BAA8B,CAAC;IACrC,MAAM,GAAG,0BAAqC,CAAC;IAC/C,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAQzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -8,14 +8,15 @@ const constants_2 = require("../../constants");
|
|
|
8
8
|
var GetSubscriptionTemplateCommand;
|
|
9
9
|
(function (GetSubscriptionTemplateCommand) {
|
|
10
10
|
GetSubscriptionTemplateCommand.url = api_1.REST_API.SUBSCRIPTION_TEMPLATE.GET;
|
|
11
|
-
GetSubscriptionTemplateCommand.TSQ_url = GetSubscriptionTemplateCommand.url(':
|
|
12
|
-
GetSubscriptionTemplateCommand.endpointDetails = (0, constants_2.getEndpointDetails)(api_1.SUBSCRIPTION_TEMPLATE_ROUTES.GET(':
|
|
11
|
+
GetSubscriptionTemplateCommand.TSQ_url = GetSubscriptionTemplateCommand.url(':uuid');
|
|
12
|
+
GetSubscriptionTemplateCommand.endpointDetails = (0, constants_2.getEndpointDetails)(api_1.SUBSCRIPTION_TEMPLATE_ROUTES.GET(':uuid'), 'get', 'Get subscription template by uuid');
|
|
13
13
|
GetSubscriptionTemplateCommand.RequestSchema = zod_1.z.object({
|
|
14
|
-
|
|
14
|
+
uuid: zod_1.z.string().uuid(),
|
|
15
15
|
});
|
|
16
16
|
GetSubscriptionTemplateCommand.ResponseSchema = zod_1.z.object({
|
|
17
17
|
response: zod_1.z.object({
|
|
18
18
|
uuid: zod_1.z.string().uuid(),
|
|
19
|
+
name: zod_1.z.string(),
|
|
19
20
|
templateType: zod_1.z.nativeEnum(constants_1.SUBSCRIPTION_TEMPLATE_TYPE),
|
|
20
21
|
templateJson: zod_1.z.nullable(zod_1.z.unknown()),
|
|
21
22
|
encodedTemplateYaml: zod_1.z.nullable(zod_1.z.string()),
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace GetSubscriptionTemplatesCommand {
|
|
3
|
+
const url: "/api/subscription-templates/";
|
|
4
|
+
const TSQ_url: "/api/subscription-templates/";
|
|
5
|
+
const endpointDetails: import("../../constants").EndpointDetails;
|
|
6
|
+
const ResponseSchema: z.ZodObject<{
|
|
7
|
+
response: z.ZodObject<{
|
|
8
|
+
total: z.ZodNumber;
|
|
9
|
+
templates: z.ZodArray<z.ZodObject<{
|
|
10
|
+
uuid: z.ZodString;
|
|
11
|
+
name: z.ZodString;
|
|
12
|
+
templateType: z.ZodNativeEnum<{
|
|
13
|
+
readonly XRAY_JSON: "XRAY_JSON";
|
|
14
|
+
readonly XRAY_BASE64: "XRAY_BASE64";
|
|
15
|
+
readonly MIHOMO: "MIHOMO";
|
|
16
|
+
readonly STASH: "STASH";
|
|
17
|
+
readonly CLASH: "CLASH";
|
|
18
|
+
readonly SINGBOX: "SINGBOX";
|
|
19
|
+
}>;
|
|
20
|
+
templateJson: z.ZodNullable<z.ZodUnknown>;
|
|
21
|
+
encodedTemplateYaml: z.ZodNullable<z.ZodString>;
|
|
22
|
+
}, "strip", z.ZodTypeAny, {
|
|
23
|
+
uuid: string;
|
|
24
|
+
name: string;
|
|
25
|
+
templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
|
|
26
|
+
encodedTemplateYaml: string | null;
|
|
27
|
+
templateJson?: unknown;
|
|
28
|
+
}, {
|
|
29
|
+
uuid: string;
|
|
30
|
+
name: string;
|
|
31
|
+
templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
|
|
32
|
+
encodedTemplateYaml: string | null;
|
|
33
|
+
templateJson?: unknown;
|
|
34
|
+
}>, "many">;
|
|
35
|
+
}, "strip", z.ZodTypeAny, {
|
|
36
|
+
templates: {
|
|
37
|
+
uuid: string;
|
|
38
|
+
name: string;
|
|
39
|
+
templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
|
|
40
|
+
encodedTemplateYaml: string | null;
|
|
41
|
+
templateJson?: unknown;
|
|
42
|
+
}[];
|
|
43
|
+
total: number;
|
|
44
|
+
}, {
|
|
45
|
+
templates: {
|
|
46
|
+
uuid: string;
|
|
47
|
+
name: string;
|
|
48
|
+
templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
|
|
49
|
+
encodedTemplateYaml: string | null;
|
|
50
|
+
templateJson?: unknown;
|
|
51
|
+
}[];
|
|
52
|
+
total: number;
|
|
53
|
+
}>;
|
|
54
|
+
}, "strip", z.ZodTypeAny, {
|
|
55
|
+
response: {
|
|
56
|
+
templates: {
|
|
57
|
+
uuid: string;
|
|
58
|
+
name: string;
|
|
59
|
+
templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
|
|
60
|
+
encodedTemplateYaml: string | null;
|
|
61
|
+
templateJson?: unknown;
|
|
62
|
+
}[];
|
|
63
|
+
total: number;
|
|
64
|
+
};
|
|
65
|
+
}, {
|
|
66
|
+
response: {
|
|
67
|
+
templates: {
|
|
68
|
+
uuid: string;
|
|
69
|
+
name: string;
|
|
70
|
+
templateType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64";
|
|
71
|
+
encodedTemplateYaml: string | null;
|
|
72
|
+
templateJson?: unknown;
|
|
73
|
+
}[];
|
|
74
|
+
total: number;
|
|
75
|
+
};
|
|
76
|
+
}>;
|
|
77
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
78
|
+
}
|
|
79
|
+
//# sourceMappingURL=get-templates.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-templates.command.d.ts","sourceRoot":"","sources":["../../../../commands/subscription-template/get-templates.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,+BAA+B,CAAC;IACtC,MAAM,GAAG,gCAAyC,CAAC;IACnD,MAAM,OAAO,gCAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAazB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetSubscriptionTemplatesCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const api_1 = require("../../api");
|
|
6
|
+
const constants_1 = require("../../constants");
|
|
7
|
+
const constants_2 = require("../../constants");
|
|
8
|
+
var GetSubscriptionTemplatesCommand;
|
|
9
|
+
(function (GetSubscriptionTemplatesCommand) {
|
|
10
|
+
GetSubscriptionTemplatesCommand.url = api_1.REST_API.SUBSCRIPTION_TEMPLATE.GET_ALL;
|
|
11
|
+
GetSubscriptionTemplatesCommand.TSQ_url = GetSubscriptionTemplatesCommand.url;
|
|
12
|
+
GetSubscriptionTemplatesCommand.endpointDetails = (0, constants_2.getEndpointDetails)(api_1.SUBSCRIPTION_TEMPLATE_ROUTES.GET_ALL, 'get', 'Get all subscription templates (wihout content)');
|
|
13
|
+
GetSubscriptionTemplatesCommand.ResponseSchema = zod_1.z.object({
|
|
14
|
+
response: zod_1.z.object({
|
|
15
|
+
total: zod_1.z.number(),
|
|
16
|
+
templates: zod_1.z.array(zod_1.z.object({
|
|
17
|
+
uuid: zod_1.z.string().uuid(),
|
|
18
|
+
name: zod_1.z.string(),
|
|
19
|
+
templateType: zod_1.z.nativeEnum(constants_1.SUBSCRIPTION_TEMPLATE_TYPE),
|
|
20
|
+
templateJson: zod_1.z.nullable(zod_1.z.unknown()),
|
|
21
|
+
encodedTemplateYaml: zod_1.z.nullable(zod_1.z.string()),
|
|
22
|
+
})),
|
|
23
|
+
}),
|
|
24
|
+
});
|
|
25
|
+
})(GetSubscriptionTemplatesCommand || (exports.GetSubscriptionTemplatesCommand = GetSubscriptionTemplatesCommand = {}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../commands/subscription-template/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,2BAA2B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../commands/subscription-template/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wCAAwC,CAAC;AACvD,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC"}
|