@floegence/redevplugin-contracts 3.23.2 → 3.24.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.
@@ -63,11 +63,8 @@ export declare const repositoryIndexJSONSchema: {
63
63
  readonly plugin: {
64
64
  readonly type: "object";
65
65
  readonly additionalProperties: false;
66
- readonly required: readonly ["plugin_id", "path", "manifest", "release"];
66
+ readonly required: readonly ["slug", "path", "manifest", "release"];
67
67
  readonly properties: {
68
- readonly plugin_id: {
69
- readonly $ref: "#/$defs/identifier";
70
- };
71
68
  readonly path: {
72
69
  readonly $ref: "#/$defs/relativePath";
73
70
  };
@@ -83,6 +80,12 @@ export declare const repositoryIndexJSONSchema: {
83
80
  readonly release: {
84
81
  readonly $ref: "#/$defs/release";
85
82
  };
83
+ readonly slug: {
84
+ readonly type: "string";
85
+ readonly minLength: 1;
86
+ readonly maxLength: 80;
87
+ readonly pattern: "^[a-z0-9]+(?:-[a-z0-9]+)*$";
88
+ };
86
89
  };
87
90
  };
88
91
  readonly target: {
@@ -139,3 +142,1661 @@ export declare const repositoryIdentityJSONSchema: {
139
142
  };
140
143
  };
141
144
  };
145
+ export declare const sourceManifestJSONSchema: {
146
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
147
+ readonly $id: "https://schemas.redevplugin.dev/plugin-api/1/source-manifest.schema.json";
148
+ readonly title: "ReDevPlugin author source manifest";
149
+ readonly type: "object";
150
+ readonly additionalProperties: false;
151
+ readonly required: readonly ["schema_version", "plugin", "api", "permissions", "presentation", "surfaces", "workers", "methods"];
152
+ readonly properties: {
153
+ readonly schema_version: {
154
+ readonly const: "redevplugin.source.v1";
155
+ };
156
+ readonly publisher: {
157
+ readonly type: "object";
158
+ readonly additionalProperties: false;
159
+ readonly required: readonly [];
160
+ readonly properties: {
161
+ readonly display_name: {
162
+ readonly type: "string";
163
+ readonly minLength: 1;
164
+ readonly maxLength: 128;
165
+ };
166
+ };
167
+ };
168
+ readonly plugin: {
169
+ readonly type: "object";
170
+ readonly additionalProperties: false;
171
+ readonly required: readonly ["slug", "display_name", "version"];
172
+ readonly properties: {
173
+ readonly display_name: {
174
+ readonly type: "string";
175
+ readonly minLength: 1;
176
+ readonly maxLength: 128;
177
+ };
178
+ readonly version: {
179
+ readonly $ref: "#/$defs/semver";
180
+ };
181
+ readonly slug: {
182
+ readonly type: "string";
183
+ readonly minLength: 1;
184
+ readonly maxLength: 80;
185
+ readonly pattern: "^[a-z0-9]+(?:-[a-z0-9]+)*$";
186
+ };
187
+ };
188
+ };
189
+ readonly presentation: {
190
+ readonly type: "object";
191
+ readonly additionalProperties: false;
192
+ readonly required: readonly ["locales"];
193
+ readonly properties: {
194
+ readonly locales: {
195
+ readonly type: "object";
196
+ readonly additionalProperties: false;
197
+ readonly required: readonly ["default"];
198
+ readonly properties: {
199
+ readonly default: {
200
+ readonly $ref: "#/$defs/locale";
201
+ };
202
+ };
203
+ };
204
+ readonly icon: {
205
+ readonly type: "object";
206
+ readonly additionalProperties: false;
207
+ readonly required: readonly ["path"];
208
+ readonly properties: {
209
+ readonly path: {
210
+ readonly type: "string";
211
+ readonly minLength: 1;
212
+ readonly maxLength: 512;
213
+ };
214
+ };
215
+ };
216
+ };
217
+ };
218
+ readonly surfaces: {
219
+ readonly type: "array";
220
+ readonly items: {
221
+ readonly type: "object";
222
+ readonly additionalProperties: false;
223
+ readonly required: readonly ["surface_id", "kind", "label", "entry", "web"];
224
+ readonly properties: {
225
+ readonly surface_id: {
226
+ readonly type: "string";
227
+ readonly minLength: 1;
228
+ };
229
+ readonly kind: {
230
+ readonly enum: readonly ["view", "command", "background"];
231
+ };
232
+ readonly intent: {
233
+ readonly enum: readonly ["primary", "secondary", "utility"];
234
+ };
235
+ readonly label: {
236
+ readonly type: "string";
237
+ readonly minLength: 1;
238
+ };
239
+ readonly entry: {
240
+ readonly type: "string";
241
+ readonly minLength: 1;
242
+ };
243
+ readonly icon: {
244
+ readonly type: "string";
245
+ readonly minLength: 1;
246
+ readonly pattern: "^[A-Za-z0-9_][A-Za-z0-9_.-]*(?:/[A-Za-z0-9_][A-Za-z0-9_.-]*)*\\.(?:[Pp][Nn][Gg]|[Jj][Pp][Gg]|[Jj][Pp][Ee][Gg]|[Gg][Ii][Ff]|[Ww][Ee][Bb][Pp]|[Ii][Cc][Oo])$";
247
+ };
248
+ readonly default_size: {
249
+ readonly type: "object";
250
+ readonly additionalProperties: false;
251
+ readonly required: readonly ["width", "height"];
252
+ readonly properties: {
253
+ readonly width: {
254
+ readonly type: "integer";
255
+ readonly minimum: 1;
256
+ };
257
+ readonly height: {
258
+ readonly type: "integer";
259
+ readonly minimum: 1;
260
+ };
261
+ };
262
+ };
263
+ readonly required_methods: {
264
+ readonly description: "Methods required to open this surface. Omitted retains aggregate authorization. An empty array allows opening without method grants; calls remain individually authorized. Requires authorization.scoped.v1.";
265
+ readonly type: "array";
266
+ readonly uniqueItems: true;
267
+ readonly items: {
268
+ readonly type: "string";
269
+ readonly minLength: 1;
270
+ };
271
+ };
272
+ readonly web: {
273
+ readonly type: "object";
274
+ readonly additionalProperties: false;
275
+ readonly required: readonly ["root", "spa"];
276
+ readonly properties: {
277
+ readonly root: {
278
+ readonly type: "string";
279
+ readonly minLength: 1;
280
+ readonly maxLength: 512;
281
+ };
282
+ readonly spa: {
283
+ readonly type: "boolean";
284
+ };
285
+ readonly network: {
286
+ readonly type: "array";
287
+ readonly items: {
288
+ readonly allOf: readonly [{
289
+ readonly $ref: "#/$defs/network_access";
290
+ }, {
291
+ readonly properties: {
292
+ readonly transport: {
293
+ readonly enum: readonly ["http", "websocket"];
294
+ };
295
+ };
296
+ }];
297
+ };
298
+ };
299
+ readonly storage: {
300
+ readonly type: "array";
301
+ readonly uniqueItems: true;
302
+ readonly items: {
303
+ readonly type: "object";
304
+ readonly additionalProperties: false;
305
+ readonly required: readonly ["store_id", "operations"];
306
+ readonly properties: {
307
+ readonly store_id: {
308
+ readonly type: "string";
309
+ readonly minLength: 1;
310
+ readonly maxLength: 128;
311
+ };
312
+ readonly operations: {
313
+ readonly type: "array";
314
+ readonly minItems: 1;
315
+ readonly uniqueItems: true;
316
+ readonly items: {
317
+ readonly enum: readonly ["read", "write", "delete", "list", "get", "put", "query", "exec"];
318
+ };
319
+ };
320
+ };
321
+ };
322
+ };
323
+ readonly settings: {
324
+ readonly type: "array";
325
+ readonly uniqueItems: true;
326
+ readonly items: {
327
+ readonly enum: readonly ["get", "patch"];
328
+ };
329
+ };
330
+ };
331
+ };
332
+ };
333
+ };
334
+ };
335
+ readonly capability_bindings: {
336
+ readonly type: "array";
337
+ readonly items: {
338
+ readonly type: "object";
339
+ readonly additionalProperties: false;
340
+ readonly required: readonly ["binding_id", "contract"];
341
+ readonly properties: {
342
+ readonly binding_id: {
343
+ readonly type: "string";
344
+ readonly minLength: 1;
345
+ };
346
+ readonly contract: {
347
+ readonly $ref: "host-capability-pin-v1.schema.json";
348
+ };
349
+ };
350
+ };
351
+ };
352
+ readonly methods: {
353
+ readonly type: "array";
354
+ readonly items: {
355
+ readonly type: "object";
356
+ readonly additionalProperties: false;
357
+ readonly required: readonly ["method", "route"];
358
+ readonly properties: {
359
+ readonly method: {
360
+ readonly type: "string";
361
+ readonly minLength: 1;
362
+ };
363
+ readonly effect: {
364
+ readonly enum: readonly ["read", "write", "delete", "execute", "admin"];
365
+ };
366
+ readonly execution: {
367
+ readonly enum: readonly ["sync", "operation", "subscription"];
368
+ };
369
+ readonly dangerous: {
370
+ readonly type: "boolean";
371
+ };
372
+ readonly preflight_only: {
373
+ readonly type: "boolean";
374
+ };
375
+ readonly broker_access: {
376
+ readonly type: "object";
377
+ readonly additionalProperties: false;
378
+ readonly properties: {
379
+ readonly storage: {
380
+ readonly type: "array";
381
+ readonly uniqueItems: true;
382
+ readonly items: {
383
+ readonly type: "object";
384
+ readonly additionalProperties: false;
385
+ readonly required: readonly ["store_id", "operations"];
386
+ readonly properties: {
387
+ readonly store_id: {
388
+ readonly type: "string";
389
+ readonly minLength: 1;
390
+ readonly maxLength: 128;
391
+ };
392
+ readonly operations: {
393
+ readonly type: "array";
394
+ readonly minItems: 1;
395
+ readonly uniqueItems: true;
396
+ readonly items: {
397
+ readonly enum: readonly ["read", "write", "delete", "list", "get", "put", "query", "exec"];
398
+ };
399
+ };
400
+ };
401
+ };
402
+ };
403
+ readonly network: {
404
+ readonly type: "array";
405
+ readonly uniqueItems: true;
406
+ readonly items: {
407
+ readonly $ref: "#/$defs/network_access";
408
+ };
409
+ };
410
+ readonly process: {
411
+ readonly description: "Host process grants never widen authenticated read/write ceilings. Mutating operations require a non-read method and a readable, writable session; output and status operations require read access. The Host enforces this without rewriting package manifests.";
412
+ readonly type: "array";
413
+ readonly minItems: 1;
414
+ readonly uniqueItems: true;
415
+ readonly items: {
416
+ readonly type: "object";
417
+ readonly additionalProperties: false;
418
+ readonly required: readonly ["operations"];
419
+ readonly properties: {
420
+ readonly operations: {
421
+ readonly type: "array";
422
+ readonly minItems: 1;
423
+ readonly uniqueItems: true;
424
+ readonly items: {
425
+ readonly enum: readonly ["start", "attach", "status", "write_stdin", "close_stdin", "read_stdout", "read_stderr", "wait", "terminate", "kill", "close"];
426
+ };
427
+ };
428
+ };
429
+ };
430
+ };
431
+ };
432
+ };
433
+ readonly route: {
434
+ readonly type: "object";
435
+ readonly additionalProperties: false;
436
+ readonly required: readonly ["kind"];
437
+ readonly properties: {
438
+ readonly kind: {
439
+ readonly enum: readonly ["capability", "worker", "core_action", "surface"];
440
+ };
441
+ readonly binding_id: {
442
+ readonly type: "string";
443
+ readonly minLength: 1;
444
+ };
445
+ readonly target_method: {
446
+ readonly type: "string";
447
+ readonly minLength: 1;
448
+ };
449
+ readonly worker_id: {
450
+ readonly type: "string";
451
+ readonly minLength: 1;
452
+ };
453
+ readonly action_id: {
454
+ readonly type: "string";
455
+ readonly minLength: 1;
456
+ };
457
+ readonly surface_id: {
458
+ readonly type: "string";
459
+ readonly minLength: 1;
460
+ };
461
+ };
462
+ readonly allOf: readonly [{
463
+ readonly if: {
464
+ readonly properties: {
465
+ readonly kind: {
466
+ readonly const: "capability";
467
+ };
468
+ };
469
+ readonly required: readonly ["kind"];
470
+ };
471
+ readonly then: {
472
+ readonly required: readonly ["binding_id", "target_method"];
473
+ readonly not: {
474
+ readonly anyOf: readonly [{
475
+ readonly required: readonly ["worker_id"];
476
+ }, {
477
+ readonly required: readonly ["action_id"];
478
+ }, {
479
+ readonly required: readonly ["surface_id"];
480
+ }];
481
+ };
482
+ };
483
+ }, {
484
+ readonly if: {
485
+ readonly properties: {
486
+ readonly kind: {
487
+ readonly const: "worker";
488
+ };
489
+ };
490
+ readonly required: readonly ["kind"];
491
+ };
492
+ readonly then: {
493
+ readonly required: readonly ["worker_id"];
494
+ readonly not: {
495
+ readonly anyOf: readonly [{
496
+ readonly required: readonly ["binding_id"];
497
+ }, {
498
+ readonly required: readonly ["target_method"];
499
+ }, {
500
+ readonly required: readonly ["action_id"];
501
+ }, {
502
+ readonly required: readonly ["surface_id"];
503
+ }];
504
+ };
505
+ };
506
+ }, {
507
+ readonly if: {
508
+ readonly properties: {
509
+ readonly kind: {
510
+ readonly const: "core_action";
511
+ };
512
+ };
513
+ readonly required: readonly ["kind"];
514
+ };
515
+ readonly then: {
516
+ readonly required: readonly ["action_id"];
517
+ readonly not: {
518
+ readonly anyOf: readonly [{
519
+ readonly required: readonly ["binding_id"];
520
+ }, {
521
+ readonly required: readonly ["target_method"];
522
+ }, {
523
+ readonly required: readonly ["worker_id"];
524
+ }, {
525
+ readonly required: readonly ["surface_id"];
526
+ }];
527
+ };
528
+ };
529
+ }, {
530
+ readonly if: {
531
+ readonly properties: {
532
+ readonly kind: {
533
+ readonly const: "surface";
534
+ };
535
+ };
536
+ readonly required: readonly ["kind"];
537
+ };
538
+ readonly then: {
539
+ readonly required: readonly ["surface_id"];
540
+ readonly not: {
541
+ readonly anyOf: readonly [{
542
+ readonly required: readonly ["binding_id"];
543
+ }, {
544
+ readonly required: readonly ["target_method"];
545
+ }, {
546
+ readonly required: readonly ["worker_id"];
547
+ }, {
548
+ readonly required: readonly ["action_id"];
549
+ }];
550
+ };
551
+ };
552
+ }];
553
+ };
554
+ readonly confirmation: {
555
+ readonly type: "object";
556
+ readonly additionalProperties: false;
557
+ readonly required: readonly ["mode"];
558
+ readonly properties: {
559
+ readonly mode: {
560
+ readonly enum: readonly ["none", "required", "risk_based"];
561
+ };
562
+ readonly preflight_method: {
563
+ readonly type: readonly ["string", "null"];
564
+ };
565
+ readonly request_hash_fields: {
566
+ readonly type: "array";
567
+ readonly items: {
568
+ readonly type: "string";
569
+ };
570
+ };
571
+ readonly plan_hash_required: {
572
+ readonly type: "boolean";
573
+ };
574
+ };
575
+ };
576
+ readonly cancel_policy: {
577
+ readonly type: "object";
578
+ readonly additionalProperties: false;
579
+ readonly required: readonly ["cancelable"];
580
+ readonly properties: {
581
+ readonly cancelable: {
582
+ readonly type: "boolean";
583
+ };
584
+ readonly disable_behavior: {
585
+ readonly enum: readonly ["cancel", "orphan", "wait"];
586
+ };
587
+ readonly uninstall_behavior: {
588
+ readonly enum: readonly ["cancel_then_block_delete", "force_cleanup_allowed"];
589
+ };
590
+ readonly ack_timeout_ms: {
591
+ readonly type: "integer";
592
+ readonly minimum: 0;
593
+ };
594
+ };
595
+ readonly allOf: readonly [{
596
+ readonly if: {
597
+ readonly properties: {
598
+ readonly cancelable: {
599
+ readonly const: true;
600
+ };
601
+ };
602
+ readonly required: readonly ["cancelable"];
603
+ };
604
+ readonly then: {
605
+ readonly required: readonly ["ack_timeout_ms"];
606
+ readonly properties: {
607
+ readonly ack_timeout_ms: {
608
+ readonly type: "integer";
609
+ readonly minimum: 1;
610
+ };
611
+ };
612
+ };
613
+ }, {
614
+ readonly if: {
615
+ readonly properties: {
616
+ readonly cancelable: {
617
+ readonly const: false;
618
+ };
619
+ };
620
+ readonly required: readonly ["cancelable"];
621
+ };
622
+ readonly then: {
623
+ readonly properties: {
624
+ readonly ack_timeout_ms: {
625
+ readonly const: 0;
626
+ };
627
+ };
628
+ };
629
+ }];
630
+ };
631
+ readonly request_schema: {
632
+ readonly allOf: readonly [{
633
+ readonly $ref: "#/$defs/method_schema";
634
+ }, {
635
+ readonly type: "object";
636
+ readonly required: readonly ["type", "additionalProperties"];
637
+ readonly properties: {
638
+ readonly type: {
639
+ readonly const: "object";
640
+ };
641
+ readonly additionalProperties: {
642
+ readonly const: false;
643
+ };
644
+ };
645
+ }];
646
+ };
647
+ readonly response_schema: {
648
+ readonly allOf: readonly [{
649
+ readonly $ref: "#/$defs/method_schema";
650
+ }, {
651
+ readonly type: "object";
652
+ readonly required: readonly ["type", "additionalProperties"];
653
+ readonly properties: {
654
+ readonly type: {
655
+ readonly const: "object";
656
+ };
657
+ readonly additionalProperties: {
658
+ readonly const: false;
659
+ };
660
+ };
661
+ }];
662
+ };
663
+ readonly permissions: {
664
+ readonly description: "Explicit Worker permission ceiling. Omitted retains the package ceiling; an empty array grants no resource permissions. Requires authorization.scoped.v1.";
665
+ readonly type: "array";
666
+ readonly uniqueItems: true;
667
+ readonly items: {
668
+ readonly enum: readonly ["fs.workspace.read", "fs.workspace.write", "fs.home.read", "fs.home.write", "fs.environment.read", "fs.environment.write", "network.client", "network.listen", "process.local", "fs.selected.read", "fs.selected.write"];
669
+ };
670
+ };
671
+ };
672
+ readonly allOf: readonly [{
673
+ readonly if: {
674
+ readonly properties: {
675
+ readonly dangerous: {
676
+ readonly const: true;
677
+ };
678
+ };
679
+ readonly required: readonly ["dangerous"];
680
+ };
681
+ readonly then: {
682
+ readonly required: readonly ["confirmation"];
683
+ readonly properties: {
684
+ readonly confirmation: {
685
+ readonly properties: {
686
+ readonly mode: {
687
+ readonly enum: readonly ["required", "risk_based"];
688
+ };
689
+ };
690
+ };
691
+ };
692
+ };
693
+ }, {
694
+ readonly if: {
695
+ readonly properties: {
696
+ readonly route: {
697
+ readonly properties: {
698
+ readonly kind: {
699
+ readonly const: "capability";
700
+ };
701
+ };
702
+ readonly required: readonly ["kind"];
703
+ };
704
+ };
705
+ readonly required: readonly ["route"];
706
+ };
707
+ readonly then: {
708
+ readonly not: {
709
+ readonly anyOf: readonly [{
710
+ readonly required: readonly ["effect"];
711
+ }, {
712
+ readonly required: readonly ["execution"];
713
+ }, {
714
+ readonly required: readonly ["dangerous"];
715
+ }, {
716
+ readonly required: readonly ["preflight_only"];
717
+ }, {
718
+ readonly required: readonly ["confirmation"];
719
+ }, {
720
+ readonly required: readonly ["cancel_policy"];
721
+ }, {
722
+ readonly required: readonly ["request_schema"];
723
+ }, {
724
+ readonly required: readonly ["response_schema"];
725
+ }, {
726
+ readonly required: readonly ["broker_access"];
727
+ }];
728
+ };
729
+ };
730
+ readonly else: {
731
+ readonly required: readonly ["effect", "execution", "request_schema", "response_schema"];
732
+ };
733
+ }, {
734
+ readonly if: {
735
+ readonly properties: {
736
+ readonly preflight_only: {
737
+ readonly const: true;
738
+ };
739
+ };
740
+ readonly required: readonly ["preflight_only"];
741
+ };
742
+ readonly then: {
743
+ readonly properties: {
744
+ readonly effect: {
745
+ readonly const: "read";
746
+ };
747
+ readonly execution: {
748
+ readonly const: "sync";
749
+ };
750
+ readonly dangerous: {
751
+ readonly const: false;
752
+ };
753
+ };
754
+ };
755
+ }, {
756
+ readonly if: {
757
+ readonly properties: {
758
+ readonly execution: {
759
+ readonly enum: readonly ["operation", "subscription"];
760
+ };
761
+ };
762
+ readonly required: readonly ["execution"];
763
+ };
764
+ readonly then: {
765
+ readonly required: readonly ["cancel_policy"];
766
+ };
767
+ }, {
768
+ readonly if: {
769
+ readonly required: readonly ["permissions"];
770
+ };
771
+ readonly then: {
772
+ readonly properties: {
773
+ readonly route: {
774
+ readonly properties: {
775
+ readonly kind: {
776
+ readonly const: "worker";
777
+ };
778
+ };
779
+ };
780
+ };
781
+ };
782
+ }, {
783
+ readonly if: {
784
+ readonly properties: {
785
+ readonly route: {
786
+ readonly properties: {
787
+ readonly kind: {
788
+ readonly const: "surface";
789
+ };
790
+ };
791
+ readonly required: readonly ["kind"];
792
+ };
793
+ };
794
+ readonly required: readonly ["route"];
795
+ };
796
+ readonly then: {
797
+ readonly properties: {
798
+ readonly execution: {
799
+ readonly enum: readonly ["sync", "operation"];
800
+ };
801
+ };
802
+ };
803
+ }];
804
+ };
805
+ };
806
+ readonly workers: {
807
+ readonly type: "array";
808
+ readonly items: {
809
+ readonly type: "object";
810
+ readonly additionalProperties: false;
811
+ readonly required: readonly ["worker_id", "artifact", "mode", "scope", "memory_limit_bytes"];
812
+ readonly properties: {
813
+ readonly worker_id: {
814
+ readonly type: "string";
815
+ readonly minLength: 1;
816
+ };
817
+ readonly artifact: {
818
+ readonly type: "string";
819
+ readonly minLength: 1;
820
+ };
821
+ readonly mode: {
822
+ readonly const: "job";
823
+ };
824
+ readonly scope: {
825
+ readonly enum: readonly ["user", "environment"];
826
+ };
827
+ readonly memory_limit_bytes: {
828
+ readonly type: "integer";
829
+ readonly minimum: 1;
830
+ readonly maximum: 268435456;
831
+ };
832
+ };
833
+ };
834
+ };
835
+ readonly storage: {
836
+ readonly type: "object";
837
+ readonly additionalProperties: false;
838
+ readonly properties: {
839
+ readonly stores: {
840
+ readonly type: "array";
841
+ readonly maxItems: 16;
842
+ readonly items: {
843
+ readonly type: "object";
844
+ readonly additionalProperties: false;
845
+ readonly required: readonly ["store_id", "kind", "scope", "quota_bytes", "schema_version"];
846
+ readonly properties: {
847
+ readonly store_id: {
848
+ readonly type: "string";
849
+ readonly minLength: 1;
850
+ };
851
+ readonly kind: {
852
+ readonly enum: readonly ["kv", "files", "sqlite"];
853
+ };
854
+ readonly scope: {
855
+ readonly enum: readonly ["user", "environment"];
856
+ };
857
+ readonly quota_bytes: {
858
+ readonly type: "integer";
859
+ readonly minimum: 1;
860
+ readonly maximum: 1073741824;
861
+ };
862
+ readonly quota_files: {
863
+ readonly type: "integer";
864
+ readonly minimum: 1;
865
+ readonly maximum: 100000;
866
+ };
867
+ readonly schema_version: {
868
+ readonly type: "integer";
869
+ readonly minimum: 1;
870
+ };
871
+ };
872
+ };
873
+ };
874
+ };
875
+ };
876
+ readonly network_access: {
877
+ readonly type: "object";
878
+ readonly additionalProperties: false;
879
+ readonly properties: {
880
+ readonly connectors: {
881
+ readonly type: "array";
882
+ readonly items: {
883
+ readonly type: "object";
884
+ readonly additionalProperties: false;
885
+ readonly required: readonly ["connector_id", "transport", "scope"];
886
+ readonly properties: {
887
+ readonly connector_id: {
888
+ readonly type: "string";
889
+ readonly minLength: 1;
890
+ readonly maxLength: 128;
891
+ readonly pattern: "^[a-zA-Z0-9][a-zA-Z0-9_.-]{0,127}$";
892
+ };
893
+ readonly transport: {
894
+ readonly enum: readonly ["http", "websocket", "tcp", "udp"];
895
+ };
896
+ readonly scope: {
897
+ readonly enum: readonly ["user", "environment"];
898
+ };
899
+ readonly destinations: {
900
+ readonly type: "array";
901
+ readonly items: {
902
+ readonly type: "string";
903
+ readonly minLength: 1;
904
+ };
905
+ };
906
+ readonly auth: {
907
+ readonly type: "object";
908
+ };
909
+ readonly tls: {
910
+ readonly type: "object";
911
+ };
912
+ readonly configurable: {
913
+ readonly type: "boolean";
914
+ readonly description: "The Host must approve an exact user-configured target. Destinations must be empty when true.";
915
+ };
916
+ };
917
+ readonly allOf: readonly [{
918
+ readonly if: {
919
+ readonly properties: {
920
+ readonly configurable: {
921
+ readonly const: true;
922
+ };
923
+ };
924
+ readonly required: readonly ["configurable"];
925
+ };
926
+ readonly then: {
927
+ readonly properties: {
928
+ readonly destinations: {
929
+ readonly maxItems: 0;
930
+ };
931
+ };
932
+ };
933
+ readonly else: {
934
+ readonly required: readonly ["destinations"];
935
+ readonly properties: {
936
+ readonly destinations: {
937
+ readonly minItems: 1;
938
+ };
939
+ };
940
+ };
941
+ }];
942
+ };
943
+ };
944
+ };
945
+ };
946
+ readonly process: {
947
+ readonly type: "object";
948
+ readonly additionalProperties: false;
949
+ readonly properties: {
950
+ readonly resource_limits: {
951
+ readonly type: "object";
952
+ readonly additionalProperties: false;
953
+ readonly properties: {
954
+ readonly output_buffer_bytes: {
955
+ readonly type: "integer";
956
+ readonly minimum: 0;
957
+ readonly maximum: 16777216;
958
+ };
959
+ readonly max_runtime_ms: {
960
+ readonly type: "integer";
961
+ readonly minimum: 0;
962
+ readonly maximum: 86400000;
963
+ };
964
+ };
965
+ };
966
+ };
967
+ };
968
+ readonly background: {
969
+ readonly type: "object";
970
+ readonly additionalProperties: false;
971
+ readonly required: readonly ["strategy", "worker_id"];
972
+ readonly properties: {
973
+ readonly strategy: {
974
+ readonly enum: readonly ["runtime_start", "on_demand", "interval"];
975
+ };
976
+ readonly worker_id: {
977
+ readonly type: "string";
978
+ readonly minLength: 1;
979
+ };
980
+ readonly method: {
981
+ readonly type: "string";
982
+ readonly minLength: 1;
983
+ };
984
+ readonly params: {
985
+ readonly type: "object";
986
+ };
987
+ readonly interval_ms: {
988
+ readonly type: "integer";
989
+ readonly minimum: 1000;
990
+ readonly maximum: 86400000;
991
+ };
992
+ readonly max_runtime_ms: {
993
+ readonly type: "integer";
994
+ readonly minimum: 1;
995
+ readonly maximum: 300000;
996
+ };
997
+ };
998
+ readonly dependentRequired: {
999
+ readonly params: readonly ["method"];
1000
+ };
1001
+ readonly allOf: readonly [{
1002
+ readonly if: {
1003
+ readonly properties: {
1004
+ readonly strategy: {
1005
+ readonly const: "interval";
1006
+ };
1007
+ };
1008
+ };
1009
+ readonly then: {
1010
+ readonly required: readonly ["method", "interval_ms", "max_runtime_ms"];
1011
+ };
1012
+ readonly else: {
1013
+ readonly not: {
1014
+ readonly anyOf: readonly [{
1015
+ readonly required: readonly ["interval_ms"];
1016
+ }, {
1017
+ readonly required: readonly ["max_runtime_ms"];
1018
+ }];
1019
+ };
1020
+ };
1021
+ }];
1022
+ };
1023
+ readonly settings: {
1024
+ readonly type: "object";
1025
+ readonly additionalProperties: false;
1026
+ readonly required: readonly ["schema_version"];
1027
+ readonly properties: {
1028
+ readonly schema_version: {
1029
+ readonly type: "integer";
1030
+ readonly minimum: 1;
1031
+ };
1032
+ readonly fields: {
1033
+ readonly type: "array";
1034
+ readonly items: {
1035
+ readonly type: "object";
1036
+ readonly additionalProperties: false;
1037
+ readonly required: readonly ["key", "type", "scope", "label"];
1038
+ readonly properties: {
1039
+ readonly key: {
1040
+ readonly type: "string";
1041
+ readonly minLength: 1;
1042
+ };
1043
+ readonly type: {
1044
+ readonly type: "string";
1045
+ readonly minLength: 1;
1046
+ };
1047
+ readonly scope: {
1048
+ readonly enum: readonly ["user", "environment"];
1049
+ };
1050
+ readonly label: {
1051
+ readonly type: "string";
1052
+ readonly minLength: 1;
1053
+ };
1054
+ readonly default: true;
1055
+ readonly secret_ref: {
1056
+ readonly type: "string";
1057
+ };
1058
+ readonly options: {
1059
+ readonly type: "array";
1060
+ readonly items: {
1061
+ readonly $ref: "#/$defs/setting_option";
1062
+ };
1063
+ };
1064
+ readonly validation: {
1065
+ readonly type: "object";
1066
+ };
1067
+ };
1068
+ };
1069
+ };
1070
+ };
1071
+ };
1072
+ readonly intents: {
1073
+ readonly type: "array";
1074
+ readonly items: {
1075
+ readonly type: "object";
1076
+ readonly additionalProperties: false;
1077
+ readonly required: readonly ["intent_id", "method"];
1078
+ readonly properties: {
1079
+ readonly intent_id: {
1080
+ readonly type: "string";
1081
+ readonly minLength: 1;
1082
+ };
1083
+ readonly method: {
1084
+ readonly type: "string";
1085
+ readonly minLength: 1;
1086
+ };
1087
+ readonly payload_schema: {
1088
+ readonly type: "object";
1089
+ };
1090
+ };
1091
+ };
1092
+ };
1093
+ readonly api: {
1094
+ readonly type: "object";
1095
+ readonly additionalProperties: false;
1096
+ readonly required: readonly ["major"];
1097
+ readonly properties: {
1098
+ readonly major: {
1099
+ readonly const: 1;
1100
+ };
1101
+ readonly required_features: {
1102
+ readonly $ref: "#/$defs/required_features";
1103
+ };
1104
+ readonly optional_features: {
1105
+ readonly $ref: "#/$defs/optional_features";
1106
+ };
1107
+ };
1108
+ };
1109
+ readonly permissions: {
1110
+ readonly type: "array";
1111
+ readonly uniqueItems: true;
1112
+ readonly items: {
1113
+ readonly enum: readonly ["fs.workspace.read", "fs.workspace.write", "fs.home.read", "fs.home.write", "fs.environment.read", "fs.environment.write", "network.client", "network.listen", "process.local", "fs.selected.read", "fs.selected.write"];
1114
+ };
1115
+ };
1116
+ readonly data_upgrade: {
1117
+ readonly type: "object";
1118
+ readonly additionalProperties: false;
1119
+ readonly required: readonly ["from", "method", "max_bytes", "max_runtime_ms"];
1120
+ readonly properties: {
1121
+ readonly from: {
1122
+ readonly type: "array";
1123
+ readonly minItems: 1;
1124
+ readonly maxItems: 32;
1125
+ readonly uniqueItems: true;
1126
+ readonly items: {
1127
+ readonly type: "object";
1128
+ readonly additionalProperties: false;
1129
+ readonly required: readonly ["version", "shape_sha256"];
1130
+ readonly properties: {
1131
+ readonly version: {
1132
+ readonly $ref: "#/$defs/semver";
1133
+ };
1134
+ readonly shape_sha256: {
1135
+ readonly type: "string";
1136
+ readonly pattern: "^[0-9a-f]{64}$";
1137
+ };
1138
+ };
1139
+ };
1140
+ };
1141
+ readonly method: {
1142
+ readonly type: "string";
1143
+ readonly minLength: 1;
1144
+ readonly maxLength: 255;
1145
+ };
1146
+ readonly max_bytes: {
1147
+ readonly type: "integer";
1148
+ readonly minimum: 1;
1149
+ readonly maximum: 4294967296;
1150
+ };
1151
+ readonly max_runtime_ms: {
1152
+ readonly type: "integer";
1153
+ readonly minimum: 1;
1154
+ readonly maximum: 300000;
1155
+ };
1156
+ };
1157
+ };
1158
+ };
1159
+ readonly $defs: {
1160
+ readonly locale: {
1161
+ readonly type: "string";
1162
+ readonly minLength: 2;
1163
+ readonly maxLength: 64;
1164
+ readonly pattern: "^[A-Za-z]{2,8}(?:-[A-Za-z0-9]{1,8})*$";
1165
+ };
1166
+ readonly summary: {
1167
+ readonly type: "string";
1168
+ readonly minLength: 1;
1169
+ readonly maxLength: 240;
1170
+ };
1171
+ readonly description: {
1172
+ readonly type: "array";
1173
+ readonly minItems: 1;
1174
+ readonly maxItems: 12;
1175
+ readonly items: {
1176
+ readonly type: "string";
1177
+ readonly minLength: 1;
1178
+ readonly maxLength: 1000;
1179
+ };
1180
+ };
1181
+ readonly highlights: {
1182
+ readonly type: "array";
1183
+ readonly maxItems: 8;
1184
+ readonly items: {
1185
+ readonly type: "string";
1186
+ readonly minLength: 1;
1187
+ readonly maxLength: 240;
1188
+ };
1189
+ };
1190
+ readonly keywords: {
1191
+ readonly type: "array";
1192
+ readonly minItems: 1;
1193
+ readonly maxItems: 12;
1194
+ readonly items: {
1195
+ readonly type: "string";
1196
+ readonly minLength: 1;
1197
+ readonly maxLength: 64;
1198
+ };
1199
+ };
1200
+ readonly setting_option: {
1201
+ readonly type: "object";
1202
+ readonly additionalProperties: false;
1203
+ readonly required: readonly ["value", "label"];
1204
+ readonly properties: {
1205
+ readonly value: {
1206
+ readonly type: "string";
1207
+ readonly minLength: 1;
1208
+ readonly maxLength: 128;
1209
+ };
1210
+ readonly label: {
1211
+ readonly type: "string";
1212
+ readonly minLength: 1;
1213
+ readonly maxLength: 128;
1214
+ };
1215
+ };
1216
+ };
1217
+ readonly localized_surface: {
1218
+ readonly type: "object";
1219
+ readonly additionalProperties: false;
1220
+ readonly required: readonly ["surface_id", "label"];
1221
+ readonly properties: {
1222
+ readonly surface_id: {
1223
+ readonly type: "string";
1224
+ readonly minLength: 1;
1225
+ };
1226
+ readonly label: {
1227
+ readonly type: "string";
1228
+ readonly minLength: 1;
1229
+ readonly maxLength: 128;
1230
+ };
1231
+ };
1232
+ };
1233
+ readonly localized_setting: {
1234
+ readonly type: "object";
1235
+ readonly additionalProperties: false;
1236
+ readonly required: readonly ["key", "label", "options"];
1237
+ readonly properties: {
1238
+ readonly key: {
1239
+ readonly type: "string";
1240
+ readonly minLength: 1;
1241
+ };
1242
+ readonly label: {
1243
+ readonly type: "string";
1244
+ readonly minLength: 1;
1245
+ readonly maxLength: 128;
1246
+ };
1247
+ readonly options: {
1248
+ readonly type: "array";
1249
+ readonly items: {
1250
+ readonly $ref: "#/$defs/setting_option";
1251
+ };
1252
+ };
1253
+ };
1254
+ };
1255
+ readonly localization: {
1256
+ readonly type: "object";
1257
+ readonly additionalProperties: false;
1258
+ readonly required: readonly ["locale", "plugin_name", "summary", "description", "highlights", "keywords", "surfaces", "settings"];
1259
+ readonly properties: {
1260
+ readonly locale: {
1261
+ readonly $ref: "#/$defs/locale";
1262
+ };
1263
+ readonly plugin_name: {
1264
+ readonly type: "string";
1265
+ readonly minLength: 1;
1266
+ readonly maxLength: 128;
1267
+ };
1268
+ readonly publisher_name: {
1269
+ readonly type: "string";
1270
+ readonly minLength: 1;
1271
+ readonly maxLength: 128;
1272
+ };
1273
+ readonly summary: {
1274
+ readonly $ref: "#/$defs/summary";
1275
+ };
1276
+ readonly description: {
1277
+ readonly $ref: "#/$defs/description";
1278
+ };
1279
+ readonly highlights: {
1280
+ readonly $ref: "#/$defs/highlights";
1281
+ };
1282
+ readonly keywords: {
1283
+ readonly $ref: "#/$defs/keywords";
1284
+ };
1285
+ readonly surfaces: {
1286
+ readonly type: "array";
1287
+ readonly items: {
1288
+ readonly $ref: "#/$defs/localized_surface";
1289
+ };
1290
+ };
1291
+ readonly settings: {
1292
+ readonly type: "array";
1293
+ readonly items: {
1294
+ readonly $ref: "#/$defs/localized_setting";
1295
+ };
1296
+ };
1297
+ };
1298
+ };
1299
+ readonly semver: {
1300
+ readonly type: "string";
1301
+ readonly pattern: "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)(?:-(?:(?:0|[1-9][0-9]*|[0-9A-Za-z-]*[A-Za-z-][0-9A-Za-z-]*)(?:\\.(?:0|[1-9][0-9]*|[0-9A-Za-z-]*[A-Za-z-][0-9A-Za-z-]*))*))?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$";
1302
+ };
1303
+ readonly method_schema: {
1304
+ readonly oneOf: readonly [{
1305
+ readonly const: false;
1306
+ }, {
1307
+ readonly type: "object";
1308
+ readonly additionalProperties: false;
1309
+ readonly properties: {
1310
+ readonly $comment: {
1311
+ readonly type: "string";
1312
+ };
1313
+ readonly title: {
1314
+ readonly type: "string";
1315
+ };
1316
+ readonly description: {
1317
+ readonly type: "string";
1318
+ };
1319
+ readonly readOnly: {
1320
+ readonly type: "boolean";
1321
+ };
1322
+ readonly writeOnly: {
1323
+ readonly type: "boolean";
1324
+ };
1325
+ readonly $ref: {
1326
+ readonly type: "string";
1327
+ readonly pattern: "^#/\\$defs/[A-Za-z0-9._-]+$";
1328
+ };
1329
+ readonly $defs: {
1330
+ readonly type: "object";
1331
+ readonly additionalProperties: {
1332
+ readonly $ref: "#/$defs/method_schema";
1333
+ };
1334
+ };
1335
+ readonly type: {
1336
+ readonly oneOf: readonly [{
1337
+ readonly enum: readonly ["null", "boolean", "object", "array", "number", "integer", "string"];
1338
+ }, {
1339
+ readonly type: "array";
1340
+ readonly minItems: 1;
1341
+ readonly uniqueItems: true;
1342
+ readonly items: {
1343
+ readonly enum: readonly ["null", "boolean", "object", "array", "number", "integer", "string"];
1344
+ };
1345
+ }];
1346
+ };
1347
+ readonly properties: {
1348
+ readonly type: "object";
1349
+ readonly additionalProperties: {
1350
+ readonly $ref: "#/$defs/method_schema";
1351
+ };
1352
+ };
1353
+ readonly patternProperties: {
1354
+ readonly type: "object";
1355
+ readonly additionalProperties: {
1356
+ readonly $ref: "#/$defs/method_schema";
1357
+ };
1358
+ };
1359
+ readonly required: {
1360
+ readonly type: "array";
1361
+ readonly uniqueItems: true;
1362
+ readonly items: {
1363
+ readonly type: "string";
1364
+ };
1365
+ };
1366
+ readonly additionalProperties: {
1367
+ readonly const: false;
1368
+ };
1369
+ readonly items: {
1370
+ readonly $ref: "#/$defs/method_schema";
1371
+ };
1372
+ readonly allOf: {
1373
+ readonly type: "array";
1374
+ readonly minItems: 1;
1375
+ readonly items: {
1376
+ readonly $ref: "#/$defs/method_schema";
1377
+ };
1378
+ };
1379
+ readonly anyOf: {
1380
+ readonly type: "array";
1381
+ readonly minItems: 1;
1382
+ readonly items: {
1383
+ readonly $ref: "#/$defs/method_schema";
1384
+ };
1385
+ };
1386
+ readonly oneOf: {
1387
+ readonly type: "array";
1388
+ readonly minItems: 1;
1389
+ readonly items: {
1390
+ readonly $ref: "#/$defs/method_schema";
1391
+ };
1392
+ };
1393
+ readonly enum: {
1394
+ readonly type: "array";
1395
+ readonly minItems: 1;
1396
+ readonly uniqueItems: true;
1397
+ };
1398
+ readonly const: true;
1399
+ readonly default: true;
1400
+ readonly examples: {
1401
+ readonly type: "array";
1402
+ };
1403
+ readonly minimum: {
1404
+ readonly type: "number";
1405
+ };
1406
+ readonly maximum: {
1407
+ readonly type: "number";
1408
+ };
1409
+ readonly exclusiveMinimum: {
1410
+ readonly type: "number";
1411
+ };
1412
+ readonly exclusiveMaximum: {
1413
+ readonly type: "number";
1414
+ };
1415
+ readonly multipleOf: {
1416
+ readonly type: "number";
1417
+ readonly exclusiveMinimum: 0;
1418
+ };
1419
+ readonly minLength: {
1420
+ readonly type: "integer";
1421
+ readonly minimum: 0;
1422
+ };
1423
+ readonly maxLength: {
1424
+ readonly type: "integer";
1425
+ readonly minimum: 0;
1426
+ };
1427
+ readonly pattern: {
1428
+ readonly type: "string";
1429
+ };
1430
+ readonly format: {
1431
+ readonly type: "string";
1432
+ };
1433
+ readonly minItems: {
1434
+ readonly type: "integer";
1435
+ readonly minimum: 0;
1436
+ };
1437
+ readonly maxItems: {
1438
+ readonly type: "integer";
1439
+ readonly minimum: 0;
1440
+ };
1441
+ readonly uniqueItems: {
1442
+ readonly type: "boolean";
1443
+ };
1444
+ readonly minProperties: {
1445
+ readonly type: "integer";
1446
+ readonly minimum: 0;
1447
+ };
1448
+ readonly maxProperties: {
1449
+ readonly type: "integer";
1450
+ readonly minimum: 0;
1451
+ };
1452
+ };
1453
+ readonly anyOf: readonly [{
1454
+ readonly required: readonly ["type"];
1455
+ }, {
1456
+ readonly required: readonly ["$ref"];
1457
+ }, {
1458
+ readonly required: readonly ["properties"];
1459
+ }, {
1460
+ readonly required: readonly ["patternProperties"];
1461
+ }, {
1462
+ readonly required: readonly ["required"];
1463
+ }, {
1464
+ readonly required: readonly ["additionalProperties"];
1465
+ }, {
1466
+ readonly required: readonly ["minProperties"];
1467
+ }, {
1468
+ readonly required: readonly ["maxProperties"];
1469
+ }, {
1470
+ readonly required: readonly ["allOf"];
1471
+ }, {
1472
+ readonly required: readonly ["anyOf"];
1473
+ }, {
1474
+ readonly required: readonly ["oneOf"];
1475
+ }, {
1476
+ readonly required: readonly ["enum"];
1477
+ }, {
1478
+ readonly required: readonly ["const"];
1479
+ }];
1480
+ readonly allOf: readonly [{
1481
+ readonly if: {
1482
+ readonly required: readonly ["type"];
1483
+ readonly properties: {
1484
+ readonly type: {
1485
+ readonly anyOf: readonly [{
1486
+ readonly const: "object";
1487
+ }, {
1488
+ readonly type: "array";
1489
+ readonly contains: {
1490
+ readonly const: "object";
1491
+ };
1492
+ }];
1493
+ };
1494
+ };
1495
+ };
1496
+ readonly then: {
1497
+ readonly required: readonly ["additionalProperties"];
1498
+ readonly properties: {
1499
+ readonly additionalProperties: {
1500
+ readonly const: false;
1501
+ };
1502
+ };
1503
+ };
1504
+ }, {
1505
+ readonly if: {
1506
+ readonly anyOf: readonly [{
1507
+ readonly required: readonly ["properties"];
1508
+ }, {
1509
+ readonly required: readonly ["patternProperties"];
1510
+ }, {
1511
+ readonly required: readonly ["required"];
1512
+ }, {
1513
+ readonly required: readonly ["additionalProperties"];
1514
+ }, {
1515
+ readonly required: readonly ["minProperties"];
1516
+ }, {
1517
+ readonly required: readonly ["maxProperties"];
1518
+ }];
1519
+ };
1520
+ readonly then: {
1521
+ readonly required: readonly ["additionalProperties"];
1522
+ readonly properties: {
1523
+ readonly additionalProperties: {
1524
+ readonly const: false;
1525
+ };
1526
+ };
1527
+ };
1528
+ }];
1529
+ }];
1530
+ };
1531
+ readonly required_features: {
1532
+ readonly type: "array";
1533
+ readonly uniqueItems: true;
1534
+ readonly items: {
1535
+ readonly enum: readonly ["io.stream.v1", "fs.workspace.v1", "fs.home.v1", "fs.environment.v1", "fs.watch.v1", "net.http.v1", "net.websocket.v1", "net.tcp.v1", "net.udp.v1", "process.local.v1", "authorization.scoped.v1", "background.method.v1", "fs.selected.v1", "data.upgrade.v1", "background.interval.v1", "surface.resources.v1", "storage.transactions.v1"];
1536
+ };
1537
+ };
1538
+ readonly optional_features: {
1539
+ readonly type: "array";
1540
+ readonly uniqueItems: true;
1541
+ readonly items: {
1542
+ readonly type: "string";
1543
+ readonly pattern: "^[a-z][a-z0-9]*(?:[._-][a-z0-9]+)+$";
1544
+ readonly maxLength: 128;
1545
+ };
1546
+ };
1547
+ readonly network_access: {
1548
+ readonly type: "object";
1549
+ readonly additionalProperties: false;
1550
+ readonly required: readonly ["connector_id", "transport", "operations"];
1551
+ readonly properties: {
1552
+ readonly connector_id: {
1553
+ readonly type: "string";
1554
+ readonly minLength: 1;
1555
+ readonly maxLength: 128;
1556
+ readonly pattern: "^[a-zA-Z0-9][a-zA-Z0-9_.-]{0,127}$";
1557
+ };
1558
+ readonly transport: {
1559
+ readonly enum: readonly ["http", "websocket", "tcp", "udp"];
1560
+ };
1561
+ readonly operations: {
1562
+ readonly type: "array";
1563
+ readonly minItems: 1;
1564
+ readonly uniqueItems: true;
1565
+ readonly items: {
1566
+ readonly enum: readonly ["http", "http_stream", "websocket", "tcp", "udp"];
1567
+ };
1568
+ };
1569
+ readonly http_methods: {
1570
+ readonly type: "array";
1571
+ readonly minItems: 1;
1572
+ readonly uniqueItems: true;
1573
+ readonly items: {
1574
+ readonly enum: readonly ["GET", "HEAD", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"];
1575
+ };
1576
+ };
1577
+ };
1578
+ readonly allOf: readonly [{
1579
+ readonly if: {
1580
+ readonly properties: {
1581
+ readonly transport: {
1582
+ readonly const: "http";
1583
+ };
1584
+ };
1585
+ readonly required: readonly ["transport"];
1586
+ };
1587
+ readonly then: {
1588
+ readonly required: readonly ["http_methods"];
1589
+ };
1590
+ readonly else: {
1591
+ readonly not: {
1592
+ readonly required: readonly ["http_methods"];
1593
+ };
1594
+ };
1595
+ }];
1596
+ };
1597
+ };
1598
+ readonly allOf: readonly [{
1599
+ readonly if: {
1600
+ readonly properties: {
1601
+ readonly methods: {
1602
+ readonly contains: {
1603
+ readonly required: readonly ["permissions"];
1604
+ };
1605
+ };
1606
+ };
1607
+ readonly required: readonly ["methods"];
1608
+ };
1609
+ readonly then: {
1610
+ readonly properties: {
1611
+ readonly api: {
1612
+ readonly required: readonly ["required_features"];
1613
+ readonly properties: {
1614
+ readonly required_features: {
1615
+ readonly contains: {
1616
+ readonly const: "authorization.scoped.v1";
1617
+ };
1618
+ };
1619
+ };
1620
+ };
1621
+ };
1622
+ };
1623
+ }, {
1624
+ readonly if: {
1625
+ readonly properties: {
1626
+ readonly surfaces: {
1627
+ readonly contains: {
1628
+ readonly required: readonly ["required_methods"];
1629
+ };
1630
+ };
1631
+ };
1632
+ readonly required: readonly ["surfaces"];
1633
+ };
1634
+ readonly then: {
1635
+ readonly properties: {
1636
+ readonly api: {
1637
+ readonly required: readonly ["required_features"];
1638
+ readonly properties: {
1639
+ readonly required_features: {
1640
+ readonly contains: {
1641
+ readonly const: "authorization.scoped.v1";
1642
+ };
1643
+ };
1644
+ };
1645
+ };
1646
+ };
1647
+ };
1648
+ }, {
1649
+ readonly if: {
1650
+ readonly required: readonly ["background"];
1651
+ readonly properties: {
1652
+ readonly background: {
1653
+ readonly required: readonly ["method"];
1654
+ };
1655
+ };
1656
+ };
1657
+ readonly then: {
1658
+ readonly properties: {
1659
+ readonly api: {
1660
+ readonly required: readonly ["required_features"];
1661
+ readonly properties: {
1662
+ readonly required_features: {
1663
+ readonly contains: {
1664
+ readonly const: "background.method.v1";
1665
+ };
1666
+ };
1667
+ };
1668
+ };
1669
+ };
1670
+ };
1671
+ }, {
1672
+ readonly if: {
1673
+ readonly required: readonly ["data_upgrade"];
1674
+ };
1675
+ readonly then: {
1676
+ readonly properties: {
1677
+ readonly api: {
1678
+ readonly required: readonly ["required_features"];
1679
+ readonly properties: {
1680
+ readonly required_features: {
1681
+ readonly contains: {
1682
+ readonly const: "data.upgrade.v1";
1683
+ };
1684
+ };
1685
+ };
1686
+ };
1687
+ };
1688
+ };
1689
+ }, {
1690
+ readonly if: {
1691
+ readonly required: readonly ["background"];
1692
+ readonly properties: {
1693
+ readonly background: {
1694
+ readonly properties: {
1695
+ readonly strategy: {
1696
+ readonly const: "interval";
1697
+ };
1698
+ };
1699
+ };
1700
+ };
1701
+ };
1702
+ readonly then: {
1703
+ readonly properties: {
1704
+ readonly api: {
1705
+ readonly required: readonly ["required_features"];
1706
+ readonly properties: {
1707
+ readonly required_features: {
1708
+ readonly contains: {
1709
+ readonly const: "background.interval.v1";
1710
+ };
1711
+ };
1712
+ };
1713
+ };
1714
+ };
1715
+ };
1716
+ }, {
1717
+ readonly if: {
1718
+ readonly properties: {
1719
+ readonly surfaces: {
1720
+ readonly contains: {
1721
+ readonly properties: {
1722
+ readonly web: {
1723
+ readonly anyOf: readonly [{
1724
+ readonly required: readonly ["storage"];
1725
+ readonly properties: {
1726
+ readonly storage: {
1727
+ readonly minItems: 1;
1728
+ };
1729
+ };
1730
+ }, {
1731
+ readonly required: readonly ["settings"];
1732
+ readonly properties: {
1733
+ readonly settings: {
1734
+ readonly minItems: 1;
1735
+ };
1736
+ };
1737
+ }];
1738
+ };
1739
+ };
1740
+ readonly required: readonly ["web"];
1741
+ };
1742
+ };
1743
+ };
1744
+ };
1745
+ readonly then: {
1746
+ readonly properties: {
1747
+ readonly api: {
1748
+ readonly properties: {
1749
+ readonly required_features: {
1750
+ readonly contains: {
1751
+ readonly const: "surface.resources.v1";
1752
+ };
1753
+ };
1754
+ };
1755
+ readonly required: readonly ["required_features"];
1756
+ };
1757
+ };
1758
+ };
1759
+ }, {
1760
+ readonly if: {
1761
+ readonly properties: {
1762
+ readonly surfaces: {
1763
+ readonly contains: {
1764
+ readonly properties: {
1765
+ readonly web: {
1766
+ readonly properties: {
1767
+ readonly network: {
1768
+ readonly contains: {
1769
+ readonly properties: {
1770
+ readonly transport: {
1771
+ readonly const: "websocket";
1772
+ };
1773
+ };
1774
+ readonly required: readonly ["transport"];
1775
+ };
1776
+ };
1777
+ };
1778
+ readonly required: readonly ["network"];
1779
+ };
1780
+ };
1781
+ readonly required: readonly ["web"];
1782
+ };
1783
+ };
1784
+ };
1785
+ };
1786
+ readonly then: {
1787
+ readonly properties: {
1788
+ readonly api: {
1789
+ readonly properties: {
1790
+ readonly required_features: {
1791
+ readonly contains: {
1792
+ readonly const: "surface.resources.v1";
1793
+ };
1794
+ };
1795
+ };
1796
+ readonly required: readonly ["required_features"];
1797
+ };
1798
+ };
1799
+ };
1800
+ }];
1801
+ readonly description: "Editable plugin source. Authors declare a repository-local slug; the platform compiles package identity before bindings, build and hashing. This document is not installable.";
1802
+ };