@camstack/types 1.2.310 → 1.2.311
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/capabilities/hub-address.d.ts +60 -51
- package/dist/capabilities/index.d.ts +1 -1
- package/dist/capabilities/local-network.cap.d.ts +149 -147
- package/dist/capabilities/notification-rules.cap.d.ts +12 -0
- package/dist/client.js +15 -3
- package/dist/client.mjs +15 -3
- package/dist/index.js +124 -106
- package/dist/index.mjs +118 -100
- package/dist/notification/alarm-settings.d.ts +6 -3
- package/package.json +1 -1
|
@@ -37,10 +37,10 @@ declare const LocalInterfaceSchema: z.ZodObject<{
|
|
|
37
37
|
mac: z.ZodString;
|
|
38
38
|
kind: z.ZodEnum<{
|
|
39
39
|
docker: "docker";
|
|
40
|
+
loopback: "loopback";
|
|
40
41
|
lan: "lan";
|
|
41
42
|
wifi: "wifi";
|
|
42
43
|
vpn: "vpn";
|
|
43
|
-
loopback: "loopback";
|
|
44
44
|
other: "other";
|
|
45
45
|
}>;
|
|
46
46
|
preferred: z.ZodBoolean;
|
|
@@ -58,18 +58,18 @@ declare const ConnectionEndpointSchema: z.ZodObject<{
|
|
|
58
58
|
kind: z.ZodEnum<{
|
|
59
59
|
custom: "custom";
|
|
60
60
|
public: "public";
|
|
61
|
-
loopback: "loopback";
|
|
62
61
|
"lan-ipv4": "lan-ipv4";
|
|
63
62
|
"lan-ipv6": "lan-ipv6";
|
|
63
|
+
loopback: "loopback";
|
|
64
64
|
"app-link": "app-link";
|
|
65
65
|
}>;
|
|
66
66
|
interfaceKind: z.ZodEnum<{
|
|
67
67
|
public: "public";
|
|
68
68
|
docker: "docker";
|
|
69
|
+
loopback: "loopback";
|
|
69
70
|
lan: "lan";
|
|
70
71
|
wifi: "wifi";
|
|
71
72
|
vpn: "vpn";
|
|
72
|
-
loopback: "loopback";
|
|
73
73
|
other: "other";
|
|
74
74
|
}>;
|
|
75
75
|
plausible: z.ZodBoolean;
|
|
@@ -88,7 +88,7 @@ declare const AdvertisedLocalPortSchema: z.ZodObject<{
|
|
|
88
88
|
}, z.core.$strip>;
|
|
89
89
|
export type AdvertisedLocalPort = z.infer<typeof AdvertisedLocalPortSchema>;
|
|
90
90
|
/**
|
|
91
|
-
* The address flagged for notification
|
|
91
|
+
* The address flagged for notification taps (`notificationTaps`). `baseUrl: null` = AUTO, which
|
|
92
92
|
* since D709 is the CamStack app link; `resolved` reports the effective value,
|
|
93
93
|
* so the UI can show it either way.
|
|
94
94
|
*/
|
|
@@ -110,8 +110,8 @@ declare const ViewerEndpointsSchema: z.ZodObject<{
|
|
|
110
110
|
export type ViewerEndpoints = z.infer<typeof ViewerEndpointsSchema>;
|
|
111
111
|
/**
|
|
112
112
|
* DEPRECATED compatibility shape of `getHubAddresses` (D729 amendment, kept
|
|
113
|
-
*
|
|
114
|
-
*
|
|
113
|
+
* for addons built against it): `cluster` is the `internal` role, `browser`
|
|
114
|
+
* the `publicEndpoint` role; `override` is the flagged address.
|
|
115
115
|
*/
|
|
116
116
|
declare const HubAddressSnapshotSchema: z.ZodObject<{
|
|
117
117
|
override: z.ZodNullable<z.ZodString>;
|
|
@@ -145,14 +145,15 @@ declare const HubAddressesSchema: z.ZodObject<{
|
|
|
145
145
|
export type HubAddresses = z.infer<typeof HubAddressesSchema>;
|
|
146
146
|
export type HubAddressSnapshot = z.infer<typeof HubAddressSnapshotSchema>;
|
|
147
147
|
/**
|
|
148
|
-
* What an address is used for (`hub-address.ts
|
|
149
|
-
* `
|
|
148
|
+
* What an address is used for (`hub-address.ts`, D734). `appConnections` is
|
|
149
|
+
* many-valued; `notificationTaps`, `publicEndpoint` and `internal` are carried
|
|
150
|
+
* by at most one address.
|
|
150
151
|
*/
|
|
151
152
|
export declare const HubAddressRoleSchema: z.ZodEnum<{
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
153
|
+
appConnections: "appConnections";
|
|
154
|
+
notificationTaps: "notificationTaps";
|
|
155
|
+
internal: "internal";
|
|
156
|
+
publicEndpoint: "publicEndpoint";
|
|
156
157
|
}>;
|
|
157
158
|
/**
|
|
158
159
|
* One row of the Network page's Addresses table: a detected endpoint, an
|
|
@@ -165,18 +166,18 @@ declare const HubAddressRowSchema: z.ZodObject<{
|
|
|
165
166
|
kind: z.ZodEnum<{
|
|
166
167
|
custom: "custom";
|
|
167
168
|
public: "public";
|
|
168
|
-
loopback: "loopback";
|
|
169
169
|
"lan-ipv4": "lan-ipv4";
|
|
170
170
|
"lan-ipv6": "lan-ipv6";
|
|
171
|
+
loopback: "loopback";
|
|
171
172
|
"app-link": "app-link";
|
|
172
173
|
}>;
|
|
173
174
|
interfaceKind: z.ZodEnum<{
|
|
174
175
|
public: "public";
|
|
175
176
|
docker: "docker";
|
|
177
|
+
loopback: "loopback";
|
|
176
178
|
lan: "lan";
|
|
177
179
|
wifi: "wifi";
|
|
178
180
|
vpn: "vpn";
|
|
179
|
-
loopback: "loopback";
|
|
180
181
|
other: "other";
|
|
181
182
|
}>;
|
|
182
183
|
plausible: z.ZodBoolean;
|
|
@@ -185,22 +186,22 @@ declare const HubAddressRowSchema: z.ZodObject<{
|
|
|
185
186
|
detected: z.ZodBoolean;
|
|
186
187
|
custom: z.ZodBoolean;
|
|
187
188
|
flags: z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
189
|
+
appConnections: "appConnections";
|
|
190
|
+
notificationTaps: "notificationTaps";
|
|
191
|
+
internal: "internal";
|
|
192
|
+
publicEndpoint: "publicEndpoint";
|
|
192
193
|
}>>>;
|
|
193
194
|
inUse: z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
195
|
+
appConnections: "appConnections";
|
|
196
|
+
notificationTaps: "notificationTaps";
|
|
197
|
+
internal: "internal";
|
|
198
|
+
publicEndpoint: "publicEndpoint";
|
|
198
199
|
}>>>;
|
|
199
200
|
eligible: z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
201
|
+
appConnections: "appConnections";
|
|
202
|
+
notificationTaps: "notificationTaps";
|
|
203
|
+
internal: "internal";
|
|
204
|
+
publicEndpoint: "publicEndpoint";
|
|
204
205
|
}>>>;
|
|
205
206
|
}, z.core.$strip>;
|
|
206
207
|
export type HubAddressRow = z.infer<typeof HubAddressRowSchema>;
|
|
@@ -211,18 +212,18 @@ declare const HubAddressBookSchema: z.ZodObject<{
|
|
|
211
212
|
kind: z.ZodEnum<{
|
|
212
213
|
custom: "custom";
|
|
213
214
|
public: "public";
|
|
214
|
-
loopback: "loopback";
|
|
215
215
|
"lan-ipv4": "lan-ipv4";
|
|
216
216
|
"lan-ipv6": "lan-ipv6";
|
|
217
|
+
loopback: "loopback";
|
|
217
218
|
"app-link": "app-link";
|
|
218
219
|
}>;
|
|
219
220
|
interfaceKind: z.ZodEnum<{
|
|
220
221
|
public: "public";
|
|
221
222
|
docker: "docker";
|
|
223
|
+
loopback: "loopback";
|
|
222
224
|
lan: "lan";
|
|
223
225
|
wifi: "wifi";
|
|
224
226
|
vpn: "vpn";
|
|
225
|
-
loopback: "loopback";
|
|
226
227
|
other: "other";
|
|
227
228
|
}>;
|
|
228
229
|
plausible: z.ZodBoolean;
|
|
@@ -231,26 +232,26 @@ declare const HubAddressBookSchema: z.ZodObject<{
|
|
|
231
232
|
detected: z.ZodBoolean;
|
|
232
233
|
custom: z.ZodBoolean;
|
|
233
234
|
flags: z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
235
|
+
appConnections: "appConnections";
|
|
236
|
+
notificationTaps: "notificationTaps";
|
|
237
|
+
internal: "internal";
|
|
238
|
+
publicEndpoint: "publicEndpoint";
|
|
238
239
|
}>>>;
|
|
239
240
|
inUse: z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
241
|
+
appConnections: "appConnections";
|
|
242
|
+
notificationTaps: "notificationTaps";
|
|
243
|
+
internal: "internal";
|
|
244
|
+
publicEndpoint: "publicEndpoint";
|
|
244
245
|
}>>>;
|
|
245
246
|
eligible: z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
247
|
+
appConnections: "appConnections";
|
|
248
|
+
notificationTaps: "notificationTaps";
|
|
249
|
+
internal: "internal";
|
|
250
|
+
publicEndpoint: "publicEndpoint";
|
|
250
251
|
}>>>;
|
|
251
252
|
}, z.core.$strip>>>;
|
|
252
253
|
roles: z.ZodObject<{
|
|
253
|
-
|
|
254
|
+
appConnections: z.ZodObject<{
|
|
254
255
|
flagged: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
255
256
|
resolved: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
256
257
|
source: z.ZodEnum<{
|
|
@@ -259,7 +260,7 @@ declare const HubAddressBookSchema: z.ZodObject<{
|
|
|
259
260
|
flagged: "flagged";
|
|
260
261
|
}>;
|
|
261
262
|
}, z.core.$strip>;
|
|
262
|
-
|
|
263
|
+
notificationTaps: z.ZodObject<{
|
|
263
264
|
flagged: z.ZodNullable<z.ZodString>;
|
|
264
265
|
resolved: z.ZodNullable<z.ZodString>;
|
|
265
266
|
source: z.ZodEnum<{
|
|
@@ -268,7 +269,7 @@ declare const HubAddressBookSchema: z.ZodObject<{
|
|
|
268
269
|
flagged: "flagged";
|
|
269
270
|
}>;
|
|
270
271
|
}, z.core.$strip>;
|
|
271
|
-
|
|
272
|
+
internal: z.ZodObject<{
|
|
272
273
|
flagged: z.ZodNullable<z.ZodString>;
|
|
273
274
|
resolved: z.ZodNullable<z.ZodString>;
|
|
274
275
|
source: z.ZodEnum<{
|
|
@@ -277,7 +278,7 @@ declare const HubAddressBookSchema: z.ZodObject<{
|
|
|
277
278
|
flagged: "flagged";
|
|
278
279
|
}>;
|
|
279
280
|
}, z.core.$strip>;
|
|
280
|
-
|
|
281
|
+
publicEndpoint: z.ZodObject<{
|
|
281
282
|
flagged: z.ZodNullable<z.ZodString>;
|
|
282
283
|
resolved: z.ZodNullable<z.ZodString>;
|
|
283
284
|
source: z.ZodEnum<{
|
|
@@ -310,10 +311,10 @@ export declare const localNetworkCapability: {
|
|
|
310
311
|
mac: z.ZodString;
|
|
311
312
|
kind: z.ZodEnum<{
|
|
312
313
|
docker: "docker";
|
|
314
|
+
loopback: "loopback";
|
|
313
315
|
lan: "lan";
|
|
314
316
|
wifi: "wifi";
|
|
315
317
|
vpn: "vpn";
|
|
316
|
-
loopback: "loopback";
|
|
317
318
|
other: "other";
|
|
318
319
|
}>;
|
|
319
320
|
preferred: z.ZodBoolean;
|
|
@@ -345,10 +346,10 @@ export declare const localNetworkCapability: {
|
|
|
345
346
|
mac: z.ZodString;
|
|
346
347
|
kind: z.ZodEnum<{
|
|
347
348
|
docker: "docker";
|
|
349
|
+
loopback: "loopback";
|
|
348
350
|
lan: "lan";
|
|
349
351
|
wifi: "wifi";
|
|
350
352
|
vpn: "vpn";
|
|
351
|
-
loopback: "loopback";
|
|
352
353
|
other: "other";
|
|
353
354
|
}>;
|
|
354
355
|
preferred: z.ZodBoolean;
|
|
@@ -400,18 +401,18 @@ export declare const localNetworkCapability: {
|
|
|
400
401
|
kind: z.ZodEnum<{
|
|
401
402
|
custom: "custom";
|
|
402
403
|
public: "public";
|
|
403
|
-
loopback: "loopback";
|
|
404
404
|
"lan-ipv4": "lan-ipv4";
|
|
405
405
|
"lan-ipv6": "lan-ipv6";
|
|
406
|
+
loopback: "loopback";
|
|
406
407
|
"app-link": "app-link";
|
|
407
408
|
}>;
|
|
408
409
|
interfaceKind: z.ZodEnum<{
|
|
409
410
|
public: "public";
|
|
410
411
|
docker: "docker";
|
|
412
|
+
loopback: "loopback";
|
|
411
413
|
lan: "lan";
|
|
412
414
|
wifi: "wifi";
|
|
413
415
|
vpn: "vpn";
|
|
414
|
-
loopback: "loopback";
|
|
415
416
|
other: "other";
|
|
416
417
|
}>;
|
|
417
418
|
plausible: z.ZodBoolean;
|
|
@@ -429,14 +430,13 @@ export declare const localNetworkCapability: {
|
|
|
429
430
|
}, z.core.$strip>;
|
|
430
431
|
}, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
431
432
|
/**
|
|
432
|
-
* The
|
|
433
|
-
* AUTO, which is the CamStack app link (D709):
|
|
434
|
-
* `https://camstack.zentik.app/…?hub=<appLinkHub>` and open the
|
|
435
|
-
* hub address the palette lists can be flagged instead; then
|
|
436
|
-
*
|
|
437
|
-
*
|
|
438
|
-
*
|
|
439
|
-
* the LAN), never loopback.
|
|
433
|
+
* The `notificationTaps` role (D734): where TAPPING a notification opens.
|
|
434
|
+
* `baseUrl: null` means AUTO, which is the CamStack app link (D709): taps
|
|
435
|
+
* go through `https://camstack.zentik.app/…?hub=<appLinkHub>` and open the
|
|
436
|
+
* app. Any hub address the palette lists can be flagged instead; then a
|
|
437
|
+
* tap opens that address. Only the tap: action buttons, attachment /
|
|
438
|
+
* media links and admin links follow the `publicEndpoint` role
|
|
439
|
+
* (`getAddresses().roles.publicEndpoint`), never this one.
|
|
440
440
|
*
|
|
441
441
|
* Why an explicit marker: the automatic ranking cannot know which of
|
|
442
442
|
* several reachable addresses the RECIPIENT can actually open. A link is
|
|
@@ -450,9 +450,8 @@ export declare const localNetworkCapability: {
|
|
|
450
450
|
appLinkHub: z.ZodNullable<z.ZodString>;
|
|
451
451
|
}, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
452
452
|
/**
|
|
453
|
-
* @deprecated Use `setAddressRole({ role: '
|
|
454
|
-
*
|
|
455
|
-
* flag, with the same validation. `baseUrl: null` restores automatic; an
|
|
453
|
+
* @deprecated Use `setAddressRole({ role: 'notificationTaps', … })`. It
|
|
454
|
+
* writes the same `notificationTaps` flag, with the same validation. `baseUrl: null` restores automatic; an
|
|
456
455
|
* address that is not detected becomes a custom address.
|
|
457
456
|
*/
|
|
458
457
|
readonly setNotificationEndpoint: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
@@ -463,7 +462,7 @@ export declare const localNetworkCapability: {
|
|
|
463
462
|
appLinkHub: z.ZodNullable<z.ZodString>;
|
|
464
463
|
}, z.core.$strip>, "mutation">;
|
|
465
464
|
/**
|
|
466
|
-
* The `
|
|
465
|
+
* The `appConnections` role as shipped apps read it: the flagged addresses
|
|
467
466
|
* (detected or custom), or empty for AUTO — every LAN IPv4 address plus
|
|
468
467
|
* the public tunnel, never IPv6, mesh, loopback or a custom address.
|
|
469
468
|
* `resolved` is the set as it stands right now; the custom ones in it are
|
|
@@ -474,8 +473,8 @@ export declare const localNetworkCapability: {
|
|
|
474
473
|
resolved: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
475
474
|
}, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
476
475
|
/**
|
|
477
|
-
* @deprecated Use `setAddressRole({ role: '
|
|
478
|
-
*
|
|
476
|
+
* @deprecated Use `setAddressRole({ role: 'appConnections', … })`. It
|
|
477
|
+
* replaces the same `appConnections` flags.
|
|
479
478
|
* Empty `baseUrls` restores automatic.
|
|
480
479
|
*/
|
|
481
480
|
readonly setViewerEndpoints: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
@@ -489,10 +488,12 @@ export declare const localNetworkCapability: {
|
|
|
489
488
|
* reading of "which address is this hub reached at, for what": detected
|
|
490
489
|
* endpoints and custom addresses with their role flags, and per role the
|
|
491
490
|
* flagged address, the one in use and whether it is automatic. Agent
|
|
492
|
-
* deliveries
|
|
493
|
-
*
|
|
494
|
-
*
|
|
495
|
-
*
|
|
491
|
+
* deliveries and LAN devices read `roles.internal`; sign-in, OAuth2 and
|
|
492
|
+
* the notification centre's buttons / media / admin links read
|
|
493
|
+
* `roles.publicEndpoint`; nothing ranks the palette itself. `scheme` is
|
|
494
|
+
* the one the caller shows LAN rows in (as `getConnectionEndpoints`);
|
|
495
|
+
* `internal` and `publicEndpoint` are always resolved over the HTTPS
|
|
496
|
+
* palette.
|
|
496
497
|
*/
|
|
497
498
|
readonly getAddresses: import("./capability-definition.js").CapabilityMethodSchema<z.ZodOptional<z.ZodObject<{
|
|
498
499
|
scheme: z.ZodOptional<z.ZodEnum<{
|
|
@@ -506,18 +507,18 @@ export declare const localNetworkCapability: {
|
|
|
506
507
|
kind: z.ZodEnum<{
|
|
507
508
|
custom: "custom";
|
|
508
509
|
public: "public";
|
|
509
|
-
loopback: "loopback";
|
|
510
510
|
"lan-ipv4": "lan-ipv4";
|
|
511
511
|
"lan-ipv6": "lan-ipv6";
|
|
512
|
+
loopback: "loopback";
|
|
512
513
|
"app-link": "app-link";
|
|
513
514
|
}>;
|
|
514
515
|
interfaceKind: z.ZodEnum<{
|
|
515
516
|
public: "public";
|
|
516
517
|
docker: "docker";
|
|
518
|
+
loopback: "loopback";
|
|
517
519
|
lan: "lan";
|
|
518
520
|
wifi: "wifi";
|
|
519
521
|
vpn: "vpn";
|
|
520
|
-
loopback: "loopback";
|
|
521
522
|
other: "other";
|
|
522
523
|
}>;
|
|
523
524
|
plausible: z.ZodBoolean;
|
|
@@ -526,26 +527,26 @@ export declare const localNetworkCapability: {
|
|
|
526
527
|
detected: z.ZodBoolean;
|
|
527
528
|
custom: z.ZodBoolean;
|
|
528
529
|
flags: z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
530
|
+
appConnections: "appConnections";
|
|
531
|
+
notificationTaps: "notificationTaps";
|
|
532
|
+
internal: "internal";
|
|
533
|
+
publicEndpoint: "publicEndpoint";
|
|
533
534
|
}>>>;
|
|
534
535
|
inUse: z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
536
|
+
appConnections: "appConnections";
|
|
537
|
+
notificationTaps: "notificationTaps";
|
|
538
|
+
internal: "internal";
|
|
539
|
+
publicEndpoint: "publicEndpoint";
|
|
539
540
|
}>>>;
|
|
540
541
|
eligible: z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
542
|
+
appConnections: "appConnections";
|
|
543
|
+
notificationTaps: "notificationTaps";
|
|
544
|
+
internal: "internal";
|
|
545
|
+
publicEndpoint: "publicEndpoint";
|
|
545
546
|
}>>>;
|
|
546
547
|
}, z.core.$strip>>>;
|
|
547
548
|
roles: z.ZodObject<{
|
|
548
|
-
|
|
549
|
+
appConnections: z.ZodObject<{
|
|
549
550
|
flagged: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
550
551
|
resolved: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
551
552
|
source: z.ZodEnum<{
|
|
@@ -554,7 +555,7 @@ export declare const localNetworkCapability: {
|
|
|
554
555
|
flagged: "flagged";
|
|
555
556
|
}>;
|
|
556
557
|
}, z.core.$strip>;
|
|
557
|
-
|
|
558
|
+
notificationTaps: z.ZodObject<{
|
|
558
559
|
flagged: z.ZodNullable<z.ZodString>;
|
|
559
560
|
resolved: z.ZodNullable<z.ZodString>;
|
|
560
561
|
source: z.ZodEnum<{
|
|
@@ -563,7 +564,7 @@ export declare const localNetworkCapability: {
|
|
|
563
564
|
flagged: "flagged";
|
|
564
565
|
}>;
|
|
565
566
|
}, z.core.$strip>;
|
|
566
|
-
|
|
567
|
+
internal: z.ZodObject<{
|
|
567
568
|
flagged: z.ZodNullable<z.ZodString>;
|
|
568
569
|
resolved: z.ZodNullable<z.ZodString>;
|
|
569
570
|
source: z.ZodEnum<{
|
|
@@ -572,7 +573,7 @@ export declare const localNetworkCapability: {
|
|
|
572
573
|
flagged: "flagged";
|
|
573
574
|
}>;
|
|
574
575
|
}, z.core.$strip>;
|
|
575
|
-
|
|
576
|
+
publicEndpoint: z.ZodObject<{
|
|
576
577
|
flagged: z.ZodNullable<z.ZodString>;
|
|
577
578
|
resolved: z.ZodNullable<z.ZodString>;
|
|
578
579
|
source: z.ZodEnum<{
|
|
@@ -600,18 +601,18 @@ export declare const localNetworkCapability: {
|
|
|
600
601
|
kind: z.ZodEnum<{
|
|
601
602
|
custom: "custom";
|
|
602
603
|
public: "public";
|
|
603
|
-
loopback: "loopback";
|
|
604
604
|
"lan-ipv4": "lan-ipv4";
|
|
605
605
|
"lan-ipv6": "lan-ipv6";
|
|
606
|
+
loopback: "loopback";
|
|
606
607
|
"app-link": "app-link";
|
|
607
608
|
}>;
|
|
608
609
|
interfaceKind: z.ZodEnum<{
|
|
609
610
|
public: "public";
|
|
610
611
|
docker: "docker";
|
|
612
|
+
loopback: "loopback";
|
|
611
613
|
lan: "lan";
|
|
612
614
|
wifi: "wifi";
|
|
613
615
|
vpn: "vpn";
|
|
614
|
-
loopback: "loopback";
|
|
615
616
|
other: "other";
|
|
616
617
|
}>;
|
|
617
618
|
plausible: z.ZodBoolean;
|
|
@@ -620,26 +621,26 @@ export declare const localNetworkCapability: {
|
|
|
620
621
|
detected: z.ZodBoolean;
|
|
621
622
|
custom: z.ZodBoolean;
|
|
622
623
|
flags: z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
624
|
+
appConnections: "appConnections";
|
|
625
|
+
notificationTaps: "notificationTaps";
|
|
626
|
+
internal: "internal";
|
|
627
|
+
publicEndpoint: "publicEndpoint";
|
|
627
628
|
}>>>;
|
|
628
629
|
inUse: z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
630
|
+
appConnections: "appConnections";
|
|
631
|
+
notificationTaps: "notificationTaps";
|
|
632
|
+
internal: "internal";
|
|
633
|
+
publicEndpoint: "publicEndpoint";
|
|
633
634
|
}>>>;
|
|
634
635
|
eligible: z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
636
|
+
appConnections: "appConnections";
|
|
637
|
+
notificationTaps: "notificationTaps";
|
|
638
|
+
internal: "internal";
|
|
639
|
+
publicEndpoint: "publicEndpoint";
|
|
639
640
|
}>>>;
|
|
640
641
|
}, z.core.$strip>>>;
|
|
641
642
|
roles: z.ZodObject<{
|
|
642
|
-
|
|
643
|
+
appConnections: z.ZodObject<{
|
|
643
644
|
flagged: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
644
645
|
resolved: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
645
646
|
source: z.ZodEnum<{
|
|
@@ -648,7 +649,7 @@ export declare const localNetworkCapability: {
|
|
|
648
649
|
flagged: "flagged";
|
|
649
650
|
}>;
|
|
650
651
|
}, z.core.$strip>;
|
|
651
|
-
|
|
652
|
+
notificationTaps: z.ZodObject<{
|
|
652
653
|
flagged: z.ZodNullable<z.ZodString>;
|
|
653
654
|
resolved: z.ZodNullable<z.ZodString>;
|
|
654
655
|
source: z.ZodEnum<{
|
|
@@ -657,7 +658,7 @@ export declare const localNetworkCapability: {
|
|
|
657
658
|
flagged: "flagged";
|
|
658
659
|
}>;
|
|
659
660
|
}, z.core.$strip>;
|
|
660
|
-
|
|
661
|
+
internal: z.ZodObject<{
|
|
661
662
|
flagged: z.ZodNullable<z.ZodString>;
|
|
662
663
|
resolved: z.ZodNullable<z.ZodString>;
|
|
663
664
|
source: z.ZodEnum<{
|
|
@@ -666,7 +667,7 @@ export declare const localNetworkCapability: {
|
|
|
666
667
|
flagged: "flagged";
|
|
667
668
|
}>;
|
|
668
669
|
}, z.core.$strip>;
|
|
669
|
-
|
|
670
|
+
publicEndpoint: z.ZodObject<{
|
|
670
671
|
flagged: z.ZodNullable<z.ZodString>;
|
|
671
672
|
resolved: z.ZodNullable<z.ZodString>;
|
|
672
673
|
source: z.ZodEnum<{
|
|
@@ -688,18 +689,18 @@ export declare const localNetworkCapability: {
|
|
|
688
689
|
kind: z.ZodEnum<{
|
|
689
690
|
custom: "custom";
|
|
690
691
|
public: "public";
|
|
691
|
-
loopback: "loopback";
|
|
692
692
|
"lan-ipv4": "lan-ipv4";
|
|
693
693
|
"lan-ipv6": "lan-ipv6";
|
|
694
|
+
loopback: "loopback";
|
|
694
695
|
"app-link": "app-link";
|
|
695
696
|
}>;
|
|
696
697
|
interfaceKind: z.ZodEnum<{
|
|
697
698
|
public: "public";
|
|
698
699
|
docker: "docker";
|
|
700
|
+
loopback: "loopback";
|
|
699
701
|
lan: "lan";
|
|
700
702
|
wifi: "wifi";
|
|
701
703
|
vpn: "vpn";
|
|
702
|
-
loopback: "loopback";
|
|
703
704
|
other: "other";
|
|
704
705
|
}>;
|
|
705
706
|
plausible: z.ZodBoolean;
|
|
@@ -708,26 +709,26 @@ export declare const localNetworkCapability: {
|
|
|
708
709
|
detected: z.ZodBoolean;
|
|
709
710
|
custom: z.ZodBoolean;
|
|
710
711
|
flags: z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
712
|
+
appConnections: "appConnections";
|
|
713
|
+
notificationTaps: "notificationTaps";
|
|
714
|
+
internal: "internal";
|
|
715
|
+
publicEndpoint: "publicEndpoint";
|
|
715
716
|
}>>>;
|
|
716
717
|
inUse: z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
718
|
+
appConnections: "appConnections";
|
|
719
|
+
notificationTaps: "notificationTaps";
|
|
720
|
+
internal: "internal";
|
|
721
|
+
publicEndpoint: "publicEndpoint";
|
|
721
722
|
}>>>;
|
|
722
723
|
eligible: z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
724
|
+
appConnections: "appConnections";
|
|
725
|
+
notificationTaps: "notificationTaps";
|
|
726
|
+
internal: "internal";
|
|
727
|
+
publicEndpoint: "publicEndpoint";
|
|
727
728
|
}>>>;
|
|
728
729
|
}, z.core.$strip>>>;
|
|
729
730
|
roles: z.ZodObject<{
|
|
730
|
-
|
|
731
|
+
appConnections: z.ZodObject<{
|
|
731
732
|
flagged: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
732
733
|
resolved: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
733
734
|
source: z.ZodEnum<{
|
|
@@ -736,7 +737,7 @@ export declare const localNetworkCapability: {
|
|
|
736
737
|
flagged: "flagged";
|
|
737
738
|
}>;
|
|
738
739
|
}, z.core.$strip>;
|
|
739
|
-
|
|
740
|
+
notificationTaps: z.ZodObject<{
|
|
740
741
|
flagged: z.ZodNullable<z.ZodString>;
|
|
741
742
|
resolved: z.ZodNullable<z.ZodString>;
|
|
742
743
|
source: z.ZodEnum<{
|
|
@@ -745,7 +746,7 @@ export declare const localNetworkCapability: {
|
|
|
745
746
|
flagged: "flagged";
|
|
746
747
|
}>;
|
|
747
748
|
}, z.core.$strip>;
|
|
748
|
-
|
|
749
|
+
internal: z.ZodObject<{
|
|
749
750
|
flagged: z.ZodNullable<z.ZodString>;
|
|
750
751
|
resolved: z.ZodNullable<z.ZodString>;
|
|
751
752
|
source: z.ZodEnum<{
|
|
@@ -754,7 +755,7 @@ export declare const localNetworkCapability: {
|
|
|
754
755
|
flagged: "flagged";
|
|
755
756
|
}>;
|
|
756
757
|
}, z.core.$strip>;
|
|
757
|
-
|
|
758
|
+
publicEndpoint: z.ZodObject<{
|
|
758
759
|
flagged: z.ZodNullable<z.ZodString>;
|
|
759
760
|
resolved: z.ZodNullable<z.ZodString>;
|
|
760
761
|
source: z.ZodEnum<{
|
|
@@ -770,15 +771,16 @@ export declare const localNetworkCapability: {
|
|
|
770
771
|
* Flag (`enabled: true`) or unflag an address for a role. For a
|
|
771
772
|
* single-valued role, flagging moves the flag off every other address.
|
|
772
773
|
* `baseUrl: null` returns the role to automatic. The address must be a row
|
|
773
|
-
* of the table (detected, custom, or the app link for
|
|
774
|
-
* `
|
|
774
|
+
* of the table (detected, custom, or the app link for `notificationTaps`);
|
|
775
|
+
* `publicEndpoint` on a plain-http address is refused unless
|
|
776
|
+
* `acceptInsecureHttp`, and never takes the app link.
|
|
775
777
|
*/
|
|
776
778
|
readonly setAddressRole: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
777
779
|
role: z.ZodEnum<{
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
780
|
+
appConnections: "appConnections";
|
|
781
|
+
notificationTaps: "notificationTaps";
|
|
782
|
+
internal: "internal";
|
|
783
|
+
publicEndpoint: "publicEndpoint";
|
|
782
784
|
}>;
|
|
783
785
|
baseUrl: z.ZodNullable<z.ZodString>;
|
|
784
786
|
enabled: z.ZodBoolean;
|
|
@@ -790,18 +792,18 @@ export declare const localNetworkCapability: {
|
|
|
790
792
|
kind: z.ZodEnum<{
|
|
791
793
|
custom: "custom";
|
|
792
794
|
public: "public";
|
|
793
|
-
loopback: "loopback";
|
|
794
795
|
"lan-ipv4": "lan-ipv4";
|
|
795
796
|
"lan-ipv6": "lan-ipv6";
|
|
797
|
+
loopback: "loopback";
|
|
796
798
|
"app-link": "app-link";
|
|
797
799
|
}>;
|
|
798
800
|
interfaceKind: z.ZodEnum<{
|
|
799
801
|
public: "public";
|
|
800
802
|
docker: "docker";
|
|
803
|
+
loopback: "loopback";
|
|
801
804
|
lan: "lan";
|
|
802
805
|
wifi: "wifi";
|
|
803
806
|
vpn: "vpn";
|
|
804
|
-
loopback: "loopback";
|
|
805
807
|
other: "other";
|
|
806
808
|
}>;
|
|
807
809
|
plausible: z.ZodBoolean;
|
|
@@ -810,26 +812,26 @@ export declare const localNetworkCapability: {
|
|
|
810
812
|
detected: z.ZodBoolean;
|
|
811
813
|
custom: z.ZodBoolean;
|
|
812
814
|
flags: z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
815
|
+
appConnections: "appConnections";
|
|
816
|
+
notificationTaps: "notificationTaps";
|
|
817
|
+
internal: "internal";
|
|
818
|
+
publicEndpoint: "publicEndpoint";
|
|
817
819
|
}>>>;
|
|
818
820
|
inUse: z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
821
|
+
appConnections: "appConnections";
|
|
822
|
+
notificationTaps: "notificationTaps";
|
|
823
|
+
internal: "internal";
|
|
824
|
+
publicEndpoint: "publicEndpoint";
|
|
823
825
|
}>>>;
|
|
824
826
|
eligible: z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
827
|
+
appConnections: "appConnections";
|
|
828
|
+
notificationTaps: "notificationTaps";
|
|
829
|
+
internal: "internal";
|
|
830
|
+
publicEndpoint: "publicEndpoint";
|
|
829
831
|
}>>>;
|
|
830
832
|
}, z.core.$strip>>>;
|
|
831
833
|
roles: z.ZodObject<{
|
|
832
|
-
|
|
834
|
+
appConnections: z.ZodObject<{
|
|
833
835
|
flagged: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
834
836
|
resolved: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
835
837
|
source: z.ZodEnum<{
|
|
@@ -838,7 +840,7 @@ export declare const localNetworkCapability: {
|
|
|
838
840
|
flagged: "flagged";
|
|
839
841
|
}>;
|
|
840
842
|
}, z.core.$strip>;
|
|
841
|
-
|
|
843
|
+
notificationTaps: z.ZodObject<{
|
|
842
844
|
flagged: z.ZodNullable<z.ZodString>;
|
|
843
845
|
resolved: z.ZodNullable<z.ZodString>;
|
|
844
846
|
source: z.ZodEnum<{
|
|
@@ -847,7 +849,7 @@ export declare const localNetworkCapability: {
|
|
|
847
849
|
flagged: "flagged";
|
|
848
850
|
}>;
|
|
849
851
|
}, z.core.$strip>;
|
|
850
|
-
|
|
852
|
+
internal: z.ZodObject<{
|
|
851
853
|
flagged: z.ZodNullable<z.ZodString>;
|
|
852
854
|
resolved: z.ZodNullable<z.ZodString>;
|
|
853
855
|
source: z.ZodEnum<{
|
|
@@ -856,7 +858,7 @@ export declare const localNetworkCapability: {
|
|
|
856
858
|
flagged: "flagged";
|
|
857
859
|
}>;
|
|
858
860
|
}, z.core.$strip>;
|
|
859
|
-
|
|
861
|
+
publicEndpoint: z.ZodObject<{
|
|
860
862
|
flagged: z.ZodNullable<z.ZodString>;
|
|
861
863
|
resolved: z.ZodNullable<z.ZodString>;
|
|
862
864
|
source: z.ZodEnum<{
|
|
@@ -869,9 +871,9 @@ export declare const localNetworkCapability: {
|
|
|
869
871
|
appLinkHub: z.ZodNullable<z.ZodString>;
|
|
870
872
|
}, z.core.$strip>, "mutation">;
|
|
871
873
|
/**
|
|
872
|
-
* @deprecated Read `getAddresses().roles.
|
|
873
|
-
*
|
|
874
|
-
* `cluster` = the `
|
|
874
|
+
* @deprecated Read `getAddresses().roles.internal` / `.publicEndpoint`.
|
|
875
|
+
* Kept so an addon built against the D729 amendment keeps resolving:
|
|
876
|
+
* `cluster` = the `internal` role, `browser` = the `publicEndpoint` role.
|
|
875
877
|
*/
|
|
876
878
|
readonly getHubAddresses: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodObject<{
|
|
877
879
|
cluster: z.ZodObject<{
|