@aperture-browser/api-schema 0.0.0-init.0 → 0.0.0-nightly.81.d77f21219f66

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 CHANGED
@@ -3,3 +3,5 @@
3
3
  Effect Schemas and a typed `HttpClient` for the [Aperture](https://github.com/tarik02/aperture) HTTP API, generated from its OpenAPI spec with `@effect/openapi-generator`.
4
4
 
5
5
  Most apps want [`@aperture-browser/api-client`](https://www.npmjs.com/package/@aperture-browser/api-client), which builds on this package. Requires `effect` 4.
6
+
7
+ Documentation: https://aperture-browser-docs.pages.dev/docs/packages/api-client#api-schema
package/dist/index.d.ts CHANGED
@@ -107,21 +107,19 @@ declare const SessionCollaborationCapabilities: Schema.Struct<{
107
107
  readonly editorToken: Schema.String;
108
108
  readonly viewerToken: Schema.String;
109
109
  }>;
110
- type SessionProxy = {
111
- readonly "upstream": "direct" | "proxy" | "tunnel";
112
- readonly "url"?: string;
113
- readonly "tunnel"?: {
114
- readonly "url"?: string;
115
- };
116
- readonly "bypass"?: string;
110
+ type SessionProxyUpstream = {
111
+ readonly "url": string;
117
112
  };
118
- declare const SessionProxy: Schema.Struct<{
119
- readonly upstream: Schema.Literals<readonly ["direct", "proxy", "tunnel"]>;
120
- readonly url: Schema.optionalKey<Schema.String>;
121
- readonly tunnel: Schema.optionalKey<Schema.Struct<{
122
- readonly url: Schema.optionalKey<Schema.String>;
123
- }>>;
124
- readonly bypass: Schema.optionalKey<Schema.String>;
113
+ declare const SessionProxyUpstream: Schema.Struct<{
114
+ readonly url: Schema.String;
115
+ }>;
116
+ type ProxyRule = {
117
+ readonly "match": string;
118
+ readonly "via": string;
119
+ };
120
+ declare const ProxyRule: Schema.Struct<{
121
+ readonly match: Schema.String;
122
+ readonly via: Schema.String;
125
123
  }>;
126
124
  type BrowserConfig = {
127
125
  readonly "channel": string;
@@ -207,6 +205,14 @@ declare const InitialOPFSFile: Schema.Struct<{
207
205
  readonly path: Schema.String;
208
206
  readonly body: Schema.String;
209
207
  }>;
208
+ type ProxyUpstream = {
209
+ readonly "url": string;
210
+ readonly "auth"?: string;
211
+ };
212
+ declare const ProxyUpstream: Schema.Struct<{
213
+ readonly url: Schema.String;
214
+ readonly auth: Schema.optionalKey<Schema.String>;
215
+ }>;
210
216
  type ProxyTunnelConfig = {
211
217
  readonly "url"?: string;
212
218
  readonly "auth"?: string;
@@ -506,6 +512,33 @@ declare const Snapshot: Schema.Struct<{
506
512
  readonly expiresAt: Schema.optionalKey<Schema.String>;
507
513
  readonly tags: Schema.optionalKey<Schema.suspend<Schema.Codec<StringMap, StringMap, never, never>>>;
508
514
  }>;
515
+ type SessionProxy = {
516
+ readonly "upstreams": {
517
+ readonly [x: string]: SessionProxyUpstream;
518
+ };
519
+ readonly "rules": ReadonlyArray<ProxyRule>;
520
+ readonly "upstream": "direct" | "proxy" | "tunnel";
521
+ readonly "url"?: string;
522
+ readonly "tunnel"?: {
523
+ readonly "url"?: string;
524
+ };
525
+ readonly "bypass"?: string;
526
+ };
527
+ declare const SessionProxy: Schema.Struct<{
528
+ readonly upstreams: Schema.$Record<Schema.String, Schema.Struct<{
529
+ readonly url: Schema.String;
530
+ }>>;
531
+ readonly rules: Schema.$Array<Schema.Struct<{
532
+ readonly match: Schema.String;
533
+ readonly via: Schema.String;
534
+ }>>;
535
+ readonly upstream: Schema.Literals<readonly ["direct", "proxy", "tunnel"]>;
536
+ readonly url: Schema.optionalKey<Schema.String>;
537
+ readonly tunnel: Schema.optionalKey<Schema.Struct<{
538
+ readonly url: Schema.optionalKey<Schema.String>;
539
+ }>>;
540
+ readonly bypass: Schema.optionalKey<Schema.String>;
541
+ }>;
509
542
  type InitialTargetStorageOrigin = {
510
543
  readonly "origin": string;
511
544
  readonly "entries": ReadonlyArray<BrowserStorageEntry>;
@@ -583,12 +616,24 @@ declare const InitialIndexedDBIndex: Schema.Struct<{
583
616
  readonly multiEntry: Schema.Boolean;
584
617
  }>;
585
618
  type ProxyConfig = {
619
+ readonly "upstreams"?: {
620
+ readonly [x: string]: ProxyUpstream;
621
+ };
622
+ readonly "rules"?: ReadonlyArray<ProxyRule>;
586
623
  readonly "upstream"?: "direct" | "proxy" | "tunnel";
587
624
  readonly "url"?: string;
588
625
  readonly "tunnel"?: ProxyTunnelConfig;
589
626
  readonly "bypass"?: string;
590
627
  };
591
628
  declare const ProxyConfig: Schema.Struct<{
629
+ readonly upstreams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Struct<{
630
+ readonly url: Schema.String;
631
+ readonly auth: Schema.optionalKey<Schema.String>;
632
+ }>>>;
633
+ readonly rules: Schema.optionalKey<Schema.$Array<Schema.Struct<{
634
+ readonly match: Schema.String;
635
+ readonly via: Schema.String;
636
+ }>>>;
592
637
  readonly upstream: Schema.optionalKey<Schema.Literals<readonly ["direct", "proxy", "tunnel"]>>;
593
638
  readonly url: Schema.optionalKey<Schema.String>;
594
639
  readonly tunnel: Schema.optionalKey<Schema.Struct<{
@@ -597,14 +642,26 @@ declare const ProxyConfig: Schema.Struct<{
597
642
  }>>;
598
643
  readonly bypass: Schema.optionalKey<Schema.String>;
599
644
  }>;
600
- type UpdateProxyAssignment = {
645
+ type UpdateProxyConfig = {
646
+ readonly "upstreams"?: {
647
+ readonly [x: string]: ProxyUpstream;
648
+ };
649
+ readonly "rules"?: ReadonlyArray<ProxyRule>;
601
650
  readonly "upstream"?: "direct" | "proxy" | "tunnel";
602
651
  readonly "url"?: string;
603
652
  readonly "tunnel"?: ProxyTunnelConfig;
604
653
  readonly "bypass"?: string;
605
654
  readonly "drain"?: boolean;
606
655
  };
607
- declare const UpdateProxyAssignment: Schema.Struct<{
656
+ declare const UpdateProxyConfig: Schema.Struct<{
657
+ readonly upstreams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Struct<{
658
+ readonly url: Schema.String;
659
+ readonly auth: Schema.optionalKey<Schema.String>;
660
+ }>>>;
661
+ readonly rules: Schema.optionalKey<Schema.$Array<Schema.Struct<{
662
+ readonly match: Schema.String;
663
+ readonly via: Schema.String;
664
+ }>>>;
608
665
  readonly upstream: Schema.optionalKey<Schema.Literals<readonly ["direct", "proxy", "tunnel"]>>;
609
666
  readonly url: Schema.optionalKey<Schema.String>;
610
667
  readonly tunnel: Schema.optionalKey<Schema.Struct<{
@@ -812,6 +869,61 @@ declare const CreateTenantTokenInput: Schema.Struct<{
812
869
  readonly resourceId: Schema.String;
813
870
  }>>>;
814
871
  }>;
872
+ type InitialCacheStorageCache = {
873
+ readonly "name": string;
874
+ readonly "entries": ReadonlyArray<InitialCacheStorageEntry>;
875
+ };
876
+ declare const InitialCacheStorageCache: Schema.Struct<{
877
+ readonly name: Schema.String;
878
+ readonly entries: Schema.$Array<Schema.Struct<{
879
+ readonly url: Schema.String;
880
+ readonly requestHeaders: Schema.$Record<Schema.String, Schema.String>;
881
+ readonly responseHeaders: Schema.$Record<Schema.String, Schema.String>;
882
+ readonly responseStatus: Schema.Number;
883
+ readonly responseStatusText: Schema.String;
884
+ readonly responseBody: Schema.String;
885
+ }>>;
886
+ }>;
887
+ type SnapshotMutation = {
888
+ readonly "snapshot": Snapshot;
889
+ };
890
+ declare const SnapshotMutation: Schema.Struct<{
891
+ readonly snapshot: Schema.Struct<{
892
+ readonly id: Schema.suspend<Schema.Codec<string, string, never, never>>;
893
+ readonly name: Schema.String;
894
+ readonly tenantId: Schema.suspend<Schema.Codec<string, string, never, never>>;
895
+ readonly description: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
896
+ readonly parentSnapshotId: Schema.optionalKey<Schema.suspend<Schema.Codec<string, string, never, never>>>;
897
+ readonly promotedFromSessionId: Schema.optionalKey<Schema.suspend<Schema.Codec<string, string, never, never>>>;
898
+ readonly createdAt: Schema.String;
899
+ readonly deletedAt: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
900
+ readonly expiresAt: Schema.optionalKey<Schema.String>;
901
+ readonly tags: Schema.optionalKey<Schema.suspend<Schema.Codec<StringMap, StringMap, never, never>>>;
902
+ }>;
903
+ }>;
904
+ type SnapshotPage = {
905
+ readonly "data": ReadonlyArray<Snapshot>;
906
+ readonly "meta": PageMeta;
907
+ };
908
+ declare const SnapshotPage: Schema.Struct<{
909
+ readonly data: Schema.$Array<Schema.Struct<{
910
+ readonly id: Schema.suspend<Schema.Codec<string, string, never, never>>;
911
+ readonly name: Schema.String;
912
+ readonly tenantId: Schema.suspend<Schema.Codec<string, string, never, never>>;
913
+ readonly description: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
914
+ readonly parentSnapshotId: Schema.optionalKey<Schema.suspend<Schema.Codec<string, string, never, never>>>;
915
+ readonly promotedFromSessionId: Schema.optionalKey<Schema.suspend<Schema.Codec<string, string, never, never>>>;
916
+ readonly createdAt: Schema.String;
917
+ readonly deletedAt: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
918
+ readonly expiresAt: Schema.optionalKey<Schema.String>;
919
+ readonly tags: Schema.optionalKey<Schema.suspend<Schema.Codec<StringMap, StringMap, never, never>>>;
920
+ }>>;
921
+ readonly meta: Schema.Struct<{
922
+ readonly limit: Schema.Number;
923
+ readonly nextCursor: Schema.optionalKey<Schema.String>;
924
+ readonly hasMore: Schema.Boolean;
925
+ }>;
926
+ }>;
815
927
  type Session = {
816
928
  readonly "id": UUIDv7;
817
929
  readonly "tenantId": UUIDv7;
@@ -864,6 +976,13 @@ declare const Session: Schema.Struct<{
864
976
  readonly viewerToken: Schema.String;
865
977
  }>>;
866
978
  readonly proxy: Schema.optionalKey<Schema.Struct<{
979
+ readonly upstreams: Schema.$Record<Schema.String, Schema.Struct<{
980
+ readonly url: Schema.String;
981
+ }>>;
982
+ readonly rules: Schema.$Array<Schema.Struct<{
983
+ readonly match: Schema.String;
984
+ readonly via: Schema.String;
985
+ }>>;
867
986
  readonly upstream: Schema.Literals<readonly ["direct", "proxy", "tunnel"]>;
868
987
  readonly url: Schema.optionalKey<Schema.String>;
869
988
  readonly tunnel: Schema.optionalKey<Schema.Struct<{
@@ -872,61 +991,6 @@ declare const Session: Schema.Struct<{
872
991
  readonly bypass: Schema.optionalKey<Schema.String>;
873
992
  }>>;
874
993
  }>;
875
- type InitialCacheStorageCache = {
876
- readonly "name": string;
877
- readonly "entries": ReadonlyArray<InitialCacheStorageEntry>;
878
- };
879
- declare const InitialCacheStorageCache: Schema.Struct<{
880
- readonly name: Schema.String;
881
- readonly entries: Schema.$Array<Schema.Struct<{
882
- readonly url: Schema.String;
883
- readonly requestHeaders: Schema.$Record<Schema.String, Schema.String>;
884
- readonly responseHeaders: Schema.$Record<Schema.String, Schema.String>;
885
- readonly responseStatus: Schema.Number;
886
- readonly responseStatusText: Schema.String;
887
- readonly responseBody: Schema.String;
888
- }>>;
889
- }>;
890
- type SnapshotMutation = {
891
- readonly "snapshot": Snapshot;
892
- };
893
- declare const SnapshotMutation: Schema.Struct<{
894
- readonly snapshot: Schema.Struct<{
895
- readonly id: Schema.suspend<Schema.Codec<string, string, never, never>>;
896
- readonly name: Schema.String;
897
- readonly tenantId: Schema.suspend<Schema.Codec<string, string, never, never>>;
898
- readonly description: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
899
- readonly parentSnapshotId: Schema.optionalKey<Schema.suspend<Schema.Codec<string, string, never, never>>>;
900
- readonly promotedFromSessionId: Schema.optionalKey<Schema.suspend<Schema.Codec<string, string, never, never>>>;
901
- readonly createdAt: Schema.String;
902
- readonly deletedAt: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
903
- readonly expiresAt: Schema.optionalKey<Schema.String>;
904
- readonly tags: Schema.optionalKey<Schema.suspend<Schema.Codec<StringMap, StringMap, never, never>>>;
905
- }>;
906
- }>;
907
- type SnapshotPage = {
908
- readonly "data": ReadonlyArray<Snapshot>;
909
- readonly "meta": PageMeta;
910
- };
911
- declare const SnapshotPage: Schema.Struct<{
912
- readonly data: Schema.$Array<Schema.Struct<{
913
- readonly id: Schema.suspend<Schema.Codec<string, string, never, never>>;
914
- readonly name: Schema.String;
915
- readonly tenantId: Schema.suspend<Schema.Codec<string, string, never, never>>;
916
- readonly description: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
917
- readonly parentSnapshotId: Schema.optionalKey<Schema.suspend<Schema.Codec<string, string, never, never>>>;
918
- readonly promotedFromSessionId: Schema.optionalKey<Schema.suspend<Schema.Codec<string, string, never, never>>>;
919
- readonly createdAt: Schema.String;
920
- readonly deletedAt: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
921
- readonly expiresAt: Schema.optionalKey<Schema.String>;
922
- readonly tags: Schema.optionalKey<Schema.suspend<Schema.Codec<StringMap, StringMap, never, never>>>;
923
- }>>;
924
- readonly meta: Schema.Struct<{
925
- readonly limit: Schema.Number;
926
- readonly nextCursor: Schema.optionalKey<Schema.String>;
927
- readonly hasMore: Schema.Boolean;
928
- }>;
929
- }>;
930
994
  type InitialBrowserControlState = {
931
995
  readonly "locator": InitialBrowserElementLocator;
932
996
  readonly "value": string;
@@ -1174,6 +1238,13 @@ declare const SessionPage: Schema.Struct<{
1174
1238
  readonly viewerToken: Schema.String;
1175
1239
  }>>;
1176
1240
  readonly proxy: Schema.optionalKey<Schema.Struct<{
1241
+ readonly upstreams: Schema.$Record<Schema.String, Schema.Struct<{
1242
+ readonly url: Schema.String;
1243
+ }>>;
1244
+ readonly rules: Schema.$Array<Schema.Struct<{
1245
+ readonly match: Schema.String;
1246
+ readonly via: Schema.String;
1247
+ }>>;
1177
1248
  readonly upstream: Schema.Literals<readonly ["direct", "proxy", "tunnel"]>;
1178
1249
  readonly url: Schema.optionalKey<Schema.String>;
1179
1250
  readonly tunnel: Schema.optionalKey<Schema.Struct<{
@@ -1225,6 +1296,13 @@ declare const CreateSessionResult: Schema.Struct<{
1225
1296
  readonly viewerToken: Schema.String;
1226
1297
  }>>;
1227
1298
  readonly proxy: Schema.optionalKey<Schema.Struct<{
1299
+ readonly upstreams: Schema.$Record<Schema.String, Schema.Struct<{
1300
+ readonly url: Schema.String;
1301
+ }>>;
1302
+ readonly rules: Schema.$Array<Schema.Struct<{
1303
+ readonly match: Schema.String;
1304
+ readonly via: Schema.String;
1305
+ }>>;
1228
1306
  readonly upstream: Schema.Literals<readonly ["direct", "proxy", "tunnel"]>;
1229
1307
  readonly url: Schema.optionalKey<Schema.String>;
1230
1308
  readonly tunnel: Schema.optionalKey<Schema.Struct<{
@@ -1271,6 +1349,13 @@ declare const SessionBulkResponse: Schema.Struct<{
1271
1349
  readonly viewerToken: Schema.String;
1272
1350
  }>>;
1273
1351
  readonly proxy: Schema.optionalKey<Schema.Struct<{
1352
+ readonly upstreams: Schema.$Record<Schema.String, Schema.Struct<{
1353
+ readonly url: Schema.String;
1354
+ }>>;
1355
+ readonly rules: Schema.$Array<Schema.Struct<{
1356
+ readonly match: Schema.String;
1357
+ readonly via: Schema.String;
1358
+ }>>;
1274
1359
  readonly upstream: Schema.Literals<readonly ["direct", "proxy", "tunnel"]>;
1275
1360
  readonly url: Schema.optionalKey<Schema.String>;
1276
1361
  readonly tunnel: Schema.optionalKey<Schema.Struct<{
@@ -1317,6 +1402,13 @@ declare const SessionMutation: Schema.Struct<{
1317
1402
  readonly viewerToken: Schema.String;
1318
1403
  }>>;
1319
1404
  readonly proxy: Schema.optionalKey<Schema.Struct<{
1405
+ readonly upstreams: Schema.$Record<Schema.String, Schema.Struct<{
1406
+ readonly url: Schema.String;
1407
+ }>>;
1408
+ readonly rules: Schema.$Array<Schema.Struct<{
1409
+ readonly match: Schema.String;
1410
+ readonly via: Schema.String;
1411
+ }>>;
1320
1412
  readonly upstream: Schema.Literals<readonly ["direct", "proxy", "tunnel"]>;
1321
1413
  readonly url: Schema.optionalKey<Schema.String>;
1322
1414
  readonly tunnel: Schema.optionalKey<Schema.Struct<{
@@ -1986,6 +2078,14 @@ declare const CreateSessionInput: Schema.Struct<{
1986
2078
  }>>;
1987
2079
  readonly tags: Schema.optionalKey<Schema.suspend<Schema.Codec<StringMap, StringMap, never, never>>>;
1988
2080
  readonly proxy: Schema.optionalKey<Schema.Struct<{
2081
+ readonly upstreams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Struct<{
2082
+ readonly url: Schema.String;
2083
+ readonly auth: Schema.optionalKey<Schema.String>;
2084
+ }>>>;
2085
+ readonly rules: Schema.optionalKey<Schema.$Array<Schema.Struct<{
2086
+ readonly match: Schema.String;
2087
+ readonly via: Schema.String;
2088
+ }>>>;
1989
2089
  readonly upstream: Schema.optionalKey<Schema.Literals<readonly ["direct", "proxy", "tunnel"]>>;
1990
2090
  readonly url: Schema.optionalKey<Schema.String>;
1991
2091
  readonly tunnel: Schema.optionalKey<Schema.Struct<{
@@ -2699,6 +2799,13 @@ declare const ListSessions200: Schema.Struct<{
2699
2799
  readonly viewerToken: Schema.String;
2700
2800
  }>>;
2701
2801
  readonly proxy: Schema.optionalKey<Schema.Struct<{
2802
+ readonly upstreams: Schema.$Record<Schema.String, Schema.Struct<{
2803
+ readonly url: Schema.String;
2804
+ }>>;
2805
+ readonly rules: Schema.$Array<Schema.Struct<{
2806
+ readonly match: Schema.String;
2807
+ readonly via: Schema.String;
2808
+ }>>;
2702
2809
  readonly upstream: Schema.Literals<readonly ["direct", "proxy", "tunnel"]>;
2703
2810
  readonly url: Schema.optionalKey<Schema.String>;
2704
2811
  readonly tunnel: Schema.optionalKey<Schema.Struct<{
@@ -2929,6 +3036,14 @@ declare const CreateSessionRequestJson: Schema.Struct<{
2929
3036
  }>>;
2930
3037
  readonly tags: Schema.optionalKey<Schema.suspend<Schema.Codec<StringMap, StringMap, never, never>>>;
2931
3038
  readonly proxy: Schema.optionalKey<Schema.Struct<{
3039
+ readonly upstreams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Struct<{
3040
+ readonly url: Schema.String;
3041
+ readonly auth: Schema.optionalKey<Schema.String>;
3042
+ }>>>;
3043
+ readonly rules: Schema.optionalKey<Schema.$Array<Schema.Struct<{
3044
+ readonly match: Schema.String;
3045
+ readonly via: Schema.String;
3046
+ }>>>;
2932
3047
  readonly upstream: Schema.optionalKey<Schema.Literals<readonly ["direct", "proxy", "tunnel"]>>;
2933
3048
  readonly url: Schema.optionalKey<Schema.String>;
2934
3049
  readonly tunnel: Schema.optionalKey<Schema.Struct<{
@@ -2971,6 +3086,13 @@ declare const CreateSession201: Schema.Struct<{
2971
3086
  readonly viewerToken: Schema.String;
2972
3087
  }>>;
2973
3088
  readonly proxy: Schema.optionalKey<Schema.Struct<{
3089
+ readonly upstreams: Schema.$Record<Schema.String, Schema.Struct<{
3090
+ readonly url: Schema.String;
3091
+ }>>;
3092
+ readonly rules: Schema.$Array<Schema.Struct<{
3093
+ readonly match: Schema.String;
3094
+ readonly via: Schema.String;
3095
+ }>>;
2974
3096
  readonly upstream: Schema.Literals<readonly ["direct", "proxy", "tunnel"]>;
2975
3097
  readonly url: Schema.optionalKey<Schema.String>;
2976
3098
  readonly tunnel: Schema.optionalKey<Schema.Struct<{
@@ -3032,6 +3154,13 @@ declare const GetSessionsBulk200: Schema.Struct<{
3032
3154
  readonly viewerToken: Schema.String;
3033
3155
  }>>;
3034
3156
  readonly proxy: Schema.optionalKey<Schema.Struct<{
3157
+ readonly upstreams: Schema.$Record<Schema.String, Schema.Struct<{
3158
+ readonly url: Schema.String;
3159
+ }>>;
3160
+ readonly rules: Schema.$Array<Schema.Struct<{
3161
+ readonly match: Schema.String;
3162
+ readonly via: Schema.String;
3163
+ }>>;
3035
3164
  readonly upstream: Schema.Literals<readonly ["direct", "proxy", "tunnel"]>;
3036
3165
  readonly url: Schema.optionalKey<Schema.String>;
3037
3166
  readonly tunnel: Schema.optionalKey<Schema.Struct<{
@@ -3086,6 +3215,13 @@ declare const GetSession200: Schema.Struct<{
3086
3215
  readonly viewerToken: Schema.String;
3087
3216
  }>>;
3088
3217
  readonly proxy: Schema.optionalKey<Schema.Struct<{
3218
+ readonly upstreams: Schema.$Record<Schema.String, Schema.Struct<{
3219
+ readonly url: Schema.String;
3220
+ }>>;
3221
+ readonly rules: Schema.$Array<Schema.Struct<{
3222
+ readonly match: Schema.String;
3223
+ readonly via: Schema.String;
3224
+ }>>;
3089
3225
  readonly upstream: Schema.Literals<readonly ["direct", "proxy", "tunnel"]>;
3090
3226
  readonly url: Schema.optionalKey<Schema.String>;
3091
3227
  readonly tunnel: Schema.optionalKey<Schema.Struct<{
@@ -3140,6 +3276,13 @@ declare const DeleteSession200: Schema.Struct<{
3140
3276
  readonly viewerToken: Schema.String;
3141
3277
  }>>;
3142
3278
  readonly proxy: Schema.optionalKey<Schema.Struct<{
3279
+ readonly upstreams: Schema.$Record<Schema.String, Schema.Struct<{
3280
+ readonly url: Schema.String;
3281
+ }>>;
3282
+ readonly rules: Schema.$Array<Schema.Struct<{
3283
+ readonly match: Schema.String;
3284
+ readonly via: Schema.String;
3285
+ }>>;
3143
3286
  readonly upstream: Schema.Literals<readonly ["direct", "proxy", "tunnel"]>;
3144
3287
  readonly url: Schema.optionalKey<Schema.String>;
3145
3288
  readonly tunnel: Schema.optionalKey<Schema.Struct<{
@@ -3201,6 +3344,13 @@ declare const ReplaceSessionTags200: Schema.Struct<{
3201
3344
  readonly viewerToken: Schema.String;
3202
3345
  }>>;
3203
3346
  readonly proxy: Schema.optionalKey<Schema.Struct<{
3347
+ readonly upstreams: Schema.$Record<Schema.String, Schema.Struct<{
3348
+ readonly url: Schema.String;
3349
+ }>>;
3350
+ readonly rules: Schema.$Array<Schema.Struct<{
3351
+ readonly match: Schema.String;
3352
+ readonly via: Schema.String;
3353
+ }>>;
3204
3354
  readonly upstream: Schema.Literals<readonly ["direct", "proxy", "tunnel"]>;
3205
3355
  readonly url: Schema.optionalKey<Schema.String>;
3206
3356
  readonly tunnel: Schema.optionalKey<Schema.Struct<{
@@ -3225,8 +3375,16 @@ type UpdateSessionProxyParams = {
3225
3375
  declare const UpdateSessionProxyParams: Schema.Struct<{
3226
3376
  readonly "X-Aperture-Tenant-Id": Schema.optionalKey<Schema.String>;
3227
3377
  }>;
3228
- type UpdateSessionProxyRequestJson = UpdateProxyAssignment;
3378
+ type UpdateSessionProxyRequestJson = UpdateProxyConfig;
3229
3379
  declare const UpdateSessionProxyRequestJson: Schema.Struct<{
3380
+ readonly upstreams: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Struct<{
3381
+ readonly url: Schema.String;
3382
+ readonly auth: Schema.optionalKey<Schema.String>;
3383
+ }>>>;
3384
+ readonly rules: Schema.optionalKey<Schema.$Array<Schema.Struct<{
3385
+ readonly match: Schema.String;
3386
+ readonly via: Schema.String;
3387
+ }>>>;
3230
3388
  readonly upstream: Schema.optionalKey<Schema.Literals<readonly ["direct", "proxy", "tunnel"]>>;
3231
3389
  readonly url: Schema.optionalKey<Schema.String>;
3232
3390
  readonly tunnel: Schema.optionalKey<Schema.Struct<{
@@ -3269,6 +3427,13 @@ declare const UpdateSessionProxy200: Schema.Struct<{
3269
3427
  readonly viewerToken: Schema.String;
3270
3428
  }>>;
3271
3429
  readonly proxy: Schema.optionalKey<Schema.Struct<{
3430
+ readonly upstreams: Schema.$Record<Schema.String, Schema.Struct<{
3431
+ readonly url: Schema.String;
3432
+ }>>;
3433
+ readonly rules: Schema.$Array<Schema.Struct<{
3434
+ readonly match: Schema.String;
3435
+ readonly via: Schema.String;
3436
+ }>>;
3272
3437
  readonly upstream: Schema.Literals<readonly ["direct", "proxy", "tunnel"]>;
3273
3438
  readonly url: Schema.optionalKey<Schema.String>;
3274
3439
  readonly tunnel: Schema.optionalKey<Schema.Struct<{
@@ -3326,6 +3491,13 @@ declare const SuspendSession200: Schema.Struct<{
3326
3491
  readonly viewerToken: Schema.String;
3327
3492
  }>>;
3328
3493
  readonly proxy: Schema.optionalKey<Schema.Struct<{
3494
+ readonly upstreams: Schema.$Record<Schema.String, Schema.Struct<{
3495
+ readonly url: Schema.String;
3496
+ }>>;
3497
+ readonly rules: Schema.$Array<Schema.Struct<{
3498
+ readonly match: Schema.String;
3499
+ readonly via: Schema.String;
3500
+ }>>;
3329
3501
  readonly upstream: Schema.Literals<readonly ["direct", "proxy", "tunnel"]>;
3330
3502
  readonly url: Schema.optionalKey<Schema.String>;
3331
3503
  readonly tunnel: Schema.optionalKey<Schema.Struct<{
@@ -3383,6 +3555,13 @@ declare const ReopenSession200: Schema.Struct<{
3383
3555
  readonly viewerToken: Schema.String;
3384
3556
  }>>;
3385
3557
  readonly proxy: Schema.optionalKey<Schema.Struct<{
3558
+ readonly upstreams: Schema.$Record<Schema.String, Schema.Struct<{
3559
+ readonly url: Schema.String;
3560
+ }>>;
3561
+ readonly rules: Schema.$Array<Schema.Struct<{
3562
+ readonly match: Schema.String;
3563
+ readonly via: Schema.String;
3564
+ }>>;
3386
3565
  readonly upstream: Schema.Literals<readonly ["direct", "proxy", "tunnel"]>;
3387
3566
  readonly url: Schema.optionalKey<Schema.String>;
3388
3567
  readonly tunnel: Schema.optionalKey<Schema.Struct<{
@@ -3440,6 +3619,13 @@ declare const RotateSessionToken200: Schema.Struct<{
3440
3619
  readonly viewerToken: Schema.String;
3441
3620
  }>>;
3442
3621
  readonly proxy: Schema.optionalKey<Schema.Struct<{
3622
+ readonly upstreams: Schema.$Record<Schema.String, Schema.Struct<{
3623
+ readonly url: Schema.String;
3624
+ }>>;
3625
+ readonly rules: Schema.$Array<Schema.Struct<{
3626
+ readonly match: Schema.String;
3627
+ readonly via: Schema.String;
3628
+ }>>;
3443
3629
  readonly upstream: Schema.Literals<readonly ["direct", "proxy", "tunnel"]>;
3444
3630
  readonly url: Schema.optionalKey<Schema.String>;
3445
3631
  readonly tunnel: Schema.optionalKey<Schema.Struct<{
@@ -3497,6 +3683,13 @@ declare const RotateCollaborationCapability200: Schema.Struct<{
3497
3683
  readonly viewerToken: Schema.String;
3498
3684
  }>>;
3499
3685
  readonly proxy: Schema.optionalKey<Schema.Struct<{
3686
+ readonly upstreams: Schema.$Record<Schema.String, Schema.Struct<{
3687
+ readonly url: Schema.String;
3688
+ }>>;
3689
+ readonly rules: Schema.$Array<Schema.Struct<{
3690
+ readonly match: Schema.String;
3691
+ readonly via: Schema.String;
3692
+ }>>;
3500
3693
  readonly upstream: Schema.Literals<readonly ["direct", "proxy", "tunnel"]>;
3501
3694
  readonly url: Schema.optionalKey<Schema.String>;
3502
3695
  readonly tunnel: Schema.optionalKey<Schema.Struct<{
@@ -4220,7 +4413,7 @@ interface ApertureApi {
4220
4413
  readonly config?: Config | undefined;
4221
4414
  }) => Effect.Effect<WithOptionalResponse<typeof ReplaceSessionTags200.Type, Config>, HttpClientError.HttpClientError | SchemaError>;
4222
4415
  /**
4223
- * Replaces the session egress proxy assignment. The change applies to new connections; existing connections finish on the previous assignment unless `drain` resets live tunnel streams. Secrets are write-only — tunnel auth is never returned and upstream proxy passwords come back masked.
4416
+ * Replaces the session egress proxy configuration. The change applies to new connections; existing connections keep their route unless `drain` resets live tunnel streams. Secrets are write-only — tunnel auth is never returned and proxy URL passwords come back masked.
4224
4417
  */
4225
4418
  readonly "updateSessionProxy": <Config extends OperationConfig>(sessionId: string, options: {
4226
4419
  readonly params?: typeof UpdateSessionProxyParams.Encoded | undefined;
@@ -4376,5 +4569,5 @@ interface ApertureApiError<Tag extends string, E> {
4376
4569
  }
4377
4570
  declare const ApertureApiError: <Tag extends string, E>(tag: Tag, cause: E, response: HttpClientResponse.HttpClientResponse) => ApertureApiError<Tag, E>;
4378
4571
  //#endregion
4379
- export { ApertureApi, ApertureApiError, AuditEvent, AuditEventPage, AuthMe, AuthorityType, BrowserChannel, BrowserChannels, BrowserConfig, BrowserCookieSameSite, BrowserStorageEntry, CreateAdminToken201, CreateAdminTokenInput, CreateAdminTokenRequestJson, CreateAdminTokendefault, CreateSession201, CreateSessionFileDownloadURL200, CreateSessionFileDownloadURLParams, CreateSessionFileDownloadURLRequestJson, CreateSessionFileDownloadURLdefault, CreateSessionInput, CreateSessionParams, CreateSessionRecording201, CreateSessionRecordingInput, CreateSessionRecordingParams, CreateSessionRecordingRequestJson, CreateSessionRecordingdefault, CreateSessionRequestJson, CreateSessionResult, CreateSessiondefault, CreateTenant201, CreateTenantRequestJson, CreateTenantToken201, CreateTenantTokenInput, CreateTenantTokenRequestJson, CreateTenantTokendefault, CreateTenantdefault, CreateTokenResponse, CreateUser201, CreateUserInvitation201, CreateUserInvitationdefault, CreateUserRequestJson, CreateUserdefault, CursorVisibility, DeleteSession200, DeleteSessionParams, DeleteSessiondefault, DeleteSnapshot200, DeleteSnapshotParams, DeleteSnapshotdefault, DeleteTenant200, DeleteTenantMembershipdefault, DeleteTenantdefault, DisableUser200, DisableUserdefault, Error, ErrorDetail, Event, EventPage, GetCurrentPrincipal200, GetCurrentPrincipalParams, GetCurrentPrincipaldefault, GetHealth200, GetSession200, GetSessionCursor200, GetSessionCursorParams, GetSessionCursordefault, GetSessionParams, GetSessionRecording200, GetSessionRecordingParams, GetSessionRecordingdefault, GetSessiondefault, GetSessionsBulk200, GetSessionsBulkParams, GetSessionsBulkRequestJson, GetSessionsBulkdefault, GetTenant200, GetTenantdefault, GetUser200, GetUserdefault, Health, IceServer, InitialBrowserContentEditableState, InitialBrowserControlSelection, InitialBrowserControlState, InitialBrowserCookie, InitialBrowserCookiePartitionKey, InitialBrowserDocumentSelection, InitialBrowserDocumentState, InitialBrowserElementLocator, InitialBrowserElementPathStep, InitialBrowserElementScrollPosition, InitialBrowserScrollPosition, InitialBrowserSelectionEndpoint, InitialBrowserStorageState, InitialBrowserTarget, InitialCacheStorageCache, InitialCacheStorageEntry, InitialIndexedDBDatabase, InitialIndexedDBIndex, InitialIndexedDBIndexKeyPath, InitialIndexedDBKeyPath, InitialIndexedDBObjectStore, InitialIndexedDBRecord, InitialOPFSFile, InitialStorageOrigin, InitialTargetStorageOrigin, ListAdminTokens200, ListAdminTokensParams, ListAdminTokensdefault, ListAuditEvents200, ListAuditEventsParams, ListAuditEventsdefault, ListBrowserChannels200, ListBrowserChannelsdefault, ListEvents200, ListEventsParams, ListEventsdefault, ListSessionRecordings200, ListSessionRecordingsParams, ListSessionRecordingsdefault, ListSessions200, ListSessionsParams, ListSessionsdefault, ListSnapshots200, ListSnapshotsParams, ListSnapshotsdefault, ListTenantMemberships200, ListTenantMembershipsdefault, ListTenantTokens200, ListTenantTokensParams, ListTenantTokensdefault, ListTenants200, ListTenantsParams, ListTenantsdefault, ListUserMemberships200, ListUserMembershipsdefault, ListUsers200, ListUsersParams, ListUsersdefault, OperationConfig, PageMeta, Principal, PrincipalType, PromoteSession200, PromoteSessionInput, PromoteSessionParams, PromoteSessionRequestJson, PromoteSessiondefault, ProxyConfig, ProxyTunnelConfig, Recording, ReopenSession200, ReopenSessionParams, ReopenSessiondefault, ReplaceSessionTags200, ReplaceSessionTagsParams, ReplaceSessionTagsRequestJson, ReplaceSessionTagsdefault, ReplaceSnapshotTags200, ReplaceSnapshotTagsParams, ReplaceSnapshotTagsRequestJson, ReplaceSnapshotTagsdefault, ReplaceTagsInput, ResourceGrant, ResourceMode, ResourceType, RestoreSnapshot200, RestoreSnapshotParams, RestoreSnapshotdefault, RestoreTenant200, RestoreTenantdefault, RestoreUser200, RestoreUserdefault, RetargetSessionRecording200, RetargetSessionRecordingInput, RetargetSessionRecordingParams, RetargetSessionRecordingRequestJson, RetargetSessionRecordingdefault, RevokeAdminTokendefault, RevokeTenantTokendefault, RotateCollaborationCapability200, RotateCollaborationCapabilityParams, RotateCollaborationCapabilitydefault, RotateSessionToken200, RotateSessionTokenParams, RotateSessionTokendefault, Scope, Session, SessionBulkInput, SessionBulkResponse, SessionCollaborationCapabilities, SessionFile, SessionFileDownloadURL, SessionFileDownloadURLInput, SessionMedia, SessionMutation, SessionPage, SessionProxy, SessionStatus, SetSessionCursor200, SetSessionCursorParams, SetSessionCursorRequestJson, SetSessionCursordefault, Snapshot, SnapshotMutation, SnapshotPage, StopSessionRecording200, StopSessionRecordingParams, StopSessionRecordingdefault, StringMap, SuspendSession200, SuspendSessionParams, SuspendSessiondefault, Tenant, TenantInput, TenantMembership, TenantMembershipInput, TenantPage, TenantScope, Token, TokenPage, UUIDv7, UpdateProxyAssignment, UpdateSelectedTenant200, UpdateSelectedTenantRequestJson, UpdateSelectedTenantdefault, UpdateSessionProxy200, UpdateSessionProxyParams, UpdateSessionProxyRequestJson, UpdateSessionProxydefault, UpdateSnapshot200, UpdateSnapshotInput, UpdateSnapshotParams, UpdateSnapshotRequestJson, UpdateSnapshotdefault, UpdateTenant200, UpdateTenantRequestJson, UpdateTenantdefault, UpdateUser200, UpdateUserRequestJson, UpdateUserdefault, UpsertTenantMembership200, UpsertTenantMembershipRequestJson, UpsertTenantMembershipdefault, User, UserInput, UserInvitation, UserPage, WithOptionalResponse, make };
4572
+ export { ApertureApi, ApertureApiError, AuditEvent, AuditEventPage, AuthMe, AuthorityType, BrowserChannel, BrowserChannels, BrowserConfig, BrowserCookieSameSite, BrowserStorageEntry, CreateAdminToken201, CreateAdminTokenInput, CreateAdminTokenRequestJson, CreateAdminTokendefault, CreateSession201, CreateSessionFileDownloadURL200, CreateSessionFileDownloadURLParams, CreateSessionFileDownloadURLRequestJson, CreateSessionFileDownloadURLdefault, CreateSessionInput, CreateSessionParams, CreateSessionRecording201, CreateSessionRecordingInput, CreateSessionRecordingParams, CreateSessionRecordingRequestJson, CreateSessionRecordingdefault, CreateSessionRequestJson, CreateSessionResult, CreateSessiondefault, CreateTenant201, CreateTenantRequestJson, CreateTenantToken201, CreateTenantTokenInput, CreateTenantTokenRequestJson, CreateTenantTokendefault, CreateTenantdefault, CreateTokenResponse, CreateUser201, CreateUserInvitation201, CreateUserInvitationdefault, CreateUserRequestJson, CreateUserdefault, CursorVisibility, DeleteSession200, DeleteSessionParams, DeleteSessiondefault, DeleteSnapshot200, DeleteSnapshotParams, DeleteSnapshotdefault, DeleteTenant200, DeleteTenantMembershipdefault, DeleteTenantdefault, DisableUser200, DisableUserdefault, Error, ErrorDetail, Event, EventPage, GetCurrentPrincipal200, GetCurrentPrincipalParams, GetCurrentPrincipaldefault, GetHealth200, GetSession200, GetSessionCursor200, GetSessionCursorParams, GetSessionCursordefault, GetSessionParams, GetSessionRecording200, GetSessionRecordingParams, GetSessionRecordingdefault, GetSessiondefault, GetSessionsBulk200, GetSessionsBulkParams, GetSessionsBulkRequestJson, GetSessionsBulkdefault, GetTenant200, GetTenantdefault, GetUser200, GetUserdefault, Health, IceServer, InitialBrowserContentEditableState, InitialBrowserControlSelection, InitialBrowserControlState, InitialBrowserCookie, InitialBrowserCookiePartitionKey, InitialBrowserDocumentSelection, InitialBrowserDocumentState, InitialBrowserElementLocator, InitialBrowserElementPathStep, InitialBrowserElementScrollPosition, InitialBrowserScrollPosition, InitialBrowserSelectionEndpoint, InitialBrowserStorageState, InitialBrowserTarget, InitialCacheStorageCache, InitialCacheStorageEntry, InitialIndexedDBDatabase, InitialIndexedDBIndex, InitialIndexedDBIndexKeyPath, InitialIndexedDBKeyPath, InitialIndexedDBObjectStore, InitialIndexedDBRecord, InitialOPFSFile, InitialStorageOrigin, InitialTargetStorageOrigin, ListAdminTokens200, ListAdminTokensParams, ListAdminTokensdefault, ListAuditEvents200, ListAuditEventsParams, ListAuditEventsdefault, ListBrowserChannels200, ListBrowserChannelsdefault, ListEvents200, ListEventsParams, ListEventsdefault, ListSessionRecordings200, ListSessionRecordingsParams, ListSessionRecordingsdefault, ListSessions200, ListSessionsParams, ListSessionsdefault, ListSnapshots200, ListSnapshotsParams, ListSnapshotsdefault, ListTenantMemberships200, ListTenantMembershipsdefault, ListTenantTokens200, ListTenantTokensParams, ListTenantTokensdefault, ListTenants200, ListTenantsParams, ListTenantsdefault, ListUserMemberships200, ListUserMembershipsdefault, ListUsers200, ListUsersParams, ListUsersdefault, OperationConfig, PageMeta, Principal, PrincipalType, PromoteSession200, PromoteSessionInput, PromoteSessionParams, PromoteSessionRequestJson, PromoteSessiondefault, ProxyConfig, ProxyRule, ProxyTunnelConfig, ProxyUpstream, Recording, ReopenSession200, ReopenSessionParams, ReopenSessiondefault, ReplaceSessionTags200, ReplaceSessionTagsParams, ReplaceSessionTagsRequestJson, ReplaceSessionTagsdefault, ReplaceSnapshotTags200, ReplaceSnapshotTagsParams, ReplaceSnapshotTagsRequestJson, ReplaceSnapshotTagsdefault, ReplaceTagsInput, ResourceGrant, ResourceMode, ResourceType, RestoreSnapshot200, RestoreSnapshotParams, RestoreSnapshotdefault, RestoreTenant200, RestoreTenantdefault, RestoreUser200, RestoreUserdefault, RetargetSessionRecording200, RetargetSessionRecordingInput, RetargetSessionRecordingParams, RetargetSessionRecordingRequestJson, RetargetSessionRecordingdefault, RevokeAdminTokendefault, RevokeTenantTokendefault, RotateCollaborationCapability200, RotateCollaborationCapabilityParams, RotateCollaborationCapabilitydefault, RotateSessionToken200, RotateSessionTokenParams, RotateSessionTokendefault, Scope, Session, SessionBulkInput, SessionBulkResponse, SessionCollaborationCapabilities, SessionFile, SessionFileDownloadURL, SessionFileDownloadURLInput, SessionMedia, SessionMutation, SessionPage, SessionProxy, SessionProxyUpstream, SessionStatus, SetSessionCursor200, SetSessionCursorParams, SetSessionCursorRequestJson, SetSessionCursordefault, Snapshot, SnapshotMutation, SnapshotPage, StopSessionRecording200, StopSessionRecordingParams, StopSessionRecordingdefault, StringMap, SuspendSession200, SuspendSessionParams, SuspendSessiondefault, Tenant, TenantInput, TenantMembership, TenantMembershipInput, TenantPage, TenantScope, Token, TokenPage, UUIDv7, UpdateProxyConfig, UpdateSelectedTenant200, UpdateSelectedTenantRequestJson, UpdateSelectedTenantdefault, UpdateSessionProxy200, UpdateSessionProxyParams, UpdateSessionProxyRequestJson, UpdateSessionProxydefault, UpdateSnapshot200, UpdateSnapshotInput, UpdateSnapshotParams, UpdateSnapshotRequestJson, UpdateSnapshotdefault, UpdateTenant200, UpdateTenantRequestJson, UpdateTenantdefault, UpdateUser200, UpdateUserRequestJson, UpdateUserdefault, UpsertTenantMembership200, UpsertTenantMembershipRequestJson, UpsertTenantMembershipdefault, User, UserInput, UserInvitation, UserPage, WithOptionalResponse, make };
4380
4573
  //# sourceMappingURL=index.d.ts.map