@1claw/openapi-spec 0.50.0 → 0.52.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/openapi.json +908 -1
- package/openapi.yaml +592 -1
- package/package.json +1 -1
package/openapi.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"openapi": "3.1.0",
|
|
3
3
|
"info": {
|
|
4
4
|
"title": "1Claw API",
|
|
5
|
-
"version": "
|
|
5
|
+
"version": "0.52.0",
|
|
6
6
|
"description": "Secure secret management for AI agents. Provides vaults, secrets,\npolicy-based access control, agent identity, Intents API,\nsharing, billing, and audit logging. Automations (workflow_spec,\nwebhook tokens, event triggers, Assist), cloud runtimes with\ninteractive shell sessions, agent memory, and discovery.\n\nAll endpoints require JWT Bearer authentication unless marked with\n`security: []`.\n",
|
|
7
7
|
"contact": {
|
|
8
8
|
"email": "ops@1claw.xyz"
|
|
@@ -190,6 +190,10 @@
|
|
|
190
190
|
{
|
|
191
191
|
"name": "Portfolio",
|
|
192
192
|
"description": "Unified balance aggregator"
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"name": "Environment Variables",
|
|
196
|
+
"description": "Per-vault and org-shared environment variable management"
|
|
193
197
|
}
|
|
194
198
|
],
|
|
195
199
|
"paths": {
|
|
@@ -3017,6 +3021,353 @@
|
|
|
3017
3021
|
}
|
|
3018
3022
|
}
|
|
3019
3023
|
},
|
|
3024
|
+
"/v1/vaults/{vault_id}/env-vars": {
|
|
3025
|
+
"get": {
|
|
3026
|
+
"tags": [
|
|
3027
|
+
"Environment Variables"
|
|
3028
|
+
],
|
|
3029
|
+
"summary": "List environment variables",
|
|
3030
|
+
"description": "List all environment variables for a vault, optionally filtered by environment.",
|
|
3031
|
+
"operationId": "listEnvVars",
|
|
3032
|
+
"parameters": [
|
|
3033
|
+
{
|
|
3034
|
+
"$ref": "#/components/parameters/VaultId"
|
|
3035
|
+
},
|
|
3036
|
+
{
|
|
3037
|
+
"name": "environment",
|
|
3038
|
+
"in": "query",
|
|
3039
|
+
"schema": {
|
|
3040
|
+
"type": "string"
|
|
3041
|
+
},
|
|
3042
|
+
"description": "Filter by environment (production, preview, development, or custom)"
|
|
3043
|
+
}
|
|
3044
|
+
],
|
|
3045
|
+
"responses": {
|
|
3046
|
+
"200": {
|
|
3047
|
+
"description": "Environment variable list",
|
|
3048
|
+
"content": {
|
|
3049
|
+
"application/json": {
|
|
3050
|
+
"schema": {
|
|
3051
|
+
"type": "object",
|
|
3052
|
+
"properties": {
|
|
3053
|
+
"env_vars": {
|
|
3054
|
+
"type": "array",
|
|
3055
|
+
"items": {
|
|
3056
|
+
"$ref": "#/components/schemas/EnvVar"
|
|
3057
|
+
}
|
|
3058
|
+
}
|
|
3059
|
+
}
|
|
3060
|
+
}
|
|
3061
|
+
}
|
|
3062
|
+
}
|
|
3063
|
+
}
|
|
3064
|
+
}
|
|
3065
|
+
},
|
|
3066
|
+
"post": {
|
|
3067
|
+
"tags": [
|
|
3068
|
+
"Environment Variables"
|
|
3069
|
+
],
|
|
3070
|
+
"summary": "Create environment variable",
|
|
3071
|
+
"operationId": "createEnvVar",
|
|
3072
|
+
"parameters": [
|
|
3073
|
+
{
|
|
3074
|
+
"$ref": "#/components/parameters/VaultId"
|
|
3075
|
+
}
|
|
3076
|
+
],
|
|
3077
|
+
"requestBody": {
|
|
3078
|
+
"required": true,
|
|
3079
|
+
"content": {
|
|
3080
|
+
"application/json": {
|
|
3081
|
+
"schema": {
|
|
3082
|
+
"$ref": "#/components/schemas/CreateEnvVarRequest"
|
|
3083
|
+
}
|
|
3084
|
+
}
|
|
3085
|
+
}
|
|
3086
|
+
},
|
|
3087
|
+
"responses": {
|
|
3088
|
+
"201": {
|
|
3089
|
+
"description": "Environment variable created",
|
|
3090
|
+
"content": {
|
|
3091
|
+
"application/json": {
|
|
3092
|
+
"schema": {
|
|
3093
|
+
"$ref": "#/components/schemas/EnvVar"
|
|
3094
|
+
}
|
|
3095
|
+
}
|
|
3096
|
+
}
|
|
3097
|
+
},
|
|
3098
|
+
"400": {
|
|
3099
|
+
"$ref": "#/components/responses/BadRequest"
|
|
3100
|
+
}
|
|
3101
|
+
}
|
|
3102
|
+
}
|
|
3103
|
+
},
|
|
3104
|
+
"/v1/vaults/{vault_id}/env-vars/resolve": {
|
|
3105
|
+
"get": {
|
|
3106
|
+
"tags": [
|
|
3107
|
+
"Environment Variables"
|
|
3108
|
+
],
|
|
3109
|
+
"summary": "Resolve environment variables",
|
|
3110
|
+
"description": "Resolve the final KEY=VALUE set for an environment with full precedence (shared < vault < branch override).",
|
|
3111
|
+
"operationId": "resolveEnvVars",
|
|
3112
|
+
"parameters": [
|
|
3113
|
+
{
|
|
3114
|
+
"$ref": "#/components/parameters/VaultId"
|
|
3115
|
+
},
|
|
3116
|
+
{
|
|
3117
|
+
"name": "environment",
|
|
3118
|
+
"in": "query",
|
|
3119
|
+
"required": true,
|
|
3120
|
+
"schema": {
|
|
3121
|
+
"type": "string"
|
|
3122
|
+
}
|
|
3123
|
+
},
|
|
3124
|
+
{
|
|
3125
|
+
"name": "git_branch",
|
|
3126
|
+
"in": "query",
|
|
3127
|
+
"schema": {
|
|
3128
|
+
"type": "string"
|
|
3129
|
+
}
|
|
3130
|
+
}
|
|
3131
|
+
],
|
|
3132
|
+
"responses": {
|
|
3133
|
+
"200": {
|
|
3134
|
+
"description": "Resolved environment variables",
|
|
3135
|
+
"content": {
|
|
3136
|
+
"application/json": {
|
|
3137
|
+
"schema": {
|
|
3138
|
+
"$ref": "#/components/schemas/ResolveEnvVarsResponse"
|
|
3139
|
+
}
|
|
3140
|
+
}
|
|
3141
|
+
}
|
|
3142
|
+
}
|
|
3143
|
+
}
|
|
3144
|
+
}
|
|
3145
|
+
},
|
|
3146
|
+
"/v1/vaults/{vault_id}/env-vars/{key}": {
|
|
3147
|
+
"get": {
|
|
3148
|
+
"tags": [
|
|
3149
|
+
"Environment Variables"
|
|
3150
|
+
],
|
|
3151
|
+
"summary": "Get environment variable",
|
|
3152
|
+
"operationId": "getEnvVar",
|
|
3153
|
+
"parameters": [
|
|
3154
|
+
{
|
|
3155
|
+
"$ref": "#/components/parameters/VaultId"
|
|
3156
|
+
},
|
|
3157
|
+
{
|
|
3158
|
+
"name": "key",
|
|
3159
|
+
"in": "path",
|
|
3160
|
+
"required": true,
|
|
3161
|
+
"schema": {
|
|
3162
|
+
"type": "string"
|
|
3163
|
+
}
|
|
3164
|
+
},
|
|
3165
|
+
{
|
|
3166
|
+
"name": "environment",
|
|
3167
|
+
"in": "query",
|
|
3168
|
+
"schema": {
|
|
3169
|
+
"type": "string"
|
|
3170
|
+
}
|
|
3171
|
+
}
|
|
3172
|
+
],
|
|
3173
|
+
"responses": {
|
|
3174
|
+
"200": {
|
|
3175
|
+
"description": "Environment variable",
|
|
3176
|
+
"content": {
|
|
3177
|
+
"application/json": {
|
|
3178
|
+
"schema": {
|
|
3179
|
+
"$ref": "#/components/schemas/EnvVar"
|
|
3180
|
+
}
|
|
3181
|
+
}
|
|
3182
|
+
}
|
|
3183
|
+
},
|
|
3184
|
+
"404": {
|
|
3185
|
+
"$ref": "#/components/responses/NotFound"
|
|
3186
|
+
}
|
|
3187
|
+
}
|
|
3188
|
+
},
|
|
3189
|
+
"patch": {
|
|
3190
|
+
"tags": [
|
|
3191
|
+
"Environment Variables"
|
|
3192
|
+
],
|
|
3193
|
+
"summary": "Update environment variable",
|
|
3194
|
+
"operationId": "updateEnvVar",
|
|
3195
|
+
"parameters": [
|
|
3196
|
+
{
|
|
3197
|
+
"$ref": "#/components/parameters/VaultId"
|
|
3198
|
+
},
|
|
3199
|
+
{
|
|
3200
|
+
"name": "key",
|
|
3201
|
+
"in": "path",
|
|
3202
|
+
"required": true,
|
|
3203
|
+
"schema": {
|
|
3204
|
+
"type": "string"
|
|
3205
|
+
}
|
|
3206
|
+
},
|
|
3207
|
+
{
|
|
3208
|
+
"name": "environment",
|
|
3209
|
+
"in": "query",
|
|
3210
|
+
"schema": {
|
|
3211
|
+
"type": "string"
|
|
3212
|
+
}
|
|
3213
|
+
}
|
|
3214
|
+
],
|
|
3215
|
+
"requestBody": {
|
|
3216
|
+
"content": {
|
|
3217
|
+
"application/json": {
|
|
3218
|
+
"schema": {
|
|
3219
|
+
"$ref": "#/components/schemas/UpdateEnvVarRequest"
|
|
3220
|
+
}
|
|
3221
|
+
}
|
|
3222
|
+
}
|
|
3223
|
+
},
|
|
3224
|
+
"responses": {
|
|
3225
|
+
"200": {
|
|
3226
|
+
"description": "Environment variable updated",
|
|
3227
|
+
"content": {
|
|
3228
|
+
"application/json": {
|
|
3229
|
+
"schema": {
|
|
3230
|
+
"$ref": "#/components/schemas/EnvVar"
|
|
3231
|
+
}
|
|
3232
|
+
}
|
|
3233
|
+
}
|
|
3234
|
+
},
|
|
3235
|
+
"404": {
|
|
3236
|
+
"$ref": "#/components/responses/NotFound"
|
|
3237
|
+
}
|
|
3238
|
+
}
|
|
3239
|
+
},
|
|
3240
|
+
"delete": {
|
|
3241
|
+
"tags": [
|
|
3242
|
+
"Environment Variables"
|
|
3243
|
+
],
|
|
3244
|
+
"summary": "Delete environment variable",
|
|
3245
|
+
"operationId": "deleteEnvVar",
|
|
3246
|
+
"parameters": [
|
|
3247
|
+
{
|
|
3248
|
+
"$ref": "#/components/parameters/VaultId"
|
|
3249
|
+
},
|
|
3250
|
+
{
|
|
3251
|
+
"name": "key",
|
|
3252
|
+
"in": "path",
|
|
3253
|
+
"required": true,
|
|
3254
|
+
"schema": {
|
|
3255
|
+
"type": "string"
|
|
3256
|
+
}
|
|
3257
|
+
},
|
|
3258
|
+
{
|
|
3259
|
+
"name": "environment",
|
|
3260
|
+
"in": "query",
|
|
3261
|
+
"schema": {
|
|
3262
|
+
"type": "string"
|
|
3263
|
+
}
|
|
3264
|
+
}
|
|
3265
|
+
],
|
|
3266
|
+
"responses": {
|
|
3267
|
+
"204": {
|
|
3268
|
+
"description": "Deleted"
|
|
3269
|
+
}
|
|
3270
|
+
}
|
|
3271
|
+
}
|
|
3272
|
+
},
|
|
3273
|
+
"/v1/vaults/{vault_id}/environments": {
|
|
3274
|
+
"get": {
|
|
3275
|
+
"tags": [
|
|
3276
|
+
"Environment Variables"
|
|
3277
|
+
],
|
|
3278
|
+
"summary": "List vault environments",
|
|
3279
|
+
"operationId": "listVaultEnvironments",
|
|
3280
|
+
"parameters": [
|
|
3281
|
+
{
|
|
3282
|
+
"$ref": "#/components/parameters/VaultId"
|
|
3283
|
+
}
|
|
3284
|
+
],
|
|
3285
|
+
"responses": {
|
|
3286
|
+
"200": {
|
|
3287
|
+
"description": "Vault environment list",
|
|
3288
|
+
"content": {
|
|
3289
|
+
"application/json": {
|
|
3290
|
+
"schema": {
|
|
3291
|
+
"type": "object",
|
|
3292
|
+
"properties": {
|
|
3293
|
+
"environments": {
|
|
3294
|
+
"type": "array",
|
|
3295
|
+
"items": {
|
|
3296
|
+
"$ref": "#/components/schemas/VaultEnvironment"
|
|
3297
|
+
}
|
|
3298
|
+
}
|
|
3299
|
+
}
|
|
3300
|
+
}
|
|
3301
|
+
}
|
|
3302
|
+
}
|
|
3303
|
+
}
|
|
3304
|
+
}
|
|
3305
|
+
},
|
|
3306
|
+
"post": {
|
|
3307
|
+
"tags": [
|
|
3308
|
+
"Environment Variables"
|
|
3309
|
+
],
|
|
3310
|
+
"summary": "Create custom environment",
|
|
3311
|
+
"operationId": "createVaultEnvironment",
|
|
3312
|
+
"parameters": [
|
|
3313
|
+
{
|
|
3314
|
+
"$ref": "#/components/parameters/VaultId"
|
|
3315
|
+
}
|
|
3316
|
+
],
|
|
3317
|
+
"requestBody": {
|
|
3318
|
+
"required": true,
|
|
3319
|
+
"content": {
|
|
3320
|
+
"application/json": {
|
|
3321
|
+
"schema": {
|
|
3322
|
+
"$ref": "#/components/schemas/CreateEnvironmentRequest"
|
|
3323
|
+
}
|
|
3324
|
+
}
|
|
3325
|
+
}
|
|
3326
|
+
},
|
|
3327
|
+
"responses": {
|
|
3328
|
+
"201": {
|
|
3329
|
+
"description": "Environment created",
|
|
3330
|
+
"content": {
|
|
3331
|
+
"application/json": {
|
|
3332
|
+
"schema": {
|
|
3333
|
+
"$ref": "#/components/schemas/VaultEnvironment"
|
|
3334
|
+
}
|
|
3335
|
+
}
|
|
3336
|
+
}
|
|
3337
|
+
},
|
|
3338
|
+
"400": {
|
|
3339
|
+
"$ref": "#/components/responses/BadRequest"
|
|
3340
|
+
}
|
|
3341
|
+
}
|
|
3342
|
+
}
|
|
3343
|
+
},
|
|
3344
|
+
"/v1/vaults/{vault_id}/environments/{slug}": {
|
|
3345
|
+
"delete": {
|
|
3346
|
+
"tags": [
|
|
3347
|
+
"Environment Variables"
|
|
3348
|
+
],
|
|
3349
|
+
"summary": "Delete custom environment",
|
|
3350
|
+
"operationId": "deleteVaultEnvironment",
|
|
3351
|
+
"parameters": [
|
|
3352
|
+
{
|
|
3353
|
+
"$ref": "#/components/parameters/VaultId"
|
|
3354
|
+
},
|
|
3355
|
+
{
|
|
3356
|
+
"name": "slug",
|
|
3357
|
+
"in": "path",
|
|
3358
|
+
"required": true,
|
|
3359
|
+
"schema": {
|
|
3360
|
+
"type": "string"
|
|
3361
|
+
}
|
|
3362
|
+
}
|
|
3363
|
+
],
|
|
3364
|
+
"responses": {
|
|
3365
|
+
"204": {
|
|
3366
|
+
"description": "Deleted"
|
|
3367
|
+
}
|
|
3368
|
+
}
|
|
3369
|
+
}
|
|
3370
|
+
},
|
|
3020
3371
|
"/v1/agents/enroll": {
|
|
3021
3372
|
"post": {
|
|
3022
3373
|
"tags": [
|
|
@@ -5356,6 +5707,213 @@
|
|
|
5356
5707
|
}
|
|
5357
5708
|
}
|
|
5358
5709
|
},
|
|
5710
|
+
"/v1/org/env-vars": {
|
|
5711
|
+
"get": {
|
|
5712
|
+
"tags": [
|
|
5713
|
+
"Organization"
|
|
5714
|
+
],
|
|
5715
|
+
"summary": "List org shared environment variables",
|
|
5716
|
+
"operationId": "listOrgEnvVars",
|
|
5717
|
+
"responses": {
|
|
5718
|
+
"200": {
|
|
5719
|
+
"description": "Org shared environment variable list",
|
|
5720
|
+
"content": {
|
|
5721
|
+
"application/json": {
|
|
5722
|
+
"schema": {
|
|
5723
|
+
"type": "object",
|
|
5724
|
+
"properties": {
|
|
5725
|
+
"env_vars": {
|
|
5726
|
+
"type": "array",
|
|
5727
|
+
"items": {
|
|
5728
|
+
"$ref": "#/components/schemas/OrgEnvVar"
|
|
5729
|
+
}
|
|
5730
|
+
}
|
|
5731
|
+
}
|
|
5732
|
+
}
|
|
5733
|
+
}
|
|
5734
|
+
}
|
|
5735
|
+
}
|
|
5736
|
+
}
|
|
5737
|
+
},
|
|
5738
|
+
"post": {
|
|
5739
|
+
"tags": [
|
|
5740
|
+
"Organization"
|
|
5741
|
+
],
|
|
5742
|
+
"summary": "Create org shared environment variable",
|
|
5743
|
+
"operationId": "createOrgEnvVar",
|
|
5744
|
+
"requestBody": {
|
|
5745
|
+
"required": true,
|
|
5746
|
+
"content": {
|
|
5747
|
+
"application/json": {
|
|
5748
|
+
"schema": {
|
|
5749
|
+
"$ref": "#/components/schemas/CreateOrgEnvVarRequest"
|
|
5750
|
+
}
|
|
5751
|
+
}
|
|
5752
|
+
}
|
|
5753
|
+
},
|
|
5754
|
+
"responses": {
|
|
5755
|
+
"201": {
|
|
5756
|
+
"description": "Org shared env var created",
|
|
5757
|
+
"content": {
|
|
5758
|
+
"application/json": {
|
|
5759
|
+
"schema": {
|
|
5760
|
+
"$ref": "#/components/schemas/OrgEnvVar"
|
|
5761
|
+
}
|
|
5762
|
+
}
|
|
5763
|
+
}
|
|
5764
|
+
},
|
|
5765
|
+
"400": {
|
|
5766
|
+
"$ref": "#/components/responses/BadRequest"
|
|
5767
|
+
}
|
|
5768
|
+
}
|
|
5769
|
+
}
|
|
5770
|
+
},
|
|
5771
|
+
"/v1/org/env-vars/{key}": {
|
|
5772
|
+
"patch": {
|
|
5773
|
+
"tags": [
|
|
5774
|
+
"Organization"
|
|
5775
|
+
],
|
|
5776
|
+
"summary": "Update org shared environment variable",
|
|
5777
|
+
"operationId": "updateOrgEnvVar",
|
|
5778
|
+
"parameters": [
|
|
5779
|
+
{
|
|
5780
|
+
"name": "key",
|
|
5781
|
+
"in": "path",
|
|
5782
|
+
"required": true,
|
|
5783
|
+
"schema": {
|
|
5784
|
+
"type": "string"
|
|
5785
|
+
}
|
|
5786
|
+
}
|
|
5787
|
+
],
|
|
5788
|
+
"requestBody": {
|
|
5789
|
+
"content": {
|
|
5790
|
+
"application/json": {
|
|
5791
|
+
"schema": {
|
|
5792
|
+
"$ref": "#/components/schemas/UpdateOrgEnvVarRequest"
|
|
5793
|
+
}
|
|
5794
|
+
}
|
|
5795
|
+
}
|
|
5796
|
+
},
|
|
5797
|
+
"responses": {
|
|
5798
|
+
"200": {
|
|
5799
|
+
"description": "Org shared env var updated",
|
|
5800
|
+
"content": {
|
|
5801
|
+
"application/json": {
|
|
5802
|
+
"schema": {
|
|
5803
|
+
"$ref": "#/components/schemas/OrgEnvVar"
|
|
5804
|
+
}
|
|
5805
|
+
}
|
|
5806
|
+
}
|
|
5807
|
+
},
|
|
5808
|
+
"404": {
|
|
5809
|
+
"$ref": "#/components/responses/NotFound"
|
|
5810
|
+
}
|
|
5811
|
+
}
|
|
5812
|
+
}
|
|
5813
|
+
},
|
|
5814
|
+
"/v1/org/env-vars/{id}": {
|
|
5815
|
+
"delete": {
|
|
5816
|
+
"tags": [
|
|
5817
|
+
"Organization"
|
|
5818
|
+
],
|
|
5819
|
+
"summary": "Delete org shared environment variable",
|
|
5820
|
+
"operationId": "deleteOrgEnvVar",
|
|
5821
|
+
"parameters": [
|
|
5822
|
+
{
|
|
5823
|
+
"name": "id",
|
|
5824
|
+
"in": "path",
|
|
5825
|
+
"required": true,
|
|
5826
|
+
"schema": {
|
|
5827
|
+
"type": "string",
|
|
5828
|
+
"format": "uuid"
|
|
5829
|
+
}
|
|
5830
|
+
}
|
|
5831
|
+
],
|
|
5832
|
+
"responses": {
|
|
5833
|
+
"204": {
|
|
5834
|
+
"description": "Deleted"
|
|
5835
|
+
}
|
|
5836
|
+
}
|
|
5837
|
+
}
|
|
5838
|
+
},
|
|
5839
|
+
"/v1/org/env-vars/{id}/link": {
|
|
5840
|
+
"post": {
|
|
5841
|
+
"tags": [
|
|
5842
|
+
"Organization"
|
|
5843
|
+
],
|
|
5844
|
+
"summary": "Link org shared env var to a vault",
|
|
5845
|
+
"operationId": "linkOrgEnvVar",
|
|
5846
|
+
"parameters": [
|
|
5847
|
+
{
|
|
5848
|
+
"name": "id",
|
|
5849
|
+
"in": "path",
|
|
5850
|
+
"required": true,
|
|
5851
|
+
"schema": {
|
|
5852
|
+
"type": "string",
|
|
5853
|
+
"format": "uuid"
|
|
5854
|
+
}
|
|
5855
|
+
}
|
|
5856
|
+
],
|
|
5857
|
+
"requestBody": {
|
|
5858
|
+
"required": true,
|
|
5859
|
+
"content": {
|
|
5860
|
+
"application/json": {
|
|
5861
|
+
"schema": {
|
|
5862
|
+
"type": "object",
|
|
5863
|
+
"required": [
|
|
5864
|
+
"vault_id"
|
|
5865
|
+
],
|
|
5866
|
+
"properties": {
|
|
5867
|
+
"vault_id": {
|
|
5868
|
+
"type": "string",
|
|
5869
|
+
"format": "uuid"
|
|
5870
|
+
}
|
|
5871
|
+
}
|
|
5872
|
+
}
|
|
5873
|
+
}
|
|
5874
|
+
}
|
|
5875
|
+
},
|
|
5876
|
+
"responses": {
|
|
5877
|
+
"201": {
|
|
5878
|
+
"description": "Linked"
|
|
5879
|
+
}
|
|
5880
|
+
}
|
|
5881
|
+
}
|
|
5882
|
+
},
|
|
5883
|
+
"/v1/org/env-vars/{id}/links/{vault_id}": {
|
|
5884
|
+
"delete": {
|
|
5885
|
+
"tags": [
|
|
5886
|
+
"Organization"
|
|
5887
|
+
],
|
|
5888
|
+
"summary": "Unlink org shared env var from a vault",
|
|
5889
|
+
"operationId": "unlinkOrgEnvVar",
|
|
5890
|
+
"parameters": [
|
|
5891
|
+
{
|
|
5892
|
+
"name": "id",
|
|
5893
|
+
"in": "path",
|
|
5894
|
+
"required": true,
|
|
5895
|
+
"schema": {
|
|
5896
|
+
"type": "string",
|
|
5897
|
+
"format": "uuid"
|
|
5898
|
+
}
|
|
5899
|
+
},
|
|
5900
|
+
{
|
|
5901
|
+
"name": "vault_id",
|
|
5902
|
+
"in": "path",
|
|
5903
|
+
"required": true,
|
|
5904
|
+
"schema": {
|
|
5905
|
+
"type": "string",
|
|
5906
|
+
"format": "uuid"
|
|
5907
|
+
}
|
|
5908
|
+
}
|
|
5909
|
+
],
|
|
5910
|
+
"responses": {
|
|
5911
|
+
"204": {
|
|
5912
|
+
"description": "Unlinked"
|
|
5913
|
+
}
|
|
5914
|
+
}
|
|
5915
|
+
}
|
|
5916
|
+
},
|
|
5359
5917
|
"/v1/billing/usage": {
|
|
5360
5918
|
"get": {
|
|
5361
5919
|
"tags": [
|
|
@@ -17231,6 +17789,20 @@
|
|
|
17231
17789
|
"format": "date-time",
|
|
17232
17790
|
"nullable": true,
|
|
17233
17791
|
"description": "Optional expiration time for the agent's API key."
|
|
17792
|
+
},
|
|
17793
|
+
"environment": {
|
|
17794
|
+
"type": "string",
|
|
17795
|
+
"description": "Named environment for this agent (production, preview, development, or custom)."
|
|
17796
|
+
},
|
|
17797
|
+
"environment_locked": {
|
|
17798
|
+
"type": "boolean",
|
|
17799
|
+
"default": false,
|
|
17800
|
+
"description": "When true, the environment tag cannot be changed after creation."
|
|
17801
|
+
},
|
|
17802
|
+
"env_auto_resolve": {
|
|
17803
|
+
"type": "boolean",
|
|
17804
|
+
"default": false,
|
|
17805
|
+
"description": "When true, env var resolve endpoints auto-fill environment from this agent's tag."
|
|
17234
17806
|
}
|
|
17235
17807
|
}
|
|
17236
17808
|
},
|
|
@@ -17418,6 +17990,24 @@
|
|
|
17418
17990
|
"format": "date-time",
|
|
17419
17991
|
"nullable": true,
|
|
17420
17992
|
"description": "Optional expiration time for the agent's API key. Set to null to clear."
|
|
17993
|
+
},
|
|
17994
|
+
"environment": {
|
|
17995
|
+
"type": "string",
|
|
17996
|
+
"nullable": true,
|
|
17997
|
+
"description": "Named environment for this agent (production, preview, development, or custom)."
|
|
17998
|
+
},
|
|
17999
|
+
"environment_locked": {
|
|
18000
|
+
"type": "boolean",
|
|
18001
|
+
"description": "When true, the environment tag cannot be changed after creation."
|
|
18002
|
+
},
|
|
18003
|
+
"env_auto_resolve": {
|
|
18004
|
+
"type": "boolean",
|
|
18005
|
+
"description": "When true, env var resolve endpoints auto-fill environment from this agent's tag."
|
|
18006
|
+
},
|
|
18007
|
+
"per_environment_guardrails": {
|
|
18008
|
+
"type": "object",
|
|
18009
|
+
"additionalProperties": true,
|
|
18010
|
+
"description": "Per-environment guardrail overrides keyed by environment slug."
|
|
17421
18011
|
}
|
|
17422
18012
|
}
|
|
17423
18013
|
},
|
|
@@ -17721,6 +18311,24 @@
|
|
|
17721
18311
|
"items": {
|
|
17722
18312
|
"$ref": "#/components/schemas/AgentSmartAccountResponse"
|
|
17723
18313
|
}
|
|
18314
|
+
},
|
|
18315
|
+
"environment": {
|
|
18316
|
+
"type": "string",
|
|
18317
|
+
"nullable": true,
|
|
18318
|
+
"description": "Named environment this agent belongs to (production, preview, development, or custom)."
|
|
18319
|
+
},
|
|
18320
|
+
"environment_locked": {
|
|
18321
|
+
"type": "boolean",
|
|
18322
|
+
"description": "When true, the environment tag is locked and cannot be changed."
|
|
18323
|
+
},
|
|
18324
|
+
"env_auto_resolve": {
|
|
18325
|
+
"type": "boolean",
|
|
18326
|
+
"description": "When true, env var resolve endpoints auto-fill environment from this agent's tag."
|
|
18327
|
+
},
|
|
18328
|
+
"per_environment_guardrails": {
|
|
18329
|
+
"type": "object",
|
|
18330
|
+
"additionalProperties": true,
|
|
18331
|
+
"description": "Per-environment guardrail overrides keyed by environment slug."
|
|
17724
18332
|
}
|
|
17725
18333
|
}
|
|
17726
18334
|
},
|
|
@@ -24228,6 +24836,10 @@
|
|
|
24228
24836
|
"image": {
|
|
24229
24837
|
"type": "string"
|
|
24230
24838
|
},
|
|
24839
|
+
"environment": {
|
|
24840
|
+
"type": "string",
|
|
24841
|
+
"description": "Vault environment to resolve env vars from (e.g. production, preview, development)"
|
|
24842
|
+
},
|
|
24231
24843
|
"env_public": {
|
|
24232
24844
|
"type": "object",
|
|
24233
24845
|
"additionalProperties": {
|
|
@@ -24283,6 +24895,10 @@
|
|
|
24283
24895
|
"image": {
|
|
24284
24896
|
"type": "string"
|
|
24285
24897
|
},
|
|
24898
|
+
"environment": {
|
|
24899
|
+
"type": "string",
|
|
24900
|
+
"description": "Vault environment to resolve env vars from"
|
|
24901
|
+
},
|
|
24286
24902
|
"env_public": {
|
|
24287
24903
|
"type": "object",
|
|
24288
24904
|
"additionalProperties": {
|
|
@@ -24369,6 +24985,11 @@
|
|
|
24369
24985
|
"type": "string",
|
|
24370
24986
|
"nullable": true
|
|
24371
24987
|
},
|
|
24988
|
+
"environment": {
|
|
24989
|
+
"type": "string",
|
|
24990
|
+
"nullable": true,
|
|
24991
|
+
"description": "Vault environment for env var resolution"
|
|
24992
|
+
},
|
|
24372
24993
|
"env_public": {
|
|
24373
24994
|
"type": "object",
|
|
24374
24995
|
"additionalProperties": {
|
|
@@ -26937,6 +27558,292 @@
|
|
|
26937
27558
|
"format": "date-time"
|
|
26938
27559
|
}
|
|
26939
27560
|
}
|
|
27561
|
+
},
|
|
27562
|
+
"EnvVar": {
|
|
27563
|
+
"type": "object",
|
|
27564
|
+
"properties": {
|
|
27565
|
+
"id": {
|
|
27566
|
+
"type": "string",
|
|
27567
|
+
"format": "uuid"
|
|
27568
|
+
},
|
|
27569
|
+
"key": {
|
|
27570
|
+
"type": "string"
|
|
27571
|
+
},
|
|
27572
|
+
"environments": {
|
|
27573
|
+
"type": "array",
|
|
27574
|
+
"items": {
|
|
27575
|
+
"type": "string"
|
|
27576
|
+
}
|
|
27577
|
+
},
|
|
27578
|
+
"git_branch": {
|
|
27579
|
+
"type": "string",
|
|
27580
|
+
"nullable": true
|
|
27581
|
+
},
|
|
27582
|
+
"sensitive": {
|
|
27583
|
+
"type": "boolean"
|
|
27584
|
+
},
|
|
27585
|
+
"comment": {
|
|
27586
|
+
"type": "string",
|
|
27587
|
+
"nullable": true
|
|
27588
|
+
},
|
|
27589
|
+
"value": {
|
|
27590
|
+
"type": "string",
|
|
27591
|
+
"nullable": true,
|
|
27592
|
+
"description": "Null for sensitive vars in list responses"
|
|
27593
|
+
},
|
|
27594
|
+
"version": {
|
|
27595
|
+
"type": "integer"
|
|
27596
|
+
},
|
|
27597
|
+
"created_by": {
|
|
27598
|
+
"type": "string",
|
|
27599
|
+
"nullable": true
|
|
27600
|
+
},
|
|
27601
|
+
"created_at": {
|
|
27602
|
+
"type": "string",
|
|
27603
|
+
"format": "date-time"
|
|
27604
|
+
},
|
|
27605
|
+
"updated_at": {
|
|
27606
|
+
"type": "string",
|
|
27607
|
+
"format": "date-time"
|
|
27608
|
+
}
|
|
27609
|
+
}
|
|
27610
|
+
},
|
|
27611
|
+
"CreateEnvVarRequest": {
|
|
27612
|
+
"type": "object",
|
|
27613
|
+
"required": [
|
|
27614
|
+
"key",
|
|
27615
|
+
"value"
|
|
27616
|
+
],
|
|
27617
|
+
"properties": {
|
|
27618
|
+
"key": {
|
|
27619
|
+
"type": "string",
|
|
27620
|
+
"description": "Uppercase alphanumeric + underscore, 1-256 chars"
|
|
27621
|
+
},
|
|
27622
|
+
"value": {
|
|
27623
|
+
"type": "string"
|
|
27624
|
+
},
|
|
27625
|
+
"environments": {
|
|
27626
|
+
"type": "array",
|
|
27627
|
+
"items": {
|
|
27628
|
+
"type": "string"
|
|
27629
|
+
},
|
|
27630
|
+
"default": [
|
|
27631
|
+
"production",
|
|
27632
|
+
"preview",
|
|
27633
|
+
"development"
|
|
27634
|
+
]
|
|
27635
|
+
},
|
|
27636
|
+
"git_branch": {
|
|
27637
|
+
"type": "string",
|
|
27638
|
+
"description": "Branch override (preview only)"
|
|
27639
|
+
},
|
|
27640
|
+
"sensitive": {
|
|
27641
|
+
"type": "boolean",
|
|
27642
|
+
"default": false
|
|
27643
|
+
},
|
|
27644
|
+
"comment": {
|
|
27645
|
+
"type": "string"
|
|
27646
|
+
}
|
|
27647
|
+
}
|
|
27648
|
+
},
|
|
27649
|
+
"UpdateEnvVarRequest": {
|
|
27650
|
+
"type": "object",
|
|
27651
|
+
"properties": {
|
|
27652
|
+
"value": {
|
|
27653
|
+
"type": "string"
|
|
27654
|
+
},
|
|
27655
|
+
"environments": {
|
|
27656
|
+
"type": "array",
|
|
27657
|
+
"items": {
|
|
27658
|
+
"type": "string"
|
|
27659
|
+
}
|
|
27660
|
+
},
|
|
27661
|
+
"sensitive": {
|
|
27662
|
+
"type": "boolean"
|
|
27663
|
+
},
|
|
27664
|
+
"comment": {
|
|
27665
|
+
"type": "string"
|
|
27666
|
+
}
|
|
27667
|
+
}
|
|
27668
|
+
},
|
|
27669
|
+
"ResolveEnvVarsResponse": {
|
|
27670
|
+
"type": "object",
|
|
27671
|
+
"properties": {
|
|
27672
|
+
"vars": {
|
|
27673
|
+
"type": "object",
|
|
27674
|
+
"additionalProperties": {
|
|
27675
|
+
"type": "string"
|
|
27676
|
+
}
|
|
27677
|
+
},
|
|
27678
|
+
"sources": {
|
|
27679
|
+
"type": "object",
|
|
27680
|
+
"additionalProperties": {
|
|
27681
|
+
"type": "string",
|
|
27682
|
+
"enum": [
|
|
27683
|
+
"shared",
|
|
27684
|
+
"vault",
|
|
27685
|
+
"branch_override"
|
|
27686
|
+
]
|
|
27687
|
+
}
|
|
27688
|
+
},
|
|
27689
|
+
"environment": {
|
|
27690
|
+
"type": "string"
|
|
27691
|
+
},
|
|
27692
|
+
"git_branch": {
|
|
27693
|
+
"type": "string",
|
|
27694
|
+
"nullable": true
|
|
27695
|
+
},
|
|
27696
|
+
"resolved_at": {
|
|
27697
|
+
"type": "string",
|
|
27698
|
+
"format": "date-time"
|
|
27699
|
+
}
|
|
27700
|
+
}
|
|
27701
|
+
},
|
|
27702
|
+
"VaultEnvironment": {
|
|
27703
|
+
"type": "object",
|
|
27704
|
+
"properties": {
|
|
27705
|
+
"id": {
|
|
27706
|
+
"type": "string",
|
|
27707
|
+
"format": "uuid"
|
|
27708
|
+
},
|
|
27709
|
+
"slug": {
|
|
27710
|
+
"type": "string"
|
|
27711
|
+
},
|
|
27712
|
+
"description": {
|
|
27713
|
+
"type": "string",
|
|
27714
|
+
"nullable": true
|
|
27715
|
+
},
|
|
27716
|
+
"is_builtin": {
|
|
27717
|
+
"type": "boolean"
|
|
27718
|
+
},
|
|
27719
|
+
"copied_from": {
|
|
27720
|
+
"type": "string",
|
|
27721
|
+
"nullable": true
|
|
27722
|
+
},
|
|
27723
|
+
"is_detached": {
|
|
27724
|
+
"type": "boolean"
|
|
27725
|
+
},
|
|
27726
|
+
"created_at": {
|
|
27727
|
+
"type": "string",
|
|
27728
|
+
"format": "date-time"
|
|
27729
|
+
}
|
|
27730
|
+
}
|
|
27731
|
+
},
|
|
27732
|
+
"CreateEnvironmentRequest": {
|
|
27733
|
+
"type": "object",
|
|
27734
|
+
"required": [
|
|
27735
|
+
"slug"
|
|
27736
|
+
],
|
|
27737
|
+
"properties": {
|
|
27738
|
+
"slug": {
|
|
27739
|
+
"type": "string",
|
|
27740
|
+
"description": "Lowercase alphanumeric + hyphens, 2-30 chars"
|
|
27741
|
+
},
|
|
27742
|
+
"description": {
|
|
27743
|
+
"type": "string"
|
|
27744
|
+
},
|
|
27745
|
+
"copy_from": {
|
|
27746
|
+
"type": "string",
|
|
27747
|
+
"description": "Copy env vars from this environment"
|
|
27748
|
+
}
|
|
27749
|
+
}
|
|
27750
|
+
},
|
|
27751
|
+
"OrgEnvVar": {
|
|
27752
|
+
"type": "object",
|
|
27753
|
+
"properties": {
|
|
27754
|
+
"id": {
|
|
27755
|
+
"type": "string",
|
|
27756
|
+
"format": "uuid"
|
|
27757
|
+
},
|
|
27758
|
+
"key": {
|
|
27759
|
+
"type": "string"
|
|
27760
|
+
},
|
|
27761
|
+
"environments": {
|
|
27762
|
+
"type": "array",
|
|
27763
|
+
"items": {
|
|
27764
|
+
"type": "string"
|
|
27765
|
+
}
|
|
27766
|
+
},
|
|
27767
|
+
"sensitive": {
|
|
27768
|
+
"type": "boolean"
|
|
27769
|
+
},
|
|
27770
|
+
"comment": {
|
|
27771
|
+
"type": "string",
|
|
27772
|
+
"nullable": true
|
|
27773
|
+
},
|
|
27774
|
+
"value": {
|
|
27775
|
+
"type": "string",
|
|
27776
|
+
"nullable": true
|
|
27777
|
+
},
|
|
27778
|
+
"version": {
|
|
27779
|
+
"type": "integer"
|
|
27780
|
+
},
|
|
27781
|
+
"linked_vaults": {
|
|
27782
|
+
"type": "array",
|
|
27783
|
+
"items": {
|
|
27784
|
+
"type": "string",
|
|
27785
|
+
"format": "uuid"
|
|
27786
|
+
}
|
|
27787
|
+
},
|
|
27788
|
+
"created_at": {
|
|
27789
|
+
"type": "string",
|
|
27790
|
+
"format": "date-time"
|
|
27791
|
+
},
|
|
27792
|
+
"updated_at": {
|
|
27793
|
+
"type": "string",
|
|
27794
|
+
"format": "date-time"
|
|
27795
|
+
}
|
|
27796
|
+
}
|
|
27797
|
+
},
|
|
27798
|
+
"CreateOrgEnvVarRequest": {
|
|
27799
|
+
"type": "object",
|
|
27800
|
+
"required": [
|
|
27801
|
+
"key",
|
|
27802
|
+
"value"
|
|
27803
|
+
],
|
|
27804
|
+
"properties": {
|
|
27805
|
+
"key": {
|
|
27806
|
+
"type": "string"
|
|
27807
|
+
},
|
|
27808
|
+
"value": {
|
|
27809
|
+
"type": "string"
|
|
27810
|
+
},
|
|
27811
|
+
"environments": {
|
|
27812
|
+
"type": "array",
|
|
27813
|
+
"items": {
|
|
27814
|
+
"type": "string"
|
|
27815
|
+
},
|
|
27816
|
+
"default": [
|
|
27817
|
+
"production",
|
|
27818
|
+
"preview",
|
|
27819
|
+
"development"
|
|
27820
|
+
]
|
|
27821
|
+
},
|
|
27822
|
+
"sensitive": {
|
|
27823
|
+
"type": "boolean",
|
|
27824
|
+
"default": false
|
|
27825
|
+
},
|
|
27826
|
+
"comment": {
|
|
27827
|
+
"type": "string"
|
|
27828
|
+
}
|
|
27829
|
+
}
|
|
27830
|
+
},
|
|
27831
|
+
"UpdateOrgEnvVarRequest": {
|
|
27832
|
+
"type": "object",
|
|
27833
|
+
"properties": {
|
|
27834
|
+
"value": {
|
|
27835
|
+
"type": "string"
|
|
27836
|
+
},
|
|
27837
|
+
"environments": {
|
|
27838
|
+
"type": "array",
|
|
27839
|
+
"items": {
|
|
27840
|
+
"type": "string"
|
|
27841
|
+
}
|
|
27842
|
+
},
|
|
27843
|
+
"comment": {
|
|
27844
|
+
"type": "string"
|
|
27845
|
+
}
|
|
27846
|
+
}
|
|
26940
27847
|
}
|
|
26941
27848
|
}
|
|
26942
27849
|
}
|