netlify-api 0.1.6 → 0.1.7

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.
@@ -1,10 +1,10 @@
1
1
 
2
- > netlify-api@0.1.6 build /home/runner/work/openapi-clients/openapi-clients/packages/netlify-api
2
+ > netlify-api@0.1.7 build /home/runner/work/openapi-clients/openapi-clients/packages/netlify-api
3
3
  > rimraf dist && rollup -c
4
4
 
5
5
  
6
6
  ./src/index.ts → dist/index.cjs, dist/index.mjs...
7
- created dist/index.cjs, dist/index.mjs in 7.5s
7
+ created dist/index.cjs, dist/index.mjs in 7.8s
8
8
  
9
9
  ./src/index.ts → dist/index.d.ts...
10
- created dist/index.d.ts in 8.3s
10
+ created dist/index.d.ts in 7.3s
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # netlify-api
2
2
 
3
+ ## 0.1.7
4
+
5
+ ### Patch Changes
6
+
7
+ - e922990: [OpenAPI] Spec updates for netlify-api
8
+
3
9
  ## 0.1.6
4
10
 
5
11
  ### Patch Changes
package/dist/index.cjs CHANGED
@@ -14,7 +14,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
14
14
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
15
15
  PERFORMANCE OF THIS SOFTWARE.
16
16
  ***************************************************************************** */
17
- /* global Reflect, Promise */
17
+ /* global Reflect, Promise, SuppressedError, Symbol */
18
18
 
19
19
 
20
20
  function __classPrivateFieldGet(receiver, state, kind, f) {
@@ -28,7 +28,12 @@ function __classPrivateFieldSet(receiver, state, value, kind, f) {
28
28
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
29
29
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
30
30
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
31
- }
31
+ }
32
+
33
+ typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
34
+ var e = new Error(message);
35
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
36
+ };
32
37
 
33
38
  const baseUrl = 'https://api.netlify.com';
34
39
  async function fetch$1({ url, method, body, headers, pathParams, queryParams, signal, token, fetchImpl, basePath }) {
package/dist/index.d.ts CHANGED
@@ -29,7 +29,7 @@ type ErrorWrapper<TError> = TError | {
29
29
  /**
30
30
  * Generated by @openapi-codegen
31
31
  *
32
- * @version 2.18.0
32
+ * @version 2.19.1
33
33
  */
34
34
  type CreateSiteDeployDeploy = {
35
35
  files?: Record<string, any>;
@@ -263,7 +263,7 @@ type ServerErrorStatus = Exclude<ComputeRange<600>[number], ComputeRange<500>[nu
263
263
  /**
264
264
  * Generated by @openapi-codegen
265
265
  *
266
- * @version 2.18.0
266
+ * @version 2.19.1
267
267
  */
268
268
 
269
269
  type ListSitesQueryParams = {
@@ -571,6 +571,9 @@ declare const createSite: (variables: CreateSiteVariables, signal?: AbortSignal)
571
571
  type GetSitePathParams = {
572
572
  siteId: string;
573
573
  };
574
+ type GetSiteQueryParams = {
575
+ feature_flags?: string;
576
+ };
574
577
  type GetSiteError = ErrorWrapper<{
575
578
  status: Exclude<ClientErrorStatus | ServerErrorStatus, 200>;
576
579
  payload: {
@@ -709,6 +712,7 @@ type GetSiteResponse = {
709
712
  };
710
713
  type GetSiteVariables = {
711
714
  pathParams: GetSitePathParams;
715
+ queryParams?: GetSiteQueryParams;
712
716
  } & FetcherExtraProps;
713
717
  /**
714
718
  * **Note:** Environment variable keys and values will soon be moved from `build_settings.env` and `repo.env` to a new endpoint. Please use [getEnvVars](#tag/environmentVariables/operation/getEnvVars) to retrieve site environment variables.
@@ -1018,6 +1022,10 @@ type GetEnvVarsResponse = {
1018
1022
  */
1019
1023
  context_parameter?: string;
1020
1024
  }[];
1025
+ /**
1026
+ * Secret values are only readable by code running on Netlify’s systems. With secrets, only the local development context values are readable from the UI, API, and CLI. By default, environment variable values are not secret. (Enterprise plans only)
1027
+ */
1028
+ is_secret?: boolean;
1021
1029
  /**
1022
1030
  * The timestamp of when the value was last updated
1023
1031
  *
@@ -1120,6 +1128,10 @@ type CreateEnvVarsResponse = {
1120
1128
  */
1121
1129
  context_parameter?: string;
1122
1130
  }[];
1131
+ /**
1132
+ * Secret values are only readable by code running on Netlify’s systems. With secrets, only the local development context values are readable from the UI, API, and CLI. By default, environment variable values are not secret. (Enterprise plans only)
1133
+ */
1134
+ is_secret?: boolean;
1123
1135
  /**
1124
1136
  * The timestamp of when the value was last updated
1125
1137
  *
@@ -1185,6 +1197,10 @@ type CreateEnvVarsRequestBody = {
1185
1197
  */
1186
1198
  context_parameter?: string;
1187
1199
  }[];
1200
+ /**
1201
+ * Secret values are only readable by code running on Netlify’s systems. With secrets, only the local development context values are readable from the UI, API, and CLI. By default, environment variable values are not secret. (Enterprise plans only)
1202
+ */
1203
+ is_secret?: boolean;
1188
1204
  }[];
1189
1205
  type CreateEnvVarsVariables = {
1190
1206
  body?: CreateEnvVarsRequestBody;
@@ -1259,6 +1275,10 @@ type GetEnvVarResponse = {
1259
1275
  */
1260
1276
  context_parameter?: string;
1261
1277
  }[];
1278
+ /**
1279
+ * Secret values are only readable by code running on Netlify’s systems. With secrets, only the local development context values are readable from the UI, API, and CLI. By default, environment variable values are not secret. (Enterprise plans only)
1280
+ */
1281
+ is_secret?: boolean;
1262
1282
  /**
1263
1283
  * The timestamp of when the value was last updated
1264
1284
  *
@@ -1365,6 +1385,10 @@ type UpdateEnvVarResponse = {
1365
1385
  */
1366
1386
  context_parameter?: string;
1367
1387
  }[];
1388
+ /**
1389
+ * Secret values are only readable by code running on Netlify’s systems. With secrets, only the local development context values are readable from the UI, API, and CLI. By default, environment variable values are not secret. (Enterprise plans only)
1390
+ */
1391
+ is_secret?: boolean;
1368
1392
  /**
1369
1393
  * The timestamp of when the value was last updated
1370
1394
  *
@@ -1430,6 +1454,10 @@ type UpdateEnvVarRequestBody = {
1430
1454
  */
1431
1455
  context_parameter?: string;
1432
1456
  }[];
1457
+ /**
1458
+ * Secret values are only readable by code running on Netlify’s systems. With secrets, only the local development context values are readable from the UI, API, and CLI. By default, environment variable values are not secret. (Enterprise plans only)
1459
+ */
1460
+ is_secret?: boolean;
1433
1461
  };
1434
1462
  type UpdateEnvVarVariables = {
1435
1463
  body?: UpdateEnvVarRequestBody;
@@ -1504,6 +1532,10 @@ type SetEnvVarValueResponse = {
1504
1532
  */
1505
1533
  context_parameter?: string;
1506
1534
  }[];
1535
+ /**
1536
+ * Secret values are only readable by code running on Netlify’s systems. With secrets, only the local development context values are readable from the UI, API, and CLI. By default, environment variable values are not secret. (Enterprise plans only)
1537
+ */
1538
+ is_secret?: boolean;
1507
1539
  /**
1508
1540
  * The timestamp of when the value was last updated
1509
1541
  *
@@ -6287,6 +6319,7 @@ type components_GetSiteMetadataError = GetSiteMetadataError;
6287
6319
  type components_GetSiteMetadataPathParams = GetSiteMetadataPathParams;
6288
6320
  type components_GetSiteMetadataVariables = GetSiteMetadataVariables;
6289
6321
  type components_GetSitePathParams = GetSitePathParams;
6322
+ type components_GetSiteQueryParams = GetSiteQueryParams;
6290
6323
  type components_GetSiteResponse = GetSiteResponse;
6291
6324
  type components_GetSiteSnippetError = GetSiteSnippetError;
6292
6325
  type components_GetSiteSnippetPathParams = GetSiteSnippetPathParams;
@@ -6890,6 +6923,7 @@ declare namespace components {
6890
6923
  components_GetSiteMetadataPathParams as GetSiteMetadataPathParams,
6891
6924
  components_GetSiteMetadataVariables as GetSiteMetadataVariables,
6892
6925
  components_GetSitePathParams as GetSitePathParams,
6926
+ components_GetSiteQueryParams as GetSiteQueryParams,
6893
6927
  components_GetSiteResponse as GetSiteResponse,
6894
6928
  components_GetSiteSnippetError as GetSiteSnippetError,
6895
6929
  components_GetSiteSnippetPathParams as GetSiteSnippetPathParams,
@@ -7531,7 +7565,7 @@ type RefreshTokenResult = {
7531
7565
  /**
7532
7566
  * Generated by @openapi-codegen
7533
7567
  *
7534
- * @version 2.18.0
7568
+ * @version 2.19.1
7535
7569
  */
7536
7570
  type SplitTestSetup = {
7537
7571
  branch_tests?: Record<string, any>;
@@ -7968,6 +8002,10 @@ type EnvVar = {
7968
8002
  */
7969
8003
  context_parameter?: string;
7970
8004
  }[];
8005
+ /**
8006
+ * Secret values are only readable by code running on Netlify’s systems. With secrets, only the local development context values are readable from the UI, API, and CLI. By default, environment variable values are not secret. (Enterprise plans only)
8007
+ */
8008
+ is_secret?: boolean;
7971
8009
  /**
7972
8010
  * The timestamp of when the value was last updated
7973
8011
  *
@@ -8823,7 +8861,7 @@ declare namespace schemas {
8823
8861
  /**
8824
8862
  * Generated by @openapi-codegen
8825
8863
  *
8826
- * @version 2.18.0
8864
+ * @version 2.19.1
8827
8865
  */
8828
8866
  /**
8829
8867
  * @format int32
@@ -8849,7 +8887,7 @@ declare namespace parameters {
8849
8887
  /**
8850
8888
  * Generated by @openapi-codegen
8851
8889
  *
8852
- * @version 2.18.0
8890
+ * @version 2.19.1
8853
8891
  */
8854
8892
  type Error = {
8855
8893
  /**
package/dist/index.mjs CHANGED
@@ -12,7 +12,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
12
12
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
13
13
  PERFORMANCE OF THIS SOFTWARE.
14
14
  ***************************************************************************** */
15
- /* global Reflect, Promise */
15
+ /* global Reflect, Promise, SuppressedError, Symbol */
16
16
 
17
17
 
18
18
  function __classPrivateFieldGet(receiver, state, kind, f) {
@@ -26,7 +26,12 @@ function __classPrivateFieldSet(receiver, state, value, kind, f) {
26
26
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
27
27
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
28
28
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
29
- }
29
+ }
30
+
31
+ typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
32
+ var e = new Error(message);
33
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
34
+ };
30
35
 
31
36
  const baseUrl = 'https://api.netlify.com';
32
37
  async function fetch$1({ url, method, body, headers, pathParams, queryParams, signal, token, fetchImpl, basePath }) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "netlify-api",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "Netlify API client for Node.js",
5
5
  "author": "SferaDev",
6
6
  "license": "ISC",