@tinycloud/operations 0.5.0-beta.1 → 0.5.0-beta.3

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 (43) hide show
  1. package/coverage.json +10 -1
  2. package/dist/artifacts.d.cts +1 -1
  3. package/dist/artifacts.d.ts +1 -1
  4. package/dist/cli-runtime.cjs +728 -135
  5. package/dist/cli-runtime.cjs.map +1 -1
  6. package/dist/cli-runtime.d.cts +1 -1
  7. package/dist/cli-runtime.d.ts +1 -1
  8. package/dist/cli-runtime.js +726 -134
  9. package/dist/cli-runtime.js.map +1 -1
  10. package/dist/{contract-DfyrluLB.d.cts → contract-zRklonbR.d.cts} +6 -3
  11. package/dist/{contract-DfyrluLB.d.ts → contract-zRklonbR.d.ts} +6 -3
  12. package/dist/delegation-binding.cjs +7 -0
  13. package/dist/delegation-binding.cjs.map +1 -1
  14. package/dist/delegation-binding.d.cts +15 -3
  15. package/dist/delegation-binding.d.ts +15 -3
  16. package/dist/delegation-binding.js +6 -0
  17. package/dist/delegation-binding.js.map +1 -1
  18. package/dist/index.cjs +756 -136
  19. package/dist/index.cjs.map +1 -1
  20. package/dist/index.d.cts +1 -1
  21. package/dist/index.d.ts +1 -1
  22. package/dist/index.js +752 -133
  23. package/dist/index.js.map +1 -1
  24. package/dist/profile.cjs +5 -0
  25. package/dist/profile.cjs.map +1 -1
  26. package/dist/profile.d.cts +14 -2
  27. package/dist/profile.d.ts +14 -2
  28. package/dist/profile.js +4 -0
  29. package/dist/profile.js.map +1 -1
  30. package/dist/recovery.cjs +67 -0
  31. package/dist/recovery.cjs.map +1 -0
  32. package/dist/recovery.d.cts +38 -0
  33. package/dist/recovery.d.ts +38 -0
  34. package/dist/recovery.js +39 -0
  35. package/dist/recovery.js.map +1 -0
  36. package/dist/secret-request.cjs +271 -0
  37. package/dist/secret-request.cjs.map +1 -0
  38. package/dist/secret-request.d.cts +119 -0
  39. package/dist/secret-request.d.ts +119 -0
  40. package/dist/secret-request.js +222 -0
  41. package/dist/secret-request.js.map +1 -0
  42. package/generated/operations.json +1838 -89
  43. package/package.json +15 -5
@@ -7,6 +7,7 @@
7
7
  "PROFILE_NOT_FOUND",
8
8
  "PROFILE_POSTURE_NOT_ALLOWED",
9
9
  "PROFILE_OWNER_OPT_IN_REQUIRED",
10
+ "PROFILE_MIGRATION_REQUIRED",
10
11
  "AUTH_REQUIRED",
11
12
  "PERMISSION_DENIED",
12
13
  "SESSION_NOT_FOUND",
@@ -201,6 +202,8 @@
201
202
  "resources_mismatch",
202
203
  "unsupported",
203
204
  "activation_rejected",
205
+ "activation_unavailable",
206
+ "activation_unauthenticated",
204
207
  "invalid"
205
208
  ]
206
209
  },
@@ -329,6 +332,8 @@
329
332
  "resources_mismatch",
330
333
  "unsupported",
331
334
  "activation_rejected",
335
+ "activation_unavailable",
336
+ "activation_unauthenticated",
332
337
  "invalid"
333
338
  ]
334
339
  },
@@ -524,6 +529,8 @@
524
529
  "resources_mismatch",
525
530
  "unsupported",
526
531
  "activation_rejected",
532
+ "activation_unavailable",
533
+ "activation_unauthenticated",
527
534
  "invalid"
528
535
  ]
529
536
  },
@@ -545,6 +552,30 @@
545
552
  "kind": {
546
553
  "const": "secret_manager"
547
554
  },
555
+ "action": {
556
+ "const": "add_secret"
557
+ },
558
+ "url": {
559
+ "type": "string",
560
+ "format": "uri"
561
+ },
562
+ "names": {
563
+ "type": "array",
564
+ "minItems": 1,
565
+ "maxItems": 10,
566
+ "items": {
567
+ "type": "string",
568
+ "minLength": 1
569
+ }
570
+ },
571
+ "scope": {
572
+ "type": "string",
573
+ "minLength": 1
574
+ },
575
+ "owner": {
576
+ "type": "string",
577
+ "minLength": 1
578
+ },
548
579
  "secret": {
549
580
  "type": "object",
550
581
  "properties": {
@@ -567,10 +598,6 @@
567
598
  ],
568
599
  "additionalProperties": false
569
600
  },
570
- "url": {
571
- "type": "string",
572
- "format": "uri"
573
- },
574
601
  "message": {
575
602
  "type": "string",
576
603
  "minLength": 1
@@ -578,8 +605,11 @@
578
605
  },
579
606
  "required": [
580
607
  "kind",
581
- "secret",
608
+ "action",
582
609
  "url",
610
+ "names",
611
+ "owner",
612
+ "secret",
583
613
  "message"
584
614
  ],
585
615
  "additionalProperties": false
@@ -726,6 +756,8 @@
726
756
  "resources_mismatch",
727
757
  "unsupported",
728
758
  "activation_rejected",
759
+ "activation_unavailable",
760
+ "activation_unauthenticated",
729
761
  "invalid"
730
762
  ]
731
763
  },
@@ -753,6 +785,7 @@
753
785
  "PROFILE_NOT_FOUND",
754
786
  "PROFILE_POSTURE_NOT_ALLOWED",
755
787
  "PROFILE_OWNER_OPT_IN_REQUIRED",
788
+ "PROFILE_MIGRATION_REQUIRED",
756
789
  "AUTH_REQUIRED",
757
790
  "PERMISSION_DENIED",
758
791
  "SESSION_NOT_FOUND",
@@ -1098,6 +1131,7 @@
1098
1131
  "PROFILE_NOT_FOUND",
1099
1132
  "PROFILE_POSTURE_NOT_ALLOWED",
1100
1133
  "PROFILE_OWNER_OPT_IN_REQUIRED",
1134
+ "PROFILE_MIGRATION_REQUIRED",
1101
1135
  "AUTH_REQUIRED",
1102
1136
  "PERMISSION_DENIED",
1103
1137
  "SESSION_NOT_FOUND",
@@ -1318,6 +1352,8 @@
1318
1352
  "resources_mismatch",
1319
1353
  "unsupported",
1320
1354
  "activation_rejected",
1355
+ "activation_unavailable",
1356
+ "activation_unauthenticated",
1321
1357
  "invalid"
1322
1358
  ]
1323
1359
  },
@@ -1446,6 +1482,8 @@
1446
1482
  "resources_mismatch",
1447
1483
  "unsupported",
1448
1484
  "activation_rejected",
1485
+ "activation_unavailable",
1486
+ "activation_unauthenticated",
1449
1487
  "invalid"
1450
1488
  ]
1451
1489
  },
@@ -1641,6 +1679,8 @@
1641
1679
  "resources_mismatch",
1642
1680
  "unsupported",
1643
1681
  "activation_rejected",
1682
+ "activation_unavailable",
1683
+ "activation_unauthenticated",
1644
1684
  "invalid"
1645
1685
  ]
1646
1686
  },
@@ -1662,6 +1702,30 @@
1662
1702
  "kind": {
1663
1703
  "const": "secret_manager"
1664
1704
  },
1705
+ "action": {
1706
+ "const": "add_secret"
1707
+ },
1708
+ "url": {
1709
+ "type": "string",
1710
+ "format": "uri"
1711
+ },
1712
+ "names": {
1713
+ "type": "array",
1714
+ "minItems": 1,
1715
+ "maxItems": 10,
1716
+ "items": {
1717
+ "type": "string",
1718
+ "minLength": 1
1719
+ }
1720
+ },
1721
+ "scope": {
1722
+ "type": "string",
1723
+ "minLength": 1
1724
+ },
1725
+ "owner": {
1726
+ "type": "string",
1727
+ "minLength": 1
1728
+ },
1665
1729
  "secret": {
1666
1730
  "type": "object",
1667
1731
  "properties": {
@@ -1684,10 +1748,6 @@
1684
1748
  ],
1685
1749
  "additionalProperties": false
1686
1750
  },
1687
- "url": {
1688
- "type": "string",
1689
- "format": "uri"
1690
- },
1691
1751
  "message": {
1692
1752
  "type": "string",
1693
1753
  "minLength": 1
@@ -1695,8 +1755,11 @@
1695
1755
  },
1696
1756
  "required": [
1697
1757
  "kind",
1698
- "secret",
1758
+ "action",
1699
1759
  "url",
1760
+ "names",
1761
+ "owner",
1762
+ "secret",
1700
1763
  "message"
1701
1764
  ],
1702
1765
  "additionalProperties": false
@@ -1843,6 +1906,8 @@
1843
1906
  "resources_mismatch",
1844
1907
  "unsupported",
1845
1908
  "activation_rejected",
1909
+ "activation_unavailable",
1910
+ "activation_unauthenticated",
1846
1911
  "invalid"
1847
1912
  ]
1848
1913
  },
@@ -1870,6 +1935,7 @@
1870
1935
  "PROFILE_NOT_FOUND",
1871
1936
  "PROFILE_POSTURE_NOT_ALLOWED",
1872
1937
  "PROFILE_OWNER_OPT_IN_REQUIRED",
1938
+ "PROFILE_MIGRATION_REQUIRED",
1873
1939
  "AUTH_REQUIRED",
1874
1940
  "PERMISSION_DENIED",
1875
1941
  "SESSION_NOT_FOUND",
@@ -2238,6 +2304,7 @@
2238
2304
  "PROFILE_NOT_FOUND",
2239
2305
  "PROFILE_POSTURE_NOT_ALLOWED",
2240
2306
  "PROFILE_OWNER_OPT_IN_REQUIRED",
2307
+ "PROFILE_MIGRATION_REQUIRED",
2241
2308
  "AUTH_REQUIRED",
2242
2309
  "PERMISSION_DENIED",
2243
2310
  "SESSION_NOT_FOUND",
@@ -2444,6 +2511,8 @@
2444
2511
  "resources_mismatch",
2445
2512
  "unsupported",
2446
2513
  "activation_rejected",
2514
+ "activation_unavailable",
2515
+ "activation_unauthenticated",
2447
2516
  "invalid"
2448
2517
  ]
2449
2518
  },
@@ -2572,6 +2641,8 @@
2572
2641
  "resources_mismatch",
2573
2642
  "unsupported",
2574
2643
  "activation_rejected",
2644
+ "activation_unavailable",
2645
+ "activation_unauthenticated",
2575
2646
  "invalid"
2576
2647
  ]
2577
2648
  },
@@ -2767,6 +2838,8 @@
2767
2838
  "resources_mismatch",
2768
2839
  "unsupported",
2769
2840
  "activation_rejected",
2841
+ "activation_unavailable",
2842
+ "activation_unauthenticated",
2770
2843
  "invalid"
2771
2844
  ]
2772
2845
  },
@@ -2788,6 +2861,30 @@
2788
2861
  "kind": {
2789
2862
  "const": "secret_manager"
2790
2863
  },
2864
+ "action": {
2865
+ "const": "add_secret"
2866
+ },
2867
+ "url": {
2868
+ "type": "string",
2869
+ "format": "uri"
2870
+ },
2871
+ "names": {
2872
+ "type": "array",
2873
+ "minItems": 1,
2874
+ "maxItems": 10,
2875
+ "items": {
2876
+ "type": "string",
2877
+ "minLength": 1
2878
+ }
2879
+ },
2880
+ "scope": {
2881
+ "type": "string",
2882
+ "minLength": 1
2883
+ },
2884
+ "owner": {
2885
+ "type": "string",
2886
+ "minLength": 1
2887
+ },
2791
2888
  "secret": {
2792
2889
  "type": "object",
2793
2890
  "properties": {
@@ -2810,10 +2907,6 @@
2810
2907
  ],
2811
2908
  "additionalProperties": false
2812
2909
  },
2813
- "url": {
2814
- "type": "string",
2815
- "format": "uri"
2816
- },
2817
2910
  "message": {
2818
2911
  "type": "string",
2819
2912
  "minLength": 1
@@ -2821,8 +2914,11 @@
2821
2914
  },
2822
2915
  "required": [
2823
2916
  "kind",
2824
- "secret",
2917
+ "action",
2825
2918
  "url",
2919
+ "names",
2920
+ "owner",
2921
+ "secret",
2826
2922
  "message"
2827
2923
  ],
2828
2924
  "additionalProperties": false
@@ -2969,6 +3065,8 @@
2969
3065
  "resources_mismatch",
2970
3066
  "unsupported",
2971
3067
  "activation_rejected",
3068
+ "activation_unavailable",
3069
+ "activation_unauthenticated",
2972
3070
  "invalid"
2973
3071
  ]
2974
3072
  },
@@ -2996,6 +3094,7 @@
2996
3094
  "PROFILE_NOT_FOUND",
2997
3095
  "PROFILE_POSTURE_NOT_ALLOWED",
2998
3096
  "PROFILE_OWNER_OPT_IN_REQUIRED",
3097
+ "PROFILE_MIGRATION_REQUIRED",
2999
3098
  "AUTH_REQUIRED",
3000
3099
  "PERMISSION_DENIED",
3001
3100
  "SESSION_NOT_FOUND",
@@ -3349,6 +3448,7 @@
3349
3448
  "PROFILE_NOT_FOUND",
3350
3449
  "PROFILE_POSTURE_NOT_ALLOWED",
3351
3450
  "PROFILE_OWNER_OPT_IN_REQUIRED",
3451
+ "PROFILE_MIGRATION_REQUIRED",
3352
3452
  "AUTH_REQUIRED",
3353
3453
  "PERMISSION_DENIED",
3354
3454
  "SESSION_NOT_FOUND",
@@ -3753,6 +3853,8 @@
3753
3853
  "resources_mismatch",
3754
3854
  "unsupported",
3755
3855
  "activation_rejected",
3856
+ "activation_unavailable",
3857
+ "activation_unauthenticated",
3756
3858
  "invalid"
3757
3859
  ]
3758
3860
  },
@@ -3881,6 +3983,8 @@
3881
3983
  "resources_mismatch",
3882
3984
  "unsupported",
3883
3985
  "activation_rejected",
3986
+ "activation_unavailable",
3987
+ "activation_unauthenticated",
3884
3988
  "invalid"
3885
3989
  ]
3886
3990
  },
@@ -4076,6 +4180,8 @@
4076
4180
  "resources_mismatch",
4077
4181
  "unsupported",
4078
4182
  "activation_rejected",
4183
+ "activation_unavailable",
4184
+ "activation_unauthenticated",
4079
4185
  "invalid"
4080
4186
  ]
4081
4187
  },
@@ -4097,6 +4203,30 @@
4097
4203
  "kind": {
4098
4204
  "const": "secret_manager"
4099
4205
  },
4206
+ "action": {
4207
+ "const": "add_secret"
4208
+ },
4209
+ "url": {
4210
+ "type": "string",
4211
+ "format": "uri"
4212
+ },
4213
+ "names": {
4214
+ "type": "array",
4215
+ "minItems": 1,
4216
+ "maxItems": 10,
4217
+ "items": {
4218
+ "type": "string",
4219
+ "minLength": 1
4220
+ }
4221
+ },
4222
+ "scope": {
4223
+ "type": "string",
4224
+ "minLength": 1
4225
+ },
4226
+ "owner": {
4227
+ "type": "string",
4228
+ "minLength": 1
4229
+ },
4100
4230
  "secret": {
4101
4231
  "type": "object",
4102
4232
  "properties": {
@@ -4119,10 +4249,6 @@
4119
4249
  ],
4120
4250
  "additionalProperties": false
4121
4251
  },
4122
- "url": {
4123
- "type": "string",
4124
- "format": "uri"
4125
- },
4126
4252
  "message": {
4127
4253
  "type": "string",
4128
4254
  "minLength": 1
@@ -4130,8 +4256,11 @@
4130
4256
  },
4131
4257
  "required": [
4132
4258
  "kind",
4133
- "secret",
4259
+ "action",
4134
4260
  "url",
4261
+ "names",
4262
+ "owner",
4263
+ "secret",
4135
4264
  "message"
4136
4265
  ],
4137
4266
  "additionalProperties": false
@@ -4278,6 +4407,8 @@
4278
4407
  "resources_mismatch",
4279
4408
  "unsupported",
4280
4409
  "activation_rejected",
4410
+ "activation_unavailable",
4411
+ "activation_unauthenticated",
4281
4412
  "invalid"
4282
4413
  ]
4283
4414
  },
@@ -4305,6 +4436,7 @@
4305
4436
  "PROFILE_NOT_FOUND",
4306
4437
  "PROFILE_POSTURE_NOT_ALLOWED",
4307
4438
  "PROFILE_OWNER_OPT_IN_REQUIRED",
4439
+ "PROFILE_MIGRATION_REQUIRED",
4308
4440
  "AUTH_REQUIRED",
4309
4441
  "PERMISSION_DENIED",
4310
4442
  "SESSION_NOT_FOUND",
@@ -4687,6 +4819,7 @@
4687
4819
  "PROFILE_NOT_FOUND",
4688
4820
  "PROFILE_POSTURE_NOT_ALLOWED",
4689
4821
  "PROFILE_OWNER_OPT_IN_REQUIRED",
4822
+ "PROFILE_MIGRATION_REQUIRED",
4690
4823
  "AUTH_REQUIRED",
4691
4824
  "PERMISSION_DENIED",
4692
4825
  "SESSION_NOT_FOUND",
@@ -5029,6 +5162,8 @@
5029
5162
  "resources_mismatch",
5030
5163
  "unsupported",
5031
5164
  "activation_rejected",
5165
+ "activation_unavailable",
5166
+ "activation_unauthenticated",
5032
5167
  "invalid"
5033
5168
  ]
5034
5169
  },
@@ -5157,6 +5292,8 @@
5157
5292
  "resources_mismatch",
5158
5293
  "unsupported",
5159
5294
  "activation_rejected",
5295
+ "activation_unavailable",
5296
+ "activation_unauthenticated",
5160
5297
  "invalid"
5161
5298
  ]
5162
5299
  },
@@ -5352,6 +5489,8 @@
5352
5489
  "resources_mismatch",
5353
5490
  "unsupported",
5354
5491
  "activation_rejected",
5492
+ "activation_unavailable",
5493
+ "activation_unauthenticated",
5355
5494
  "invalid"
5356
5495
  ]
5357
5496
  },
@@ -5373,6 +5512,30 @@
5373
5512
  "kind": {
5374
5513
  "const": "secret_manager"
5375
5514
  },
5515
+ "action": {
5516
+ "const": "add_secret"
5517
+ },
5518
+ "url": {
5519
+ "type": "string",
5520
+ "format": "uri"
5521
+ },
5522
+ "names": {
5523
+ "type": "array",
5524
+ "minItems": 1,
5525
+ "maxItems": 10,
5526
+ "items": {
5527
+ "type": "string",
5528
+ "minLength": 1
5529
+ }
5530
+ },
5531
+ "scope": {
5532
+ "type": "string",
5533
+ "minLength": 1
5534
+ },
5535
+ "owner": {
5536
+ "type": "string",
5537
+ "minLength": 1
5538
+ },
5376
5539
  "secret": {
5377
5540
  "type": "object",
5378
5541
  "properties": {
@@ -5395,10 +5558,6 @@
5395
5558
  ],
5396
5559
  "additionalProperties": false
5397
5560
  },
5398
- "url": {
5399
- "type": "string",
5400
- "format": "uri"
5401
- },
5402
5561
  "message": {
5403
5562
  "type": "string",
5404
5563
  "minLength": 1
@@ -5406,8 +5565,11 @@
5406
5565
  },
5407
5566
  "required": [
5408
5567
  "kind",
5409
- "secret",
5568
+ "action",
5410
5569
  "url",
5570
+ "names",
5571
+ "owner",
5572
+ "secret",
5411
5573
  "message"
5412
5574
  ],
5413
5575
  "additionalProperties": false
@@ -5554,6 +5716,8 @@
5554
5716
  "resources_mismatch",
5555
5717
  "unsupported",
5556
5718
  "activation_rejected",
5719
+ "activation_unavailable",
5720
+ "activation_unauthenticated",
5557
5721
  "invalid"
5558
5722
  ]
5559
5723
  },
@@ -5581,6 +5745,7 @@
5581
5745
  "PROFILE_NOT_FOUND",
5582
5746
  "PROFILE_POSTURE_NOT_ALLOWED",
5583
5747
  "PROFILE_OWNER_OPT_IN_REQUIRED",
5748
+ "PROFILE_MIGRATION_REQUIRED",
5584
5749
  "AUTH_REQUIRED",
5585
5750
  "PERMISSION_DENIED",
5586
5751
  "SESSION_NOT_FOUND",
@@ -6038,6 +6203,7 @@
6038
6203
  "PROFILE_NOT_FOUND",
6039
6204
  "PROFILE_POSTURE_NOT_ALLOWED",
6040
6205
  "PROFILE_OWNER_OPT_IN_REQUIRED",
6206
+ "PROFILE_MIGRATION_REQUIRED",
6041
6207
  "AUTH_REQUIRED",
6042
6208
  "PERMISSION_DENIED",
6043
6209
  "SESSION_NOT_FOUND",
@@ -6274,6 +6440,8 @@
6274
6440
  "resources_mismatch",
6275
6441
  "unsupported",
6276
6442
  "activation_rejected",
6443
+ "activation_unavailable",
6444
+ "activation_unauthenticated",
6277
6445
  "invalid"
6278
6446
  ]
6279
6447
  },
@@ -6402,6 +6570,8 @@
6402
6570
  "resources_mismatch",
6403
6571
  "unsupported",
6404
6572
  "activation_rejected",
6573
+ "activation_unavailable",
6574
+ "activation_unauthenticated",
6405
6575
  "invalid"
6406
6576
  ]
6407
6577
  },
@@ -6597,6 +6767,8 @@
6597
6767
  "resources_mismatch",
6598
6768
  "unsupported",
6599
6769
  "activation_rejected",
6770
+ "activation_unavailable",
6771
+ "activation_unauthenticated",
6600
6772
  "invalid"
6601
6773
  ]
6602
6774
  },
@@ -6618,6 +6790,30 @@
6618
6790
  "kind": {
6619
6791
  "const": "secret_manager"
6620
6792
  },
6793
+ "action": {
6794
+ "const": "add_secret"
6795
+ },
6796
+ "url": {
6797
+ "type": "string",
6798
+ "format": "uri"
6799
+ },
6800
+ "names": {
6801
+ "type": "array",
6802
+ "minItems": 1,
6803
+ "maxItems": 10,
6804
+ "items": {
6805
+ "type": "string",
6806
+ "minLength": 1
6807
+ }
6808
+ },
6809
+ "scope": {
6810
+ "type": "string",
6811
+ "minLength": 1
6812
+ },
6813
+ "owner": {
6814
+ "type": "string",
6815
+ "minLength": 1
6816
+ },
6621
6817
  "secret": {
6622
6818
  "type": "object",
6623
6819
  "properties": {
@@ -6640,10 +6836,6 @@
6640
6836
  ],
6641
6837
  "additionalProperties": false
6642
6838
  },
6643
- "url": {
6644
- "type": "string",
6645
- "format": "uri"
6646
- },
6647
6839
  "message": {
6648
6840
  "type": "string",
6649
6841
  "minLength": 1
@@ -6651,8 +6843,11 @@
6651
6843
  },
6652
6844
  "required": [
6653
6845
  "kind",
6654
- "secret",
6846
+ "action",
6655
6847
  "url",
6848
+ "names",
6849
+ "owner",
6850
+ "secret",
6656
6851
  "message"
6657
6852
  ],
6658
6853
  "additionalProperties": false
@@ -6799,6 +6994,8 @@
6799
6994
  "resources_mismatch",
6800
6995
  "unsupported",
6801
6996
  "activation_rejected",
6997
+ "activation_unavailable",
6998
+ "activation_unauthenticated",
6802
6999
  "invalid"
6803
7000
  ]
6804
7001
  },
@@ -6826,6 +7023,7 @@
6826
7023
  "PROFILE_NOT_FOUND",
6827
7024
  "PROFILE_POSTURE_NOT_ALLOWED",
6828
7025
  "PROFILE_OWNER_OPT_IN_REQUIRED",
7026
+ "PROFILE_MIGRATION_REQUIRED",
6829
7027
  "AUTH_REQUIRED",
6830
7028
  "PERMISSION_DENIED",
6831
7029
  "SESSION_NOT_FOUND",
@@ -7210,6 +7408,7 @@
7210
7408
  "PROFILE_NOT_FOUND",
7211
7409
  "PROFILE_POSTURE_NOT_ALLOWED",
7212
7410
  "PROFILE_OWNER_OPT_IN_REQUIRED",
7411
+ "PROFILE_MIGRATION_REQUIRED",
7213
7412
  "AUTH_REQUIRED",
7214
7413
  "PERMISSION_DENIED",
7215
7414
  "SESSION_NOT_FOUND",
@@ -7400,6 +7599,8 @@
7400
7599
  "resources_mismatch",
7401
7600
  "unsupported",
7402
7601
  "activation_rejected",
7602
+ "activation_unavailable",
7603
+ "activation_unauthenticated",
7403
7604
  "invalid"
7404
7605
  ]
7405
7606
  },
@@ -7528,6 +7729,8 @@
7528
7729
  "resources_mismatch",
7529
7730
  "unsupported",
7530
7731
  "activation_rejected",
7732
+ "activation_unavailable",
7733
+ "activation_unauthenticated",
7531
7734
  "invalid"
7532
7735
  ]
7533
7736
  },
@@ -7723,6 +7926,8 @@
7723
7926
  "resources_mismatch",
7724
7927
  "unsupported",
7725
7928
  "activation_rejected",
7929
+ "activation_unavailable",
7930
+ "activation_unauthenticated",
7726
7931
  "invalid"
7727
7932
  ]
7728
7933
  },
@@ -7744,6 +7949,30 @@
7744
7949
  "kind": {
7745
7950
  "const": "secret_manager"
7746
7951
  },
7952
+ "action": {
7953
+ "const": "add_secret"
7954
+ },
7955
+ "url": {
7956
+ "type": "string",
7957
+ "format": "uri"
7958
+ },
7959
+ "names": {
7960
+ "type": "array",
7961
+ "minItems": 1,
7962
+ "maxItems": 10,
7963
+ "items": {
7964
+ "type": "string",
7965
+ "minLength": 1
7966
+ }
7967
+ },
7968
+ "scope": {
7969
+ "type": "string",
7970
+ "minLength": 1
7971
+ },
7972
+ "owner": {
7973
+ "type": "string",
7974
+ "minLength": 1
7975
+ },
7747
7976
  "secret": {
7748
7977
  "type": "object",
7749
7978
  "properties": {
@@ -7766,10 +7995,6 @@
7766
7995
  ],
7767
7996
  "additionalProperties": false
7768
7997
  },
7769
- "url": {
7770
- "type": "string",
7771
- "format": "uri"
7772
- },
7773
7998
  "message": {
7774
7999
  "type": "string",
7775
8000
  "minLength": 1
@@ -7777,8 +8002,11 @@
7777
8002
  },
7778
8003
  "required": [
7779
8004
  "kind",
7780
- "secret",
8005
+ "action",
7781
8006
  "url",
8007
+ "names",
8008
+ "owner",
8009
+ "secret",
7782
8010
  "message"
7783
8011
  ],
7784
8012
  "additionalProperties": false
@@ -7925,6 +8153,8 @@
7925
8153
  "resources_mismatch",
7926
8154
  "unsupported",
7927
8155
  "activation_rejected",
8156
+ "activation_unavailable",
8157
+ "activation_unauthenticated",
7928
8158
  "invalid"
7929
8159
  ]
7930
8160
  },
@@ -7952,6 +8182,7 @@
7952
8182
  "PROFILE_NOT_FOUND",
7953
8183
  "PROFILE_POSTURE_NOT_ALLOWED",
7954
8184
  "PROFILE_OWNER_OPT_IN_REQUIRED",
8185
+ "PROFILE_MIGRATION_REQUIRED",
7955
8186
  "AUTH_REQUIRED",
7956
8187
  "PERMISSION_DENIED",
7957
8188
  "SESSION_NOT_FOUND",
@@ -8273,6 +8504,7 @@
8273
8504
  "PROFILE_NOT_FOUND",
8274
8505
  "PROFILE_POSTURE_NOT_ALLOWED",
8275
8506
  "PROFILE_OWNER_OPT_IN_REQUIRED",
8507
+ "PROFILE_MIGRATION_REQUIRED",
8276
8508
  "AUTH_REQUIRED",
8277
8509
  "PERMISSION_DENIED",
8278
8510
  "SESSION_NOT_FOUND",
@@ -8518,6 +8750,8 @@
8518
8750
  "resources_mismatch",
8519
8751
  "unsupported",
8520
8752
  "activation_rejected",
8753
+ "activation_unavailable",
8754
+ "activation_unauthenticated",
8521
8755
  "invalid"
8522
8756
  ]
8523
8757
  },
@@ -8646,6 +8880,8 @@
8646
8880
  "resources_mismatch",
8647
8881
  "unsupported",
8648
8882
  "activation_rejected",
8883
+ "activation_unavailable",
8884
+ "activation_unauthenticated",
8649
8885
  "invalid"
8650
8886
  ]
8651
8887
  },
@@ -8841,6 +9077,8 @@
8841
9077
  "resources_mismatch",
8842
9078
  "unsupported",
8843
9079
  "activation_rejected",
9080
+ "activation_unavailable",
9081
+ "activation_unauthenticated",
8844
9082
  "invalid"
8845
9083
  ]
8846
9084
  },
@@ -8862,6 +9100,30 @@
8862
9100
  "kind": {
8863
9101
  "const": "secret_manager"
8864
9102
  },
9103
+ "action": {
9104
+ "const": "add_secret"
9105
+ },
9106
+ "url": {
9107
+ "type": "string",
9108
+ "format": "uri"
9109
+ },
9110
+ "names": {
9111
+ "type": "array",
9112
+ "minItems": 1,
9113
+ "maxItems": 10,
9114
+ "items": {
9115
+ "type": "string",
9116
+ "minLength": 1
9117
+ }
9118
+ },
9119
+ "scope": {
9120
+ "type": "string",
9121
+ "minLength": 1
9122
+ },
9123
+ "owner": {
9124
+ "type": "string",
9125
+ "minLength": 1
9126
+ },
8865
9127
  "secret": {
8866
9128
  "type": "object",
8867
9129
  "properties": {
@@ -8884,10 +9146,6 @@
8884
9146
  ],
8885
9147
  "additionalProperties": false
8886
9148
  },
8887
- "url": {
8888
- "type": "string",
8889
- "format": "uri"
8890
- },
8891
9149
  "message": {
8892
9150
  "type": "string",
8893
9151
  "minLength": 1
@@ -8895,8 +9153,11 @@
8895
9153
  },
8896
9154
  "required": [
8897
9155
  "kind",
8898
- "secret",
9156
+ "action",
8899
9157
  "url",
9158
+ "names",
9159
+ "owner",
9160
+ "secret",
8900
9161
  "message"
8901
9162
  ],
8902
9163
  "additionalProperties": false
@@ -9043,6 +9304,8 @@
9043
9304
  "resources_mismatch",
9044
9305
  "unsupported",
9045
9306
  "activation_rejected",
9307
+ "activation_unavailable",
9308
+ "activation_unauthenticated",
9046
9309
  "invalid"
9047
9310
  ]
9048
9311
  },
@@ -9070,6 +9333,7 @@
9070
9333
  "PROFILE_NOT_FOUND",
9071
9334
  "PROFILE_POSTURE_NOT_ALLOWED",
9072
9335
  "PROFILE_OWNER_OPT_IN_REQUIRED",
9336
+ "PROFILE_MIGRATION_REQUIRED",
9073
9337
  "AUTH_REQUIRED",
9074
9338
  "PERMISSION_DENIED",
9075
9339
  "SESSION_NOT_FOUND",
@@ -9442,6 +9706,7 @@
9442
9706
  "PROFILE_NOT_FOUND",
9443
9707
  "PROFILE_POSTURE_NOT_ALLOWED",
9444
9708
  "PROFILE_OWNER_OPT_IN_REQUIRED",
9709
+ "PROFILE_MIGRATION_REQUIRED",
9445
9710
  "AUTH_REQUIRED",
9446
9711
  "PERMISSION_DENIED",
9447
9712
  "SESSION_NOT_FOUND",
@@ -9640,6 +9905,8 @@
9640
9905
  "resources_mismatch",
9641
9906
  "unsupported",
9642
9907
  "activation_rejected",
9908
+ "activation_unavailable",
9909
+ "activation_unauthenticated",
9643
9910
  "invalid"
9644
9911
  ]
9645
9912
  },
@@ -9768,6 +10035,8 @@
9768
10035
  "resources_mismatch",
9769
10036
  "unsupported",
9770
10037
  "activation_rejected",
10038
+ "activation_unavailable",
10039
+ "activation_unauthenticated",
9771
10040
  "invalid"
9772
10041
  ]
9773
10042
  },
@@ -9963,6 +10232,8 @@
9963
10232
  "resources_mismatch",
9964
10233
  "unsupported",
9965
10234
  "activation_rejected",
10235
+ "activation_unavailable",
10236
+ "activation_unauthenticated",
9966
10237
  "invalid"
9967
10238
  ]
9968
10239
  },
@@ -9984,6 +10255,30 @@
9984
10255
  "kind": {
9985
10256
  "const": "secret_manager"
9986
10257
  },
10258
+ "action": {
10259
+ "const": "add_secret"
10260
+ },
10261
+ "url": {
10262
+ "type": "string",
10263
+ "format": "uri"
10264
+ },
10265
+ "names": {
10266
+ "type": "array",
10267
+ "minItems": 1,
10268
+ "maxItems": 10,
10269
+ "items": {
10270
+ "type": "string",
10271
+ "minLength": 1
10272
+ }
10273
+ },
10274
+ "scope": {
10275
+ "type": "string",
10276
+ "minLength": 1
10277
+ },
10278
+ "owner": {
10279
+ "type": "string",
10280
+ "minLength": 1
10281
+ },
9987
10282
  "secret": {
9988
10283
  "type": "object",
9989
10284
  "properties": {
@@ -10006,10 +10301,6 @@
10006
10301
  ],
10007
10302
  "additionalProperties": false
10008
10303
  },
10009
- "url": {
10010
- "type": "string",
10011
- "format": "uri"
10012
- },
10013
10304
  "message": {
10014
10305
  "type": "string",
10015
10306
  "minLength": 1
@@ -10017,8 +10308,11 @@
10017
10308
  },
10018
10309
  "required": [
10019
10310
  "kind",
10020
- "secret",
10311
+ "action",
10021
10312
  "url",
10313
+ "names",
10314
+ "owner",
10315
+ "secret",
10022
10316
  "message"
10023
10317
  ],
10024
10318
  "additionalProperties": false
@@ -10165,6 +10459,8 @@
10165
10459
  "resources_mismatch",
10166
10460
  "unsupported",
10167
10461
  "activation_rejected",
10462
+ "activation_unavailable",
10463
+ "activation_unauthenticated",
10168
10464
  "invalid"
10169
10465
  ]
10170
10466
  },
@@ -10192,6 +10488,7 @@
10192
10488
  "PROFILE_NOT_FOUND",
10193
10489
  "PROFILE_POSTURE_NOT_ALLOWED",
10194
10490
  "PROFILE_OWNER_OPT_IN_REQUIRED",
10491
+ "PROFILE_MIGRATION_REQUIRED",
10195
10492
  "AUTH_REQUIRED",
10196
10493
  "PERMISSION_DENIED",
10197
10494
  "SESSION_NOT_FOUND",
@@ -10525,6 +10822,7 @@
10525
10822
  "PROFILE_NOT_FOUND",
10526
10823
  "PROFILE_POSTURE_NOT_ALLOWED",
10527
10824
  "PROFILE_OWNER_OPT_IN_REQUIRED",
10825
+ "PROFILE_MIGRATION_REQUIRED",
10528
10826
  "AUTH_REQUIRED",
10529
10827
  "PERMISSION_DENIED",
10530
10828
  "SESSION_NOT_FOUND",
@@ -10721,6 +11019,8 @@
10721
11019
  "resources_mismatch",
10722
11020
  "unsupported",
10723
11021
  "activation_rejected",
11022
+ "activation_unavailable",
11023
+ "activation_unauthenticated",
10724
11024
  "invalid"
10725
11025
  ]
10726
11026
  },
@@ -10849,6 +11149,8 @@
10849
11149
  "resources_mismatch",
10850
11150
  "unsupported",
10851
11151
  "activation_rejected",
11152
+ "activation_unavailable",
11153
+ "activation_unauthenticated",
10852
11154
  "invalid"
10853
11155
  ]
10854
11156
  },
@@ -11044,6 +11346,8 @@
11044
11346
  "resources_mismatch",
11045
11347
  "unsupported",
11046
11348
  "activation_rejected",
11349
+ "activation_unavailable",
11350
+ "activation_unauthenticated",
11047
11351
  "invalid"
11048
11352
  ]
11049
11353
  },
@@ -11065,6 +11369,30 @@
11065
11369
  "kind": {
11066
11370
  "const": "secret_manager"
11067
11371
  },
11372
+ "action": {
11373
+ "const": "add_secret"
11374
+ },
11375
+ "url": {
11376
+ "type": "string",
11377
+ "format": "uri"
11378
+ },
11379
+ "names": {
11380
+ "type": "array",
11381
+ "minItems": 1,
11382
+ "maxItems": 10,
11383
+ "items": {
11384
+ "type": "string",
11385
+ "minLength": 1
11386
+ }
11387
+ },
11388
+ "scope": {
11389
+ "type": "string",
11390
+ "minLength": 1
11391
+ },
11392
+ "owner": {
11393
+ "type": "string",
11394
+ "minLength": 1
11395
+ },
11068
11396
  "secret": {
11069
11397
  "type": "object",
11070
11398
  "properties": {
@@ -11087,10 +11415,6 @@
11087
11415
  ],
11088
11416
  "additionalProperties": false
11089
11417
  },
11090
- "url": {
11091
- "type": "string",
11092
- "format": "uri"
11093
- },
11094
11418
  "message": {
11095
11419
  "type": "string",
11096
11420
  "minLength": 1
@@ -11098,8 +11422,11 @@
11098
11422
  },
11099
11423
  "required": [
11100
11424
  "kind",
11101
- "secret",
11425
+ "action",
11102
11426
  "url",
11427
+ "names",
11428
+ "owner",
11429
+ "secret",
11103
11430
  "message"
11104
11431
  ],
11105
11432
  "additionalProperties": false
@@ -11246,6 +11573,8 @@
11246
11573
  "resources_mismatch",
11247
11574
  "unsupported",
11248
11575
  "activation_rejected",
11576
+ "activation_unavailable",
11577
+ "activation_unauthenticated",
11249
11578
  "invalid"
11250
11579
  ]
11251
11580
  },
@@ -11273,6 +11602,7 @@
11273
11602
  "PROFILE_NOT_FOUND",
11274
11603
  "PROFILE_POSTURE_NOT_ALLOWED",
11275
11604
  "PROFILE_OWNER_OPT_IN_REQUIRED",
11605
+ "PROFILE_MIGRATION_REQUIRED",
11276
11606
  "AUTH_REQUIRED",
11277
11607
  "PERMISSION_DENIED",
11278
11608
  "SESSION_NOT_FOUND",
@@ -11601,6 +11931,7 @@
11601
11931
  "PROFILE_NOT_FOUND",
11602
11932
  "PROFILE_POSTURE_NOT_ALLOWED",
11603
11933
  "PROFILE_OWNER_OPT_IN_REQUIRED",
11934
+ "PROFILE_MIGRATION_REQUIRED",
11604
11935
  "AUTH_REQUIRED",
11605
11936
  "PERMISSION_DENIED",
11606
11937
  "SESSION_NOT_FOUND",
@@ -11970,6 +12301,8 @@
11970
12301
  "resources_mismatch",
11971
12302
  "unsupported",
11972
12303
  "activation_rejected",
12304
+ "activation_unavailable",
12305
+ "activation_unauthenticated",
11973
12306
  "invalid"
11974
12307
  ]
11975
12308
  },
@@ -12098,6 +12431,8 @@
12098
12431
  "resources_mismatch",
12099
12432
  "unsupported",
12100
12433
  "activation_rejected",
12434
+ "activation_unavailable",
12435
+ "activation_unauthenticated",
12101
12436
  "invalid"
12102
12437
  ]
12103
12438
  },
@@ -12293,6 +12628,8 @@
12293
12628
  "resources_mismatch",
12294
12629
  "unsupported",
12295
12630
  "activation_rejected",
12631
+ "activation_unavailable",
12632
+ "activation_unauthenticated",
12296
12633
  "invalid"
12297
12634
  ]
12298
12635
  },
@@ -12314,6 +12651,30 @@
12314
12651
  "kind": {
12315
12652
  "const": "secret_manager"
12316
12653
  },
12654
+ "action": {
12655
+ "const": "add_secret"
12656
+ },
12657
+ "url": {
12658
+ "type": "string",
12659
+ "format": "uri"
12660
+ },
12661
+ "names": {
12662
+ "type": "array",
12663
+ "minItems": 1,
12664
+ "maxItems": 10,
12665
+ "items": {
12666
+ "type": "string",
12667
+ "minLength": 1
12668
+ }
12669
+ },
12670
+ "scope": {
12671
+ "type": "string",
12672
+ "minLength": 1
12673
+ },
12674
+ "owner": {
12675
+ "type": "string",
12676
+ "minLength": 1
12677
+ },
12317
12678
  "secret": {
12318
12679
  "type": "object",
12319
12680
  "properties": {
@@ -12336,10 +12697,6 @@
12336
12697
  ],
12337
12698
  "additionalProperties": false
12338
12699
  },
12339
- "url": {
12340
- "type": "string",
12341
- "format": "uri"
12342
- },
12343
12700
  "message": {
12344
12701
  "type": "string",
12345
12702
  "minLength": 1
@@ -12347,8 +12704,11 @@
12347
12704
  },
12348
12705
  "required": [
12349
12706
  "kind",
12350
- "secret",
12707
+ "action",
12351
12708
  "url",
12709
+ "names",
12710
+ "owner",
12711
+ "secret",
12352
12712
  "message"
12353
12713
  ],
12354
12714
  "additionalProperties": false
@@ -12495,6 +12855,8 @@
12495
12855
  "resources_mismatch",
12496
12856
  "unsupported",
12497
12857
  "activation_rejected",
12858
+ "activation_unavailable",
12859
+ "activation_unauthenticated",
12498
12860
  "invalid"
12499
12861
  ]
12500
12862
  },
@@ -12522,6 +12884,7 @@
12522
12884
  "PROFILE_NOT_FOUND",
12523
12885
  "PROFILE_POSTURE_NOT_ALLOWED",
12524
12886
  "PROFILE_OWNER_OPT_IN_REQUIRED",
12887
+ "PROFILE_MIGRATION_REQUIRED",
12525
12888
  "AUTH_REQUIRED",
12526
12889
  "PERMISSION_DENIED",
12527
12890
  "SESSION_NOT_FOUND",
@@ -12869,6 +13232,7 @@
12869
13232
  "PROFILE_NOT_FOUND",
12870
13233
  "PROFILE_POSTURE_NOT_ALLOWED",
12871
13234
  "PROFILE_OWNER_OPT_IN_REQUIRED",
13235
+ "PROFILE_MIGRATION_REQUIRED",
12872
13236
  "AUTH_REQUIRED",
12873
13237
  "PERMISSION_DENIED",
12874
13238
  "SESSION_NOT_FOUND",
@@ -13041,6 +13405,8 @@
13041
13405
  "resources_mismatch",
13042
13406
  "unsupported",
13043
13407
  "activation_rejected",
13408
+ "activation_unavailable",
13409
+ "activation_unauthenticated",
13044
13410
  "invalid"
13045
13411
  ]
13046
13412
  },
@@ -13169,6 +13535,8 @@
13169
13535
  "resources_mismatch",
13170
13536
  "unsupported",
13171
13537
  "activation_rejected",
13538
+ "activation_unavailable",
13539
+ "activation_unauthenticated",
13172
13540
  "invalid"
13173
13541
  ]
13174
13542
  },
@@ -13364,6 +13732,8 @@
13364
13732
  "resources_mismatch",
13365
13733
  "unsupported",
13366
13734
  "activation_rejected",
13735
+ "activation_unavailable",
13736
+ "activation_unauthenticated",
13367
13737
  "invalid"
13368
13738
  ]
13369
13739
  },
@@ -13385,9 +13755,1177 @@
13385
13755
  "kind": {
13386
13756
  "const": "secret_manager"
13387
13757
  },
13388
- "secret": {
13389
- "type": "object",
13390
- "properties": {
13758
+ "action": {
13759
+ "const": "add_secret"
13760
+ },
13761
+ "url": {
13762
+ "type": "string",
13763
+ "format": "uri"
13764
+ },
13765
+ "names": {
13766
+ "type": "array",
13767
+ "minItems": 1,
13768
+ "maxItems": 10,
13769
+ "items": {
13770
+ "type": "string",
13771
+ "minLength": 1
13772
+ }
13773
+ },
13774
+ "scope": {
13775
+ "type": "string",
13776
+ "minLength": 1
13777
+ },
13778
+ "owner": {
13779
+ "type": "string",
13780
+ "minLength": 1
13781
+ },
13782
+ "secret": {
13783
+ "type": "object",
13784
+ "properties": {
13785
+ "name": {
13786
+ "type": "string",
13787
+ "minLength": 1
13788
+ },
13789
+ "scope": {
13790
+ "type": "string",
13791
+ "minLength": 1
13792
+ },
13793
+ "space": {
13794
+ "type": "string",
13795
+ "minLength": 1
13796
+ }
13797
+ },
13798
+ "required": [
13799
+ "name",
13800
+ "space"
13801
+ ],
13802
+ "additionalProperties": false
13803
+ },
13804
+ "message": {
13805
+ "type": "string",
13806
+ "minLength": 1
13807
+ }
13808
+ },
13809
+ "required": [
13810
+ "kind",
13811
+ "action",
13812
+ "url",
13813
+ "names",
13814
+ "owner",
13815
+ "secret",
13816
+ "message"
13817
+ ],
13818
+ "additionalProperties": false
13819
+ },
13820
+ "retry": {
13821
+ "type": "object",
13822
+ "properties": {
13823
+ "operationId": {
13824
+ "type": "string",
13825
+ "minLength": 1
13826
+ },
13827
+ "operationVersion": {
13828
+ "type": "integer",
13829
+ "const": 1
13830
+ },
13831
+ "inputDigest": {
13832
+ "type": "string",
13833
+ "pattern": "^[a-f0-9]{64}$"
13834
+ },
13835
+ "safeInput": {
13836
+ "type": "object",
13837
+ "additionalProperties": true
13838
+ },
13839
+ "requiresCallerInput": {
13840
+ "type": "boolean"
13841
+ }
13842
+ },
13843
+ "required": [
13844
+ "operationId",
13845
+ "operationVersion",
13846
+ "inputDigest",
13847
+ "requiresCallerInput"
13848
+ ],
13849
+ "additionalProperties": false
13850
+ }
13851
+ },
13852
+ "required": [
13853
+ "status",
13854
+ "operation",
13855
+ "context",
13856
+ "setup",
13857
+ "retry"
13858
+ ],
13859
+ "additionalProperties": false
13860
+ },
13861
+ {
13862
+ "type": "object",
13863
+ "properties": {
13864
+ "status": {
13865
+ "const": "error"
13866
+ },
13867
+ "operation": {
13868
+ "type": "object",
13869
+ "properties": {
13870
+ "operationId": {
13871
+ "type": "string",
13872
+ "const": "tinycloud.secrets.get"
13873
+ },
13874
+ "operationVersion": {
13875
+ "type": "integer",
13876
+ "const": 1
13877
+ }
13878
+ },
13879
+ "required": [
13880
+ "operationId",
13881
+ "operationVersion"
13882
+ ],
13883
+ "additionalProperties": false
13884
+ },
13885
+ "context": {
13886
+ "type": "object",
13887
+ "properties": {
13888
+ "profile": {
13889
+ "type": "string",
13890
+ "minLength": 1
13891
+ },
13892
+ "host": {
13893
+ "type": "string",
13894
+ "minLength": 1
13895
+ },
13896
+ "posture": {
13897
+ "type": "string",
13898
+ "enum": [
13899
+ "owner-openkey",
13900
+ "delegate-session",
13901
+ "local-owner-key",
13902
+ "unauthenticated"
13903
+ ]
13904
+ },
13905
+ "operatorType": {
13906
+ "type": "string",
13907
+ "enum": [
13908
+ "human",
13909
+ "agent"
13910
+ ]
13911
+ },
13912
+ "principalDid": {
13913
+ "type": "string",
13914
+ "minLength": 1
13915
+ },
13916
+ "sessionDid": {
13917
+ "type": "string",
13918
+ "minLength": 1
13919
+ },
13920
+ "ownerDid": {
13921
+ "type": "string",
13922
+ "minLength": 1
13923
+ },
13924
+ "space": {
13925
+ "type": "string",
13926
+ "minLength": 1
13927
+ }
13928
+ },
13929
+ "required": [
13930
+ "profile",
13931
+ "host",
13932
+ "posture"
13933
+ ],
13934
+ "additionalProperties": false
13935
+ },
13936
+ "warnings": {
13937
+ "type": "array",
13938
+ "minItems": 1,
13939
+ "items": {
13940
+ "type": "object",
13941
+ "properties": {
13942
+ "code": {
13943
+ "const": "STORED_GRANT_SKIPPED"
13944
+ },
13945
+ "reason": {
13946
+ "type": "string",
13947
+ "enum": [
13948
+ "malformed",
13949
+ "unbound",
13950
+ "outside_request",
13951
+ "host_mismatch",
13952
+ "expired",
13953
+ "cid_mismatch",
13954
+ "authority_invalid",
13955
+ "proof_missing",
13956
+ "proof_invalid",
13957
+ "owner_mismatch",
13958
+ "audience_mismatch",
13959
+ "resources_mismatch",
13960
+ "unsupported",
13961
+ "activation_rejected",
13962
+ "activation_unavailable",
13963
+ "activation_unauthenticated",
13964
+ "invalid"
13965
+ ]
13966
+ },
13967
+ "grantCid": {
13968
+ "type": "string",
13969
+ "pattern": "^bafkr4i[a-z2-7]{52}$"
13970
+ }
13971
+ },
13972
+ "required": [
13973
+ "code",
13974
+ "reason"
13975
+ ],
13976
+ "additionalProperties": false
13977
+ }
13978
+ },
13979
+ "error": {
13980
+ "type": "object",
13981
+ "properties": {
13982
+ "code": {
13983
+ "type": "string",
13984
+ "enum": [
13985
+ "INPUT_INVALID",
13986
+ "OPERATION_NOT_FOUND",
13987
+ "OPERATION_VERSION_UNSUPPORTED",
13988
+ "PROFILE_NOT_FOUND",
13989
+ "PROFILE_POSTURE_NOT_ALLOWED",
13990
+ "PROFILE_OWNER_OPT_IN_REQUIRED",
13991
+ "PROFILE_MIGRATION_REQUIRED",
13992
+ "AUTH_REQUIRED",
13993
+ "PERMISSION_DENIED",
13994
+ "SESSION_NOT_FOUND",
13995
+ "PERMISSION_HINT_INVALID",
13996
+ "DELEGATION_ARTIFACT_INVALID",
13997
+ "DELEGATION_EXPIRED",
13998
+ "DELEGATION_AUDIENCE_MISMATCH",
13999
+ "DELEGATION_HOST_MISMATCH",
14000
+ "DELEGATION_REJECTED",
14001
+ "ENCRYPTION_NETWORK_UNRESOLVED",
14002
+ "NODE_UNREACHABLE",
14003
+ "NODE_ERROR",
14004
+ "STORAGE_QUOTA_EXCEEDED",
14005
+ "KV_NOT_FOUND",
14006
+ "KV_PRECONDITION_FAILED",
14007
+ "KV_CONFLICT",
14008
+ "KV_RESPONSE_TOO_LARGE",
14009
+ "SQL_QUERY_INVALID",
14010
+ "SQL_EXECUTION_FAILED",
14011
+ "SQL_RESULT_LIMIT_EXCEEDED",
14012
+ "SQL_VALUE_UNSAFE",
14013
+ "SECRET_READ_FAILED",
14014
+ "SECRET_DECRYPT_FAILED",
14015
+ "OUTPUT_INVALID",
14016
+ "INTERNAL_ERROR"
14017
+ ]
14018
+ },
14019
+ "message": {
14020
+ "type": "string",
14021
+ "minLength": 1
14022
+ },
14023
+ "retryable": {
14024
+ "type": "boolean"
14025
+ },
14026
+ "details": {
14027
+ "type": "object",
14028
+ "additionalProperties": true
14029
+ }
14030
+ },
14031
+ "required": [
14032
+ "code",
14033
+ "message",
14034
+ "retryable"
14035
+ ],
14036
+ "additionalProperties": false
14037
+ }
14038
+ },
14039
+ "required": [
14040
+ "status",
14041
+ "operation",
14042
+ "context",
14043
+ "error"
14044
+ ],
14045
+ "additionalProperties": false
14046
+ }
14047
+ ],
14048
+ "$defs": {
14049
+ "permissionEntry": {
14050
+ "type": "object",
14051
+ "properties": {
14052
+ "service": {
14053
+ "type": "string",
14054
+ "minLength": 1
14055
+ },
14056
+ "space": {
14057
+ "type": "string",
14058
+ "minLength": 1
14059
+ },
14060
+ "path": {
14061
+ "type": "string"
14062
+ },
14063
+ "actions": {
14064
+ "type": "array",
14065
+ "items": {
14066
+ "type": "string",
14067
+ "minLength": 1
14068
+ },
14069
+ "minItems": 1
14070
+ },
14071
+ "caveats": {
14072
+ "type": "array",
14073
+ "items": {
14074
+ "type": "object",
14075
+ "additionalProperties": {}
14076
+ }
14077
+ },
14078
+ "skipPrefix": {
14079
+ "type": "boolean"
14080
+ },
14081
+ "expiry": {
14082
+ "type": "string",
14083
+ "minLength": 1
14084
+ },
14085
+ "description": {
14086
+ "type": "string"
14087
+ }
14088
+ },
14089
+ "required": [
14090
+ "service",
14091
+ "path",
14092
+ "actions"
14093
+ ],
14094
+ "additionalProperties": false,
14095
+ "$schema": "http://json-schema.org/draft-07/schema#"
14096
+ },
14097
+ "permissionRequest": {
14098
+ "type": "object",
14099
+ "properties": {
14100
+ "kind": {
14101
+ "type": "string",
14102
+ "const": "tinycloud.auth.request"
14103
+ },
14104
+ "version": {
14105
+ "type": "number",
14106
+ "const": 1
14107
+ },
14108
+ "requestId": {
14109
+ "type": "string",
14110
+ "minLength": 1
14111
+ },
14112
+ "createdAt": {
14113
+ "type": "string",
14114
+ "format": "date-time"
14115
+ },
14116
+ "profile": {
14117
+ "type": "string",
14118
+ "minLength": 1
14119
+ },
14120
+ "posture": {
14121
+ "type": "string",
14122
+ "enum": [
14123
+ "owner-openkey",
14124
+ "delegate-session",
14125
+ "local-owner-key",
14126
+ "unauthenticated"
14127
+ ]
14128
+ },
14129
+ "operatorType": {
14130
+ "type": "string",
14131
+ "enum": [
14132
+ "human",
14133
+ "agent"
14134
+ ]
14135
+ },
14136
+ "host": {
14137
+ "type": "string",
14138
+ "minLength": 1
14139
+ },
14140
+ "sessionDid": {
14141
+ "type": "string",
14142
+ "minLength": 1
14143
+ },
14144
+ "ownerDid": {
14145
+ "type": "string",
14146
+ "minLength": 1
14147
+ },
14148
+ "spaceId": {
14149
+ "type": "string",
14150
+ "minLength": 1
14151
+ },
14152
+ "requestedExpiry": {
14153
+ "anyOf": [
14154
+ {
14155
+ "type": "string",
14156
+ "minLength": 1
14157
+ },
14158
+ {
14159
+ "type": "number"
14160
+ }
14161
+ ]
14162
+ },
14163
+ "requested": {
14164
+ "type": "array",
14165
+ "items": {
14166
+ "type": "object",
14167
+ "properties": {
14168
+ "service": {
14169
+ "type": "string",
14170
+ "minLength": 1
14171
+ },
14172
+ "space": {
14173
+ "type": "string",
14174
+ "minLength": 1
14175
+ },
14176
+ "path": {
14177
+ "type": "string"
14178
+ },
14179
+ "actions": {
14180
+ "type": "array",
14181
+ "items": {
14182
+ "type": "string",
14183
+ "minLength": 1
14184
+ },
14185
+ "minItems": 1
14186
+ },
14187
+ "caveats": {
14188
+ "type": "array",
14189
+ "items": {
14190
+ "type": "object",
14191
+ "additionalProperties": {}
14192
+ }
14193
+ },
14194
+ "skipPrefix": {
14195
+ "type": "boolean"
14196
+ },
14197
+ "expiry": {
14198
+ "type": "string",
14199
+ "minLength": 1
14200
+ },
14201
+ "description": {
14202
+ "type": "string"
14203
+ }
14204
+ },
14205
+ "required": [
14206
+ "service",
14207
+ "path",
14208
+ "actions"
14209
+ ],
14210
+ "additionalProperties": false
14211
+ }
14212
+ },
14213
+ "command": {
14214
+ "type": "object",
14215
+ "properties": {
14216
+ "argv": {
14217
+ "type": "array",
14218
+ "items": {
14219
+ "type": "string"
14220
+ },
14221
+ "minItems": 1
14222
+ },
14223
+ "cwd": {
14224
+ "type": "string",
14225
+ "minLength": 1
14226
+ }
14227
+ },
14228
+ "required": [
14229
+ "argv",
14230
+ "cwd"
14231
+ ],
14232
+ "additionalProperties": false
14233
+ }
14234
+ },
14235
+ "required": [
14236
+ "kind",
14237
+ "version",
14238
+ "requestId",
14239
+ "createdAt",
14240
+ "profile",
14241
+ "posture",
14242
+ "operatorType",
14243
+ "host",
14244
+ "sessionDid",
14245
+ "requested"
14246
+ ],
14247
+ "additionalProperties": false,
14248
+ "$schema": "http://json-schema.org/draft-07/schema#"
14249
+ },
14250
+ "output": {
14251
+ "type": "object",
14252
+ "properties": {
14253
+ "value": {
14254
+ "type": "string"
14255
+ }
14256
+ },
14257
+ "required": [
14258
+ "value"
14259
+ ],
14260
+ "additionalProperties": false,
14261
+ "$schema": "http://json-schema.org/draft-07/schema#"
14262
+ }
14263
+ }
14264
+ },
14265
+ "postures": [
14266
+ "owner-openkey",
14267
+ "delegate-session",
14268
+ "local-owner-key"
14269
+ ],
14270
+ "effects": [
14271
+ "read",
14272
+ "local_write"
14273
+ ],
14274
+ "sensitivity": {
14275
+ "input": false,
14276
+ "output": true
14277
+ },
14278
+ "exposure": {
14279
+ "cli": {
14280
+ "status": "required"
14281
+ },
14282
+ "mcp": {
14283
+ "status": "required"
14284
+ },
14285
+ "skill": {
14286
+ "status": "required"
14287
+ },
14288
+ "docs": {
14289
+ "status": "required"
14290
+ }
14291
+ },
14292
+ "stableErrors": [
14293
+ "INPUT_INVALID",
14294
+ "OPERATION_NOT_FOUND",
14295
+ "OPERATION_VERSION_UNSUPPORTED",
14296
+ "PROFILE_NOT_FOUND",
14297
+ "PROFILE_POSTURE_NOT_ALLOWED",
14298
+ "PROFILE_OWNER_OPT_IN_REQUIRED",
14299
+ "PROFILE_MIGRATION_REQUIRED",
14300
+ "AUTH_REQUIRED",
14301
+ "PERMISSION_DENIED",
14302
+ "SESSION_NOT_FOUND",
14303
+ "PERMISSION_HINT_INVALID",
14304
+ "DELEGATION_ARTIFACT_INVALID",
14305
+ "DELEGATION_EXPIRED",
14306
+ "DELEGATION_AUDIENCE_MISMATCH",
14307
+ "DELEGATION_HOST_MISMATCH",
14308
+ "DELEGATION_REJECTED",
14309
+ "ENCRYPTION_NETWORK_UNRESOLVED",
14310
+ "NODE_UNREACHABLE",
14311
+ "NODE_ERROR",
14312
+ "STORAGE_QUOTA_EXCEEDED",
14313
+ "KV_NOT_FOUND",
14314
+ "KV_PRECONDITION_FAILED",
14315
+ "KV_CONFLICT",
14316
+ "KV_RESPONSE_TOO_LARGE",
14317
+ "SQL_QUERY_INVALID",
14318
+ "SQL_EXECUTION_FAILED",
14319
+ "SQL_RESULT_LIMIT_EXCEEDED",
14320
+ "SQL_VALUE_UNSAFE",
14321
+ "SECRET_READ_FAILED",
14322
+ "SECRET_DECRYPT_FAILED",
14323
+ "OUTPUT_INVALID",
14324
+ "INTERNAL_ERROR"
14325
+ ],
14326
+ "authority": {
14327
+ "dynamic": true
14328
+ }
14329
+ },
14330
+ {
14331
+ "id": "tinycloud.secrets.status",
14332
+ "version": 1,
14333
+ "title": "Check whether TinyCloud secrets exist",
14334
+ "description": "Report, without reading any value, which named secrets exist in the owner's secrets space: ready, pending (with a Secret Manager request link), or consent_required for names this identity may not read. Each name needs tinycloud.kv/get; this operation never requests it. It never signs in: it uses only the profile's stored session, and writes no profile state.",
14335
+ "input": {
14336
+ "type": "object",
14337
+ "properties": {
14338
+ "names": {
14339
+ "type": "array",
14340
+ "items": {
14341
+ "type": "string"
14342
+ }
14343
+ },
14344
+ "scope": {
14345
+ "type": "string"
14346
+ },
14347
+ "owner": {
14348
+ "type": "string"
14349
+ }
14350
+ },
14351
+ "required": [
14352
+ "names"
14353
+ ],
14354
+ "additionalProperties": false,
14355
+ "$schema": "http://json-schema.org/draft-07/schema#"
14356
+ },
14357
+ "output": {
14358
+ "type": "object",
14359
+ "properties": {
14360
+ "status": {
14361
+ "type": "string",
14362
+ "enum": [
14363
+ "ready",
14364
+ "pending",
14365
+ "consent_required"
14366
+ ]
14367
+ },
14368
+ "owner": {
14369
+ "type": "string"
14370
+ },
14371
+ "names": {
14372
+ "type": "array",
14373
+ "items": {
14374
+ "type": "string"
14375
+ },
14376
+ "minItems": 1
14377
+ },
14378
+ "scope": {
14379
+ "type": "string"
14380
+ },
14381
+ "present": {
14382
+ "type": "array",
14383
+ "items": {
14384
+ "type": "string"
14385
+ }
14386
+ },
14387
+ "pending": {
14388
+ "type": "array",
14389
+ "items": {
14390
+ "type": "string"
14391
+ }
14392
+ },
14393
+ "denied": {
14394
+ "type": "array",
14395
+ "items": {
14396
+ "type": "string"
14397
+ }
14398
+ },
14399
+ "setup": {
14400
+ "type": "object",
14401
+ "properties": {
14402
+ "url": {
14403
+ "type": "string",
14404
+ "format": "uri"
14405
+ },
14406
+ "names": {
14407
+ "type": "array",
14408
+ "items": {
14409
+ "type": "string"
14410
+ },
14411
+ "minItems": 1
14412
+ },
14413
+ "scope": {
14414
+ "type": "string"
14415
+ },
14416
+ "owner": {
14417
+ "type": "string"
14418
+ },
14419
+ "action": {
14420
+ "type": "string",
14421
+ "const": "add_secret"
14422
+ }
14423
+ },
14424
+ "required": [
14425
+ "url",
14426
+ "names",
14427
+ "owner",
14428
+ "action"
14429
+ ],
14430
+ "additionalProperties": false
14431
+ },
14432
+ "hint": {
14433
+ "type": "string"
14434
+ }
14435
+ },
14436
+ "required": [
14437
+ "status",
14438
+ "owner",
14439
+ "names",
14440
+ "present",
14441
+ "pending",
14442
+ "denied"
14443
+ ],
14444
+ "additionalProperties": false,
14445
+ "$schema": "http://json-schema.org/draft-07/schema#"
14446
+ },
14447
+ "result": {
14448
+ "$schema": "http://json-schema.org/draft-07/schema#",
14449
+ "type": "object",
14450
+ "anyOf": [
14451
+ {
14452
+ "type": "object",
14453
+ "properties": {
14454
+ "status": {
14455
+ "const": "ok"
14456
+ },
14457
+ "operation": {
14458
+ "type": "object",
14459
+ "properties": {
14460
+ "operationId": {
14461
+ "type": "string",
14462
+ "const": "tinycloud.secrets.status"
14463
+ },
14464
+ "operationVersion": {
14465
+ "type": "integer",
14466
+ "const": 1
14467
+ }
14468
+ },
14469
+ "required": [
14470
+ "operationId",
14471
+ "operationVersion"
14472
+ ],
14473
+ "additionalProperties": false
14474
+ },
14475
+ "context": {
14476
+ "type": "object",
14477
+ "properties": {
14478
+ "profile": {
14479
+ "type": "string",
14480
+ "minLength": 1
14481
+ },
14482
+ "host": {
14483
+ "type": "string",
14484
+ "minLength": 1
14485
+ },
14486
+ "posture": {
14487
+ "type": "string",
14488
+ "enum": [
14489
+ "owner-openkey",
14490
+ "delegate-session",
14491
+ "local-owner-key",
14492
+ "unauthenticated"
14493
+ ]
14494
+ },
14495
+ "operatorType": {
14496
+ "type": "string",
14497
+ "enum": [
14498
+ "human",
14499
+ "agent"
14500
+ ]
14501
+ },
14502
+ "principalDid": {
14503
+ "type": "string",
14504
+ "minLength": 1
14505
+ },
14506
+ "sessionDid": {
14507
+ "type": "string",
14508
+ "minLength": 1
14509
+ },
14510
+ "ownerDid": {
14511
+ "type": "string",
14512
+ "minLength": 1
14513
+ },
14514
+ "space": {
14515
+ "type": "string",
14516
+ "minLength": 1
14517
+ }
14518
+ },
14519
+ "required": [
14520
+ "profile",
14521
+ "host",
14522
+ "posture"
14523
+ ],
14524
+ "additionalProperties": false
14525
+ },
14526
+ "warnings": {
14527
+ "type": "array",
14528
+ "minItems": 1,
14529
+ "items": {
14530
+ "type": "object",
14531
+ "properties": {
14532
+ "code": {
14533
+ "const": "STORED_GRANT_SKIPPED"
14534
+ },
14535
+ "reason": {
14536
+ "type": "string",
14537
+ "enum": [
14538
+ "malformed",
14539
+ "unbound",
14540
+ "outside_request",
14541
+ "host_mismatch",
14542
+ "expired",
14543
+ "cid_mismatch",
14544
+ "authority_invalid",
14545
+ "proof_missing",
14546
+ "proof_invalid",
14547
+ "owner_mismatch",
14548
+ "audience_mismatch",
14549
+ "resources_mismatch",
14550
+ "unsupported",
14551
+ "activation_rejected",
14552
+ "activation_unavailable",
14553
+ "activation_unauthenticated",
14554
+ "invalid"
14555
+ ]
14556
+ },
14557
+ "grantCid": {
14558
+ "type": "string",
14559
+ "pattern": "^bafkr4i[a-z2-7]{52}$"
14560
+ }
14561
+ },
14562
+ "required": [
14563
+ "code",
14564
+ "reason"
14565
+ ],
14566
+ "additionalProperties": false
14567
+ }
14568
+ },
14569
+ "output": {
14570
+ "$ref": "#/$defs/output"
14571
+ }
14572
+ },
14573
+ "required": [
14574
+ "status",
14575
+ "operation",
14576
+ "context",
14577
+ "output"
14578
+ ],
14579
+ "additionalProperties": false
14580
+ },
14581
+ {
14582
+ "type": "object",
14583
+ "properties": {
14584
+ "status": {
14585
+ "const": "authority_required"
14586
+ },
14587
+ "operation": {
14588
+ "type": "object",
14589
+ "properties": {
14590
+ "operationId": {
14591
+ "type": "string",
14592
+ "const": "tinycloud.secrets.status"
14593
+ },
14594
+ "operationVersion": {
14595
+ "type": "integer",
14596
+ "const": 1
14597
+ }
14598
+ },
14599
+ "required": [
14600
+ "operationId",
14601
+ "operationVersion"
14602
+ ],
14603
+ "additionalProperties": false
14604
+ },
14605
+ "context": {
14606
+ "type": "object",
14607
+ "properties": {
14608
+ "profile": {
14609
+ "type": "string",
14610
+ "minLength": 1
14611
+ },
14612
+ "host": {
14613
+ "type": "string",
14614
+ "minLength": 1
14615
+ },
14616
+ "posture": {
14617
+ "type": "string",
14618
+ "enum": [
14619
+ "owner-openkey",
14620
+ "delegate-session",
14621
+ "local-owner-key",
14622
+ "unauthenticated"
14623
+ ]
14624
+ },
14625
+ "operatorType": {
14626
+ "type": "string",
14627
+ "enum": [
14628
+ "human",
14629
+ "agent"
14630
+ ]
14631
+ },
14632
+ "principalDid": {
14633
+ "type": "string",
14634
+ "minLength": 1
14635
+ },
14636
+ "sessionDid": {
14637
+ "type": "string",
14638
+ "minLength": 1
14639
+ },
14640
+ "ownerDid": {
14641
+ "type": "string",
14642
+ "minLength": 1
14643
+ },
14644
+ "space": {
14645
+ "type": "string",
14646
+ "minLength": 1
14647
+ }
14648
+ },
14649
+ "required": [
14650
+ "profile",
14651
+ "host",
14652
+ "posture"
14653
+ ],
14654
+ "additionalProperties": false
14655
+ },
14656
+ "warnings": {
14657
+ "type": "array",
14658
+ "minItems": 1,
14659
+ "items": {
14660
+ "type": "object",
14661
+ "properties": {
14662
+ "code": {
14663
+ "const": "STORED_GRANT_SKIPPED"
14664
+ },
14665
+ "reason": {
14666
+ "type": "string",
14667
+ "enum": [
14668
+ "malformed",
14669
+ "unbound",
14670
+ "outside_request",
14671
+ "host_mismatch",
14672
+ "expired",
14673
+ "cid_mismatch",
14674
+ "authority_invalid",
14675
+ "proof_missing",
14676
+ "proof_invalid",
14677
+ "owner_mismatch",
14678
+ "audience_mismatch",
14679
+ "resources_mismatch",
14680
+ "unsupported",
14681
+ "activation_rejected",
14682
+ "activation_unavailable",
14683
+ "activation_unauthenticated",
14684
+ "invalid"
14685
+ ]
14686
+ },
14687
+ "grantCid": {
14688
+ "type": "string",
14689
+ "pattern": "^bafkr4i[a-z2-7]{52}$"
14690
+ }
14691
+ },
14692
+ "required": [
14693
+ "code",
14694
+ "reason"
14695
+ ],
14696
+ "additionalProperties": false
14697
+ }
14698
+ },
14699
+ "missing": {
14700
+ "type": "array",
14701
+ "minItems": 1,
14702
+ "items": {
14703
+ "$ref": "#/$defs/permissionEntry"
14704
+ }
14705
+ },
14706
+ "request": {
14707
+ "$ref": "#/$defs/permissionRequest"
14708
+ },
14709
+ "approval": {
14710
+ "type": "object",
14711
+ "properties": {
14712
+ "kind": {
14713
+ "const": "openkey"
14714
+ },
14715
+ "requestId": {
14716
+ "type": "string",
14717
+ "minLength": 1
14718
+ },
14719
+ "url": {
14720
+ "type": "string",
14721
+ "format": "uri"
14722
+ },
14723
+ "fallback": {
14724
+ "type": "string",
14725
+ "minLength": 1
14726
+ }
14727
+ },
14728
+ "required": [
14729
+ "kind",
14730
+ "requestId",
14731
+ "fallback"
14732
+ ],
14733
+ "additionalProperties": false
14734
+ },
14735
+ "retry": {
14736
+ "type": "object",
14737
+ "properties": {
14738
+ "operationId": {
14739
+ "type": "string",
14740
+ "minLength": 1
14741
+ },
14742
+ "operationVersion": {
14743
+ "type": "integer",
14744
+ "const": 1
14745
+ },
14746
+ "inputDigest": {
14747
+ "type": "string",
14748
+ "pattern": "^[a-f0-9]{64}$"
14749
+ },
14750
+ "safeInput": {
14751
+ "type": "object",
14752
+ "additionalProperties": true
14753
+ },
14754
+ "requiresCallerInput": {
14755
+ "type": "boolean"
14756
+ }
14757
+ },
14758
+ "required": [
14759
+ "operationId",
14760
+ "operationVersion",
14761
+ "inputDigest",
14762
+ "requiresCallerInput"
14763
+ ],
14764
+ "additionalProperties": false
14765
+ }
14766
+ },
14767
+ "required": [
14768
+ "status",
14769
+ "operation",
14770
+ "context",
14771
+ "missing",
14772
+ "request",
14773
+ "approval",
14774
+ "retry"
14775
+ ],
14776
+ "additionalProperties": false
14777
+ },
14778
+ {
14779
+ "type": "object",
14780
+ "properties": {
14781
+ "status": {
14782
+ "const": "setup_required"
14783
+ },
14784
+ "operation": {
14785
+ "type": "object",
14786
+ "properties": {
14787
+ "operationId": {
14788
+ "type": "string",
14789
+ "const": "tinycloud.secrets.status"
14790
+ },
14791
+ "operationVersion": {
14792
+ "type": "integer",
14793
+ "const": 1
14794
+ }
14795
+ },
14796
+ "required": [
14797
+ "operationId",
14798
+ "operationVersion"
14799
+ ],
14800
+ "additionalProperties": false
14801
+ },
14802
+ "context": {
14803
+ "type": "object",
14804
+ "properties": {
14805
+ "profile": {
14806
+ "type": "string",
14807
+ "minLength": 1
14808
+ },
14809
+ "host": {
14810
+ "type": "string",
14811
+ "minLength": 1
14812
+ },
14813
+ "posture": {
14814
+ "type": "string",
14815
+ "enum": [
14816
+ "owner-openkey",
14817
+ "delegate-session",
14818
+ "local-owner-key",
14819
+ "unauthenticated"
14820
+ ]
14821
+ },
14822
+ "operatorType": {
14823
+ "type": "string",
14824
+ "enum": [
14825
+ "human",
14826
+ "agent"
14827
+ ]
14828
+ },
14829
+ "principalDid": {
14830
+ "type": "string",
14831
+ "minLength": 1
14832
+ },
14833
+ "sessionDid": {
14834
+ "type": "string",
14835
+ "minLength": 1
14836
+ },
14837
+ "ownerDid": {
14838
+ "type": "string",
14839
+ "minLength": 1
14840
+ },
14841
+ "space": {
14842
+ "type": "string",
14843
+ "minLength": 1
14844
+ }
14845
+ },
14846
+ "required": [
14847
+ "profile",
14848
+ "host",
14849
+ "posture"
14850
+ ],
14851
+ "additionalProperties": false
14852
+ },
14853
+ "warnings": {
14854
+ "type": "array",
14855
+ "minItems": 1,
14856
+ "items": {
14857
+ "type": "object",
14858
+ "properties": {
14859
+ "code": {
14860
+ "const": "STORED_GRANT_SKIPPED"
14861
+ },
14862
+ "reason": {
14863
+ "type": "string",
14864
+ "enum": [
14865
+ "malformed",
14866
+ "unbound",
14867
+ "outside_request",
14868
+ "host_mismatch",
14869
+ "expired",
14870
+ "cid_mismatch",
14871
+ "authority_invalid",
14872
+ "proof_missing",
14873
+ "proof_invalid",
14874
+ "owner_mismatch",
14875
+ "audience_mismatch",
14876
+ "resources_mismatch",
14877
+ "unsupported",
14878
+ "activation_rejected",
14879
+ "activation_unavailable",
14880
+ "activation_unauthenticated",
14881
+ "invalid"
14882
+ ]
14883
+ },
14884
+ "grantCid": {
14885
+ "type": "string",
14886
+ "pattern": "^bafkr4i[a-z2-7]{52}$"
14887
+ }
14888
+ },
14889
+ "required": [
14890
+ "code",
14891
+ "reason"
14892
+ ],
14893
+ "additionalProperties": false
14894
+ }
14895
+ },
14896
+ "setup": {
14897
+ "type": "object",
14898
+ "properties": {
14899
+ "kind": {
14900
+ "const": "secret_manager"
14901
+ },
14902
+ "action": {
14903
+ "const": "add_secret"
14904
+ },
14905
+ "url": {
14906
+ "type": "string",
14907
+ "format": "uri"
14908
+ },
14909
+ "names": {
14910
+ "type": "array",
14911
+ "minItems": 1,
14912
+ "maxItems": 10,
14913
+ "items": {
14914
+ "type": "string",
14915
+ "minLength": 1
14916
+ }
14917
+ },
14918
+ "scope": {
14919
+ "type": "string",
14920
+ "minLength": 1
14921
+ },
14922
+ "owner": {
14923
+ "type": "string",
14924
+ "minLength": 1
14925
+ },
14926
+ "secret": {
14927
+ "type": "object",
14928
+ "properties": {
13391
14929
  "name": {
13392
14930
  "type": "string",
13393
14931
  "minLength": 1
@@ -13407,10 +14945,6 @@
13407
14945
  ],
13408
14946
  "additionalProperties": false
13409
14947
  },
13410
- "url": {
13411
- "type": "string",
13412
- "format": "uri"
13413
- },
13414
14948
  "message": {
13415
14949
  "type": "string",
13416
14950
  "minLength": 1
@@ -13418,8 +14952,11 @@
13418
14952
  },
13419
14953
  "required": [
13420
14954
  "kind",
13421
- "secret",
14955
+ "action",
13422
14956
  "url",
14957
+ "names",
14958
+ "owner",
14959
+ "secret",
13423
14960
  "message"
13424
14961
  ],
13425
14962
  "additionalProperties": false
@@ -13476,7 +15013,7 @@
13476
15013
  "properties": {
13477
15014
  "operationId": {
13478
15015
  "type": "string",
13479
- "const": "tinycloud.secrets.get"
15016
+ "const": "tinycloud.secrets.status"
13480
15017
  },
13481
15018
  "operationVersion": {
13482
15019
  "type": "integer",
@@ -13566,6 +15103,8 @@
13566
15103
  "resources_mismatch",
13567
15104
  "unsupported",
13568
15105
  "activation_rejected",
15106
+ "activation_unavailable",
15107
+ "activation_unauthenticated",
13569
15108
  "invalid"
13570
15109
  ]
13571
15110
  },
@@ -13593,6 +15132,7 @@
13593
15132
  "PROFILE_NOT_FOUND",
13594
15133
  "PROFILE_POSTURE_NOT_ALLOWED",
13595
15134
  "PROFILE_OWNER_OPT_IN_REQUIRED",
15135
+ "PROFILE_MIGRATION_REQUIRED",
13596
15136
  "AUTH_REQUIRED",
13597
15137
  "PERMISSION_DENIED",
13598
15138
  "SESSION_NOT_FOUND",
@@ -13854,12 +15394,89 @@
13854
15394
  "output": {
13855
15395
  "type": "object",
13856
15396
  "properties": {
13857
- "value": {
15397
+ "status": {
15398
+ "type": "string",
15399
+ "enum": [
15400
+ "ready",
15401
+ "pending",
15402
+ "consent_required"
15403
+ ]
15404
+ },
15405
+ "owner": {
15406
+ "type": "string"
15407
+ },
15408
+ "names": {
15409
+ "type": "array",
15410
+ "items": {
15411
+ "type": "string"
15412
+ },
15413
+ "minItems": 1
15414
+ },
15415
+ "scope": {
15416
+ "type": "string"
15417
+ },
15418
+ "present": {
15419
+ "type": "array",
15420
+ "items": {
15421
+ "type": "string"
15422
+ }
15423
+ },
15424
+ "pending": {
15425
+ "type": "array",
15426
+ "items": {
15427
+ "type": "string"
15428
+ }
15429
+ },
15430
+ "denied": {
15431
+ "type": "array",
15432
+ "items": {
15433
+ "type": "string"
15434
+ }
15435
+ },
15436
+ "setup": {
15437
+ "type": "object",
15438
+ "properties": {
15439
+ "url": {
15440
+ "type": "string",
15441
+ "format": "uri"
15442
+ },
15443
+ "names": {
15444
+ "type": "array",
15445
+ "items": {
15446
+ "type": "string"
15447
+ },
15448
+ "minItems": 1
15449
+ },
15450
+ "scope": {
15451
+ "type": "string"
15452
+ },
15453
+ "owner": {
15454
+ "type": "string"
15455
+ },
15456
+ "action": {
15457
+ "type": "string",
15458
+ "const": "add_secret"
15459
+ }
15460
+ },
15461
+ "required": [
15462
+ "url",
15463
+ "names",
15464
+ "owner",
15465
+ "action"
15466
+ ],
15467
+ "additionalProperties": false
15468
+ },
15469
+ "hint": {
13858
15470
  "type": "string"
13859
15471
  }
13860
15472
  },
13861
15473
  "required": [
13862
- "value"
15474
+ "status",
15475
+ "owner",
15476
+ "names",
15477
+ "present",
15478
+ "pending",
15479
+ "denied"
13863
15480
  ],
13864
15481
  "additionalProperties": false,
13865
15482
  "$schema": "http://json-schema.org/draft-07/schema#"
@@ -13872,12 +15489,11 @@
13872
15489
  "local-owner-key"
13873
15490
  ],
13874
15491
  "effects": [
13875
- "read",
13876
- "local_write"
15492
+ "read"
13877
15493
  ],
13878
15494
  "sensitivity": {
13879
15495
  "input": false,
13880
- "output": true
15496
+ "output": false
13881
15497
  },
13882
15498
  "exposure": {
13883
15499
  "cli": {
@@ -13900,6 +15516,7 @@
13900
15516
  "PROFILE_NOT_FOUND",
13901
15517
  "PROFILE_POSTURE_NOT_ALLOWED",
13902
15518
  "PROFILE_OWNER_OPT_IN_REQUIRED",
15519
+ "PROFILE_MIGRATION_REQUIRED",
13903
15520
  "AUTH_REQUIRED",
13904
15521
  "PERMISSION_DENIED",
13905
15522
  "SESSION_NOT_FOUND",
@@ -14159,6 +15776,8 @@
14159
15776
  "resources_mismatch",
14160
15777
  "unsupported",
14161
15778
  "activation_rejected",
15779
+ "activation_unavailable",
15780
+ "activation_unauthenticated",
14162
15781
  "invalid"
14163
15782
  ]
14164
15783
  },
@@ -14287,6 +15906,8 @@
14287
15906
  "resources_mismatch",
14288
15907
  "unsupported",
14289
15908
  "activation_rejected",
15909
+ "activation_unavailable",
15910
+ "activation_unauthenticated",
14290
15911
  "invalid"
14291
15912
  ]
14292
15913
  },
@@ -14482,6 +16103,8 @@
14482
16103
  "resources_mismatch",
14483
16104
  "unsupported",
14484
16105
  "activation_rejected",
16106
+ "activation_unavailable",
16107
+ "activation_unauthenticated",
14485
16108
  "invalid"
14486
16109
  ]
14487
16110
  },
@@ -14503,6 +16126,30 @@
14503
16126
  "kind": {
14504
16127
  "const": "secret_manager"
14505
16128
  },
16129
+ "action": {
16130
+ "const": "add_secret"
16131
+ },
16132
+ "url": {
16133
+ "type": "string",
16134
+ "format": "uri"
16135
+ },
16136
+ "names": {
16137
+ "type": "array",
16138
+ "minItems": 1,
16139
+ "maxItems": 10,
16140
+ "items": {
16141
+ "type": "string",
16142
+ "minLength": 1
16143
+ }
16144
+ },
16145
+ "scope": {
16146
+ "type": "string",
16147
+ "minLength": 1
16148
+ },
16149
+ "owner": {
16150
+ "type": "string",
16151
+ "minLength": 1
16152
+ },
14506
16153
  "secret": {
14507
16154
  "type": "object",
14508
16155
  "properties": {
@@ -14525,10 +16172,6 @@
14525
16172
  ],
14526
16173
  "additionalProperties": false
14527
16174
  },
14528
- "url": {
14529
- "type": "string",
14530
- "format": "uri"
14531
- },
14532
16175
  "message": {
14533
16176
  "type": "string",
14534
16177
  "minLength": 1
@@ -14536,8 +16179,11 @@
14536
16179
  },
14537
16180
  "required": [
14538
16181
  "kind",
14539
- "secret",
16182
+ "action",
14540
16183
  "url",
16184
+ "names",
16185
+ "owner",
16186
+ "secret",
14541
16187
  "message"
14542
16188
  ],
14543
16189
  "additionalProperties": false
@@ -14684,6 +16330,8 @@
14684
16330
  "resources_mismatch",
14685
16331
  "unsupported",
14686
16332
  "activation_rejected",
16333
+ "activation_unavailable",
16334
+ "activation_unauthenticated",
14687
16335
  "invalid"
14688
16336
  ]
14689
16337
  },
@@ -14711,6 +16359,7 @@
14711
16359
  "PROFILE_NOT_FOUND",
14712
16360
  "PROFILE_POSTURE_NOT_ALLOWED",
14713
16361
  "PROFILE_OWNER_OPT_IN_REQUIRED",
16362
+ "PROFILE_MIGRATION_REQUIRED",
14714
16363
  "AUTH_REQUIRED",
14715
16364
  "PERMISSION_DENIED",
14716
16365
  "SESSION_NOT_FOUND",
@@ -15055,6 +16704,7 @@
15055
16704
  "PROFILE_NOT_FOUND",
15056
16705
  "PROFILE_POSTURE_NOT_ALLOWED",
15057
16706
  "PROFILE_OWNER_OPT_IN_REQUIRED",
16707
+ "PROFILE_MIGRATION_REQUIRED",
15058
16708
  "AUTH_REQUIRED",
15059
16709
  "PERMISSION_DENIED",
15060
16710
  "SESSION_NOT_FOUND",
@@ -15364,6 +17014,8 @@
15364
17014
  "resources_mismatch",
15365
17015
  "unsupported",
15366
17016
  "activation_rejected",
17017
+ "activation_unavailable",
17018
+ "activation_unauthenticated",
15367
17019
  "invalid"
15368
17020
  ]
15369
17021
  },
@@ -15492,6 +17144,8 @@
15492
17144
  "resources_mismatch",
15493
17145
  "unsupported",
15494
17146
  "activation_rejected",
17147
+ "activation_unavailable",
17148
+ "activation_unauthenticated",
15495
17149
  "invalid"
15496
17150
  ]
15497
17151
  },
@@ -15687,6 +17341,8 @@
15687
17341
  "resources_mismatch",
15688
17342
  "unsupported",
15689
17343
  "activation_rejected",
17344
+ "activation_unavailable",
17345
+ "activation_unauthenticated",
15690
17346
  "invalid"
15691
17347
  ]
15692
17348
  },
@@ -15708,6 +17364,30 @@
15708
17364
  "kind": {
15709
17365
  "const": "secret_manager"
15710
17366
  },
17367
+ "action": {
17368
+ "const": "add_secret"
17369
+ },
17370
+ "url": {
17371
+ "type": "string",
17372
+ "format": "uri"
17373
+ },
17374
+ "names": {
17375
+ "type": "array",
17376
+ "minItems": 1,
17377
+ "maxItems": 10,
17378
+ "items": {
17379
+ "type": "string",
17380
+ "minLength": 1
17381
+ }
17382
+ },
17383
+ "scope": {
17384
+ "type": "string",
17385
+ "minLength": 1
17386
+ },
17387
+ "owner": {
17388
+ "type": "string",
17389
+ "minLength": 1
17390
+ },
15711
17391
  "secret": {
15712
17392
  "type": "object",
15713
17393
  "properties": {
@@ -15730,10 +17410,6 @@
15730
17410
  ],
15731
17411
  "additionalProperties": false
15732
17412
  },
15733
- "url": {
15734
- "type": "string",
15735
- "format": "uri"
15736
- },
15737
17413
  "message": {
15738
17414
  "type": "string",
15739
17415
  "minLength": 1
@@ -15741,8 +17417,11 @@
15741
17417
  },
15742
17418
  "required": [
15743
17419
  "kind",
15744
- "secret",
17420
+ "action",
15745
17421
  "url",
17422
+ "names",
17423
+ "owner",
17424
+ "secret",
15746
17425
  "message"
15747
17426
  ],
15748
17427
  "additionalProperties": false
@@ -15889,6 +17568,8 @@
15889
17568
  "resources_mismatch",
15890
17569
  "unsupported",
15891
17570
  "activation_rejected",
17571
+ "activation_unavailable",
17572
+ "activation_unauthenticated",
15892
17573
  "invalid"
15893
17574
  ]
15894
17575
  },
@@ -15916,6 +17597,7 @@
15916
17597
  "PROFILE_NOT_FOUND",
15917
17598
  "PROFILE_POSTURE_NOT_ALLOWED",
15918
17599
  "PROFILE_OWNER_OPT_IN_REQUIRED",
17600
+ "PROFILE_MIGRATION_REQUIRED",
15919
17601
  "AUTH_REQUIRED",
15920
17602
  "PERMISSION_DENIED",
15921
17603
  "SESSION_NOT_FOUND",
@@ -16307,6 +17989,7 @@
16307
17989
  "PROFILE_NOT_FOUND",
16308
17990
  "PROFILE_POSTURE_NOT_ALLOWED",
16309
17991
  "PROFILE_OWNER_OPT_IN_REQUIRED",
17992
+ "PROFILE_MIGRATION_REQUIRED",
16310
17993
  "AUTH_REQUIRED",
16311
17994
  "PERMISSION_DENIED",
16312
17995
  "SESSION_NOT_FOUND",
@@ -16550,6 +18233,8 @@
16550
18233
  "resources_mismatch",
16551
18234
  "unsupported",
16552
18235
  "activation_rejected",
18236
+ "activation_unavailable",
18237
+ "activation_unauthenticated",
16553
18238
  "invalid"
16554
18239
  ]
16555
18240
  },
@@ -16678,6 +18363,8 @@
16678
18363
  "resources_mismatch",
16679
18364
  "unsupported",
16680
18365
  "activation_rejected",
18366
+ "activation_unavailable",
18367
+ "activation_unauthenticated",
16681
18368
  "invalid"
16682
18369
  ]
16683
18370
  },
@@ -16873,6 +18560,8 @@
16873
18560
  "resources_mismatch",
16874
18561
  "unsupported",
16875
18562
  "activation_rejected",
18563
+ "activation_unavailable",
18564
+ "activation_unauthenticated",
16876
18565
  "invalid"
16877
18566
  ]
16878
18567
  },
@@ -16894,6 +18583,30 @@
16894
18583
  "kind": {
16895
18584
  "const": "secret_manager"
16896
18585
  },
18586
+ "action": {
18587
+ "const": "add_secret"
18588
+ },
18589
+ "url": {
18590
+ "type": "string",
18591
+ "format": "uri"
18592
+ },
18593
+ "names": {
18594
+ "type": "array",
18595
+ "minItems": 1,
18596
+ "maxItems": 10,
18597
+ "items": {
18598
+ "type": "string",
18599
+ "minLength": 1
18600
+ }
18601
+ },
18602
+ "scope": {
18603
+ "type": "string",
18604
+ "minLength": 1
18605
+ },
18606
+ "owner": {
18607
+ "type": "string",
18608
+ "minLength": 1
18609
+ },
16897
18610
  "secret": {
16898
18611
  "type": "object",
16899
18612
  "properties": {
@@ -16916,10 +18629,6 @@
16916
18629
  ],
16917
18630
  "additionalProperties": false
16918
18631
  },
16919
- "url": {
16920
- "type": "string",
16921
- "format": "uri"
16922
- },
16923
18632
  "message": {
16924
18633
  "type": "string",
16925
18634
  "minLength": 1
@@ -16927,8 +18636,11 @@
16927
18636
  },
16928
18637
  "required": [
16929
18638
  "kind",
16930
- "secret",
18639
+ "action",
16931
18640
  "url",
18641
+ "names",
18642
+ "owner",
18643
+ "secret",
16932
18644
  "message"
16933
18645
  ],
16934
18646
  "additionalProperties": false
@@ -17075,6 +18787,8 @@
17075
18787
  "resources_mismatch",
17076
18788
  "unsupported",
17077
18789
  "activation_rejected",
18790
+ "activation_unavailable",
18791
+ "activation_unauthenticated",
17078
18792
  "invalid"
17079
18793
  ]
17080
18794
  },
@@ -17102,6 +18816,7 @@
17102
18816
  "PROFILE_NOT_FOUND",
17103
18817
  "PROFILE_POSTURE_NOT_ALLOWED",
17104
18818
  "PROFILE_OWNER_OPT_IN_REQUIRED",
18819
+ "PROFILE_MIGRATION_REQUIRED",
17105
18820
  "AUTH_REQUIRED",
17106
18821
  "PERMISSION_DENIED",
17107
18822
  "SESSION_NOT_FOUND",
@@ -17479,6 +19194,7 @@
17479
19194
  "PROFILE_NOT_FOUND",
17480
19195
  "PROFILE_POSTURE_NOT_ALLOWED",
17481
19196
  "PROFILE_OWNER_OPT_IN_REQUIRED",
19197
+ "PROFILE_MIGRATION_REQUIRED",
17482
19198
  "AUTH_REQUIRED",
17483
19199
  "PERMISSION_DENIED",
17484
19200
  "SESSION_NOT_FOUND",
@@ -17715,6 +19431,8 @@
17715
19431
  "resources_mismatch",
17716
19432
  "unsupported",
17717
19433
  "activation_rejected",
19434
+ "activation_unavailable",
19435
+ "activation_unauthenticated",
17718
19436
  "invalid"
17719
19437
  ]
17720
19438
  },
@@ -17843,6 +19561,8 @@
17843
19561
  "resources_mismatch",
17844
19562
  "unsupported",
17845
19563
  "activation_rejected",
19564
+ "activation_unavailable",
19565
+ "activation_unauthenticated",
17846
19566
  "invalid"
17847
19567
  ]
17848
19568
  },
@@ -18038,6 +19758,8 @@
18038
19758
  "resources_mismatch",
18039
19759
  "unsupported",
18040
19760
  "activation_rejected",
19761
+ "activation_unavailable",
19762
+ "activation_unauthenticated",
18041
19763
  "invalid"
18042
19764
  ]
18043
19765
  },
@@ -18059,6 +19781,30 @@
18059
19781
  "kind": {
18060
19782
  "const": "secret_manager"
18061
19783
  },
19784
+ "action": {
19785
+ "const": "add_secret"
19786
+ },
19787
+ "url": {
19788
+ "type": "string",
19789
+ "format": "uri"
19790
+ },
19791
+ "names": {
19792
+ "type": "array",
19793
+ "minItems": 1,
19794
+ "maxItems": 10,
19795
+ "items": {
19796
+ "type": "string",
19797
+ "minLength": 1
19798
+ }
19799
+ },
19800
+ "scope": {
19801
+ "type": "string",
19802
+ "minLength": 1
19803
+ },
19804
+ "owner": {
19805
+ "type": "string",
19806
+ "minLength": 1
19807
+ },
18062
19808
  "secret": {
18063
19809
  "type": "object",
18064
19810
  "properties": {
@@ -18081,10 +19827,6 @@
18081
19827
  ],
18082
19828
  "additionalProperties": false
18083
19829
  },
18084
- "url": {
18085
- "type": "string",
18086
- "format": "uri"
18087
- },
18088
19830
  "message": {
18089
19831
  "type": "string",
18090
19832
  "minLength": 1
@@ -18092,8 +19834,11 @@
18092
19834
  },
18093
19835
  "required": [
18094
19836
  "kind",
18095
- "secret",
19837
+ "action",
18096
19838
  "url",
19839
+ "names",
19840
+ "owner",
19841
+ "secret",
18097
19842
  "message"
18098
19843
  ],
18099
19844
  "additionalProperties": false
@@ -18240,6 +19985,8 @@
18240
19985
  "resources_mismatch",
18241
19986
  "unsupported",
18242
19987
  "activation_rejected",
19988
+ "activation_unavailable",
19989
+ "activation_unauthenticated",
18243
19990
  "invalid"
18244
19991
  ]
18245
19992
  },
@@ -18267,6 +20014,7 @@
18267
20014
  "PROFILE_NOT_FOUND",
18268
20015
  "PROFILE_POSTURE_NOT_ALLOWED",
18269
20016
  "PROFILE_OWNER_OPT_IN_REQUIRED",
20017
+ "PROFILE_MIGRATION_REQUIRED",
18270
20018
  "AUTH_REQUIRED",
18271
20019
  "PERMISSION_DENIED",
18272
20020
  "SESSION_NOT_FOUND",
@@ -18651,6 +20399,7 @@
18651
20399
  "PROFILE_NOT_FOUND",
18652
20400
  "PROFILE_POSTURE_NOT_ALLOWED",
18653
20401
  "PROFILE_OWNER_OPT_IN_REQUIRED",
20402
+ "PROFILE_MIGRATION_REQUIRED",
18654
20403
  "AUTH_REQUIRED",
18655
20404
  "PERMISSION_DENIED",
18656
20405
  "SESSION_NOT_FOUND",