@netlify/open-api 2.9.0 → 2.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/swagger.json +1137 -1
  2. package/package.json +2 -2
package/dist/swagger.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "swagger": "2.0",
3
3
  "info": {
4
- "version": "2.9.0",
4
+ "version": "2.12.0",
5
5
  "title": "Netlify's API documentation",
6
6
  "description": "Netlify is a hosting service for the programmable web. It understands your documents and provides an API to handle atomic deploys of websites, manage form submissions, inject JavaScript snippets, and much more. This is a REST-style API that uses JSON for serialization and OAuth 2 for authentication.\n\nThis document is an OpenAPI reference for the Netlify API that you can explore. For more detailed instructions for common uses, please visit the [online documentation](https://www.netlify.com/docs/api/). Visit our Community forum to join the conversation about [understanding and using Netlify’s API](https://community.netlify.com/t/common-issue-understanding-and-using-netlifys-api/160).\n\nAdditionally, we have two API clients for your convenience:\n- [Go Client](https://github.com/netlify/open-api#go-client)\n- [JS Client](https://github.com/netlify/js-client)",
7
7
  "termsOfService": "https://www.netlify.com/legal/terms-of-use/",
@@ -2534,6 +2534,988 @@
2534
2534
  }
2535
2535
  }
2536
2536
  },
2537
+ "/accounts/{account_id}/env": {
2538
+ "get": {
2539
+ "tags": [
2540
+ "environmentVariables"
2541
+ ],
2542
+ "operationId": "getEnvVars",
2543
+ "parameters": [
2544
+ {
2545
+ "name": "account_id",
2546
+ "description": "Scope response to account_id",
2547
+ "type": "string",
2548
+ "required": true,
2549
+ "in": "path"
2550
+ },
2551
+ {
2552
+ "name": "context_name",
2553
+ "description": "Filter by deploy context",
2554
+ "type": "string",
2555
+ "enum": [
2556
+ "all",
2557
+ "dev",
2558
+ "branch-deploy",
2559
+ "deploy-preview",
2560
+ "production"
2561
+ ],
2562
+ "required": false,
2563
+ "in": "query"
2564
+ },
2565
+ {
2566
+ "name": "scope",
2567
+ "description": "Filter by scope",
2568
+ "type": "string",
2569
+ "enum": [
2570
+ "builds",
2571
+ "functions",
2572
+ "runtime",
2573
+ "post_processing"
2574
+ ],
2575
+ "required": false,
2576
+ "in": "query"
2577
+ },
2578
+ {
2579
+ "name": "site_id",
2580
+ "description": "If specified, only return environment variables set on this site",
2581
+ "type": "string",
2582
+ "required": false,
2583
+ "in": "query"
2584
+ }
2585
+ ],
2586
+ "responses": {
2587
+ "200": {
2588
+ "description": "OK",
2589
+ "schema": {
2590
+ "type": "array",
2591
+ "items": {
2592
+ "type": "object",
2593
+ "properties": {
2594
+ "key": {
2595
+ "type": "string",
2596
+ "description": "The environment variable key, like ALGOLIA_ID (case-sensitive)",
2597
+ "x-faker": "commerce.productName"
2598
+ },
2599
+ "scopes": {
2600
+ "type": "array",
2601
+ "items": {
2602
+ "type": "string",
2603
+ "enum": [
2604
+ "builds",
2605
+ "functions",
2606
+ "runtime",
2607
+ "post_processing"
2608
+ ]
2609
+ },
2610
+ "description": "The scopes that this environment variable is set to"
2611
+ },
2612
+ "values": {
2613
+ "type": "array",
2614
+ "items": {
2615
+ "type": "object",
2616
+ "properties": {
2617
+ "id": {
2618
+ "type": "string",
2619
+ "description": "The environment variable value's universally unique ID",
2620
+ "x-faker": "datatype.uuid"
2621
+ },
2622
+ "value": {
2623
+ "type": "string",
2624
+ "description": "The environment variable's unencrypted value",
2625
+ "x-faker": "internet.password"
2626
+ },
2627
+ "context": {
2628
+ "type": "string",
2629
+ "enum": [
2630
+ "all",
2631
+ "dev",
2632
+ "branch-deploy",
2633
+ "deploy-preview",
2634
+ "production"
2635
+ ],
2636
+ "description": "The deploy context in which this value will be used. `dev` refers to local development when running `netlify dev`."
2637
+ }
2638
+ },
2639
+ "description": "Environment variable value model definition"
2640
+ },
2641
+ "description": "An array of Value objects containing values and metadata",
2642
+ "x-faker": "internet.password"
2643
+ },
2644
+ "updated_at": {
2645
+ "type": "string",
2646
+ "format": "date-time",
2647
+ "description": "The timestamp of when the value was last updated",
2648
+ "x-faker": "date.past"
2649
+ },
2650
+ "updated_by": {
2651
+ "type": "object",
2652
+ "properties": {
2653
+ "id": {
2654
+ "type": "string",
2655
+ "description": "The user's unique identifier",
2656
+ "x-faker": "datatype.number"
2657
+ },
2658
+ "full_name": {
2659
+ "type": "string",
2660
+ "description": "The user's full name (first and last)",
2661
+ "x-faker": "name.findName"
2662
+ },
2663
+ "email": {
2664
+ "type": "string",
2665
+ "description": "The user's email address",
2666
+ "x-faker": "internet.email"
2667
+ },
2668
+ "avatar_url": {
2669
+ "type": "string",
2670
+ "description": "A URL pointing to the user's avatar",
2671
+ "x-faker": "internet.avatar"
2672
+ }
2673
+ }
2674
+ }
2675
+ },
2676
+ "description": "Environment variable model definition"
2677
+ }
2678
+ }
2679
+ },
2680
+ "default": {
2681
+ "description": "error",
2682
+ "schema": {
2683
+ "type": "object",
2684
+ "required": [
2685
+ "message"
2686
+ ],
2687
+ "properties": {
2688
+ "code": {
2689
+ "type": "integer",
2690
+ "format": "int64"
2691
+ },
2692
+ "message": {
2693
+ "type": "string",
2694
+ "x-nullable": false
2695
+ }
2696
+ }
2697
+ }
2698
+ }
2699
+ },
2700
+ "description": "[Beta] Returns all environment variables for an account or site. An account corresponds to a team in the Netlify UI. To use this endpoint, opt in to the beta environment variable experience using the Netlify UI."
2701
+ },
2702
+ "post": {
2703
+ "tags": [
2704
+ "environmentVariables"
2705
+ ],
2706
+ "operationId": "createEnvVars",
2707
+ "description": "[Beta] Creates new environment variables. Granular scopes are available on Pro plans and above. To use this endpoint, opt in to the beta environment variable experience using the Netlify UI.",
2708
+ "parameters": [
2709
+ {
2710
+ "in": "body",
2711
+ "name": "env_vars",
2712
+ "schema": {
2713
+ "type": "array",
2714
+ "items": {
2715
+ "type": "object",
2716
+ "properties": {
2717
+ "key": {
2718
+ "type": "string",
2719
+ "description": "The existing or new name of the key, if you wish to rename it (case-sensitive)"
2720
+ },
2721
+ "scopes": {
2722
+ "description": "The scopes that this environment variable is set to (Pro plans and above)",
2723
+ "type": "array",
2724
+ "items": {
2725
+ "type": "string",
2726
+ "enum": [
2727
+ "builds",
2728
+ "functions",
2729
+ "runtime",
2730
+ "post_processing"
2731
+ ]
2732
+ }
2733
+ },
2734
+ "values": {
2735
+ "type": "array",
2736
+ "items": {
2737
+ "type": "object",
2738
+ "properties": {
2739
+ "id": {
2740
+ "type": "string",
2741
+ "description": "The environment variable value's universally unique ID",
2742
+ "x-faker": "datatype.uuid"
2743
+ },
2744
+ "value": {
2745
+ "type": "string",
2746
+ "description": "The environment variable's unencrypted value",
2747
+ "x-faker": "internet.password"
2748
+ },
2749
+ "context": {
2750
+ "type": "string",
2751
+ "enum": [
2752
+ "all",
2753
+ "dev",
2754
+ "branch-deploy",
2755
+ "deploy-preview",
2756
+ "production"
2757
+ ],
2758
+ "description": "The deploy context in which this value will be used. `dev` refers to local development when running `netlify dev`."
2759
+ }
2760
+ },
2761
+ "description": "Environment variable value model definition"
2762
+ }
2763
+ }
2764
+ }
2765
+ }
2766
+ }
2767
+ },
2768
+ {
2769
+ "name": "account_id",
2770
+ "description": "Scope response to account_id",
2771
+ "type": "string",
2772
+ "required": true,
2773
+ "in": "path"
2774
+ },
2775
+ {
2776
+ "name": "site_id",
2777
+ "description": "If provided, create an environment variable on the site level, not the account level",
2778
+ "type": "string",
2779
+ "required": false,
2780
+ "in": "query"
2781
+ }
2782
+ ],
2783
+ "responses": {
2784
+ "201": {
2785
+ "description": "OK",
2786
+ "schema": {
2787
+ "type": "array",
2788
+ "items": {
2789
+ "type": "object",
2790
+ "properties": {
2791
+ "key": {
2792
+ "type": "string",
2793
+ "description": "The environment variable key, like ALGOLIA_ID (case-sensitive)",
2794
+ "x-faker": "commerce.productName"
2795
+ },
2796
+ "scopes": {
2797
+ "type": "array",
2798
+ "items": {
2799
+ "type": "string",
2800
+ "enum": [
2801
+ "builds",
2802
+ "functions",
2803
+ "runtime",
2804
+ "post_processing"
2805
+ ]
2806
+ },
2807
+ "description": "The scopes that this environment variable is set to"
2808
+ },
2809
+ "values": {
2810
+ "type": "array",
2811
+ "items": {
2812
+ "type": "object",
2813
+ "properties": {
2814
+ "id": {
2815
+ "type": "string",
2816
+ "description": "The environment variable value's universally unique ID",
2817
+ "x-faker": "datatype.uuid"
2818
+ },
2819
+ "value": {
2820
+ "type": "string",
2821
+ "description": "The environment variable's unencrypted value",
2822
+ "x-faker": "internet.password"
2823
+ },
2824
+ "context": {
2825
+ "type": "string",
2826
+ "enum": [
2827
+ "all",
2828
+ "dev",
2829
+ "branch-deploy",
2830
+ "deploy-preview",
2831
+ "production"
2832
+ ],
2833
+ "description": "The deploy context in which this value will be used. `dev` refers to local development when running `netlify dev`."
2834
+ }
2835
+ },
2836
+ "description": "Environment variable value model definition"
2837
+ },
2838
+ "description": "An array of Value objects containing values and metadata",
2839
+ "x-faker": "internet.password"
2840
+ },
2841
+ "updated_at": {
2842
+ "type": "string",
2843
+ "format": "date-time",
2844
+ "description": "The timestamp of when the value was last updated",
2845
+ "x-faker": "date.past"
2846
+ },
2847
+ "updated_by": {
2848
+ "type": "object",
2849
+ "properties": {
2850
+ "id": {
2851
+ "type": "string",
2852
+ "description": "The user's unique identifier",
2853
+ "x-faker": "datatype.number"
2854
+ },
2855
+ "full_name": {
2856
+ "type": "string",
2857
+ "description": "The user's full name (first and last)",
2858
+ "x-faker": "name.findName"
2859
+ },
2860
+ "email": {
2861
+ "type": "string",
2862
+ "description": "The user's email address",
2863
+ "x-faker": "internet.email"
2864
+ },
2865
+ "avatar_url": {
2866
+ "type": "string",
2867
+ "description": "A URL pointing to the user's avatar",
2868
+ "x-faker": "internet.avatar"
2869
+ }
2870
+ }
2871
+ }
2872
+ },
2873
+ "description": "Environment variable model definition"
2874
+ }
2875
+ }
2876
+ },
2877
+ "default": {
2878
+ "description": "error",
2879
+ "schema": {
2880
+ "type": "object",
2881
+ "required": [
2882
+ "message"
2883
+ ],
2884
+ "properties": {
2885
+ "code": {
2886
+ "type": "integer",
2887
+ "format": "int64"
2888
+ },
2889
+ "message": {
2890
+ "type": "string",
2891
+ "x-nullable": false
2892
+ }
2893
+ }
2894
+ }
2895
+ }
2896
+ }
2897
+ }
2898
+ },
2899
+ "/accounts/{account_id}/env/{key}": {
2900
+ "get": {
2901
+ "tags": [
2902
+ "environmentVariables"
2903
+ ],
2904
+ "operationId": "getEnvVar",
2905
+ "parameters": [
2906
+ {
2907
+ "name": "account_id",
2908
+ "description": "Scope response to account_id",
2909
+ "type": "string",
2910
+ "required": true,
2911
+ "in": "path"
2912
+ },
2913
+ {
2914
+ "name": "key",
2915
+ "description": "The environment variable key (case-sensitive)",
2916
+ "type": "string",
2917
+ "required": true,
2918
+ "in": "path"
2919
+ },
2920
+ {
2921
+ "name": "site_id",
2922
+ "description": "If provided, return the environment variable for a specific site (no merging is performed)",
2923
+ "type": "string",
2924
+ "required": false,
2925
+ "in": "query"
2926
+ }
2927
+ ],
2928
+ "responses": {
2929
+ "200": {
2930
+ "description": "OK",
2931
+ "schema": {
2932
+ "type": "object",
2933
+ "properties": {
2934
+ "key": {
2935
+ "type": "string",
2936
+ "description": "The environment variable key, like ALGOLIA_ID (case-sensitive)",
2937
+ "x-faker": "commerce.productName"
2938
+ },
2939
+ "scopes": {
2940
+ "type": "array",
2941
+ "items": {
2942
+ "type": "string",
2943
+ "enum": [
2944
+ "builds",
2945
+ "functions",
2946
+ "runtime",
2947
+ "post_processing"
2948
+ ]
2949
+ },
2950
+ "description": "The scopes that this environment variable is set to"
2951
+ },
2952
+ "values": {
2953
+ "type": "array",
2954
+ "items": {
2955
+ "type": "object",
2956
+ "properties": {
2957
+ "id": {
2958
+ "type": "string",
2959
+ "description": "The environment variable value's universally unique ID",
2960
+ "x-faker": "datatype.uuid"
2961
+ },
2962
+ "value": {
2963
+ "type": "string",
2964
+ "description": "The environment variable's unencrypted value",
2965
+ "x-faker": "internet.password"
2966
+ },
2967
+ "context": {
2968
+ "type": "string",
2969
+ "enum": [
2970
+ "all",
2971
+ "dev",
2972
+ "branch-deploy",
2973
+ "deploy-preview",
2974
+ "production"
2975
+ ],
2976
+ "description": "The deploy context in which this value will be used. `dev` refers to local development when running `netlify dev`."
2977
+ }
2978
+ },
2979
+ "description": "Environment variable value model definition"
2980
+ },
2981
+ "description": "An array of Value objects containing values and metadata",
2982
+ "x-faker": "internet.password"
2983
+ },
2984
+ "updated_at": {
2985
+ "type": "string",
2986
+ "format": "date-time",
2987
+ "description": "The timestamp of when the value was last updated",
2988
+ "x-faker": "date.past"
2989
+ },
2990
+ "updated_by": {
2991
+ "type": "object",
2992
+ "properties": {
2993
+ "id": {
2994
+ "type": "string",
2995
+ "description": "The user's unique identifier",
2996
+ "x-faker": "datatype.number"
2997
+ },
2998
+ "full_name": {
2999
+ "type": "string",
3000
+ "description": "The user's full name (first and last)",
3001
+ "x-faker": "name.findName"
3002
+ },
3003
+ "email": {
3004
+ "type": "string",
3005
+ "description": "The user's email address",
3006
+ "x-faker": "internet.email"
3007
+ },
3008
+ "avatar_url": {
3009
+ "type": "string",
3010
+ "description": "A URL pointing to the user's avatar",
3011
+ "x-faker": "internet.avatar"
3012
+ }
3013
+ }
3014
+ }
3015
+ },
3016
+ "description": "Environment variable model definition"
3017
+ }
3018
+ },
3019
+ "default": {
3020
+ "description": "error",
3021
+ "schema": {
3022
+ "type": "object",
3023
+ "required": [
3024
+ "message"
3025
+ ],
3026
+ "properties": {
3027
+ "code": {
3028
+ "type": "integer",
3029
+ "format": "int64"
3030
+ },
3031
+ "message": {
3032
+ "type": "string",
3033
+ "x-nullable": false
3034
+ }
3035
+ }
3036
+ }
3037
+ }
3038
+ },
3039
+ "description": "[Beta] Returns an individual environment variable. To use this endpoint, opt in to the beta environment variable experience using the Netlify UI."
3040
+ },
3041
+ "put": {
3042
+ "tags": [
3043
+ "environmentVariables"
3044
+ ],
3045
+ "operationId": "updateEnvVar",
3046
+ "description": "[Beta] Updates an existing environment variable and all of its values. Existing values will be replaced by values provided. To use this endpoint, opt in to the beta environment variable experience using the Netlify UI.",
3047
+ "parameters": [
3048
+ {
3049
+ "name": "account_id",
3050
+ "description": "Scope response to account_id",
3051
+ "type": "string",
3052
+ "required": true,
3053
+ "in": "path"
3054
+ },
3055
+ {
3056
+ "name": "key",
3057
+ "description": "The existing environment variable key name (case-sensitive)",
3058
+ "type": "string",
3059
+ "required": true,
3060
+ "in": "path"
3061
+ },
3062
+ {
3063
+ "in": "body",
3064
+ "name": "env_var",
3065
+ "schema": {
3066
+ "type": "object",
3067
+ "properties": {
3068
+ "key": {
3069
+ "type": "string",
3070
+ "description": "The existing or new name of the key, if you wish to rename it (case-sensitive)"
3071
+ },
3072
+ "scopes": {
3073
+ "description": "The scopes that this environment variable is set to (Pro plans and above)",
3074
+ "type": "array",
3075
+ "items": {
3076
+ "type": "string",
3077
+ "enum": [
3078
+ "builds",
3079
+ "functions",
3080
+ "runtime",
3081
+ "post_processing"
3082
+ ]
3083
+ }
3084
+ },
3085
+ "values": {
3086
+ "type": "array",
3087
+ "items": {
3088
+ "type": "object",
3089
+ "properties": {
3090
+ "id": {
3091
+ "type": "string",
3092
+ "description": "The environment variable value's universally unique ID",
3093
+ "x-faker": "datatype.uuid"
3094
+ },
3095
+ "value": {
3096
+ "type": "string",
3097
+ "description": "The environment variable's unencrypted value",
3098
+ "x-faker": "internet.password"
3099
+ },
3100
+ "context": {
3101
+ "type": "string",
3102
+ "enum": [
3103
+ "all",
3104
+ "dev",
3105
+ "branch-deploy",
3106
+ "deploy-preview",
3107
+ "production"
3108
+ ],
3109
+ "description": "The deploy context in which this value will be used. `dev` refers to local development when running `netlify dev`."
3110
+ }
3111
+ },
3112
+ "description": "Environment variable value model definition"
3113
+ }
3114
+ }
3115
+ }
3116
+ }
3117
+ },
3118
+ {
3119
+ "name": "site_id",
3120
+ "description": "If provided, update an environment variable set on this site",
3121
+ "type": "string",
3122
+ "required": false,
3123
+ "in": "query"
3124
+ }
3125
+ ],
3126
+ "responses": {
3127
+ "200": {
3128
+ "description": "OK",
3129
+ "schema": {
3130
+ "type": "object",
3131
+ "properties": {
3132
+ "key": {
3133
+ "type": "string",
3134
+ "description": "The environment variable key, like ALGOLIA_ID (case-sensitive)",
3135
+ "x-faker": "commerce.productName"
3136
+ },
3137
+ "scopes": {
3138
+ "type": "array",
3139
+ "items": {
3140
+ "type": "string",
3141
+ "enum": [
3142
+ "builds",
3143
+ "functions",
3144
+ "runtime",
3145
+ "post_processing"
3146
+ ]
3147
+ },
3148
+ "description": "The scopes that this environment variable is set to"
3149
+ },
3150
+ "values": {
3151
+ "type": "array",
3152
+ "items": {
3153
+ "type": "object",
3154
+ "properties": {
3155
+ "id": {
3156
+ "type": "string",
3157
+ "description": "The environment variable value's universally unique ID",
3158
+ "x-faker": "datatype.uuid"
3159
+ },
3160
+ "value": {
3161
+ "type": "string",
3162
+ "description": "The environment variable's unencrypted value",
3163
+ "x-faker": "internet.password"
3164
+ },
3165
+ "context": {
3166
+ "type": "string",
3167
+ "enum": [
3168
+ "all",
3169
+ "dev",
3170
+ "branch-deploy",
3171
+ "deploy-preview",
3172
+ "production"
3173
+ ],
3174
+ "description": "The deploy context in which this value will be used. `dev` refers to local development when running `netlify dev`."
3175
+ }
3176
+ },
3177
+ "description": "Environment variable value model definition"
3178
+ },
3179
+ "description": "An array of Value objects containing values and metadata",
3180
+ "x-faker": "internet.password"
3181
+ },
3182
+ "updated_at": {
3183
+ "type": "string",
3184
+ "format": "date-time",
3185
+ "description": "The timestamp of when the value was last updated",
3186
+ "x-faker": "date.past"
3187
+ },
3188
+ "updated_by": {
3189
+ "type": "object",
3190
+ "properties": {
3191
+ "id": {
3192
+ "type": "string",
3193
+ "description": "The user's unique identifier",
3194
+ "x-faker": "datatype.number"
3195
+ },
3196
+ "full_name": {
3197
+ "type": "string",
3198
+ "description": "The user's full name (first and last)",
3199
+ "x-faker": "name.findName"
3200
+ },
3201
+ "email": {
3202
+ "type": "string",
3203
+ "description": "The user's email address",
3204
+ "x-faker": "internet.email"
3205
+ },
3206
+ "avatar_url": {
3207
+ "type": "string",
3208
+ "description": "A URL pointing to the user's avatar",
3209
+ "x-faker": "internet.avatar"
3210
+ }
3211
+ }
3212
+ }
3213
+ },
3214
+ "description": "Environment variable model definition"
3215
+ }
3216
+ },
3217
+ "default": {
3218
+ "description": "error",
3219
+ "schema": {
3220
+ "type": "object",
3221
+ "required": [
3222
+ "message"
3223
+ ],
3224
+ "properties": {
3225
+ "code": {
3226
+ "type": "integer",
3227
+ "format": "int64"
3228
+ },
3229
+ "message": {
3230
+ "type": "string",
3231
+ "x-nullable": false
3232
+ }
3233
+ }
3234
+ }
3235
+ }
3236
+ }
3237
+ },
3238
+ "patch": {
3239
+ "tags": [
3240
+ "environmentVariables"
3241
+ ],
3242
+ "operationId": "setEnvVarValue",
3243
+ "description": "[Beta] Updates or creates a new value for an existing environment variable. To use this endpoint, opt in to the beta environment variable experience using the Netlify UI.",
3244
+ "parameters": [
3245
+ {
3246
+ "name": "account_id",
3247
+ "description": "Scope response to account_id",
3248
+ "required": true,
3249
+ "type": "string",
3250
+ "in": "path"
3251
+ },
3252
+ {
3253
+ "name": "key",
3254
+ "description": "The existing environment variable key name (case-sensitive)",
3255
+ "required": true,
3256
+ "type": "string",
3257
+ "in": "path"
3258
+ },
3259
+ {
3260
+ "name": "site_id",
3261
+ "description": "If provided, update an environment variable set on this site",
3262
+ "in": "query",
3263
+ "type": "string"
3264
+ },
3265
+ {
3266
+ "in": "body",
3267
+ "name": "env_var",
3268
+ "schema": {
3269
+ "type": "object",
3270
+ "properties": {
3271
+ "context": {
3272
+ "description": "The deploy context in which this value will be used. `dev` refers to local development when running `netlify dev`.",
3273
+ "type": "string",
3274
+ "enum": [
3275
+ "dev",
3276
+ "branch-deploy",
3277
+ "deploy-preview",
3278
+ "production"
3279
+ ]
3280
+ },
3281
+ "value": {
3282
+ "description": "The environment variable's unencrypted value",
3283
+ "type": "string"
3284
+ }
3285
+ }
3286
+ }
3287
+ }
3288
+ ],
3289
+ "responses": {
3290
+ "201": {
3291
+ "description": "Created (success)",
3292
+ "schema": {
3293
+ "type": "object",
3294
+ "properties": {
3295
+ "key": {
3296
+ "type": "string",
3297
+ "description": "The environment variable key, like ALGOLIA_ID (case-sensitive)",
3298
+ "x-faker": "commerce.productName"
3299
+ },
3300
+ "scopes": {
3301
+ "type": "array",
3302
+ "items": {
3303
+ "type": "string",
3304
+ "enum": [
3305
+ "builds",
3306
+ "functions",
3307
+ "runtime",
3308
+ "post_processing"
3309
+ ]
3310
+ },
3311
+ "description": "The scopes that this environment variable is set to"
3312
+ },
3313
+ "values": {
3314
+ "type": "array",
3315
+ "items": {
3316
+ "type": "object",
3317
+ "properties": {
3318
+ "id": {
3319
+ "type": "string",
3320
+ "description": "The environment variable value's universally unique ID",
3321
+ "x-faker": "datatype.uuid"
3322
+ },
3323
+ "value": {
3324
+ "type": "string",
3325
+ "description": "The environment variable's unencrypted value",
3326
+ "x-faker": "internet.password"
3327
+ },
3328
+ "context": {
3329
+ "type": "string",
3330
+ "enum": [
3331
+ "all",
3332
+ "dev",
3333
+ "branch-deploy",
3334
+ "deploy-preview",
3335
+ "production"
3336
+ ],
3337
+ "description": "The deploy context in which this value will be used. `dev` refers to local development when running `netlify dev`."
3338
+ }
3339
+ },
3340
+ "description": "Environment variable value model definition"
3341
+ },
3342
+ "description": "An array of Value objects containing values and metadata",
3343
+ "x-faker": "internet.password"
3344
+ },
3345
+ "updated_at": {
3346
+ "type": "string",
3347
+ "format": "date-time",
3348
+ "description": "The timestamp of when the value was last updated",
3349
+ "x-faker": "date.past"
3350
+ },
3351
+ "updated_by": {
3352
+ "type": "object",
3353
+ "properties": {
3354
+ "id": {
3355
+ "type": "string",
3356
+ "description": "The user's unique identifier",
3357
+ "x-faker": "datatype.number"
3358
+ },
3359
+ "full_name": {
3360
+ "type": "string",
3361
+ "description": "The user's full name (first and last)",
3362
+ "x-faker": "name.findName"
3363
+ },
3364
+ "email": {
3365
+ "type": "string",
3366
+ "description": "The user's email address",
3367
+ "x-faker": "internet.email"
3368
+ },
3369
+ "avatar_url": {
3370
+ "type": "string",
3371
+ "description": "A URL pointing to the user's avatar",
3372
+ "x-faker": "internet.avatar"
3373
+ }
3374
+ }
3375
+ }
3376
+ },
3377
+ "description": "Environment variable model definition"
3378
+ }
3379
+ },
3380
+ "default": {
3381
+ "description": "error",
3382
+ "schema": {
3383
+ "type": "object",
3384
+ "required": [
3385
+ "message"
3386
+ ],
3387
+ "properties": {
3388
+ "code": {
3389
+ "type": "integer",
3390
+ "format": "int64"
3391
+ },
3392
+ "message": {
3393
+ "type": "string",
3394
+ "x-nullable": false
3395
+ }
3396
+ }
3397
+ }
3398
+ }
3399
+ }
3400
+ },
3401
+ "delete": {
3402
+ "tags": [
3403
+ "environmentVariables"
3404
+ ],
3405
+ "operationId": "deleteEnvVar",
3406
+ "parameters": [
3407
+ {
3408
+ "name": "account_id",
3409
+ "description": "Scope response to account_id",
3410
+ "type": "string",
3411
+ "required": true,
3412
+ "in": "path"
3413
+ },
3414
+ {
3415
+ "name": "key",
3416
+ "description": "The environment variable key (case-sensitive)",
3417
+ "type": "string",
3418
+ "required": true,
3419
+ "in": "path"
3420
+ },
3421
+ {
3422
+ "name": "site_id",
3423
+ "description": "If provided, delete the environment variable from this site",
3424
+ "type": "string",
3425
+ "required": false,
3426
+ "in": "query"
3427
+ }
3428
+ ],
3429
+ "responses": {
3430
+ "204": {
3431
+ "description": "No Content (success)"
3432
+ },
3433
+ "default": {
3434
+ "description": "error",
3435
+ "schema": {
3436
+ "type": "object",
3437
+ "required": [
3438
+ "message"
3439
+ ],
3440
+ "properties": {
3441
+ "code": {
3442
+ "type": "integer",
3443
+ "format": "int64"
3444
+ },
3445
+ "message": {
3446
+ "type": "string",
3447
+ "x-nullable": false
3448
+ }
3449
+ }
3450
+ }
3451
+ }
3452
+ },
3453
+ "description": "[Beta] Deletes an environment variable. To use this endpoint, opt in to the beta environment variable experience using the Netlify UI."
3454
+ }
3455
+ },
3456
+ "/accounts/{account_id}/env/{key}/value/{id}": {
3457
+ "delete": {
3458
+ "tags": [
3459
+ "environmentVariables"
3460
+ ],
3461
+ "operationId": "deleteEnvVarValue",
3462
+ "parameters": [
3463
+ {
3464
+ "name": "account_id",
3465
+ "description": "Scope response to account_id",
3466
+ "required": true,
3467
+ "in": "path",
3468
+ "type": "string"
3469
+ },
3470
+ {
3471
+ "name": "id",
3472
+ "description": "The environment variable value's ID",
3473
+ "type": "string",
3474
+ "required": true,
3475
+ "in": "path"
3476
+ },
3477
+ {
3478
+ "name": "key",
3479
+ "description": "The environment variable key name (case-sensitive)",
3480
+ "type": "string",
3481
+ "required": true,
3482
+ "in": "path"
3483
+ },
3484
+ {
3485
+ "name": "site_id",
3486
+ "description": "If provided, delete the value from an environment variable on this site",
3487
+ "type": "string",
3488
+ "required": false,
3489
+ "in": "query"
3490
+ }
3491
+ ],
3492
+ "responses": {
3493
+ "204": {
3494
+ "description": "No Content (success)"
3495
+ },
3496
+ "default": {
3497
+ "description": "error",
3498
+ "schema": {
3499
+ "type": "object",
3500
+ "required": [
3501
+ "message"
3502
+ ],
3503
+ "properties": {
3504
+ "code": {
3505
+ "type": "integer",
3506
+ "format": "int64"
3507
+ },
3508
+ "message": {
3509
+ "type": "string",
3510
+ "x-nullable": false
3511
+ }
3512
+ }
3513
+ }
3514
+ }
3515
+ },
3516
+ "description": "[Beta] Deletes a specific environment variable value. To use this endpoint, opt in to the beta environment variable experience using the Netlify UI."
3517
+ }
3518
+ },
2537
3519
  "/sites/{site_id}/forms": {
2538
3520
  "get": {
2539
3521
  "operationId": "listSiteForms",
@@ -6916,6 +7898,11 @@
6916
7898
  "format": "binary"
6917
7899
  },
6918
7900
  "required": true
7901
+ },
7902
+ {
7903
+ "name": "X-Nf-Retry-Count",
7904
+ "type": "integer",
7905
+ "in": "header"
6919
7906
  }
6920
7907
  ],
6921
7908
  "responses": {
@@ -13525,6 +14512,145 @@
13525
14512
  }
13526
14513
  }
13527
14514
  },
14515
+ "envVar": {
14516
+ "type": "object",
14517
+ "properties": {
14518
+ "key": {
14519
+ "type": "string",
14520
+ "description": "The environment variable key, like ALGOLIA_ID (case-sensitive)",
14521
+ "x-faker": "commerce.productName"
14522
+ },
14523
+ "scopes": {
14524
+ "type": "array",
14525
+ "items": {
14526
+ "type": "string",
14527
+ "enum": [
14528
+ "builds",
14529
+ "functions",
14530
+ "runtime",
14531
+ "post_processing"
14532
+ ]
14533
+ },
14534
+ "description": "The scopes that this environment variable is set to"
14535
+ },
14536
+ "values": {
14537
+ "type": "array",
14538
+ "items": {
14539
+ "type": "object",
14540
+ "properties": {
14541
+ "id": {
14542
+ "type": "string",
14543
+ "description": "The environment variable value's universally unique ID",
14544
+ "x-faker": "datatype.uuid"
14545
+ },
14546
+ "value": {
14547
+ "type": "string",
14548
+ "description": "The environment variable's unencrypted value",
14549
+ "x-faker": "internet.password"
14550
+ },
14551
+ "context": {
14552
+ "type": "string",
14553
+ "enum": [
14554
+ "all",
14555
+ "dev",
14556
+ "branch-deploy",
14557
+ "deploy-preview",
14558
+ "production"
14559
+ ],
14560
+ "description": "The deploy context in which this value will be used. `dev` refers to local development when running `netlify dev`."
14561
+ }
14562
+ },
14563
+ "description": "Environment variable value model definition"
14564
+ },
14565
+ "description": "An array of Value objects containing values and metadata",
14566
+ "x-faker": "internet.password"
14567
+ },
14568
+ "updated_at": {
14569
+ "type": "string",
14570
+ "format": "date-time",
14571
+ "description": "The timestamp of when the value was last updated",
14572
+ "x-faker": "date.past"
14573
+ },
14574
+ "updated_by": {
14575
+ "type": "object",
14576
+ "properties": {
14577
+ "id": {
14578
+ "type": "string",
14579
+ "description": "The user's unique identifier",
14580
+ "x-faker": "datatype.number"
14581
+ },
14582
+ "full_name": {
14583
+ "type": "string",
14584
+ "description": "The user's full name (first and last)",
14585
+ "x-faker": "name.findName"
14586
+ },
14587
+ "email": {
14588
+ "type": "string",
14589
+ "description": "The user's email address",
14590
+ "x-faker": "internet.email"
14591
+ },
14592
+ "avatar_url": {
14593
+ "type": "string",
14594
+ "description": "A URL pointing to the user's avatar",
14595
+ "x-faker": "internet.avatar"
14596
+ }
14597
+ }
14598
+ }
14599
+ },
14600
+ "description": "Environment variable model definition"
14601
+ },
14602
+ "envVarValue": {
14603
+ "type": "object",
14604
+ "properties": {
14605
+ "id": {
14606
+ "type": "string",
14607
+ "description": "The environment variable value's universally unique ID",
14608
+ "x-faker": "datatype.uuid"
14609
+ },
14610
+ "value": {
14611
+ "type": "string",
14612
+ "description": "The environment variable's unencrypted value",
14613
+ "x-faker": "internet.password"
14614
+ },
14615
+ "context": {
14616
+ "type": "string",
14617
+ "enum": [
14618
+ "all",
14619
+ "dev",
14620
+ "branch-deploy",
14621
+ "deploy-preview",
14622
+ "production"
14623
+ ],
14624
+ "description": "The deploy context in which this value will be used. `dev` refers to local development when running `netlify dev`."
14625
+ }
14626
+ },
14627
+ "description": "Environment variable value model definition"
14628
+ },
14629
+ "envVarUser": {
14630
+ "type": "object",
14631
+ "properties": {
14632
+ "id": {
14633
+ "type": "string",
14634
+ "description": "The user's unique identifier",
14635
+ "x-faker": "datatype.number"
14636
+ },
14637
+ "full_name": {
14638
+ "type": "string",
14639
+ "description": "The user's full name (first and last)",
14640
+ "x-faker": "name.findName"
14641
+ },
14642
+ "email": {
14643
+ "type": "string",
14644
+ "description": "The user's email address",
14645
+ "x-faker": "internet.email"
14646
+ },
14647
+ "avatar_url": {
14648
+ "type": "string",
14649
+ "description": "A URL pointing to the user's avatar",
14650
+ "x-faker": "internet.avatar"
14651
+ }
14652
+ }
14653
+ },
13528
14654
  "form": {
13529
14655
  "type": "object",
13530
14656
  "properties": {
@@ -15000,6 +16126,11 @@
15000
16126
  "name": "per_page",
15001
16127
  "required": false,
15002
16128
  "in": "query"
16129
+ },
16130
+ "retryCount": {
16131
+ "name": "X-Nf-Retry-Count",
16132
+ "type": "integer",
16133
+ "in": "header"
15003
16134
  }
15004
16135
  },
15005
16136
  "x-tagGroups": [
@@ -15025,6 +16156,7 @@
15025
16156
  "name": "Site",
15026
16157
  "tags": [
15027
16158
  "site",
16159
+ "environmentVariables",
15028
16160
  "file",
15029
16161
  "metadata",
15030
16162
  "snippet"
@@ -15131,6 +16263,10 @@
15131
16263
  "name": "site",
15132
16264
  "x-displayName": "Site"
15133
16265
  },
16266
+ {
16267
+ "name": "environmentVariables",
16268
+ "x-displayName": "Environment variables"
16269
+ },
15134
16270
  {
15135
16271
  "name": "file",
15136
16272
  "x-displayName": "File"
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@netlify/open-api",
3
3
  "description": "Netlify's open-api definition as a module",
4
- "version": "2.9.0",
4
+ "version": "2.12.0",
5
5
  "author": "Netlify",
6
6
  "ava": {
7
7
  "files": [
@@ -32,7 +32,7 @@
32
32
  "prettier": "^1.18.2",
33
33
  "react": "^16.9.0",
34
34
  "react-dom": "^16.9.0",
35
- "redoc-cli": "^0.9.6",
35
+ "redoc-cli": "^0.13.7",
36
36
  "swagger-parser": "^8.0.1"
37
37
  },
38
38
  "files": [],