@rstreamlabs/tunnels 3.8.3 → 3.10.1
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/README.md +54 -0
- package/dist/{chunk-3VBF43NB.mjs → chunk-DQN5T7CI.mjs} +207 -9
- package/dist/index.d.mts +321 -256
- package/dist/index.d.ts +321 -256
- package/dist/index.js +1113 -157
- package/dist/index.mjs +778 -142
- package/dist/node-engine-http-6DJZZEME.mjs +102 -0
- package/dist/openapi.d.mts +260 -10
- package/dist/openapi.d.ts +260 -10
- package/dist/openapi.js +207 -9
- package/dist/openapi.mjs +1 -1
- package/package.json +5 -5
package/dist/index.d.mts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { RstreamCredentials, TURNCredentials as TURNCredentials$1,
|
|
1
|
+
import { ControlPlaneHeaders, RstreamCredentials, TURNCredentials as TURNCredentials$1, ClientCredentials, TunnelsProject } from '@rstreamlabs/rstream';
|
|
2
2
|
import { CreateAuthTokenParams, CreateAuthTokenResponse } from '@rstreamlabs/rstream/auth-token';
|
|
3
3
|
import * as z from 'zod';
|
|
4
4
|
import { Tunnel } from '@rstreamlabs/rstream/tunnel';
|
|
5
5
|
import { TURNCredentials } from '@rstreamlabs/rstream/turn';
|
|
6
|
+
import { ConnectionOptions } from 'node:tls';
|
|
6
7
|
export { engineOpenApiDocument, engineOpenApiJson } from './openapi.mjs';
|
|
7
8
|
|
|
8
9
|
declare const clientSchema: z.ZodObject<{
|
|
@@ -27,15 +28,15 @@ declare const clientSchema: z.ZodObject<{
|
|
|
27
28
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
28
29
|
}, z.core.$strip>;
|
|
29
30
|
declare const clientFilterSchema: z.ZodObject<{
|
|
30
|
-
id: z.ZodOptional<z.ZodString>;
|
|
31
31
|
status: z.ZodOptional<z.ZodEnum<{
|
|
32
32
|
online: "online";
|
|
33
33
|
offline: "offline";
|
|
34
34
|
}>>;
|
|
35
|
+
id: z.ZodOptional<z.ZodString>;
|
|
36
|
+
version: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
35
37
|
user_id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
36
38
|
agent: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
37
39
|
channel: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
38
|
-
version: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
39
40
|
os: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
40
41
|
arch: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
41
42
|
protocol_version: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
@@ -44,15 +45,15 @@ declare const clientFilterSchema: z.ZodObject<{
|
|
|
44
45
|
declare const listClientsParamsSchema: z.ZodObject<{
|
|
45
46
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
46
47
|
filters: z.ZodOptional<z.ZodObject<{
|
|
47
|
-
id: z.ZodOptional<z.ZodString>;
|
|
48
48
|
status: z.ZodOptional<z.ZodEnum<{
|
|
49
49
|
online: "online";
|
|
50
50
|
offline: "offline";
|
|
51
51
|
}>>;
|
|
52
|
+
id: z.ZodOptional<z.ZodString>;
|
|
53
|
+
version: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
52
54
|
user_id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
53
55
|
agent: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
54
56
|
channel: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
55
|
-
version: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
56
57
|
os: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
57
58
|
arch: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
58
59
|
protocol_version: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
@@ -93,19 +94,19 @@ declare class RstreamClientsResource {
|
|
|
93
94
|
}
|
|
94
95
|
|
|
95
96
|
declare const tunnelFilterSchema: z.ZodObject<{
|
|
96
|
-
id: z.ZodOptional<z.ZodString>;
|
|
97
97
|
status: z.ZodOptional<z.ZodEnum<{
|
|
98
98
|
online: "online";
|
|
99
99
|
offline: "offline";
|
|
100
100
|
}>>;
|
|
101
|
-
|
|
102
|
-
labels: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
103
|
-
client_id: z.ZodOptional<z.ZodString>;
|
|
101
|
+
id: z.ZodOptional<z.ZodString>;
|
|
104
102
|
name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
105
103
|
type: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
|
|
106
104
|
bytestream: "bytestream";
|
|
107
105
|
datagram: "datagram";
|
|
108
106
|
}>>>;
|
|
107
|
+
user_id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
108
|
+
labels: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
109
|
+
client_id: z.ZodOptional<z.ZodString>;
|
|
109
110
|
publish: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
110
111
|
protocol: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
|
|
111
112
|
tls: "tls";
|
|
@@ -126,19 +127,19 @@ declare const tunnelFilterSchema: z.ZodObject<{
|
|
|
126
127
|
declare const listTunnelsParamsSchema: z.ZodObject<{
|
|
127
128
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
128
129
|
filters: z.ZodOptional<z.ZodObject<{
|
|
129
|
-
id: z.ZodOptional<z.ZodString>;
|
|
130
130
|
status: z.ZodOptional<z.ZodEnum<{
|
|
131
131
|
online: "online";
|
|
132
132
|
offline: "offline";
|
|
133
133
|
}>>;
|
|
134
|
-
|
|
135
|
-
labels: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
136
|
-
client_id: z.ZodOptional<z.ZodString>;
|
|
134
|
+
id: z.ZodOptional<z.ZodString>;
|
|
137
135
|
name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
138
136
|
type: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
|
|
139
137
|
bytestream: "bytestream";
|
|
140
138
|
datagram: "datagram";
|
|
141
139
|
}>>>;
|
|
140
|
+
user_id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
141
|
+
labels: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
142
|
+
client_id: z.ZodOptional<z.ZodString>;
|
|
142
143
|
publish: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
143
144
|
protocol: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
|
|
144
145
|
tls: "tls";
|
|
@@ -225,13 +226,19 @@ declare class RstreamTunnelsResource {
|
|
|
225
226
|
get(id: string): Promise<Tunnel>;
|
|
226
227
|
}
|
|
227
228
|
|
|
229
|
+
type EngineTLSOptions = Pick<ConnectionOptions, "ca" | "cert" | "key" | "checkServerIdentity" | "rejectUnauthorized" | "servername">;
|
|
230
|
+
|
|
228
231
|
declare const turnCredentialModeSchema: z.ZodEnum<{
|
|
229
|
-
|
|
232
|
+
auto: "auto";
|
|
230
233
|
app: "app";
|
|
231
234
|
pat: "pat";
|
|
235
|
+
api: "api";
|
|
236
|
+
engine: "engine";
|
|
232
237
|
}>;
|
|
233
238
|
type TURNCredentialMode = z.infer<typeof turnCredentialModeSchema>;
|
|
234
239
|
interface CreateAPITURNCredentialsOptions {
|
|
240
|
+
controlPlaneHeaders?: ControlPlaneHeaders;
|
|
241
|
+
signal?: AbortSignal;
|
|
235
242
|
apiUrl?: string;
|
|
236
243
|
credentials: RstreamCredentials;
|
|
237
244
|
fetch?: typeof globalThis.fetch;
|
|
@@ -253,6 +260,8 @@ interface CreatePATTURNCredentialsOptions {
|
|
|
253
260
|
turnsPort?: number;
|
|
254
261
|
}
|
|
255
262
|
interface CreateAPPTURNCredentialsOptions {
|
|
263
|
+
signal?: AbortSignal;
|
|
264
|
+
requestTimeoutMilliseconds?: number;
|
|
256
265
|
apiUrl?: string;
|
|
257
266
|
clientId: string;
|
|
258
267
|
clientSecret: string;
|
|
@@ -268,6 +277,11 @@ interface CreateAPPTURNCredentialsOptions {
|
|
|
268
277
|
turnsPort?: number;
|
|
269
278
|
}
|
|
270
279
|
interface CreateTURNCredentialsOptions {
|
|
280
|
+
controlPlaneHeaders?: ControlPlaneHeaders;
|
|
281
|
+
client?: RstreamTunnelsClient;
|
|
282
|
+
tls?: EngineTLSOptions;
|
|
283
|
+
mtlsApiUrl?: string;
|
|
284
|
+
signal?: AbortSignal;
|
|
271
285
|
apiUrl?: string;
|
|
272
286
|
clusterDomain?: string;
|
|
273
287
|
controlPlaneCredentials?: RstreamCredentials;
|
|
@@ -291,12 +305,14 @@ interface CreateTURNCredentialsOptions {
|
|
|
291
305
|
declare function createAPITURNCredentials(options: CreateAPITURNCredentialsOptions): Promise<TURNCredentials>;
|
|
292
306
|
declare function createPATTURNCredentials(options: CreatePATTURNCredentialsOptions): TURNCredentials;
|
|
293
307
|
declare function createAPPTURNCredentials(options: CreateAPPTURNCredentialsOptions): Promise<TURNCredentials>;
|
|
308
|
+
declare function validateTURNCredentialsRequest(options: CreateTURNCredentialsOptions): number;
|
|
294
309
|
declare function createTURNCredentials(options: CreateTURNCredentialsOptions): Promise<TURNCredentials>;
|
|
295
310
|
|
|
296
311
|
declare class RstreamTURNResource {
|
|
297
312
|
private readonly client;
|
|
298
313
|
constructor(client: RstreamTunnelsClient);
|
|
299
314
|
createCredentials(options?: CreateTURNCredentialsOptions): Promise<TURNCredentials$1>;
|
|
315
|
+
private createForLifetime;
|
|
300
316
|
}
|
|
301
317
|
|
|
302
318
|
declare const initialStateSchema: z.ZodObject<{
|
|
@@ -414,12 +430,12 @@ declare const streamSummaryEventSchema: z.ZodObject<{
|
|
|
414
430
|
internal: "internal";
|
|
415
431
|
}>;
|
|
416
432
|
transport: z.ZodOptional<z.ZodEnum<{
|
|
417
|
-
http: "http";
|
|
418
|
-
rstream: "rstream";
|
|
419
433
|
tls: "tls";
|
|
420
434
|
tcp: "tcp";
|
|
421
435
|
dtls: "dtls";
|
|
422
436
|
quic: "quic";
|
|
437
|
+
http: "http";
|
|
438
|
+
rstream: "rstream";
|
|
423
439
|
}>>;
|
|
424
440
|
}, z.core.$strip>>;
|
|
425
441
|
http: z.ZodOptional<z.ZodObject<{
|
|
@@ -456,9 +472,9 @@ declare const streamSummaryEventSchema: z.ZodObject<{
|
|
|
456
472
|
}, z.core.$strip>, z.ZodObject<{
|
|
457
473
|
kind: z.ZodLiteral<"token">;
|
|
458
474
|
source: z.ZodOptional<z.ZodEnum<{
|
|
459
|
-
query: "query";
|
|
460
475
|
unknown: "unknown";
|
|
461
476
|
authorization: "authorization";
|
|
477
|
+
query: "query";
|
|
462
478
|
client: "client";
|
|
463
479
|
}>>;
|
|
464
480
|
tokenType: z.ZodOptional<z.ZodEnum<{
|
|
@@ -483,9 +499,9 @@ declare const streamSummaryEventSchema: z.ZodObject<{
|
|
|
483
499
|
}, z.core.$strip>, z.ZodObject<{
|
|
484
500
|
kind: z.ZodLiteral<"token">;
|
|
485
501
|
source: z.ZodOptional<z.ZodEnum<{
|
|
486
|
-
query: "query";
|
|
487
502
|
unknown: "unknown";
|
|
488
503
|
authorization: "authorization";
|
|
504
|
+
query: "query";
|
|
489
505
|
client: "client";
|
|
490
506
|
}>>;
|
|
491
507
|
tokenType: z.ZodOptional<z.ZodEnum<{
|
|
@@ -504,49 +520,49 @@ declare const streamSummaryEventSchema: z.ZodObject<{
|
|
|
504
520
|
why: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
505
521
|
reason: z.ZodLiteral<"missing_token">;
|
|
506
522
|
source: z.ZodEnum<{
|
|
507
|
-
query: "query";
|
|
508
523
|
unknown: "unknown";
|
|
509
524
|
authorization: "authorization";
|
|
525
|
+
query: "query";
|
|
510
526
|
client: "client";
|
|
511
527
|
}>;
|
|
512
528
|
}, z.core.$strip>, z.ZodObject<{
|
|
513
529
|
reason: z.ZodLiteral<"invalid_token">;
|
|
514
530
|
source: z.ZodEnum<{
|
|
515
|
-
query: "query";
|
|
516
531
|
unknown: "unknown";
|
|
517
532
|
authorization: "authorization";
|
|
533
|
+
query: "query";
|
|
518
534
|
client: "client";
|
|
519
535
|
}>;
|
|
520
536
|
}, z.core.$strip>, z.ZodObject<{
|
|
521
537
|
reason: z.ZodLiteral<"expired_token">;
|
|
522
538
|
source: z.ZodEnum<{
|
|
523
|
-
query: "query";
|
|
524
539
|
unknown: "unknown";
|
|
525
540
|
authorization: "authorization";
|
|
541
|
+
query: "query";
|
|
526
542
|
client: "client";
|
|
527
543
|
}>;
|
|
528
544
|
}, z.core.$strip>, z.ZodObject<{
|
|
529
545
|
reason: z.ZodLiteral<"invalid_secret">;
|
|
530
546
|
source: z.ZodEnum<{
|
|
531
|
-
query: "query";
|
|
532
547
|
unknown: "unknown";
|
|
533
548
|
authorization: "authorization";
|
|
549
|
+
query: "query";
|
|
534
550
|
client: "client";
|
|
535
551
|
}>;
|
|
536
552
|
}, z.core.$strip>, z.ZodObject<{
|
|
537
553
|
reason: z.ZodLiteral<"user_mismatch">;
|
|
538
554
|
source: z.ZodEnum<{
|
|
539
|
-
query: "query";
|
|
540
555
|
unknown: "unknown";
|
|
541
556
|
authorization: "authorization";
|
|
557
|
+
query: "query";
|
|
542
558
|
client: "client";
|
|
543
559
|
}>;
|
|
544
560
|
}, z.core.$strip>, z.ZodObject<{
|
|
545
561
|
reason: z.ZodLiteral<"insufficient_scope">;
|
|
546
562
|
source: z.ZodEnum<{
|
|
547
|
-
query: "query";
|
|
548
563
|
unknown: "unknown";
|
|
549
564
|
authorization: "authorization";
|
|
565
|
+
query: "query";
|
|
550
566
|
client: "client";
|
|
551
567
|
}>;
|
|
552
568
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -560,9 +576,9 @@ declare const streamSummaryEventSchema: z.ZodObject<{
|
|
|
560
576
|
}>;
|
|
561
577
|
value: z.ZodOptional<z.ZodString>;
|
|
562
578
|
source: z.ZodEnum<{
|
|
563
|
-
query: "query";
|
|
564
579
|
unknown: "unknown";
|
|
565
580
|
authorization: "authorization";
|
|
581
|
+
query: "query";
|
|
566
582
|
client: "client";
|
|
567
583
|
}>;
|
|
568
584
|
}, z.core.$strip>], "reason">;
|
|
@@ -641,49 +657,49 @@ declare const streamSummaryEventSchema: z.ZodObject<{
|
|
|
641
657
|
why: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
642
658
|
reason: z.ZodLiteral<"missing_token">;
|
|
643
659
|
source: z.ZodEnum<{
|
|
644
|
-
query: "query";
|
|
645
660
|
unknown: "unknown";
|
|
646
661
|
authorization: "authorization";
|
|
662
|
+
query: "query";
|
|
647
663
|
client: "client";
|
|
648
664
|
}>;
|
|
649
665
|
}, z.core.$strip>, z.ZodObject<{
|
|
650
666
|
reason: z.ZodLiteral<"invalid_token">;
|
|
651
667
|
source: z.ZodEnum<{
|
|
652
|
-
query: "query";
|
|
653
668
|
unknown: "unknown";
|
|
654
669
|
authorization: "authorization";
|
|
670
|
+
query: "query";
|
|
655
671
|
client: "client";
|
|
656
672
|
}>;
|
|
657
673
|
}, z.core.$strip>, z.ZodObject<{
|
|
658
674
|
reason: z.ZodLiteral<"expired_token">;
|
|
659
675
|
source: z.ZodEnum<{
|
|
660
|
-
query: "query";
|
|
661
676
|
unknown: "unknown";
|
|
662
677
|
authorization: "authorization";
|
|
678
|
+
query: "query";
|
|
663
679
|
client: "client";
|
|
664
680
|
}>;
|
|
665
681
|
}, z.core.$strip>, z.ZodObject<{
|
|
666
682
|
reason: z.ZodLiteral<"invalid_secret">;
|
|
667
683
|
source: z.ZodEnum<{
|
|
668
|
-
query: "query";
|
|
669
684
|
unknown: "unknown";
|
|
670
685
|
authorization: "authorization";
|
|
686
|
+
query: "query";
|
|
671
687
|
client: "client";
|
|
672
688
|
}>;
|
|
673
689
|
}, z.core.$strip>, z.ZodObject<{
|
|
674
690
|
reason: z.ZodLiteral<"user_mismatch">;
|
|
675
691
|
source: z.ZodEnum<{
|
|
676
|
-
query: "query";
|
|
677
692
|
unknown: "unknown";
|
|
678
693
|
authorization: "authorization";
|
|
694
|
+
query: "query";
|
|
679
695
|
client: "client";
|
|
680
696
|
}>;
|
|
681
697
|
}, z.core.$strip>, z.ZodObject<{
|
|
682
698
|
reason: z.ZodLiteral<"insufficient_scope">;
|
|
683
699
|
source: z.ZodEnum<{
|
|
684
|
-
query: "query";
|
|
685
700
|
unknown: "unknown";
|
|
686
701
|
authorization: "authorization";
|
|
702
|
+
query: "query";
|
|
687
703
|
client: "client";
|
|
688
704
|
}>;
|
|
689
705
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -697,9 +713,9 @@ declare const streamSummaryEventSchema: z.ZodObject<{
|
|
|
697
713
|
}>;
|
|
698
714
|
value: z.ZodOptional<z.ZodString>;
|
|
699
715
|
source: z.ZodEnum<{
|
|
700
|
-
query: "query";
|
|
701
716
|
unknown: "unknown";
|
|
702
717
|
authorization: "authorization";
|
|
718
|
+
query: "query";
|
|
703
719
|
client: "client";
|
|
704
720
|
}>;
|
|
705
721
|
}, z.core.$strip>], "reason">;
|
|
@@ -740,8 +756,8 @@ declare const streamSummaryEventSchema: z.ZodObject<{
|
|
|
740
756
|
}>>;
|
|
741
757
|
controller: z.ZodOptional<z.ZodBoolean>;
|
|
742
758
|
recording_mode: z.ZodOptional<z.ZodEnum<{
|
|
743
|
-
recorded: "recorded";
|
|
744
759
|
private: "private";
|
|
760
|
+
recorded: "recorded";
|
|
745
761
|
}>>;
|
|
746
762
|
encryption_mode: z.ZodOptional<z.ZodEnum<{
|
|
747
763
|
managed: "managed";
|
|
@@ -772,9 +788,9 @@ declare const streamSummaryEventSchema: z.ZodObject<{
|
|
|
772
788
|
webtransport: "webtransport";
|
|
773
789
|
}>>;
|
|
774
790
|
origin: z.ZodOptional<z.ZodEnum<{
|
|
791
|
+
api: "api";
|
|
775
792
|
human: "human";
|
|
776
793
|
codex: "codex";
|
|
777
|
-
api: "api";
|
|
778
794
|
automation: "automation";
|
|
779
795
|
ci: "ci";
|
|
780
796
|
"scheduled-job": "scheduled-job";
|
|
@@ -782,8 +798,8 @@ declare const streamSummaryEventSchema: z.ZodObject<{
|
|
|
782
798
|
origin_id: z.ZodOptional<z.ZodString>;
|
|
783
799
|
initiator_kind: z.ZodOptional<z.ZodEnum<{
|
|
784
800
|
agent: "agent";
|
|
785
|
-
user: "user";
|
|
786
801
|
app: "app";
|
|
802
|
+
user: "user";
|
|
787
803
|
"service-account": "service-account";
|
|
788
804
|
}>>;
|
|
789
805
|
device_id: z.ZodOptional<z.ZodString>;
|
|
@@ -820,10 +836,10 @@ declare const streamSummaryEventSchema: z.ZodObject<{
|
|
|
820
836
|
server: "server";
|
|
821
837
|
}>;
|
|
822
838
|
reason: z.ZodEnum<{
|
|
823
|
-
unknown: "unknown";
|
|
824
839
|
error: "error";
|
|
825
|
-
closed: "closed";
|
|
826
840
|
timeout: "timeout";
|
|
841
|
+
unknown: "unknown";
|
|
842
|
+
closed: "closed";
|
|
827
843
|
reset: "reset";
|
|
828
844
|
}>;
|
|
829
845
|
message: z.ZodOptional<z.ZodString>;
|
|
@@ -851,49 +867,49 @@ declare const streamSummaryEventSchema: z.ZodObject<{
|
|
|
851
867
|
why: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
852
868
|
reason: z.ZodLiteral<"missing_token">;
|
|
853
869
|
source: z.ZodEnum<{
|
|
854
|
-
query: "query";
|
|
855
870
|
unknown: "unknown";
|
|
856
871
|
authorization: "authorization";
|
|
872
|
+
query: "query";
|
|
857
873
|
client: "client";
|
|
858
874
|
}>;
|
|
859
875
|
}, z.core.$strip>, z.ZodObject<{
|
|
860
876
|
reason: z.ZodLiteral<"invalid_token">;
|
|
861
877
|
source: z.ZodEnum<{
|
|
862
|
-
query: "query";
|
|
863
878
|
unknown: "unknown";
|
|
864
879
|
authorization: "authorization";
|
|
880
|
+
query: "query";
|
|
865
881
|
client: "client";
|
|
866
882
|
}>;
|
|
867
883
|
}, z.core.$strip>, z.ZodObject<{
|
|
868
884
|
reason: z.ZodLiteral<"expired_token">;
|
|
869
885
|
source: z.ZodEnum<{
|
|
870
|
-
query: "query";
|
|
871
886
|
unknown: "unknown";
|
|
872
887
|
authorization: "authorization";
|
|
888
|
+
query: "query";
|
|
873
889
|
client: "client";
|
|
874
890
|
}>;
|
|
875
891
|
}, z.core.$strip>, z.ZodObject<{
|
|
876
892
|
reason: z.ZodLiteral<"invalid_secret">;
|
|
877
893
|
source: z.ZodEnum<{
|
|
878
|
-
query: "query";
|
|
879
894
|
unknown: "unknown";
|
|
880
895
|
authorization: "authorization";
|
|
896
|
+
query: "query";
|
|
881
897
|
client: "client";
|
|
882
898
|
}>;
|
|
883
899
|
}, z.core.$strip>, z.ZodObject<{
|
|
884
900
|
reason: z.ZodLiteral<"user_mismatch">;
|
|
885
901
|
source: z.ZodEnum<{
|
|
886
|
-
query: "query";
|
|
887
902
|
unknown: "unknown";
|
|
888
903
|
authorization: "authorization";
|
|
904
|
+
query: "query";
|
|
889
905
|
client: "client";
|
|
890
906
|
}>;
|
|
891
907
|
}, z.core.$strip>, z.ZodObject<{
|
|
892
908
|
reason: z.ZodLiteral<"insufficient_scope">;
|
|
893
909
|
source: z.ZodEnum<{
|
|
894
|
-
query: "query";
|
|
895
910
|
unknown: "unknown";
|
|
896
911
|
authorization: "authorization";
|
|
912
|
+
query: "query";
|
|
897
913
|
client: "client";
|
|
898
914
|
}>;
|
|
899
915
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -907,9 +923,9 @@ declare const streamSummaryEventSchema: z.ZodObject<{
|
|
|
907
923
|
}>;
|
|
908
924
|
value: z.ZodOptional<z.ZodString>;
|
|
909
925
|
source: z.ZodEnum<{
|
|
910
|
-
query: "query";
|
|
911
926
|
unknown: "unknown";
|
|
912
927
|
authorization: "authorization";
|
|
928
|
+
query: "query";
|
|
913
929
|
client: "client";
|
|
914
930
|
}>;
|
|
915
931
|
}, z.core.$strip>], "reason">;
|
|
@@ -964,10 +980,10 @@ declare const streamSummaryEventSchema: z.ZodObject<{
|
|
|
964
980
|
server: "server";
|
|
965
981
|
}>;
|
|
966
982
|
reason: z.ZodEnum<{
|
|
967
|
-
unknown: "unknown";
|
|
968
983
|
error: "error";
|
|
969
|
-
closed: "closed";
|
|
970
984
|
timeout: "timeout";
|
|
985
|
+
unknown: "unknown";
|
|
986
|
+
closed: "closed";
|
|
971
987
|
reset: "reset";
|
|
972
988
|
}>;
|
|
973
989
|
message: z.ZodOptional<z.ZodString>;
|
|
@@ -1373,10 +1389,10 @@ declare const wsEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1373
1389
|
initiator_user_id: z.ZodOptional<z.ZodString>;
|
|
1374
1390
|
group_id: z.ZodOptional<z.ZodString>;
|
|
1375
1391
|
status: z.ZodEnum<{
|
|
1376
|
-
opening: "opening";
|
|
1377
1392
|
active: "active";
|
|
1378
|
-
closing: "closing";
|
|
1379
1393
|
closed: "closed";
|
|
1394
|
+
opening: "opening";
|
|
1395
|
+
closing: "closing";
|
|
1380
1396
|
errored: "errored";
|
|
1381
1397
|
}>;
|
|
1382
1398
|
session_mode: z.ZodEnum<{
|
|
@@ -1384,8 +1400,8 @@ declare const wsEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1384
1400
|
"non-interactive": "non-interactive";
|
|
1385
1401
|
}>;
|
|
1386
1402
|
recording_mode: z.ZodEnum<{
|
|
1387
|
-
recorded: "recorded";
|
|
1388
1403
|
private: "private";
|
|
1404
|
+
recorded: "recorded";
|
|
1389
1405
|
}>;
|
|
1390
1406
|
encryption_mode: z.ZodEnum<{
|
|
1391
1407
|
managed: "managed";
|
|
@@ -1404,9 +1420,9 @@ declare const wsEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1404
1420
|
command_meta: z.ZodOptional<z.ZodUnknown>;
|
|
1405
1421
|
context: z.ZodOptional<z.ZodObject<{
|
|
1406
1422
|
origin: z.ZodOptional<z.ZodEnum<{
|
|
1423
|
+
api: "api";
|
|
1407
1424
|
human: "human";
|
|
1408
1425
|
codex: "codex";
|
|
1409
|
-
api: "api";
|
|
1410
1426
|
automation: "automation";
|
|
1411
1427
|
ci: "ci";
|
|
1412
1428
|
"scheduled-job": "scheduled-job";
|
|
@@ -1415,8 +1431,8 @@ declare const wsEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1415
1431
|
purpose: z.ZodOptional<z.ZodString>;
|
|
1416
1432
|
initiator_kind: z.ZodOptional<z.ZodEnum<{
|
|
1417
1433
|
agent: "agent";
|
|
1418
|
-
user: "user";
|
|
1419
1434
|
app: "app";
|
|
1435
|
+
user: "user";
|
|
1420
1436
|
"service-account": "service-account";
|
|
1421
1437
|
}>>;
|
|
1422
1438
|
agent_name: z.ZodOptional<z.ZodString>;
|
|
@@ -1456,10 +1472,10 @@ declare const wsEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1456
1472
|
initiator_user_id: z.ZodOptional<z.ZodString>;
|
|
1457
1473
|
group_id: z.ZodOptional<z.ZodString>;
|
|
1458
1474
|
status: z.ZodEnum<{
|
|
1459
|
-
opening: "opening";
|
|
1460
1475
|
active: "active";
|
|
1461
|
-
closing: "closing";
|
|
1462
1476
|
closed: "closed";
|
|
1477
|
+
opening: "opening";
|
|
1478
|
+
closing: "closing";
|
|
1463
1479
|
errored: "errored";
|
|
1464
1480
|
}>;
|
|
1465
1481
|
session_mode: z.ZodEnum<{
|
|
@@ -1467,8 +1483,8 @@ declare const wsEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1467
1483
|
"non-interactive": "non-interactive";
|
|
1468
1484
|
}>;
|
|
1469
1485
|
recording_mode: z.ZodEnum<{
|
|
1470
|
-
recorded: "recorded";
|
|
1471
1486
|
private: "private";
|
|
1487
|
+
recorded: "recorded";
|
|
1472
1488
|
}>;
|
|
1473
1489
|
encryption_mode: z.ZodEnum<{
|
|
1474
1490
|
managed: "managed";
|
|
@@ -1487,9 +1503,9 @@ declare const wsEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1487
1503
|
command_meta: z.ZodOptional<z.ZodUnknown>;
|
|
1488
1504
|
context: z.ZodOptional<z.ZodObject<{
|
|
1489
1505
|
origin: z.ZodOptional<z.ZodEnum<{
|
|
1506
|
+
api: "api";
|
|
1490
1507
|
human: "human";
|
|
1491
1508
|
codex: "codex";
|
|
1492
|
-
api: "api";
|
|
1493
1509
|
automation: "automation";
|
|
1494
1510
|
ci: "ci";
|
|
1495
1511
|
"scheduled-job": "scheduled-job";
|
|
@@ -1498,8 +1514,8 @@ declare const wsEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1498
1514
|
purpose: z.ZodOptional<z.ZodString>;
|
|
1499
1515
|
initiator_kind: z.ZodOptional<z.ZodEnum<{
|
|
1500
1516
|
agent: "agent";
|
|
1501
|
-
user: "user";
|
|
1502
1517
|
app: "app";
|
|
1518
|
+
user: "user";
|
|
1503
1519
|
"service-account": "service-account";
|
|
1504
1520
|
}>>;
|
|
1505
1521
|
agent_name: z.ZodOptional<z.ZodString>;
|
|
@@ -1526,9 +1542,9 @@ declare const wsEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1526
1542
|
initiator_user_id: z.ZodOptional<z.ZodString>;
|
|
1527
1543
|
context: z.ZodOptional<z.ZodObject<{
|
|
1528
1544
|
origin: z.ZodOptional<z.ZodEnum<{
|
|
1545
|
+
api: "api";
|
|
1529
1546
|
human: "human";
|
|
1530
1547
|
codex: "codex";
|
|
1531
|
-
api: "api";
|
|
1532
1548
|
automation: "automation";
|
|
1533
1549
|
ci: "ci";
|
|
1534
1550
|
"scheduled-job": "scheduled-job";
|
|
@@ -1537,8 +1553,8 @@ declare const wsEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1537
1553
|
purpose: z.ZodOptional<z.ZodString>;
|
|
1538
1554
|
initiator_kind: z.ZodOptional<z.ZodEnum<{
|
|
1539
1555
|
agent: "agent";
|
|
1540
|
-
user: "user";
|
|
1541
1556
|
app: "app";
|
|
1557
|
+
user: "user";
|
|
1542
1558
|
"service-account": "service-account";
|
|
1543
1559
|
}>>;
|
|
1544
1560
|
agent_name: z.ZodOptional<z.ZodString>;
|
|
@@ -1569,10 +1585,10 @@ declare const wsEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1569
1585
|
initiator_user_id: z.ZodOptional<z.ZodString>;
|
|
1570
1586
|
group_id: z.ZodOptional<z.ZodString>;
|
|
1571
1587
|
status: z.ZodEnum<{
|
|
1572
|
-
opening: "opening";
|
|
1573
1588
|
active: "active";
|
|
1574
|
-
closing: "closing";
|
|
1575
1589
|
closed: "closed";
|
|
1590
|
+
opening: "opening";
|
|
1591
|
+
closing: "closing";
|
|
1576
1592
|
errored: "errored";
|
|
1577
1593
|
}>;
|
|
1578
1594
|
session_mode: z.ZodEnum<{
|
|
@@ -1580,8 +1596,8 @@ declare const wsEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1580
1596
|
"non-interactive": "non-interactive";
|
|
1581
1597
|
}>;
|
|
1582
1598
|
recording_mode: z.ZodEnum<{
|
|
1583
|
-
recorded: "recorded";
|
|
1584
1599
|
private: "private";
|
|
1600
|
+
recorded: "recorded";
|
|
1585
1601
|
}>;
|
|
1586
1602
|
encryption_mode: z.ZodEnum<{
|
|
1587
1603
|
managed: "managed";
|
|
@@ -1600,9 +1616,9 @@ declare const wsEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1600
1616
|
command_meta: z.ZodOptional<z.ZodUnknown>;
|
|
1601
1617
|
context: z.ZodOptional<z.ZodObject<{
|
|
1602
1618
|
origin: z.ZodOptional<z.ZodEnum<{
|
|
1619
|
+
api: "api";
|
|
1603
1620
|
human: "human";
|
|
1604
1621
|
codex: "codex";
|
|
1605
|
-
api: "api";
|
|
1606
1622
|
automation: "automation";
|
|
1607
1623
|
ci: "ci";
|
|
1608
1624
|
"scheduled-job": "scheduled-job";
|
|
@@ -1611,8 +1627,8 @@ declare const wsEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1611
1627
|
purpose: z.ZodOptional<z.ZodString>;
|
|
1612
1628
|
initiator_kind: z.ZodOptional<z.ZodEnum<{
|
|
1613
1629
|
agent: "agent";
|
|
1614
|
-
user: "user";
|
|
1615
1630
|
app: "app";
|
|
1631
|
+
user: "user";
|
|
1616
1632
|
"service-account": "service-account";
|
|
1617
1633
|
}>>;
|
|
1618
1634
|
agent_name: z.ZodOptional<z.ZodString>;
|
|
@@ -1736,9 +1752,9 @@ declare const wsEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1736
1752
|
approver_participant_id: z.ZodOptional<z.ZodString>;
|
|
1737
1753
|
approver_user_id: z.ZodOptional<z.ZodString>;
|
|
1738
1754
|
status: z.ZodEnum<{
|
|
1755
|
+
refused: "refused";
|
|
1739
1756
|
pending: "pending";
|
|
1740
1757
|
granted: "granted";
|
|
1741
|
-
refused: "refused";
|
|
1742
1758
|
revoked: "revoked";
|
|
1743
1759
|
expired: "expired";
|
|
1744
1760
|
}>;
|
|
@@ -1765,9 +1781,9 @@ declare const wsEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1765
1781
|
approver_participant_id: z.ZodOptional<z.ZodString>;
|
|
1766
1782
|
approver_user_id: z.ZodOptional<z.ZodString>;
|
|
1767
1783
|
status: z.ZodEnum<{
|
|
1784
|
+
refused: "refused";
|
|
1768
1785
|
pending: "pending";
|
|
1769
1786
|
granted: "granted";
|
|
1770
|
-
refused: "refused";
|
|
1771
1787
|
revoked: "revoked";
|
|
1772
1788
|
expired: "expired";
|
|
1773
1789
|
}>;
|
|
@@ -1794,9 +1810,9 @@ declare const wsEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1794
1810
|
approver_participant_id: z.ZodOptional<z.ZodString>;
|
|
1795
1811
|
approver_user_id: z.ZodOptional<z.ZodString>;
|
|
1796
1812
|
status: z.ZodEnum<{
|
|
1813
|
+
refused: "refused";
|
|
1797
1814
|
pending: "pending";
|
|
1798
1815
|
granted: "granted";
|
|
1799
|
-
refused: "refused";
|
|
1800
1816
|
revoked: "revoked";
|
|
1801
1817
|
expired: "expired";
|
|
1802
1818
|
}>;
|
|
@@ -1823,9 +1839,9 @@ declare const wsEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1823
1839
|
approver_participant_id: z.ZodOptional<z.ZodString>;
|
|
1824
1840
|
approver_user_id: z.ZodOptional<z.ZodString>;
|
|
1825
1841
|
status: z.ZodEnum<{
|
|
1842
|
+
refused: "refused";
|
|
1826
1843
|
pending: "pending";
|
|
1827
1844
|
granted: "granted";
|
|
1828
|
-
refused: "refused";
|
|
1829
1845
|
revoked: "revoked";
|
|
1830
1846
|
expired: "expired";
|
|
1831
1847
|
}>;
|
|
@@ -2042,10 +2058,10 @@ declare const webhookEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
2042
2058
|
initiator_user_id: z.ZodOptional<z.ZodString>;
|
|
2043
2059
|
group_id: z.ZodOptional<z.ZodString>;
|
|
2044
2060
|
status: z.ZodEnum<{
|
|
2045
|
-
opening: "opening";
|
|
2046
2061
|
active: "active";
|
|
2047
|
-
closing: "closing";
|
|
2048
2062
|
closed: "closed";
|
|
2063
|
+
opening: "opening";
|
|
2064
|
+
closing: "closing";
|
|
2049
2065
|
errored: "errored";
|
|
2050
2066
|
}>;
|
|
2051
2067
|
session_mode: z.ZodEnum<{
|
|
@@ -2053,8 +2069,8 @@ declare const webhookEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
2053
2069
|
"non-interactive": "non-interactive";
|
|
2054
2070
|
}>;
|
|
2055
2071
|
recording_mode: z.ZodEnum<{
|
|
2056
|
-
recorded: "recorded";
|
|
2057
2072
|
private: "private";
|
|
2073
|
+
recorded: "recorded";
|
|
2058
2074
|
}>;
|
|
2059
2075
|
encryption_mode: z.ZodEnum<{
|
|
2060
2076
|
managed: "managed";
|
|
@@ -2073,9 +2089,9 @@ declare const webhookEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
2073
2089
|
command_meta: z.ZodOptional<z.ZodUnknown>;
|
|
2074
2090
|
context: z.ZodOptional<z.ZodObject<{
|
|
2075
2091
|
origin: z.ZodOptional<z.ZodEnum<{
|
|
2092
|
+
api: "api";
|
|
2076
2093
|
human: "human";
|
|
2077
2094
|
codex: "codex";
|
|
2078
|
-
api: "api";
|
|
2079
2095
|
automation: "automation";
|
|
2080
2096
|
ci: "ci";
|
|
2081
2097
|
"scheduled-job": "scheduled-job";
|
|
@@ -2084,8 +2100,8 @@ declare const webhookEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
2084
2100
|
purpose: z.ZodOptional<z.ZodString>;
|
|
2085
2101
|
initiator_kind: z.ZodOptional<z.ZodEnum<{
|
|
2086
2102
|
agent: "agent";
|
|
2087
|
-
user: "user";
|
|
2088
2103
|
app: "app";
|
|
2104
|
+
user: "user";
|
|
2089
2105
|
"service-account": "service-account";
|
|
2090
2106
|
}>>;
|
|
2091
2107
|
agent_name: z.ZodOptional<z.ZodString>;
|
|
@@ -2125,10 +2141,10 @@ declare const webhookEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
2125
2141
|
initiator_user_id: z.ZodOptional<z.ZodString>;
|
|
2126
2142
|
group_id: z.ZodOptional<z.ZodString>;
|
|
2127
2143
|
status: z.ZodEnum<{
|
|
2128
|
-
opening: "opening";
|
|
2129
2144
|
active: "active";
|
|
2130
|
-
closing: "closing";
|
|
2131
2145
|
closed: "closed";
|
|
2146
|
+
opening: "opening";
|
|
2147
|
+
closing: "closing";
|
|
2132
2148
|
errored: "errored";
|
|
2133
2149
|
}>;
|
|
2134
2150
|
session_mode: z.ZodEnum<{
|
|
@@ -2136,8 +2152,8 @@ declare const webhookEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
2136
2152
|
"non-interactive": "non-interactive";
|
|
2137
2153
|
}>;
|
|
2138
2154
|
recording_mode: z.ZodEnum<{
|
|
2139
|
-
recorded: "recorded";
|
|
2140
2155
|
private: "private";
|
|
2156
|
+
recorded: "recorded";
|
|
2141
2157
|
}>;
|
|
2142
2158
|
encryption_mode: z.ZodEnum<{
|
|
2143
2159
|
managed: "managed";
|
|
@@ -2156,9 +2172,9 @@ declare const webhookEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
2156
2172
|
command_meta: z.ZodOptional<z.ZodUnknown>;
|
|
2157
2173
|
context: z.ZodOptional<z.ZodObject<{
|
|
2158
2174
|
origin: z.ZodOptional<z.ZodEnum<{
|
|
2175
|
+
api: "api";
|
|
2159
2176
|
human: "human";
|
|
2160
2177
|
codex: "codex";
|
|
2161
|
-
api: "api";
|
|
2162
2178
|
automation: "automation";
|
|
2163
2179
|
ci: "ci";
|
|
2164
2180
|
"scheduled-job": "scheduled-job";
|
|
@@ -2167,8 +2183,8 @@ declare const webhookEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
2167
2183
|
purpose: z.ZodOptional<z.ZodString>;
|
|
2168
2184
|
initiator_kind: z.ZodOptional<z.ZodEnum<{
|
|
2169
2185
|
agent: "agent";
|
|
2170
|
-
user: "user";
|
|
2171
2186
|
app: "app";
|
|
2187
|
+
user: "user";
|
|
2172
2188
|
"service-account": "service-account";
|
|
2173
2189
|
}>>;
|
|
2174
2190
|
agent_name: z.ZodOptional<z.ZodString>;
|
|
@@ -2195,9 +2211,9 @@ declare const webhookEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
2195
2211
|
initiator_user_id: z.ZodOptional<z.ZodString>;
|
|
2196
2212
|
context: z.ZodOptional<z.ZodObject<{
|
|
2197
2213
|
origin: z.ZodOptional<z.ZodEnum<{
|
|
2214
|
+
api: "api";
|
|
2198
2215
|
human: "human";
|
|
2199
2216
|
codex: "codex";
|
|
2200
|
-
api: "api";
|
|
2201
2217
|
automation: "automation";
|
|
2202
2218
|
ci: "ci";
|
|
2203
2219
|
"scheduled-job": "scheduled-job";
|
|
@@ -2206,8 +2222,8 @@ declare const webhookEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
2206
2222
|
purpose: z.ZodOptional<z.ZodString>;
|
|
2207
2223
|
initiator_kind: z.ZodOptional<z.ZodEnum<{
|
|
2208
2224
|
agent: "agent";
|
|
2209
|
-
user: "user";
|
|
2210
2225
|
app: "app";
|
|
2226
|
+
user: "user";
|
|
2211
2227
|
"service-account": "service-account";
|
|
2212
2228
|
}>>;
|
|
2213
2229
|
agent_name: z.ZodOptional<z.ZodString>;
|
|
@@ -2238,10 +2254,10 @@ declare const webhookEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
2238
2254
|
initiator_user_id: z.ZodOptional<z.ZodString>;
|
|
2239
2255
|
group_id: z.ZodOptional<z.ZodString>;
|
|
2240
2256
|
status: z.ZodEnum<{
|
|
2241
|
-
opening: "opening";
|
|
2242
2257
|
active: "active";
|
|
2243
|
-
closing: "closing";
|
|
2244
2258
|
closed: "closed";
|
|
2259
|
+
opening: "opening";
|
|
2260
|
+
closing: "closing";
|
|
2245
2261
|
errored: "errored";
|
|
2246
2262
|
}>;
|
|
2247
2263
|
session_mode: z.ZodEnum<{
|
|
@@ -2249,8 +2265,8 @@ declare const webhookEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
2249
2265
|
"non-interactive": "non-interactive";
|
|
2250
2266
|
}>;
|
|
2251
2267
|
recording_mode: z.ZodEnum<{
|
|
2252
|
-
recorded: "recorded";
|
|
2253
2268
|
private: "private";
|
|
2269
|
+
recorded: "recorded";
|
|
2254
2270
|
}>;
|
|
2255
2271
|
encryption_mode: z.ZodEnum<{
|
|
2256
2272
|
managed: "managed";
|
|
@@ -2269,9 +2285,9 @@ declare const webhookEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
2269
2285
|
command_meta: z.ZodOptional<z.ZodUnknown>;
|
|
2270
2286
|
context: z.ZodOptional<z.ZodObject<{
|
|
2271
2287
|
origin: z.ZodOptional<z.ZodEnum<{
|
|
2288
|
+
api: "api";
|
|
2272
2289
|
human: "human";
|
|
2273
2290
|
codex: "codex";
|
|
2274
|
-
api: "api";
|
|
2275
2291
|
automation: "automation";
|
|
2276
2292
|
ci: "ci";
|
|
2277
2293
|
"scheduled-job": "scheduled-job";
|
|
@@ -2280,8 +2296,8 @@ declare const webhookEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
2280
2296
|
purpose: z.ZodOptional<z.ZodString>;
|
|
2281
2297
|
initiator_kind: z.ZodOptional<z.ZodEnum<{
|
|
2282
2298
|
agent: "agent";
|
|
2283
|
-
user: "user";
|
|
2284
2299
|
app: "app";
|
|
2300
|
+
user: "user";
|
|
2285
2301
|
"service-account": "service-account";
|
|
2286
2302
|
}>>;
|
|
2287
2303
|
agent_name: z.ZodOptional<z.ZodString>;
|
|
@@ -2405,9 +2421,9 @@ declare const webhookEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
2405
2421
|
approver_participant_id: z.ZodOptional<z.ZodString>;
|
|
2406
2422
|
approver_user_id: z.ZodOptional<z.ZodString>;
|
|
2407
2423
|
status: z.ZodEnum<{
|
|
2424
|
+
refused: "refused";
|
|
2408
2425
|
pending: "pending";
|
|
2409
2426
|
granted: "granted";
|
|
2410
|
-
refused: "refused";
|
|
2411
2427
|
revoked: "revoked";
|
|
2412
2428
|
expired: "expired";
|
|
2413
2429
|
}>;
|
|
@@ -2434,9 +2450,9 @@ declare const webhookEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
2434
2450
|
approver_participant_id: z.ZodOptional<z.ZodString>;
|
|
2435
2451
|
approver_user_id: z.ZodOptional<z.ZodString>;
|
|
2436
2452
|
status: z.ZodEnum<{
|
|
2453
|
+
refused: "refused";
|
|
2437
2454
|
pending: "pending";
|
|
2438
2455
|
granted: "granted";
|
|
2439
|
-
refused: "refused";
|
|
2440
2456
|
revoked: "revoked";
|
|
2441
2457
|
expired: "expired";
|
|
2442
2458
|
}>;
|
|
@@ -2463,9 +2479,9 @@ declare const webhookEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
2463
2479
|
approver_participant_id: z.ZodOptional<z.ZodString>;
|
|
2464
2480
|
approver_user_id: z.ZodOptional<z.ZodString>;
|
|
2465
2481
|
status: z.ZodEnum<{
|
|
2482
|
+
refused: "refused";
|
|
2466
2483
|
pending: "pending";
|
|
2467
2484
|
granted: "granted";
|
|
2468
|
-
refused: "refused";
|
|
2469
2485
|
revoked: "revoked";
|
|
2470
2486
|
expired: "expired";
|
|
2471
2487
|
}>;
|
|
@@ -2492,9 +2508,9 @@ declare const webhookEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
2492
2508
|
approver_participant_id: z.ZodOptional<z.ZodString>;
|
|
2493
2509
|
approver_user_id: z.ZodOptional<z.ZodString>;
|
|
2494
2510
|
status: z.ZodEnum<{
|
|
2511
|
+
refused: "refused";
|
|
2495
2512
|
pending: "pending";
|
|
2496
2513
|
granted: "granted";
|
|
2497
|
-
refused: "refused";
|
|
2498
2514
|
revoked: "revoked";
|
|
2499
2515
|
expired: "expired";
|
|
2500
2516
|
}>;
|
|
@@ -2547,12 +2563,12 @@ declare const projectLogEventsSchema: z.ZodObject<{
|
|
|
2547
2563
|
internal: "internal";
|
|
2548
2564
|
}>;
|
|
2549
2565
|
transport: z.ZodOptional<z.ZodEnum<{
|
|
2550
|
-
http: "http";
|
|
2551
|
-
rstream: "rstream";
|
|
2552
2566
|
tls: "tls";
|
|
2553
2567
|
tcp: "tcp";
|
|
2554
2568
|
dtls: "dtls";
|
|
2555
2569
|
quic: "quic";
|
|
2570
|
+
http: "http";
|
|
2571
|
+
rstream: "rstream";
|
|
2556
2572
|
}>>;
|
|
2557
2573
|
}, z.core.$strip>>;
|
|
2558
2574
|
http: z.ZodOptional<z.ZodObject<{
|
|
@@ -2589,9 +2605,9 @@ declare const projectLogEventsSchema: z.ZodObject<{
|
|
|
2589
2605
|
}, z.core.$strip>, z.ZodObject<{
|
|
2590
2606
|
kind: z.ZodLiteral<"token">;
|
|
2591
2607
|
source: z.ZodOptional<z.ZodEnum<{
|
|
2592
|
-
query: "query";
|
|
2593
2608
|
unknown: "unknown";
|
|
2594
2609
|
authorization: "authorization";
|
|
2610
|
+
query: "query";
|
|
2595
2611
|
client: "client";
|
|
2596
2612
|
}>>;
|
|
2597
2613
|
tokenType: z.ZodOptional<z.ZodEnum<{
|
|
@@ -2616,9 +2632,9 @@ declare const projectLogEventsSchema: z.ZodObject<{
|
|
|
2616
2632
|
}, z.core.$strip>, z.ZodObject<{
|
|
2617
2633
|
kind: z.ZodLiteral<"token">;
|
|
2618
2634
|
source: z.ZodOptional<z.ZodEnum<{
|
|
2619
|
-
query: "query";
|
|
2620
2635
|
unknown: "unknown";
|
|
2621
2636
|
authorization: "authorization";
|
|
2637
|
+
query: "query";
|
|
2622
2638
|
client: "client";
|
|
2623
2639
|
}>>;
|
|
2624
2640
|
tokenType: z.ZodOptional<z.ZodEnum<{
|
|
@@ -2637,49 +2653,49 @@ declare const projectLogEventsSchema: z.ZodObject<{
|
|
|
2637
2653
|
why: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2638
2654
|
reason: z.ZodLiteral<"missing_token">;
|
|
2639
2655
|
source: z.ZodEnum<{
|
|
2640
|
-
query: "query";
|
|
2641
2656
|
unknown: "unknown";
|
|
2642
2657
|
authorization: "authorization";
|
|
2658
|
+
query: "query";
|
|
2643
2659
|
client: "client";
|
|
2644
2660
|
}>;
|
|
2645
2661
|
}, z.core.$strip>, z.ZodObject<{
|
|
2646
2662
|
reason: z.ZodLiteral<"invalid_token">;
|
|
2647
2663
|
source: z.ZodEnum<{
|
|
2648
|
-
query: "query";
|
|
2649
2664
|
unknown: "unknown";
|
|
2650
2665
|
authorization: "authorization";
|
|
2666
|
+
query: "query";
|
|
2651
2667
|
client: "client";
|
|
2652
2668
|
}>;
|
|
2653
2669
|
}, z.core.$strip>, z.ZodObject<{
|
|
2654
2670
|
reason: z.ZodLiteral<"expired_token">;
|
|
2655
2671
|
source: z.ZodEnum<{
|
|
2656
|
-
query: "query";
|
|
2657
2672
|
unknown: "unknown";
|
|
2658
2673
|
authorization: "authorization";
|
|
2674
|
+
query: "query";
|
|
2659
2675
|
client: "client";
|
|
2660
2676
|
}>;
|
|
2661
2677
|
}, z.core.$strip>, z.ZodObject<{
|
|
2662
2678
|
reason: z.ZodLiteral<"invalid_secret">;
|
|
2663
2679
|
source: z.ZodEnum<{
|
|
2664
|
-
query: "query";
|
|
2665
2680
|
unknown: "unknown";
|
|
2666
2681
|
authorization: "authorization";
|
|
2682
|
+
query: "query";
|
|
2667
2683
|
client: "client";
|
|
2668
2684
|
}>;
|
|
2669
2685
|
}, z.core.$strip>, z.ZodObject<{
|
|
2670
2686
|
reason: z.ZodLiteral<"user_mismatch">;
|
|
2671
2687
|
source: z.ZodEnum<{
|
|
2672
|
-
query: "query";
|
|
2673
2688
|
unknown: "unknown";
|
|
2674
2689
|
authorization: "authorization";
|
|
2690
|
+
query: "query";
|
|
2675
2691
|
client: "client";
|
|
2676
2692
|
}>;
|
|
2677
2693
|
}, z.core.$strip>, z.ZodObject<{
|
|
2678
2694
|
reason: z.ZodLiteral<"insufficient_scope">;
|
|
2679
2695
|
source: z.ZodEnum<{
|
|
2680
|
-
query: "query";
|
|
2681
2696
|
unknown: "unknown";
|
|
2682
2697
|
authorization: "authorization";
|
|
2698
|
+
query: "query";
|
|
2683
2699
|
client: "client";
|
|
2684
2700
|
}>;
|
|
2685
2701
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -2693,9 +2709,9 @@ declare const projectLogEventsSchema: z.ZodObject<{
|
|
|
2693
2709
|
}>;
|
|
2694
2710
|
value: z.ZodOptional<z.ZodString>;
|
|
2695
2711
|
source: z.ZodEnum<{
|
|
2696
|
-
query: "query";
|
|
2697
2712
|
unknown: "unknown";
|
|
2698
2713
|
authorization: "authorization";
|
|
2714
|
+
query: "query";
|
|
2699
2715
|
client: "client";
|
|
2700
2716
|
}>;
|
|
2701
2717
|
}, z.core.$strip>], "reason">;
|
|
@@ -2774,49 +2790,49 @@ declare const projectLogEventsSchema: z.ZodObject<{
|
|
|
2774
2790
|
why: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2775
2791
|
reason: z.ZodLiteral<"missing_token">;
|
|
2776
2792
|
source: z.ZodEnum<{
|
|
2777
|
-
query: "query";
|
|
2778
2793
|
unknown: "unknown";
|
|
2779
2794
|
authorization: "authorization";
|
|
2795
|
+
query: "query";
|
|
2780
2796
|
client: "client";
|
|
2781
2797
|
}>;
|
|
2782
2798
|
}, z.core.$strip>, z.ZodObject<{
|
|
2783
2799
|
reason: z.ZodLiteral<"invalid_token">;
|
|
2784
2800
|
source: z.ZodEnum<{
|
|
2785
|
-
query: "query";
|
|
2786
2801
|
unknown: "unknown";
|
|
2787
2802
|
authorization: "authorization";
|
|
2803
|
+
query: "query";
|
|
2788
2804
|
client: "client";
|
|
2789
2805
|
}>;
|
|
2790
2806
|
}, z.core.$strip>, z.ZodObject<{
|
|
2791
2807
|
reason: z.ZodLiteral<"expired_token">;
|
|
2792
2808
|
source: z.ZodEnum<{
|
|
2793
|
-
query: "query";
|
|
2794
2809
|
unknown: "unknown";
|
|
2795
2810
|
authorization: "authorization";
|
|
2811
|
+
query: "query";
|
|
2796
2812
|
client: "client";
|
|
2797
2813
|
}>;
|
|
2798
2814
|
}, z.core.$strip>, z.ZodObject<{
|
|
2799
2815
|
reason: z.ZodLiteral<"invalid_secret">;
|
|
2800
2816
|
source: z.ZodEnum<{
|
|
2801
|
-
query: "query";
|
|
2802
2817
|
unknown: "unknown";
|
|
2803
2818
|
authorization: "authorization";
|
|
2819
|
+
query: "query";
|
|
2804
2820
|
client: "client";
|
|
2805
2821
|
}>;
|
|
2806
2822
|
}, z.core.$strip>, z.ZodObject<{
|
|
2807
2823
|
reason: z.ZodLiteral<"user_mismatch">;
|
|
2808
2824
|
source: z.ZodEnum<{
|
|
2809
|
-
query: "query";
|
|
2810
2825
|
unknown: "unknown";
|
|
2811
2826
|
authorization: "authorization";
|
|
2827
|
+
query: "query";
|
|
2812
2828
|
client: "client";
|
|
2813
2829
|
}>;
|
|
2814
2830
|
}, z.core.$strip>, z.ZodObject<{
|
|
2815
2831
|
reason: z.ZodLiteral<"insufficient_scope">;
|
|
2816
2832
|
source: z.ZodEnum<{
|
|
2817
|
-
query: "query";
|
|
2818
2833
|
unknown: "unknown";
|
|
2819
2834
|
authorization: "authorization";
|
|
2835
|
+
query: "query";
|
|
2820
2836
|
client: "client";
|
|
2821
2837
|
}>;
|
|
2822
2838
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -2830,9 +2846,9 @@ declare const projectLogEventsSchema: z.ZodObject<{
|
|
|
2830
2846
|
}>;
|
|
2831
2847
|
value: z.ZodOptional<z.ZodString>;
|
|
2832
2848
|
source: z.ZodEnum<{
|
|
2833
|
-
query: "query";
|
|
2834
2849
|
unknown: "unknown";
|
|
2835
2850
|
authorization: "authorization";
|
|
2851
|
+
query: "query";
|
|
2836
2852
|
client: "client";
|
|
2837
2853
|
}>;
|
|
2838
2854
|
}, z.core.$strip>], "reason">;
|
|
@@ -2873,8 +2889,8 @@ declare const projectLogEventsSchema: z.ZodObject<{
|
|
|
2873
2889
|
}>>;
|
|
2874
2890
|
controller: z.ZodOptional<z.ZodBoolean>;
|
|
2875
2891
|
recording_mode: z.ZodOptional<z.ZodEnum<{
|
|
2876
|
-
recorded: "recorded";
|
|
2877
2892
|
private: "private";
|
|
2893
|
+
recorded: "recorded";
|
|
2878
2894
|
}>>;
|
|
2879
2895
|
encryption_mode: z.ZodOptional<z.ZodEnum<{
|
|
2880
2896
|
managed: "managed";
|
|
@@ -2905,9 +2921,9 @@ declare const projectLogEventsSchema: z.ZodObject<{
|
|
|
2905
2921
|
webtransport: "webtransport";
|
|
2906
2922
|
}>>;
|
|
2907
2923
|
origin: z.ZodOptional<z.ZodEnum<{
|
|
2924
|
+
api: "api";
|
|
2908
2925
|
human: "human";
|
|
2909
2926
|
codex: "codex";
|
|
2910
|
-
api: "api";
|
|
2911
2927
|
automation: "automation";
|
|
2912
2928
|
ci: "ci";
|
|
2913
2929
|
"scheduled-job": "scheduled-job";
|
|
@@ -2915,8 +2931,8 @@ declare const projectLogEventsSchema: z.ZodObject<{
|
|
|
2915
2931
|
origin_id: z.ZodOptional<z.ZodString>;
|
|
2916
2932
|
initiator_kind: z.ZodOptional<z.ZodEnum<{
|
|
2917
2933
|
agent: "agent";
|
|
2918
|
-
user: "user";
|
|
2919
2934
|
app: "app";
|
|
2935
|
+
user: "user";
|
|
2920
2936
|
"service-account": "service-account";
|
|
2921
2937
|
}>>;
|
|
2922
2938
|
device_id: z.ZodOptional<z.ZodString>;
|
|
@@ -2953,10 +2969,10 @@ declare const projectLogEventsSchema: z.ZodObject<{
|
|
|
2953
2969
|
server: "server";
|
|
2954
2970
|
}>;
|
|
2955
2971
|
reason: z.ZodEnum<{
|
|
2956
|
-
unknown: "unknown";
|
|
2957
2972
|
error: "error";
|
|
2958
|
-
closed: "closed";
|
|
2959
2973
|
timeout: "timeout";
|
|
2974
|
+
unknown: "unknown";
|
|
2975
|
+
closed: "closed";
|
|
2960
2976
|
reset: "reset";
|
|
2961
2977
|
}>;
|
|
2962
2978
|
message: z.ZodOptional<z.ZodString>;
|
|
@@ -2984,49 +3000,49 @@ declare const projectLogEventsSchema: z.ZodObject<{
|
|
|
2984
3000
|
why: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2985
3001
|
reason: z.ZodLiteral<"missing_token">;
|
|
2986
3002
|
source: z.ZodEnum<{
|
|
2987
|
-
query: "query";
|
|
2988
3003
|
unknown: "unknown";
|
|
2989
3004
|
authorization: "authorization";
|
|
3005
|
+
query: "query";
|
|
2990
3006
|
client: "client";
|
|
2991
3007
|
}>;
|
|
2992
3008
|
}, z.core.$strip>, z.ZodObject<{
|
|
2993
3009
|
reason: z.ZodLiteral<"invalid_token">;
|
|
2994
3010
|
source: z.ZodEnum<{
|
|
2995
|
-
query: "query";
|
|
2996
3011
|
unknown: "unknown";
|
|
2997
3012
|
authorization: "authorization";
|
|
3013
|
+
query: "query";
|
|
2998
3014
|
client: "client";
|
|
2999
3015
|
}>;
|
|
3000
3016
|
}, z.core.$strip>, z.ZodObject<{
|
|
3001
3017
|
reason: z.ZodLiteral<"expired_token">;
|
|
3002
3018
|
source: z.ZodEnum<{
|
|
3003
|
-
query: "query";
|
|
3004
3019
|
unknown: "unknown";
|
|
3005
3020
|
authorization: "authorization";
|
|
3021
|
+
query: "query";
|
|
3006
3022
|
client: "client";
|
|
3007
3023
|
}>;
|
|
3008
3024
|
}, z.core.$strip>, z.ZodObject<{
|
|
3009
3025
|
reason: z.ZodLiteral<"invalid_secret">;
|
|
3010
3026
|
source: z.ZodEnum<{
|
|
3011
|
-
query: "query";
|
|
3012
3027
|
unknown: "unknown";
|
|
3013
3028
|
authorization: "authorization";
|
|
3029
|
+
query: "query";
|
|
3014
3030
|
client: "client";
|
|
3015
3031
|
}>;
|
|
3016
3032
|
}, z.core.$strip>, z.ZodObject<{
|
|
3017
3033
|
reason: z.ZodLiteral<"user_mismatch">;
|
|
3018
3034
|
source: z.ZodEnum<{
|
|
3019
|
-
query: "query";
|
|
3020
3035
|
unknown: "unknown";
|
|
3021
3036
|
authorization: "authorization";
|
|
3037
|
+
query: "query";
|
|
3022
3038
|
client: "client";
|
|
3023
3039
|
}>;
|
|
3024
3040
|
}, z.core.$strip>, z.ZodObject<{
|
|
3025
3041
|
reason: z.ZodLiteral<"insufficient_scope">;
|
|
3026
3042
|
source: z.ZodEnum<{
|
|
3027
|
-
query: "query";
|
|
3028
3043
|
unknown: "unknown";
|
|
3029
3044
|
authorization: "authorization";
|
|
3045
|
+
query: "query";
|
|
3030
3046
|
client: "client";
|
|
3031
3047
|
}>;
|
|
3032
3048
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -3040,9 +3056,9 @@ declare const projectLogEventsSchema: z.ZodObject<{
|
|
|
3040
3056
|
}>;
|
|
3041
3057
|
value: z.ZodOptional<z.ZodString>;
|
|
3042
3058
|
source: z.ZodEnum<{
|
|
3043
|
-
query: "query";
|
|
3044
3059
|
unknown: "unknown";
|
|
3045
3060
|
authorization: "authorization";
|
|
3061
|
+
query: "query";
|
|
3046
3062
|
client: "client";
|
|
3047
3063
|
}>;
|
|
3048
3064
|
}, z.core.$strip>], "reason">;
|
|
@@ -3097,10 +3113,10 @@ declare const projectLogEventsSchema: z.ZodObject<{
|
|
|
3097
3113
|
server: "server";
|
|
3098
3114
|
}>;
|
|
3099
3115
|
reason: z.ZodEnum<{
|
|
3100
|
-
unknown: "unknown";
|
|
3101
3116
|
error: "error";
|
|
3102
|
-
closed: "closed";
|
|
3103
3117
|
timeout: "timeout";
|
|
3118
|
+
unknown: "unknown";
|
|
3119
|
+
closed: "closed";
|
|
3104
3120
|
reset: "reset";
|
|
3105
3121
|
}>;
|
|
3106
3122
|
message: z.ZodOptional<z.ZodString>;
|
|
@@ -3506,10 +3522,10 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
|
|
|
3506
3522
|
initiator_user_id: z.ZodOptional<z.ZodString>;
|
|
3507
3523
|
group_id: z.ZodOptional<z.ZodString>;
|
|
3508
3524
|
status: z.ZodEnum<{
|
|
3509
|
-
opening: "opening";
|
|
3510
3525
|
active: "active";
|
|
3511
|
-
closing: "closing";
|
|
3512
3526
|
closed: "closed";
|
|
3527
|
+
opening: "opening";
|
|
3528
|
+
closing: "closing";
|
|
3513
3529
|
errored: "errored";
|
|
3514
3530
|
}>;
|
|
3515
3531
|
session_mode: z.ZodEnum<{
|
|
@@ -3517,8 +3533,8 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
|
|
|
3517
3533
|
"non-interactive": "non-interactive";
|
|
3518
3534
|
}>;
|
|
3519
3535
|
recording_mode: z.ZodEnum<{
|
|
3520
|
-
recorded: "recorded";
|
|
3521
3536
|
private: "private";
|
|
3537
|
+
recorded: "recorded";
|
|
3522
3538
|
}>;
|
|
3523
3539
|
encryption_mode: z.ZodEnum<{
|
|
3524
3540
|
managed: "managed";
|
|
@@ -3537,9 +3553,9 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
|
|
|
3537
3553
|
command_meta: z.ZodOptional<z.ZodUnknown>;
|
|
3538
3554
|
context: z.ZodOptional<z.ZodObject<{
|
|
3539
3555
|
origin: z.ZodOptional<z.ZodEnum<{
|
|
3556
|
+
api: "api";
|
|
3540
3557
|
human: "human";
|
|
3541
3558
|
codex: "codex";
|
|
3542
|
-
api: "api";
|
|
3543
3559
|
automation: "automation";
|
|
3544
3560
|
ci: "ci";
|
|
3545
3561
|
"scheduled-job": "scheduled-job";
|
|
@@ -3548,8 +3564,8 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
|
|
|
3548
3564
|
purpose: z.ZodOptional<z.ZodString>;
|
|
3549
3565
|
initiator_kind: z.ZodOptional<z.ZodEnum<{
|
|
3550
3566
|
agent: "agent";
|
|
3551
|
-
user: "user";
|
|
3552
3567
|
app: "app";
|
|
3568
|
+
user: "user";
|
|
3553
3569
|
"service-account": "service-account";
|
|
3554
3570
|
}>>;
|
|
3555
3571
|
agent_name: z.ZodOptional<z.ZodString>;
|
|
@@ -3589,10 +3605,10 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
|
|
|
3589
3605
|
initiator_user_id: z.ZodOptional<z.ZodString>;
|
|
3590
3606
|
group_id: z.ZodOptional<z.ZodString>;
|
|
3591
3607
|
status: z.ZodEnum<{
|
|
3592
|
-
opening: "opening";
|
|
3593
3608
|
active: "active";
|
|
3594
|
-
closing: "closing";
|
|
3595
3609
|
closed: "closed";
|
|
3610
|
+
opening: "opening";
|
|
3611
|
+
closing: "closing";
|
|
3596
3612
|
errored: "errored";
|
|
3597
3613
|
}>;
|
|
3598
3614
|
session_mode: z.ZodEnum<{
|
|
@@ -3600,8 +3616,8 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
|
|
|
3600
3616
|
"non-interactive": "non-interactive";
|
|
3601
3617
|
}>;
|
|
3602
3618
|
recording_mode: z.ZodEnum<{
|
|
3603
|
-
recorded: "recorded";
|
|
3604
3619
|
private: "private";
|
|
3620
|
+
recorded: "recorded";
|
|
3605
3621
|
}>;
|
|
3606
3622
|
encryption_mode: z.ZodEnum<{
|
|
3607
3623
|
managed: "managed";
|
|
@@ -3620,9 +3636,9 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
|
|
|
3620
3636
|
command_meta: z.ZodOptional<z.ZodUnknown>;
|
|
3621
3637
|
context: z.ZodOptional<z.ZodObject<{
|
|
3622
3638
|
origin: z.ZodOptional<z.ZodEnum<{
|
|
3639
|
+
api: "api";
|
|
3623
3640
|
human: "human";
|
|
3624
3641
|
codex: "codex";
|
|
3625
|
-
api: "api";
|
|
3626
3642
|
automation: "automation";
|
|
3627
3643
|
ci: "ci";
|
|
3628
3644
|
"scheduled-job": "scheduled-job";
|
|
@@ -3631,8 +3647,8 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
|
|
|
3631
3647
|
purpose: z.ZodOptional<z.ZodString>;
|
|
3632
3648
|
initiator_kind: z.ZodOptional<z.ZodEnum<{
|
|
3633
3649
|
agent: "agent";
|
|
3634
|
-
user: "user";
|
|
3635
3650
|
app: "app";
|
|
3651
|
+
user: "user";
|
|
3636
3652
|
"service-account": "service-account";
|
|
3637
3653
|
}>>;
|
|
3638
3654
|
agent_name: z.ZodOptional<z.ZodString>;
|
|
@@ -3659,9 +3675,9 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
|
|
|
3659
3675
|
initiator_user_id: z.ZodOptional<z.ZodString>;
|
|
3660
3676
|
context: z.ZodOptional<z.ZodObject<{
|
|
3661
3677
|
origin: z.ZodOptional<z.ZodEnum<{
|
|
3678
|
+
api: "api";
|
|
3662
3679
|
human: "human";
|
|
3663
3680
|
codex: "codex";
|
|
3664
|
-
api: "api";
|
|
3665
3681
|
automation: "automation";
|
|
3666
3682
|
ci: "ci";
|
|
3667
3683
|
"scheduled-job": "scheduled-job";
|
|
@@ -3670,8 +3686,8 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
|
|
|
3670
3686
|
purpose: z.ZodOptional<z.ZodString>;
|
|
3671
3687
|
initiator_kind: z.ZodOptional<z.ZodEnum<{
|
|
3672
3688
|
agent: "agent";
|
|
3673
|
-
user: "user";
|
|
3674
3689
|
app: "app";
|
|
3690
|
+
user: "user";
|
|
3675
3691
|
"service-account": "service-account";
|
|
3676
3692
|
}>>;
|
|
3677
3693
|
agent_name: z.ZodOptional<z.ZodString>;
|
|
@@ -3702,10 +3718,10 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
|
|
|
3702
3718
|
initiator_user_id: z.ZodOptional<z.ZodString>;
|
|
3703
3719
|
group_id: z.ZodOptional<z.ZodString>;
|
|
3704
3720
|
status: z.ZodEnum<{
|
|
3705
|
-
opening: "opening";
|
|
3706
3721
|
active: "active";
|
|
3707
|
-
closing: "closing";
|
|
3708
3722
|
closed: "closed";
|
|
3723
|
+
opening: "opening";
|
|
3724
|
+
closing: "closing";
|
|
3709
3725
|
errored: "errored";
|
|
3710
3726
|
}>;
|
|
3711
3727
|
session_mode: z.ZodEnum<{
|
|
@@ -3713,8 +3729,8 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
|
|
|
3713
3729
|
"non-interactive": "non-interactive";
|
|
3714
3730
|
}>;
|
|
3715
3731
|
recording_mode: z.ZodEnum<{
|
|
3716
|
-
recorded: "recorded";
|
|
3717
3732
|
private: "private";
|
|
3733
|
+
recorded: "recorded";
|
|
3718
3734
|
}>;
|
|
3719
3735
|
encryption_mode: z.ZodEnum<{
|
|
3720
3736
|
managed: "managed";
|
|
@@ -3733,9 +3749,9 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
|
|
|
3733
3749
|
command_meta: z.ZodOptional<z.ZodUnknown>;
|
|
3734
3750
|
context: z.ZodOptional<z.ZodObject<{
|
|
3735
3751
|
origin: z.ZodOptional<z.ZodEnum<{
|
|
3752
|
+
api: "api";
|
|
3736
3753
|
human: "human";
|
|
3737
3754
|
codex: "codex";
|
|
3738
|
-
api: "api";
|
|
3739
3755
|
automation: "automation";
|
|
3740
3756
|
ci: "ci";
|
|
3741
3757
|
"scheduled-job": "scheduled-job";
|
|
@@ -3744,8 +3760,8 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
|
|
|
3744
3760
|
purpose: z.ZodOptional<z.ZodString>;
|
|
3745
3761
|
initiator_kind: z.ZodOptional<z.ZodEnum<{
|
|
3746
3762
|
agent: "agent";
|
|
3747
|
-
user: "user";
|
|
3748
3763
|
app: "app";
|
|
3764
|
+
user: "user";
|
|
3749
3765
|
"service-account": "service-account";
|
|
3750
3766
|
}>>;
|
|
3751
3767
|
agent_name: z.ZodOptional<z.ZodString>;
|
|
@@ -3869,9 +3885,9 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
|
|
|
3869
3885
|
approver_participant_id: z.ZodOptional<z.ZodString>;
|
|
3870
3886
|
approver_user_id: z.ZodOptional<z.ZodString>;
|
|
3871
3887
|
status: z.ZodEnum<{
|
|
3888
|
+
refused: "refused";
|
|
3872
3889
|
pending: "pending";
|
|
3873
3890
|
granted: "granted";
|
|
3874
|
-
refused: "refused";
|
|
3875
3891
|
revoked: "revoked";
|
|
3876
3892
|
expired: "expired";
|
|
3877
3893
|
}>;
|
|
@@ -3898,9 +3914,9 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
|
|
|
3898
3914
|
approver_participant_id: z.ZodOptional<z.ZodString>;
|
|
3899
3915
|
approver_user_id: z.ZodOptional<z.ZodString>;
|
|
3900
3916
|
status: z.ZodEnum<{
|
|
3917
|
+
refused: "refused";
|
|
3901
3918
|
pending: "pending";
|
|
3902
3919
|
granted: "granted";
|
|
3903
|
-
refused: "refused";
|
|
3904
3920
|
revoked: "revoked";
|
|
3905
3921
|
expired: "expired";
|
|
3906
3922
|
}>;
|
|
@@ -3927,9 +3943,9 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
|
|
|
3927
3943
|
approver_participant_id: z.ZodOptional<z.ZodString>;
|
|
3928
3944
|
approver_user_id: z.ZodOptional<z.ZodString>;
|
|
3929
3945
|
status: z.ZodEnum<{
|
|
3946
|
+
refused: "refused";
|
|
3930
3947
|
pending: "pending";
|
|
3931
3948
|
granted: "granted";
|
|
3932
|
-
refused: "refused";
|
|
3933
3949
|
revoked: "revoked";
|
|
3934
3950
|
expired: "expired";
|
|
3935
3951
|
}>;
|
|
@@ -3956,9 +3972,9 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
|
|
|
3956
3972
|
approver_participant_id: z.ZodOptional<z.ZodString>;
|
|
3957
3973
|
approver_user_id: z.ZodOptional<z.ZodString>;
|
|
3958
3974
|
status: z.ZodEnum<{
|
|
3975
|
+
refused: "refused";
|
|
3959
3976
|
pending: "pending";
|
|
3960
3977
|
granted: "granted";
|
|
3961
|
-
refused: "refused";
|
|
3962
3978
|
revoked: "revoked";
|
|
3963
3979
|
expired: "expired";
|
|
3964
3980
|
}>;
|
|
@@ -4174,10 +4190,10 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
|
|
|
4174
4190
|
initiator_user_id: z.ZodOptional<z.ZodString>;
|
|
4175
4191
|
group_id: z.ZodOptional<z.ZodString>;
|
|
4176
4192
|
status: z.ZodEnum<{
|
|
4177
|
-
opening: "opening";
|
|
4178
4193
|
active: "active";
|
|
4179
|
-
closing: "closing";
|
|
4180
4194
|
closed: "closed";
|
|
4195
|
+
opening: "opening";
|
|
4196
|
+
closing: "closing";
|
|
4181
4197
|
errored: "errored";
|
|
4182
4198
|
}>;
|
|
4183
4199
|
session_mode: z.ZodEnum<{
|
|
@@ -4185,8 +4201,8 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
|
|
|
4185
4201
|
"non-interactive": "non-interactive";
|
|
4186
4202
|
}>;
|
|
4187
4203
|
recording_mode: z.ZodEnum<{
|
|
4188
|
-
recorded: "recorded";
|
|
4189
4204
|
private: "private";
|
|
4205
|
+
recorded: "recorded";
|
|
4190
4206
|
}>;
|
|
4191
4207
|
encryption_mode: z.ZodEnum<{
|
|
4192
4208
|
managed: "managed";
|
|
@@ -4205,9 +4221,9 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
|
|
|
4205
4221
|
command_meta: z.ZodOptional<z.ZodUnknown>;
|
|
4206
4222
|
context: z.ZodOptional<z.ZodObject<{
|
|
4207
4223
|
origin: z.ZodOptional<z.ZodEnum<{
|
|
4224
|
+
api: "api";
|
|
4208
4225
|
human: "human";
|
|
4209
4226
|
codex: "codex";
|
|
4210
|
-
api: "api";
|
|
4211
4227
|
automation: "automation";
|
|
4212
4228
|
ci: "ci";
|
|
4213
4229
|
"scheduled-job": "scheduled-job";
|
|
@@ -4216,8 +4232,8 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
|
|
|
4216
4232
|
purpose: z.ZodOptional<z.ZodString>;
|
|
4217
4233
|
initiator_kind: z.ZodOptional<z.ZodEnum<{
|
|
4218
4234
|
agent: "agent";
|
|
4219
|
-
user: "user";
|
|
4220
4235
|
app: "app";
|
|
4236
|
+
user: "user";
|
|
4221
4237
|
"service-account": "service-account";
|
|
4222
4238
|
}>>;
|
|
4223
4239
|
agent_name: z.ZodOptional<z.ZodString>;
|
|
@@ -4257,10 +4273,10 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
|
|
|
4257
4273
|
initiator_user_id: z.ZodOptional<z.ZodString>;
|
|
4258
4274
|
group_id: z.ZodOptional<z.ZodString>;
|
|
4259
4275
|
status: z.ZodEnum<{
|
|
4260
|
-
opening: "opening";
|
|
4261
4276
|
active: "active";
|
|
4262
|
-
closing: "closing";
|
|
4263
4277
|
closed: "closed";
|
|
4278
|
+
opening: "opening";
|
|
4279
|
+
closing: "closing";
|
|
4264
4280
|
errored: "errored";
|
|
4265
4281
|
}>;
|
|
4266
4282
|
session_mode: z.ZodEnum<{
|
|
@@ -4268,8 +4284,8 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
|
|
|
4268
4284
|
"non-interactive": "non-interactive";
|
|
4269
4285
|
}>;
|
|
4270
4286
|
recording_mode: z.ZodEnum<{
|
|
4271
|
-
recorded: "recorded";
|
|
4272
4287
|
private: "private";
|
|
4288
|
+
recorded: "recorded";
|
|
4273
4289
|
}>;
|
|
4274
4290
|
encryption_mode: z.ZodEnum<{
|
|
4275
4291
|
managed: "managed";
|
|
@@ -4288,9 +4304,9 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
|
|
|
4288
4304
|
command_meta: z.ZodOptional<z.ZodUnknown>;
|
|
4289
4305
|
context: z.ZodOptional<z.ZodObject<{
|
|
4290
4306
|
origin: z.ZodOptional<z.ZodEnum<{
|
|
4307
|
+
api: "api";
|
|
4291
4308
|
human: "human";
|
|
4292
4309
|
codex: "codex";
|
|
4293
|
-
api: "api";
|
|
4294
4310
|
automation: "automation";
|
|
4295
4311
|
ci: "ci";
|
|
4296
4312
|
"scheduled-job": "scheduled-job";
|
|
@@ -4299,8 +4315,8 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
|
|
|
4299
4315
|
purpose: z.ZodOptional<z.ZodString>;
|
|
4300
4316
|
initiator_kind: z.ZodOptional<z.ZodEnum<{
|
|
4301
4317
|
agent: "agent";
|
|
4302
|
-
user: "user";
|
|
4303
4318
|
app: "app";
|
|
4319
|
+
user: "user";
|
|
4304
4320
|
"service-account": "service-account";
|
|
4305
4321
|
}>>;
|
|
4306
4322
|
agent_name: z.ZodOptional<z.ZodString>;
|
|
@@ -4327,9 +4343,9 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
|
|
|
4327
4343
|
initiator_user_id: z.ZodOptional<z.ZodString>;
|
|
4328
4344
|
context: z.ZodOptional<z.ZodObject<{
|
|
4329
4345
|
origin: z.ZodOptional<z.ZodEnum<{
|
|
4346
|
+
api: "api";
|
|
4330
4347
|
human: "human";
|
|
4331
4348
|
codex: "codex";
|
|
4332
|
-
api: "api";
|
|
4333
4349
|
automation: "automation";
|
|
4334
4350
|
ci: "ci";
|
|
4335
4351
|
"scheduled-job": "scheduled-job";
|
|
@@ -4338,8 +4354,8 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
|
|
|
4338
4354
|
purpose: z.ZodOptional<z.ZodString>;
|
|
4339
4355
|
initiator_kind: z.ZodOptional<z.ZodEnum<{
|
|
4340
4356
|
agent: "agent";
|
|
4341
|
-
user: "user";
|
|
4342
4357
|
app: "app";
|
|
4358
|
+
user: "user";
|
|
4343
4359
|
"service-account": "service-account";
|
|
4344
4360
|
}>>;
|
|
4345
4361
|
agent_name: z.ZodOptional<z.ZodString>;
|
|
@@ -4370,10 +4386,10 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
|
|
|
4370
4386
|
initiator_user_id: z.ZodOptional<z.ZodString>;
|
|
4371
4387
|
group_id: z.ZodOptional<z.ZodString>;
|
|
4372
4388
|
status: z.ZodEnum<{
|
|
4373
|
-
opening: "opening";
|
|
4374
4389
|
active: "active";
|
|
4375
|
-
closing: "closing";
|
|
4376
4390
|
closed: "closed";
|
|
4391
|
+
opening: "opening";
|
|
4392
|
+
closing: "closing";
|
|
4377
4393
|
errored: "errored";
|
|
4378
4394
|
}>;
|
|
4379
4395
|
session_mode: z.ZodEnum<{
|
|
@@ -4381,8 +4397,8 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
|
|
|
4381
4397
|
"non-interactive": "non-interactive";
|
|
4382
4398
|
}>;
|
|
4383
4399
|
recording_mode: z.ZodEnum<{
|
|
4384
|
-
recorded: "recorded";
|
|
4385
4400
|
private: "private";
|
|
4401
|
+
recorded: "recorded";
|
|
4386
4402
|
}>;
|
|
4387
4403
|
encryption_mode: z.ZodEnum<{
|
|
4388
4404
|
managed: "managed";
|
|
@@ -4401,9 +4417,9 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
|
|
|
4401
4417
|
command_meta: z.ZodOptional<z.ZodUnknown>;
|
|
4402
4418
|
context: z.ZodOptional<z.ZodObject<{
|
|
4403
4419
|
origin: z.ZodOptional<z.ZodEnum<{
|
|
4420
|
+
api: "api";
|
|
4404
4421
|
human: "human";
|
|
4405
4422
|
codex: "codex";
|
|
4406
|
-
api: "api";
|
|
4407
4423
|
automation: "automation";
|
|
4408
4424
|
ci: "ci";
|
|
4409
4425
|
"scheduled-job": "scheduled-job";
|
|
@@ -4412,8 +4428,8 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
|
|
|
4412
4428
|
purpose: z.ZodOptional<z.ZodString>;
|
|
4413
4429
|
initiator_kind: z.ZodOptional<z.ZodEnum<{
|
|
4414
4430
|
agent: "agent";
|
|
4415
|
-
user: "user";
|
|
4416
4431
|
app: "app";
|
|
4432
|
+
user: "user";
|
|
4417
4433
|
"service-account": "service-account";
|
|
4418
4434
|
}>>;
|
|
4419
4435
|
agent_name: z.ZodOptional<z.ZodString>;
|
|
@@ -4537,9 +4553,9 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
|
|
|
4537
4553
|
approver_participant_id: z.ZodOptional<z.ZodString>;
|
|
4538
4554
|
approver_user_id: z.ZodOptional<z.ZodString>;
|
|
4539
4555
|
status: z.ZodEnum<{
|
|
4556
|
+
refused: "refused";
|
|
4540
4557
|
pending: "pending";
|
|
4541
4558
|
granted: "granted";
|
|
4542
|
-
refused: "refused";
|
|
4543
4559
|
revoked: "revoked";
|
|
4544
4560
|
expired: "expired";
|
|
4545
4561
|
}>;
|
|
@@ -4566,9 +4582,9 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
|
|
|
4566
4582
|
approver_participant_id: z.ZodOptional<z.ZodString>;
|
|
4567
4583
|
approver_user_id: z.ZodOptional<z.ZodString>;
|
|
4568
4584
|
status: z.ZodEnum<{
|
|
4585
|
+
refused: "refused";
|
|
4569
4586
|
pending: "pending";
|
|
4570
4587
|
granted: "granted";
|
|
4571
|
-
refused: "refused";
|
|
4572
4588
|
revoked: "revoked";
|
|
4573
4589
|
expired: "expired";
|
|
4574
4590
|
}>;
|
|
@@ -4595,9 +4611,9 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
|
|
|
4595
4611
|
approver_participant_id: z.ZodOptional<z.ZodString>;
|
|
4596
4612
|
approver_user_id: z.ZodOptional<z.ZodString>;
|
|
4597
4613
|
status: z.ZodEnum<{
|
|
4614
|
+
refused: "refused";
|
|
4598
4615
|
pending: "pending";
|
|
4599
4616
|
granted: "granted";
|
|
4600
|
-
refused: "refused";
|
|
4601
4617
|
revoked: "revoked";
|
|
4602
4618
|
expired: "expired";
|
|
4603
4619
|
}>;
|
|
@@ -4624,9 +4640,9 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
|
|
|
4624
4640
|
approver_participant_id: z.ZodOptional<z.ZodString>;
|
|
4625
4641
|
approver_user_id: z.ZodOptional<z.ZodString>;
|
|
4626
4642
|
status: z.ZodEnum<{
|
|
4643
|
+
refused: "refused";
|
|
4627
4644
|
pending: "pending";
|
|
4628
4645
|
granted: "granted";
|
|
4629
|
-
refused: "refused";
|
|
4630
4646
|
revoked: "revoked";
|
|
4631
4647
|
expired: "expired";
|
|
4632
4648
|
}>;
|
|
@@ -4678,12 +4694,12 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
|
|
|
4678
4694
|
internal: "internal";
|
|
4679
4695
|
}>;
|
|
4680
4696
|
transport: z.ZodOptional<z.ZodEnum<{
|
|
4681
|
-
http: "http";
|
|
4682
|
-
rstream: "rstream";
|
|
4683
4697
|
tls: "tls";
|
|
4684
4698
|
tcp: "tcp";
|
|
4685
4699
|
dtls: "dtls";
|
|
4686
4700
|
quic: "quic";
|
|
4701
|
+
http: "http";
|
|
4702
|
+
rstream: "rstream";
|
|
4687
4703
|
}>>;
|
|
4688
4704
|
}, z.core.$strip>>;
|
|
4689
4705
|
http: z.ZodOptional<z.ZodObject<{
|
|
@@ -4720,9 +4736,9 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
|
|
|
4720
4736
|
}, z.core.$strip>, z.ZodObject<{
|
|
4721
4737
|
kind: z.ZodLiteral<"token">;
|
|
4722
4738
|
source: z.ZodOptional<z.ZodEnum<{
|
|
4723
|
-
query: "query";
|
|
4724
4739
|
unknown: "unknown";
|
|
4725
4740
|
authorization: "authorization";
|
|
4741
|
+
query: "query";
|
|
4726
4742
|
client: "client";
|
|
4727
4743
|
}>>;
|
|
4728
4744
|
tokenType: z.ZodOptional<z.ZodEnum<{
|
|
@@ -4747,9 +4763,9 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
|
|
|
4747
4763
|
}, z.core.$strip>, z.ZodObject<{
|
|
4748
4764
|
kind: z.ZodLiteral<"token">;
|
|
4749
4765
|
source: z.ZodOptional<z.ZodEnum<{
|
|
4750
|
-
query: "query";
|
|
4751
4766
|
unknown: "unknown";
|
|
4752
4767
|
authorization: "authorization";
|
|
4768
|
+
query: "query";
|
|
4753
4769
|
client: "client";
|
|
4754
4770
|
}>>;
|
|
4755
4771
|
tokenType: z.ZodOptional<z.ZodEnum<{
|
|
@@ -4768,49 +4784,49 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
|
|
|
4768
4784
|
why: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
4769
4785
|
reason: z.ZodLiteral<"missing_token">;
|
|
4770
4786
|
source: z.ZodEnum<{
|
|
4771
|
-
query: "query";
|
|
4772
4787
|
unknown: "unknown";
|
|
4773
4788
|
authorization: "authorization";
|
|
4789
|
+
query: "query";
|
|
4774
4790
|
client: "client";
|
|
4775
4791
|
}>;
|
|
4776
4792
|
}, z.core.$strip>, z.ZodObject<{
|
|
4777
4793
|
reason: z.ZodLiteral<"invalid_token">;
|
|
4778
4794
|
source: z.ZodEnum<{
|
|
4779
|
-
query: "query";
|
|
4780
4795
|
unknown: "unknown";
|
|
4781
4796
|
authorization: "authorization";
|
|
4797
|
+
query: "query";
|
|
4782
4798
|
client: "client";
|
|
4783
4799
|
}>;
|
|
4784
4800
|
}, z.core.$strip>, z.ZodObject<{
|
|
4785
4801
|
reason: z.ZodLiteral<"expired_token">;
|
|
4786
4802
|
source: z.ZodEnum<{
|
|
4787
|
-
query: "query";
|
|
4788
4803
|
unknown: "unknown";
|
|
4789
4804
|
authorization: "authorization";
|
|
4805
|
+
query: "query";
|
|
4790
4806
|
client: "client";
|
|
4791
4807
|
}>;
|
|
4792
4808
|
}, z.core.$strip>, z.ZodObject<{
|
|
4793
4809
|
reason: z.ZodLiteral<"invalid_secret">;
|
|
4794
4810
|
source: z.ZodEnum<{
|
|
4795
|
-
query: "query";
|
|
4796
4811
|
unknown: "unknown";
|
|
4797
4812
|
authorization: "authorization";
|
|
4813
|
+
query: "query";
|
|
4798
4814
|
client: "client";
|
|
4799
4815
|
}>;
|
|
4800
4816
|
}, z.core.$strip>, z.ZodObject<{
|
|
4801
4817
|
reason: z.ZodLiteral<"user_mismatch">;
|
|
4802
4818
|
source: z.ZodEnum<{
|
|
4803
|
-
query: "query";
|
|
4804
4819
|
unknown: "unknown";
|
|
4805
4820
|
authorization: "authorization";
|
|
4821
|
+
query: "query";
|
|
4806
4822
|
client: "client";
|
|
4807
4823
|
}>;
|
|
4808
4824
|
}, z.core.$strip>, z.ZodObject<{
|
|
4809
4825
|
reason: z.ZodLiteral<"insufficient_scope">;
|
|
4810
4826
|
source: z.ZodEnum<{
|
|
4811
|
-
query: "query";
|
|
4812
4827
|
unknown: "unknown";
|
|
4813
4828
|
authorization: "authorization";
|
|
4829
|
+
query: "query";
|
|
4814
4830
|
client: "client";
|
|
4815
4831
|
}>;
|
|
4816
4832
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -4824,9 +4840,9 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
|
|
|
4824
4840
|
}>;
|
|
4825
4841
|
value: z.ZodOptional<z.ZodString>;
|
|
4826
4842
|
source: z.ZodEnum<{
|
|
4827
|
-
query: "query";
|
|
4828
4843
|
unknown: "unknown";
|
|
4829
4844
|
authorization: "authorization";
|
|
4845
|
+
query: "query";
|
|
4830
4846
|
client: "client";
|
|
4831
4847
|
}>;
|
|
4832
4848
|
}, z.core.$strip>], "reason">;
|
|
@@ -4905,49 +4921,49 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
|
|
|
4905
4921
|
why: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
4906
4922
|
reason: z.ZodLiteral<"missing_token">;
|
|
4907
4923
|
source: z.ZodEnum<{
|
|
4908
|
-
query: "query";
|
|
4909
4924
|
unknown: "unknown";
|
|
4910
4925
|
authorization: "authorization";
|
|
4926
|
+
query: "query";
|
|
4911
4927
|
client: "client";
|
|
4912
4928
|
}>;
|
|
4913
4929
|
}, z.core.$strip>, z.ZodObject<{
|
|
4914
4930
|
reason: z.ZodLiteral<"invalid_token">;
|
|
4915
4931
|
source: z.ZodEnum<{
|
|
4916
|
-
query: "query";
|
|
4917
4932
|
unknown: "unknown";
|
|
4918
4933
|
authorization: "authorization";
|
|
4934
|
+
query: "query";
|
|
4919
4935
|
client: "client";
|
|
4920
4936
|
}>;
|
|
4921
4937
|
}, z.core.$strip>, z.ZodObject<{
|
|
4922
4938
|
reason: z.ZodLiteral<"expired_token">;
|
|
4923
4939
|
source: z.ZodEnum<{
|
|
4924
|
-
query: "query";
|
|
4925
4940
|
unknown: "unknown";
|
|
4926
4941
|
authorization: "authorization";
|
|
4942
|
+
query: "query";
|
|
4927
4943
|
client: "client";
|
|
4928
4944
|
}>;
|
|
4929
4945
|
}, z.core.$strip>, z.ZodObject<{
|
|
4930
4946
|
reason: z.ZodLiteral<"invalid_secret">;
|
|
4931
4947
|
source: z.ZodEnum<{
|
|
4932
|
-
query: "query";
|
|
4933
4948
|
unknown: "unknown";
|
|
4934
4949
|
authorization: "authorization";
|
|
4950
|
+
query: "query";
|
|
4935
4951
|
client: "client";
|
|
4936
4952
|
}>;
|
|
4937
4953
|
}, z.core.$strip>, z.ZodObject<{
|
|
4938
4954
|
reason: z.ZodLiteral<"user_mismatch">;
|
|
4939
4955
|
source: z.ZodEnum<{
|
|
4940
|
-
query: "query";
|
|
4941
4956
|
unknown: "unknown";
|
|
4942
4957
|
authorization: "authorization";
|
|
4958
|
+
query: "query";
|
|
4943
4959
|
client: "client";
|
|
4944
4960
|
}>;
|
|
4945
4961
|
}, z.core.$strip>, z.ZodObject<{
|
|
4946
4962
|
reason: z.ZodLiteral<"insufficient_scope">;
|
|
4947
4963
|
source: z.ZodEnum<{
|
|
4948
|
-
query: "query";
|
|
4949
4964
|
unknown: "unknown";
|
|
4950
4965
|
authorization: "authorization";
|
|
4966
|
+
query: "query";
|
|
4951
4967
|
client: "client";
|
|
4952
4968
|
}>;
|
|
4953
4969
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -4961,9 +4977,9 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
|
|
|
4961
4977
|
}>;
|
|
4962
4978
|
value: z.ZodOptional<z.ZodString>;
|
|
4963
4979
|
source: z.ZodEnum<{
|
|
4964
|
-
query: "query";
|
|
4965
4980
|
unknown: "unknown";
|
|
4966
4981
|
authorization: "authorization";
|
|
4982
|
+
query: "query";
|
|
4967
4983
|
client: "client";
|
|
4968
4984
|
}>;
|
|
4969
4985
|
}, z.core.$strip>], "reason">;
|
|
@@ -5004,8 +5020,8 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
|
|
|
5004
5020
|
}>>;
|
|
5005
5021
|
controller: z.ZodOptional<z.ZodBoolean>;
|
|
5006
5022
|
recording_mode: z.ZodOptional<z.ZodEnum<{
|
|
5007
|
-
recorded: "recorded";
|
|
5008
5023
|
private: "private";
|
|
5024
|
+
recorded: "recorded";
|
|
5009
5025
|
}>>;
|
|
5010
5026
|
encryption_mode: z.ZodOptional<z.ZodEnum<{
|
|
5011
5027
|
managed: "managed";
|
|
@@ -5036,9 +5052,9 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
|
|
|
5036
5052
|
webtransport: "webtransport";
|
|
5037
5053
|
}>>;
|
|
5038
5054
|
origin: z.ZodOptional<z.ZodEnum<{
|
|
5055
|
+
api: "api";
|
|
5039
5056
|
human: "human";
|
|
5040
5057
|
codex: "codex";
|
|
5041
|
-
api: "api";
|
|
5042
5058
|
automation: "automation";
|
|
5043
5059
|
ci: "ci";
|
|
5044
5060
|
"scheduled-job": "scheduled-job";
|
|
@@ -5046,8 +5062,8 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
|
|
|
5046
5062
|
origin_id: z.ZodOptional<z.ZodString>;
|
|
5047
5063
|
initiator_kind: z.ZodOptional<z.ZodEnum<{
|
|
5048
5064
|
agent: "agent";
|
|
5049
|
-
user: "user";
|
|
5050
5065
|
app: "app";
|
|
5066
|
+
user: "user";
|
|
5051
5067
|
"service-account": "service-account";
|
|
5052
5068
|
}>>;
|
|
5053
5069
|
device_id: z.ZodOptional<z.ZodString>;
|
|
@@ -5084,10 +5100,10 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
|
|
|
5084
5100
|
server: "server";
|
|
5085
5101
|
}>;
|
|
5086
5102
|
reason: z.ZodEnum<{
|
|
5087
|
-
unknown: "unknown";
|
|
5088
5103
|
error: "error";
|
|
5089
|
-
closed: "closed";
|
|
5090
5104
|
timeout: "timeout";
|
|
5105
|
+
unknown: "unknown";
|
|
5106
|
+
closed: "closed";
|
|
5091
5107
|
reset: "reset";
|
|
5092
5108
|
}>;
|
|
5093
5109
|
message: z.ZodOptional<z.ZodString>;
|
|
@@ -5115,49 +5131,49 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
|
|
|
5115
5131
|
why: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
5116
5132
|
reason: z.ZodLiteral<"missing_token">;
|
|
5117
5133
|
source: z.ZodEnum<{
|
|
5118
|
-
query: "query";
|
|
5119
5134
|
unknown: "unknown";
|
|
5120
5135
|
authorization: "authorization";
|
|
5136
|
+
query: "query";
|
|
5121
5137
|
client: "client";
|
|
5122
5138
|
}>;
|
|
5123
5139
|
}, z.core.$strip>, z.ZodObject<{
|
|
5124
5140
|
reason: z.ZodLiteral<"invalid_token">;
|
|
5125
5141
|
source: z.ZodEnum<{
|
|
5126
|
-
query: "query";
|
|
5127
5142
|
unknown: "unknown";
|
|
5128
5143
|
authorization: "authorization";
|
|
5144
|
+
query: "query";
|
|
5129
5145
|
client: "client";
|
|
5130
5146
|
}>;
|
|
5131
5147
|
}, z.core.$strip>, z.ZodObject<{
|
|
5132
5148
|
reason: z.ZodLiteral<"expired_token">;
|
|
5133
5149
|
source: z.ZodEnum<{
|
|
5134
|
-
query: "query";
|
|
5135
5150
|
unknown: "unknown";
|
|
5136
5151
|
authorization: "authorization";
|
|
5152
|
+
query: "query";
|
|
5137
5153
|
client: "client";
|
|
5138
5154
|
}>;
|
|
5139
5155
|
}, z.core.$strip>, z.ZodObject<{
|
|
5140
5156
|
reason: z.ZodLiteral<"invalid_secret">;
|
|
5141
5157
|
source: z.ZodEnum<{
|
|
5142
|
-
query: "query";
|
|
5143
5158
|
unknown: "unknown";
|
|
5144
5159
|
authorization: "authorization";
|
|
5160
|
+
query: "query";
|
|
5145
5161
|
client: "client";
|
|
5146
5162
|
}>;
|
|
5147
5163
|
}, z.core.$strip>, z.ZodObject<{
|
|
5148
5164
|
reason: z.ZodLiteral<"user_mismatch">;
|
|
5149
5165
|
source: z.ZodEnum<{
|
|
5150
|
-
query: "query";
|
|
5151
5166
|
unknown: "unknown";
|
|
5152
5167
|
authorization: "authorization";
|
|
5168
|
+
query: "query";
|
|
5153
5169
|
client: "client";
|
|
5154
5170
|
}>;
|
|
5155
5171
|
}, z.core.$strip>, z.ZodObject<{
|
|
5156
5172
|
reason: z.ZodLiteral<"insufficient_scope">;
|
|
5157
5173
|
source: z.ZodEnum<{
|
|
5158
|
-
query: "query";
|
|
5159
5174
|
unknown: "unknown";
|
|
5160
5175
|
authorization: "authorization";
|
|
5176
|
+
query: "query";
|
|
5161
5177
|
client: "client";
|
|
5162
5178
|
}>;
|
|
5163
5179
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -5171,9 +5187,9 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
|
|
|
5171
5187
|
}>;
|
|
5172
5188
|
value: z.ZodOptional<z.ZodString>;
|
|
5173
5189
|
source: z.ZodEnum<{
|
|
5174
|
-
query: "query";
|
|
5175
5190
|
unknown: "unknown";
|
|
5176
5191
|
authorization: "authorization";
|
|
5192
|
+
query: "query";
|
|
5177
5193
|
client: "client";
|
|
5178
5194
|
}>;
|
|
5179
5195
|
}, z.core.$strip>], "reason">;
|
|
@@ -5228,10 +5244,10 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
|
|
|
5228
5244
|
server: "server";
|
|
5229
5245
|
}>;
|
|
5230
5246
|
reason: z.ZodEnum<{
|
|
5231
|
-
unknown: "unknown";
|
|
5232
5247
|
error: "error";
|
|
5233
|
-
closed: "closed";
|
|
5234
5248
|
timeout: "timeout";
|
|
5249
|
+
unknown: "unknown";
|
|
5250
|
+
closed: "closed";
|
|
5235
5251
|
reset: "reset";
|
|
5236
5252
|
}>;
|
|
5237
5253
|
message: z.ZodOptional<z.ZodString>;
|
|
@@ -5291,8 +5307,8 @@ declare const webTTYTransportSchema: z.ZodEnum<{
|
|
|
5291
5307
|
webtransport: "webtransport";
|
|
5292
5308
|
}>;
|
|
5293
5309
|
declare const webTTYRecordingModeSchema: z.ZodEnum<{
|
|
5294
|
-
recorded: "recorded";
|
|
5295
5310
|
private: "private";
|
|
5311
|
+
recorded: "recorded";
|
|
5296
5312
|
}>;
|
|
5297
5313
|
declare const webTTYEncryptionModeSchema: z.ZodEnum<{
|
|
5298
5314
|
managed: "managed";
|
|
@@ -5303,9 +5319,9 @@ declare const webTTYSessionModeSchema: z.ZodEnum<{
|
|
|
5303
5319
|
"non-interactive": "non-interactive";
|
|
5304
5320
|
}>;
|
|
5305
5321
|
declare const webTTYOriginSchema: z.ZodEnum<{
|
|
5322
|
+
api: "api";
|
|
5306
5323
|
human: "human";
|
|
5307
5324
|
codex: "codex";
|
|
5308
|
-
api: "api";
|
|
5309
5325
|
automation: "automation";
|
|
5310
5326
|
ci: "ci";
|
|
5311
5327
|
"scheduled-job": "scheduled-job";
|
|
@@ -5316,9 +5332,9 @@ declare const webTTYParticipantRoleSchema: z.ZodEnum<{
|
|
|
5316
5332
|
}>;
|
|
5317
5333
|
declare const webTTYContextMetadataSchema: z.ZodObject<{
|
|
5318
5334
|
origin: z.ZodOptional<z.ZodEnum<{
|
|
5335
|
+
api: "api";
|
|
5319
5336
|
human: "human";
|
|
5320
5337
|
codex: "codex";
|
|
5321
|
-
api: "api";
|
|
5322
5338
|
automation: "automation";
|
|
5323
5339
|
ci: "ci";
|
|
5324
5340
|
"scheduled-job": "scheduled-job";
|
|
@@ -5327,8 +5343,8 @@ declare const webTTYContextMetadataSchema: z.ZodObject<{
|
|
|
5327
5343
|
purpose: z.ZodOptional<z.ZodString>;
|
|
5328
5344
|
initiator_kind: z.ZodOptional<z.ZodEnum<{
|
|
5329
5345
|
agent: "agent";
|
|
5330
|
-
user: "user";
|
|
5331
5346
|
app: "app";
|
|
5347
|
+
user: "user";
|
|
5332
5348
|
"service-account": "service-account";
|
|
5333
5349
|
}>>;
|
|
5334
5350
|
agent_name: z.ZodOptional<z.ZodString>;
|
|
@@ -5352,8 +5368,8 @@ declare const webTTYCapabilitiesSchema: z.ZodObject<{
|
|
|
5352
5368
|
webtransport: "webtransport";
|
|
5353
5369
|
}>>;
|
|
5354
5370
|
recording_modes: z.ZodArray<z.ZodEnum<{
|
|
5355
|
-
recorded: "recorded";
|
|
5356
5371
|
private: "private";
|
|
5372
|
+
recorded: "recorded";
|
|
5357
5373
|
}>>;
|
|
5358
5374
|
encryption_modes: z.ZodArray<z.ZodEnum<{
|
|
5359
5375
|
managed: "managed";
|
|
@@ -5383,10 +5399,10 @@ declare const webTTYSessionSchema: z.ZodObject<{
|
|
|
5383
5399
|
initiator_user_id: z.ZodOptional<z.ZodString>;
|
|
5384
5400
|
group_id: z.ZodOptional<z.ZodString>;
|
|
5385
5401
|
status: z.ZodEnum<{
|
|
5386
|
-
opening: "opening";
|
|
5387
5402
|
active: "active";
|
|
5388
|
-
closing: "closing";
|
|
5389
5403
|
closed: "closed";
|
|
5404
|
+
opening: "opening";
|
|
5405
|
+
closing: "closing";
|
|
5390
5406
|
errored: "errored";
|
|
5391
5407
|
}>;
|
|
5392
5408
|
session_mode: z.ZodEnum<{
|
|
@@ -5394,8 +5410,8 @@ declare const webTTYSessionSchema: z.ZodObject<{
|
|
|
5394
5410
|
"non-interactive": "non-interactive";
|
|
5395
5411
|
}>;
|
|
5396
5412
|
recording_mode: z.ZodEnum<{
|
|
5397
|
-
recorded: "recorded";
|
|
5398
5413
|
private: "private";
|
|
5414
|
+
recorded: "recorded";
|
|
5399
5415
|
}>;
|
|
5400
5416
|
encryption_mode: z.ZodEnum<{
|
|
5401
5417
|
managed: "managed";
|
|
@@ -5414,9 +5430,9 @@ declare const webTTYSessionSchema: z.ZodObject<{
|
|
|
5414
5430
|
command_meta: z.ZodOptional<z.ZodUnknown>;
|
|
5415
5431
|
context: z.ZodOptional<z.ZodObject<{
|
|
5416
5432
|
origin: z.ZodOptional<z.ZodEnum<{
|
|
5433
|
+
api: "api";
|
|
5417
5434
|
human: "human";
|
|
5418
5435
|
codex: "codex";
|
|
5419
|
-
api: "api";
|
|
5420
5436
|
automation: "automation";
|
|
5421
5437
|
ci: "ci";
|
|
5422
5438
|
"scheduled-job": "scheduled-job";
|
|
@@ -5425,8 +5441,8 @@ declare const webTTYSessionSchema: z.ZodObject<{
|
|
|
5425
5441
|
purpose: z.ZodOptional<z.ZodString>;
|
|
5426
5442
|
initiator_kind: z.ZodOptional<z.ZodEnum<{
|
|
5427
5443
|
agent: "agent";
|
|
5428
|
-
user: "user";
|
|
5429
5444
|
app: "app";
|
|
5445
|
+
user: "user";
|
|
5430
5446
|
"service-account": "service-account";
|
|
5431
5447
|
}>>;
|
|
5432
5448
|
agent_name: z.ZodOptional<z.ZodString>;
|
|
@@ -5454,9 +5470,9 @@ declare const webTTYSessionGroupSchema: z.ZodObject<{
|
|
|
5454
5470
|
initiator_user_id: z.ZodOptional<z.ZodString>;
|
|
5455
5471
|
context: z.ZodOptional<z.ZodObject<{
|
|
5456
5472
|
origin: z.ZodOptional<z.ZodEnum<{
|
|
5473
|
+
api: "api";
|
|
5457
5474
|
human: "human";
|
|
5458
5475
|
codex: "codex";
|
|
5459
|
-
api: "api";
|
|
5460
5476
|
automation: "automation";
|
|
5461
5477
|
ci: "ci";
|
|
5462
5478
|
"scheduled-job": "scheduled-job";
|
|
@@ -5465,8 +5481,8 @@ declare const webTTYSessionGroupSchema: z.ZodObject<{
|
|
|
5465
5481
|
purpose: z.ZodOptional<z.ZodString>;
|
|
5466
5482
|
initiator_kind: z.ZodOptional<z.ZodEnum<{
|
|
5467
5483
|
agent: "agent";
|
|
5468
|
-
user: "user";
|
|
5469
5484
|
app: "app";
|
|
5485
|
+
user: "user";
|
|
5470
5486
|
"service-account": "service-account";
|
|
5471
5487
|
}>>;
|
|
5472
5488
|
agent_name: z.ZodOptional<z.ZodString>;
|
|
@@ -5516,9 +5532,9 @@ declare const webTTYSessionEventSchema: z.ZodObject<{
|
|
|
5516
5532
|
type: z.ZodEnum<{
|
|
5517
5533
|
error: "error";
|
|
5518
5534
|
close: "close";
|
|
5535
|
+
data: "data";
|
|
5519
5536
|
open: "open";
|
|
5520
5537
|
ack: "ack";
|
|
5521
|
-
data: "data";
|
|
5522
5538
|
resize: "resize";
|
|
5523
5539
|
participant: "participant";
|
|
5524
5540
|
control: "control";
|
|
@@ -5596,9 +5612,9 @@ declare const webTTYControlRequestSchema: z.ZodObject<{
|
|
|
5596
5612
|
approver_participant_id: z.ZodOptional<z.ZodString>;
|
|
5597
5613
|
approver_user_id: z.ZodOptional<z.ZodString>;
|
|
5598
5614
|
status: z.ZodEnum<{
|
|
5615
|
+
refused: "refused";
|
|
5599
5616
|
pending: "pending";
|
|
5600
5617
|
granted: "granted";
|
|
5601
|
-
refused: "refused";
|
|
5602
5618
|
revoked: "revoked";
|
|
5603
5619
|
expired: "expired";
|
|
5604
5620
|
}>;
|
|
@@ -5617,18 +5633,18 @@ declare const listWebTTYSessionsParamsSchema: z.ZodObject<{
|
|
|
5617
5633
|
user_id: z.ZodOptional<z.ZodString>;
|
|
5618
5634
|
group_id: z.ZodOptional<z.ZodString>;
|
|
5619
5635
|
origin: z.ZodOptional<z.ZodEnum<{
|
|
5636
|
+
api: "api";
|
|
5620
5637
|
human: "human";
|
|
5621
5638
|
codex: "codex";
|
|
5622
|
-
api: "api";
|
|
5623
5639
|
automation: "automation";
|
|
5624
5640
|
ci: "ci";
|
|
5625
5641
|
"scheduled-job": "scheduled-job";
|
|
5626
5642
|
}>>;
|
|
5627
5643
|
status: z.ZodOptional<z.ZodEnum<{
|
|
5628
|
-
opening: "opening";
|
|
5629
5644
|
active: "active";
|
|
5630
|
-
closing: "closing";
|
|
5631
5645
|
closed: "closed";
|
|
5646
|
+
opening: "opening";
|
|
5647
|
+
closing: "closing";
|
|
5632
5648
|
errored: "errored";
|
|
5633
5649
|
}>>;
|
|
5634
5650
|
started_from: z.ZodOptional<z.ZodString>;
|
|
@@ -5640,9 +5656,9 @@ declare const listWebTTYSessionGroupsParamsSchema: z.ZodObject<{
|
|
|
5640
5656
|
filters: z.ZodOptional<z.ZodObject<{
|
|
5641
5657
|
initiator_user_id: z.ZodOptional<z.ZodString>;
|
|
5642
5658
|
origin: z.ZodOptional<z.ZodEnum<{
|
|
5659
|
+
api: "api";
|
|
5643
5660
|
human: "human";
|
|
5644
5661
|
codex: "codex";
|
|
5645
|
-
api: "api";
|
|
5646
5662
|
automation: "automation";
|
|
5647
5663
|
ci: "ci";
|
|
5648
5664
|
"scheduled-job": "scheduled-job";
|
|
@@ -5663,9 +5679,9 @@ declare const listWebTTYControlRequestsParamsSchema: z.ZodObject<{
|
|
|
5663
5679
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
5664
5680
|
filters: z.ZodOptional<z.ZodObject<{
|
|
5665
5681
|
status: z.ZodOptional<z.ZodEnum<{
|
|
5682
|
+
refused: "refused";
|
|
5666
5683
|
pending: "pending";
|
|
5667
5684
|
granted: "granted";
|
|
5668
|
-
refused: "refused";
|
|
5669
5685
|
revoked: "revoked";
|
|
5670
5686
|
expired: "expired";
|
|
5671
5687
|
}>>;
|
|
@@ -5742,6 +5758,12 @@ declare class RstreamWebTTYResource {
|
|
|
5742
5758
|
}
|
|
5743
5759
|
|
|
5744
5760
|
interface RstreamTunnelsConfig {
|
|
5761
|
+
/** Node.js TLS identity and trust configuration. Treat as immutable after construction. */
|
|
5762
|
+
tls?: EngineTLSOptions;
|
|
5763
|
+
/** Explicit mTLS API override; otherwise discover once per client cache lifetime. */
|
|
5764
|
+
mtlsApiUrl?: string;
|
|
5765
|
+
/** Optional Engine-only fetch implementation. */
|
|
5766
|
+
fetch?: typeof globalThis.fetch;
|
|
5745
5767
|
/**
|
|
5746
5768
|
* Data-plane credentials used against the engine.
|
|
5747
5769
|
*/
|
|
@@ -5786,11 +5808,17 @@ interface RstreamTunnelsConfig {
|
|
|
5786
5808
|
declare class RstreamTunnelsClient {
|
|
5787
5809
|
private readonly config?;
|
|
5788
5810
|
private managedProject?;
|
|
5811
|
+
private readonly http;
|
|
5789
5812
|
constructor(config?: RstreamTunnelsConfig);
|
|
5790
5813
|
get apiUrl(): string;
|
|
5791
5814
|
get credentials(): RstreamCredentials | undefined;
|
|
5792
5815
|
get controlPlaneCredentials(): RstreamCredentials | undefined;
|
|
5816
|
+
get controlPlaneHeaders(): ControlPlaneHeaders | undefined;
|
|
5793
5817
|
get projectEndpoint(): string | undefined;
|
|
5818
|
+
get configuredEngine(): string | undefined;
|
|
5819
|
+
get usesMTLS(): boolean;
|
|
5820
|
+
close(): Promise<void>;
|
|
5821
|
+
getEngineAPIURL(signal?: AbortSignal): Promise<string>;
|
|
5794
5822
|
getEngine(): Promise<string>;
|
|
5795
5823
|
getTURNTarget(): Promise<{
|
|
5796
5824
|
turnDomain: string;
|
|
@@ -5811,7 +5839,11 @@ declare class RstreamTunnelsClient {
|
|
|
5811
5839
|
get webtty(): RstreamWebTTYResource;
|
|
5812
5840
|
get turn(): RstreamTURNResource;
|
|
5813
5841
|
getToken(engine?: string): Promise<string | undefined>;
|
|
5814
|
-
|
|
5842
|
+
openEventStream(signal?: AbortSignal): Promise<{
|
|
5843
|
+
response: Response;
|
|
5844
|
+
close(): void;
|
|
5845
|
+
}>;
|
|
5846
|
+
request<T>(path: string, options?: RequestInit, maxResponseBytes?: number): Promise<T>;
|
|
5815
5847
|
}
|
|
5816
5848
|
|
|
5817
5849
|
interface CreateAuthTokenFromClientCredentialsOptions {
|
|
@@ -5879,12 +5911,12 @@ declare const streamEntrySchema: z.ZodObject<{
|
|
|
5879
5911
|
internal: "internal";
|
|
5880
5912
|
}>;
|
|
5881
5913
|
transport: z.ZodOptional<z.ZodEnum<{
|
|
5882
|
-
http: "http";
|
|
5883
|
-
rstream: "rstream";
|
|
5884
5914
|
tls: "tls";
|
|
5885
5915
|
tcp: "tcp";
|
|
5886
5916
|
dtls: "dtls";
|
|
5887
5917
|
quic: "quic";
|
|
5918
|
+
http: "http";
|
|
5919
|
+
rstream: "rstream";
|
|
5888
5920
|
}>>;
|
|
5889
5921
|
}, z.core.$strip>;
|
|
5890
5922
|
declare const streamWebTTYMetadataSchema: z.ZodObject<{
|
|
@@ -5898,8 +5930,8 @@ declare const streamWebTTYMetadataSchema: z.ZodObject<{
|
|
|
5898
5930
|
}>>;
|
|
5899
5931
|
controller: z.ZodOptional<z.ZodBoolean>;
|
|
5900
5932
|
recording_mode: z.ZodOptional<z.ZodEnum<{
|
|
5901
|
-
recorded: "recorded";
|
|
5902
5933
|
private: "private";
|
|
5934
|
+
recorded: "recorded";
|
|
5903
5935
|
}>>;
|
|
5904
5936
|
encryption_mode: z.ZodOptional<z.ZodEnum<{
|
|
5905
5937
|
managed: "managed";
|
|
@@ -5930,9 +5962,9 @@ declare const streamWebTTYMetadataSchema: z.ZodObject<{
|
|
|
5930
5962
|
webtransport: "webtransport";
|
|
5931
5963
|
}>>;
|
|
5932
5964
|
origin: z.ZodOptional<z.ZodEnum<{
|
|
5965
|
+
api: "api";
|
|
5933
5966
|
human: "human";
|
|
5934
5967
|
codex: "codex";
|
|
5935
|
-
api: "api";
|
|
5936
5968
|
automation: "automation";
|
|
5937
5969
|
ci: "ci";
|
|
5938
5970
|
"scheduled-job": "scheduled-job";
|
|
@@ -5940,8 +5972,8 @@ declare const streamWebTTYMetadataSchema: z.ZodObject<{
|
|
|
5940
5972
|
origin_id: z.ZodOptional<z.ZodString>;
|
|
5941
5973
|
initiator_kind: z.ZodOptional<z.ZodEnum<{
|
|
5942
5974
|
agent: "agent";
|
|
5943
|
-
user: "user";
|
|
5944
5975
|
app: "app";
|
|
5976
|
+
user: "user";
|
|
5945
5977
|
"service-account": "service-account";
|
|
5946
5978
|
}>>;
|
|
5947
5979
|
device_id: z.ZodOptional<z.ZodString>;
|
|
@@ -5980,12 +6012,12 @@ declare const streamSummarySchema: z.ZodObject<{
|
|
|
5980
6012
|
internal: "internal";
|
|
5981
6013
|
}>;
|
|
5982
6014
|
transport: z.ZodOptional<z.ZodEnum<{
|
|
5983
|
-
http: "http";
|
|
5984
|
-
rstream: "rstream";
|
|
5985
6015
|
tls: "tls";
|
|
5986
6016
|
tcp: "tcp";
|
|
5987
6017
|
dtls: "dtls";
|
|
5988
6018
|
quic: "quic";
|
|
6019
|
+
http: "http";
|
|
6020
|
+
rstream: "rstream";
|
|
5989
6021
|
}>>;
|
|
5990
6022
|
}, z.core.$strip>>;
|
|
5991
6023
|
http: z.ZodOptional<z.ZodObject<{
|
|
@@ -6022,9 +6054,9 @@ declare const streamSummarySchema: z.ZodObject<{
|
|
|
6022
6054
|
}, z.core.$strip>, z.ZodObject<{
|
|
6023
6055
|
kind: z.ZodLiteral<"token">;
|
|
6024
6056
|
source: z.ZodOptional<z.ZodEnum<{
|
|
6025
|
-
query: "query";
|
|
6026
6057
|
unknown: "unknown";
|
|
6027
6058
|
authorization: "authorization";
|
|
6059
|
+
query: "query";
|
|
6028
6060
|
client: "client";
|
|
6029
6061
|
}>>;
|
|
6030
6062
|
tokenType: z.ZodOptional<z.ZodEnum<{
|
|
@@ -6049,9 +6081,9 @@ declare const streamSummarySchema: z.ZodObject<{
|
|
|
6049
6081
|
}, z.core.$strip>, z.ZodObject<{
|
|
6050
6082
|
kind: z.ZodLiteral<"token">;
|
|
6051
6083
|
source: z.ZodOptional<z.ZodEnum<{
|
|
6052
|
-
query: "query";
|
|
6053
6084
|
unknown: "unknown";
|
|
6054
6085
|
authorization: "authorization";
|
|
6086
|
+
query: "query";
|
|
6055
6087
|
client: "client";
|
|
6056
6088
|
}>>;
|
|
6057
6089
|
tokenType: z.ZodOptional<z.ZodEnum<{
|
|
@@ -6070,49 +6102,49 @@ declare const streamSummarySchema: z.ZodObject<{
|
|
|
6070
6102
|
why: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
6071
6103
|
reason: z.ZodLiteral<"missing_token">;
|
|
6072
6104
|
source: z.ZodEnum<{
|
|
6073
|
-
query: "query";
|
|
6074
6105
|
unknown: "unknown";
|
|
6075
6106
|
authorization: "authorization";
|
|
6107
|
+
query: "query";
|
|
6076
6108
|
client: "client";
|
|
6077
6109
|
}>;
|
|
6078
6110
|
}, z.core.$strip>, z.ZodObject<{
|
|
6079
6111
|
reason: z.ZodLiteral<"invalid_token">;
|
|
6080
6112
|
source: z.ZodEnum<{
|
|
6081
|
-
query: "query";
|
|
6082
6113
|
unknown: "unknown";
|
|
6083
6114
|
authorization: "authorization";
|
|
6115
|
+
query: "query";
|
|
6084
6116
|
client: "client";
|
|
6085
6117
|
}>;
|
|
6086
6118
|
}, z.core.$strip>, z.ZodObject<{
|
|
6087
6119
|
reason: z.ZodLiteral<"expired_token">;
|
|
6088
6120
|
source: z.ZodEnum<{
|
|
6089
|
-
query: "query";
|
|
6090
6121
|
unknown: "unknown";
|
|
6091
6122
|
authorization: "authorization";
|
|
6123
|
+
query: "query";
|
|
6092
6124
|
client: "client";
|
|
6093
6125
|
}>;
|
|
6094
6126
|
}, z.core.$strip>, z.ZodObject<{
|
|
6095
6127
|
reason: z.ZodLiteral<"invalid_secret">;
|
|
6096
6128
|
source: z.ZodEnum<{
|
|
6097
|
-
query: "query";
|
|
6098
6129
|
unknown: "unknown";
|
|
6099
6130
|
authorization: "authorization";
|
|
6131
|
+
query: "query";
|
|
6100
6132
|
client: "client";
|
|
6101
6133
|
}>;
|
|
6102
6134
|
}, z.core.$strip>, z.ZodObject<{
|
|
6103
6135
|
reason: z.ZodLiteral<"user_mismatch">;
|
|
6104
6136
|
source: z.ZodEnum<{
|
|
6105
|
-
query: "query";
|
|
6106
6137
|
unknown: "unknown";
|
|
6107
6138
|
authorization: "authorization";
|
|
6139
|
+
query: "query";
|
|
6108
6140
|
client: "client";
|
|
6109
6141
|
}>;
|
|
6110
6142
|
}, z.core.$strip>, z.ZodObject<{
|
|
6111
6143
|
reason: z.ZodLiteral<"insufficient_scope">;
|
|
6112
6144
|
source: z.ZodEnum<{
|
|
6113
|
-
query: "query";
|
|
6114
6145
|
unknown: "unknown";
|
|
6115
6146
|
authorization: "authorization";
|
|
6147
|
+
query: "query";
|
|
6116
6148
|
client: "client";
|
|
6117
6149
|
}>;
|
|
6118
6150
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -6126,9 +6158,9 @@ declare const streamSummarySchema: z.ZodObject<{
|
|
|
6126
6158
|
}>;
|
|
6127
6159
|
value: z.ZodOptional<z.ZodString>;
|
|
6128
6160
|
source: z.ZodEnum<{
|
|
6129
|
-
query: "query";
|
|
6130
6161
|
unknown: "unknown";
|
|
6131
6162
|
authorization: "authorization";
|
|
6163
|
+
query: "query";
|
|
6132
6164
|
client: "client";
|
|
6133
6165
|
}>;
|
|
6134
6166
|
}, z.core.$strip>], "reason">;
|
|
@@ -6207,49 +6239,49 @@ declare const streamSummarySchema: z.ZodObject<{
|
|
|
6207
6239
|
why: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
6208
6240
|
reason: z.ZodLiteral<"missing_token">;
|
|
6209
6241
|
source: z.ZodEnum<{
|
|
6210
|
-
query: "query";
|
|
6211
6242
|
unknown: "unknown";
|
|
6212
6243
|
authorization: "authorization";
|
|
6244
|
+
query: "query";
|
|
6213
6245
|
client: "client";
|
|
6214
6246
|
}>;
|
|
6215
6247
|
}, z.core.$strip>, z.ZodObject<{
|
|
6216
6248
|
reason: z.ZodLiteral<"invalid_token">;
|
|
6217
6249
|
source: z.ZodEnum<{
|
|
6218
|
-
query: "query";
|
|
6219
6250
|
unknown: "unknown";
|
|
6220
6251
|
authorization: "authorization";
|
|
6252
|
+
query: "query";
|
|
6221
6253
|
client: "client";
|
|
6222
6254
|
}>;
|
|
6223
6255
|
}, z.core.$strip>, z.ZodObject<{
|
|
6224
6256
|
reason: z.ZodLiteral<"expired_token">;
|
|
6225
6257
|
source: z.ZodEnum<{
|
|
6226
|
-
query: "query";
|
|
6227
6258
|
unknown: "unknown";
|
|
6228
6259
|
authorization: "authorization";
|
|
6260
|
+
query: "query";
|
|
6229
6261
|
client: "client";
|
|
6230
6262
|
}>;
|
|
6231
6263
|
}, z.core.$strip>, z.ZodObject<{
|
|
6232
6264
|
reason: z.ZodLiteral<"invalid_secret">;
|
|
6233
6265
|
source: z.ZodEnum<{
|
|
6234
|
-
query: "query";
|
|
6235
6266
|
unknown: "unknown";
|
|
6236
6267
|
authorization: "authorization";
|
|
6268
|
+
query: "query";
|
|
6237
6269
|
client: "client";
|
|
6238
6270
|
}>;
|
|
6239
6271
|
}, z.core.$strip>, z.ZodObject<{
|
|
6240
6272
|
reason: z.ZodLiteral<"user_mismatch">;
|
|
6241
6273
|
source: z.ZodEnum<{
|
|
6242
|
-
query: "query";
|
|
6243
6274
|
unknown: "unknown";
|
|
6244
6275
|
authorization: "authorization";
|
|
6276
|
+
query: "query";
|
|
6245
6277
|
client: "client";
|
|
6246
6278
|
}>;
|
|
6247
6279
|
}, z.core.$strip>, z.ZodObject<{
|
|
6248
6280
|
reason: z.ZodLiteral<"insufficient_scope">;
|
|
6249
6281
|
source: z.ZodEnum<{
|
|
6250
|
-
query: "query";
|
|
6251
6282
|
unknown: "unknown";
|
|
6252
6283
|
authorization: "authorization";
|
|
6284
|
+
query: "query";
|
|
6253
6285
|
client: "client";
|
|
6254
6286
|
}>;
|
|
6255
6287
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -6263,9 +6295,9 @@ declare const streamSummarySchema: z.ZodObject<{
|
|
|
6263
6295
|
}>;
|
|
6264
6296
|
value: z.ZodOptional<z.ZodString>;
|
|
6265
6297
|
source: z.ZodEnum<{
|
|
6266
|
-
query: "query";
|
|
6267
6298
|
unknown: "unknown";
|
|
6268
6299
|
authorization: "authorization";
|
|
6300
|
+
query: "query";
|
|
6269
6301
|
client: "client";
|
|
6270
6302
|
}>;
|
|
6271
6303
|
}, z.core.$strip>], "reason">;
|
|
@@ -6306,8 +6338,8 @@ declare const streamSummarySchema: z.ZodObject<{
|
|
|
6306
6338
|
}>>;
|
|
6307
6339
|
controller: z.ZodOptional<z.ZodBoolean>;
|
|
6308
6340
|
recording_mode: z.ZodOptional<z.ZodEnum<{
|
|
6309
|
-
recorded: "recorded";
|
|
6310
6341
|
private: "private";
|
|
6342
|
+
recorded: "recorded";
|
|
6311
6343
|
}>>;
|
|
6312
6344
|
encryption_mode: z.ZodOptional<z.ZodEnum<{
|
|
6313
6345
|
managed: "managed";
|
|
@@ -6338,9 +6370,9 @@ declare const streamSummarySchema: z.ZodObject<{
|
|
|
6338
6370
|
webtransport: "webtransport";
|
|
6339
6371
|
}>>;
|
|
6340
6372
|
origin: z.ZodOptional<z.ZodEnum<{
|
|
6373
|
+
api: "api";
|
|
6341
6374
|
human: "human";
|
|
6342
6375
|
codex: "codex";
|
|
6343
|
-
api: "api";
|
|
6344
6376
|
automation: "automation";
|
|
6345
6377
|
ci: "ci";
|
|
6346
6378
|
"scheduled-job": "scheduled-job";
|
|
@@ -6348,8 +6380,8 @@ declare const streamSummarySchema: z.ZodObject<{
|
|
|
6348
6380
|
origin_id: z.ZodOptional<z.ZodString>;
|
|
6349
6381
|
initiator_kind: z.ZodOptional<z.ZodEnum<{
|
|
6350
6382
|
agent: "agent";
|
|
6351
|
-
user: "user";
|
|
6352
6383
|
app: "app";
|
|
6384
|
+
user: "user";
|
|
6353
6385
|
"service-account": "service-account";
|
|
6354
6386
|
}>>;
|
|
6355
6387
|
device_id: z.ZodOptional<z.ZodString>;
|
|
@@ -6386,10 +6418,10 @@ declare const streamSummarySchema: z.ZodObject<{
|
|
|
6386
6418
|
server: "server";
|
|
6387
6419
|
}>;
|
|
6388
6420
|
reason: z.ZodEnum<{
|
|
6389
|
-
unknown: "unknown";
|
|
6390
6421
|
error: "error";
|
|
6391
|
-
closed: "closed";
|
|
6392
6422
|
timeout: "timeout";
|
|
6423
|
+
unknown: "unknown";
|
|
6424
|
+
closed: "closed";
|
|
6393
6425
|
reset: "reset";
|
|
6394
6426
|
}>;
|
|
6395
6427
|
message: z.ZodOptional<z.ZodString>;
|
|
@@ -6417,49 +6449,49 @@ declare const streamSummarySchema: z.ZodObject<{
|
|
|
6417
6449
|
why: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
6418
6450
|
reason: z.ZodLiteral<"missing_token">;
|
|
6419
6451
|
source: z.ZodEnum<{
|
|
6420
|
-
query: "query";
|
|
6421
6452
|
unknown: "unknown";
|
|
6422
6453
|
authorization: "authorization";
|
|
6454
|
+
query: "query";
|
|
6423
6455
|
client: "client";
|
|
6424
6456
|
}>;
|
|
6425
6457
|
}, z.core.$strip>, z.ZodObject<{
|
|
6426
6458
|
reason: z.ZodLiteral<"invalid_token">;
|
|
6427
6459
|
source: z.ZodEnum<{
|
|
6428
|
-
query: "query";
|
|
6429
6460
|
unknown: "unknown";
|
|
6430
6461
|
authorization: "authorization";
|
|
6462
|
+
query: "query";
|
|
6431
6463
|
client: "client";
|
|
6432
6464
|
}>;
|
|
6433
6465
|
}, z.core.$strip>, z.ZodObject<{
|
|
6434
6466
|
reason: z.ZodLiteral<"expired_token">;
|
|
6435
6467
|
source: z.ZodEnum<{
|
|
6436
|
-
query: "query";
|
|
6437
6468
|
unknown: "unknown";
|
|
6438
6469
|
authorization: "authorization";
|
|
6470
|
+
query: "query";
|
|
6439
6471
|
client: "client";
|
|
6440
6472
|
}>;
|
|
6441
6473
|
}, z.core.$strip>, z.ZodObject<{
|
|
6442
6474
|
reason: z.ZodLiteral<"invalid_secret">;
|
|
6443
6475
|
source: z.ZodEnum<{
|
|
6444
|
-
query: "query";
|
|
6445
6476
|
unknown: "unknown";
|
|
6446
6477
|
authorization: "authorization";
|
|
6478
|
+
query: "query";
|
|
6447
6479
|
client: "client";
|
|
6448
6480
|
}>;
|
|
6449
6481
|
}, z.core.$strip>, z.ZodObject<{
|
|
6450
6482
|
reason: z.ZodLiteral<"user_mismatch">;
|
|
6451
6483
|
source: z.ZodEnum<{
|
|
6452
|
-
query: "query";
|
|
6453
6484
|
unknown: "unknown";
|
|
6454
6485
|
authorization: "authorization";
|
|
6486
|
+
query: "query";
|
|
6455
6487
|
client: "client";
|
|
6456
6488
|
}>;
|
|
6457
6489
|
}, z.core.$strip>, z.ZodObject<{
|
|
6458
6490
|
reason: z.ZodLiteral<"insufficient_scope">;
|
|
6459
6491
|
source: z.ZodEnum<{
|
|
6460
|
-
query: "query";
|
|
6461
6492
|
unknown: "unknown";
|
|
6462
6493
|
authorization: "authorization";
|
|
6494
|
+
query: "query";
|
|
6463
6495
|
client: "client";
|
|
6464
6496
|
}>;
|
|
6465
6497
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -6473,9 +6505,9 @@ declare const streamSummarySchema: z.ZodObject<{
|
|
|
6473
6505
|
}>;
|
|
6474
6506
|
value: z.ZodOptional<z.ZodString>;
|
|
6475
6507
|
source: z.ZodEnum<{
|
|
6476
|
-
query: "query";
|
|
6477
6508
|
unknown: "unknown";
|
|
6478
6509
|
authorization: "authorization";
|
|
6510
|
+
query: "query";
|
|
6479
6511
|
client: "client";
|
|
6480
6512
|
}>;
|
|
6481
6513
|
}, z.core.$strip>], "reason">;
|
|
@@ -6530,10 +6562,10 @@ declare const streamSummarySchema: z.ZodObject<{
|
|
|
6530
6562
|
server: "server";
|
|
6531
6563
|
}>;
|
|
6532
6564
|
reason: z.ZodEnum<{
|
|
6533
|
-
unknown: "unknown";
|
|
6534
6565
|
error: "error";
|
|
6535
|
-
closed: "closed";
|
|
6536
6566
|
timeout: "timeout";
|
|
6567
|
+
unknown: "unknown";
|
|
6568
|
+
closed: "closed";
|
|
6537
6569
|
reset: "reset";
|
|
6538
6570
|
}>;
|
|
6539
6571
|
message: z.ZodOptional<z.ZodString>;
|
|
@@ -6565,7 +6597,9 @@ interface WatchConfig {
|
|
|
6565
6597
|
/**
|
|
6566
6598
|
* Short-term authentication token provider.
|
|
6567
6599
|
*/
|
|
6568
|
-
auth
|
|
6600
|
+
auth?: RstreamAuth;
|
|
6601
|
+
/** Reuses the Node.js client's certificate, HTTP pool and discovery cache for SSE. */
|
|
6602
|
+
client?: RstreamTunnelsClient;
|
|
6569
6603
|
/**
|
|
6570
6604
|
* Engine URL to connect to. (e.g. "project-endpoint.cluster.example.rstream.test:443").
|
|
6571
6605
|
*/
|
|
@@ -6609,16 +6643,25 @@ interface WatchWsEvents {
|
|
|
6609
6643
|
onClose?: () => void;
|
|
6610
6644
|
}
|
|
6611
6645
|
declare class Watch {
|
|
6646
|
+
private readonly abort;
|
|
6647
|
+
private closeStream?;
|
|
6612
6648
|
private connection;
|
|
6613
6649
|
private connectionState;
|
|
6614
6650
|
private readonly config;
|
|
6615
6651
|
private readonly events;
|
|
6616
6652
|
constructor(config: WatchConfig, events: WatchWsEvents);
|
|
6617
6653
|
connect(): Promise<void>;
|
|
6654
|
+
private readCertificateEvents;
|
|
6618
6655
|
private handleMessage;
|
|
6619
6656
|
disconnect(): void;
|
|
6620
6657
|
}
|
|
6621
6658
|
|
|
6659
|
+
declare const webttyTransportSchema: z.ZodEnum<{
|
|
6660
|
+
plain: "plain";
|
|
6661
|
+
websocket: "websocket";
|
|
6662
|
+
webtransport: "webtransport";
|
|
6663
|
+
}>;
|
|
6664
|
+
type WebTTYTransport = z.infer<typeof webttyTransportSchema>;
|
|
6622
6665
|
declare const webttyServerSchema: z.ZodObject<{
|
|
6623
6666
|
tunnel_id: z.ZodString;
|
|
6624
6667
|
tunnel_name: z.ZodOptional<z.ZodString>;
|
|
@@ -6628,10 +6671,21 @@ declare const webttyServerSchema: z.ZodObject<{
|
|
|
6628
6671
|
publish: z.ZodOptional<z.ZodBoolean>;
|
|
6629
6672
|
workspace_id: z.ZodOptional<z.ZodString>;
|
|
6630
6673
|
project_id: z.ZodOptional<z.ZodString>;
|
|
6631
|
-
tunnel_protocol: z.ZodEnum<{
|
|
6674
|
+
tunnel_protocol: z.ZodOptional<z.ZodEnum<{
|
|
6632
6675
|
http: "http";
|
|
6633
6676
|
webtty: "webtty";
|
|
6634
|
-
}
|
|
6677
|
+
}>>;
|
|
6678
|
+
tunnel_type: z.ZodOptional<z.ZodEnum<{
|
|
6679
|
+
bytestream: "bytestream";
|
|
6680
|
+
datagram: "datagram";
|
|
6681
|
+
}>>;
|
|
6682
|
+
http_version: z.ZodOptional<z.ZodString>;
|
|
6683
|
+
transport: z.ZodOptional<z.ZodEnum<{
|
|
6684
|
+
plain: "plain";
|
|
6685
|
+
websocket: "websocket";
|
|
6686
|
+
webtransport: "webtransport";
|
|
6687
|
+
}>>;
|
|
6688
|
+
transport_error: z.ZodOptional<z.ZodString>;
|
|
6635
6689
|
managed: z.ZodBoolean;
|
|
6636
6690
|
host: z.ZodString;
|
|
6637
6691
|
token_auth: z.ZodBoolean;
|
|
@@ -6661,6 +6715,10 @@ declare const webttyServerSchema: z.ZodObject<{
|
|
|
6661
6715
|
"read-write": "read-write";
|
|
6662
6716
|
"read-only": "read-only";
|
|
6663
6717
|
}>>;
|
|
6718
|
+
fs_backend: z.ZodOptional<z.ZodEnum<{
|
|
6719
|
+
webdav: "webdav";
|
|
6720
|
+
webrtc: "webrtc";
|
|
6721
|
+
}>>;
|
|
6664
6722
|
os_family: z.ZodOptional<z.ZodEnum<{
|
|
6665
6723
|
linux: "linux";
|
|
6666
6724
|
macos: "macos";
|
|
@@ -6679,6 +6737,13 @@ declare const webttyServerSchema: z.ZodObject<{
|
|
|
6679
6737
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodString>>>;
|
|
6680
6738
|
}, z.core.$strip>;
|
|
6681
6739
|
type WebTTYServer = z.infer<typeof webttyServerSchema>;
|
|
6682
|
-
declare function parseWebTTYServers(tunnels: Tunnel[]
|
|
6740
|
+
declare function parseWebTTYServers(tunnels: Tunnel[], options?: {
|
|
6741
|
+
includePrivate?: boolean;
|
|
6742
|
+
}): WebTTYServer[];
|
|
6743
|
+
declare function resolveWebTTYServerTransport(server: Pick<WebTTYServer, "transport" | "transport_error" | "tunnel_type" | "http_version">, requested?: WebTTYTransport): WebTTYTransport;
|
|
6744
|
+
declare function resolveWebTTYBrowserEndpoint(server: WebTTYServer): {
|
|
6745
|
+
url: string;
|
|
6746
|
+
transport: "websocket" | "webtransport";
|
|
6747
|
+
};
|
|
6683
6748
|
|
|
6684
|
-
export { type AttachWebTTYParticipantParams, type BuildWebhookHeadersOptions, type Client, type ClientFilter, type CreateAPITURNCredentialsOptions, type CreateAPPTURNCredentialsOptions, type CreateAuthTokenFromClientCredentialsOptions, type CreatePATTURNCredentialsOptions, type CreateTURNCredentialsOptions, type CreateWebTTYControlRequestParams, type DetachWebTTYParticipantParams, type Event, type InitialState, type ListClientsParams, type ListClientsResponse, type ListTunnelsParams, type ListTunnelsResponse, type ListWebTTYControlRequestsParams, type ListWebTTYKeyGrantDecryptMaterialParams, type ListWebTTYSessionGroupsParams, type ListWebTTYSessionsParams, type ProjectLogEvent, type ReadWebTTYSessionEventsParams, type ResolveWebTTYControlRequestParams, type RstreamAuth, RstreamAuthResource, RstreamAuthResource as RstreamAuthRessource, RstreamTunnelsClient as RstreamClient, RstreamClientsResource, RstreamClientsResource as RstreamClientsRessource, RstreamTURNResource, RstreamTunnelsClient, type RstreamTunnelsConfig, RstreamTunnelsResource, RstreamTunnelsResource as RstreamTunnelsRessource, RstreamWebTTYResource, RstreamWebhookResource, RstreamWebhookResource as RstreamWebhookRessource, type StreamEndpoint, type StreamEntry, type StreamSummary, type StreamTLSInfo, type TURNCredentialMode, type TunnelFilter, RstreamTunnelsClient as Tunnels, type TunnelsResolutionConfig, WEBHOOK_DELIVERY_ID_HEADER, WEBHOOK_EVENT_ID_HEADER, WEBHOOK_EVENT_TYPE_HEADER, WEBHOOK_ID_HEADER, WEBHOOK_SIGNATURE_HEADER, Watch, type WatchConfig, type WatchWsEvents, type WebTTYCapabilities, type WebTTYControlRequest, type WebTTYKeyGrant, type WebTTYKeyGrantDecryptMaterial, type WebTTYParticipant, type WebTTYParticipantLive, type WebTTYServer, type WebTTYSession, type WebTTYSessionEvent, type WebTTYSessionGroup, type WebTTYSessionLive, type WebhookEvent, type WebhookHeaders, type WebhookPayload, type WsEvent, attachWebTTYParticipantParamsSchema, buildWebhookHeaders, clientFilterSchema, clientSchema, createAPITURNCredentials, createAPPTURNCredentials, createAuthTokenFromClientCredentials, createPATTURNCredentials, createTURNCredentials, createWebTTYControlRequestParamsSchema, detachWebTTYParticipantParamsSchema, eventSchema, formatStreamAccessPath, formatTunnelHost, generateWebhookSigningSecret, listClientsParamsSchema, listClientsResponseSchema, listTunnelsParamsSchema, listTunnelsResponseSchema, listWebTTYControlRequestsParamsSchema, listWebTTYKeyGrantDecryptMaterialParamsSchema, listWebTTYSessionGroupsParamsSchema, listWebTTYSessionsParamsSchema, normalizeEngineAddress, parseWebTTYServers, projectLogEventsSchema, readWebTTYSessionEventsParamsSchema, resolveControlPlaneCredentials, resolveManagedTunnelsProject, resolveTunnelsAPIURL, resolveTunnelsCredentials, resolveTunnelsEngine, resolveTunnelsRegion, resolveWebTTYControlRequestParamsSchema, signWebhookPayload, streamEndpointSchema, streamEntrySchema, streamSummaryEventSchema, streamSummarySchema, streamTLSInfoSchema, streamWebTTYMetadataSchema, tunnelFilterSchema, turnCredentialModeSchema, webTTYCapabilitiesSchema, webTTYContextMetadataSchema, webTTYControlRequestSchema, webTTYCryptoMetadataSchema, webTTYEncryptionModeSchema, webTTYKeyGrantDecryptMaterialSchema, webTTYKeyGrantSchema, webTTYOriginSchema, webTTYParticipantLiveSchema, webTTYParticipantRoleSchema, webTTYParticipantSchema, webTTYRecordingModeSchema, webTTYSessionEventSchema, webTTYSessionGroupSchema, webTTYSessionLiveSchema, webTTYSessionModeSchema, webTTYSessionSchema, webTTYTransportSchema, webhookEventsSchema, webttyServerSchema, wsEventsSchema };
|
|
6749
|
+
export { type AttachWebTTYParticipantParams, type BuildWebhookHeadersOptions, type Client, type ClientFilter, type CreateAPITURNCredentialsOptions, type CreateAPPTURNCredentialsOptions, type CreateAuthTokenFromClientCredentialsOptions, type CreatePATTURNCredentialsOptions, type CreateTURNCredentialsOptions, type CreateWebTTYControlRequestParams, type DetachWebTTYParticipantParams, type EngineTLSOptions, type Event, type InitialState, type ListClientsParams, type ListClientsResponse, type ListTunnelsParams, type ListTunnelsResponse, type ListWebTTYControlRequestsParams, type ListWebTTYKeyGrantDecryptMaterialParams, type ListWebTTYSessionGroupsParams, type ListWebTTYSessionsParams, type ProjectLogEvent, type ReadWebTTYSessionEventsParams, type ResolveWebTTYControlRequestParams, type RstreamAuth, RstreamAuthResource, RstreamAuthResource as RstreamAuthRessource, RstreamTunnelsClient as RstreamClient, RstreamClientsResource, RstreamClientsResource as RstreamClientsRessource, RstreamTURNResource, RstreamTunnelsClient, type RstreamTunnelsConfig, RstreamTunnelsResource, RstreamTunnelsResource as RstreamTunnelsRessource, RstreamWebTTYResource, RstreamWebhookResource, RstreamWebhookResource as RstreamWebhookRessource, type StreamEndpoint, type StreamEntry, type StreamSummary, type StreamTLSInfo, type TURNCredentialMode, type TunnelFilter, RstreamTunnelsClient as Tunnels, type TunnelsResolutionConfig, WEBHOOK_DELIVERY_ID_HEADER, WEBHOOK_EVENT_ID_HEADER, WEBHOOK_EVENT_TYPE_HEADER, WEBHOOK_ID_HEADER, WEBHOOK_SIGNATURE_HEADER, Watch, type WatchConfig, type WatchWsEvents, type WebTTYCapabilities, type WebTTYControlRequest, type WebTTYKeyGrant, type WebTTYKeyGrantDecryptMaterial, type WebTTYParticipant, type WebTTYParticipantLive, type WebTTYServer, type WebTTYSession, type WebTTYSessionEvent, type WebTTYSessionGroup, type WebTTYSessionLive, type WebTTYTransport, type WebhookEvent, type WebhookHeaders, type WebhookPayload, type WsEvent, attachWebTTYParticipantParamsSchema, buildWebhookHeaders, clientFilterSchema, clientSchema, createAPITURNCredentials, createAPPTURNCredentials, createAuthTokenFromClientCredentials, createPATTURNCredentials, createTURNCredentials, createWebTTYControlRequestParamsSchema, detachWebTTYParticipantParamsSchema, eventSchema, formatStreamAccessPath, formatTunnelHost, generateWebhookSigningSecret, listClientsParamsSchema, listClientsResponseSchema, listTunnelsParamsSchema, listTunnelsResponseSchema, listWebTTYControlRequestsParamsSchema, listWebTTYKeyGrantDecryptMaterialParamsSchema, listWebTTYSessionGroupsParamsSchema, listWebTTYSessionsParamsSchema, normalizeEngineAddress, parseWebTTYServers, projectLogEventsSchema, readWebTTYSessionEventsParamsSchema, resolveControlPlaneCredentials, resolveManagedTunnelsProject, resolveTunnelsAPIURL, resolveTunnelsCredentials, resolveTunnelsEngine, resolveTunnelsRegion, resolveWebTTYBrowserEndpoint, resolveWebTTYControlRequestParamsSchema, resolveWebTTYServerTransport, signWebhookPayload, streamEndpointSchema, streamEntrySchema, streamSummaryEventSchema, streamSummarySchema, streamTLSInfoSchema, streamWebTTYMetadataSchema, tunnelFilterSchema, turnCredentialModeSchema, validateTURNCredentialsRequest, webTTYCapabilitiesSchema, webTTYContextMetadataSchema, webTTYControlRequestSchema, webTTYCryptoMetadataSchema, webTTYEncryptionModeSchema, webTTYKeyGrantDecryptMaterialSchema, webTTYKeyGrantSchema, webTTYOriginSchema, webTTYParticipantLiveSchema, webTTYParticipantRoleSchema, webTTYParticipantSchema, webTTYRecordingModeSchema, webTTYSessionEventSchema, webTTYSessionGroupSchema, webTTYSessionLiveSchema, webTTYSessionModeSchema, webTTYSessionSchema, webTTYTransportSchema, webhookEventsSchema, webttyServerSchema, webttyTransportSchema, wsEventsSchema };
|