@nylorun/runtime 0.19.1-beta → 0.20.0-beta

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 (61) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/README.md +9 -5
  3. package/dist/adapters/streams/s2.js +5 -11
  4. package/dist/api/components.d.ts +171 -169
  5. package/dist/api/http/define.d.ts +3 -2
  6. package/dist/api/http/define.js +10 -11
  7. package/dist/api/openapi.js +31 -3
  8. package/dist/execution/types.d.ts +1 -1
  9. package/dist/host/app.d.ts +3 -0
  10. package/dist/host/app.js +33 -4
  11. package/dist/host/create-host.d.ts +6 -0
  12. package/dist/host/create-host.js +1 -0
  13. package/dist/host/main.js +11 -4
  14. package/dist/host/stack-config.js +1 -1
  15. package/dist/infra/index.d.ts +2 -1
  16. package/dist/infra/index.js +0 -1
  17. package/dist/infra/readiness.d.ts +6 -6
  18. package/dist/infra/readiness.js +2 -5
  19. package/dist/management-openapi.json +430 -107
  20. package/dist/openapi.json +366 -227
  21. package/dist/store/postgres/connect.d.ts +10 -0
  22. package/dist/store/postgres/connect.js +30 -3
  23. package/dist/store/postgres/control.d.ts +14 -0
  24. package/dist/store/postgres/control.js +187 -0
  25. package/dist/store/postgres/drizzle/0015_control_signals.sql +11 -0
  26. package/dist/store/postgres/drizzle/meta/_journal.json +7 -0
  27. package/dist/store/postgres/schema.d.ts +120 -0
  28. package/dist/store/postgres/schema.js +20 -0
  29. package/dist/store/postgres/store.js +15 -0
  30. package/dist/store/types.d.ts +40 -0
  31. package/dist/streams/types.d.ts +6 -29
  32. package/dist/streams/types.js +5 -4
  33. package/dist/tenant/auth.d.ts +16 -6
  34. package/dist/tenant/auth.js +41 -17
  35. package/dist/tenant/commands.js +10 -6
  36. package/dist/tenant/context.d.ts +4 -0
  37. package/dist/tenant/control.d.ts +26 -0
  38. package/dist/tenant/control.js +35 -0
  39. package/dist/tenant/ephemeral.js +1 -0
  40. package/dist/tenant/http.d.ts +4 -2
  41. package/dist/tenant/http.js +4 -2
  42. package/dist/tenant/identity-file.d.ts +16 -12
  43. package/dist/tenant/identity-file.js +41 -29
  44. package/dist/tenant/issuers.d.ts +4 -3
  45. package/dist/tenant/issuers.js +22 -16
  46. package/dist/tenant/reset.d.ts +2 -2
  47. package/dist/tenant/reset.js +8 -2
  48. package/dist/tenant/resource-server.d.ts +56 -0
  49. package/dist/tenant/resource-server.js +62 -0
  50. package/dist/tenant/runtime.d.ts +1 -1
  51. package/dist/tenant/runtime.js +7 -1
  52. package/dist/tenant/scheduler.d.ts +1 -1
  53. package/dist/tenant/scheduler.js +1 -1
  54. package/dist/tenant/streams.d.ts +16 -22
  55. package/dist/tenant/streams.js +7 -87
  56. package/dist/tenant/sweep.js +9 -1
  57. package/dist/version.d.ts +1 -1
  58. package/dist/version.js +1 -1
  59. package/package.json +3 -3
  60. package/dist/streams/control.d.ts +0 -13
  61. package/dist/streams/control.js +0 -25
@@ -2,16 +2,17 @@
2
2
  "openapi": "3.2.0",
3
3
  "info": {
4
4
  "title": "Nylorun Management API",
5
- "version": "0.19.1-beta",
5
+ "version": "0.20.0-beta",
6
6
  "x-nylorun-protocol": {
7
7
  "min": 4,
8
- "max": 8,
8
+ "max": 9,
9
9
  "features": [
10
10
  "runtime-tenants",
11
11
  "admin-status",
12
12
  "studio-principal",
13
13
  "artifacts",
14
14
  "management-api",
15
+ "resource-server",
15
16
  "tenant-fixture-model",
16
17
  "transcript-events",
17
18
  "subject-headers",
@@ -70,6 +71,8 @@
70
71
  "type": "string",
71
72
  "enum": [
72
73
  "not_found",
74
+ "credential_required",
75
+ "credential_invalid",
73
76
  "protocol_unsupported",
74
77
  "host_rejected",
75
78
  "origin_rejected",
@@ -2961,10 +2964,10 @@
2961
2964
  {
2962
2965
  "schema": {
2963
2966
  "type": "string",
2964
- "description": "The protocol version, `8`"
2967
+ "description": "The protocol version, `9`"
2965
2968
  },
2966
2969
  "required": true,
2967
- "description": "The protocol version, `8`",
2970
+ "description": "The protocol version, `9`",
2968
2971
  "name": "Nylorun-Protocol",
2969
2972
  "in": "header"
2970
2973
  }
@@ -2990,6 +2993,16 @@
2990
2993
  }
2991
2994
  }
2992
2995
  },
2996
+ "401": {
2997
+ "description": "No credential (`credential_required`), or one the Tenant does not accept (`credential_invalid`), with a `WWW-Authenticate: Bearer` challenge",
2998
+ "content": {
2999
+ "application/json": {
3000
+ "schema": {
3001
+ "$ref": "#/components/schemas/Rejected"
3002
+ }
3003
+ }
3004
+ }
3005
+ },
2993
3006
  "403": {
2994
3007
  "description": "Not allowed for this credential, a key of the other API (`key_role_mismatch`), a key from a browser (`origin_rejected`) or a management key acting for a subject",
2995
3008
  "content": {
@@ -3001,7 +3014,7 @@
3001
3014
  }
3002
3015
  },
3003
3016
  "404": {
3004
- "description": "Not found, or a credential the Tenant does not know (`not_found`)",
3017
+ "description": "Not found (`not_found`)",
3005
3018
  "content": {
3006
3019
  "application/json": {
3007
3020
  "schema": {
@@ -3053,10 +3066,10 @@
3053
3066
  {
3054
3067
  "schema": {
3055
3068
  "type": "string",
3056
- "description": "The protocol version, `8`"
3069
+ "description": "The protocol version, `9`"
3057
3070
  },
3058
3071
  "required": true,
3059
- "description": "The protocol version, `8`",
3072
+ "description": "The protocol version, `9`",
3060
3073
  "name": "Nylorun-Protocol",
3061
3074
  "in": "header"
3062
3075
  }
@@ -3092,6 +3105,16 @@
3092
3105
  }
3093
3106
  }
3094
3107
  },
3108
+ "401": {
3109
+ "description": "No credential (`credential_required`), or one the Tenant does not accept (`credential_invalid`), with a `WWW-Authenticate: Bearer` challenge",
3110
+ "content": {
3111
+ "application/json": {
3112
+ "schema": {
3113
+ "$ref": "#/components/schemas/Rejected"
3114
+ }
3115
+ }
3116
+ }
3117
+ },
3095
3118
  "403": {
3096
3119
  "description": "Not allowed for this credential, a key of the other API (`key_role_mismatch`), a key from a browser (`origin_rejected`) or a management key acting for a subject",
3097
3120
  "content": {
@@ -3103,7 +3126,7 @@
3103
3126
  }
3104
3127
  },
3105
3128
  "404": {
3106
- "description": "Not found, or a credential the Tenant does not know (`not_found`)",
3129
+ "description": "Not found (`not_found`)",
3107
3130
  "content": {
3108
3131
  "application/json": {
3109
3132
  "schema": {
@@ -3155,10 +3178,10 @@
3155
3178
  {
3156
3179
  "schema": {
3157
3180
  "type": "string",
3158
- "description": "The protocol version, `8`"
3181
+ "description": "The protocol version, `9`"
3159
3182
  },
3160
3183
  "required": true,
3161
- "description": "The protocol version, `8`",
3184
+ "description": "The protocol version, `9`",
3162
3185
  "name": "Nylorun-Protocol",
3163
3186
  "in": "header"
3164
3187
  }
@@ -3194,6 +3217,16 @@
3194
3217
  }
3195
3218
  }
3196
3219
  },
3220
+ "401": {
3221
+ "description": "No credential (`credential_required`), or one the Tenant does not accept (`credential_invalid`), with a `WWW-Authenticate: Bearer` challenge",
3222
+ "content": {
3223
+ "application/json": {
3224
+ "schema": {
3225
+ "$ref": "#/components/schemas/Rejected"
3226
+ }
3227
+ }
3228
+ }
3229
+ },
3197
3230
  "403": {
3198
3231
  "description": "Not allowed for this credential, a key of the other API (`key_role_mismatch`), a key from a browser (`origin_rejected`) or a management key acting for a subject",
3199
3232
  "content": {
@@ -3205,7 +3238,7 @@
3205
3238
  }
3206
3239
  },
3207
3240
  "404": {
3208
- "description": "Not found, or a credential the Tenant does not know (`not_found`)",
3241
+ "description": "Not found (`not_found`)",
3209
3242
  "content": {
3210
3243
  "application/json": {
3211
3244
  "schema": {
@@ -3266,10 +3299,10 @@
3266
3299
  {
3267
3300
  "schema": {
3268
3301
  "type": "string",
3269
- "description": "The protocol version, `8`"
3302
+ "description": "The protocol version, `9`"
3270
3303
  },
3271
3304
  "required": true,
3272
- "description": "The protocol version, `8`",
3305
+ "description": "The protocol version, `9`",
3273
3306
  "name": "Nylorun-Protocol",
3274
3307
  "in": "header"
3275
3308
  },
@@ -3316,7 +3349,7 @@
3316
3349
  }
3317
3350
  },
3318
3351
  "401": {
3319
- "description": "The token expired (`token_expired`), or its issuer's keys cannot be fetched now (`issuer_unavailable`)",
3352
+ "description": "No credential (`credential_required`), one the Tenant does not accept (`credential_invalid`), a token that expired (`token_expired`), or a token whose issuer's keys cannot be fetched now (`issuer_unavailable`). `WWW-Authenticate: Bearer` names the protected resource metadata (`resource_metadata`)",
3320
3353
  "content": {
3321
3354
  "application/json": {
3322
3355
  "schema": {
@@ -3336,7 +3369,7 @@
3336
3369
  }
3337
3370
  },
3338
3371
  "404": {
3339
- "description": "Not found, or a credential the Tenant does not know (`not_found`)",
3372
+ "description": "Not found (`not_found`)",
3340
3373
  "content": {
3341
3374
  "application/json": {
3342
3375
  "schema": {
@@ -3401,10 +3434,10 @@
3401
3434
  {
3402
3435
  "schema": {
3403
3436
  "type": "string",
3404
- "description": "The protocol version, `8`"
3437
+ "description": "The protocol version, `9`"
3405
3438
  },
3406
3439
  "required": true,
3407
- "description": "The protocol version, `8`",
3440
+ "description": "The protocol version, `9`",
3408
3441
  "name": "Nylorun-Protocol",
3409
3442
  "in": "header"
3410
3443
  }
@@ -3430,6 +3463,16 @@
3430
3463
  }
3431
3464
  }
3432
3465
  },
3466
+ "401": {
3467
+ "description": "No credential (`credential_required`), or one the Tenant does not accept (`credential_invalid`), with a `WWW-Authenticate: Bearer` challenge",
3468
+ "content": {
3469
+ "application/json": {
3470
+ "schema": {
3471
+ "$ref": "#/components/schemas/Rejected"
3472
+ }
3473
+ }
3474
+ }
3475
+ },
3433
3476
  "403": {
3434
3477
  "description": "Not allowed for this credential, a key of the other API (`key_role_mismatch`), a key from a browser (`origin_rejected`) or a management key acting for a subject",
3435
3478
  "content": {
@@ -3441,7 +3484,7 @@
3441
3484
  }
3442
3485
  },
3443
3486
  "404": {
3444
- "description": "Not found, or a credential the Tenant does not know (`not_found`)",
3487
+ "description": "Not found (`not_found`)",
3445
3488
  "content": {
3446
3489
  "application/json": {
3447
3490
  "schema": {
@@ -3503,10 +3546,10 @@
3503
3546
  {
3504
3547
  "schema": {
3505
3548
  "type": "string",
3506
- "description": "The protocol version, `8`"
3549
+ "description": "The protocol version, `9`"
3507
3550
  },
3508
3551
  "required": true,
3509
- "description": "The protocol version, `8`",
3552
+ "description": "The protocol version, `9`",
3510
3553
  "name": "Nylorun-Protocol",
3511
3554
  "in": "header"
3512
3555
  }
@@ -3525,6 +3568,16 @@
3525
3568
  "400": {
3526
3569
  "description": "Not a key name, a reserved name, or a management key's name"
3527
3570
  },
3571
+ "401": {
3572
+ "description": "No credential (`credential_required`), or one the Tenant does not accept (`credential_invalid`), with a `WWW-Authenticate: Bearer` challenge",
3573
+ "content": {
3574
+ "application/json": {
3575
+ "schema": {
3576
+ "$ref": "#/components/schemas/Rejected"
3577
+ }
3578
+ }
3579
+ }
3580
+ },
3528
3581
  "403": {
3529
3582
  "description": "Not allowed for this credential, a key of the other API (`key_role_mismatch`), a key from a browser (`origin_rejected`) or a management key acting for a subject",
3530
3583
  "content": {
@@ -3536,7 +3589,7 @@
3536
3589
  }
3537
3590
  },
3538
3591
  "404": {
3539
- "description": "Not found, or a credential the Tenant does not know (`not_found`)",
3592
+ "description": "Not found (`not_found`)",
3540
3593
  "content": {
3541
3594
  "application/json": {
3542
3595
  "schema": {
@@ -3596,10 +3649,10 @@
3596
3649
  {
3597
3650
  "schema": {
3598
3651
  "type": "string",
3599
- "description": "The protocol version, `8`"
3652
+ "description": "The protocol version, `9`"
3600
3653
  },
3601
3654
  "required": true,
3602
- "description": "The protocol version, `8`",
3655
+ "description": "The protocol version, `9`",
3603
3656
  "name": "Nylorun-Protocol",
3604
3657
  "in": "header"
3605
3658
  }
@@ -3618,6 +3671,16 @@
3618
3671
  "400": {
3619
3672
  "description": "Not a key name, a reserved name, or a management key's name"
3620
3673
  },
3674
+ "401": {
3675
+ "description": "No credential (`credential_required`), or one the Tenant does not accept (`credential_invalid`), with a `WWW-Authenticate: Bearer` challenge",
3676
+ "content": {
3677
+ "application/json": {
3678
+ "schema": {
3679
+ "$ref": "#/components/schemas/Rejected"
3680
+ }
3681
+ }
3682
+ }
3683
+ },
3621
3684
  "403": {
3622
3685
  "description": "Not allowed for this credential, a key of the other API (`key_role_mismatch`), a key from a browser (`origin_rejected`) or a management key acting for a subject",
3623
3686
  "content": {
@@ -3629,7 +3692,7 @@
3629
3692
  }
3630
3693
  },
3631
3694
  "404": {
3632
- "description": "Not found, or a credential the Tenant does not know (`not_found`)",
3695
+ "description": "Not found (`not_found`)",
3633
3696
  "content": {
3634
3697
  "application/json": {
3635
3698
  "schema": {
@@ -3680,10 +3743,10 @@
3680
3743
  {
3681
3744
  "schema": {
3682
3745
  "type": "string",
3683
- "description": "The protocol version, `8`"
3746
+ "description": "The protocol version, `9`"
3684
3747
  },
3685
3748
  "required": true,
3686
- "description": "The protocol version, `8`",
3749
+ "description": "The protocol version, `9`",
3687
3750
  "name": "Nylorun-Protocol",
3688
3751
  "in": "header"
3689
3752
  }
@@ -3709,6 +3772,16 @@
3709
3772
  }
3710
3773
  }
3711
3774
  },
3775
+ "401": {
3776
+ "description": "No credential (`credential_required`), or one the Tenant does not accept (`credential_invalid`), with a `WWW-Authenticate: Bearer` challenge",
3777
+ "content": {
3778
+ "application/json": {
3779
+ "schema": {
3780
+ "$ref": "#/components/schemas/Rejected"
3781
+ }
3782
+ }
3783
+ }
3784
+ },
3712
3785
  "403": {
3713
3786
  "description": "Not allowed for this credential, a key of the other API (`key_role_mismatch`), a key from a browser (`origin_rejected`) or a management key acting for a subject",
3714
3787
  "content": {
@@ -3720,7 +3793,7 @@
3720
3793
  }
3721
3794
  },
3722
3795
  "404": {
3723
- "description": "Not found, or a credential the Tenant does not know (`not_found`)",
3796
+ "description": "Not found (`not_found`)",
3724
3797
  "content": {
3725
3798
  "application/json": {
3726
3799
  "schema": {
@@ -3771,10 +3844,10 @@
3771
3844
  {
3772
3845
  "schema": {
3773
3846
  "type": "string",
3774
- "description": "The protocol version, `8`"
3847
+ "description": "The protocol version, `9`"
3775
3848
  },
3776
3849
  "required": true,
3777
- "description": "The protocol version, `8`",
3850
+ "description": "The protocol version, `9`",
3778
3851
  "name": "Nylorun-Protocol",
3779
3852
  "in": "header"
3780
3853
  }
@@ -3800,6 +3873,16 @@
3800
3873
  }
3801
3874
  }
3802
3875
  },
3876
+ "401": {
3877
+ "description": "No credential (`credential_required`), or one the Tenant does not accept (`credential_invalid`), with a `WWW-Authenticate: Bearer` challenge",
3878
+ "content": {
3879
+ "application/json": {
3880
+ "schema": {
3881
+ "$ref": "#/components/schemas/Rejected"
3882
+ }
3883
+ }
3884
+ }
3885
+ },
3803
3886
  "403": {
3804
3887
  "description": "Not allowed for this credential, a key of the other API (`key_role_mismatch`), a key from a browser (`origin_rejected`) or a management key acting for a subject",
3805
3888
  "content": {
@@ -3811,7 +3894,7 @@
3811
3894
  }
3812
3895
  },
3813
3896
  "404": {
3814
- "description": "Not found, or a credential the Tenant does not know (`not_found`)",
3897
+ "description": "Not found (`not_found`)",
3815
3898
  "content": {
3816
3899
  "application/json": {
3817
3900
  "schema": {
@@ -3862,10 +3945,10 @@
3862
3945
  {
3863
3946
  "schema": {
3864
3947
  "type": "string",
3865
- "description": "The protocol version, `8`"
3948
+ "description": "The protocol version, `9`"
3866
3949
  },
3867
3950
  "required": true,
3868
- "description": "The protocol version, `8`",
3951
+ "description": "The protocol version, `9`",
3869
3952
  "name": "Nylorun-Protocol",
3870
3953
  "in": "header"
3871
3954
  }
@@ -3891,6 +3974,16 @@
3891
3974
  }
3892
3975
  }
3893
3976
  },
3977
+ "401": {
3978
+ "description": "No credential (`credential_required`), or one the Tenant does not accept (`credential_invalid`), with a `WWW-Authenticate: Bearer` challenge",
3979
+ "content": {
3980
+ "application/json": {
3981
+ "schema": {
3982
+ "$ref": "#/components/schemas/Rejected"
3983
+ }
3984
+ }
3985
+ }
3986
+ },
3894
3987
  "403": {
3895
3988
  "description": "Not allowed for this credential, a key of the other API (`key_role_mismatch`), a key from a browser (`origin_rejected`) or a management key acting for a subject",
3896
3989
  "content": {
@@ -3902,7 +3995,7 @@
3902
3995
  }
3903
3996
  },
3904
3997
  "404": {
3905
- "description": "Not found, or a credential the Tenant does not know (`not_found`)",
3998
+ "description": "Not found (`not_found`)",
3906
3999
  "content": {
3907
4000
  "application/json": {
3908
4001
  "schema": {
@@ -3951,10 +4044,10 @@
3951
4044
  {
3952
4045
  "schema": {
3953
4046
  "type": "string",
3954
- "description": "The protocol version, `8`"
4047
+ "description": "The protocol version, `9`"
3955
4048
  },
3956
4049
  "required": true,
3957
- "description": "The protocol version, `8`",
4050
+ "description": "The protocol version, `9`",
3958
4051
  "name": "Nylorun-Protocol",
3959
4052
  "in": "header"
3960
4053
  }
@@ -3990,6 +4083,16 @@
3990
4083
  }
3991
4084
  }
3992
4085
  },
4086
+ "401": {
4087
+ "description": "No credential (`credential_required`), or one the Tenant does not accept (`credential_invalid`), with a `WWW-Authenticate: Bearer` challenge",
4088
+ "content": {
4089
+ "application/json": {
4090
+ "schema": {
4091
+ "$ref": "#/components/schemas/Rejected"
4092
+ }
4093
+ }
4094
+ }
4095
+ },
3993
4096
  "403": {
3994
4097
  "description": "Not allowed for this credential, a key of the other API (`key_role_mismatch`), a key from a browser (`origin_rejected`) or a management key acting for a subject",
3995
4098
  "content": {
@@ -4001,7 +4104,7 @@
4001
4104
  }
4002
4105
  },
4003
4106
  "404": {
4004
- "description": "Not found, or a credential the Tenant does not know (`not_found`)",
4107
+ "description": "Not found (`not_found`)",
4005
4108
  "content": {
4006
4109
  "application/json": {
4007
4110
  "schema": {
@@ -4052,10 +4155,10 @@
4052
4155
  {
4053
4156
  "schema": {
4054
4157
  "type": "string",
4055
- "description": "The protocol version, `8`"
4158
+ "description": "The protocol version, `9`"
4056
4159
  },
4057
4160
  "required": true,
4058
- "description": "The protocol version, `8`",
4161
+ "description": "The protocol version, `9`",
4059
4162
  "name": "Nylorun-Protocol",
4060
4163
  "in": "header"
4061
4164
  }
@@ -4091,6 +4194,16 @@
4091
4194
  }
4092
4195
  }
4093
4196
  },
4197
+ "401": {
4198
+ "description": "No credential (`credential_required`), or one the Tenant does not accept (`credential_invalid`), with a `WWW-Authenticate: Bearer` challenge",
4199
+ "content": {
4200
+ "application/json": {
4201
+ "schema": {
4202
+ "$ref": "#/components/schemas/Rejected"
4203
+ }
4204
+ }
4205
+ }
4206
+ },
4094
4207
  "403": {
4095
4208
  "description": "Not allowed for this credential, a key of the other API (`key_role_mismatch`), a key from a browser (`origin_rejected`) or a management key acting for a subject",
4096
4209
  "content": {
@@ -4102,7 +4215,7 @@
4102
4215
  }
4103
4216
  },
4104
4217
  "404": {
4105
- "description": "Not found, or a credential the Tenant does not know (`not_found`)",
4218
+ "description": "Not found (`not_found`)",
4106
4219
  "content": {
4107
4220
  "application/json": {
4108
4221
  "schema": {
@@ -4191,10 +4304,10 @@
4191
4304
  {
4192
4305
  "schema": {
4193
4306
  "type": "string",
4194
- "description": "The protocol version, `8`"
4307
+ "description": "The protocol version, `9`"
4195
4308
  },
4196
4309
  "required": true,
4197
- "description": "The protocol version, `8`",
4310
+ "description": "The protocol version, `9`",
4198
4311
  "name": "Nylorun-Protocol",
4199
4312
  "in": "header"
4200
4313
  }
@@ -4220,6 +4333,16 @@
4220
4333
  }
4221
4334
  }
4222
4335
  },
4336
+ "401": {
4337
+ "description": "No credential (`credential_required`), or one the Tenant does not accept (`credential_invalid`), with a `WWW-Authenticate: Bearer` challenge",
4338
+ "content": {
4339
+ "application/json": {
4340
+ "schema": {
4341
+ "$ref": "#/components/schemas/Rejected"
4342
+ }
4343
+ }
4344
+ }
4345
+ },
4223
4346
  "403": {
4224
4347
  "description": "Not allowed for this credential, a key of the other API (`key_role_mismatch`), a key from a browser (`origin_rejected`) or a management key acting for a subject",
4225
4348
  "content": {
@@ -4231,7 +4354,7 @@
4231
4354
  }
4232
4355
  },
4233
4356
  "404": {
4234
- "description": "Not found, or a credential the Tenant does not know (`not_found`)",
4357
+ "description": "Not found (`not_found`)",
4235
4358
  "content": {
4236
4359
  "application/json": {
4237
4360
  "schema": {
@@ -4301,10 +4424,10 @@
4301
4424
  {
4302
4425
  "schema": {
4303
4426
  "type": "string",
4304
- "description": "The protocol version, `8`"
4427
+ "description": "The protocol version, `9`"
4305
4428
  },
4306
4429
  "required": true,
4307
- "description": "The protocol version, `8`",
4430
+ "description": "The protocol version, `9`",
4308
4431
  "name": "Nylorun-Protocol",
4309
4432
  "in": "header"
4310
4433
  }
@@ -4330,6 +4453,16 @@
4330
4453
  }
4331
4454
  }
4332
4455
  },
4456
+ "401": {
4457
+ "description": "No credential (`credential_required`), or one the Tenant does not accept (`credential_invalid`), with a `WWW-Authenticate: Bearer` challenge",
4458
+ "content": {
4459
+ "application/json": {
4460
+ "schema": {
4461
+ "$ref": "#/components/schemas/Rejected"
4462
+ }
4463
+ }
4464
+ }
4465
+ },
4333
4466
  "403": {
4334
4467
  "description": "Not allowed for this credential, a key of the other API (`key_role_mismatch`), a key from a browser (`origin_rejected`) or a management key acting for a subject",
4335
4468
  "content": {
@@ -4341,7 +4474,7 @@
4341
4474
  }
4342
4475
  },
4343
4476
  "404": {
4344
- "description": "Not found, or a credential the Tenant does not know (`not_found`)",
4477
+ "description": "Not found (`not_found`)",
4345
4478
  "content": {
4346
4479
  "application/json": {
4347
4480
  "schema": {
@@ -4392,10 +4525,10 @@
4392
4525
  {
4393
4526
  "schema": {
4394
4527
  "type": "string",
4395
- "description": "The protocol version, `8`"
4528
+ "description": "The protocol version, `9`"
4396
4529
  },
4397
4530
  "required": true,
4398
- "description": "The protocol version, `8`",
4531
+ "description": "The protocol version, `9`",
4399
4532
  "name": "Nylorun-Protocol",
4400
4533
  "in": "header"
4401
4534
  }
@@ -4421,6 +4554,16 @@
4421
4554
  }
4422
4555
  }
4423
4556
  },
4557
+ "401": {
4558
+ "description": "No credential (`credential_required`), or one the Tenant does not accept (`credential_invalid`), with a `WWW-Authenticate: Bearer` challenge",
4559
+ "content": {
4560
+ "application/json": {
4561
+ "schema": {
4562
+ "$ref": "#/components/schemas/Rejected"
4563
+ }
4564
+ }
4565
+ }
4566
+ },
4424
4567
  "403": {
4425
4568
  "description": "Not allowed for this credential, a key of the other API (`key_role_mismatch`), a key from a browser (`origin_rejected`) or a management key acting for a subject",
4426
4569
  "content": {
@@ -4432,7 +4575,7 @@
4432
4575
  }
4433
4576
  },
4434
4577
  "404": {
4435
- "description": "Not found, or a credential the Tenant does not know (`not_found`)",
4578
+ "description": "Not found (`not_found`)",
4436
4579
  "content": {
4437
4580
  "application/json": {
4438
4581
  "schema": {
@@ -4482,10 +4625,10 @@
4482
4625
  {
4483
4626
  "schema": {
4484
4627
  "type": "string",
4485
- "description": "The protocol version, `8`"
4628
+ "description": "The protocol version, `9`"
4486
4629
  },
4487
4630
  "required": true,
4488
- "description": "The protocol version, `8`",
4631
+ "description": "The protocol version, `9`",
4489
4632
  "name": "Nylorun-Protocol",
4490
4633
  "in": "header"
4491
4634
  }
@@ -4521,6 +4664,16 @@
4521
4664
  }
4522
4665
  }
4523
4666
  },
4667
+ "401": {
4668
+ "description": "No credential (`credential_required`), or one the Tenant does not accept (`credential_invalid`), with a `WWW-Authenticate: Bearer` challenge",
4669
+ "content": {
4670
+ "application/json": {
4671
+ "schema": {
4672
+ "$ref": "#/components/schemas/Rejected"
4673
+ }
4674
+ }
4675
+ }
4676
+ },
4524
4677
  "403": {
4525
4678
  "description": "Not allowed for this credential, a key of the other API (`key_role_mismatch`), a key from a browser (`origin_rejected`) or a management key acting for a subject",
4526
4679
  "content": {
@@ -4532,7 +4685,7 @@
4532
4685
  }
4533
4686
  },
4534
4687
  "404": {
4535
- "description": "Not found, or a credential the Tenant does not know (`not_found`)",
4688
+ "description": "Not found (`not_found`)",
4536
4689
  "content": {
4537
4690
  "application/json": {
4538
4691
  "schema": {
@@ -4584,10 +4737,10 @@
4584
4737
  {
4585
4738
  "schema": {
4586
4739
  "type": "string",
4587
- "description": "The protocol version, `8`"
4740
+ "description": "The protocol version, `9`"
4588
4741
  },
4589
4742
  "required": true,
4590
- "description": "The protocol version, `8`",
4743
+ "description": "The protocol version, `9`",
4591
4744
  "name": "Nylorun-Protocol",
4592
4745
  "in": "header"
4593
4746
  }
@@ -4623,6 +4776,16 @@
4623
4776
  }
4624
4777
  }
4625
4778
  },
4779
+ "401": {
4780
+ "description": "No credential (`credential_required`), or one the Tenant does not accept (`credential_invalid`), with a `WWW-Authenticate: Bearer` challenge",
4781
+ "content": {
4782
+ "application/json": {
4783
+ "schema": {
4784
+ "$ref": "#/components/schemas/Rejected"
4785
+ }
4786
+ }
4787
+ }
4788
+ },
4626
4789
  "403": {
4627
4790
  "description": "Not allowed for this credential, a key of the other API (`key_role_mismatch`), a key from a browser (`origin_rejected`) or a management key acting for a subject",
4628
4791
  "content": {
@@ -4634,7 +4797,7 @@
4634
4797
  }
4635
4798
  },
4636
4799
  "404": {
4637
- "description": "Not found, or a credential the Tenant does not know (`not_found`)",
4800
+ "description": "Not found (`not_found`)",
4638
4801
  "content": {
4639
4802
  "application/json": {
4640
4803
  "schema": {
@@ -4697,10 +4860,10 @@
4697
4860
  {
4698
4861
  "schema": {
4699
4862
  "type": "string",
4700
- "description": "The protocol version, `8`"
4863
+ "description": "The protocol version, `9`"
4701
4864
  },
4702
4865
  "required": true,
4703
- "description": "The protocol version, `8`",
4866
+ "description": "The protocol version, `9`",
4704
4867
  "name": "Nylorun-Protocol",
4705
4868
  "in": "header"
4706
4869
  }
@@ -4726,6 +4889,16 @@
4726
4889
  }
4727
4890
  }
4728
4891
  },
4892
+ "401": {
4893
+ "description": "No credential (`credential_required`), or one the Tenant does not accept (`credential_invalid`), with a `WWW-Authenticate: Bearer` challenge",
4894
+ "content": {
4895
+ "application/json": {
4896
+ "schema": {
4897
+ "$ref": "#/components/schemas/Rejected"
4898
+ }
4899
+ }
4900
+ }
4901
+ },
4729
4902
  "403": {
4730
4903
  "description": "Not allowed for this credential, a key of the other API (`key_role_mismatch`), a key from a browser (`origin_rejected`) or a management key acting for a subject",
4731
4904
  "content": {
@@ -4737,7 +4910,7 @@
4737
4910
  }
4738
4911
  },
4739
4912
  "404": {
4740
- "description": "Not found, or a credential the Tenant does not know (`not_found`)",
4913
+ "description": "Not found (`not_found`)",
4741
4914
  "content": {
4742
4915
  "application/json": {
4743
4916
  "schema": {
@@ -4796,10 +4969,10 @@
4796
4969
  {
4797
4970
  "schema": {
4798
4971
  "type": "string",
4799
- "description": "The protocol version, `8`"
4972
+ "description": "The protocol version, `9`"
4800
4973
  },
4801
4974
  "required": true,
4802
- "description": "The protocol version, `8`",
4975
+ "description": "The protocol version, `9`",
4803
4976
  "name": "Nylorun-Protocol",
4804
4977
  "in": "header"
4805
4978
  }
@@ -4825,6 +4998,16 @@
4825
4998
  }
4826
4999
  }
4827
5000
  },
5001
+ "401": {
5002
+ "description": "No credential (`credential_required`), or one the Tenant does not accept (`credential_invalid`), with a `WWW-Authenticate: Bearer` challenge",
5003
+ "content": {
5004
+ "application/json": {
5005
+ "schema": {
5006
+ "$ref": "#/components/schemas/Rejected"
5007
+ }
5008
+ }
5009
+ }
5010
+ },
4828
5011
  "403": {
4829
5012
  "description": "Not allowed for this credential, a key of the other API (`key_role_mismatch`), a key from a browser (`origin_rejected`) or a management key acting for a subject",
4830
5013
  "content": {
@@ -4836,7 +5019,7 @@
4836
5019
  }
4837
5020
  },
4838
5021
  "404": {
4839
- "description": "Not found, or a credential the Tenant does not know (`not_found`)",
5022
+ "description": "Not found (`not_found`)",
4840
5023
  "content": {
4841
5024
  "application/json": {
4842
5025
  "schema": {
@@ -4893,10 +5076,10 @@
4893
5076
  {
4894
5077
  "schema": {
4895
5078
  "type": "string",
4896
- "description": "The protocol version, `8`"
5079
+ "description": "The protocol version, `9`"
4897
5080
  },
4898
5081
  "required": true,
4899
- "description": "The protocol version, `8`",
5082
+ "description": "The protocol version, `9`",
4900
5083
  "name": "Nylorun-Protocol",
4901
5084
  "in": "header"
4902
5085
  }
@@ -4922,6 +5105,16 @@
4922
5105
  }
4923
5106
  }
4924
5107
  },
5108
+ "401": {
5109
+ "description": "No credential (`credential_required`), or one the Tenant does not accept (`credential_invalid`), with a `WWW-Authenticate: Bearer` challenge",
5110
+ "content": {
5111
+ "application/json": {
5112
+ "schema": {
5113
+ "$ref": "#/components/schemas/Rejected"
5114
+ }
5115
+ }
5116
+ }
5117
+ },
4925
5118
  "403": {
4926
5119
  "description": "Not allowed for this credential, a key of the other API (`key_role_mismatch`), a key from a browser (`origin_rejected`) or a management key acting for a subject",
4927
5120
  "content": {
@@ -4933,7 +5126,7 @@
4933
5126
  }
4934
5127
  },
4935
5128
  "404": {
4936
- "description": "Not found, or a credential the Tenant does not know (`not_found`)",
5129
+ "description": "Not found (`not_found`)",
4937
5130
  "content": {
4938
5131
  "application/json": {
4939
5132
  "schema": {
@@ -4993,10 +5186,10 @@
4993
5186
  {
4994
5187
  "schema": {
4995
5188
  "type": "string",
4996
- "description": "The protocol version, `8`"
5189
+ "description": "The protocol version, `9`"
4997
5190
  },
4998
5191
  "required": true,
4999
- "description": "The protocol version, `8`",
5192
+ "description": "The protocol version, `9`",
5000
5193
  "name": "Nylorun-Protocol",
5001
5194
  "in": "header"
5002
5195
  }
@@ -5032,6 +5225,16 @@
5032
5225
  }
5033
5226
  }
5034
5227
  },
5228
+ "401": {
5229
+ "description": "No credential (`credential_required`), or one the Tenant does not accept (`credential_invalid`), with a `WWW-Authenticate: Bearer` challenge",
5230
+ "content": {
5231
+ "application/json": {
5232
+ "schema": {
5233
+ "$ref": "#/components/schemas/Rejected"
5234
+ }
5235
+ }
5236
+ }
5237
+ },
5035
5238
  "403": {
5036
5239
  "description": "Not allowed for this credential, a key of the other API (`key_role_mismatch`), a key from a browser (`origin_rejected`) or a management key acting for a subject",
5037
5240
  "content": {
@@ -5043,7 +5246,7 @@
5043
5246
  }
5044
5247
  },
5045
5248
  "404": {
5046
- "description": "Not found, or a credential the Tenant does not know (`not_found`)",
5249
+ "description": "Not found (`not_found`)",
5047
5250
  "content": {
5048
5251
  "application/json": {
5049
5252
  "schema": {
@@ -5100,10 +5303,10 @@
5100
5303
  {
5101
5304
  "schema": {
5102
5305
  "type": "string",
5103
- "description": "The protocol version, `8`"
5306
+ "description": "The protocol version, `9`"
5104
5307
  },
5105
5308
  "required": true,
5106
- "description": "The protocol version, `8`",
5309
+ "description": "The protocol version, `9`",
5107
5310
  "name": "Nylorun-Protocol",
5108
5311
  "in": "header"
5109
5312
  }
@@ -5129,6 +5332,16 @@
5129
5332
  }
5130
5333
  }
5131
5334
  },
5335
+ "401": {
5336
+ "description": "No credential (`credential_required`), or one the Tenant does not accept (`credential_invalid`), with a `WWW-Authenticate: Bearer` challenge",
5337
+ "content": {
5338
+ "application/json": {
5339
+ "schema": {
5340
+ "$ref": "#/components/schemas/Rejected"
5341
+ }
5342
+ }
5343
+ }
5344
+ },
5132
5345
  "403": {
5133
5346
  "description": "Not allowed for this credential, a key of the other API (`key_role_mismatch`), a key from a browser (`origin_rejected`) or a management key acting for a subject",
5134
5347
  "content": {
@@ -5140,7 +5353,7 @@
5140
5353
  }
5141
5354
  },
5142
5355
  "404": {
5143
- "description": "Not found, or a credential the Tenant does not know (`not_found`)",
5356
+ "description": "Not found (`not_found`)",
5144
5357
  "content": {
5145
5358
  "application/json": {
5146
5359
  "schema": {
@@ -5207,10 +5420,10 @@
5207
5420
  {
5208
5421
  "schema": {
5209
5422
  "type": "string",
5210
- "description": "The protocol version, `8`"
5423
+ "description": "The protocol version, `9`"
5211
5424
  },
5212
5425
  "required": true,
5213
- "description": "The protocol version, `8`",
5426
+ "description": "The protocol version, `9`",
5214
5427
  "name": "Nylorun-Protocol",
5215
5428
  "in": "header"
5216
5429
  }
@@ -5236,6 +5449,16 @@
5236
5449
  }
5237
5450
  }
5238
5451
  },
5452
+ "401": {
5453
+ "description": "No credential (`credential_required`), or one the Tenant does not accept (`credential_invalid`), with a `WWW-Authenticate: Bearer` challenge",
5454
+ "content": {
5455
+ "application/json": {
5456
+ "schema": {
5457
+ "$ref": "#/components/schemas/Rejected"
5458
+ }
5459
+ }
5460
+ }
5461
+ },
5239
5462
  "403": {
5240
5463
  "description": "Not allowed for this credential, a key of the other API (`key_role_mismatch`), a key from a browser (`origin_rejected`) or a management key acting for a subject",
5241
5464
  "content": {
@@ -5247,7 +5470,7 @@
5247
5470
  }
5248
5471
  },
5249
5472
  "404": {
5250
- "description": "Not found, or a credential the Tenant does not know (`not_found`)",
5473
+ "description": "Not found (`not_found`)",
5251
5474
  "content": {
5252
5475
  "application/json": {
5253
5476
  "schema": {
@@ -5312,10 +5535,10 @@
5312
5535
  {
5313
5536
  "schema": {
5314
5537
  "type": "string",
5315
- "description": "The protocol version, `8`"
5538
+ "description": "The protocol version, `9`"
5316
5539
  },
5317
5540
  "required": true,
5318
- "description": "The protocol version, `8`",
5541
+ "description": "The protocol version, `9`",
5319
5542
  "name": "Nylorun-Protocol",
5320
5543
  "in": "header"
5321
5544
  }
@@ -5351,6 +5574,16 @@
5351
5574
  }
5352
5575
  }
5353
5576
  },
5577
+ "401": {
5578
+ "description": "No credential (`credential_required`), or one the Tenant does not accept (`credential_invalid`), with a `WWW-Authenticate: Bearer` challenge",
5579
+ "content": {
5580
+ "application/json": {
5581
+ "schema": {
5582
+ "$ref": "#/components/schemas/Rejected"
5583
+ }
5584
+ }
5585
+ }
5586
+ },
5354
5587
  "403": {
5355
5588
  "description": "Not allowed for this credential, a key of the other API (`key_role_mismatch`), a key from a browser (`origin_rejected`) or a management key acting for a subject",
5356
5589
  "content": {
@@ -5362,7 +5595,7 @@
5362
5595
  }
5363
5596
  },
5364
5597
  "404": {
5365
- "description": "Not found, or a credential the Tenant does not know (`not_found`)",
5598
+ "description": "Not found (`not_found`)",
5366
5599
  "content": {
5367
5600
  "application/json": {
5368
5601
  "schema": {
@@ -5430,10 +5663,10 @@
5430
5663
  {
5431
5664
  "schema": {
5432
5665
  "type": "string",
5433
- "description": "The protocol version, `8`"
5666
+ "description": "The protocol version, `9`"
5434
5667
  },
5435
5668
  "required": true,
5436
- "description": "The protocol version, `8`",
5669
+ "description": "The protocol version, `9`",
5437
5670
  "name": "Nylorun-Protocol",
5438
5671
  "in": "header"
5439
5672
  }
@@ -5459,6 +5692,16 @@
5459
5692
  }
5460
5693
  }
5461
5694
  },
5695
+ "401": {
5696
+ "description": "No credential (`credential_required`), or one the Tenant does not accept (`credential_invalid`), with a `WWW-Authenticate: Bearer` challenge",
5697
+ "content": {
5698
+ "application/json": {
5699
+ "schema": {
5700
+ "$ref": "#/components/schemas/Rejected"
5701
+ }
5702
+ }
5703
+ }
5704
+ },
5462
5705
  "403": {
5463
5706
  "description": "Not allowed for this credential, a key of the other API (`key_role_mismatch`), a key from a browser (`origin_rejected`) or a management key acting for a subject",
5464
5707
  "content": {
@@ -5470,7 +5713,7 @@
5470
5713
  }
5471
5714
  },
5472
5715
  "404": {
5473
- "description": "Not found, or a credential the Tenant does not know (`not_found`)",
5716
+ "description": "Not found (`not_found`)",
5474
5717
  "content": {
5475
5718
  "application/json": {
5476
5719
  "schema": {
@@ -5530,10 +5773,10 @@
5530
5773
  {
5531
5774
  "schema": {
5532
5775
  "type": "string",
5533
- "description": "The protocol version, `8`"
5776
+ "description": "The protocol version, `9`"
5534
5777
  },
5535
5778
  "required": true,
5536
- "description": "The protocol version, `8`",
5779
+ "description": "The protocol version, `9`",
5537
5780
  "name": "Nylorun-Protocol",
5538
5781
  "in": "header"
5539
5782
  }
@@ -5569,6 +5812,16 @@
5569
5812
  }
5570
5813
  }
5571
5814
  },
5815
+ "401": {
5816
+ "description": "No credential (`credential_required`), or one the Tenant does not accept (`credential_invalid`), with a `WWW-Authenticate: Bearer` challenge",
5817
+ "content": {
5818
+ "application/json": {
5819
+ "schema": {
5820
+ "$ref": "#/components/schemas/Rejected"
5821
+ }
5822
+ }
5823
+ }
5824
+ },
5572
5825
  "403": {
5573
5826
  "description": "Not allowed for this credential, a key of the other API (`key_role_mismatch`), a key from a browser (`origin_rejected`) or a management key acting for a subject",
5574
5827
  "content": {
@@ -5580,7 +5833,7 @@
5580
5833
  }
5581
5834
  },
5582
5835
  "404": {
5583
- "description": "Not found, or a credential the Tenant does not know (`not_found`)",
5836
+ "description": "Not found (`not_found`)",
5584
5837
  "content": {
5585
5838
  "application/json": {
5586
5839
  "schema": {
@@ -5665,10 +5918,10 @@
5665
5918
  {
5666
5919
  "schema": {
5667
5920
  "type": "string",
5668
- "description": "The protocol version, `8`"
5921
+ "description": "The protocol version, `9`"
5669
5922
  },
5670
5923
  "required": false,
5671
- "description": "The protocol version, `8`",
5924
+ "description": "The protocol version, `9`",
5672
5925
  "name": "Nylorun-Protocol",
5673
5926
  "in": "header"
5674
5927
  },
@@ -5715,7 +5968,7 @@
5715
5968
  }
5716
5969
  },
5717
5970
  "401": {
5718
- "description": "The token expired (`token_expired`), or its issuer's keys cannot be fetched now (`issuer_unavailable`)",
5971
+ "description": "No credential (`credential_required`), one the Tenant does not accept (`credential_invalid`), a token that expired (`token_expired`), or a token whose issuer's keys cannot be fetched now (`issuer_unavailable`). `WWW-Authenticate: Bearer` names the protected resource metadata (`resource_metadata`)",
5719
5972
  "content": {
5720
5973
  "application/json": {
5721
5974
  "schema": {
@@ -5725,7 +5978,7 @@
5725
5978
  }
5726
5979
  },
5727
5980
  "403": {
5728
- "description": "Not allowed for this credential or subject scope, a key of the other API (`key_role_mismatch`), or an application key from a browser (`origin_rejected`)",
5981
+ "description": "Not allowed for this credential or subject scope (`scope_required`; a token also gets `WWW-Authenticate: Bearer error=\"insufficient_scope\"` and the scope), a key of the other API (`key_role_mismatch`), or an application key from a browser (`origin_rejected`)",
5729
5982
  "content": {
5730
5983
  "application/json": {
5731
5984
  "schema": {
@@ -5735,7 +5988,7 @@
5735
5988
  }
5736
5989
  },
5737
5990
  "404": {
5738
- "description": "Not found, or a credential the Tenant does not know (`not_found`)",
5991
+ "description": "Not found (`not_found`)",
5739
5992
  "content": {
5740
5993
  "application/json": {
5741
5994
  "schema": {
@@ -5789,10 +6042,10 @@
5789
6042
  {
5790
6043
  "schema": {
5791
6044
  "type": "string",
5792
- "description": "The protocol version, `8`"
6045
+ "description": "The protocol version, `9`"
5793
6046
  },
5794
6047
  "required": true,
5795
- "description": "The protocol version, `8`",
6048
+ "description": "The protocol version, `9`",
5796
6049
  "name": "Nylorun-Protocol",
5797
6050
  "in": "header"
5798
6051
  }
@@ -5818,6 +6071,16 @@
5818
6071
  }
5819
6072
  }
5820
6073
  },
6074
+ "401": {
6075
+ "description": "No credential (`credential_required`), or one the Tenant does not accept (`credential_invalid`), with a `WWW-Authenticate: Bearer` challenge",
6076
+ "content": {
6077
+ "application/json": {
6078
+ "schema": {
6079
+ "$ref": "#/components/schemas/Rejected"
6080
+ }
6081
+ }
6082
+ }
6083
+ },
5821
6084
  "403": {
5822
6085
  "description": "Not allowed for this credential, a key of the other API (`key_role_mismatch`), a key from a browser (`origin_rejected`) or a management key acting for a subject",
5823
6086
  "content": {
@@ -5829,7 +6092,7 @@
5829
6092
  }
5830
6093
  },
5831
6094
  "404": {
5832
- "description": "Not found, or a credential the Tenant does not know (`not_found`)",
6095
+ "description": "Not found (`not_found`)",
5833
6096
  "content": {
5834
6097
  "application/json": {
5835
6098
  "schema": {
@@ -5881,10 +6144,10 @@
5881
6144
  {
5882
6145
  "schema": {
5883
6146
  "type": "string",
5884
- "description": "The protocol version, `8`"
6147
+ "description": "The protocol version, `9`"
5885
6148
  },
5886
6149
  "required": true,
5887
- "description": "The protocol version, `8`",
6150
+ "description": "The protocol version, `9`",
5888
6151
  "name": "Nylorun-Protocol",
5889
6152
  "in": "header"
5890
6153
  }
@@ -5920,6 +6183,16 @@
5920
6183
  }
5921
6184
  }
5922
6185
  },
6186
+ "401": {
6187
+ "description": "No credential (`credential_required`), or one the Tenant does not accept (`credential_invalid`), with a `WWW-Authenticate: Bearer` challenge",
6188
+ "content": {
6189
+ "application/json": {
6190
+ "schema": {
6191
+ "$ref": "#/components/schemas/Rejected"
6192
+ }
6193
+ }
6194
+ }
6195
+ },
5923
6196
  "403": {
5924
6197
  "description": "Not allowed for this credential, a key of the other API (`key_role_mismatch`), a key from a browser (`origin_rejected`) or a management key acting for a subject",
5925
6198
  "content": {
@@ -5931,7 +6204,7 @@
5931
6204
  }
5932
6205
  },
5933
6206
  "404": {
5934
- "description": "Not found, or a credential the Tenant does not know (`not_found`)",
6207
+ "description": "Not found (`not_found`)",
5935
6208
  "content": {
5936
6209
  "application/json": {
5937
6210
  "schema": {
@@ -5993,10 +6266,10 @@
5993
6266
  {
5994
6267
  "schema": {
5995
6268
  "type": "string",
5996
- "description": "The protocol version, `8`"
6269
+ "description": "The protocol version, `9`"
5997
6270
  },
5998
6271
  "required": true,
5999
- "description": "The protocol version, `8`",
6272
+ "description": "The protocol version, `9`",
6000
6273
  "name": "Nylorun-Protocol",
6001
6274
  "in": "header"
6002
6275
  }
@@ -6032,6 +6305,16 @@
6032
6305
  }
6033
6306
  }
6034
6307
  },
6308
+ "401": {
6309
+ "description": "No credential (`credential_required`), or one the Tenant does not accept (`credential_invalid`), with a `WWW-Authenticate: Bearer` challenge",
6310
+ "content": {
6311
+ "application/json": {
6312
+ "schema": {
6313
+ "$ref": "#/components/schemas/Rejected"
6314
+ }
6315
+ }
6316
+ }
6317
+ },
6035
6318
  "403": {
6036
6319
  "description": "Not allowed for this credential, a key of the other API (`key_role_mismatch`), a key from a browser (`origin_rejected`) or a management key acting for a subject",
6037
6320
  "content": {
@@ -6043,7 +6326,7 @@
6043
6326
  }
6044
6327
  },
6045
6328
  "404": {
6046
- "description": "Not found, or a credential the Tenant does not know (`not_found`)",
6329
+ "description": "Not found (`not_found`)",
6047
6330
  "content": {
6048
6331
  "application/json": {
6049
6332
  "schema": {
@@ -6097,10 +6380,10 @@
6097
6380
  {
6098
6381
  "schema": {
6099
6382
  "type": "string",
6100
- "description": "The protocol version, `8`"
6383
+ "description": "The protocol version, `9`"
6101
6384
  },
6102
6385
  "required": true,
6103
- "description": "The protocol version, `8`",
6386
+ "description": "The protocol version, `9`",
6104
6387
  "name": "Nylorun-Protocol",
6105
6388
  "in": "header"
6106
6389
  }
@@ -6126,6 +6409,16 @@
6126
6409
  }
6127
6410
  }
6128
6411
  },
6412
+ "401": {
6413
+ "description": "No credential (`credential_required`), or one the Tenant does not accept (`credential_invalid`), with a `WWW-Authenticate: Bearer` challenge",
6414
+ "content": {
6415
+ "application/json": {
6416
+ "schema": {
6417
+ "$ref": "#/components/schemas/Rejected"
6418
+ }
6419
+ }
6420
+ }
6421
+ },
6129
6422
  "403": {
6130
6423
  "description": "Not allowed for this credential, a key of the other API (`key_role_mismatch`), a key from a browser (`origin_rejected`) or a management key acting for a subject",
6131
6424
  "content": {
@@ -6137,7 +6430,7 @@
6137
6430
  }
6138
6431
  },
6139
6432
  "404": {
6140
- "description": "Not found, or a credential the Tenant does not know (`not_found`)",
6433
+ "description": "Not found (`not_found`)",
6141
6434
  "content": {
6142
6435
  "application/json": {
6143
6436
  "schema": {
@@ -6187,10 +6480,10 @@
6187
6480
  {
6188
6481
  "schema": {
6189
6482
  "type": "string",
6190
- "description": "The protocol version, `8`"
6483
+ "description": "The protocol version, `9`"
6191
6484
  },
6192
6485
  "required": true,
6193
- "description": "The protocol version, `8`",
6486
+ "description": "The protocol version, `9`",
6194
6487
  "name": "Nylorun-Protocol",
6195
6488
  "in": "header"
6196
6489
  }
@@ -6226,6 +6519,16 @@
6226
6519
  }
6227
6520
  }
6228
6521
  },
6522
+ "401": {
6523
+ "description": "No credential (`credential_required`), or one the Tenant does not accept (`credential_invalid`), with a `WWW-Authenticate: Bearer` challenge",
6524
+ "content": {
6525
+ "application/json": {
6526
+ "schema": {
6527
+ "$ref": "#/components/schemas/Rejected"
6528
+ }
6529
+ }
6530
+ }
6531
+ },
6229
6532
  "403": {
6230
6533
  "description": "Not allowed for this credential, a key of the other API (`key_role_mismatch`), a key from a browser (`origin_rejected`) or a management key acting for a subject",
6231
6534
  "content": {
@@ -6237,7 +6540,7 @@
6237
6540
  }
6238
6541
  },
6239
6542
  "404": {
6240
- "description": "Not found, or a credential the Tenant does not know (`not_found`)",
6543
+ "description": "Not found (`not_found`)",
6241
6544
  "content": {
6242
6545
  "application/json": {
6243
6546
  "schema": {
@@ -6288,10 +6591,10 @@
6288
6591
  {
6289
6592
  "schema": {
6290
6593
  "type": "string",
6291
- "description": "The protocol version, `8`"
6594
+ "description": "The protocol version, `9`"
6292
6595
  },
6293
6596
  "required": true,
6294
- "description": "The protocol version, `8`",
6597
+ "description": "The protocol version, `9`",
6295
6598
  "name": "Nylorun-Protocol",
6296
6599
  "in": "header"
6297
6600
  }
@@ -6317,6 +6620,16 @@
6317
6620
  }
6318
6621
  }
6319
6622
  },
6623
+ "401": {
6624
+ "description": "No credential (`credential_required`), or one the Tenant does not accept (`credential_invalid`), with a `WWW-Authenticate: Bearer` challenge",
6625
+ "content": {
6626
+ "application/json": {
6627
+ "schema": {
6628
+ "$ref": "#/components/schemas/Rejected"
6629
+ }
6630
+ }
6631
+ }
6632
+ },
6320
6633
  "403": {
6321
6634
  "description": "Not allowed for this credential, a key of the other API (`key_role_mismatch`), a key from a browser (`origin_rejected`) or a management key acting for a subject",
6322
6635
  "content": {
@@ -6328,7 +6641,7 @@
6328
6641
  }
6329
6642
  },
6330
6643
  "404": {
6331
- "description": "Not found, or a credential the Tenant does not know (`not_found`)",
6644
+ "description": "Not found (`not_found`)",
6332
6645
  "content": {
6333
6646
  "application/json": {
6334
6647
  "schema": {
@@ -6378,10 +6691,10 @@
6378
6691
  {
6379
6692
  "schema": {
6380
6693
  "type": "string",
6381
- "description": "The protocol version, `8`"
6694
+ "description": "The protocol version, `9`"
6382
6695
  },
6383
6696
  "required": true,
6384
- "description": "The protocol version, `8`",
6697
+ "description": "The protocol version, `9`",
6385
6698
  "name": "Nylorun-Protocol",
6386
6699
  "in": "header"
6387
6700
  }
@@ -6417,6 +6730,16 @@
6417
6730
  }
6418
6731
  }
6419
6732
  },
6733
+ "401": {
6734
+ "description": "No credential (`credential_required`), or one the Tenant does not accept (`credential_invalid`), with a `WWW-Authenticate: Bearer` challenge",
6735
+ "content": {
6736
+ "application/json": {
6737
+ "schema": {
6738
+ "$ref": "#/components/schemas/Rejected"
6739
+ }
6740
+ }
6741
+ }
6742
+ },
6420
6743
  "403": {
6421
6744
  "description": "Not allowed for this credential, a key of the other API (`key_role_mismatch`), a key from a browser (`origin_rejected`) or a management key acting for a subject",
6422
6745
  "content": {
@@ -6428,7 +6751,7 @@
6428
6751
  }
6429
6752
  },
6430
6753
  "404": {
6431
- "description": "Not found, or a credential the Tenant does not know (`not_found`)",
6754
+ "description": "Not found (`not_found`)",
6432
6755
  "content": {
6433
6756
  "application/json": {
6434
6757
  "schema": {