@homeflare/distilled-opnsense 0.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.
Files changed (78) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +95 -0
  3. package/dist/credentials.d.ts +39 -0
  4. package/dist/credentials.d.ts.map +1 -0
  5. package/dist/credentials.js +78 -0
  6. package/dist/credentials.js.map +1 -0
  7. package/dist/errors.d.ts +110 -0
  8. package/dist/errors.d.ts.map +1 -0
  9. package/dist/errors.js +63 -0
  10. package/dist/errors.js.map +1 -0
  11. package/dist/index.d.ts +29 -0
  12. package/dist/index.d.ts.map +1 -0
  13. package/dist/index.js +29 -0
  14. package/dist/index.js.map +1 -0
  15. package/dist/protocol.d.ts +13 -0
  16. package/dist/protocol.d.ts.map +1 -0
  17. package/dist/protocol.js +115 -0
  18. package/dist/protocol.js.map +1 -0
  19. package/dist/retry.d.ts +56 -0
  20. package/dist/retry.d.ts.map +1 -0
  21. package/dist/retry.js +49 -0
  22. package/dist/retry.js.map +1 -0
  23. package/dist/services/firewall_alias.d.ts +243 -0
  24. package/dist/services/firewall_alias.d.ts.map +1 -0
  25. package/dist/services/firewall_alias.js +222 -0
  26. package/dist/services/firewall_alias.js.map +1 -0
  27. package/dist/services/firewall_category.d.ts +122 -0
  28. package/dist/services/firewall_category.d.ts.map +1 -0
  29. package/dist/services/firewall_category.js +161 -0
  30. package/dist/services/firewall_category.js.map +1 -0
  31. package/dist/services/firewall_filter.d.ts +289 -0
  32. package/dist/services/firewall_filter.d.ts.map +1 -0
  33. package/dist/services/firewall_filter.js +225 -0
  34. package/dist/services/firewall_filter.js.map +1 -0
  35. package/dist/services/firewall_group.d.ts +122 -0
  36. package/dist/services/firewall_group.d.ts.map +1 -0
  37. package/dist/services/firewall_group.js +154 -0
  38. package/dist/services/firewall_group.js.map +1 -0
  39. package/dist/services/index.d.ts +9 -0
  40. package/dist/services/index.d.ts.map +1 -0
  41. package/dist/services/index.js +10 -0
  42. package/dist/services/index.js.map +1 -0
  43. package/dist/services/quagga_bgp.d.ts +1135 -0
  44. package/dist/services/quagga_bgp.d.ts.map +1 -0
  45. package/dist/services/quagga_bgp.js +1263 -0
  46. package/dist/services/quagga_bgp.js.map +1 -0
  47. package/dist/services/quagga_general.d.ts +55 -0
  48. package/dist/services/quagga_general.d.ts.map +1 -0
  49. package/dist/services/quagga_general.js +48 -0
  50. package/dist/services/quagga_general.js.map +1 -0
  51. package/dist/services/quagga_service.d.ts +60 -0
  52. package/dist/services/quagga_service.d.ts.map +1 -0
  53. package/dist/services/quagga_service.js +77 -0
  54. package/dist/services/quagga_service.js.map +1 -0
  55. package/dist/services/routing_settings.d.ts +192 -0
  56. package/dist/services/routing_settings.d.ts.map +1 -0
  57. package/dist/services/routing_settings.js +169 -0
  58. package/dist/services/routing_settings.js.map +1 -0
  59. package/dist/traits.d.ts +11 -0
  60. package/dist/traits.d.ts.map +1 -0
  61. package/dist/traits.js +11 -0
  62. package/dist/traits.js.map +1 -0
  63. package/package.json +75 -0
  64. package/src/credentials.ts +111 -0
  65. package/src/errors.ts +115 -0
  66. package/src/index.ts +32 -0
  67. package/src/protocol.ts +177 -0
  68. package/src/retry.ts +80 -0
  69. package/src/services/firewall_alias.ts +572 -0
  70. package/src/services/firewall_category.ts +359 -0
  71. package/src/services/firewall_filter.ts +671 -0
  72. package/src/services/firewall_group.ts +350 -0
  73. package/src/services/index.ts +9 -0
  74. package/src/services/quagga_bgp.ts +2955 -0
  75. package/src/services/quagga_general.ts +132 -0
  76. package/src/services/quagga_service.ts +182 -0
  77. package/src/services/routing_settings.ts +419 -0
  78. package/src/traits.ts +36 -0
@@ -0,0 +1,2955 @@
1
+ // AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-opnsense). Do not edit.
2
+ import * as S from "@distilled.cloud/core/schema";
3
+ import * as API from "@distilled.cloud/core/api";
4
+ import * as T from "../traits.ts";
5
+ import {
6
+ OpnsenseProtocol,
7
+ type OpnsenseOpError,
8
+ type OpnsenseOpContext,
9
+ } from "../protocol.ts";
10
+ import * as Retry from "../retry.ts";
11
+
12
+ export type { OpnsenseOpError, OpnsenseOpContext };
13
+
14
+ export type AspathItemAction = "permit" | "deny";
15
+ export const AspathItemAction = S.String;
16
+
17
+ export interface AspathItem {
18
+ /** Item id, assigned by OPNsense on creation. */
19
+ uuid?: string;
20
+ /** OPNsense FieldType: BooleanField */
21
+ enabled: string;
22
+ /** OPNsense FieldType: TextField */
23
+ description?: string;
24
+ /** OPNsense FieldType: IntegerField; range 0..4294967295 (as text) */
25
+ number: string;
26
+ /** OPNsense FieldType: OptionField */
27
+ action: AspathItemAction | (string & {});
28
+ /** OPNsense FieldType: TextField */
29
+ as: string;
30
+ }
31
+ export const AspathItem = /*@__PURE__*/ S.suspend(() =>
32
+ S.Struct({
33
+ uuid: S.optional(S.String),
34
+ enabled: S.String,
35
+ description: S.optional(S.String),
36
+ number: S.String,
37
+ action: AspathItemAction,
38
+ as: S.String,
39
+ }),
40
+ ).annotate({ identifier: "AspathItem" }) as any as S.Schema<AspathItem>;
41
+
42
+ export interface AddAspathRequest {
43
+ aspath?: AspathItem;
44
+ }
45
+ export const AddAspathRequest = /*@__PURE__*/ S.suspend(() =>
46
+ S.Struct({
47
+ aspath: S.optional(AspathItem),
48
+ }).pipe(
49
+ T.Http({ method: "POST", uri: "/api/quagga/bgp/addAspath", code: 200 }),
50
+ ),
51
+ ).annotate({
52
+ identifier: "AddAspathRequest",
53
+ }) as any as S.Schema<AddAspathRequest>;
54
+
55
+ export type AddAspathResult = "saved";
56
+ export const AddAspathResult = S.String;
57
+
58
+ export interface AddAspathResponse {
59
+ result?: AddAspathResult;
60
+ /** The new item's uuid. */
61
+ uuid?: string;
62
+ }
63
+ export const AddAspathResponse = /*@__PURE__*/ S.suspend(() =>
64
+ S.Struct({
65
+ result: S.optional(AddAspathResult),
66
+ uuid: S.optional(S.String),
67
+ }),
68
+ ).annotate({
69
+ identifier: "AddAspathResponse",
70
+ }) as any as S.Schema<AddAspathResponse>;
71
+
72
+ export type CommunitylistItemAction = "permit" | "deny";
73
+ export const CommunitylistItemAction = S.String;
74
+
75
+ export interface CommunitylistItem {
76
+ /** Item id, assigned by OPNsense on creation. */
77
+ uuid?: string;
78
+ /** OPNsense FieldType: BooleanField */
79
+ enabled: string;
80
+ /** OPNsense FieldType: TextField */
81
+ description?: string;
82
+ /** OPNsense FieldType: IntegerField; range 1..500 (as text) */
83
+ number: string;
84
+ /** OPNsense FieldType: IntegerField; range 10..99 (as text) */
85
+ seqnumber: string;
86
+ /** OPNsense FieldType: OptionField */
87
+ action: CommunitylistItemAction | (string & {});
88
+ /** OPNsense FieldType: TextField */
89
+ community: string;
90
+ }
91
+ export const CommunitylistItem = /*@__PURE__*/ S.suspend(() =>
92
+ S.Struct({
93
+ uuid: S.optional(S.String),
94
+ enabled: S.String,
95
+ description: S.optional(S.String),
96
+ number: S.String,
97
+ seqnumber: S.String,
98
+ action: CommunitylistItemAction,
99
+ community: S.String,
100
+ }),
101
+ ).annotate({
102
+ identifier: "CommunitylistItem",
103
+ }) as any as S.Schema<CommunitylistItem>;
104
+
105
+ export interface AddCommunitylistRequest {
106
+ communitylist?: CommunitylistItem;
107
+ }
108
+ export const AddCommunitylistRequest = /*@__PURE__*/ S.suspend(() =>
109
+ S.Struct({
110
+ communitylist: S.optional(CommunitylistItem),
111
+ }).pipe(
112
+ T.Http({
113
+ method: "POST",
114
+ uri: "/api/quagga/bgp/addCommunitylist",
115
+ code: 200,
116
+ }),
117
+ ),
118
+ ).annotate({
119
+ identifier: "AddCommunitylistRequest",
120
+ }) as any as S.Schema<AddCommunitylistRequest>;
121
+
122
+ export type AddCommunitylistResult = "saved";
123
+ export const AddCommunitylistResult = S.String;
124
+
125
+ export interface AddCommunitylistResponse {
126
+ result?: AddCommunitylistResult;
127
+ /** The new item's uuid. */
128
+ uuid?: string;
129
+ }
130
+ export const AddCommunitylistResponse = /*@__PURE__*/ S.suspend(() =>
131
+ S.Struct({
132
+ result: S.optional(AddCommunitylistResult),
133
+ uuid: S.optional(S.String),
134
+ }),
135
+ ).annotate({
136
+ identifier: "AddCommunitylistResponse",
137
+ }) as any as S.Schema<AddCommunitylistResponse>;
138
+
139
+ export type NeighborItemRemoteAsMode = "internal" | "external";
140
+ export const NeighborItemRemoteAsMode = S.String;
141
+
142
+ export type NeighborItemRemoveprivateas =
143
+ | "removeprivateas"
144
+ | "removeallas"
145
+ | "replaceprivateas"
146
+ | "replaceallas";
147
+ export const NeighborItemRemoveprivateas = S.String;
148
+
149
+ export type NeighborItemAllowasIn =
150
+ | "val1"
151
+ | "val2"
152
+ | "val3"
153
+ | "val4"
154
+ | "val5"
155
+ | "val6"
156
+ | "val7"
157
+ | "val8"
158
+ | "val9"
159
+ | "val10"
160
+ | "origin";
161
+ export const NeighborItemAllowasIn = S.String;
162
+
163
+ export type NeighborItemAttributeunchanged = "as-path" | "next-hop" | "med";
164
+ export const NeighborItemAttributeunchanged = S.String;
165
+
166
+ export type NeighborItemCapabilities =
167
+ | "extended-nexthop"
168
+ | "dynamic"
169
+ | "fqdn"
170
+ | "link-local";
171
+ export const NeighborItemCapabilities = S.String;
172
+
173
+ export interface NeighborItem {
174
+ /** Item id, assigned by OPNsense on creation. */
175
+ uuid?: string;
176
+ /** OPNsense FieldType: BooleanField */
177
+ enabled: string;
178
+ /** OPNsense FieldType: TextField */
179
+ description?: string;
180
+ /** OPNsense FieldType: NetworkField */
181
+ address: string;
182
+ /** OPNsense FieldType: OptionField */
183
+ remote_as_mode?: NeighborItemRemoteAsMode | (string & {});
184
+ /** OPNsense FieldType: IntegerField; range 1..4294967295 (as text) */
185
+ remoteas?: string;
186
+ /** OPNsense FieldType: IntegerField; range 1..4294967295 (as text) */
187
+ localas?: string;
188
+ /** OPNsense FieldType: TextField */
189
+ password?: string;
190
+ /** OPNsense FieldType: IntegerField; range 0..65535 (as text) */
191
+ weight?: string;
192
+ /** OPNsense FieldType: NetworkField */
193
+ localip?: string;
194
+ /** OPNsense FieldType: InterfaceField */
195
+ updatesource?: string;
196
+ /** OPNsense FieldType: InterfaceField */
197
+ linklocalinterface?: string;
198
+ /** OPNsense FieldType: BooleanField */
199
+ nexthopself?: string;
200
+ /** OPNsense FieldType: BooleanField */
201
+ nexthopselfall?: string;
202
+ /** OPNsense FieldType: BooleanField */
203
+ multihop?: string;
204
+ /** OPNsense FieldType: BooleanField */
205
+ multiprotocol?: string;
206
+ /** OPNsense FieldType: BooleanField */
207
+ rrclient?: string;
208
+ /** OPNsense FieldType: BooleanField */
209
+ soft_reconfiguration_inbound?: string;
210
+ /** OPNsense FieldType: BooleanField */
211
+ bfd?: string;
212
+ /** OPNsense FieldType: BooleanField */
213
+ bfd_strict?: string;
214
+ /** OPNsense FieldType: IntegerField; range 1..1000 (as text) */
215
+ keepalive?: string;
216
+ /** OPNsense FieldType: IntegerField; range 3..3000 (as text) */
217
+ holddown?: string;
218
+ /** OPNsense FieldType: IntegerField; range 1..65000 (as text) */
219
+ connecttimer?: string;
220
+ /** OPNsense FieldType: BooleanField */
221
+ defaultoriginate?: string;
222
+ /** OPNsense FieldType: BooleanField */
223
+ asoverride?: string;
224
+ /** OPNsense FieldType: OptionField */
225
+ removeprivateas?: NeighborItemRemoveprivateas | (string & {});
226
+ /** OPNsense FieldType: OptionField */
227
+ allowas_in?: NeighborItemAllowasIn | (string & {});
228
+ /** OPNsense FieldType: BooleanField */
229
+ disable_connected_check?: string;
230
+ /** OPNsense FieldType: OptionField */
231
+ attributeunchanged?: NeighborItemAttributeunchanged | (string & {});
232
+ /** OPNsense FieldType: OptionField; multi-select: wire value is a single comma-joined string, not a JSON array */
233
+ capabilities?: NeighborItemCapabilities | (string & {});
234
+ /** OPNsense FieldType: ModelRelationField */
235
+ linkedPrefixlistIn?: string;
236
+ /** OPNsense FieldType: ModelRelationField */
237
+ linkedPrefixlistOut?: string;
238
+ /** OPNsense FieldType: ModelRelationField */
239
+ linkedRoutemapIn?: string;
240
+ /** OPNsense FieldType: ModelRelationField */
241
+ linkedRoutemapOut?: string;
242
+ /** OPNsense FieldType: ModelRelationField */
243
+ peergroup?: string;
244
+ }
245
+ export const NeighborItem = /*@__PURE__*/ S.suspend(() =>
246
+ S.Struct({
247
+ uuid: S.optional(S.String),
248
+ enabled: S.String,
249
+ description: S.optional(S.String),
250
+ address: S.String,
251
+ remote_as_mode: S.optional(NeighborItemRemoteAsMode),
252
+ remoteas: S.optional(S.String),
253
+ localas: S.optional(S.String),
254
+ password: S.optional(S.String),
255
+ weight: S.optional(S.String),
256
+ localip: S.optional(S.String),
257
+ updatesource: S.optional(S.String),
258
+ linklocalinterface: S.optional(S.String),
259
+ nexthopself: S.optional(S.String),
260
+ nexthopselfall: S.optional(S.String),
261
+ multihop: S.optional(S.String),
262
+ multiprotocol: S.optional(S.String),
263
+ rrclient: S.optional(S.String),
264
+ soft_reconfiguration_inbound: S.optional(S.String),
265
+ bfd: S.optional(S.String),
266
+ bfd_strict: S.optional(S.String),
267
+ keepalive: S.optional(S.String),
268
+ holddown: S.optional(S.String),
269
+ connecttimer: S.optional(S.String),
270
+ defaultoriginate: S.optional(S.String),
271
+ asoverride: S.optional(S.String),
272
+ removeprivateas: S.optional(NeighborItemRemoveprivateas),
273
+ allowas_in: S.optional(NeighborItemAllowasIn),
274
+ disable_connected_check: S.optional(S.String),
275
+ attributeunchanged: S.optional(NeighborItemAttributeunchanged),
276
+ capabilities: S.optional(NeighborItemCapabilities),
277
+ linkedPrefixlistIn: S.optional(S.String),
278
+ linkedPrefixlistOut: S.optional(S.String),
279
+ linkedRoutemapIn: S.optional(S.String),
280
+ linkedRoutemapOut: S.optional(S.String),
281
+ peergroup: S.optional(S.String),
282
+ }),
283
+ ).annotate({ identifier: "NeighborItem" }) as any as S.Schema<NeighborItem>;
284
+
285
+ export interface AddNeighborRequest {
286
+ neighbor?: NeighborItem;
287
+ }
288
+ export const AddNeighborRequest = /*@__PURE__*/ S.suspend(() =>
289
+ S.Struct({
290
+ neighbor: S.optional(NeighborItem),
291
+ }).pipe(
292
+ T.Http({ method: "POST", uri: "/api/quagga/bgp/addNeighbor", code: 200 }),
293
+ ),
294
+ ).annotate({
295
+ identifier: "AddNeighborRequest",
296
+ }) as any as S.Schema<AddNeighborRequest>;
297
+
298
+ export type AddNeighborResult = "saved";
299
+ export const AddNeighborResult = S.String;
300
+
301
+ export interface AddNeighborResponse {
302
+ result?: AddNeighborResult;
303
+ /** The new item's uuid. */
304
+ uuid?: string;
305
+ }
306
+ export const AddNeighborResponse = /*@__PURE__*/ S.suspend(() =>
307
+ S.Struct({
308
+ result: S.optional(AddNeighborResult),
309
+ uuid: S.optional(S.String),
310
+ }),
311
+ ).annotate({
312
+ identifier: "AddNeighborResponse",
313
+ }) as any as S.Schema<AddNeighborResponse>;
314
+
315
+ export type PeergroupItemRemoteAsMode = "internal" | "external";
316
+ export const PeergroupItemRemoteAsMode = S.String;
317
+
318
+ export type PeergroupItemFamily = "ipv4" | "ipv6";
319
+ export const PeergroupItemFamily = S.String;
320
+
321
+ export interface PeergroupItem {
322
+ /** Item id, assigned by OPNsense on creation. */
323
+ uuid?: string;
324
+ /** OPNsense FieldType: BooleanField */
325
+ enabled: string;
326
+ /** OPNsense FieldType: TextField */
327
+ name: string;
328
+ /** OPNsense FieldType: OptionField */
329
+ remote_as_mode?: PeergroupItemRemoteAsMode | (string & {});
330
+ /** OPNsense FieldType: IntegerField; range 1..4294967295 (as text) */
331
+ remoteas?: string;
332
+ /** OPNsense FieldType: OptionField; multi-select: wire value is a single comma-joined string, not a JSON array */
333
+ family: PeergroupItemFamily | (string & {});
334
+ /** OPNsense FieldType: NetworkField */
335
+ listenranges?: string;
336
+ /** OPNsense FieldType: InterfaceField */
337
+ updatesource?: string;
338
+ /** OPNsense FieldType: BooleanField */
339
+ nexthopself?: string;
340
+ /** OPNsense FieldType: BooleanField */
341
+ defaultoriginate?: string;
342
+ /** OPNsense FieldType: ModelRelationField */
343
+ linkedPrefixlistIn?: string;
344
+ /** OPNsense FieldType: ModelRelationField */
345
+ linkedPrefixlistOut?: string;
346
+ /** OPNsense FieldType: ModelRelationField */
347
+ linkedRoutemapIn?: string;
348
+ /** OPNsense FieldType: ModelRelationField */
349
+ linkedRoutemapOut?: string;
350
+ }
351
+ export const PeergroupItem = /*@__PURE__*/ S.suspend(() =>
352
+ S.Struct({
353
+ uuid: S.optional(S.String),
354
+ enabled: S.String,
355
+ name: S.String,
356
+ remote_as_mode: S.optional(PeergroupItemRemoteAsMode),
357
+ remoteas: S.optional(S.String),
358
+ family: PeergroupItemFamily,
359
+ listenranges: S.optional(S.String),
360
+ updatesource: S.optional(S.String),
361
+ nexthopself: S.optional(S.String),
362
+ defaultoriginate: S.optional(S.String),
363
+ linkedPrefixlistIn: S.optional(S.String),
364
+ linkedPrefixlistOut: S.optional(S.String),
365
+ linkedRoutemapIn: S.optional(S.String),
366
+ linkedRoutemapOut: S.optional(S.String),
367
+ }),
368
+ ).annotate({ identifier: "PeergroupItem" }) as any as S.Schema<PeergroupItem>;
369
+
370
+ export interface AddPeergroupRequest {
371
+ peergroup?: PeergroupItem;
372
+ }
373
+ export const AddPeergroupRequest = /*@__PURE__*/ S.suspend(() =>
374
+ S.Struct({
375
+ peergroup: S.optional(PeergroupItem),
376
+ }).pipe(
377
+ T.Http({ method: "POST", uri: "/api/quagga/bgp/addPeergroup", code: 200 }),
378
+ ),
379
+ ).annotate({
380
+ identifier: "AddPeergroupRequest",
381
+ }) as any as S.Schema<AddPeergroupRequest>;
382
+
383
+ export type AddPeergroupResult = "saved";
384
+ export const AddPeergroupResult = S.String;
385
+
386
+ export interface AddPeergroupResponse {
387
+ result?: AddPeergroupResult;
388
+ /** The new item's uuid. */
389
+ uuid?: string;
390
+ }
391
+ export const AddPeergroupResponse = /*@__PURE__*/ S.suspend(() =>
392
+ S.Struct({
393
+ result: S.optional(AddPeergroupResult),
394
+ uuid: S.optional(S.String),
395
+ }),
396
+ ).annotate({
397
+ identifier: "AddPeergroupResponse",
398
+ }) as any as S.Schema<AddPeergroupResponse>;
399
+
400
+ export type PrefixlistItemVersion = "IPv4" | "IPv6";
401
+ export const PrefixlistItemVersion = S.String;
402
+
403
+ export type PrefixlistItemAction = "permit" | "deny";
404
+ export const PrefixlistItemAction = S.String;
405
+
406
+ export interface PrefixlistItem {
407
+ /** Item id, assigned by OPNsense on creation. */
408
+ uuid?: string;
409
+ /** OPNsense FieldType: BooleanField */
410
+ enabled: string;
411
+ /** OPNsense FieldType: TextField */
412
+ description?: string;
413
+ /** OPNsense FieldType: TextField; pattern /^[a-zA-Z0-9._-]{1,64}$/ */
414
+ name: string;
415
+ /** OPNsense FieldType: OptionField */
416
+ version: PrefixlistItemVersion | (string & {});
417
+ /** OPNsense FieldType: IntegerField; range 1..4294967294 (as text) */
418
+ seqnumber: string;
419
+ /** OPNsense FieldType: OptionField */
420
+ action: PrefixlistItemAction | (string & {});
421
+ /** OPNsense FieldType: TextField */
422
+ network: string;
423
+ }
424
+ export const PrefixlistItem = /*@__PURE__*/ S.suspend(() =>
425
+ S.Struct({
426
+ uuid: S.optional(S.String),
427
+ enabled: S.String,
428
+ description: S.optional(S.String),
429
+ name: S.String,
430
+ version: PrefixlistItemVersion,
431
+ seqnumber: S.String,
432
+ action: PrefixlistItemAction,
433
+ network: S.String,
434
+ }),
435
+ ).annotate({ identifier: "PrefixlistItem" }) as any as S.Schema<PrefixlistItem>;
436
+
437
+ export interface AddPrefixlistRequest {
438
+ prefixlist?: PrefixlistItem;
439
+ }
440
+ export const AddPrefixlistRequest = /*@__PURE__*/ S.suspend(() =>
441
+ S.Struct({
442
+ prefixlist: S.optional(PrefixlistItem),
443
+ }).pipe(
444
+ T.Http({ method: "POST", uri: "/api/quagga/bgp/addPrefixlist", code: 200 }),
445
+ ),
446
+ ).annotate({
447
+ identifier: "AddPrefixlistRequest",
448
+ }) as any as S.Schema<AddPrefixlistRequest>;
449
+
450
+ export type AddPrefixlistResult = "saved";
451
+ export const AddPrefixlistResult = S.String;
452
+
453
+ export interface AddPrefixlistResponse {
454
+ result?: AddPrefixlistResult;
455
+ /** The new item's uuid. */
456
+ uuid?: string;
457
+ }
458
+ export const AddPrefixlistResponse = /*@__PURE__*/ S.suspend(() =>
459
+ S.Struct({
460
+ result: S.optional(AddPrefixlistResult),
461
+ uuid: S.optional(S.String),
462
+ }),
463
+ ).annotate({
464
+ identifier: "AddPrefixlistResponse",
465
+ }) as any as S.Schema<AddPrefixlistResponse>;
466
+
467
+ export type RedistributionItemRedistribute =
468
+ | "ospf"
469
+ | "connected"
470
+ | "kernel"
471
+ | "rip"
472
+ | "static";
473
+ export const RedistributionItemRedistribute = S.String;
474
+
475
+ export interface RedistributionItem {
476
+ /** Item id, assigned by OPNsense on creation. */
477
+ uuid?: string;
478
+ /** OPNsense FieldType: BooleanField */
479
+ enabled: string;
480
+ /** OPNsense FieldType: DescriptionField */
481
+ description?: string;
482
+ /** OPNsense FieldType: OptionField */
483
+ redistribute: RedistributionItemRedistribute | (string & {});
484
+ /** OPNsense FieldType: ModelRelationField */
485
+ linkedRoutemap?: string;
486
+ }
487
+ export const RedistributionItem = /*@__PURE__*/ S.suspend(() =>
488
+ S.Struct({
489
+ uuid: S.optional(S.String),
490
+ enabled: S.String,
491
+ description: S.optional(S.String),
492
+ redistribute: RedistributionItemRedistribute,
493
+ linkedRoutemap: S.optional(S.String),
494
+ }),
495
+ ).annotate({
496
+ identifier: "RedistributionItem",
497
+ }) as any as S.Schema<RedistributionItem>;
498
+
499
+ export interface AddRedistributionRequest {
500
+ redistribution?: RedistributionItem;
501
+ }
502
+ export const AddRedistributionRequest = /*@__PURE__*/ S.suspend(() =>
503
+ S.Struct({
504
+ redistribution: S.optional(RedistributionItem),
505
+ }).pipe(
506
+ T.Http({
507
+ method: "POST",
508
+ uri: "/api/quagga/bgp/addRedistribution",
509
+ code: 200,
510
+ }),
511
+ ),
512
+ ).annotate({
513
+ identifier: "AddRedistributionRequest",
514
+ }) as any as S.Schema<AddRedistributionRequest>;
515
+
516
+ export type AddRedistributionResult = "saved";
517
+ export const AddRedistributionResult = S.String;
518
+
519
+ export interface AddRedistributionResponse {
520
+ result?: AddRedistributionResult;
521
+ /** The new item's uuid. */
522
+ uuid?: string;
523
+ }
524
+ export const AddRedistributionResponse = /*@__PURE__*/ S.suspend(() =>
525
+ S.Struct({
526
+ result: S.optional(AddRedistributionResult),
527
+ uuid: S.optional(S.String),
528
+ }),
529
+ ).annotate({
530
+ identifier: "AddRedistributionResponse",
531
+ }) as any as S.Schema<AddRedistributionResponse>;
532
+
533
+ export type RoutemapItemAction = "permit" | "deny";
534
+ export const RoutemapItemAction = S.String;
535
+
536
+ export interface RoutemapItem {
537
+ /** Item id, assigned by OPNsense on creation. */
538
+ uuid?: string;
539
+ /** OPNsense FieldType: BooleanField */
540
+ enabled: string;
541
+ /** OPNsense FieldType: TextField */
542
+ description?: string;
543
+ /** OPNsense FieldType: TextField; pattern /^[a-zA-Z0-9._-]{1,64}$/ */
544
+ name: string;
545
+ /** OPNsense FieldType: OptionField */
546
+ action: RoutemapItemAction | (string & {});
547
+ /** OPNsense FieldType: IntegerField; range 1..65535 (as text) */
548
+ id: string;
549
+ /** OPNsense FieldType: ModelRelationField; multi-select: wire value is a single comma-joined string, not a JSON array */
550
+ match?: string;
551
+ /** OPNsense FieldType: ModelRelationField; multi-select: wire value is a single comma-joined string, not a JSON array */
552
+ match2?: string;
553
+ /** OPNsense FieldType: ModelRelationField; multi-select: wire value is a single comma-joined string, not a JSON array */
554
+ match3?: string;
555
+ /** OPNsense FieldType: TextField */
556
+ set?: string;
557
+ }
558
+ export const RoutemapItem = /*@__PURE__*/ S.suspend(() =>
559
+ S.Struct({
560
+ uuid: S.optional(S.String),
561
+ enabled: S.String,
562
+ description: S.optional(S.String),
563
+ name: S.String,
564
+ action: RoutemapItemAction,
565
+ id: S.String,
566
+ match: S.optional(S.String),
567
+ match2: S.optional(S.String),
568
+ match3: S.optional(S.String),
569
+ set: S.optional(S.String),
570
+ }),
571
+ ).annotate({ identifier: "RoutemapItem" }) as any as S.Schema<RoutemapItem>;
572
+
573
+ export interface AddRoutemapRequest {
574
+ routemap?: RoutemapItem;
575
+ }
576
+ export const AddRoutemapRequest = /*@__PURE__*/ S.suspend(() =>
577
+ S.Struct({
578
+ routemap: S.optional(RoutemapItem),
579
+ }).pipe(
580
+ T.Http({ method: "POST", uri: "/api/quagga/bgp/addRoutemap", code: 200 }),
581
+ ),
582
+ ).annotate({
583
+ identifier: "AddRoutemapRequest",
584
+ }) as any as S.Schema<AddRoutemapRequest>;
585
+
586
+ export type AddRoutemapResult = "saved";
587
+ export const AddRoutemapResult = S.String;
588
+
589
+ export interface AddRoutemapResponse {
590
+ result?: AddRoutemapResult;
591
+ /** The new item's uuid. */
592
+ uuid?: string;
593
+ }
594
+ export const AddRoutemapResponse = /*@__PURE__*/ S.suspend(() =>
595
+ S.Struct({
596
+ result: S.optional(AddRoutemapResult),
597
+ uuid: S.optional(S.String),
598
+ }),
599
+ ).annotate({
600
+ identifier: "AddRoutemapResponse",
601
+ }) as any as S.Schema<AddRoutemapResponse>;
602
+
603
+ export interface DelAspathRequest {
604
+ uuid: string;
605
+ }
606
+ export const DelAspathRequest = /*@__PURE__*/ S.suspend(() =>
607
+ S.Struct({
608
+ uuid: S.String.pipe(T.Label()),
609
+ }).pipe(
610
+ T.Http({
611
+ method: "POST",
612
+ uri: "/api/quagga/bgp/delAspath/{uuid}",
613
+ code: 200,
614
+ }),
615
+ ),
616
+ ).annotate({
617
+ identifier: "DelAspathRequest",
618
+ }) as any as S.Schema<DelAspathRequest>;
619
+
620
+ export type DelAspathResult = "deleted" | "not found";
621
+ export const DelAspathResult = S.String;
622
+
623
+ export interface DelAspathResponse {
624
+ result?: DelAspathResult;
625
+ }
626
+ export const DelAspathResponse = /*@__PURE__*/ S.suspend(() =>
627
+ S.Struct({
628
+ result: S.optional(DelAspathResult),
629
+ }),
630
+ ).annotate({
631
+ identifier: "DelAspathResponse",
632
+ }) as any as S.Schema<DelAspathResponse>;
633
+
634
+ export interface DelCommunitylistRequest {
635
+ uuid: string;
636
+ }
637
+ export const DelCommunitylistRequest = /*@__PURE__*/ S.suspend(() =>
638
+ S.Struct({
639
+ uuid: S.String.pipe(T.Label()),
640
+ }).pipe(
641
+ T.Http({
642
+ method: "POST",
643
+ uri: "/api/quagga/bgp/delCommunitylist/{uuid}",
644
+ code: 200,
645
+ }),
646
+ ),
647
+ ).annotate({
648
+ identifier: "DelCommunitylistRequest",
649
+ }) as any as S.Schema<DelCommunitylistRequest>;
650
+
651
+ export type DelCommunitylistResult = "deleted" | "not found";
652
+ export const DelCommunitylistResult = S.String;
653
+
654
+ export interface DelCommunitylistResponse {
655
+ result?: DelCommunitylistResult;
656
+ }
657
+ export const DelCommunitylistResponse = /*@__PURE__*/ S.suspend(() =>
658
+ S.Struct({
659
+ result: S.optional(DelCommunitylistResult),
660
+ }),
661
+ ).annotate({
662
+ identifier: "DelCommunitylistResponse",
663
+ }) as any as S.Schema<DelCommunitylistResponse>;
664
+
665
+ export interface DelNeighborRequest {
666
+ uuid: string;
667
+ }
668
+ export const DelNeighborRequest = /*@__PURE__*/ S.suspend(() =>
669
+ S.Struct({
670
+ uuid: S.String.pipe(T.Label()),
671
+ }).pipe(
672
+ T.Http({
673
+ method: "POST",
674
+ uri: "/api/quagga/bgp/delNeighbor/{uuid}",
675
+ code: 200,
676
+ }),
677
+ ),
678
+ ).annotate({
679
+ identifier: "DelNeighborRequest",
680
+ }) as any as S.Schema<DelNeighborRequest>;
681
+
682
+ export type DelNeighborResult = "deleted" | "not found";
683
+ export const DelNeighborResult = S.String;
684
+
685
+ export interface DelNeighborResponse {
686
+ result?: DelNeighborResult;
687
+ }
688
+ export const DelNeighborResponse = /*@__PURE__*/ S.suspend(() =>
689
+ S.Struct({
690
+ result: S.optional(DelNeighborResult),
691
+ }),
692
+ ).annotate({
693
+ identifier: "DelNeighborResponse",
694
+ }) as any as S.Schema<DelNeighborResponse>;
695
+
696
+ export interface DelPeergroupRequest {
697
+ uuid: string;
698
+ }
699
+ export const DelPeergroupRequest = /*@__PURE__*/ S.suspend(() =>
700
+ S.Struct({
701
+ uuid: S.String.pipe(T.Label()),
702
+ }).pipe(
703
+ T.Http({
704
+ method: "POST",
705
+ uri: "/api/quagga/bgp/delPeergroup/{uuid}",
706
+ code: 200,
707
+ }),
708
+ ),
709
+ ).annotate({
710
+ identifier: "DelPeergroupRequest",
711
+ }) as any as S.Schema<DelPeergroupRequest>;
712
+
713
+ export type DelPeergroupResult = "deleted" | "not found";
714
+ export const DelPeergroupResult = S.String;
715
+
716
+ export interface DelPeergroupResponse {
717
+ result?: DelPeergroupResult;
718
+ }
719
+ export const DelPeergroupResponse = /*@__PURE__*/ S.suspend(() =>
720
+ S.Struct({
721
+ result: S.optional(DelPeergroupResult),
722
+ }),
723
+ ).annotate({
724
+ identifier: "DelPeergroupResponse",
725
+ }) as any as S.Schema<DelPeergroupResponse>;
726
+
727
+ export interface DelPrefixlistRequest {
728
+ uuid: string;
729
+ }
730
+ export const DelPrefixlistRequest = /*@__PURE__*/ S.suspend(() =>
731
+ S.Struct({
732
+ uuid: S.String.pipe(T.Label()),
733
+ }).pipe(
734
+ T.Http({
735
+ method: "POST",
736
+ uri: "/api/quagga/bgp/delPrefixlist/{uuid}",
737
+ code: 200,
738
+ }),
739
+ ),
740
+ ).annotate({
741
+ identifier: "DelPrefixlistRequest",
742
+ }) as any as S.Schema<DelPrefixlistRequest>;
743
+
744
+ export type DelPrefixlistResult = "deleted" | "not found";
745
+ export const DelPrefixlistResult = S.String;
746
+
747
+ export interface DelPrefixlistResponse {
748
+ result?: DelPrefixlistResult;
749
+ }
750
+ export const DelPrefixlistResponse = /*@__PURE__*/ S.suspend(() =>
751
+ S.Struct({
752
+ result: S.optional(DelPrefixlistResult),
753
+ }),
754
+ ).annotate({
755
+ identifier: "DelPrefixlistResponse",
756
+ }) as any as S.Schema<DelPrefixlistResponse>;
757
+
758
+ export interface DelRedistributionRequest {
759
+ uuid: string;
760
+ }
761
+ export const DelRedistributionRequest = /*@__PURE__*/ S.suspend(() =>
762
+ S.Struct({
763
+ uuid: S.String.pipe(T.Label()),
764
+ }).pipe(
765
+ T.Http({
766
+ method: "POST",
767
+ uri: "/api/quagga/bgp/delRedistribution/{uuid}",
768
+ code: 200,
769
+ }),
770
+ ),
771
+ ).annotate({
772
+ identifier: "DelRedistributionRequest",
773
+ }) as any as S.Schema<DelRedistributionRequest>;
774
+
775
+ export type DelRedistributionResult = "deleted" | "not found";
776
+ export const DelRedistributionResult = S.String;
777
+
778
+ export interface DelRedistributionResponse {
779
+ result?: DelRedistributionResult;
780
+ }
781
+ export const DelRedistributionResponse = /*@__PURE__*/ S.suspend(() =>
782
+ S.Struct({
783
+ result: S.optional(DelRedistributionResult),
784
+ }),
785
+ ).annotate({
786
+ identifier: "DelRedistributionResponse",
787
+ }) as any as S.Schema<DelRedistributionResponse>;
788
+
789
+ export interface DelRoutemapRequest {
790
+ uuid: string;
791
+ }
792
+ export const DelRoutemapRequest = /*@__PURE__*/ S.suspend(() =>
793
+ S.Struct({
794
+ uuid: S.String.pipe(T.Label()),
795
+ }).pipe(
796
+ T.Http({
797
+ method: "POST",
798
+ uri: "/api/quagga/bgp/delRoutemap/{uuid}",
799
+ code: 200,
800
+ }),
801
+ ),
802
+ ).annotate({
803
+ identifier: "DelRoutemapRequest",
804
+ }) as any as S.Schema<DelRoutemapRequest>;
805
+
806
+ export type DelRoutemapResult = "deleted" | "not found";
807
+ export const DelRoutemapResult = S.String;
808
+
809
+ export interface DelRoutemapResponse {
810
+ result?: DelRoutemapResult;
811
+ }
812
+ export const DelRoutemapResponse = /*@__PURE__*/ S.suspend(() =>
813
+ S.Struct({
814
+ result: S.optional(DelRoutemapResult),
815
+ }),
816
+ ).annotate({
817
+ identifier: "DelRoutemapResponse",
818
+ }) as any as S.Schema<DelRoutemapResponse>;
819
+
820
+ export interface GetRequest {}
821
+ export const GetRequest = /*@__PURE__*/ S.suspend(() =>
822
+ S.Struct({}).pipe(
823
+ T.Http({ method: "GET", uri: "/api/quagga/bgp/get", code: 200 }),
824
+ ),
825
+ ).annotate({ identifier: "GetRequest" }) as any as S.Schema<GetRequest>;
826
+
827
+ export type ModelBestpath =
828
+ | "as_path_confed"
829
+ | "as_path_multipath_relax"
830
+ | "compare_routerid"
831
+ | "peer_type_multipath_relax"
832
+ | "aigp"
833
+ | "med_missing_as_worst";
834
+ export const ModelBestpath = S.String;
835
+
836
+ export type ModelNeighborItemRemoteAsMode = "internal" | "external";
837
+ export const ModelNeighborItemRemoteAsMode = S.String;
838
+
839
+ export type ModelNeighborItemRemoveprivateas =
840
+ | "removeprivateas"
841
+ | "removeallas"
842
+ | "replaceprivateas"
843
+ | "replaceallas";
844
+ export const ModelNeighborItemRemoveprivateas = S.String;
845
+
846
+ export type ModelNeighborItemAllowasIn =
847
+ | "val1"
848
+ | "val2"
849
+ | "val3"
850
+ | "val4"
851
+ | "val5"
852
+ | "val6"
853
+ | "val7"
854
+ | "val8"
855
+ | "val9"
856
+ | "val10"
857
+ | "origin";
858
+ export const ModelNeighborItemAllowasIn = S.String;
859
+
860
+ export type ModelNeighborItemAttributeunchanged =
861
+ | "as-path"
862
+ | "next-hop"
863
+ | "med";
864
+ export const ModelNeighborItemAttributeunchanged = S.String;
865
+
866
+ export type ModelNeighborItemCapabilities =
867
+ | "extended-nexthop"
868
+ | "dynamic"
869
+ | "fqdn"
870
+ | "link-local";
871
+ export const ModelNeighborItemCapabilities = S.String;
872
+
873
+ export interface ModelNeighborItem {
874
+ /** Item id, assigned by OPNsense on creation. */
875
+ uuid?: string;
876
+ /** OPNsense FieldType: BooleanField */
877
+ enabled: string;
878
+ /** OPNsense FieldType: TextField */
879
+ description?: string;
880
+ /** OPNsense FieldType: NetworkField */
881
+ address: string;
882
+ /** OPNsense FieldType: OptionField */
883
+ remote_as_mode?: ModelNeighborItemRemoteAsMode | (string & {});
884
+ /** OPNsense FieldType: IntegerField; range 1..4294967295 (as text) */
885
+ remoteas?: string;
886
+ /** OPNsense FieldType: IntegerField; range 1..4294967295 (as text) */
887
+ localas?: string;
888
+ /** OPNsense FieldType: TextField */
889
+ password?: string;
890
+ /** OPNsense FieldType: IntegerField; range 0..65535 (as text) */
891
+ weight?: string;
892
+ /** OPNsense FieldType: NetworkField */
893
+ localip?: string;
894
+ /** OPNsense FieldType: InterfaceField */
895
+ updatesource?: string;
896
+ /** OPNsense FieldType: InterfaceField */
897
+ linklocalinterface?: string;
898
+ /** OPNsense FieldType: BooleanField */
899
+ nexthopself?: string;
900
+ /** OPNsense FieldType: BooleanField */
901
+ nexthopselfall?: string;
902
+ /** OPNsense FieldType: BooleanField */
903
+ multihop?: string;
904
+ /** OPNsense FieldType: BooleanField */
905
+ multiprotocol?: string;
906
+ /** OPNsense FieldType: BooleanField */
907
+ rrclient?: string;
908
+ /** OPNsense FieldType: BooleanField */
909
+ soft_reconfiguration_inbound?: string;
910
+ /** OPNsense FieldType: BooleanField */
911
+ bfd?: string;
912
+ /** OPNsense FieldType: BooleanField */
913
+ bfd_strict?: string;
914
+ /** OPNsense FieldType: IntegerField; range 1..1000 (as text) */
915
+ keepalive?: string;
916
+ /** OPNsense FieldType: IntegerField; range 3..3000 (as text) */
917
+ holddown?: string;
918
+ /** OPNsense FieldType: IntegerField; range 1..65000 (as text) */
919
+ connecttimer?: string;
920
+ /** OPNsense FieldType: BooleanField */
921
+ defaultoriginate?: string;
922
+ /** OPNsense FieldType: BooleanField */
923
+ asoverride?: string;
924
+ /** OPNsense FieldType: OptionField */
925
+ removeprivateas?: ModelNeighborItemRemoveprivateas | (string & {});
926
+ /** OPNsense FieldType: OptionField */
927
+ allowas_in?: ModelNeighborItemAllowasIn | (string & {});
928
+ /** OPNsense FieldType: BooleanField */
929
+ disable_connected_check?: string;
930
+ /** OPNsense FieldType: OptionField */
931
+ attributeunchanged?: ModelNeighborItemAttributeunchanged | (string & {});
932
+ /** OPNsense FieldType: OptionField; multi-select: wire value is a single comma-joined string, not a JSON array */
933
+ capabilities?: ModelNeighborItemCapabilities | (string & {});
934
+ /** OPNsense FieldType: ModelRelationField */
935
+ linkedPrefixlistIn?: string;
936
+ /** OPNsense FieldType: ModelRelationField */
937
+ linkedPrefixlistOut?: string;
938
+ /** OPNsense FieldType: ModelRelationField */
939
+ linkedRoutemapIn?: string;
940
+ /** OPNsense FieldType: ModelRelationField */
941
+ linkedRoutemapOut?: string;
942
+ /** OPNsense FieldType: ModelRelationField */
943
+ peergroup?: string;
944
+ }
945
+ export const ModelNeighborItem = /*@__PURE__*/ S.suspend(() =>
946
+ S.Struct({
947
+ uuid: S.optional(S.String),
948
+ enabled: S.String,
949
+ description: S.optional(S.String),
950
+ address: S.String,
951
+ remote_as_mode: S.optional(ModelNeighborItemRemoteAsMode),
952
+ remoteas: S.optional(S.String),
953
+ localas: S.optional(S.String),
954
+ password: S.optional(S.String),
955
+ weight: S.optional(S.String),
956
+ localip: S.optional(S.String),
957
+ updatesource: S.optional(S.String),
958
+ linklocalinterface: S.optional(S.String),
959
+ nexthopself: S.optional(S.String),
960
+ nexthopselfall: S.optional(S.String),
961
+ multihop: S.optional(S.String),
962
+ multiprotocol: S.optional(S.String),
963
+ rrclient: S.optional(S.String),
964
+ soft_reconfiguration_inbound: S.optional(S.String),
965
+ bfd: S.optional(S.String),
966
+ bfd_strict: S.optional(S.String),
967
+ keepalive: S.optional(S.String),
968
+ holddown: S.optional(S.String),
969
+ connecttimer: S.optional(S.String),
970
+ defaultoriginate: S.optional(S.String),
971
+ asoverride: S.optional(S.String),
972
+ removeprivateas: S.optional(ModelNeighborItemRemoveprivateas),
973
+ allowas_in: S.optional(ModelNeighborItemAllowasIn),
974
+ disable_connected_check: S.optional(S.String),
975
+ attributeunchanged: S.optional(ModelNeighborItemAttributeunchanged),
976
+ capabilities: S.optional(ModelNeighborItemCapabilities),
977
+ linkedPrefixlistIn: S.optional(S.String),
978
+ linkedPrefixlistOut: S.optional(S.String),
979
+ linkedRoutemapIn: S.optional(S.String),
980
+ linkedRoutemapOut: S.optional(S.String),
981
+ peergroup: S.optional(S.String),
982
+ }),
983
+ ).annotate({
984
+ identifier: "ModelNeighborItem",
985
+ }) as any as S.Schema<ModelNeighborItem>;
986
+
987
+ export type ModelNeighborItemMap = {
988
+ [key: string]: ModelNeighborItem | undefined;
989
+ };
990
+ export const ModelNeighborItemMap = /*@__PURE__*/ S.Record(
991
+ S.String,
992
+ ModelNeighborItem,
993
+ ) as any as S.Schema<ModelNeighborItemMap>;
994
+
995
+ export interface ModelNeighbors {
996
+ neighbor?: ModelNeighborItemMap;
997
+ }
998
+ export const ModelNeighbors = /*@__PURE__*/ S.suspend(() =>
999
+ S.Struct({
1000
+ neighbor: S.optional(ModelNeighborItemMap),
1001
+ }),
1002
+ ).annotate({ identifier: "ModelNeighbors" }) as any as S.Schema<ModelNeighbors>;
1003
+
1004
+ export type ModelAspathItemAction = "permit" | "deny";
1005
+ export const ModelAspathItemAction = S.String;
1006
+
1007
+ export interface ModelAspathItem {
1008
+ /** Item id, assigned by OPNsense on creation. */
1009
+ uuid?: string;
1010
+ /** OPNsense FieldType: BooleanField */
1011
+ enabled: string;
1012
+ /** OPNsense FieldType: TextField */
1013
+ description?: string;
1014
+ /** OPNsense FieldType: IntegerField; range 0..4294967295 (as text) */
1015
+ number: string;
1016
+ /** OPNsense FieldType: OptionField */
1017
+ action: ModelAspathItemAction | (string & {});
1018
+ /** OPNsense FieldType: TextField */
1019
+ as: string;
1020
+ }
1021
+ export const ModelAspathItem = /*@__PURE__*/ S.suspend(() =>
1022
+ S.Struct({
1023
+ uuid: S.optional(S.String),
1024
+ enabled: S.String,
1025
+ description: S.optional(S.String),
1026
+ number: S.String,
1027
+ action: ModelAspathItemAction,
1028
+ as: S.String,
1029
+ }),
1030
+ ).annotate({
1031
+ identifier: "ModelAspathItem",
1032
+ }) as any as S.Schema<ModelAspathItem>;
1033
+
1034
+ export type ModelAspathItemMap = { [key: string]: ModelAspathItem | undefined };
1035
+ export const ModelAspathItemMap = /*@__PURE__*/ S.Record(
1036
+ S.String,
1037
+ ModelAspathItem,
1038
+ ) as any as S.Schema<ModelAspathItemMap>;
1039
+
1040
+ export interface ModelAspaths {
1041
+ aspath?: ModelAspathItemMap;
1042
+ }
1043
+ export const ModelAspaths = /*@__PURE__*/ S.suspend(() =>
1044
+ S.Struct({
1045
+ aspath: S.optional(ModelAspathItemMap),
1046
+ }),
1047
+ ).annotate({ identifier: "ModelAspaths" }) as any as S.Schema<ModelAspaths>;
1048
+
1049
+ export type ModelPrefixlistItemVersion = "IPv4" | "IPv6";
1050
+ export const ModelPrefixlistItemVersion = S.String;
1051
+
1052
+ export type ModelPrefixlistItemAction = "permit" | "deny";
1053
+ export const ModelPrefixlistItemAction = S.String;
1054
+
1055
+ export interface ModelPrefixlistItem {
1056
+ /** Item id, assigned by OPNsense on creation. */
1057
+ uuid?: string;
1058
+ /** OPNsense FieldType: BooleanField */
1059
+ enabled: string;
1060
+ /** OPNsense FieldType: TextField */
1061
+ description?: string;
1062
+ /** OPNsense FieldType: TextField; pattern /^[a-zA-Z0-9._-]{1,64}$/ */
1063
+ name: string;
1064
+ /** OPNsense FieldType: OptionField */
1065
+ version: ModelPrefixlistItemVersion | (string & {});
1066
+ /** OPNsense FieldType: IntegerField; range 1..4294967294 (as text) */
1067
+ seqnumber: string;
1068
+ /** OPNsense FieldType: OptionField */
1069
+ action: ModelPrefixlistItemAction | (string & {});
1070
+ /** OPNsense FieldType: TextField */
1071
+ network: string;
1072
+ }
1073
+ export const ModelPrefixlistItem = /*@__PURE__*/ S.suspend(() =>
1074
+ S.Struct({
1075
+ uuid: S.optional(S.String),
1076
+ enabled: S.String,
1077
+ description: S.optional(S.String),
1078
+ name: S.String,
1079
+ version: ModelPrefixlistItemVersion,
1080
+ seqnumber: S.String,
1081
+ action: ModelPrefixlistItemAction,
1082
+ network: S.String,
1083
+ }),
1084
+ ).annotate({
1085
+ identifier: "ModelPrefixlistItem",
1086
+ }) as any as S.Schema<ModelPrefixlistItem>;
1087
+
1088
+ export type ModelPrefixlistItemMap = {
1089
+ [key: string]: ModelPrefixlistItem | undefined;
1090
+ };
1091
+ export const ModelPrefixlistItemMap = /*@__PURE__*/ S.Record(
1092
+ S.String,
1093
+ ModelPrefixlistItem,
1094
+ ) as any as S.Schema<ModelPrefixlistItemMap>;
1095
+
1096
+ export interface ModelPrefixlists {
1097
+ prefixlist?: ModelPrefixlistItemMap;
1098
+ }
1099
+ export const ModelPrefixlists = /*@__PURE__*/ S.suspend(() =>
1100
+ S.Struct({
1101
+ prefixlist: S.optional(ModelPrefixlistItemMap),
1102
+ }),
1103
+ ).annotate({
1104
+ identifier: "ModelPrefixlists",
1105
+ }) as any as S.Schema<ModelPrefixlists>;
1106
+
1107
+ export type ModelCommunitylistItemAction = "permit" | "deny";
1108
+ export const ModelCommunitylistItemAction = S.String;
1109
+
1110
+ export interface ModelCommunitylistItem {
1111
+ /** Item id, assigned by OPNsense on creation. */
1112
+ uuid?: string;
1113
+ /** OPNsense FieldType: BooleanField */
1114
+ enabled: string;
1115
+ /** OPNsense FieldType: TextField */
1116
+ description?: string;
1117
+ /** OPNsense FieldType: IntegerField; range 1..500 (as text) */
1118
+ number: string;
1119
+ /** OPNsense FieldType: IntegerField; range 10..99 (as text) */
1120
+ seqnumber: string;
1121
+ /** OPNsense FieldType: OptionField */
1122
+ action: ModelCommunitylistItemAction | (string & {});
1123
+ /** OPNsense FieldType: TextField */
1124
+ community: string;
1125
+ }
1126
+ export const ModelCommunitylistItem = /*@__PURE__*/ S.suspend(() =>
1127
+ S.Struct({
1128
+ uuid: S.optional(S.String),
1129
+ enabled: S.String,
1130
+ description: S.optional(S.String),
1131
+ number: S.String,
1132
+ seqnumber: S.String,
1133
+ action: ModelCommunitylistItemAction,
1134
+ community: S.String,
1135
+ }),
1136
+ ).annotate({
1137
+ identifier: "ModelCommunitylistItem",
1138
+ }) as any as S.Schema<ModelCommunitylistItem>;
1139
+
1140
+ export type ModelCommunitylistItemMap = {
1141
+ [key: string]: ModelCommunitylistItem | undefined;
1142
+ };
1143
+ export const ModelCommunitylistItemMap = /*@__PURE__*/ S.Record(
1144
+ S.String,
1145
+ ModelCommunitylistItem,
1146
+ ) as any as S.Schema<ModelCommunitylistItemMap>;
1147
+
1148
+ export interface ModelCommunitylists {
1149
+ communitylist?: ModelCommunitylistItemMap;
1150
+ }
1151
+ export const ModelCommunitylists = /*@__PURE__*/ S.suspend(() =>
1152
+ S.Struct({
1153
+ communitylist: S.optional(ModelCommunitylistItemMap),
1154
+ }),
1155
+ ).annotate({
1156
+ identifier: "ModelCommunitylists",
1157
+ }) as any as S.Schema<ModelCommunitylists>;
1158
+
1159
+ export type ModelRoutemapItemAction = "permit" | "deny";
1160
+ export const ModelRoutemapItemAction = S.String;
1161
+
1162
+ export interface ModelRoutemapItem {
1163
+ /** Item id, assigned by OPNsense on creation. */
1164
+ uuid?: string;
1165
+ /** OPNsense FieldType: BooleanField */
1166
+ enabled: string;
1167
+ /** OPNsense FieldType: TextField */
1168
+ description?: string;
1169
+ /** OPNsense FieldType: TextField; pattern /^[a-zA-Z0-9._-]{1,64}$/ */
1170
+ name: string;
1171
+ /** OPNsense FieldType: OptionField */
1172
+ action: ModelRoutemapItemAction | (string & {});
1173
+ /** OPNsense FieldType: IntegerField; range 1..65535 (as text) */
1174
+ id: string;
1175
+ /** OPNsense FieldType: ModelRelationField; multi-select: wire value is a single comma-joined string, not a JSON array */
1176
+ match?: string;
1177
+ /** OPNsense FieldType: ModelRelationField; multi-select: wire value is a single comma-joined string, not a JSON array */
1178
+ match2?: string;
1179
+ /** OPNsense FieldType: ModelRelationField; multi-select: wire value is a single comma-joined string, not a JSON array */
1180
+ match3?: string;
1181
+ /** OPNsense FieldType: TextField */
1182
+ set?: string;
1183
+ }
1184
+ export const ModelRoutemapItem = /*@__PURE__*/ S.suspend(() =>
1185
+ S.Struct({
1186
+ uuid: S.optional(S.String),
1187
+ enabled: S.String,
1188
+ description: S.optional(S.String),
1189
+ name: S.String,
1190
+ action: ModelRoutemapItemAction,
1191
+ id: S.String,
1192
+ match: S.optional(S.String),
1193
+ match2: S.optional(S.String),
1194
+ match3: S.optional(S.String),
1195
+ set: S.optional(S.String),
1196
+ }),
1197
+ ).annotate({
1198
+ identifier: "ModelRoutemapItem",
1199
+ }) as any as S.Schema<ModelRoutemapItem>;
1200
+
1201
+ export type ModelRoutemapItemMap = {
1202
+ [key: string]: ModelRoutemapItem | undefined;
1203
+ };
1204
+ export const ModelRoutemapItemMap = /*@__PURE__*/ S.Record(
1205
+ S.String,
1206
+ ModelRoutemapItem,
1207
+ ) as any as S.Schema<ModelRoutemapItemMap>;
1208
+
1209
+ export interface ModelRoutemaps {
1210
+ routemap?: ModelRoutemapItemMap;
1211
+ }
1212
+ export const ModelRoutemaps = /*@__PURE__*/ S.suspend(() =>
1213
+ S.Struct({
1214
+ routemap: S.optional(ModelRoutemapItemMap),
1215
+ }),
1216
+ ).annotate({ identifier: "ModelRoutemaps" }) as any as S.Schema<ModelRoutemaps>;
1217
+
1218
+ export type ModelPeergroupItemRemoteAsMode = "internal" | "external";
1219
+ export const ModelPeergroupItemRemoteAsMode = S.String;
1220
+
1221
+ export type ModelPeergroupItemFamily = "ipv4" | "ipv6";
1222
+ export const ModelPeergroupItemFamily = S.String;
1223
+
1224
+ export interface ModelPeergroupItem {
1225
+ /** Item id, assigned by OPNsense on creation. */
1226
+ uuid?: string;
1227
+ /** OPNsense FieldType: BooleanField */
1228
+ enabled: string;
1229
+ /** OPNsense FieldType: TextField */
1230
+ name: string;
1231
+ /** OPNsense FieldType: OptionField */
1232
+ remote_as_mode?: ModelPeergroupItemRemoteAsMode | (string & {});
1233
+ /** OPNsense FieldType: IntegerField; range 1..4294967295 (as text) */
1234
+ remoteas?: string;
1235
+ /** OPNsense FieldType: OptionField; multi-select: wire value is a single comma-joined string, not a JSON array */
1236
+ family: ModelPeergroupItemFamily | (string & {});
1237
+ /** OPNsense FieldType: NetworkField */
1238
+ listenranges?: string;
1239
+ /** OPNsense FieldType: InterfaceField */
1240
+ updatesource?: string;
1241
+ /** OPNsense FieldType: BooleanField */
1242
+ nexthopself?: string;
1243
+ /** OPNsense FieldType: BooleanField */
1244
+ defaultoriginate?: string;
1245
+ /** OPNsense FieldType: ModelRelationField */
1246
+ linkedPrefixlistIn?: string;
1247
+ /** OPNsense FieldType: ModelRelationField */
1248
+ linkedPrefixlistOut?: string;
1249
+ /** OPNsense FieldType: ModelRelationField */
1250
+ linkedRoutemapIn?: string;
1251
+ /** OPNsense FieldType: ModelRelationField */
1252
+ linkedRoutemapOut?: string;
1253
+ }
1254
+ export const ModelPeergroupItem = /*@__PURE__*/ S.suspend(() =>
1255
+ S.Struct({
1256
+ uuid: S.optional(S.String),
1257
+ enabled: S.String,
1258
+ name: S.String,
1259
+ remote_as_mode: S.optional(ModelPeergroupItemRemoteAsMode),
1260
+ remoteas: S.optional(S.String),
1261
+ family: ModelPeergroupItemFamily,
1262
+ listenranges: S.optional(S.String),
1263
+ updatesource: S.optional(S.String),
1264
+ nexthopself: S.optional(S.String),
1265
+ defaultoriginate: S.optional(S.String),
1266
+ linkedPrefixlistIn: S.optional(S.String),
1267
+ linkedPrefixlistOut: S.optional(S.String),
1268
+ linkedRoutemapIn: S.optional(S.String),
1269
+ linkedRoutemapOut: S.optional(S.String),
1270
+ }),
1271
+ ).annotate({
1272
+ identifier: "ModelPeergroupItem",
1273
+ }) as any as S.Schema<ModelPeergroupItem>;
1274
+
1275
+ export type ModelPeergroupItemMap = {
1276
+ [key: string]: ModelPeergroupItem | undefined;
1277
+ };
1278
+ export const ModelPeergroupItemMap = /*@__PURE__*/ S.Record(
1279
+ S.String,
1280
+ ModelPeergroupItem,
1281
+ ) as any as S.Schema<ModelPeergroupItemMap>;
1282
+
1283
+ export interface ModelPeergroups {
1284
+ peergroup?: ModelPeergroupItemMap;
1285
+ }
1286
+ export const ModelPeergroups = /*@__PURE__*/ S.suspend(() =>
1287
+ S.Struct({
1288
+ peergroup: S.optional(ModelPeergroupItemMap),
1289
+ }),
1290
+ ).annotate({
1291
+ identifier: "ModelPeergroups",
1292
+ }) as any as S.Schema<ModelPeergroups>;
1293
+
1294
+ export type ModelRedistributionItemRedistribute =
1295
+ | "ospf"
1296
+ | "connected"
1297
+ | "kernel"
1298
+ | "rip"
1299
+ | "static";
1300
+ export const ModelRedistributionItemRedistribute = S.String;
1301
+
1302
+ export interface ModelRedistributionItem {
1303
+ /** Item id, assigned by OPNsense on creation. */
1304
+ uuid?: string;
1305
+ /** OPNsense FieldType: BooleanField */
1306
+ enabled: string;
1307
+ /** OPNsense FieldType: DescriptionField */
1308
+ description?: string;
1309
+ /** OPNsense FieldType: OptionField */
1310
+ redistribute: ModelRedistributionItemRedistribute | (string & {});
1311
+ /** OPNsense FieldType: ModelRelationField */
1312
+ linkedRoutemap?: string;
1313
+ }
1314
+ export const ModelRedistributionItem = /*@__PURE__*/ S.suspend(() =>
1315
+ S.Struct({
1316
+ uuid: S.optional(S.String),
1317
+ enabled: S.String,
1318
+ description: S.optional(S.String),
1319
+ redistribute: ModelRedistributionItemRedistribute,
1320
+ linkedRoutemap: S.optional(S.String),
1321
+ }),
1322
+ ).annotate({
1323
+ identifier: "ModelRedistributionItem",
1324
+ }) as any as S.Schema<ModelRedistributionItem>;
1325
+
1326
+ export type ModelRedistributionItemMap = {
1327
+ [key: string]: ModelRedistributionItem | undefined;
1328
+ };
1329
+ export const ModelRedistributionItemMap = /*@__PURE__*/ S.Record(
1330
+ S.String,
1331
+ ModelRedistributionItem,
1332
+ ) as any as S.Schema<ModelRedistributionItemMap>;
1333
+
1334
+ export interface ModelRedistributions {
1335
+ redistribution?: ModelRedistributionItemMap;
1336
+ }
1337
+ export const ModelRedistributions = /*@__PURE__*/ S.suspend(() =>
1338
+ S.Struct({
1339
+ redistribution: S.optional(ModelRedistributionItemMap),
1340
+ }),
1341
+ ).annotate({
1342
+ identifier: "ModelRedistributions",
1343
+ }) as any as S.Schema<ModelRedistributions>;
1344
+
1345
+ export interface Model {
1346
+ /** OPNsense FieldType: BooleanField */
1347
+ enabled: string;
1348
+ /** OPNsense FieldType: IntegerField; range 1..4294967295 (as text) */
1349
+ asnumber: string;
1350
+ /** OPNsense FieldType: IntegerField; range 1..255 (as text) */
1351
+ distance?: string;
1352
+ /** OPNsense FieldType: TextField; pattern /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/ */
1353
+ routerid?: string;
1354
+ /** OPNsense FieldType: BooleanField */
1355
+ graceful: string;
1356
+ /** OPNsense FieldType: BooleanField */
1357
+ networkimportcheck: string;
1358
+ /** OPNsense FieldType: BooleanField */
1359
+ enforce_first_as: string;
1360
+ /** OPNsense FieldType: BooleanField */
1361
+ logneighborchanges: string;
1362
+ /** OPNsense FieldType: CSVListField */
1363
+ networks?: string;
1364
+ /** OPNsense FieldType: OptionField; multi-select: wire value is a single comma-joined string, not a JSON array */
1365
+ bestpath?: ModelBestpath | (string & {});
1366
+ /** OPNsense FieldType: IntegerField; range 1..128 (as text) */
1367
+ maximumpaths?: string;
1368
+ /** OPNsense FieldType: IntegerField; range 1..128 (as text) */
1369
+ maximumpathsibgp?: string;
1370
+ neighbors?: ModelNeighbors;
1371
+ aspaths?: ModelAspaths;
1372
+ prefixlists?: ModelPrefixlists;
1373
+ communitylists?: ModelCommunitylists;
1374
+ routemaps?: ModelRoutemaps;
1375
+ peergroups?: ModelPeergroups;
1376
+ redistributions?: ModelRedistributions;
1377
+ }
1378
+ export const Model = /*@__PURE__*/ S.suspend(() =>
1379
+ S.Struct({
1380
+ enabled: S.String,
1381
+ asnumber: S.String,
1382
+ distance: S.optional(S.String),
1383
+ routerid: S.optional(S.String),
1384
+ graceful: S.String,
1385
+ networkimportcheck: S.String,
1386
+ enforce_first_as: S.String,
1387
+ logneighborchanges: S.String,
1388
+ networks: S.optional(S.String),
1389
+ bestpath: S.optional(ModelBestpath),
1390
+ maximumpaths: S.optional(S.String),
1391
+ maximumpathsibgp: S.optional(S.String),
1392
+ neighbors: S.optional(ModelNeighbors),
1393
+ aspaths: S.optional(ModelAspaths),
1394
+ prefixlists: S.optional(ModelPrefixlists),
1395
+ communitylists: S.optional(ModelCommunitylists),
1396
+ routemaps: S.optional(ModelRoutemaps),
1397
+ peergroups: S.optional(ModelPeergroups),
1398
+ redistributions: S.optional(ModelRedistributions),
1399
+ }),
1400
+ ).annotate({ identifier: "Model" }) as any as S.Schema<Model>;
1401
+
1402
+ export interface GetResponse {
1403
+ bgp?: Model;
1404
+ }
1405
+ export const GetResponse = /*@__PURE__*/ S.suspend(() =>
1406
+ S.Struct({
1407
+ bgp: S.optional(Model),
1408
+ }),
1409
+ ).annotate({ identifier: "GetResponse" }) as any as S.Schema<GetResponse>;
1410
+
1411
+ export interface GetAspathRequest {}
1412
+ export const GetAspathRequest = /*@__PURE__*/ S.suspend(() =>
1413
+ S.Struct({}).pipe(
1414
+ T.Http({ method: "GET", uri: "/api/quagga/bgp/getAspath", code: 200 }),
1415
+ ),
1416
+ ).annotate({
1417
+ identifier: "GetAspathRequest",
1418
+ }) as any as S.Schema<GetAspathRequest>;
1419
+
1420
+ export interface GetAspathResponse {
1421
+ aspath?: AspathItem;
1422
+ }
1423
+ export const GetAspathResponse = /*@__PURE__*/ S.suspend(() =>
1424
+ S.Struct({
1425
+ aspath: S.optional(AspathItem),
1426
+ }),
1427
+ ).annotate({
1428
+ identifier: "GetAspathResponse",
1429
+ }) as any as S.Schema<GetAspathResponse>;
1430
+
1431
+ export interface GetCommunitylistRequest {}
1432
+ export const GetCommunitylistRequest = /*@__PURE__*/ S.suspend(() =>
1433
+ S.Struct({}).pipe(
1434
+ T.Http({
1435
+ method: "GET",
1436
+ uri: "/api/quagga/bgp/getCommunitylist",
1437
+ code: 200,
1438
+ }),
1439
+ ),
1440
+ ).annotate({
1441
+ identifier: "GetCommunitylistRequest",
1442
+ }) as any as S.Schema<GetCommunitylistRequest>;
1443
+
1444
+ export interface GetCommunitylistResponse {
1445
+ communitylist?: CommunitylistItem;
1446
+ }
1447
+ export const GetCommunitylistResponse = /*@__PURE__*/ S.suspend(() =>
1448
+ S.Struct({
1449
+ communitylist: S.optional(CommunitylistItem),
1450
+ }),
1451
+ ).annotate({
1452
+ identifier: "GetCommunitylistResponse",
1453
+ }) as any as S.Schema<GetCommunitylistResponse>;
1454
+
1455
+ export interface GetNeighborRequest {}
1456
+ export const GetNeighborRequest = /*@__PURE__*/ S.suspend(() =>
1457
+ S.Struct({}).pipe(
1458
+ T.Http({ method: "GET", uri: "/api/quagga/bgp/getNeighbor", code: 200 }),
1459
+ ),
1460
+ ).annotate({
1461
+ identifier: "GetNeighborRequest",
1462
+ }) as any as S.Schema<GetNeighborRequest>;
1463
+
1464
+ export interface GetNeighborResponse {
1465
+ neighbor?: NeighborItem;
1466
+ }
1467
+ export const GetNeighborResponse = /*@__PURE__*/ S.suspend(() =>
1468
+ S.Struct({
1469
+ neighbor: S.optional(NeighborItem),
1470
+ }),
1471
+ ).annotate({
1472
+ identifier: "GetNeighborResponse",
1473
+ }) as any as S.Schema<GetNeighborResponse>;
1474
+
1475
+ export interface GetPeergroupRequest {}
1476
+ export const GetPeergroupRequest = /*@__PURE__*/ S.suspend(() =>
1477
+ S.Struct({}).pipe(
1478
+ T.Http({ method: "GET", uri: "/api/quagga/bgp/getPeergroup", code: 200 }),
1479
+ ),
1480
+ ).annotate({
1481
+ identifier: "GetPeergroupRequest",
1482
+ }) as any as S.Schema<GetPeergroupRequest>;
1483
+
1484
+ export interface GetPeergroupResponse {
1485
+ peergroup?: PeergroupItem;
1486
+ }
1487
+ export const GetPeergroupResponse = /*@__PURE__*/ S.suspend(() =>
1488
+ S.Struct({
1489
+ peergroup: S.optional(PeergroupItem),
1490
+ }),
1491
+ ).annotate({
1492
+ identifier: "GetPeergroupResponse",
1493
+ }) as any as S.Schema<GetPeergroupResponse>;
1494
+
1495
+ export interface GetPrefixlistRequest {}
1496
+ export const GetPrefixlistRequest = /*@__PURE__*/ S.suspend(() =>
1497
+ S.Struct({}).pipe(
1498
+ T.Http({ method: "GET", uri: "/api/quagga/bgp/getPrefixlist", code: 200 }),
1499
+ ),
1500
+ ).annotate({
1501
+ identifier: "GetPrefixlistRequest",
1502
+ }) as any as S.Schema<GetPrefixlistRequest>;
1503
+
1504
+ export interface GetPrefixlistResponse {
1505
+ prefixlist?: PrefixlistItem;
1506
+ }
1507
+ export const GetPrefixlistResponse = /*@__PURE__*/ S.suspend(() =>
1508
+ S.Struct({
1509
+ prefixlist: S.optional(PrefixlistItem),
1510
+ }),
1511
+ ).annotate({
1512
+ identifier: "GetPrefixlistResponse",
1513
+ }) as any as S.Schema<GetPrefixlistResponse>;
1514
+
1515
+ export interface GetRedistributionRequest {}
1516
+ export const GetRedistributionRequest = /*@__PURE__*/ S.suspend(() =>
1517
+ S.Struct({}).pipe(
1518
+ T.Http({
1519
+ method: "GET",
1520
+ uri: "/api/quagga/bgp/getRedistribution",
1521
+ code: 200,
1522
+ }),
1523
+ ),
1524
+ ).annotate({
1525
+ identifier: "GetRedistributionRequest",
1526
+ }) as any as S.Schema<GetRedistributionRequest>;
1527
+
1528
+ export interface GetRedistributionResponse {
1529
+ redistribution?: RedistributionItem;
1530
+ }
1531
+ export const GetRedistributionResponse = /*@__PURE__*/ S.suspend(() =>
1532
+ S.Struct({
1533
+ redistribution: S.optional(RedistributionItem),
1534
+ }),
1535
+ ).annotate({
1536
+ identifier: "GetRedistributionResponse",
1537
+ }) as any as S.Schema<GetRedistributionResponse>;
1538
+
1539
+ export interface GetRoutemapRequest {}
1540
+ export const GetRoutemapRequest = /*@__PURE__*/ S.suspend(() =>
1541
+ S.Struct({}).pipe(
1542
+ T.Http({ method: "GET", uri: "/api/quagga/bgp/getRoutemap", code: 200 }),
1543
+ ),
1544
+ ).annotate({
1545
+ identifier: "GetRoutemapRequest",
1546
+ }) as any as S.Schema<GetRoutemapRequest>;
1547
+
1548
+ export interface GetRoutemapResponse {
1549
+ routemap?: RoutemapItem;
1550
+ }
1551
+ export const GetRoutemapResponse = /*@__PURE__*/ S.suspend(() =>
1552
+ S.Struct({
1553
+ routemap: S.optional(RoutemapItem),
1554
+ }),
1555
+ ).annotate({
1556
+ identifier: "GetRoutemapResponse",
1557
+ }) as any as S.Schema<GetRoutemapResponse>;
1558
+
1559
+ export interface SearchAspathRequest {}
1560
+ export const SearchAspathRequest = /*@__PURE__*/ S.suspend(() =>
1561
+ S.Struct({}).pipe(
1562
+ T.Http({ method: "POST", uri: "/api/quagga/bgp/searchAspath", code: 200 }),
1563
+ ),
1564
+ ).annotate({
1565
+ identifier: "SearchAspathRequest",
1566
+ }) as any as S.Schema<SearchAspathRequest>;
1567
+
1568
+ export type AspathList = Array<AspathItem>;
1569
+ export const AspathList = /*@__PURE__*/ S.Array(
1570
+ AspathItem,
1571
+ ) as any as S.Schema<AspathList>;
1572
+
1573
+ export interface SearchAspathResponse {
1574
+ /** Total matching items before pagination. */
1575
+ total?: number;
1576
+ rowCount?: number;
1577
+ /** Current page number. */
1578
+ current?: number;
1579
+ rows?: AspathList;
1580
+ }
1581
+ export const SearchAspathResponse = /*@__PURE__*/ S.suspend(() =>
1582
+ S.Struct({
1583
+ total: S.optional(S.Number),
1584
+ rowCount: S.optional(S.Number),
1585
+ current: S.optional(S.Number),
1586
+ rows: S.optional(AspathList),
1587
+ }),
1588
+ ).annotate({
1589
+ identifier: "SearchAspathResponse",
1590
+ }) as any as S.Schema<SearchAspathResponse>;
1591
+
1592
+ export interface SearchCommunitylistRequest {}
1593
+ export const SearchCommunitylistRequest = /*@__PURE__*/ S.suspend(() =>
1594
+ S.Struct({}).pipe(
1595
+ T.Http({
1596
+ method: "POST",
1597
+ uri: "/api/quagga/bgp/searchCommunitylist",
1598
+ code: 200,
1599
+ }),
1600
+ ),
1601
+ ).annotate({
1602
+ identifier: "SearchCommunitylistRequest",
1603
+ }) as any as S.Schema<SearchCommunitylistRequest>;
1604
+
1605
+ export type CommunitylistList = Array<CommunitylistItem>;
1606
+ export const CommunitylistList = /*@__PURE__*/ S.Array(
1607
+ CommunitylistItem,
1608
+ ) as any as S.Schema<CommunitylistList>;
1609
+
1610
+ export interface SearchCommunitylistResponse {
1611
+ /** Total matching items before pagination. */
1612
+ total?: number;
1613
+ rowCount?: number;
1614
+ /** Current page number. */
1615
+ current?: number;
1616
+ rows?: CommunitylistList;
1617
+ }
1618
+ export const SearchCommunitylistResponse = /*@__PURE__*/ S.suspend(() =>
1619
+ S.Struct({
1620
+ total: S.optional(S.Number),
1621
+ rowCount: S.optional(S.Number),
1622
+ current: S.optional(S.Number),
1623
+ rows: S.optional(CommunitylistList),
1624
+ }),
1625
+ ).annotate({
1626
+ identifier: "SearchCommunitylistResponse",
1627
+ }) as any as S.Schema<SearchCommunitylistResponse>;
1628
+
1629
+ export interface SearchNeighborRequest {}
1630
+ export const SearchNeighborRequest = /*@__PURE__*/ S.suspend(() =>
1631
+ S.Struct({}).pipe(
1632
+ T.Http({
1633
+ method: "POST",
1634
+ uri: "/api/quagga/bgp/searchNeighbor",
1635
+ code: 200,
1636
+ }),
1637
+ ),
1638
+ ).annotate({
1639
+ identifier: "SearchNeighborRequest",
1640
+ }) as any as S.Schema<SearchNeighborRequest>;
1641
+
1642
+ export type NeighborList = Array<NeighborItem>;
1643
+ export const NeighborList = /*@__PURE__*/ S.Array(
1644
+ NeighborItem,
1645
+ ) as any as S.Schema<NeighborList>;
1646
+
1647
+ export interface SearchNeighborResponse {
1648
+ /** Total matching items before pagination. */
1649
+ total?: number;
1650
+ rowCount?: number;
1651
+ /** Current page number. */
1652
+ current?: number;
1653
+ rows?: NeighborList;
1654
+ }
1655
+ export const SearchNeighborResponse = /*@__PURE__*/ S.suspend(() =>
1656
+ S.Struct({
1657
+ total: S.optional(S.Number),
1658
+ rowCount: S.optional(S.Number),
1659
+ current: S.optional(S.Number),
1660
+ rows: S.optional(NeighborList),
1661
+ }),
1662
+ ).annotate({
1663
+ identifier: "SearchNeighborResponse",
1664
+ }) as any as S.Schema<SearchNeighborResponse>;
1665
+
1666
+ export interface SearchPeergroupRequest {}
1667
+ export const SearchPeergroupRequest = /*@__PURE__*/ S.suspend(() =>
1668
+ S.Struct({}).pipe(
1669
+ T.Http({
1670
+ method: "POST",
1671
+ uri: "/api/quagga/bgp/searchPeergroup",
1672
+ code: 200,
1673
+ }),
1674
+ ),
1675
+ ).annotate({
1676
+ identifier: "SearchPeergroupRequest",
1677
+ }) as any as S.Schema<SearchPeergroupRequest>;
1678
+
1679
+ export type PeergroupList = Array<PeergroupItem>;
1680
+ export const PeergroupList = /*@__PURE__*/ S.Array(
1681
+ PeergroupItem,
1682
+ ) as any as S.Schema<PeergroupList>;
1683
+
1684
+ export interface SearchPeergroupResponse {
1685
+ /** Total matching items before pagination. */
1686
+ total?: number;
1687
+ rowCount?: number;
1688
+ /** Current page number. */
1689
+ current?: number;
1690
+ rows?: PeergroupList;
1691
+ }
1692
+ export const SearchPeergroupResponse = /*@__PURE__*/ S.suspend(() =>
1693
+ S.Struct({
1694
+ total: S.optional(S.Number),
1695
+ rowCount: S.optional(S.Number),
1696
+ current: S.optional(S.Number),
1697
+ rows: S.optional(PeergroupList),
1698
+ }),
1699
+ ).annotate({
1700
+ identifier: "SearchPeergroupResponse",
1701
+ }) as any as S.Schema<SearchPeergroupResponse>;
1702
+
1703
+ export interface SearchPrefixlistRequest {}
1704
+ export const SearchPrefixlistRequest = /*@__PURE__*/ S.suspend(() =>
1705
+ S.Struct({}).pipe(
1706
+ T.Http({
1707
+ method: "POST",
1708
+ uri: "/api/quagga/bgp/searchPrefixlist",
1709
+ code: 200,
1710
+ }),
1711
+ ),
1712
+ ).annotate({
1713
+ identifier: "SearchPrefixlistRequest",
1714
+ }) as any as S.Schema<SearchPrefixlistRequest>;
1715
+
1716
+ export type PrefixlistList = Array<PrefixlistItem>;
1717
+ export const PrefixlistList = /*@__PURE__*/ S.Array(
1718
+ PrefixlistItem,
1719
+ ) as any as S.Schema<PrefixlistList>;
1720
+
1721
+ export interface SearchPrefixlistResponse {
1722
+ /** Total matching items before pagination. */
1723
+ total?: number;
1724
+ rowCount?: number;
1725
+ /** Current page number. */
1726
+ current?: number;
1727
+ rows?: PrefixlistList;
1728
+ }
1729
+ export const SearchPrefixlistResponse = /*@__PURE__*/ S.suspend(() =>
1730
+ S.Struct({
1731
+ total: S.optional(S.Number),
1732
+ rowCount: S.optional(S.Number),
1733
+ current: S.optional(S.Number),
1734
+ rows: S.optional(PrefixlistList),
1735
+ }),
1736
+ ).annotate({
1737
+ identifier: "SearchPrefixlistResponse",
1738
+ }) as any as S.Schema<SearchPrefixlistResponse>;
1739
+
1740
+ export interface SearchRedistributionRequest {}
1741
+ export const SearchRedistributionRequest = /*@__PURE__*/ S.suspend(() =>
1742
+ S.Struct({}).pipe(
1743
+ T.Http({
1744
+ method: "POST",
1745
+ uri: "/api/quagga/bgp/searchRedistribution",
1746
+ code: 200,
1747
+ }),
1748
+ ),
1749
+ ).annotate({
1750
+ identifier: "SearchRedistributionRequest",
1751
+ }) as any as S.Schema<SearchRedistributionRequest>;
1752
+
1753
+ export type RedistributionList = Array<RedistributionItem>;
1754
+ export const RedistributionList = /*@__PURE__*/ S.Array(
1755
+ RedistributionItem,
1756
+ ) as any as S.Schema<RedistributionList>;
1757
+
1758
+ export interface SearchRedistributionResponse {
1759
+ /** Total matching items before pagination. */
1760
+ total?: number;
1761
+ rowCount?: number;
1762
+ /** Current page number. */
1763
+ current?: number;
1764
+ rows?: RedistributionList;
1765
+ }
1766
+ export const SearchRedistributionResponse = /*@__PURE__*/ S.suspend(() =>
1767
+ S.Struct({
1768
+ total: S.optional(S.Number),
1769
+ rowCount: S.optional(S.Number),
1770
+ current: S.optional(S.Number),
1771
+ rows: S.optional(RedistributionList),
1772
+ }),
1773
+ ).annotate({
1774
+ identifier: "SearchRedistributionResponse",
1775
+ }) as any as S.Schema<SearchRedistributionResponse>;
1776
+
1777
+ export interface SearchRoutemapRequest {}
1778
+ export const SearchRoutemapRequest = /*@__PURE__*/ S.suspend(() =>
1779
+ S.Struct({}).pipe(
1780
+ T.Http({
1781
+ method: "POST",
1782
+ uri: "/api/quagga/bgp/searchRoutemap",
1783
+ code: 200,
1784
+ }),
1785
+ ),
1786
+ ).annotate({
1787
+ identifier: "SearchRoutemapRequest",
1788
+ }) as any as S.Schema<SearchRoutemapRequest>;
1789
+
1790
+ export type RoutemapList = Array<RoutemapItem>;
1791
+ export const RoutemapList = /*@__PURE__*/ S.Array(
1792
+ RoutemapItem,
1793
+ ) as any as S.Schema<RoutemapList>;
1794
+
1795
+ export interface SearchRoutemapResponse {
1796
+ /** Total matching items before pagination. */
1797
+ total?: number;
1798
+ rowCount?: number;
1799
+ /** Current page number. */
1800
+ current?: number;
1801
+ rows?: RoutemapList;
1802
+ }
1803
+ export const SearchRoutemapResponse = /*@__PURE__*/ S.suspend(() =>
1804
+ S.Struct({
1805
+ total: S.optional(S.Number),
1806
+ rowCount: S.optional(S.Number),
1807
+ current: S.optional(S.Number),
1808
+ rows: S.optional(RoutemapList),
1809
+ }),
1810
+ ).annotate({
1811
+ identifier: "SearchRoutemapResponse",
1812
+ }) as any as S.Schema<SearchRoutemapResponse>;
1813
+
1814
+ export interface SetRequest {
1815
+ bgp?: Model;
1816
+ }
1817
+ export const SetRequest = /*@__PURE__*/ S.suspend(() =>
1818
+ S.Struct({
1819
+ bgp: S.optional(Model),
1820
+ }).pipe(T.Http({ method: "POST", uri: "/api/quagga/bgp/set", code: 200 })),
1821
+ ).annotate({ identifier: "SetRequest" }) as any as S.Schema<SetRequest>;
1822
+
1823
+ export type SetResult = "saved";
1824
+ export const SetResult = S.String;
1825
+
1826
+ export interface SetResponse {
1827
+ result?: SetResult;
1828
+ }
1829
+ export const SetResponse = /*@__PURE__*/ S.suspend(() =>
1830
+ S.Struct({
1831
+ result: S.optional(SetResult),
1832
+ }),
1833
+ ).annotate({ identifier: "SetResponse" }) as any as S.Schema<SetResponse>;
1834
+
1835
+ export interface SetAspathRequest {
1836
+ uuid: string;
1837
+ aspath?: AspathItem;
1838
+ }
1839
+ export const SetAspathRequest = /*@__PURE__*/ S.suspend(() =>
1840
+ S.Struct({
1841
+ uuid: S.String.pipe(T.Label()),
1842
+ aspath: S.optional(AspathItem),
1843
+ }).pipe(
1844
+ T.Http({
1845
+ method: "POST",
1846
+ uri: "/api/quagga/bgp/setAspath/{uuid}",
1847
+ code: 200,
1848
+ }),
1849
+ ),
1850
+ ).annotate({
1851
+ identifier: "SetAspathRequest",
1852
+ }) as any as S.Schema<SetAspathRequest>;
1853
+
1854
+ export type SetAspathResult = "saved";
1855
+ export const SetAspathResult = S.String;
1856
+
1857
+ export interface SetAspathResponse {
1858
+ result?: SetAspathResult;
1859
+ }
1860
+ export const SetAspathResponse = /*@__PURE__*/ S.suspend(() =>
1861
+ S.Struct({
1862
+ result: S.optional(SetAspathResult),
1863
+ }),
1864
+ ).annotate({
1865
+ identifier: "SetAspathResponse",
1866
+ }) as any as S.Schema<SetAspathResponse>;
1867
+
1868
+ export interface SetCommunitylistRequest {
1869
+ uuid: string;
1870
+ communitylist?: CommunitylistItem;
1871
+ }
1872
+ export const SetCommunitylistRequest = /*@__PURE__*/ S.suspend(() =>
1873
+ S.Struct({
1874
+ uuid: S.String.pipe(T.Label()),
1875
+ communitylist: S.optional(CommunitylistItem),
1876
+ }).pipe(
1877
+ T.Http({
1878
+ method: "POST",
1879
+ uri: "/api/quagga/bgp/setCommunitylist/{uuid}",
1880
+ code: 200,
1881
+ }),
1882
+ ),
1883
+ ).annotate({
1884
+ identifier: "SetCommunitylistRequest",
1885
+ }) as any as S.Schema<SetCommunitylistRequest>;
1886
+
1887
+ export type SetCommunitylistResult = "saved";
1888
+ export const SetCommunitylistResult = S.String;
1889
+
1890
+ export interface SetCommunitylistResponse {
1891
+ result?: SetCommunitylistResult;
1892
+ }
1893
+ export const SetCommunitylistResponse = /*@__PURE__*/ S.suspend(() =>
1894
+ S.Struct({
1895
+ result: S.optional(SetCommunitylistResult),
1896
+ }),
1897
+ ).annotate({
1898
+ identifier: "SetCommunitylistResponse",
1899
+ }) as any as S.Schema<SetCommunitylistResponse>;
1900
+
1901
+ export interface SetNeighborRequest {
1902
+ uuid: string;
1903
+ neighbor?: NeighborItem;
1904
+ }
1905
+ export const SetNeighborRequest = /*@__PURE__*/ S.suspend(() =>
1906
+ S.Struct({
1907
+ uuid: S.String.pipe(T.Label()),
1908
+ neighbor: S.optional(NeighborItem),
1909
+ }).pipe(
1910
+ T.Http({
1911
+ method: "POST",
1912
+ uri: "/api/quagga/bgp/setNeighbor/{uuid}",
1913
+ code: 200,
1914
+ }),
1915
+ ),
1916
+ ).annotate({
1917
+ identifier: "SetNeighborRequest",
1918
+ }) as any as S.Schema<SetNeighborRequest>;
1919
+
1920
+ export type SetNeighborResult = "saved";
1921
+ export const SetNeighborResult = S.String;
1922
+
1923
+ export interface SetNeighborResponse {
1924
+ result?: SetNeighborResult;
1925
+ }
1926
+ export const SetNeighborResponse = /*@__PURE__*/ S.suspend(() =>
1927
+ S.Struct({
1928
+ result: S.optional(SetNeighborResult),
1929
+ }),
1930
+ ).annotate({
1931
+ identifier: "SetNeighborResponse",
1932
+ }) as any as S.Schema<SetNeighborResponse>;
1933
+
1934
+ export interface SetPeergroupRequest {
1935
+ uuid: string;
1936
+ peergroup?: PeergroupItem;
1937
+ }
1938
+ export const SetPeergroupRequest = /*@__PURE__*/ S.suspend(() =>
1939
+ S.Struct({
1940
+ uuid: S.String.pipe(T.Label()),
1941
+ peergroup: S.optional(PeergroupItem),
1942
+ }).pipe(
1943
+ T.Http({
1944
+ method: "POST",
1945
+ uri: "/api/quagga/bgp/setPeergroup/{uuid}",
1946
+ code: 200,
1947
+ }),
1948
+ ),
1949
+ ).annotate({
1950
+ identifier: "SetPeergroupRequest",
1951
+ }) as any as S.Schema<SetPeergroupRequest>;
1952
+
1953
+ export type SetPeergroupResult = "saved";
1954
+ export const SetPeergroupResult = S.String;
1955
+
1956
+ export interface SetPeergroupResponse {
1957
+ result?: SetPeergroupResult;
1958
+ }
1959
+ export const SetPeergroupResponse = /*@__PURE__*/ S.suspend(() =>
1960
+ S.Struct({
1961
+ result: S.optional(SetPeergroupResult),
1962
+ }),
1963
+ ).annotate({
1964
+ identifier: "SetPeergroupResponse",
1965
+ }) as any as S.Schema<SetPeergroupResponse>;
1966
+
1967
+ export interface SetPrefixlistRequest {
1968
+ uuid: string;
1969
+ prefixlist?: PrefixlistItem;
1970
+ }
1971
+ export const SetPrefixlistRequest = /*@__PURE__*/ S.suspend(() =>
1972
+ S.Struct({
1973
+ uuid: S.String.pipe(T.Label()),
1974
+ prefixlist: S.optional(PrefixlistItem),
1975
+ }).pipe(
1976
+ T.Http({
1977
+ method: "POST",
1978
+ uri: "/api/quagga/bgp/setPrefixlist/{uuid}",
1979
+ code: 200,
1980
+ }),
1981
+ ),
1982
+ ).annotate({
1983
+ identifier: "SetPrefixlistRequest",
1984
+ }) as any as S.Schema<SetPrefixlistRequest>;
1985
+
1986
+ export type SetPrefixlistResult = "saved";
1987
+ export const SetPrefixlistResult = S.String;
1988
+
1989
+ export interface SetPrefixlistResponse {
1990
+ result?: SetPrefixlistResult;
1991
+ }
1992
+ export const SetPrefixlistResponse = /*@__PURE__*/ S.suspend(() =>
1993
+ S.Struct({
1994
+ result: S.optional(SetPrefixlistResult),
1995
+ }),
1996
+ ).annotate({
1997
+ identifier: "SetPrefixlistResponse",
1998
+ }) as any as S.Schema<SetPrefixlistResponse>;
1999
+
2000
+ export interface SetRedistributionRequest {
2001
+ uuid: string;
2002
+ redistribution?: RedistributionItem;
2003
+ }
2004
+ export const SetRedistributionRequest = /*@__PURE__*/ S.suspend(() =>
2005
+ S.Struct({
2006
+ uuid: S.String.pipe(T.Label()),
2007
+ redistribution: S.optional(RedistributionItem),
2008
+ }).pipe(
2009
+ T.Http({
2010
+ method: "POST",
2011
+ uri: "/api/quagga/bgp/setRedistribution/{uuid}",
2012
+ code: 200,
2013
+ }),
2014
+ ),
2015
+ ).annotate({
2016
+ identifier: "SetRedistributionRequest",
2017
+ }) as any as S.Schema<SetRedistributionRequest>;
2018
+
2019
+ export type SetRedistributionResult = "saved";
2020
+ export const SetRedistributionResult = S.String;
2021
+
2022
+ export interface SetRedistributionResponse {
2023
+ result?: SetRedistributionResult;
2024
+ }
2025
+ export const SetRedistributionResponse = /*@__PURE__*/ S.suspend(() =>
2026
+ S.Struct({
2027
+ result: S.optional(SetRedistributionResult),
2028
+ }),
2029
+ ).annotate({
2030
+ identifier: "SetRedistributionResponse",
2031
+ }) as any as S.Schema<SetRedistributionResponse>;
2032
+
2033
+ export interface SetRoutemapRequest {
2034
+ uuid: string;
2035
+ routemap?: RoutemapItem;
2036
+ }
2037
+ export const SetRoutemapRequest = /*@__PURE__*/ S.suspend(() =>
2038
+ S.Struct({
2039
+ uuid: S.String.pipe(T.Label()),
2040
+ routemap: S.optional(RoutemapItem),
2041
+ }).pipe(
2042
+ T.Http({
2043
+ method: "POST",
2044
+ uri: "/api/quagga/bgp/setRoutemap/{uuid}",
2045
+ code: 200,
2046
+ }),
2047
+ ),
2048
+ ).annotate({
2049
+ identifier: "SetRoutemapRequest",
2050
+ }) as any as S.Schema<SetRoutemapRequest>;
2051
+
2052
+ export type SetRoutemapResult = "saved";
2053
+ export const SetRoutemapResult = S.String;
2054
+
2055
+ export interface SetRoutemapResponse {
2056
+ result?: SetRoutemapResult;
2057
+ }
2058
+ export const SetRoutemapResponse = /*@__PURE__*/ S.suspend(() =>
2059
+ S.Struct({
2060
+ result: S.optional(SetRoutemapResult),
2061
+ }),
2062
+ ).annotate({
2063
+ identifier: "SetRoutemapResponse",
2064
+ }) as any as S.Schema<SetRoutemapResponse>;
2065
+
2066
+ export interface ToggleAspathRequest {
2067
+ uuid: string;
2068
+ }
2069
+ export const ToggleAspathRequest = /*@__PURE__*/ S.suspend(() =>
2070
+ S.Struct({
2071
+ uuid: S.String.pipe(T.Label()),
2072
+ }).pipe(
2073
+ T.Http({
2074
+ method: "POST",
2075
+ uri: "/api/quagga/bgp/toggleAspath/{uuid}",
2076
+ code: 200,
2077
+ }),
2078
+ ),
2079
+ ).annotate({
2080
+ identifier: "ToggleAspathRequest",
2081
+ }) as any as S.Schema<ToggleAspathRequest>;
2082
+
2083
+ export type ToggleAspathResult = "Enabled" | "Disabled" | "failed";
2084
+ export const ToggleAspathResult = S.String;
2085
+
2086
+ export interface ToggleAspathResponse {
2087
+ result?: ToggleAspathResult;
2088
+ changed?: boolean;
2089
+ }
2090
+ export const ToggleAspathResponse = /*@__PURE__*/ S.suspend(() =>
2091
+ S.Struct({
2092
+ result: S.optional(ToggleAspathResult),
2093
+ changed: S.optional(S.Boolean),
2094
+ }),
2095
+ ).annotate({
2096
+ identifier: "ToggleAspathResponse",
2097
+ }) as any as S.Schema<ToggleAspathResponse>;
2098
+
2099
+ export interface ToggleCommunitylistRequest {
2100
+ uuid: string;
2101
+ }
2102
+ export const ToggleCommunitylistRequest = /*@__PURE__*/ S.suspend(() =>
2103
+ S.Struct({
2104
+ uuid: S.String.pipe(T.Label()),
2105
+ }).pipe(
2106
+ T.Http({
2107
+ method: "POST",
2108
+ uri: "/api/quagga/bgp/toggleCommunitylist/{uuid}",
2109
+ code: 200,
2110
+ }),
2111
+ ),
2112
+ ).annotate({
2113
+ identifier: "ToggleCommunitylistRequest",
2114
+ }) as any as S.Schema<ToggleCommunitylistRequest>;
2115
+
2116
+ export type ToggleCommunitylistResult = "Enabled" | "Disabled" | "failed";
2117
+ export const ToggleCommunitylistResult = S.String;
2118
+
2119
+ export interface ToggleCommunitylistResponse {
2120
+ result?: ToggleCommunitylistResult;
2121
+ changed?: boolean;
2122
+ }
2123
+ export const ToggleCommunitylistResponse = /*@__PURE__*/ S.suspend(() =>
2124
+ S.Struct({
2125
+ result: S.optional(ToggleCommunitylistResult),
2126
+ changed: S.optional(S.Boolean),
2127
+ }),
2128
+ ).annotate({
2129
+ identifier: "ToggleCommunitylistResponse",
2130
+ }) as any as S.Schema<ToggleCommunitylistResponse>;
2131
+
2132
+ export interface ToggleNeighborRequest {
2133
+ uuid: string;
2134
+ }
2135
+ export const ToggleNeighborRequest = /*@__PURE__*/ S.suspend(() =>
2136
+ S.Struct({
2137
+ uuid: S.String.pipe(T.Label()),
2138
+ }).pipe(
2139
+ T.Http({
2140
+ method: "POST",
2141
+ uri: "/api/quagga/bgp/toggleNeighbor/{uuid}",
2142
+ code: 200,
2143
+ }),
2144
+ ),
2145
+ ).annotate({
2146
+ identifier: "ToggleNeighborRequest",
2147
+ }) as any as S.Schema<ToggleNeighborRequest>;
2148
+
2149
+ export type ToggleNeighborResult = "Enabled" | "Disabled" | "failed";
2150
+ export const ToggleNeighborResult = S.String;
2151
+
2152
+ export interface ToggleNeighborResponse {
2153
+ result?: ToggleNeighborResult;
2154
+ changed?: boolean;
2155
+ }
2156
+ export const ToggleNeighborResponse = /*@__PURE__*/ S.suspend(() =>
2157
+ S.Struct({
2158
+ result: S.optional(ToggleNeighborResult),
2159
+ changed: S.optional(S.Boolean),
2160
+ }),
2161
+ ).annotate({
2162
+ identifier: "ToggleNeighborResponse",
2163
+ }) as any as S.Schema<ToggleNeighborResponse>;
2164
+
2165
+ export interface TogglePeergroupRequest {
2166
+ uuid: string;
2167
+ }
2168
+ export const TogglePeergroupRequest = /*@__PURE__*/ S.suspend(() =>
2169
+ S.Struct({
2170
+ uuid: S.String.pipe(T.Label()),
2171
+ }).pipe(
2172
+ T.Http({
2173
+ method: "POST",
2174
+ uri: "/api/quagga/bgp/togglePeergroup/{uuid}",
2175
+ code: 200,
2176
+ }),
2177
+ ),
2178
+ ).annotate({
2179
+ identifier: "TogglePeergroupRequest",
2180
+ }) as any as S.Schema<TogglePeergroupRequest>;
2181
+
2182
+ export type TogglePeergroupResult = "Enabled" | "Disabled" | "failed";
2183
+ export const TogglePeergroupResult = S.String;
2184
+
2185
+ export interface TogglePeergroupResponse {
2186
+ result?: TogglePeergroupResult;
2187
+ changed?: boolean;
2188
+ }
2189
+ export const TogglePeergroupResponse = /*@__PURE__*/ S.suspend(() =>
2190
+ S.Struct({
2191
+ result: S.optional(TogglePeergroupResult),
2192
+ changed: S.optional(S.Boolean),
2193
+ }),
2194
+ ).annotate({
2195
+ identifier: "TogglePeergroupResponse",
2196
+ }) as any as S.Schema<TogglePeergroupResponse>;
2197
+
2198
+ export interface TogglePrefixlistRequest {
2199
+ uuid: string;
2200
+ }
2201
+ export const TogglePrefixlistRequest = /*@__PURE__*/ S.suspend(() =>
2202
+ S.Struct({
2203
+ uuid: S.String.pipe(T.Label()),
2204
+ }).pipe(
2205
+ T.Http({
2206
+ method: "POST",
2207
+ uri: "/api/quagga/bgp/togglePrefixlist/{uuid}",
2208
+ code: 200,
2209
+ }),
2210
+ ),
2211
+ ).annotate({
2212
+ identifier: "TogglePrefixlistRequest",
2213
+ }) as any as S.Schema<TogglePrefixlistRequest>;
2214
+
2215
+ export type TogglePrefixlistResult = "Enabled" | "Disabled" | "failed";
2216
+ export const TogglePrefixlistResult = S.String;
2217
+
2218
+ export interface TogglePrefixlistResponse {
2219
+ result?: TogglePrefixlistResult;
2220
+ changed?: boolean;
2221
+ }
2222
+ export const TogglePrefixlistResponse = /*@__PURE__*/ S.suspend(() =>
2223
+ S.Struct({
2224
+ result: S.optional(TogglePrefixlistResult),
2225
+ changed: S.optional(S.Boolean),
2226
+ }),
2227
+ ).annotate({
2228
+ identifier: "TogglePrefixlistResponse",
2229
+ }) as any as S.Schema<TogglePrefixlistResponse>;
2230
+
2231
+ export interface ToggleRedistributionRequest {
2232
+ uuid: string;
2233
+ }
2234
+ export const ToggleRedistributionRequest = /*@__PURE__*/ S.suspend(() =>
2235
+ S.Struct({
2236
+ uuid: S.String.pipe(T.Label()),
2237
+ }).pipe(
2238
+ T.Http({
2239
+ method: "POST",
2240
+ uri: "/api/quagga/bgp/toggleRedistribution/{uuid}",
2241
+ code: 200,
2242
+ }),
2243
+ ),
2244
+ ).annotate({
2245
+ identifier: "ToggleRedistributionRequest",
2246
+ }) as any as S.Schema<ToggleRedistributionRequest>;
2247
+
2248
+ export type ToggleRedistributionResult = "Enabled" | "Disabled" | "failed";
2249
+ export const ToggleRedistributionResult = S.String;
2250
+
2251
+ export interface ToggleRedistributionResponse {
2252
+ result?: ToggleRedistributionResult;
2253
+ changed?: boolean;
2254
+ }
2255
+ export const ToggleRedistributionResponse = /*@__PURE__*/ S.suspend(() =>
2256
+ S.Struct({
2257
+ result: S.optional(ToggleRedistributionResult),
2258
+ changed: S.optional(S.Boolean),
2259
+ }),
2260
+ ).annotate({
2261
+ identifier: "ToggleRedistributionResponse",
2262
+ }) as any as S.Schema<ToggleRedistributionResponse>;
2263
+
2264
+ export interface ToggleRoutemapRequest {
2265
+ uuid: string;
2266
+ }
2267
+ export const ToggleRoutemapRequest = /*@__PURE__*/ S.suspend(() =>
2268
+ S.Struct({
2269
+ uuid: S.String.pipe(T.Label()),
2270
+ }).pipe(
2271
+ T.Http({
2272
+ method: "POST",
2273
+ uri: "/api/quagga/bgp/toggleRoutemap/{uuid}",
2274
+ code: 200,
2275
+ }),
2276
+ ),
2277
+ ).annotate({
2278
+ identifier: "ToggleRoutemapRequest",
2279
+ }) as any as S.Schema<ToggleRoutemapRequest>;
2280
+
2281
+ export type ToggleRoutemapResult = "Enabled" | "Disabled" | "failed";
2282
+ export const ToggleRoutemapResult = S.String;
2283
+
2284
+ export interface ToggleRoutemapResponse {
2285
+ result?: ToggleRoutemapResult;
2286
+ changed?: boolean;
2287
+ }
2288
+ export const ToggleRoutemapResponse = /*@__PURE__*/ S.suspend(() =>
2289
+ S.Struct({
2290
+ result: S.optional(ToggleRoutemapResult),
2291
+ changed: S.optional(S.Boolean),
2292
+ }),
2293
+ ).annotate({
2294
+ identifier: "ToggleRoutemapResponse",
2295
+ }) as any as S.Schema<ToggleRoutemapResponse>;
2296
+
2297
+ export type AddAspathError = OpnsenseOpError;
2298
+ /** Add a new aspaths.aspath item. On a validation failure the call fails with ValidationFailed instead of decoding this response. */
2299
+ export const addAspath: API.OperationMethod<
2300
+ AddAspathRequest,
2301
+ AddAspathResponse,
2302
+ AddAspathError,
2303
+ OpnsenseOpContext
2304
+ > = /*@__PURE__*/ API.make(() => ({
2305
+ input: AddAspathRequest,
2306
+ output: AddAspathResponse,
2307
+ errors: [],
2308
+ protocol: OpnsenseProtocol,
2309
+ retry: Retry.Retry,
2310
+ }));
2311
+
2312
+ export type AddCommunitylistError = OpnsenseOpError;
2313
+ /** Add a new communitylists.communitylist item. On a validation failure the call fails with ValidationFailed instead of decoding this response. */
2314
+ export const addCommunitylist: API.OperationMethod<
2315
+ AddCommunitylistRequest,
2316
+ AddCommunitylistResponse,
2317
+ AddCommunitylistError,
2318
+ OpnsenseOpContext
2319
+ > = /*@__PURE__*/ API.make(() => ({
2320
+ input: AddCommunitylistRequest,
2321
+ output: AddCommunitylistResponse,
2322
+ errors: [],
2323
+ protocol: OpnsenseProtocol,
2324
+ retry: Retry.Retry,
2325
+ }));
2326
+
2327
+ export type AddNeighborError = OpnsenseOpError;
2328
+ /** Add a new neighbors.neighbor item. On a validation failure the call fails with ValidationFailed instead of decoding this response. */
2329
+ export const addNeighbor: API.OperationMethod<
2330
+ AddNeighborRequest,
2331
+ AddNeighborResponse,
2332
+ AddNeighborError,
2333
+ OpnsenseOpContext
2334
+ > = /*@__PURE__*/ API.make(() => ({
2335
+ input: AddNeighborRequest,
2336
+ output: AddNeighborResponse,
2337
+ errors: [],
2338
+ protocol: OpnsenseProtocol,
2339
+ retry: Retry.Retry,
2340
+ }));
2341
+
2342
+ export type AddPeergroupError = OpnsenseOpError;
2343
+ /** Add a new peergroups.peergroup item. On a validation failure the call fails with ValidationFailed instead of decoding this response. */
2344
+ export const addPeergroup: API.OperationMethod<
2345
+ AddPeergroupRequest,
2346
+ AddPeergroupResponse,
2347
+ AddPeergroupError,
2348
+ OpnsenseOpContext
2349
+ > = /*@__PURE__*/ API.make(() => ({
2350
+ input: AddPeergroupRequest,
2351
+ output: AddPeergroupResponse,
2352
+ errors: [],
2353
+ protocol: OpnsenseProtocol,
2354
+ retry: Retry.Retry,
2355
+ }));
2356
+
2357
+ export type AddPrefixlistError = OpnsenseOpError;
2358
+ /** Add a new prefixlists.prefixlist item. On a validation failure the call fails with ValidationFailed instead of decoding this response. */
2359
+ export const addPrefixlist: API.OperationMethod<
2360
+ AddPrefixlistRequest,
2361
+ AddPrefixlistResponse,
2362
+ AddPrefixlistError,
2363
+ OpnsenseOpContext
2364
+ > = /*@__PURE__*/ API.make(() => ({
2365
+ input: AddPrefixlistRequest,
2366
+ output: AddPrefixlistResponse,
2367
+ errors: [],
2368
+ protocol: OpnsenseProtocol,
2369
+ retry: Retry.Retry,
2370
+ }));
2371
+
2372
+ export type AddRedistributionError = OpnsenseOpError;
2373
+ /** Add a new redistributions.redistribution item. On a validation failure the call fails with ValidationFailed instead of decoding this response. */
2374
+ export const addRedistribution: API.OperationMethod<
2375
+ AddRedistributionRequest,
2376
+ AddRedistributionResponse,
2377
+ AddRedistributionError,
2378
+ OpnsenseOpContext
2379
+ > = /*@__PURE__*/ API.make(() => ({
2380
+ input: AddRedistributionRequest,
2381
+ output: AddRedistributionResponse,
2382
+ errors: [],
2383
+ protocol: OpnsenseProtocol,
2384
+ retry: Retry.Retry,
2385
+ }));
2386
+
2387
+ export type AddRoutemapError = OpnsenseOpError;
2388
+ /** Add a new routemaps.routemap item. On a validation failure the call fails with ValidationFailed instead of decoding this response. */
2389
+ export const addRoutemap: API.OperationMethod<
2390
+ AddRoutemapRequest,
2391
+ AddRoutemapResponse,
2392
+ AddRoutemapError,
2393
+ OpnsenseOpContext
2394
+ > = /*@__PURE__*/ API.make(() => ({
2395
+ input: AddRoutemapRequest,
2396
+ output: AddRoutemapResponse,
2397
+ errors: [],
2398
+ protocol: OpnsenseProtocol,
2399
+ retry: Retry.Retry,
2400
+ }));
2401
+
2402
+ export type DelAspathError = OpnsenseOpError;
2403
+ /** Delete a aspaths.aspath item by uuid. */
2404
+ export const delAspath: API.OperationMethod<
2405
+ DelAspathRequest,
2406
+ DelAspathResponse,
2407
+ DelAspathError,
2408
+ OpnsenseOpContext
2409
+ > = /*@__PURE__*/ API.make(() => ({
2410
+ input: DelAspathRequest,
2411
+ output: DelAspathResponse,
2412
+ errors: [],
2413
+ protocol: OpnsenseProtocol,
2414
+ retry: Retry.Retry,
2415
+ }));
2416
+
2417
+ export type DelCommunitylistError = OpnsenseOpError;
2418
+ /** Delete a communitylists.communitylist item by uuid. */
2419
+ export const delCommunitylist: API.OperationMethod<
2420
+ DelCommunitylistRequest,
2421
+ DelCommunitylistResponse,
2422
+ DelCommunitylistError,
2423
+ OpnsenseOpContext
2424
+ > = /*@__PURE__*/ API.make(() => ({
2425
+ input: DelCommunitylistRequest,
2426
+ output: DelCommunitylistResponse,
2427
+ errors: [],
2428
+ protocol: OpnsenseProtocol,
2429
+ retry: Retry.Retry,
2430
+ }));
2431
+
2432
+ export type DelNeighborError = OpnsenseOpError;
2433
+ /** Delete a neighbors.neighbor item by uuid. */
2434
+ export const delNeighbor: API.OperationMethod<
2435
+ DelNeighborRequest,
2436
+ DelNeighborResponse,
2437
+ DelNeighborError,
2438
+ OpnsenseOpContext
2439
+ > = /*@__PURE__*/ API.make(() => ({
2440
+ input: DelNeighborRequest,
2441
+ output: DelNeighborResponse,
2442
+ errors: [],
2443
+ protocol: OpnsenseProtocol,
2444
+ retry: Retry.Retry,
2445
+ }));
2446
+
2447
+ export type DelPeergroupError = OpnsenseOpError;
2448
+ /** Delete a peergroups.peergroup item by uuid. */
2449
+ export const delPeergroup: API.OperationMethod<
2450
+ DelPeergroupRequest,
2451
+ DelPeergroupResponse,
2452
+ DelPeergroupError,
2453
+ OpnsenseOpContext
2454
+ > = /*@__PURE__*/ API.make(() => ({
2455
+ input: DelPeergroupRequest,
2456
+ output: DelPeergroupResponse,
2457
+ errors: [],
2458
+ protocol: OpnsenseProtocol,
2459
+ retry: Retry.Retry,
2460
+ }));
2461
+
2462
+ export type DelPrefixlistError = OpnsenseOpError;
2463
+ /** Delete a prefixlists.prefixlist item by uuid. */
2464
+ export const delPrefixlist: API.OperationMethod<
2465
+ DelPrefixlistRequest,
2466
+ DelPrefixlistResponse,
2467
+ DelPrefixlistError,
2468
+ OpnsenseOpContext
2469
+ > = /*@__PURE__*/ API.make(() => ({
2470
+ input: DelPrefixlistRequest,
2471
+ output: DelPrefixlistResponse,
2472
+ errors: [],
2473
+ protocol: OpnsenseProtocol,
2474
+ retry: Retry.Retry,
2475
+ }));
2476
+
2477
+ export type DelRedistributionError = OpnsenseOpError;
2478
+ /** Delete a redistributions.redistribution item by uuid. */
2479
+ export const delRedistribution: API.OperationMethod<
2480
+ DelRedistributionRequest,
2481
+ DelRedistributionResponse,
2482
+ DelRedistributionError,
2483
+ OpnsenseOpContext
2484
+ > = /*@__PURE__*/ API.make(() => ({
2485
+ input: DelRedistributionRequest,
2486
+ output: DelRedistributionResponse,
2487
+ errors: [],
2488
+ protocol: OpnsenseProtocol,
2489
+ retry: Retry.Retry,
2490
+ }));
2491
+
2492
+ export type DelRoutemapError = OpnsenseOpError;
2493
+ /** Delete a routemaps.routemap item by uuid. */
2494
+ export const delRoutemap: API.OperationMethod<
2495
+ DelRoutemapRequest,
2496
+ DelRoutemapResponse,
2497
+ DelRoutemapError,
2498
+ OpnsenseOpContext
2499
+ > = /*@__PURE__*/ API.make(() => ({
2500
+ input: DelRoutemapRequest,
2501
+ output: DelRoutemapResponse,
2502
+ errors: [],
2503
+ protocol: OpnsenseProtocol,
2504
+ retry: Retry.Retry,
2505
+ }));
2506
+
2507
+ export type GetError = OpnsenseOpError;
2508
+ /** Fetch the entire model tree (every section and array collection). */
2509
+ export const get: API.OperationMethod<
2510
+ GetRequest,
2511
+ GetResponse,
2512
+ GetError,
2513
+ OpnsenseOpContext
2514
+ > = /*@__PURE__*/ API.make(() => ({
2515
+ input: GetRequest,
2516
+ output: GetResponse,
2517
+ errors: [],
2518
+ protocol: OpnsenseProtocol,
2519
+ retry: Retry.Retry,
2520
+ }));
2521
+
2522
+ export type GetAspathError = OpnsenseOpError;
2523
+ /** Fetch one aspaths.aspath item by uuid. */
2524
+ export const getAspath: API.OperationMethod<
2525
+ GetAspathRequest,
2526
+ GetAspathResponse,
2527
+ GetAspathError,
2528
+ OpnsenseOpContext
2529
+ > = /*@__PURE__*/ API.make(() => ({
2530
+ input: GetAspathRequest,
2531
+ output: GetAspathResponse,
2532
+ errors: [],
2533
+ protocol: OpnsenseProtocol,
2534
+ retry: Retry.Retry,
2535
+ }));
2536
+
2537
+ export type GetCommunitylistError = OpnsenseOpError;
2538
+ /** Fetch one communitylists.communitylist item by uuid. */
2539
+ export const getCommunitylist: API.OperationMethod<
2540
+ GetCommunitylistRequest,
2541
+ GetCommunitylistResponse,
2542
+ GetCommunitylistError,
2543
+ OpnsenseOpContext
2544
+ > = /*@__PURE__*/ API.make(() => ({
2545
+ input: GetCommunitylistRequest,
2546
+ output: GetCommunitylistResponse,
2547
+ errors: [],
2548
+ protocol: OpnsenseProtocol,
2549
+ retry: Retry.Retry,
2550
+ }));
2551
+
2552
+ export type GetNeighborError = OpnsenseOpError;
2553
+ /** Fetch one neighbors.neighbor item by uuid. */
2554
+ export const getNeighbor: API.OperationMethod<
2555
+ GetNeighborRequest,
2556
+ GetNeighborResponse,
2557
+ GetNeighborError,
2558
+ OpnsenseOpContext
2559
+ > = /*@__PURE__*/ API.make(() => ({
2560
+ input: GetNeighborRequest,
2561
+ output: GetNeighborResponse,
2562
+ errors: [],
2563
+ protocol: OpnsenseProtocol,
2564
+ retry: Retry.Retry,
2565
+ }));
2566
+
2567
+ export type GetPeergroupError = OpnsenseOpError;
2568
+ /** Fetch one peergroups.peergroup item by uuid. */
2569
+ export const getPeergroup: API.OperationMethod<
2570
+ GetPeergroupRequest,
2571
+ GetPeergroupResponse,
2572
+ GetPeergroupError,
2573
+ OpnsenseOpContext
2574
+ > = /*@__PURE__*/ API.make(() => ({
2575
+ input: GetPeergroupRequest,
2576
+ output: GetPeergroupResponse,
2577
+ errors: [],
2578
+ protocol: OpnsenseProtocol,
2579
+ retry: Retry.Retry,
2580
+ }));
2581
+
2582
+ export type GetPrefixlistError = OpnsenseOpError;
2583
+ /** Fetch one prefixlists.prefixlist item by uuid. */
2584
+ export const getPrefixlist: API.OperationMethod<
2585
+ GetPrefixlistRequest,
2586
+ GetPrefixlistResponse,
2587
+ GetPrefixlistError,
2588
+ OpnsenseOpContext
2589
+ > = /*@__PURE__*/ API.make(() => ({
2590
+ input: GetPrefixlistRequest,
2591
+ output: GetPrefixlistResponse,
2592
+ errors: [],
2593
+ protocol: OpnsenseProtocol,
2594
+ retry: Retry.Retry,
2595
+ }));
2596
+
2597
+ export type GetRedistributionError = OpnsenseOpError;
2598
+ /** Fetch one redistributions.redistribution item by uuid. */
2599
+ export const getRedistribution: API.OperationMethod<
2600
+ GetRedistributionRequest,
2601
+ GetRedistributionResponse,
2602
+ GetRedistributionError,
2603
+ OpnsenseOpContext
2604
+ > = /*@__PURE__*/ API.make(() => ({
2605
+ input: GetRedistributionRequest,
2606
+ output: GetRedistributionResponse,
2607
+ errors: [],
2608
+ protocol: OpnsenseProtocol,
2609
+ retry: Retry.Retry,
2610
+ }));
2611
+
2612
+ export type GetRoutemapError = OpnsenseOpError;
2613
+ /** Fetch one routemaps.routemap item by uuid. */
2614
+ export const getRoutemap: API.OperationMethod<
2615
+ GetRoutemapRequest,
2616
+ GetRoutemapResponse,
2617
+ GetRoutemapError,
2618
+ OpnsenseOpContext
2619
+ > = /*@__PURE__*/ API.make(() => ({
2620
+ input: GetRoutemapRequest,
2621
+ output: GetRoutemapResponse,
2622
+ errors: [],
2623
+ protocol: OpnsenseProtocol,
2624
+ retry: Retry.Retry,
2625
+ }));
2626
+
2627
+ export type SearchAspathError = OpnsenseOpError;
2628
+ /** Search aspaths.aspath items (paginated). */
2629
+ export const searchAspath: API.OperationMethod<
2630
+ SearchAspathRequest,
2631
+ SearchAspathResponse,
2632
+ SearchAspathError,
2633
+ OpnsenseOpContext
2634
+ > = /*@__PURE__*/ API.make(() => ({
2635
+ input: SearchAspathRequest,
2636
+ output: SearchAspathResponse,
2637
+ errors: [],
2638
+ protocol: OpnsenseProtocol,
2639
+ retry: Retry.Retry,
2640
+ }));
2641
+
2642
+ export type SearchCommunitylistError = OpnsenseOpError;
2643
+ /** Search communitylists.communitylist items (paginated). */
2644
+ export const searchCommunitylist: API.OperationMethod<
2645
+ SearchCommunitylistRequest,
2646
+ SearchCommunitylistResponse,
2647
+ SearchCommunitylistError,
2648
+ OpnsenseOpContext
2649
+ > = /*@__PURE__*/ API.make(() => ({
2650
+ input: SearchCommunitylistRequest,
2651
+ output: SearchCommunitylistResponse,
2652
+ errors: [],
2653
+ protocol: OpnsenseProtocol,
2654
+ retry: Retry.Retry,
2655
+ }));
2656
+
2657
+ export type SearchNeighborError = OpnsenseOpError;
2658
+ /** Search neighbors.neighbor items (paginated). */
2659
+ export const searchNeighbor: API.OperationMethod<
2660
+ SearchNeighborRequest,
2661
+ SearchNeighborResponse,
2662
+ SearchNeighborError,
2663
+ OpnsenseOpContext
2664
+ > = /*@__PURE__*/ API.make(() => ({
2665
+ input: SearchNeighborRequest,
2666
+ output: SearchNeighborResponse,
2667
+ errors: [],
2668
+ protocol: OpnsenseProtocol,
2669
+ retry: Retry.Retry,
2670
+ }));
2671
+
2672
+ export type SearchPeergroupError = OpnsenseOpError;
2673
+ /** Search peergroups.peergroup items (paginated). */
2674
+ export const searchPeergroup: API.OperationMethod<
2675
+ SearchPeergroupRequest,
2676
+ SearchPeergroupResponse,
2677
+ SearchPeergroupError,
2678
+ OpnsenseOpContext
2679
+ > = /*@__PURE__*/ API.make(() => ({
2680
+ input: SearchPeergroupRequest,
2681
+ output: SearchPeergroupResponse,
2682
+ errors: [],
2683
+ protocol: OpnsenseProtocol,
2684
+ retry: Retry.Retry,
2685
+ }));
2686
+
2687
+ export type SearchPrefixlistError = OpnsenseOpError;
2688
+ /** Search prefixlists.prefixlist items (paginated). */
2689
+ export const searchPrefixlist: API.OperationMethod<
2690
+ SearchPrefixlistRequest,
2691
+ SearchPrefixlistResponse,
2692
+ SearchPrefixlistError,
2693
+ OpnsenseOpContext
2694
+ > = /*@__PURE__*/ API.make(() => ({
2695
+ input: SearchPrefixlistRequest,
2696
+ output: SearchPrefixlistResponse,
2697
+ errors: [],
2698
+ protocol: OpnsenseProtocol,
2699
+ retry: Retry.Retry,
2700
+ }));
2701
+
2702
+ export type SearchRedistributionError = OpnsenseOpError;
2703
+ /** Search redistributions.redistribution items (paginated). */
2704
+ export const searchRedistribution: API.OperationMethod<
2705
+ SearchRedistributionRequest,
2706
+ SearchRedistributionResponse,
2707
+ SearchRedistributionError,
2708
+ OpnsenseOpContext
2709
+ > = /*@__PURE__*/ API.make(() => ({
2710
+ input: SearchRedistributionRequest,
2711
+ output: SearchRedistributionResponse,
2712
+ errors: [],
2713
+ protocol: OpnsenseProtocol,
2714
+ retry: Retry.Retry,
2715
+ }));
2716
+
2717
+ export type SearchRoutemapError = OpnsenseOpError;
2718
+ /** Search routemaps.routemap items (paginated). */
2719
+ export const searchRoutemap: API.OperationMethod<
2720
+ SearchRoutemapRequest,
2721
+ SearchRoutemapResponse,
2722
+ SearchRoutemapError,
2723
+ OpnsenseOpContext
2724
+ > = /*@__PURE__*/ API.make(() => ({
2725
+ input: SearchRoutemapRequest,
2726
+ output: SearchRoutemapResponse,
2727
+ errors: [],
2728
+ protocol: OpnsenseProtocol,
2729
+ retry: Retry.Retry,
2730
+ }));
2731
+
2732
+ export type SetError = OpnsenseOpError;
2733
+ /** Replace the entire model tree in one call. On a validation failure the call fails with ValidationFailed instead of decoding this response. */
2734
+ export const set: API.OperationMethod<
2735
+ SetRequest,
2736
+ SetResponse,
2737
+ SetError,
2738
+ OpnsenseOpContext
2739
+ > = /*@__PURE__*/ API.make(() => ({
2740
+ input: SetRequest,
2741
+ output: SetResponse,
2742
+ errors: [],
2743
+ protocol: OpnsenseProtocol,
2744
+ retry: Retry.Retry,
2745
+ }));
2746
+
2747
+ export type SetAspathError = OpnsenseOpError;
2748
+ /** Update an existing aspaths.aspath item. On a validation failure the call fails with ValidationFailed instead of decoding this response. */
2749
+ export const setAspath: API.OperationMethod<
2750
+ SetAspathRequest,
2751
+ SetAspathResponse,
2752
+ SetAspathError,
2753
+ OpnsenseOpContext
2754
+ > = /*@__PURE__*/ API.make(() => ({
2755
+ input: SetAspathRequest,
2756
+ output: SetAspathResponse,
2757
+ errors: [],
2758
+ protocol: OpnsenseProtocol,
2759
+ retry: Retry.Retry,
2760
+ }));
2761
+
2762
+ export type SetCommunitylistError = OpnsenseOpError;
2763
+ /** Update an existing communitylists.communitylist item. On a validation failure the call fails with ValidationFailed instead of decoding this response. */
2764
+ export const setCommunitylist: API.OperationMethod<
2765
+ SetCommunitylistRequest,
2766
+ SetCommunitylistResponse,
2767
+ SetCommunitylistError,
2768
+ OpnsenseOpContext
2769
+ > = /*@__PURE__*/ API.make(() => ({
2770
+ input: SetCommunitylistRequest,
2771
+ output: SetCommunitylistResponse,
2772
+ errors: [],
2773
+ protocol: OpnsenseProtocol,
2774
+ retry: Retry.Retry,
2775
+ }));
2776
+
2777
+ export type SetNeighborError = OpnsenseOpError;
2778
+ /** Update an existing neighbors.neighbor item. On a validation failure the call fails with ValidationFailed instead of decoding this response. */
2779
+ export const setNeighbor: API.OperationMethod<
2780
+ SetNeighborRequest,
2781
+ SetNeighborResponse,
2782
+ SetNeighborError,
2783
+ OpnsenseOpContext
2784
+ > = /*@__PURE__*/ API.make(() => ({
2785
+ input: SetNeighborRequest,
2786
+ output: SetNeighborResponse,
2787
+ errors: [],
2788
+ protocol: OpnsenseProtocol,
2789
+ retry: Retry.Retry,
2790
+ }));
2791
+
2792
+ export type SetPeergroupError = OpnsenseOpError;
2793
+ /** Update an existing peergroups.peergroup item. On a validation failure the call fails with ValidationFailed instead of decoding this response. */
2794
+ export const setPeergroup: API.OperationMethod<
2795
+ SetPeergroupRequest,
2796
+ SetPeergroupResponse,
2797
+ SetPeergroupError,
2798
+ OpnsenseOpContext
2799
+ > = /*@__PURE__*/ API.make(() => ({
2800
+ input: SetPeergroupRequest,
2801
+ output: SetPeergroupResponse,
2802
+ errors: [],
2803
+ protocol: OpnsenseProtocol,
2804
+ retry: Retry.Retry,
2805
+ }));
2806
+
2807
+ export type SetPrefixlistError = OpnsenseOpError;
2808
+ /** Update an existing prefixlists.prefixlist item. On a validation failure the call fails with ValidationFailed instead of decoding this response. */
2809
+ export const setPrefixlist: API.OperationMethod<
2810
+ SetPrefixlistRequest,
2811
+ SetPrefixlistResponse,
2812
+ SetPrefixlistError,
2813
+ OpnsenseOpContext
2814
+ > = /*@__PURE__*/ API.make(() => ({
2815
+ input: SetPrefixlistRequest,
2816
+ output: SetPrefixlistResponse,
2817
+ errors: [],
2818
+ protocol: OpnsenseProtocol,
2819
+ retry: Retry.Retry,
2820
+ }));
2821
+
2822
+ export type SetRedistributionError = OpnsenseOpError;
2823
+ /** Update an existing redistributions.redistribution item. On a validation failure the call fails with ValidationFailed instead of decoding this response. */
2824
+ export const setRedistribution: API.OperationMethod<
2825
+ SetRedistributionRequest,
2826
+ SetRedistributionResponse,
2827
+ SetRedistributionError,
2828
+ OpnsenseOpContext
2829
+ > = /*@__PURE__*/ API.make(() => ({
2830
+ input: SetRedistributionRequest,
2831
+ output: SetRedistributionResponse,
2832
+ errors: [],
2833
+ protocol: OpnsenseProtocol,
2834
+ retry: Retry.Retry,
2835
+ }));
2836
+
2837
+ export type SetRoutemapError = OpnsenseOpError;
2838
+ /** Update an existing routemaps.routemap item. On a validation failure the call fails with ValidationFailed instead of decoding this response. */
2839
+ export const setRoutemap: API.OperationMethod<
2840
+ SetRoutemapRequest,
2841
+ SetRoutemapResponse,
2842
+ SetRoutemapError,
2843
+ OpnsenseOpContext
2844
+ > = /*@__PURE__*/ API.make(() => ({
2845
+ input: SetRoutemapRequest,
2846
+ output: SetRoutemapResponse,
2847
+ errors: [],
2848
+ protocol: OpnsenseProtocol,
2849
+ retry: Retry.Retry,
2850
+ }));
2851
+
2852
+ export type ToggleAspathError = OpnsenseOpError;
2853
+ /** Flip a aspaths.aspath item's enabled flag by uuid. */
2854
+ export const toggleAspath: API.OperationMethod<
2855
+ ToggleAspathRequest,
2856
+ ToggleAspathResponse,
2857
+ ToggleAspathError,
2858
+ OpnsenseOpContext
2859
+ > = /*@__PURE__*/ API.make(() => ({
2860
+ input: ToggleAspathRequest,
2861
+ output: ToggleAspathResponse,
2862
+ errors: [],
2863
+ protocol: OpnsenseProtocol,
2864
+ retry: Retry.Retry,
2865
+ }));
2866
+
2867
+ export type ToggleCommunitylistError = OpnsenseOpError;
2868
+ /** Flip a communitylists.communitylist item's enabled flag by uuid. */
2869
+ export const toggleCommunitylist: API.OperationMethod<
2870
+ ToggleCommunitylistRequest,
2871
+ ToggleCommunitylistResponse,
2872
+ ToggleCommunitylistError,
2873
+ OpnsenseOpContext
2874
+ > = /*@__PURE__*/ API.make(() => ({
2875
+ input: ToggleCommunitylistRequest,
2876
+ output: ToggleCommunitylistResponse,
2877
+ errors: [],
2878
+ protocol: OpnsenseProtocol,
2879
+ retry: Retry.Retry,
2880
+ }));
2881
+
2882
+ export type ToggleNeighborError = OpnsenseOpError;
2883
+ /** Flip a neighbors.neighbor item's enabled flag by uuid. */
2884
+ export const toggleNeighbor: API.OperationMethod<
2885
+ ToggleNeighborRequest,
2886
+ ToggleNeighborResponse,
2887
+ ToggleNeighborError,
2888
+ OpnsenseOpContext
2889
+ > = /*@__PURE__*/ API.make(() => ({
2890
+ input: ToggleNeighborRequest,
2891
+ output: ToggleNeighborResponse,
2892
+ errors: [],
2893
+ protocol: OpnsenseProtocol,
2894
+ retry: Retry.Retry,
2895
+ }));
2896
+
2897
+ export type TogglePeergroupError = OpnsenseOpError;
2898
+ /** Flip a peergroups.peergroup item's enabled flag by uuid. */
2899
+ export const togglePeergroup: API.OperationMethod<
2900
+ TogglePeergroupRequest,
2901
+ TogglePeergroupResponse,
2902
+ TogglePeergroupError,
2903
+ OpnsenseOpContext
2904
+ > = /*@__PURE__*/ API.make(() => ({
2905
+ input: TogglePeergroupRequest,
2906
+ output: TogglePeergroupResponse,
2907
+ errors: [],
2908
+ protocol: OpnsenseProtocol,
2909
+ retry: Retry.Retry,
2910
+ }));
2911
+
2912
+ export type TogglePrefixlistError = OpnsenseOpError;
2913
+ /** Flip a prefixlists.prefixlist item's enabled flag by uuid. */
2914
+ export const togglePrefixlist: API.OperationMethod<
2915
+ TogglePrefixlistRequest,
2916
+ TogglePrefixlistResponse,
2917
+ TogglePrefixlistError,
2918
+ OpnsenseOpContext
2919
+ > = /*@__PURE__*/ API.make(() => ({
2920
+ input: TogglePrefixlistRequest,
2921
+ output: TogglePrefixlistResponse,
2922
+ errors: [],
2923
+ protocol: OpnsenseProtocol,
2924
+ retry: Retry.Retry,
2925
+ }));
2926
+
2927
+ export type ToggleRedistributionError = OpnsenseOpError;
2928
+ /** Flip a redistributions.redistribution item's enabled flag by uuid. */
2929
+ export const toggleRedistribution: API.OperationMethod<
2930
+ ToggleRedistributionRequest,
2931
+ ToggleRedistributionResponse,
2932
+ ToggleRedistributionError,
2933
+ OpnsenseOpContext
2934
+ > = /*@__PURE__*/ API.make(() => ({
2935
+ input: ToggleRedistributionRequest,
2936
+ output: ToggleRedistributionResponse,
2937
+ errors: [],
2938
+ protocol: OpnsenseProtocol,
2939
+ retry: Retry.Retry,
2940
+ }));
2941
+
2942
+ export type ToggleRoutemapError = OpnsenseOpError;
2943
+ /** Flip a routemaps.routemap item's enabled flag by uuid. */
2944
+ export const toggleRoutemap: API.OperationMethod<
2945
+ ToggleRoutemapRequest,
2946
+ ToggleRoutemapResponse,
2947
+ ToggleRoutemapError,
2948
+ OpnsenseOpContext
2949
+ > = /*@__PURE__*/ API.make(() => ({
2950
+ input: ToggleRoutemapRequest,
2951
+ output: ToggleRoutemapResponse,
2952
+ errors: [],
2953
+ protocol: OpnsenseProtocol,
2954
+ retry: Retry.Retry,
2955
+ }));