@1claw/openapi-spec 0.50.0 → 0.51.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 +862 -5
- package/openapi.yaml +553 -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.51.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": [
|
|
@@ -5336,11 +5687,218 @@
|
|
|
5336
5687
|
"tags": [
|
|
5337
5688
|
"Organization"
|
|
5338
5689
|
],
|
|
5339
|
-
"summary": "Remove a member from the organization",
|
|
5340
|
-
"operationId": "removeMember",
|
|
5690
|
+
"summary": "Remove a member from the organization",
|
|
5691
|
+
"operationId": "removeMember",
|
|
5692
|
+
"parameters": [
|
|
5693
|
+
{
|
|
5694
|
+
"name": "user_id",
|
|
5695
|
+
"in": "path",
|
|
5696
|
+
"required": true,
|
|
5697
|
+
"schema": {
|
|
5698
|
+
"type": "string",
|
|
5699
|
+
"format": "uuid"
|
|
5700
|
+
}
|
|
5701
|
+
}
|
|
5702
|
+
],
|
|
5703
|
+
"responses": {
|
|
5704
|
+
"204": {
|
|
5705
|
+
"description": "Member removed"
|
|
5706
|
+
}
|
|
5707
|
+
}
|
|
5708
|
+
}
|
|
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",
|
|
5341
5890
|
"parameters": [
|
|
5342
5891
|
{
|
|
5343
|
-
"name": "
|
|
5892
|
+
"name": "id",
|
|
5893
|
+
"in": "path",
|
|
5894
|
+
"required": true,
|
|
5895
|
+
"schema": {
|
|
5896
|
+
"type": "string",
|
|
5897
|
+
"format": "uuid"
|
|
5898
|
+
}
|
|
5899
|
+
},
|
|
5900
|
+
{
|
|
5901
|
+
"name": "vault_id",
|
|
5344
5902
|
"in": "path",
|
|
5345
5903
|
"required": true,
|
|
5346
5904
|
"schema": {
|
|
@@ -5351,7 +5909,7 @@
|
|
|
5351
5909
|
],
|
|
5352
5910
|
"responses": {
|
|
5353
5911
|
"204": {
|
|
5354
|
-
"description": "
|
|
5912
|
+
"description": "Unlinked"
|
|
5355
5913
|
}
|
|
5356
5914
|
}
|
|
5357
5915
|
}
|
|
@@ -24228,6 +24786,10 @@
|
|
|
24228
24786
|
"image": {
|
|
24229
24787
|
"type": "string"
|
|
24230
24788
|
},
|
|
24789
|
+
"environment": {
|
|
24790
|
+
"type": "string",
|
|
24791
|
+
"description": "Vault environment to resolve env vars from (e.g. production, preview, development)"
|
|
24792
|
+
},
|
|
24231
24793
|
"env_public": {
|
|
24232
24794
|
"type": "object",
|
|
24233
24795
|
"additionalProperties": {
|
|
@@ -24283,6 +24845,10 @@
|
|
|
24283
24845
|
"image": {
|
|
24284
24846
|
"type": "string"
|
|
24285
24847
|
},
|
|
24848
|
+
"environment": {
|
|
24849
|
+
"type": "string",
|
|
24850
|
+
"description": "Vault environment to resolve env vars from"
|
|
24851
|
+
},
|
|
24286
24852
|
"env_public": {
|
|
24287
24853
|
"type": "object",
|
|
24288
24854
|
"additionalProperties": {
|
|
@@ -24369,6 +24935,11 @@
|
|
|
24369
24935
|
"type": "string",
|
|
24370
24936
|
"nullable": true
|
|
24371
24937
|
},
|
|
24938
|
+
"environment": {
|
|
24939
|
+
"type": "string",
|
|
24940
|
+
"nullable": true,
|
|
24941
|
+
"description": "Vault environment for env var resolution"
|
|
24942
|
+
},
|
|
24372
24943
|
"env_public": {
|
|
24373
24944
|
"type": "object",
|
|
24374
24945
|
"additionalProperties": {
|
|
@@ -26937,6 +27508,292 @@
|
|
|
26937
27508
|
"format": "date-time"
|
|
26938
27509
|
}
|
|
26939
27510
|
}
|
|
27511
|
+
},
|
|
27512
|
+
"EnvVar": {
|
|
27513
|
+
"type": "object",
|
|
27514
|
+
"properties": {
|
|
27515
|
+
"id": {
|
|
27516
|
+
"type": "string",
|
|
27517
|
+
"format": "uuid"
|
|
27518
|
+
},
|
|
27519
|
+
"key": {
|
|
27520
|
+
"type": "string"
|
|
27521
|
+
},
|
|
27522
|
+
"environments": {
|
|
27523
|
+
"type": "array",
|
|
27524
|
+
"items": {
|
|
27525
|
+
"type": "string"
|
|
27526
|
+
}
|
|
27527
|
+
},
|
|
27528
|
+
"git_branch": {
|
|
27529
|
+
"type": "string",
|
|
27530
|
+
"nullable": true
|
|
27531
|
+
},
|
|
27532
|
+
"sensitive": {
|
|
27533
|
+
"type": "boolean"
|
|
27534
|
+
},
|
|
27535
|
+
"comment": {
|
|
27536
|
+
"type": "string",
|
|
27537
|
+
"nullable": true
|
|
27538
|
+
},
|
|
27539
|
+
"value": {
|
|
27540
|
+
"type": "string",
|
|
27541
|
+
"nullable": true,
|
|
27542
|
+
"description": "Null for sensitive vars in list responses"
|
|
27543
|
+
},
|
|
27544
|
+
"version": {
|
|
27545
|
+
"type": "integer"
|
|
27546
|
+
},
|
|
27547
|
+
"created_by": {
|
|
27548
|
+
"type": "string",
|
|
27549
|
+
"nullable": true
|
|
27550
|
+
},
|
|
27551
|
+
"created_at": {
|
|
27552
|
+
"type": "string",
|
|
27553
|
+
"format": "date-time"
|
|
27554
|
+
},
|
|
27555
|
+
"updated_at": {
|
|
27556
|
+
"type": "string",
|
|
27557
|
+
"format": "date-time"
|
|
27558
|
+
}
|
|
27559
|
+
}
|
|
27560
|
+
},
|
|
27561
|
+
"CreateEnvVarRequest": {
|
|
27562
|
+
"type": "object",
|
|
27563
|
+
"required": [
|
|
27564
|
+
"key",
|
|
27565
|
+
"value"
|
|
27566
|
+
],
|
|
27567
|
+
"properties": {
|
|
27568
|
+
"key": {
|
|
27569
|
+
"type": "string",
|
|
27570
|
+
"description": "Uppercase alphanumeric + underscore, 1-256 chars"
|
|
27571
|
+
},
|
|
27572
|
+
"value": {
|
|
27573
|
+
"type": "string"
|
|
27574
|
+
},
|
|
27575
|
+
"environments": {
|
|
27576
|
+
"type": "array",
|
|
27577
|
+
"items": {
|
|
27578
|
+
"type": "string"
|
|
27579
|
+
},
|
|
27580
|
+
"default": [
|
|
27581
|
+
"production",
|
|
27582
|
+
"preview",
|
|
27583
|
+
"development"
|
|
27584
|
+
]
|
|
27585
|
+
},
|
|
27586
|
+
"git_branch": {
|
|
27587
|
+
"type": "string",
|
|
27588
|
+
"description": "Branch override (preview only)"
|
|
27589
|
+
},
|
|
27590
|
+
"sensitive": {
|
|
27591
|
+
"type": "boolean",
|
|
27592
|
+
"default": false
|
|
27593
|
+
},
|
|
27594
|
+
"comment": {
|
|
27595
|
+
"type": "string"
|
|
27596
|
+
}
|
|
27597
|
+
}
|
|
27598
|
+
},
|
|
27599
|
+
"UpdateEnvVarRequest": {
|
|
27600
|
+
"type": "object",
|
|
27601
|
+
"properties": {
|
|
27602
|
+
"value": {
|
|
27603
|
+
"type": "string"
|
|
27604
|
+
},
|
|
27605
|
+
"environments": {
|
|
27606
|
+
"type": "array",
|
|
27607
|
+
"items": {
|
|
27608
|
+
"type": "string"
|
|
27609
|
+
}
|
|
27610
|
+
},
|
|
27611
|
+
"sensitive": {
|
|
27612
|
+
"type": "boolean"
|
|
27613
|
+
},
|
|
27614
|
+
"comment": {
|
|
27615
|
+
"type": "string"
|
|
27616
|
+
}
|
|
27617
|
+
}
|
|
27618
|
+
},
|
|
27619
|
+
"ResolveEnvVarsResponse": {
|
|
27620
|
+
"type": "object",
|
|
27621
|
+
"properties": {
|
|
27622
|
+
"vars": {
|
|
27623
|
+
"type": "object",
|
|
27624
|
+
"additionalProperties": {
|
|
27625
|
+
"type": "string"
|
|
27626
|
+
}
|
|
27627
|
+
},
|
|
27628
|
+
"sources": {
|
|
27629
|
+
"type": "object",
|
|
27630
|
+
"additionalProperties": {
|
|
27631
|
+
"type": "string",
|
|
27632
|
+
"enum": [
|
|
27633
|
+
"shared",
|
|
27634
|
+
"vault",
|
|
27635
|
+
"branch_override"
|
|
27636
|
+
]
|
|
27637
|
+
}
|
|
27638
|
+
},
|
|
27639
|
+
"environment": {
|
|
27640
|
+
"type": "string"
|
|
27641
|
+
},
|
|
27642
|
+
"git_branch": {
|
|
27643
|
+
"type": "string",
|
|
27644
|
+
"nullable": true
|
|
27645
|
+
},
|
|
27646
|
+
"resolved_at": {
|
|
27647
|
+
"type": "string",
|
|
27648
|
+
"format": "date-time"
|
|
27649
|
+
}
|
|
27650
|
+
}
|
|
27651
|
+
},
|
|
27652
|
+
"VaultEnvironment": {
|
|
27653
|
+
"type": "object",
|
|
27654
|
+
"properties": {
|
|
27655
|
+
"id": {
|
|
27656
|
+
"type": "string",
|
|
27657
|
+
"format": "uuid"
|
|
27658
|
+
},
|
|
27659
|
+
"slug": {
|
|
27660
|
+
"type": "string"
|
|
27661
|
+
},
|
|
27662
|
+
"description": {
|
|
27663
|
+
"type": "string",
|
|
27664
|
+
"nullable": true
|
|
27665
|
+
},
|
|
27666
|
+
"is_builtin": {
|
|
27667
|
+
"type": "boolean"
|
|
27668
|
+
},
|
|
27669
|
+
"copied_from": {
|
|
27670
|
+
"type": "string",
|
|
27671
|
+
"nullable": true
|
|
27672
|
+
},
|
|
27673
|
+
"is_detached": {
|
|
27674
|
+
"type": "boolean"
|
|
27675
|
+
},
|
|
27676
|
+
"created_at": {
|
|
27677
|
+
"type": "string",
|
|
27678
|
+
"format": "date-time"
|
|
27679
|
+
}
|
|
27680
|
+
}
|
|
27681
|
+
},
|
|
27682
|
+
"CreateEnvironmentRequest": {
|
|
27683
|
+
"type": "object",
|
|
27684
|
+
"required": [
|
|
27685
|
+
"slug"
|
|
27686
|
+
],
|
|
27687
|
+
"properties": {
|
|
27688
|
+
"slug": {
|
|
27689
|
+
"type": "string",
|
|
27690
|
+
"description": "Lowercase alphanumeric + hyphens, 2-30 chars"
|
|
27691
|
+
},
|
|
27692
|
+
"description": {
|
|
27693
|
+
"type": "string"
|
|
27694
|
+
},
|
|
27695
|
+
"copy_from": {
|
|
27696
|
+
"type": "string",
|
|
27697
|
+
"description": "Copy env vars from this environment"
|
|
27698
|
+
}
|
|
27699
|
+
}
|
|
27700
|
+
},
|
|
27701
|
+
"OrgEnvVar": {
|
|
27702
|
+
"type": "object",
|
|
27703
|
+
"properties": {
|
|
27704
|
+
"id": {
|
|
27705
|
+
"type": "string",
|
|
27706
|
+
"format": "uuid"
|
|
27707
|
+
},
|
|
27708
|
+
"key": {
|
|
27709
|
+
"type": "string"
|
|
27710
|
+
},
|
|
27711
|
+
"environments": {
|
|
27712
|
+
"type": "array",
|
|
27713
|
+
"items": {
|
|
27714
|
+
"type": "string"
|
|
27715
|
+
}
|
|
27716
|
+
},
|
|
27717
|
+
"sensitive": {
|
|
27718
|
+
"type": "boolean"
|
|
27719
|
+
},
|
|
27720
|
+
"comment": {
|
|
27721
|
+
"type": "string",
|
|
27722
|
+
"nullable": true
|
|
27723
|
+
},
|
|
27724
|
+
"value": {
|
|
27725
|
+
"type": "string",
|
|
27726
|
+
"nullable": true
|
|
27727
|
+
},
|
|
27728
|
+
"version": {
|
|
27729
|
+
"type": "integer"
|
|
27730
|
+
},
|
|
27731
|
+
"linked_vaults": {
|
|
27732
|
+
"type": "array",
|
|
27733
|
+
"items": {
|
|
27734
|
+
"type": "string",
|
|
27735
|
+
"format": "uuid"
|
|
27736
|
+
}
|
|
27737
|
+
},
|
|
27738
|
+
"created_at": {
|
|
27739
|
+
"type": "string",
|
|
27740
|
+
"format": "date-time"
|
|
27741
|
+
},
|
|
27742
|
+
"updated_at": {
|
|
27743
|
+
"type": "string",
|
|
27744
|
+
"format": "date-time"
|
|
27745
|
+
}
|
|
27746
|
+
}
|
|
27747
|
+
},
|
|
27748
|
+
"CreateOrgEnvVarRequest": {
|
|
27749
|
+
"type": "object",
|
|
27750
|
+
"required": [
|
|
27751
|
+
"key",
|
|
27752
|
+
"value"
|
|
27753
|
+
],
|
|
27754
|
+
"properties": {
|
|
27755
|
+
"key": {
|
|
27756
|
+
"type": "string"
|
|
27757
|
+
},
|
|
27758
|
+
"value": {
|
|
27759
|
+
"type": "string"
|
|
27760
|
+
},
|
|
27761
|
+
"environments": {
|
|
27762
|
+
"type": "array",
|
|
27763
|
+
"items": {
|
|
27764
|
+
"type": "string"
|
|
27765
|
+
},
|
|
27766
|
+
"default": [
|
|
27767
|
+
"production",
|
|
27768
|
+
"preview",
|
|
27769
|
+
"development"
|
|
27770
|
+
]
|
|
27771
|
+
},
|
|
27772
|
+
"sensitive": {
|
|
27773
|
+
"type": "boolean",
|
|
27774
|
+
"default": false
|
|
27775
|
+
},
|
|
27776
|
+
"comment": {
|
|
27777
|
+
"type": "string"
|
|
27778
|
+
}
|
|
27779
|
+
}
|
|
27780
|
+
},
|
|
27781
|
+
"UpdateOrgEnvVarRequest": {
|
|
27782
|
+
"type": "object",
|
|
27783
|
+
"properties": {
|
|
27784
|
+
"value": {
|
|
27785
|
+
"type": "string"
|
|
27786
|
+
},
|
|
27787
|
+
"environments": {
|
|
27788
|
+
"type": "array",
|
|
27789
|
+
"items": {
|
|
27790
|
+
"type": "string"
|
|
27791
|
+
}
|
|
27792
|
+
},
|
|
27793
|
+
"comment": {
|
|
27794
|
+
"type": "string"
|
|
27795
|
+
}
|
|
27796
|
+
}
|
|
26940
27797
|
}
|
|
26941
27798
|
}
|
|
26942
27799
|
}
|