@synopackageland/cli 0.49.0 → 0.50.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (77) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/README.md +10 -0
  3. package/dist/ctl/ai-tools.d.ts +9 -1
  4. package/dist/ctl/ai-tools.js +4 -4
  5. package/dist/ctl/cli.d.ts +8 -1
  6. package/dist/ctl/cli.js +40 -5
  7. package/dist/ctl/descriptor.d.ts +15 -2
  8. package/dist/ctl/descriptor.js +9 -4
  9. package/dist/ctl/flows.js +2 -0
  10. package/dist/ctl/input.d.ts +5 -3
  11. package/dist/ctl/input.js +3 -3
  12. package/dist/ctl/native-auth-command.d.ts +9 -0
  13. package/dist/ctl/native-auth-command.js +98 -0
  14. package/dist/ctl/native-executor.d.ts +16 -0
  15. package/dist/ctl/native-executor.js +187 -0
  16. package/dist/ctl/native-file-types.d.ts +16 -0
  17. package/dist/ctl/native-file-types.js +57 -0
  18. package/dist/ctl/native-files.d.ts +13 -0
  19. package/dist/ctl/native-files.js +115 -0
  20. package/dist/ctl/native-metadata.d.ts +10 -0
  21. package/dist/ctl/native-metadata.js +50 -0
  22. package/dist/ctl/native-paths.d.ts +4 -0
  23. package/dist/ctl/native-paths.js +54 -0
  24. package/dist/ctl/native-protocol.d.ts +21 -0
  25. package/dist/ctl/native-protocol.js +150 -0
  26. package/dist/ctl/native-registry.d.ts +8 -0
  27. package/dist/ctl/native-registry.js +182 -0
  28. package/dist/ctl/native-schemas.d.ts +7 -0
  29. package/dist/ctl/native-schemas.js +25 -0
  30. package/dist/ctl/native-store.d.ts +61 -0
  31. package/dist/ctl/native-store.js +348 -0
  32. package/dist/ctl/native-transfers.d.ts +13 -0
  33. package/dist/ctl/native-transfers.js +331 -0
  34. package/dist/ctl/native-transport.d.ts +30 -0
  35. package/dist/ctl/native-transport.js +148 -0
  36. package/dist/ctl/native-types.d.ts +15 -0
  37. package/dist/ctl/native-types.js +1 -0
  38. package/dist/ctl/registry.d.ts +5 -4
  39. package/dist/ctl/registry.js +12 -1
  40. package/dist/ctl/service.d.ts +32 -1
  41. package/dist/ctl/service.js +122 -1
  42. package/dist/error-registry.js +15 -0
  43. package/dist/generated/native-http.d.ts +189 -0
  44. package/dist/generated/native-http.js +1 -0
  45. package/dist/nas/store.d.ts +3 -1
  46. package/dist/nas/store.js +6 -3
  47. package/dist/nas/transport.d.ts +1 -0
  48. package/dist/native-http-schema/descriptor.schema.json +242 -0
  49. package/dist/native-http-schema/inventory.schema.json +121 -0
  50. package/dist/native-http-schema/registry.schema.json +872 -0
  51. package/dist/native-http-schema/source.json +1 -0
  52. package/dist/runtime/sdk-source.d.ts +1 -1
  53. package/dist/runtime/sdk-source.js +1 -1
  54. package/dist/standalone/api-description.d.ts +2 -5
  55. package/dist/standalone/build.js +5 -1
  56. package/dist/standalone/compose-errors.js +5 -0
  57. package/dist/standalone/inspect-spk.js +2 -17
  58. package/dist/standalone/lifecycle.js +9 -2
  59. package/dist/standalone/manifest.d.ts +1 -0
  60. package/dist/standalone/manifest.js +22 -5
  61. package/dist/standalone/mobile.js +4 -4
  62. package/dist/standalone/native-http-inspect.d.ts +9 -0
  63. package/dist/standalone/native-http-inspect.js +43 -0
  64. package/dist/standalone/native-http.d.ts +31 -0
  65. package/dist/standalone/native-http.js +120 -0
  66. package/dist/standalone/operation-registry.d.ts +2 -7
  67. package/dist/standalone/operation-registry.js +3 -0
  68. package/dist/standalone/spk.d.ts +1 -0
  69. package/dist/standalone/spk.js +15 -1
  70. package/package.json +3 -3
  71. package/schema/dsm-api-contract.json +8 -7
  72. package/skills/SKILL.md +2 -2
  73. package/skills/reference/compose.md +21 -0
  74. package/skills/reference/ctl.md +198 -0
  75. package/skills/reference/daemon-mode.md +1 -1
  76. package/skills/reference/mobile.md +7 -3
  77. package/skills/reference/upstream-fork.md +5 -2
@@ -0,0 +1,872 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "title": "Syno Package Land native HTTP registry v3",
4
+ "description": "Client execution metadata only. Semantic validation is also required; see README.",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "properties": {
8
+ "format": {
9
+ "const": "synopkgland.api"
10
+ },
11
+ "version": {
12
+ "const": 3
13
+ },
14
+ "nativeHttp": {
15
+ "$ref": "#/$defs/nativeHttp"
16
+ },
17
+ "operations": {
18
+ "type": "object",
19
+ "minProperties": 1,
20
+ "maxProperties": 1024,
21
+ "propertyNames": {
22
+ "pattern": "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)+$"
23
+ },
24
+ "additionalProperties": {
25
+ "$ref": "#/$defs/operation"
26
+ }
27
+ }
28
+ },
29
+ "required": [
30
+ "format",
31
+ "version",
32
+ "nativeHttp",
33
+ "operations"
34
+ ],
35
+ "$defs": {
36
+ "binding": {
37
+ "oneOf": [
38
+ {
39
+ "type": "object",
40
+ "additionalProperties": false,
41
+ "properties": {
42
+ "param": {
43
+ "type": "string",
44
+ "pattern": "^[A-Za-z_][A-Za-z0-9_]*$",
45
+ "maxLength": 128
46
+ }
47
+ },
48
+ "required": [
49
+ "param"
50
+ ]
51
+ },
52
+ {
53
+ "type": "object",
54
+ "additionalProperties": false,
55
+ "properties": {
56
+ "literal": {
57
+ "type": [
58
+ "string",
59
+ "number",
60
+ "boolean",
61
+ "null"
62
+ ]
63
+ }
64
+ },
65
+ "required": [
66
+ "literal"
67
+ ]
68
+ },
69
+ {
70
+ "type": "object",
71
+ "additionalProperties": false,
72
+ "properties": {
73
+ "actionToken": {
74
+ "const": true
75
+ }
76
+ },
77
+ "required": [
78
+ "actionToken"
79
+ ]
80
+ }
81
+ ]
82
+ },
83
+ "response": {
84
+ "type": "object",
85
+ "additionalProperties": false,
86
+ "properties": {
87
+ "statuses": {
88
+ "type": "array",
89
+ "items": {
90
+ "type": "integer",
91
+ "minimum": 200,
92
+ "maximum": 299
93
+ },
94
+ "minItems": 1,
95
+ "uniqueItems": true
96
+ },
97
+ "decode": {
98
+ "enum": [
99
+ "json",
100
+ "text",
101
+ "binary"
102
+ ]
103
+ },
104
+ "maxBytes": {
105
+ "type": "integer",
106
+ "minimum": 1,
107
+ "maximum": 17179869184
108
+ },
109
+ "contentTypes": {
110
+ "type": "array",
111
+ "minItems": 1,
112
+ "items": {
113
+ "type": "string",
114
+ "minLength": 1,
115
+ "maxLength": 512
116
+ }
117
+ },
118
+ "project": {
119
+ "oneOf": [
120
+ {
121
+ "type": "object",
122
+ "additionalProperties": false,
123
+ "properties": {
124
+ "pointer": {
125
+ "type": "string",
126
+ "maxLength": 512,
127
+ "pattern": "^(?:/(?:[^~/]|~[01])*)*$"
128
+ }
129
+ },
130
+ "required": [
131
+ "pointer"
132
+ ]
133
+ },
134
+ {
135
+ "type": "object",
136
+ "additionalProperties": false,
137
+ "properties": {
138
+ "fields": {
139
+ "type": "object",
140
+ "minProperties": 1,
141
+ "additionalProperties": {
142
+ "type": "string",
143
+ "maxLength": 512,
144
+ "pattern": "^(?:/(?:[^~/]|~[01])*)*$"
145
+ }
146
+ }
147
+ },
148
+ "required": [
149
+ "fields"
150
+ ]
151
+ }
152
+ ]
153
+ }
154
+ },
155
+ "required": [
156
+ "statuses",
157
+ "decode",
158
+ "maxBytes",
159
+ "contentTypes"
160
+ ]
161
+ },
162
+ "flow": {
163
+ "oneOf": [
164
+ {
165
+ "type": "object",
166
+ "additionalProperties": false,
167
+ "properties": {
168
+ "type": {
169
+ "const": "invoke"
170
+ },
171
+ "method": {
172
+ "type": "string",
173
+ "minLength": 1,
174
+ "maxLength": 512
175
+ }
176
+ },
177
+ "required": [
178
+ "type",
179
+ "method"
180
+ ]
181
+ },
182
+ {
183
+ "type": "object",
184
+ "additionalProperties": false,
185
+ "properties": {
186
+ "type": {
187
+ "const": "paginate-http"
188
+ },
189
+ "method": {
190
+ "type": "string",
191
+ "minLength": 1,
192
+ "maxLength": 512
193
+ },
194
+ "pagination": {
195
+ "oneOf": [
196
+ {
197
+ "type": "object",
198
+ "additionalProperties": false,
199
+ "properties": {
200
+ "mode": {
201
+ "const": "page"
202
+ },
203
+ "pageParam": {
204
+ "type": "string",
205
+ "minLength": 1,
206
+ "maxLength": 512
207
+ },
208
+ "sizeParam": {
209
+ "type": "string",
210
+ "minLength": 1,
211
+ "maxLength": 512
212
+ },
213
+ "items": {
214
+ "type": "string",
215
+ "maxLength": 512,
216
+ "pattern": "^(?:/(?:[^~/]|~[01])*)*$"
217
+ },
218
+ "next": {
219
+ "type": "string",
220
+ "maxLength": 512,
221
+ "pattern": "^(?:/(?:[^~/]|~[01])*)*$"
222
+ },
223
+ "pageSize": {
224
+ "type": "integer",
225
+ "minimum": 1,
226
+ "maximum": 1000
227
+ },
228
+ "maxPages": {
229
+ "type": "integer",
230
+ "minimum": 1,
231
+ "maximum": 1000
232
+ },
233
+ "maxItems": {
234
+ "type": "integer",
235
+ "minimum": 1,
236
+ "maximum": 10000
237
+ },
238
+ "maxBytes": {
239
+ "type": "integer",
240
+ "minimum": 1,
241
+ "maximum": 67108864
242
+ }
243
+ },
244
+ "required": [
245
+ "mode",
246
+ "pageParam",
247
+ "sizeParam",
248
+ "items",
249
+ "next",
250
+ "pageSize",
251
+ "maxPages",
252
+ "maxItems",
253
+ "maxBytes"
254
+ ]
255
+ },
256
+ {
257
+ "type": "object",
258
+ "additionalProperties": false,
259
+ "properties": {
260
+ "mode": {
261
+ "const": "cursor"
262
+ },
263
+ "cursorParam": {
264
+ "type": "string",
265
+ "minLength": 1,
266
+ "maxLength": 512
267
+ },
268
+ "sizeParam": {
269
+ "type": "string",
270
+ "minLength": 1,
271
+ "maxLength": 512
272
+ },
273
+ "items": {
274
+ "type": "string",
275
+ "maxLength": 512,
276
+ "pattern": "^(?:/(?:[^~/]|~[01])*)*$"
277
+ },
278
+ "next": {
279
+ "type": "string",
280
+ "maxLength": 512,
281
+ "pattern": "^(?:/(?:[^~/]|~[01])*)*$"
282
+ },
283
+ "pageSize": {
284
+ "type": "integer",
285
+ "minimum": 1,
286
+ "maximum": 1000
287
+ },
288
+ "maxPages": {
289
+ "type": "integer",
290
+ "minimum": 1,
291
+ "maximum": 1000
292
+ },
293
+ "maxItems": {
294
+ "type": "integer",
295
+ "minimum": 1,
296
+ "maximum": 10000
297
+ },
298
+ "maxBytes": {
299
+ "type": "integer",
300
+ "minimum": 1,
301
+ "maximum": 67108864
302
+ }
303
+ },
304
+ "required": [
305
+ "mode",
306
+ "cursorParam",
307
+ "sizeParam",
308
+ "items",
309
+ "next",
310
+ "pageSize",
311
+ "maxPages",
312
+ "maxItems",
313
+ "maxBytes"
314
+ ]
315
+ }
316
+ ]
317
+ }
318
+ },
319
+ "required": [
320
+ "type",
321
+ "method",
322
+ "pagination"
323
+ ]
324
+ },
325
+ {
326
+ "type": "object",
327
+ "additionalProperties": false,
328
+ "properties": {
329
+ "type": {
330
+ "const": "upload-http"
331
+ },
332
+ "method": {
333
+ "type": "string",
334
+ "minLength": 1,
335
+ "maxLength": 512
336
+ },
337
+ "fileParam": {
338
+ "type": "string",
339
+ "minLength": 1,
340
+ "maxLength": 512
341
+ },
342
+ "encoding": {
343
+ "enum": [
344
+ "multipart",
345
+ "raw"
346
+ ]
347
+ },
348
+ "part": {
349
+ "type": "string",
350
+ "minLength": 1,
351
+ "maxLength": 512
352
+ },
353
+ "maxBytes": {
354
+ "type": "integer",
355
+ "minimum": 1,
356
+ "maximum": 17179869184
357
+ },
358
+ "contentTypes": {
359
+ "type": "array",
360
+ "minItems": 1,
361
+ "items": {
362
+ "type": "string",
363
+ "minLength": 1,
364
+ "maxLength": 512
365
+ }
366
+ }
367
+ },
368
+ "required": [
369
+ "type",
370
+ "method",
371
+ "fileParam",
372
+ "encoding",
373
+ "maxBytes",
374
+ "contentTypes"
375
+ ],
376
+ "allOf": [
377
+ {
378
+ "if": {
379
+ "properties": {
380
+ "encoding": {
381
+ "const": "multipart"
382
+ }
383
+ }
384
+ },
385
+ "then": {
386
+ "required": [
387
+ "part"
388
+ ]
389
+ },
390
+ "else": {
391
+ "not": {
392
+ "required": [
393
+ "part"
394
+ ]
395
+ }
396
+ }
397
+ }
398
+ ]
399
+ },
400
+ {
401
+ "type": "object",
402
+ "additionalProperties": false,
403
+ "properties": {
404
+ "type": {
405
+ "const": "download-file"
406
+ },
407
+ "method": {
408
+ "type": "string",
409
+ "minLength": 1,
410
+ "maxLength": 512
411
+ },
412
+ "outputParam": {
413
+ "type": "string",
414
+ "minLength": 1,
415
+ "maxLength": 512
416
+ },
417
+ "maxBytes": {
418
+ "type": "integer",
419
+ "minimum": 1,
420
+ "maximum": 17179869184
421
+ },
422
+ "contentTypes": {
423
+ "type": "array",
424
+ "minItems": 1,
425
+ "items": {
426
+ "type": "string",
427
+ "minLength": 1,
428
+ "maxLength": 512
429
+ }
430
+ }
431
+ },
432
+ "required": [
433
+ "type",
434
+ "method",
435
+ "outputParam",
436
+ "maxBytes",
437
+ "contentTypes"
438
+ ]
439
+ },
440
+ {
441
+ "type": "object",
442
+ "additionalProperties": false,
443
+ "properties": {
444
+ "type": {
445
+ "const": "ndjson"
446
+ },
447
+ "method": {
448
+ "type": "string",
449
+ "minLength": 1,
450
+ "maxLength": 512
451
+ },
452
+ "maxLines": {
453
+ "type": "integer",
454
+ "minimum": 1,
455
+ "maximum": 10000
456
+ },
457
+ "maxLineBytes": {
458
+ "type": "integer",
459
+ "minimum": 1,
460
+ "maximum": 1048576
461
+ },
462
+ "maxBytes": {
463
+ "type": "integer",
464
+ "minimum": 1,
465
+ "maximum": 67108864
466
+ }
467
+ },
468
+ "required": [
469
+ "type",
470
+ "method",
471
+ "maxLines",
472
+ "maxLineBytes",
473
+ "maxBytes"
474
+ ]
475
+ }
476
+ ]
477
+ },
478
+ "headerAuth": {
479
+ "type": "object",
480
+ "additionalProperties": false,
481
+ "properties": {
482
+ "type": {
483
+ "const": "header"
484
+ },
485
+ "header": {
486
+ "const": "Authorization"
487
+ },
488
+ "prefix": {
489
+ "enum": [
490
+ "Token ",
491
+ "Bearer "
492
+ ]
493
+ },
494
+ "credentialPage": {
495
+ "type": "string",
496
+ "pattern": "^[A-Za-z0-9_/?=&.~-]*$",
497
+ "maxLength": 512
498
+ },
499
+ "instructions": {
500
+ "type": "string",
501
+ "minLength": 1,
502
+ "maxLength": 512
503
+ },
504
+ "verify": {
505
+ "type": "object",
506
+ "additionalProperties": false,
507
+ "properties": {
508
+ "method": {
509
+ "const": "GET"
510
+ },
511
+ "path": {
512
+ "type": "string",
513
+ "pattern": "^/[A-Za-z0-9_./~-]+$",
514
+ "maxLength": 512
515
+ },
516
+ "response": {
517
+ "type": "object",
518
+ "additionalProperties": false,
519
+ "properties": {
520
+ "statuses": {
521
+ "type": "array",
522
+ "items": {
523
+ "type": "integer",
524
+ "minimum": 200,
525
+ "maximum": 299
526
+ },
527
+ "minItems": 1,
528
+ "uniqueItems": true
529
+ },
530
+ "decode": {
531
+ "enum": [
532
+ "json",
533
+ "text"
534
+ ]
535
+ },
536
+ "maxBytes": {
537
+ "type": "integer",
538
+ "minimum": 1,
539
+ "maximum": 65536
540
+ },
541
+ "contentTypes": {
542
+ "type": "array",
543
+ "minItems": 1,
544
+ "items": {
545
+ "type": "string",
546
+ "minLength": 1,
547
+ "maxLength": 512
548
+ }
549
+ },
550
+ "project": {
551
+ "oneOf": [
552
+ {
553
+ "type": "object",
554
+ "additionalProperties": false,
555
+ "properties": {
556
+ "pointer": {
557
+ "type": "string",
558
+ "maxLength": 512,
559
+ "pattern": "^(?:/(?:[^~/]|~[01])*)*$"
560
+ }
561
+ },
562
+ "required": [
563
+ "pointer"
564
+ ]
565
+ },
566
+ {
567
+ "type": "object",
568
+ "additionalProperties": false,
569
+ "properties": {
570
+ "fields": {
571
+ "type": "object",
572
+ "minProperties": 1,
573
+ "additionalProperties": {
574
+ "type": "string",
575
+ "maxLength": 512,
576
+ "pattern": "^(?:/(?:[^~/]|~[01])*)*$"
577
+ }
578
+ }
579
+ },
580
+ "required": [
581
+ "fields"
582
+ ]
583
+ }
584
+ ]
585
+ }
586
+ },
587
+ "required": [
588
+ "statuses",
589
+ "decode",
590
+ "maxBytes",
591
+ "contentTypes"
592
+ ]
593
+ }
594
+ },
595
+ "required": [
596
+ "method",
597
+ "path",
598
+ "response"
599
+ ]
600
+ }
601
+ },
602
+ "required": [
603
+ "type",
604
+ "header",
605
+ "prefix",
606
+ "credentialPage",
607
+ "instructions",
608
+ "verify"
609
+ ]
610
+ },
611
+ "greaderAuth": {
612
+ "type": "object",
613
+ "additionalProperties": false,
614
+ "properties": {
615
+ "type": {
616
+ "const": "greader-client-login"
617
+ },
618
+ "credentialPage": {
619
+ "type": "string",
620
+ "pattern": "^[A-Za-z0-9_/?=&.~-]*$",
621
+ "maxLength": 512
622
+ },
623
+ "instructions": {
624
+ "type": "string",
625
+ "minLength": 1,
626
+ "maxLength": 512
627
+ },
628
+ "exchangePath": {
629
+ "type": "string",
630
+ "pattern": "^/[A-Za-z0-9_./~-]+$",
631
+ "maxLength": 512
632
+ },
633
+ "identityPath": {
634
+ "type": "string",
635
+ "pattern": "^/[A-Za-z0-9_./~-]+$",
636
+ "maxLength": 512
637
+ },
638
+ "actionTokenPath": {
639
+ "type": "string",
640
+ "pattern": "^/[A-Za-z0-9_./~-]+$",
641
+ "maxLength": 512
642
+ }
643
+ },
644
+ "required": [
645
+ "type",
646
+ "credentialPage",
647
+ "instructions",
648
+ "exchangePath",
649
+ "identityPath",
650
+ "actionTokenPath"
651
+ ]
652
+ },
653
+ "operation": {
654
+ "type": "object",
655
+ "additionalProperties": false,
656
+ "properties": {
657
+ "summary": {
658
+ "type": "string",
659
+ "minLength": 1,
660
+ "maxLength": 512
661
+ },
662
+ "cli": {
663
+ "type": "array",
664
+ "minItems": 1,
665
+ "maxItems": 8,
666
+ "items": {
667
+ "type": "string",
668
+ "pattern": "^[a-z][a-z0-9-]{0,63}$"
669
+ }
670
+ },
671
+ "effect": {
672
+ "enum": [
673
+ "read",
674
+ "write",
675
+ "destructive"
676
+ ]
677
+ },
678
+ "permission": {
679
+ "enum": [
680
+ "authenticated",
681
+ "administrators"
682
+ ]
683
+ },
684
+ "ai": {
685
+ "enum": [
686
+ "read",
687
+ "preview",
688
+ "draft",
689
+ "human-only",
690
+ "hidden"
691
+ ]
692
+ },
693
+ "preview": {
694
+ "type": "string",
695
+ "minLength": 1,
696
+ "maxLength": 512
697
+ },
698
+ "kind": {
699
+ "enum": [
700
+ "rpc",
701
+ "stream"
702
+ ]
703
+ },
704
+ "paramsSchema": {
705
+ "type": "object",
706
+ "minProperties": 1,
707
+ "properties": {
708
+ "type": {
709
+ "const": "object"
710
+ },
711
+ "additionalProperties": {
712
+ "const": false
713
+ },
714
+ "properties": {
715
+ "type": "object",
716
+ "propertyNames": {
717
+ "type": "string",
718
+ "pattern": "^[A-Za-z_][A-Za-z0-9_]*$",
719
+ "maxLength": 128
720
+ }
721
+ }
722
+ },
723
+ "required": [
724
+ "type",
725
+ "additionalProperties",
726
+ "properties"
727
+ ]
728
+ },
729
+ "resultSchema": {
730
+ "type": "object",
731
+ "minProperties": 1
732
+ },
733
+ "flow": {
734
+ "$ref": "#/$defs/flow"
735
+ },
736
+ "http": {
737
+ "type": "object",
738
+ "additionalProperties": false,
739
+ "properties": {
740
+ "method": {
741
+ "enum": [
742
+ "GET",
743
+ "POST",
744
+ "PUT",
745
+ "PATCH",
746
+ "DELETE"
747
+ ]
748
+ },
749
+ "path": {
750
+ "type": "string",
751
+ "pattern": "^/[A-Za-z0-9_./{}~-]+$",
752
+ "maxLength": 512
753
+ },
754
+ "query": {
755
+ "type": "object",
756
+ "additionalProperties": {
757
+ "$ref": "#/$defs/binding"
758
+ }
759
+ },
760
+ "headers": {
761
+ "type": "object",
762
+ "additionalProperties": false,
763
+ "properties": {
764
+ "Accept": {
765
+ "type": "string",
766
+ "minLength": 1,
767
+ "maxLength": 512,
768
+ "pattern": "^[ -~]+$"
769
+ },
770
+ "Content-Type": {
771
+ "type": "string",
772
+ "minLength": 1,
773
+ "maxLength": 512,
774
+ "pattern": "^[ -~]+$"
775
+ }
776
+ }
777
+ },
778
+ "body": {
779
+ "type": "object",
780
+ "additionalProperties": false,
781
+ "properties": {
782
+ "encoding": {
783
+ "enum": [
784
+ "json",
785
+ "form"
786
+ ]
787
+ },
788
+ "fields": {
789
+ "type": "object",
790
+ "additionalProperties": {
791
+ "$ref": "#/$defs/binding"
792
+ }
793
+ }
794
+ },
795
+ "required": [
796
+ "encoding",
797
+ "fields"
798
+ ]
799
+ },
800
+ "response": {
801
+ "$ref": "#/$defs/response"
802
+ }
803
+ },
804
+ "required": [
805
+ "method",
806
+ "path",
807
+ "response"
808
+ ]
809
+ }
810
+ },
811
+ "required": [
812
+ "summary",
813
+ "cli",
814
+ "effect",
815
+ "permission",
816
+ "ai",
817
+ "kind",
818
+ "paramsSchema",
819
+ "resultSchema",
820
+ "flow",
821
+ "http"
822
+ ]
823
+ },
824
+ "nativeHttp": {
825
+ "type": "object",
826
+ "additionalProperties": false,
827
+ "properties": {
828
+ "basePath": {
829
+ "type": "string",
830
+ "pattern": "^/[^?#%]*/$",
831
+ "maxLength": 512
832
+ },
833
+ "auth": {
834
+ "oneOf": [
835
+ {
836
+ "$ref": "#/$defs/headerAuth"
837
+ },
838
+ {
839
+ "$ref": "#/$defs/greaderAuth"
840
+ }
841
+ ]
842
+ },
843
+ "limits": {
844
+ "type": "object",
845
+ "additionalProperties": false,
846
+ "properties": {
847
+ "maxResponseBytes": {
848
+ "type": "integer",
849
+ "minimum": 1,
850
+ "maximum": 16777216
851
+ },
852
+ "maxTransferBytes": {
853
+ "type": "integer",
854
+ "minimum": 1,
855
+ "maximum": 17179869184
856
+ }
857
+ },
858
+ "required": [
859
+ "maxResponseBytes",
860
+ "maxTransferBytes"
861
+ ]
862
+ }
863
+ },
864
+ "required": [
865
+ "basePath",
866
+ "auth",
867
+ "limits"
868
+ ]
869
+ }
870
+ },
871
+ "$id": "https://synopkgland.org/schema/api/v3/registry.schema.json"
872
+ }